:root {
  --red-900: #6f0710;
  --red-800: #98111b;
  --red-700: #bd1720;
  --red-600: #d71920;
  --cream-50: #fffaf0;
  --cream-100: #fff1cd;
  --cream-200: #f8dda0;
  --gold-400: #f6c453;
  --gold-600: #c98d18;
  --white: #ffffff;
  --ink: #3b1215;
  --board-900: #123f37;
  --board-800: #1c554a;
  --school-brown: #5b341f;
  --shadow: 0 22px 70px rgba(82, 4, 12, 0.28);
  --stage-w: min(100vw, calc(100vh * 16 / 9));
  --stage-h: min(100vh, calc(100vw * 9 / 16));
  --header-zone: 12%;
  --footer-zone: 11%;
  --font-display: "Playfair Display", Georgia, serif;
  --font-script: "Dancing Script", cursive;
  --font-ui: "Be Vietnam Pro", Arial, sans-serif;
  --type-kicker: clamp(1rem, 1.1vw, 1.375rem);
  --type-ui: clamp(1rem, 1vw, 1.25rem);
  --type-control: clamp(0.75rem, 0.75vw, 0.875rem);
  --type-small: clamp(1.125rem, 1.2vw, 1.5rem);
  --type-body: clamp(1.25rem, 1.6vw, 2rem);
  --type-lead: clamp(1.625rem, 2.2vw, 2.75rem);
  --type-title: clamp(3.5rem, 5vw, 6rem);
  --type-question: clamp(3rem, 4.5vw, 5rem);
  --type-emotional: clamp(2.75rem, 5vw, 6rem);
  --type-hero: clamp(6rem, 8vw, 9rem);
  --type-mega: clamp(4rem, 6vw, 7rem);
  font-family: var(--font-ui);
}

* {
  box-sizing: border-box;
}

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

html {
  font-size: 16px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  display: grid;
  place-items: center;
  min-height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 10%, rgba(246, 196, 83, 0.28), transparent 34%),
    radial-gradient(circle at 90% 90%, rgba(215, 25, 32, 0.30), transparent 30%),
    #250308;
  color: var(--ink);
  font-family: var(--font-ui);
  line-height: 1.5;
}

.text-display {
  font-family: var(--font-display);
}

.text-script {
  font-family: var(--font-script);
}

.text-ui {
  font-family: var(--font-ui);
}

.slide-title {
  font-family: var(--font-display);
  font-size: var(--type-hero);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.slide-eyebrow {
  font-family: var(--font-ui);
  font-size: var(--type-kicker);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.slide-question {
  font-family: var(--font-ui);
  font-size: var(--type-question);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: 0;
  color: var(--board-900);
}

.slide-emotional {
  font-family: var(--font-script);
  font-size: var(--type-emotional);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0;
}

.person-name {
  font-family: var(--font-ui);
  font-size: var(--type-mega);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.hint-text {
  font-family: var(--font-ui);
  font-size: var(--type-lead);
  font-weight: 700;
  line-height: 1.3;
}

.answer-text {
  font-family: var(--font-ui);
  font-size: var(--type-lead);
  font-weight: 800;
  line-height: 1.25;
}

.progress-text,
.timer-text {
  font-family: var(--font-ui);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

button {
  min-height: 30px;
  border: 0;
  border-radius: 7px;
  padding: 0 9px;
  color: var(--cream-50);
  background: linear-gradient(180deg, #9f1721, var(--red-900));
  box-shadow: 0 6px 12px rgba(111, 7, 16, 0.18);
  font: 700 var(--type-control) / 1.1 var(--font-ui);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

button:hover,
button:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.05);
  outline: 3px solid rgba(246, 196, 83, 0.55);
  outline-offset: 2px;
}

button:active {
  transform: translateY(1px) scale(0.98);
}

.app-shell {
  width: var(--stage-w);
  height: var(--stage-h);
  display: grid;
  place-items: center;
}

.stage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.96), rgba(255, 241, 205, 0.93)),
    var(--cream-100);
  box-shadow: var(--shadow);
}

.stage::before,
.stage::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.stage::before {
  width: 22%;
  aspect-ratio: 1.6;
  left: 1%;
  top: 12%;
  opacity: 0.58;
  background: url("assets/decor/watercolor-phuong-petals.png") center / contain no-repeat;
  filter: drop-shadow(0 14px 18px rgba(111, 7, 16, 0.15));
  transform: rotate(-14deg);
  animation: watercolorDrift 9s ease-in-out infinite;
}

.stage::after {
  width: 22%;
  aspect-ratio: 1.6;
  right: 0.5%;
  bottom: 11.5%;
  opacity: 0.68;
  background: url("assets/decor/watercolor-book-stack.png") center / contain no-repeat;
  filter: drop-shadow(0 18px 24px rgba(111, 7, 16, 0.15));
  transform: rotate(5deg);
}

.stage:fullscreen {
  width: 100vw;
  height: 100vh;
}

.stage-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.72), transparent 20%),
    radial-gradient(circle at 76% 18%, rgba(246, 196, 83, 0.34), transparent 22%),
    linear-gradient(120deg, transparent 0 62%, rgba(215, 25, 32, 0.11) 62% 100%);
}

