:root {
  --bg-main: #220212;
  --bg-secondary: #470720;
  --bg-accent: #7b163d;
  --rose: #ff5f8f;
  --rose-soft: #ff9ec2;
  --rose-pale: #ffe1ec;
  --gold-soft: #ffd8a8;
  --text-main: #fff7fb;
  --text-dim: rgba(255, 247, 251, 0.78);
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.12);
  --shadow-strong: 0 28px 80px rgba(10, 0, 8, 0.52);
  --yes-progress: 0%;
  --ambient-1: rgba(255, 95, 143, 0.75);
  --ambient-2: rgba(255, 204, 224, 0.42);
  --ambient-3: rgba(110, 12, 54, 0.9);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  overflow: hidden;
  font-family: "Poppins", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at top left, rgba(255, 140, 180, 0.12), transparent 28%),
    radial-gradient(circle at 80% 15%, rgba(255, 95, 143, 0.22), transparent 24%),
    linear-gradient(140deg, #16000b 0%, var(--bg-main) 35%, var(--bg-secondary) 100%);
}

button {
  font: inherit;
}

#particles {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.particle-heart,
.particle-dot {
  position: absolute;
  opacity: 0.22;
  animation: floatParticle linear infinite;
}

.particle-heart {
  color: var(--rose-soft);
  font-size: 18px;
}

.particle-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
}

.gate-screen,
.screen {
  position: absolute;
  inset: 0;
}

.gate-screen {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 48px;
  z-index: 5;
  background:
    radial-gradient(circle at top, rgba(255, 157, 198, 0.18), transparent 35%),
    linear-gradient(155deg, #16000b 0%, #340416 45%, #5e1030 100%);
}

.gate-card,
.screen-card,
.overlay-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.gate-card {
  width: min(780px, 100%);
  padding: 56px;
  border-radius: 32px;
  text-align: center;
}

.gate-sparkles {
  letter-spacing: 0.5rem;
  margin-bottom: 16px;
  color: var(--gold-soft);
}

.gate-card h1,
.screen-card h1,
.overlay-card h2 {
  font-family: "Great Vibes", cursive;
  line-height: 1.05;
}

.gate-card h1 {
  font-size: clamp(3rem, 6vw, 5.1rem);
  margin-bottom: 18px;
  color: var(--rose-pale);
}

.gate-copy {
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-dim);
}

.experience {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.screen {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 2.8vw, 40px);
  opacity: 0;
  transform: scale(0.985) translateY(20px);
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.screen.active {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

.screen-card {
  width: min(980px, 100%);
  border-radius: 34px;
  padding: clamp(24px, 3vw, 48px);
  position: relative;
}

.wide-card {
  width: min(1280px, 100%);
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.32rem;
  text-transform: uppercase;
  color: rgba(255, 219, 230, 0.74);
  margin-bottom: 14px;
}

.lead,
.screen-card p {
  color: var(--text-dim);
  line-height: 1.8;
}

.screen-card h1 {
  font-size: clamp(3.7rem, 5vw, 5.6rem);
  color: var(--rose-pale);
  text-shadow: 0 10px 28px rgba(255, 95, 143, 0.24);
}

.primary-btn,
.secondary-btn {
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.28s ease, box-shadow 0.28s ease, opacity 0.28s ease;
}

.primary-btn {
  min-width: 220px;
  padding: 16px 30px;
  background: linear-gradient(135deg, #ff5c8a 0%, #ff87a3 100%);
  color: white;
  box-shadow: 0 16px 34px rgba(255, 92, 138, 0.34);
  font-weight: 600;
  letter-spacing: 0.02rem;
}

.secondary-btn {
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-3px);
}

.primary-btn:active,
.secondary-btn:active {
  transform: translateY(0);
}

.intro-card {
  max-width: 820px;
  padding: clamp(38px, 5vw, 72px) clamp(28px, 5vw, 72px) clamp(34px, 4.5vw, 64px);
  text-align: center;
  overflow: hidden;
}

.intro-card::before,
.intro-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(12px);
}

.intro-card::before {
  width: 240px;
  height: 240px;
  top: -80px;
  right: -40px;
  background: rgba(255, 159, 194, 0.12);
}

.intro-card::after {
  width: 200px;
  height: 200px;
  left: -50px;
  bottom: -60px;
  background: rgba(255, 224, 168, 0.1);
}

.sparkle-badge {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  color: var(--gold-soft);
  font-size: 2rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 18px 36px rgba(0, 0, 0, 0.18);
}

.intro-card .lead {
  max-width: 480px;
  margin: 18px auto 30px;
  font-size: 1.16rem;
}

.game-card {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: clamp(18px, 2vw, 28px);
  min-height: min(78vh, 720px);
  align-items: stretch;
}

.game-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.game-copy h1 {
  font-size: clamp(3.2rem, 4.2vw, 4.8rem);
  margin-bottom: 18px;
}

.game-copy p {
  font-size: 1.02rem;
}

.meter-shell {
  margin-top: 28px;
  display: grid;
  gap: 12px;
}

.meter-shell span {
  color: rgba(255, 247, 251, 0.84);
  font-size: 0.94rem;
}

.meter-visuals {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.meter-bar {
  height: 18px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.meter-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff7ea8 0%, #ff4d7a 50%, #ffc4dc 100%);
  transition: width 0.22s ease;
}

.meter-heart-meter {
  position: relative;
  width: 92px;
  height: 84px;
  display: grid;
  place-items: center;
}

.meter-heart-shell {
  --heart-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='black' d='M256 468c-10.9 0-21.4-4-29.7-12l-21.3-19.7C95.1 334.4 32 276.1 32 182.2 32 102.8 92.3 44 170.1 44c34.5 0 67.7 15.8 89.9 42.4C282.2 59.8 315.4 44 349.9 44 427.7 44 488 102.8 488 182.2c0 93.9-63.1 152.2-173 254.1l-21.3 19.7c-8.3 8-18.8 12-29.7 12z'/%3E%3C/svg%3E");
  position: relative;
  width: 70px;
  height: 64px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
  -webkit-mask: var(--heart-mask) center / contain no-repeat;
  mask: var(--heart-mask) center / contain no-repeat;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.meter-heart-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 24%, rgba(255, 255, 255, 0.24), transparent 34%);
  z-index: 1;
}

.meter-heart-fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0%;
  background: linear-gradient(180deg, #ffd4e2 0%, #ff8db5 45%, #ff4c87 100%);
  transition: height 0.22s ease;
}

.meter-heart-chain {
  position: absolute;
  width: 72px;
  height: 10px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 6px 50%, transparent 0 2px, rgba(247, 243, 250, 0.92) 2px 4px, transparent 4px) 0 0 / 12px 100% repeat-x,
    radial-gradient(circle at 0 50%, transparent 0 2px, rgba(136, 128, 145, 0.92) 2px 4px, transparent 4px) 6px 0 / 12px 100% repeat-x,
    linear-gradient(180deg, rgba(235, 232, 241, 0.9), rgba(135, 128, 145, 0.9));
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.14);
  z-index: 2;
}

.meter-heart-chain-a {
  transform: rotate(34deg);
}

.meter-heart-chain-b {
  transform: rotate(-34deg);
}

.meter-heart-chain-c {
  width: 62px;
  transform: translateY(14px) rotate(2deg);
}

.game-shell {
  position: relative;
  min-height: clamp(360px, 56vh, 620px);
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(255, 169, 205, 0.1), transparent 35%),
    linear-gradient(180deg, rgba(20, 0, 10, 0.22), rgba(20, 0, 10, 0.48));
  border: 1px solid rgba(255, 255, 255, 0.12);
}

#gameCanvas {
  display: block;
  width: 100%;
  height: 100%;
}

.game-overlay {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(18, 0, 10, 0.36);
}

.game-overlay.active {
  display: flex;
}

.overlay-card {
  width: min(520px, calc(100% - 48px));
  padding: 36px;
  border-radius: 28px;
  text-align: center;
}

.overlay-card h2 {
  font-size: 3rem;
  margin-bottom: 14px;
  color: var(--rose-pale);
}

.overlay-card p {
  margin-bottom: 24px;
}