.stage-bg::before,
.stage-bg::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  border: 2px solid rgba(215, 25, 32, 0.10);
}

.stage-bg::before {
  width: 36%;
  aspect-ratio: 1;
  right: -12%;
  top: -18%;
}

.stage-bg::after {
  width: 28%;
  aspect-ratio: 1;
  left: -10%;
  bottom: -18%;
}

.memory-line {
  position: absolute;
  left: 3.8%;
  right: 3.8%;
  top: 7.2%;
  height: 24%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.52;
}

.memory-rope {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: 96px;
  overflow: visible;
}

.memory-rope-main,
.memory-rope-shadow {
  fill: none;
  stroke-linecap: round;
}

.memory-rope-shadow {
  stroke: rgba(255, 250, 240, 0.65);
  stroke-width: 5;
}

.memory-rope-main {
  stroke: rgba(91, 52, 31, 0.42);
  stroke-width: 2.4;
  stroke-dasharray: 12 7;
}

.hanging-photo {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: clamp(68px, 7.6vw, 124px);
  margin: 0;
  padding: 7px 7px 20px;
  border-radius: 4px;
  background: rgba(255, 250, 240, 0.94);
  box-shadow:
    0 12px 24px rgba(91, 52, 31, 0.13),
    inset 0 0 0 1px rgba(91, 52, 31, 0.08);
  transform: translateX(-50%) rotate(var(--rotation));
  transform-origin: 50% -24px;
  animation: hangingSway 9s ease-in-out infinite;
  animation-delay: var(--delay);
}

.hanging-photo::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -31px;
  width: 1.5px;
  height: 31px;
  background: linear-gradient(180deg, rgba(91, 52, 31, 0.12), rgba(91, 52, 31, 0.48));
  transform: translateX(-50%);
}

.hanging-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
  filter: sepia(0.14) saturate(0.92) contrast(0.96);
}

.photo-clip {
  position: absolute;
  left: 50%;
  top: -5px;
  z-index: 1;
  width: 18px;
  height: 22px;
  border-radius: 4px 4px 2px 2px;
  background:
    linear-gradient(90deg, rgba(91, 52, 31, 0.18), transparent 42% 58%, rgba(91, 52, 31, 0.16)),
    linear-gradient(180deg, #d5a45b, #946128);
  box-shadow: 0 2px 4px rgba(91, 52, 31, 0.20);
  transform: translateX(-50%);
}

.photo-clip::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -10px;
  width: 10px;
  height: 10px;
  border: 2px solid rgba(91, 52, 31, 0.42);
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  background: transparent;
  transform: translateX(-50%) rotate(45deg);
}

.decor-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.decor {
  position: absolute;
  display: block;
  height: auto;
  user-select: none;
  filter: saturate(0.94) drop-shadow(0 14px 24px rgba(111, 7, 16, 0.10));
}