.unlock-card {
  width: min(1240px, 100%);
  text-align: center;
  display: grid;
  gap: clamp(14px, 2vh, 18px);
}

.unlock-copy {
  max-width: 660px;
  margin: 0 auto;
}

.unlock-copy h1 {
  margin-bottom: 14px;
}

.unlock-stage {
  position: relative;
  width: min(820px, 100%);
  min-height: clamp(390px, 50vh, 540px);
  margin: 0 auto;
  padding: clamp(18px, 2.4vw, 26px) clamp(18px, 2.8vw, 28px) clamp(20px, 3vw, 30px);
  display: grid;
  grid-template-rows: auto auto;
  align-content: center;
  justify-items: center;
  gap: clamp(8px, 1.6vh, 12px);
  border-radius: 32px;
  background:
    radial-gradient(circle at top, rgba(255, 167, 206, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  isolation: isolate;
  overflow: hidden;
}

.unlock-stage::before,
.unlock-stage::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  pointer-events: none;
}

.unlock-stage::before {
  width: 180px;
  height: 180px;
  top: 28px;
  left: 12%;
  background: rgba(255, 137, 185, 0.12);
}

.unlock-stage::after {
  width: 220px;
  height: 220px;
  right: 12%;
  bottom: 40px;
  background: rgba(255, 212, 226, 0.1);
}

.unlock-stage.is-expanding .unlock-heart-shell {
  opacity: 0.04;
  transition-duration: 1.18s;
  transition-timing-function: cubic-bezier(0.12, 0.82, 0.16, 1);
}

.unlock-bloom {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 231, 239, 0.94) 0%, rgba(255, 173, 201, 0.76) 22%, rgba(255, 112, 162, 0.42) 46%, rgba(255, 90, 146, 0.14) 68%, transparent 82%);
  transform: translate(-50%, -50%) scale(0.28);
  opacity: 0;
  filter: blur(6px);
  z-index: 1;
  pointer-events: none;
  transition: transform 1.18s cubic-bezier(0.12, 0.82, 0.16, 1), opacity 1.18s ease;
}

.unlock-stage.is-expanding .unlock-bloom {
  transform: translate(-50%, -50%) scale(6.1);
  opacity: 1;
}

.unlock-heart-scene {
  position: relative;
  width: clamp(300px, 34vw, 360px);
  height: clamp(252px, 32vh, 324px);
  display: grid;
  place-items: center;
  z-index: 2;
}

.unlock-heart-shell {
  position: relative;
  width: clamp(240px, 28vw, 290px);
  height: clamp(212px, 28vh, 264px);
  display: grid;
  place-items: center;
  transform: scale(1);
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.28s ease;
  will-change: transform, opacity;
}

.unlock-heart {
  --heart-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='black' d='M256 468c-10.9 0-21.4-4-29.7-12l-21.3-19.7C95.1 334.4 32 276.1 32 182.2 32 102.8 92.3 44 170.1 44c34.5 0 67.7 15.8 89.9 42.4C282.2 59.8 315.4 44 349.9 44 427.7 44 488 102.8 488 182.2c0 93.9-63.1 152.2-173 254.1l-21.3 19.7c-8.3 8-18.8 12-29.7 12z'/%3E%3C/svg%3E");
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #ffb3cb 0%, #ff759f 55%, #ff4c87 100%);
  -webkit-mask: var(--heart-mask) center / contain no-repeat;
  mask: var(--heart-mask) center / contain no-repeat;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.22));
  transition: background 0.28s ease, filter 0.28s ease;
  transform-origin: center;
}

.unlock-heart::before,
.unlock-heart::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.unlock-heart::before {
  width: 56%;
  height: 42%;
  top: 4%;
  left: 22%;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.4), transparent 64%);
}

.unlock-heart::after {
  inset: 14% 14% 18%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.12), transparent 60%);
}

.unlock-heart.beat-pop {
  animation: unlockBeatPop 0.52s ease;
}

.unlock-stage.is-sad .unlock-heart {
  background: linear-gradient(180deg, #f9a1ba 0%, #ef6e95 50%, #d94174 100%);
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.22));
}

.unlock-stage.is-happy .unlock-heart {
  background: linear-gradient(180deg, #ffc1d7 0%, #ff7ba5 48%, #ff4c87 100%);
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.22)) drop-shadow(0 0 12px rgba(255, 131, 176, 0.24));
}

.unlock-face {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.unlock-eye,
.unlock-mouth,
.unlock-blush {
  position: absolute;
  transition: all 0.26s ease;
}

.unlock-eye {
  top: 42%;
  width: 24px;
  height: 30px;
  background: #5f122b;
  border-radius: 50%;
  box-shadow: inset 0 -3px 0 rgba(255, 255, 255, 0.08);
}

.unlock-eye::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  top: 6px;
  left: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
}

.eye-left {
  left: 38%;
}

.eye-right {
  right: 38%;
}

.unlock-blush {
  top: 55%;
  width: 36px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 231, 240, 0.42);
  filter: blur(4px);
  opacity: 0.22;
}

.blush-left {
  left: 26%;
}

.blush-right {
  right: 26%;
}

.unlock-mouth {
  left: 50%;
  top: 61%;
  width: 56px;
  height: 28px;
  transform: translateX(-50%);
  border-bottom: 5px solid #751834;
  border-radius: 0 0 40px 40px;
}

.unlock-stage.is-sad .unlock-heart-shell {
  animation: unlockShake 0.46s ease-in-out 3;
}

.unlock-stage.is-sad .unlock-eye {
  top: 43%;
  width: 26px;
  height: 18px;
  background: transparent;
  box-shadow: none;
}

.unlock-stage.is-sad .unlock-eye::after {
  display: none;
}

.unlock-stage.is-sad .eye-left {
  border-top: 4px solid #6b1731;
  border-radius: 60% 60% 0 0;
  transform: rotate(12deg);
}

.unlock-stage.is-sad .eye-right {
  border-top: 4px solid #6b1731;
  border-radius: 60% 60% 0 0;
  transform: rotate(-12deg);
}

.unlock-stage.is-sad .unlock-mouth {
  top: 63%;
  width: 48px;
  height: 20px;
  border-bottom: none;
  border-top: 5px solid #751834;
  border-radius: 40px 40px 0 0;
}

.unlock-stage.is-sad .unlock-blush {
  opacity: 0.1;
}

.unlock-stage.is-happy .unlock-eye {
  top: 41%;
  height: 28px;
}

.unlock-stage.is-happy .unlock-mouth {
  top: 60%;
  width: 62px;
  height: 34px;
  border-bottom-width: 6px;
}

.unlock-stage.is-happy .unlock-blush {
  opacity: 0.48;
}

.heart-chains {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 4;
  pointer-events: none;
}

.heart-chain {
  position: absolute;
  width: clamp(250px, 28vw, 290px);
  height: 22px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 15px 50%, transparent 0 7px, rgba(248, 245, 252, 0.86) 7px 10px, transparent 10px) 0 0 / 30px 100% repeat-x,
    radial-gradient(circle at 0 50%, transparent 0 7px, rgba(128, 120, 138, 0.92) 7px 10px, transparent 10px) 15px 0 / 30px 100% repeat-x,
    linear-gradient(180deg, rgba(235, 232, 241, 0.92), rgba(135, 128, 145, 0.94));
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
  opacity: 0.96;
  transition: transform 0.7s cubic-bezier(0.22, 0.9, 0.28, 1), opacity 0.55s ease;
}

.chain-a {
  transform: rotate(34deg);
}

.chain-b {
  transform: rotate(-34deg);
}

.chain-c {
  width: clamp(220px, 24vw, 248px);
  transform: rotate(2deg) translateY(18px);
}

.unlock-stage.is-unlocked .chain-a {
  transform: translate(-136px, -118px) rotate(8deg);
  opacity: 0;
}

.unlock-stage.is-unlocked .chain-b {
  transform: translate(136px, -118px) rotate(-8deg);
  opacity: 0;
}

.unlock-stage.is-unlocked .chain-c {
  transform: translateY(132px) rotate(0deg);
  opacity: 0;
}