.decor-blackboard {
  width: 35%;
  left: -7%;
  bottom: 13%;
  opacity: 0.16;
  transform: rotate(-5deg);
  animation: memoryFade 12s ease-in-out infinite;
}

.decor-polaroids {
  width: 27%;
  right: -5%;
  top: 17%;
  opacity: 0.24;
  transform: rotate(8deg);
  animation: albumFloat 10s ease-in-out infinite;
}

.decor-supplies {
  width: 31%;
  left: 20%;
  bottom: -3.5%;
  opacity: 0.30;
  transform: rotate(-2deg);
  animation: suppliesFloat 11s ease-in-out infinite;
}

.topbar,
.bottombar {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 5;
}

.topbar {
  left: 3.2%;
  right: 3.2%;
  top: 3.6%;
}

.bottombar {
  bottom: 0;
  height: var(--footer-zone);
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) auto minmax(420px, 1.8fr);
  gap: 8px;
  padding: 8px 3.2% 9px;
  border-top: 1px solid rgba(111, 7, 16, 0.13);
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.72), rgba(255, 241, 205, 0.94)),
    rgba(255, 241, 205, 0.92);
  box-shadow: 0 -12px 28px rgba(111, 7, 16, 0.08);
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--red-900);
}

.brand-logo {
  display: grid;
  place-items: center;
  width: clamp(72px, 7.5vw, 108px);
  height: clamp(72px, 7.5vw, 108px);
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid rgba(111, 7, 16, 0.10);
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.96), rgba(255, 241, 205, 0.86)),
    var(--cream-50);
  box-shadow: 0 10px 24px rgba(111, 7, 16, 0.10);
}

.logo-fallback {
  color: var(--cream-50);
  font-family: var(--font-display);
  font-size: var(--type-title);
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 10px 22px rgba(111, 7, 16, 0.22);
}

.eyebrow,
.question-heading p,
.kicker {
  margin: 0 0 4px;
  color: var(--school-brown);
  font-family: var(--font-ui);
  font-size: var(--type-kicker);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-transform: uppercase;
}

.brand strong,
.class-name {
  font-family: var(--font-ui);
  font-size: var(--type-small);
  line-height: 1.25;
  color: var(--ink);
}