.unlock-lock-btn {
  position: absolute;
  top: 58%;
  left: 50%;
  width: 82px;
  height: 82px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  background: rgba(33, 5, 18, 0.78);
  color: white;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  z-index: 5;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.22);
  transition: transform 0.26s ease, box-shadow 0.26s ease, opacity 0.26s ease, background 0.26s ease;
}

.unlock-lock-btn span {
  font-size: 1.9rem;
  line-height: 1;
}

.unlock-lock-btn:hover:not(:disabled),
.unlock-lock-btn:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.22), 0 0 14px rgba(255, 123, 165, 0.16);
}

.unlock-lock-btn:focus-visible {
  outline: none;
}

.unlock-lock-btn:disabled {
  cursor: default;
}

.unlock-stage.is-unlocked .unlock-lock-btn {
  opacity: 0;
  transform: translate(-50%, -84%) scale(0.82) rotate(-10deg);
  pointer-events: none;
}

.unlock-panel {
  position: relative;
  z-index: 4;
  width: min(640px, 100%);
  min-height: clamp(110px, 14vh, 136px);
  display: grid;
  gap: 10px;
  justify-items: center;
  align-content: center;
  transition: opacity 0.36s ease, transform 0.36s ease;
}

.unlock-label {
  color: rgba(255, 238, 244, 0.88);
  letter-spacing: 0.08rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.26s ease, transform 0.26s ease;
}

.unlock-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.26s ease, transform 0.26s ease;
}

.unlock-stage.picker-open .unlock-label,
.unlock-stage.picker-open .unlock-controls {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.unlock-date-input {
  width: 240px;
  height: 52px;
  padding: 0 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 250, 252, 0.95);
  color: #5d1731;
  font: inherit;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.12);
}

.unlock-date-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 127, 171, 0.3), 0 16px 34px rgba(0, 0, 0, 0.12);
}

.unlock-date-input::-webkit-calendar-picker-indicator {
  cursor: pointer;
}

.unlock-stage.is-missing .unlock-date-input {
  box-shadow: 0 0 0 2px rgba(255, 150, 187, 0.38), 0 16px 34px rgba(0, 0, 0, 0.12);
}

.unlock-submit {
  min-width: 200px;
}

.unlock-status {
  min-height: 26px;
  color: rgba(255, 237, 243, 0.74);
  transition: color 0.24s ease, opacity 0.3s ease, transform 0.3s ease;
}

.unlock-stage.is-missing .unlock-status {
  color: rgba(255, 228, 238, 0.94);
}

.unlock-stage.is-sad .unlock-status {
  color: #ffd2df;
}

.unlock-stage.is-happy .unlock-status {
  color: #fff2f8;
}

.unlock-stage.is-expanding .unlock-panel {
  opacity: 0;
  transform: translateY(18px);
}

.letter-card {
  max-width: 900px;
  text-align: center;
}

.letter-card h1 {
  margin-bottom: 24px;
}

.letter-paper {
  height: clamp(280px, 48vh, 470px);
  margin: 0 auto 28px;
  padding: 44px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.96), rgba(255, 245, 238, 0.9));
  color: #4d1830;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 20px 55px rgba(0, 0, 0, 0.18);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(179, 35, 92, 0.36) rgba(77, 24, 48, 0.08);
}

.typewriter-text {
  white-space: pre-wrap;
  font-family: "Great Vibes", cursive;
  font-size: 2.1rem;
  line-height: 1.48;
  min-height: 100%;
  padding-right: 8px;
}

.letter-paper::-webkit-scrollbar {
  width: 10px;
}

.letter-paper::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(179, 35, 92, 0.32);
}

.letter-paper::-webkit-scrollbar-track {
  background: rgba(77, 24, 48, 0.06);
}

.cursor {
  display: inline-block;
  width: 10px;
  height: 32px;
  border-radius: 999px;
  background: #b3235c;
  animation: blink 1s steps(1) infinite;
}