.class-name {
  padding: 10px 16px;
  border: 1px solid rgba(111, 7, 16, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.slide {
  position: absolute;
  inset: var(--header-zone) 4.4% calc(var(--footer-zone) + 2.5%) 4.4%;
  display: grid;
  align-items: stretch;
  justify-items: stretch;
  overflow: hidden;
  z-index: 2;
}

.slide::before,
.slide::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.slide::before {
  width: 15%;
  aspect-ratio: 1.6;
  right: 6%;
  top: 0;
  opacity: 0.38;
  background: url("assets/decor/watercolor-phuong-petals.png") center / contain no-repeat;
  filter: drop-shadow(0 10px 16px rgba(111, 7, 16, 0.12));
  transform: rotate(18deg);
  animation: petalFloat 7s ease-in-out infinite;
}

.slide::after {
  width: 13%;
  aspect-ratio: 1.6;
  left: 4%;
  bottom: 1%;
  opacity: 0.48;
  background: url("assets/decor/watercolor-giao-an-book.png") center / contain no-repeat;
  filter: drop-shadow(0 12px 18px rgba(111, 7, 16, 0.12));
  transform: rotate(-8deg);
  animation: bookFloatSmall 8s ease-in-out infinite;
}

.slide.is-entering {
  animation: slideIn 360ms cubic-bezier(0.2, 0.7, 0.1, 1) both;
}

.opening-layout,
.ending-layout,
.question-card {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
}

.opening-layout::before,
.ending-layout::before,
.question-card::before {
  content: "";
  position: absolute;
  inset: 1% 0 auto auto;
  width: 10%;
  aspect-ratio: 1.6;
  pointer-events: none;
  opacity: 0.18;
  z-index: -1;
  background: url("assets/decor/watercolor-phuong-petals.png") center / contain no-repeat;
  transform: rotate(20deg);
}

.opening-layout {
  align-content: center;
  gap: 18px;
}

.opening-title {
  display: grid;
  place-items: center;
  gap: 0;
}

.opening-title .slide-title {
  display: block;
}

.opening-script {
  display: block;
  margin-top: -0.18em;
  color: var(--red-800);
  text-shadow:
    0 2px 0 var(--cream-50),
    0 0 22px rgba(246, 196, 83, 0.62);
  transform: rotate(-3deg);
}

.glow-title,
.call-title {
  margin: 0;
  max-width: 12ch;
  color: var(--red-700);
  font-family: var(--font-display);
  font-size: var(--type-hero);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.95;
  text-shadow:
    0 2px 0 var(--cream-50),
    0 0 24px rgba(246, 196, 83, 0.72),
    0 0 46px rgba(215, 25, 32, 0.32);
}

.opening-layout h2 {
  margin: 0;
  color: var(--red-800);
}

.year-pill {
  margin: 0;
  padding: 12px 26px;
  border-radius: 999px;
  color: var(--red-900);
  background: linear-gradient(180deg, var(--gold-400), var(--cream-100));
  box-shadow: 0 10px 24px rgba(201, 141, 24, 0.24);
  font-family: var(--font-ui);
  font-size: var(--type-lead);
  font-weight: 700;
  line-height: 1.15;
}

.opening-note {
  max-width: 760px;
  margin: 6px 0 0;
  color: rgba(59, 18, 21, 0.78);
  font-family: var(--font-script);
  font-size: var(--type-lead);
  font-weight: 600;
  line-height: 1.2;
}

.question-card {
  grid-template-rows: auto 1fr auto;
  align-items: stretch;
  justify-items: center;
  gap: 10px;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
  padding: 0.5% 3% 0;
}

.question-card.is-revealed .question-heading {
  gap: 4px;
}

.question-card.is-revealed .question-heading h1 {
  font-size: clamp(1.9rem, 2.8vw, 3.2rem);
}

.question-card.is-revealed .question-memory {
  display: none;
}

.question-heading {
  display: grid;
  justify-items: center;
  gap: 6px;
}

.question-heading h1 {
  margin: 0;
  color: var(--board-900);
  font-family: var(--font-ui);
  font-size: var(--type-question);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.18;
}

.question-memory {
  display: block;
  color: rgba(91, 52, 31, 0.78);
  font-size: clamp(2rem, 3vw, 3.5rem);
  font-weight: 600;
  line-height: 1;
}

.question-body {
  width: 100%;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.photo-challenge,
.memory-layout,
.final-call {
  display: grid;
  place-items: center;
  gap: 14px;
  max-height: 100%;
  min-height: 0;
  overflow: hidden;
}

.question-card.is-revealed .photo-challenge,
.question-card.is-revealed .memory-layout,
.question-card.is-revealed .final-call {
  gap: 8px;
}

.photo-frame {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 8px solid var(--white);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff8e6, #f6c453);
  box-shadow: 0 18px 46px rgba(111, 7, 16, 0.24);
}

.photo-frame.portrait {
  width: min(29vw, 38vh);
  aspect-ratio: 4 / 5;
}

.question-card.is-revealed .photo-frame.portrait {
  width: min(18vw, 30vh);
}

.photo-frame.wide {
  width: min(58vw, 78vh);
  aspect-ratio: 16 / 9;
}

.question-card.is-revealed .photo-frame.wide {
  width: min(40vw, 46vh);
}

.photo-img,
.photo-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 24px;
  color: var(--red-900);
  text-align: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 241, 205, 0.86)),
    repeating-linear-gradient(45deg, rgba(215, 25, 32, 0.10) 0 10px, transparent 10px 20px);
}

.placeholder-mark {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  color: var(--cream-50);
  background: var(--red-700);
  font-family: var(--font-ui);
  font-size: var(--type-lead);
  font-weight: 900;
  line-height: 1;
}

.photo-placeholder strong {
  font-family: var(--font-ui);
  font-size: var(--type-lead);
  line-height: 1.15;
}

.photo-placeholder small {
  color: rgba(59, 18, 21, 0.70);
  font-weight: 700;
}

.blur-photo .photo-img {
  filter: blur(18px) saturate(0.9);
  transform: scale(1.08);
  transition: filter 520ms ease, transform 520ms ease;
}

.clear-photo .photo-img {
  filter: blur(0) saturate(1);
  transform: scale(1);
  transition: filter 520ms ease, transform 520ms ease;
}

.silhouette-photo .photo-img {
  filter: brightness(0) contrast(1.2);
  opacity: 0.84;
  transform: scale(1.04);
  transition: filter 520ms ease, opacity 520ms ease, transform 520ms ease;
}

.eyes-mask-photo .photo-img {
  filter: saturate(0.92) contrast(1.04);
  transform: scale(1.05);
  transition: filter 520ms ease, transform 520ms ease;
}

.eyes-mask-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 18%, rgba(246, 196, 83, 0.34), transparent 26%),
    linear-gradient(135deg, rgba(111, 7, 16, 0.96), rgba(189, 23, 32, 0.91) 46%, rgba(255, 241, 205, 0.94));
  clip-path: polygon(0 0, 100% 0, 100% 34%, 0 34%, 0 54%, 100% 54%, 100% 100%, 0 100%);
  transition: opacity 520ms ease;
}

.eyes-window {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 34%;
  height: 20%;
  z-index: 3;
  pointer-events: none;
  border: 2px solid rgba(255, 241, 205, 0.88);
  border-radius: 999px;
  box-shadow:
    inset 0 0 22px rgba(255, 250, 240, 0.36),
    0 0 0 6px rgba(111, 7, 16, 0.18),
    0 14px 32px rgba(111, 7, 16, 0.28);
  animation: eyesWindowGlow 1.9s ease-in-out infinite;
}

.zoom-crop .photo-img {
  transform: scale(2.35) translate(10%, 8%);
  transition: transform 700ms cubic-bezier(0.19, 1, 0.22, 1);
}

.zoom-revealed .photo-img {
  transform: scale(1) translate(0, 0);
  transition: transform 700ms cubic-bezier(0.19, 1, 0.22, 1);
}

.challenge-caption {
  margin: 0;
  color: var(--board-900);
  font-family: var(--font-ui);
  font-size: var(--type-lead);
  font-weight: 800;
  line-height: 1.25;
}

.question-card.is-revealed .challenge-caption {
  font-size: clamp(1.1rem, 1.55vw, 1.7rem);
  line-height: 1.15;
}

.nickname-card,
.text-question,
.vote-layout {
  position: relative;
  width: min(82%, 960px);
  padding: clamp(28px, 4vw, 56px);
  border: 2px solid rgba(215, 25, 32, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 48px rgba(111, 7, 16, 0.16);
}

.question-card.is-revealed .nickname-card,
.question-card.is-revealed .text-question,
.question-card.is-revealed .vote-layout {
  padding: clamp(18px, 2.4vw, 34px);
}

.nickname-card::after,
.text-question::after,
.vote-layout::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 16px;
  width: clamp(72px, 8vw, 130px);
  aspect-ratio: 1.6;
  opacity: 0.18;
  background: url("assets/decor/watercolor-phuong-petals.png") center / contain no-repeat;
  transform: rotate(-14deg);
}