.hidden-action {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.hidden-action.revealed {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.proposal-card {
  width: min(1120px, 100%);
  text-align: center;
}

.proposal-lead {
  max-width: 760px;
  margin: 18px auto 34px;
}

.proposal-playfield {
  position: relative;
  width: min(900px, 100%);
  height: clamp(290px, 44vh, 380px);
  margin: 0 auto;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.yes-area {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: grid;
  gap: 0;
  justify-items: center;
  width: auto;
}

.yes-button {
  --heart-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='black' d='M256 468c-10.9 0-21.4-4-29.7-12l-21.3-19.7C95.1 334.4 32 276.1 32 182.2 32 102.8 92.3 44 170.1 44c34.5 0 67.7 15.8 89.9 42.4C282.2 59.8 315.4 44 349.9 44 427.7 44 488 102.8 488 182.2c0 93.9-63.1 152.2-173 254.1l-21.3 19.7c-8.3 8-18.8 12-29.7 12z'/%3E%3C/svg%3E");
  position: relative;
  width: 292px;
  height: 262px;
  padding: 0;
  border: none;
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 255, 255, 0.26), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
  -webkit-mask: var(--heart-mask) center / contain no-repeat;
  mask: var(--heart-mask) center / contain no-repeat;
  overflow: hidden;
  cursor: pointer;
  isolation: isolate;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.28));
  transition: filter 0.24s ease, opacity 0.24s ease;
}

.yes-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.03) 45%, rgba(0, 0, 0, 0.08) 100%);
  z-index: 0;
  pointer-events: none;
}

.yes-button:hover,
.yes-button:focus-visible {
  transform: none;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.28)) drop-shadow(0 0 14px rgba(255, 121, 169, 0.34)) drop-shadow(0 0 28px rgba(255, 76, 135, 0.24));
}

.yes-button:active {
  transform: none;
}

.yes-button:focus-visible {
  outline: none;
}

.yes-fill,
.yes-heart-layer,
.yes-label {
  position: absolute;
  inset: 0;
}

.yes-fill {
  top: auto;
  bottom: 0;
  height: var(--yes-progress);
  background: linear-gradient(180deg, #ffd4e2 0%, #ff8db5 45%, #ff4c87 100%);
  transition: height 0.08s linear;
  z-index: 1;
}

.yes-heart-layer {
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}

.yes-label {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  color: white;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.02rem;
  line-height: 1.3;
  padding: 42px 58px 46px;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.yes-pop-heart {
  position: absolute;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.95);
  animation: riseHeart 0.9s ease-out forwards;
}

.no-button {
  position: absolute;
  top: 72px;
  left: 90px;
  min-width: 124px;
  z-index: 3;
}

.finale-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(18px, 2.4vh, 26px);
  align-items: stretch;
  justify-items: center;
  min-height: min(78vh, 740px);
}

.finale-copy {
  width: 100%;
  max-width: 980px;
  text-align: center;
}

.finale-line {
  min-height: clamp(58px, 9vh, 86px);
  font-family: "Great Vibes", cursive;
  font-size: clamp(3.2rem, 5.2vw, 5.4rem);
  line-height: 1.18;
  color: var(--rose-pale);
  text-shadow: 0 10px 28px rgba(255, 95, 143, 0.24);
}

.finale-heart {
  display: inline-block;
  margin-left: 10px;
  opacity: 0;
  transform: scale(0.9);
}

.finale-heart.revealed {
  opacity: 1;
  animation: heartBreathe 2.4s ease-in-out infinite;
}

.ambient-stage {
  position: relative;
  width: min(980px, 100%);
  height: clamp(360px, 56vh, 620px);
  min-height: 0;
  border-radius: 34px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  isolation: isolate;
}

.ambient-glow {
  --offset-x: 0px;
  --offset-y: 0px;
  position: absolute;
  border-radius: 50%;
  filter: blur(36px);
  opacity: 0.9;
  animation: glowDrift 12s ease-in-out infinite;
}

.glow-a {
  width: 300px;
  height: 300px;
  background: var(--ambient-1);
  top: 50px;
  left: 60px;
}

.glow-b {
  width: 380px;
  height: 380px;
  background: var(--ambient-2);
  top: 160px;
  right: 40px;
  animation-delay: -4s;
}