.nickname-card span,
.hint-box span,
.answer-box span,
.then-now-face span {
  display: block;
  margin-bottom: 10px;
  color: var(--school-brown);
  font-family: var(--font-ui);
  font-size: var(--type-kicker);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.nickname-card strong {
  display: block;
  color: var(--board-900);
  font-family: var(--font-ui);
  font-size: var(--type-mega);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.05;
}

.nickname-card p,
.text-question p,
.vote-layout p,
.final-call p,
.ending-line {
  margin: 0;
  color: var(--board-900);
  font-family: var(--font-ui);
  font-size: var(--type-title);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.22;
}

.question-card.is-revealed .text-question p,
.question-card.is-revealed .vote-layout p,
.question-card.is-revealed .final-call p {
  font-size: clamp(1.6rem, 2.5vw, 3rem);
  line-height: 1.15;
}

.text-question small,
.vote-layout small {
  display: block;
  margin-top: 18px;
  color: rgba(59, 18, 21, 0.72);
  font-size: var(--type-lead);
  font-weight: 800;
  line-height: 1.35;
}

.question-card.is-revealed .text-question small,
.question-card.is-revealed .vote-layout small {
  margin-top: 10px;
  font-size: clamp(1.05rem, 1.55vw, 1.6rem);
  line-height: 1.25;
}

.friend-grid {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 3vw, 48px);
}

.then-now-card {
  width: min(46vw, 70vh);
  aspect-ratio: 4 / 5;
  perspective: 1200px;
}

.question-card.is-revealed .then-now-card {
  width: min(20vw, 32vh);
}

.question-card.is-revealed .memory-layout .memory-photo {
  display: none;
}

.then-now-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 720ms cubic-bezier(0.2, 0.7, 0.1, 1);
}

.then-now-card.is-flipped .then-now-inner {
  transform: rotateY(180deg);
}

.then-now-face {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 10px;
  padding: 14px;
  border-radius: 8px;
  background: var(--white);
  backface-visibility: hidden;
  box-shadow: 0 18px 46px rgba(111, 7, 16, 0.24);
}

.then-now-back {
  transform: rotateY(180deg);
}

.then-now-face .photo-img,
.then-now-face .photo-placeholder {
  border-radius: 6px;
}

.vote-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.question-card.is-revealed .vote-options {
  gap: 10px;
  margin-top: 12px;
}

.vote-options button {
  min-height: 48px;
  color: var(--board-900);
  background: linear-gradient(180deg, var(--cream-50), var(--cream-200));
  font-size: var(--type-body);
  line-height: 1.2;
}

.feedback-row {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 12px;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  overflow: hidden;
}

.hint-box,
.answer-box {
  min-width: min(38vw, 520px);
  max-width: min(46vw, 620px);
  padding: 10px 18px;
  border-radius: 8px;
  font-size: var(--type-lead);
  font-weight: 900;
  line-height: 1.25;
  animation: popIn 240ms ease both;
}

.hint-box {
  color: var(--board-900);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(201, 141, 24, 0.34);
}

.answer-box {
  color: var(--cream-50);
  background: linear-gradient(135deg, var(--red-700), var(--red-900));
  box-shadow: 0 16px 32px rgba(111, 7, 16, 0.24);
}

.answer-box span {
  color: var(--gold-400);
  text-shadow: 0 2px 8px rgba(111, 7, 16, 0.48);
}

.answer-intro {
  display: block;
  margin-bottom: 4px;
  color: rgba(255, 241, 205, 0.94);
  font-size: clamp(1.6rem, 2.4vw, 3rem);
  font-weight: 700;
  line-height: 1.04;
  text-transform: none;
}

.question-card.is-revealed .answer-intro {
  margin-bottom: 2px;
  font-size: clamp(1.1rem, 1.55vw, 1.7rem);
}

.answer-value {
  display: block;
  color: #ffffff;
  font-size: clamp(2.2rem, 3.9vw, 4.8rem);
  line-height: 1.05;
  text-shadow:
    0 2px 0 rgba(111, 7, 16, 0.65),
    0 0 18px rgba(246, 196, 83, 0.38);
  text-transform: uppercase;
}

.question-card.is-revealed .answer-value {
  font-size: clamp(1.55rem, 2.35vw, 2.8rem);
}

.progress-block {
  min-width: 170px;
  color: var(--red-900);
  font-weight: 900;
}

.progress-track {
  width: min(16vw, 210px);
  height: 6px;
  margin-top: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(111, 7, 16, 0.14);
}