.glow-c {
  --offset-x: -50%;
  width: 360px;
  height: 360px;
  background: var(--ambient-3);
  bottom: 0;
  left: 45%;
  animation-delay: -7s;
}

.video-shell {
  position: absolute;
  inset: clamp(22px, 4.4vh, 56px) clamp(20px, 4.8vw, 72px);
  border-radius: 28px;
  overflow: hidden;
  background: rgba(10, 0, 7, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  z-index: 3;
  isolation: isolate;
}

#memoryVideo,
.memory-backdrop,
.memory-image,
.video-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#memoryVideo,
.memory-backdrop,
.memory-image {
  background: #10020a;
}

#memoryVideo {
  object-fit: cover;
}

.memory-backdrop {
  object-fit: cover;
  transform: scale(1.08);
  filter: blur(20px);
  opacity: 0.78;
  z-index: 1;
}

.memory-image {
  background: transparent;
  object-fit: contain;
  object-position: center;
  z-index: 2;
}

.video-toggle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 92px;
  height: 92px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(12, 0, 7, 0.42);
  color: white;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%) scale(0.92);
  opacity: 0;
  pointer-events: none;
  z-index: 5;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: opacity 0.24s ease, transform 0.24s ease, background 0.24s ease;
}

.video-shell:hover .video-toggle {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.video-toggle:hover {
  background: rgba(255, 255, 255, 0.18);
}

.video-toggle-icon {
  display: inline-block;
  font-size: 2rem;
  line-height: 1;
  transform: translateX(2px);
}

.video-toggle[data-state="pause"] .video-toggle-icon {
  font-size: 1.45rem;
  letter-spacing: -0.2rem;
  transform: none;
}

.video-placeholder {
  display: grid;
  place-items: center;
  gap: 22px;
  text-align: center;
  padding: 32px;
  background:
    radial-gradient(circle at center, rgba(255, 94, 143, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(25, 3, 13, 0.48), rgba(11, 0, 6, 0.78));
}

.placeholder-title {
  color: var(--rose-pale);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.placeholder-copy {
  color: rgba(255, 247, 251, 0.72);
  line-height: 1.8;
  max-width: 420px;
}

.play-ring {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.04));
  position: relative;
}

.play-ring::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-34%, -50%);
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 24px solid rgba(255, 255, 255, 0.95);
}

body.mobile-blocked {
  overflow: hidden;
}

body.mobile-blocked #particles,
body.mobile-blocked .experience {
  display: none;
}

body.mobile-blocked .gate-screen {
  display: flex;
}

@media (max-width: 1024px) {
  body {
    overflow: hidden;
  }

  #particles,
  .experience {
    display: none;
  }

  .gate-screen {
    display: flex;
  }
}

@keyframes floatParticle {
  0% {
    transform: translate3d(0, 12vh, 0) scale(0.75);
    opacity: 0;
  }

  15% {
    opacity: 0.3;
  }

  100% {
    transform: translate3d(0, -120vh, 0) scale(1.15);
    opacity: 0;
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes unlockShake {
  0%,
  100% {
    transform: translateX(0) scale(1);
  }

  20% {
    transform: translateX(-12px) scale(1.02);
  }

  40% {
    transform: translateX(12px) scale(1.02);
  }

  60% {
    transform: translateX(-9px) scale(1.01);
  }

  80% {
    transform: translateX(9px) scale(1.01);
  }
}

@keyframes unlockBeatPop {
  0% {
    transform: scale(1);
  }

  30% {
    transform: scale(1.12);
  }

  58% {
    transform: scale(0.96);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes riseHeart {
  0% {
    transform: translateY(0) scale(0.8);
    opacity: 0.95;
  }

  100% {
    transform: translateY(-54px) scale(1.2);
    opacity: 0;
  }
}

@keyframes glowDrift {
  0%,
  100% {
    transform: translate(var(--offset-x), var(--offset-y)) scale(1);
  }

  50% {
    transform: translate(calc(var(--offset-x) + 16px), calc(var(--offset-y) - 20px)) scale(1.08);
  }
}

@keyframes heartBreathe {
  0%,
  100% {
    opacity: 0.62;
    transform: scale(0.94);
  }

  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}