.progress-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red-600), var(--gold-400));
  transition: width 260ms ease;
}

.timer {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 64px;
  color: var(--red-900);
  font-family: var(--font-ui);
  font-size: clamp(1.1rem, 1.55vw, 1.7rem);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.timer.is-off {
  opacity: 0.42;
}

.timer-ring {
  width: 32px;
  height: 32px;
  transform: rotate(-90deg);
}

.timer-ring-bg,
.timer-ring-fg {
  fill: none;
  stroke-width: 5;
}

.timer-ring-bg {
  stroke: rgba(111, 7, 16, 0.14);
}

.timer-ring-fg {
  stroke: var(--red-600);
  stroke-linecap: round;
  stroke-dasharray: 113;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 260ms ease;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
  align-items: center;
}

.ending-layout,
.final-call {
  align-content: center;
  gap: 18px;
}

.final-lines {
  display: grid;
  place-items: center;
  gap: 0;
}

.ending-script {
  margin: -0.08em 0 0;
  color: var(--red-800);
  font-size: clamp(2.5rem, 4.8vw, 5.75rem);
  font-weight: 700;
  line-height: 1.05;
}

.ending-line.delayed {
  color: var(--red-800);
}

.call-title {
  max-width: 16ch;
  font-size: var(--type-hero);
}

.final-cta {
  display: grid;
  gap: 0.04em;
  max-width: 18ch;
  color: var(--red-800);
  font-family: var(--font-ui);
  font-size: clamp(4rem, 6.8vw, 8rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.98;
  text-transform: uppercase;
}

.question-card.is-revealed .final-cta {
  font-size: clamp(2.2rem, 4.2vw, 4.8rem);
  line-height: 0.96;
}

.soft-title {
  max-width: 18ch;
  margin: 0;
  color: var(--red-800);
  font-family: var(--font-script);
  font-size: var(--type-emotional);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.05;
}

.confetti-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 20;
}

.confetti-piece {
  position: absolute;
  top: -24px;
  border-radius: 2px;
  animation: confettiFall 1200ms ease-in forwards;
}

.petal-fall-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.falling-petal {
  position: absolute;
  display: block;
  height: auto;
  filter: drop-shadow(0 4px 6px rgba(111, 7, 16, 0.12));
  transform: translate3d(0, 0, 0) rotate(var(--petal-rotate-start));
  animation: petalDriftFall cubic-bezier(0.42, 0, 0.22, 1) forwards;
  user-select: none;
  will-change: transform, opacity;
}

.is-pulsing {
  animation: pulse 480ms ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(28px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.12);
  }
}

@keyframes watercolorDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-14deg);
  }
  50% {
    transform: translate3d(0, -10px, 0) rotate(-11deg);
  }
}

@keyframes petalFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(18deg);
  }
  50% {
    transform: translate3d(-8px, 8px, 0) rotate(22deg);
  }
}

@keyframes bookFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(7deg);
  }
  50% {
    transform: translate3d(0, -6px, 0) rotate(5deg);
  }
}

@keyframes bookFloatSmall {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-8deg);
  }
  50% {
    transform: translate3d(7px, -5px, 0) rotate(-6deg);
  }
}

@keyframes memoryFade {
  0%,
  100% {
    opacity: 0.14;
    transform: translate3d(0, 0, 0) rotate(-5deg);
  }
  50% {
    opacity: 0.20;
    transform: translate3d(0, -5px, 0) rotate(-4deg);
  }
}

@keyframes albumFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(8deg);
  }
  50% {
    transform: translate3d(-7px, 6px, 0) rotate(6deg);
  }
}

@keyframes suppliesFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-2deg);
  }
  50% {
    transform: translate3d(8px, -4px, 0) rotate(-1deg);
  }
}

@keyframes hangingSway {
  0%,
  100% {
    transform: translateX(-50%) rotate(var(--rotation));
  }
  50% {
    transform: translateX(-50%) rotate(calc(var(--rotation) + var(--sway)));
  }
}

@keyframes eyesWindowGlow {
  0%,
  100% {
    opacity: 0.82;
    transform: scaleX(1);
  }
  50% {
    opacity: 1;
    transform: scaleX(1.025);
  }
}

@keyframes petalDriftFall {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(var(--petal-rotate-start));
  }
  10% {
    opacity: 0.78;
  }
  24% {
    transform: translate3d(var(--petal-x1), var(--petal-y1), 0) rotate(var(--petal-rotate-1));
  }
  50% {
    transform: translate3d(var(--petal-x2), var(--petal-y2), 0) rotate(var(--petal-rotate-2));
  }
  76% {
    opacity: 0.72;
    transform: translate3d(var(--petal-x3), var(--petal-y3), 0) rotate(var(--petal-rotate-3));
  }
  92% {
    opacity: 0.58;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--petal-x4), var(--petal-y4), 0) rotate(var(--petal-rotate-4));
  }
}

@keyframes confettiFall {
  to {
    transform: translate3d(var(--drift), 108vh, 0) rotate(var(--spin));
    opacity: 0.9;
  }
}

@media (min-width: 1440px) and (min-height: 810px) {
  :root {
    --type-kicker: clamp(1.125rem, 1.1vw, 1.5rem);
    --type-ui: clamp(1rem, 0.95vw, 1.25rem);
    --type-control: clamp(0.75rem, 0.72vw, 0.9rem);
    --type-small: clamp(1.25rem, 1.2vw, 1.625rem);
    --type-body: clamp(1.5rem, 1.7vw, 2.25rem);
    --type-lead: clamp(2rem, 2.2vw, 3rem);
    --type-title: clamp(4rem, 5vw, 6.5rem);
    --type-question: clamp(3.5rem, 4.5vw, 5.5rem);
    --type-emotional: clamp(3.25rem, 5vw, 6.5rem);
    --type-hero: clamp(7rem, 8vw, 10rem);
    --type-mega: clamp(5rem, 6vw, 7.5rem);
  }
}

@media (max-width: 920px) {
  :root {
    --header-zone: 12%;
    --footer-zone: 17%;
    --type-kicker: clamp(0.75rem, 1.1vw, 1rem);
    --type-ui: clamp(0.75rem, 1vw, 0.95rem);
    --type-control: clamp(0.7rem, 0.9vw, 0.8rem);
    --type-small: clamp(0.875rem, 1.2vw, 1.1rem);
    --type-body: clamp(1rem, 1.6vw, 1.25rem);
    --type-lead: clamp(1.25rem, 2.2vw, 1.75rem);
    --type-title: clamp(2rem, 5vw, 3.25rem);
    --type-question: clamp(2.5rem, 4.5vw, 3.5rem);
    --type-emotional: clamp(2.25rem, 5vw, 3.75rem);
    --type-hero: clamp(4rem, 8vw, 5.5rem);
    --type-mega: clamp(4rem, 6vw, 5.25rem);
  }

  .stage::before,
  .stage::after,
  .slide::before,
  .slide::after {
    opacity: 0.38;
  }

  .decor-blackboard {
    opacity: 0.12;
  }

  .decor-polaroids {
    opacity: 0.18;
  }

  .decor-supplies {
    opacity: 0.20;
  }

  .memory-line {
    left: 2%;
    right: 2%;
    top: 9%;
    height: 19%;
    opacity: 0.34;
  }

  .hanging-photo {
    width: clamp(50px, 8vw, 76px);
    padding: 6px 6px 16px;
  }

  .topbar,
  .bottombar {
    left: 0;
    right: 0;
  }

  .topbar {
    left: 2%;
    right: 2%;
  }

  .bottombar {
    grid-template-columns: minmax(140px, 1fr) auto;
    padding: 6px 2% 7px;
    gap: 6px;
  }

  .controls {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .controls {
    gap: 5px;
  }

  button {
    min-height: 28px;
    padding: 0 7px;
  }

  .class-name {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
