:root {
  color-scheme: light;
  --paper: #fffdf7;
  --paper-warm: #fff4df;
  --paper-aged: #f4ead6;
  --ink: #241d19;
  --muted: #725f52;
  --line: rgba(62, 44, 34, 0.2);
  --red: #d9221a;
  --red-soft: rgba(217, 34, 26, 0.13);
  --yellow: #ff8fc7;
  --yellow-soft: rgba(255, 143, 199, 0.24);
  --orange: #f27d1e;
  --blue: #0d85a8;
  --mint: #80d5c8;
  --pink: #e889b3;
  --green: #54a66d;
  --green-soft: rgba(84, 166, 109, 0.18);
  --gray: #5f5c58;
  --radius: 5px;
  --shadow: 0 18px 42px rgba(65, 41, 20, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  font-family:
    "Trebuchet MS", "Gill Sans", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 16%, rgba(255, 143, 199, 0.12), transparent 16rem),
    radial-gradient(circle at 90% 10%, rgba(13, 133, 168, 0.1), transparent 18rem),
    linear-gradient(rgba(73, 56, 35, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(73, 56, 35, 0.028) 1px, transparent 1px),
    var(--paper);
  background-size: auto, auto, 34px 34px, 34px 34px, auto;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.app {
  position: relative;
  min-height: 100vh;
  padding: 34px;
  overflow: hidden;
  transition: background 220ms ease;
}

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

.app::before {
  inset: 0;
  opacity: 0.45;
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 0, 0, 0.055) 0 1px, transparent 1.5px),
    radial-gradient(circle at 70% 60%, rgba(0, 0, 0, 0.035) 0 1px, transparent 1.5px);
  background-size: 19px 23px, 31px 29px;
  mix-blend-mode: multiply;
}

.app::after {
  right: -90px;
  bottom: -80px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(255, 143, 199, 0.12);
  filter: blur(1px);
}

.app[data-alert="danger"] {
  background:
    repeating-linear-gradient(
      -8deg,
      rgba(217, 34, 26, 0.14) 0 16px,
      rgba(255, 253, 247, 0.5) 16px 30px
    ),
    var(--paper);
}

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

.hat {
  position: absolute;
  left: 42px;
  top: 108px;
  width: 92px;
  height: 124px;
  transform: rotate(-22deg);
  background:
    linear-gradient(135deg, transparent 0 50%, #86b9cf 50% 55%, transparent 56%),
    repeating-linear-gradient(120deg, #f6e2c5 0 12px, #fff7ea 12px 20px);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  filter: drop-shadow(0 9px 0 rgba(33, 25, 20, 0.12));
}

.hat::before {
  content: "";
  position: absolute;
  left: 27px;
  top: -14px;
  width: 40px;
  height: 28px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, #93c3d8 0 2px, #cfe7ef 2px 4px);
}

.hat::after {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: -2px;
  height: 16px;
  border-radius: 999px;
  background: repeating-linear-gradient(90deg, #93c3d8 0 8px, #cfe7ef 8px 16px);
}

.balloon {
  position: absolute;
  width: 72px;
  height: 92px;
  border-radius: 50% 50% 45% 45%;
  opacity: 0.92;
  filter: drop-shadow(0 9px 0 rgba(35, 26, 16, 0.12));
}

.balloon::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 15px;
  width: 18px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.34);
  transform: rotate(20deg);
}

.balloon::after {
  content: "";
  position: absolute;
  left: 33px;
  top: 88px;
  width: 1px;
  height: 118px;
  background: #2f2925;
  transform: rotate(var(--string, 8deg));
  transform-origin: top;
}

.balloon-red {
  right: 294px;
  top: 66px;
  background: radial-gradient(circle at 32% 26%, #ff695f, var(--red) 62%, #a91914);
  --string: -5deg;
}

.balloon-yellow {
  right: 382px;
  top: 108px;
  background: radial-gradient(circle at 30% 28%, #ffe37b, var(--yellow) 62%, #c78312);
  transform: rotate(-8deg);
  --string: 14deg;
}

.balloon-orange {
  right: 202px;
  top: 120px;
  background: radial-gradient(circle at 31% 25%, #ffc15d, var(--orange) 62%, #bf4e11);
  transform: rotate(7deg);
  --string: -12deg;
}

.balloon-blue {
  right: 146px;
  top: 210px;
  background: radial-gradient(circle at 32% 25%, #5bbbd4, var(--blue) 62%, #055978);
  transform: rotate(12deg);
  --string: -22deg;
}

.shell {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
  min-height: 228px;
  margin-bottom: 18px;
}

.brand-lockup {
  position: relative;
  width: min(760px, 100%);
}

.brand-lockup::after {
  content: "";
  position: absolute;
  left: 28px;
  bottom: 10px;
  width: min(620px, 82vw);
  height: 18px;
  background: rgba(35, 29, 25, 0.12);
  filter: blur(6px);
  z-index: -1;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  border: 1px solid rgba(36, 29, 25, 0.18);
  padding: 6px 10px;
  background: #fff;
  color: var(--muted);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: uppercase;
  transform: rotate(-1.5deg);
  box-shadow: 2px 3px 0 rgba(36, 29, 25, 0.08);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  letter-spacing: 0;
}

.collage-title {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: clamp(0px, 0.4vw, 5px);
  max-width: 820px;
  line-height: 0.82;
}

.cutout {
  --angle: 0deg;
  display: inline-grid;
  place-items: center;
  min-width: clamp(38px, 5.8vw, 64px);
  height: clamp(54px, 7.1vw, 76px);
  border: 1px solid rgba(35, 29, 25, 0.12);
  padding: 0 7px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.45rem, 6.7vw, 4.65rem);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  transform: rotate(var(--angle)) translateY(var(--lift, 0));
  box-shadow:
    0 8px 0 rgba(36, 29, 25, 0.08),
    inset 0 0 22px rgba(36, 29, 25, 0.08);
  text-shadow: 1px 1px rgba(255, 255, 255, 0.45);
}

.cutout:nth-child(2n) {
  --angle: 1.5deg;
}

.cutout:nth-child(3n) {
  --angle: -2deg;
}

.cutout:nth-child(5n) {
  --lift: 7px;
}

.cutout.red {
  background: #b71e1b;
  color: #fff7df;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
}

.cutout.black {
  background: #151515;
  color: #f9f3e8;
  font-family: "Arial Black", Impact, sans-serif;
}

.cutout.yellow {
  background: #f5d15a;
  color: #174f46;
  font-family: Georgia, serif;
}

.cutout.mint {
  background: #e6fff4;
  color: #4fc3bd;
  font-family: "Trebuchet MS", sans-serif;
}

.cutout.orange {
  background: #f58a20;
  color: #6c5f54;
  font-family: Verdana, sans-serif;
}

.cutout.cream {
  background: #f5efe2;
  color: #151515;
}

.cutout.pink {
  background: #f0a8c7;
  color: #25201d;
  font-family: Georgia, serif;
}

.cutout.white {
  background: #fff;
  color: #0e0d0d;
  font-family: Georgia, serif;
}

.cutout.gray {
  background: #555553;
  color: #222;
  font-family: "Arial Black", Impact, sans-serif;
}

.cutout.coral {
  background: #e75a48;
  color: #fff1df;
  font-family: "Arial Black", Impact, sans-serif;
}

.cutout.small {
  min-width: clamp(30px, 4.4vw, 50px);
  height: clamp(45px, 6.1vw, 66px);
  font-size: clamp(2.15rem, 5.8vw, 4rem);
  text-transform: none;
}

.cutout.tall {
  height: clamp(62px, 8.2vw, 86px);
}

.cutout.wide {
  min-width: clamp(58px, 8vw, 92px);
}

.cutout.lower {
  text-transform: none;
  transform: rotate(var(--angle)) translateY(18px);
}

.cutout.tilt {
  --angle: -5deg;
}

.name-ticket {
  display: inline-block;
  margin: 18px 0 0 10px;
  border: 2px solid rgba(36, 29, 25, 0.18);
  padding: 10px 18px;
  background: #fff;
  color: var(--red);
  font-family: Georgia, serif;
  font-size: clamp(1.8rem, 4.2vw, 3.2rem);
  font-weight: 900;
  line-height: 0.9;
  transform: rotate(-3deg);
  box-shadow: 7px 7px 0 rgba(255, 143, 199, 0.34);
}

h2 {
  display: inline;
  margin-bottom: 10px;
  background:
    linear-gradient(transparent 58%, rgba(255, 143, 199, 0.38) 58%),
    transparent;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 4.4vw, 3.7rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0;
}

.status-pill {
  min-width: fit-content;
  border: 1px solid rgba(36, 29, 25, 0.2);
  border-radius: 2px;
  padding: 10px 13px;
  background: #fff;
  color: var(--muted);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.88rem;
  transform: rotate(2deg);
  box-shadow: 4px 5px 0 rgba(13, 133, 168, 0.13);
}

.module-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.nav-dot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  border: 1px solid rgba(36, 29, 25, 0.18);
  border-radius: 2px;
  padding: 10px 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(244, 234, 214, 0.82)),
    var(--paper-aged);
  cursor: pointer;
  box-shadow: 3px 5px 0 rgba(36, 29, 25, 0.08);
  transform: rotate(var(--nav-angle, -0.6deg));
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.nav-dot:nth-child(2n) {
  --nav-angle: 0.8deg;
}

.nav-dot span {
  display: grid;
  place-items: center;
  min-width: 36px;
  height: 34px;
  background: var(--ink);
  color: #fffaf0;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.82rem;
  font-weight: 900;
}

.nav-dot b {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 900;
}

.nav-dot:hover:not(.locked),
.nav-dot:focus-visible:not(.locked) {
  transform: rotate(0deg) translateY(-2px);
  box-shadow: 5px 8px 0 rgba(36, 29, 25, 0.11);
  outline: none;
}

.nav-dot.active {
  background: #f7dd70;
}

.nav-dot.done {
  background: #dff3df;
}

.nav-dot.locked {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.35);
}

.screen {
  position: relative;
  overflow: hidden;
  min-height: min(650px, calc(100vh - 170px));
  border: 1px solid rgba(36, 29, 25, 0.18);
  border-radius: 2px;
  background:
    linear-gradient(rgba(36, 29, 25, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 29, 25, 0.025) 1px, transparent 1px),
    var(--paper-warm);
  background-size: 26px 26px, 26px 26px, auto;
  box-shadow: var(--shadow);
}

.screen::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px dashed rgba(36, 29, 25, 0.12);
  pointer-events: none;
}

.screen::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -34px;
  width: 170px;
  height: 150px;
  background: rgba(255, 255, 255, 0.54);
  transform: rotate(-8deg);
  box-shadow: inset 0 0 20px rgba(36, 29, 25, 0.08);
  pointer-events: none;
}

.view {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: min(650px, calc(100vh - 170px));
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  gap: 24px;
  padding: clamp(22px, 4vw, 42px);
}

.view.split {
  grid-template-columns: 0.94fr 1.06fr;
  align-items: start;
}

.panel {
  max-width: 800px;
}

.lede {
  max-width: 680px;
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.22rem);
  font-weight: 650;
  line-height: 1.56;
}

.fine {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.verify-note {
  display: inline-grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  margin-top: 24px;
  border: 1px solid rgba(36, 29, 25, 0.18);
  border-radius: 2px;
  padding: 10px 12px;
  background: #fff;
  box-shadow: 4px 5px 0 rgba(36, 29, 25, 0.09);
  transform: rotate(-0.5deg);
}

.verify-note b {
  color: var(--red);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.verify-note span {
  color: var(--muted);
  font-weight: 850;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 2px solid rgba(36, 29, 25, 0.82);
  border-radius: 3px;
  padding: 0 18px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
  box-shadow: 4px 5px 0 rgba(36, 29, 25, 0.2);
  transform: rotate(-0.7deg);
  transition:
    transform 120ms ease,
    box-shadow 120ms ease,
    background 120ms ease;
}

.btn:nth-child(2n) {
  transform: rotate(0.8deg);
}

.btn:hover,
.btn:focus-visible {
  background: #fff8dd;
  box-shadow: 2px 3px 0 rgba(36, 29, 25, 0.24);
  transform: rotate(0deg) translateY(2px);
  outline: none;
}

.btn.primary {
  border-color: var(--ink);
  background: var(--yellow);
  color: var(--ink);
}

.btn.warn {
  border-color: var(--red);
  background: #fff;
  color: var(--red);
}

.btn.ghost {
  background: #f7efe2;
}

.btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.hero-meter {
  --level: 0%;
  position: relative;
  display: grid;
  width: 100%;
  min-height: 320px;
  align-items: end;
  border: 2px solid var(--ink);
  border-radius: 2px;
  padding: 22px;
  background:
    linear-gradient(
      0deg,
      rgba(84, 166, 109, 0.86) 0 var(--level),
      rgba(255, 255, 255, 0.92) var(--level) 100%
    ),
    repeating-linear-gradient(45deg, rgba(36, 29, 25, 0.05) 0 12px, transparent 12px 24px);
  box-shadow:
    8px 10px 0 rgba(36, 29, 25, 0.14),
    inset 0 0 32px rgba(36, 29, 25, 0.08);
  transition: background 110ms linear;
  transform: rotate(1deg);
}

.tap-meter {
  appearance: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  transition:
    background 110ms linear,
    transform 120ms ease,
    box-shadow 120ms ease,
    filter 120ms ease;
}

.tap-meter:hover,
.tap-meter:focus-visible {
  box-shadow:
    5px 7px 0 rgba(36, 29, 25, 0.18),
    inset 0 0 38px rgba(36, 29, 25, 0.08);
  transform: rotate(0.4deg) translateY(2px);
  outline: none;
}

.tap-meter:focus-visible {
  border-color: var(--red);
}

.tap-meter:disabled {
  cursor: wait;
}

.tap-meter.tap-hit {
  animation: meterTap 160ms ease both;
}

.hero-meter::before {
  content: "";
  position: absolute;
  left: 18px;
  top: -18px;
  width: 96px;
  height: 34px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(36, 29, 25, 0.12);
  transform: rotate(-6deg);
}

.hero-meter.danger {
  background:
    repeating-linear-gradient(-10deg, rgba(217, 34, 26, 0.92) 0 18px, #fff 18px 32px);
  animation: hardBlink 380ms steps(2, end) 2;
}

.meter-corner {
  position: absolute;
  right: 18px;
  top: 16px;
  border: 1px solid rgba(36, 29, 25, 0.16);
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  transform: rotate(1.5deg);
}

.meter-number {
  color: var(--ink);
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(4rem, 12vw, 8.5rem);
  line-height: 0.85;
  text-shadow: 4px 4px 0 rgba(255, 255, 255, 0.62);
}

.meter-label {
  display: inline-block;
  margin-top: 12px;
  padding: 7px 10px;
  background: #fff;
  color: var(--muted);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.terminal {
  display: grid;
  gap: 8px;
  min-height: 132px;
  border: 1px solid rgba(36, 29, 25, 0.18);
  border-radius: 2px;
  padding: 16px;
  background: #fff;
  color: var(--ink);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.45;
  box-shadow: 5px 7px 0 rgba(13, 133, 168, 0.12);
  transform: rotate(-0.5deg);
}

.terminal p {
  margin: 0;
}

.terminal .bad {
  color: var(--red);
}

.terminal .good {
  color: var(--green);
}

.shake {
  animation: shake 420ms ease both;
}

.question-box {
  display: grid;
  gap: 18px;
  max-width: 780px;
}

.progress-line {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.86rem;
  font-weight: 900;
}

.progress-track {
  overflow: hidden;
  flex: 1;
  height: 14px;
  border: 1px solid rgba(36, 29, 25, 0.24);
  border-radius: 999px;
  background: #fff;
}

.progress-fill {
  width: var(--fill, 0%);
  height: 100%;
  background: repeating-linear-gradient(90deg, var(--yellow) 0 16px, #fff1a6 16px 28px);
  transition: width 220ms ease;
}

.answers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.answer {
  min-height: 72px;
  border: 1px solid rgba(36, 29, 25, 0.22);
  border-radius: 2px;
  padding: 15px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 4px 6px 0 rgba(36, 29, 25, 0.08);
  transform: rotate(var(--answer-angle, -0.4deg));
  transition:
    transform 130ms ease,
    box-shadow 130ms ease,
    background 130ms ease;
}

.answer:nth-child(2n) {
  --answer-angle: 0.6deg;
}

.answer:nth-child(3n) {
  --answer-angle: -1.2deg;
}

.answer:hover,
.answer:focus-visible {
  background: #fff8dd;
  transform: rotate(0deg) translateY(-2px);
  outline: none;
}

.answer.correct {
  background: #e5f2d6;
}

.answer.soft {
  background: #fff2b4;
}

.answer.fleeing {
  z-index: 2;
}

.quiz-image-slot {
  position: relative;
  display: grid;
  min-height: clamp(230px, 34vw, 360px);
  align-content: center;
  gap: 10px;
  border: 2px dashed rgba(36, 29, 25, 0.28);
  border-radius: 2px;
  padding: clamp(20px, 4vw, 34px);
  background:
    linear-gradient(135deg, rgba(255, 143, 199, 0.2), transparent 42%),
    linear-gradient(rgba(36, 29, 25, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 29, 25, 0.03) 1px, transparent 1px),
    #fff;
  background-size: auto, 26px 26px, 26px 26px, auto;
  box-shadow: 8px 10px 0 rgba(36, 29, 25, 0.09);
  transform: rotate(-0.45deg);
}

.quiz-image-slot.has-image {
  height: auto;
  min-height: 0;
  padding: clamp(10px, 2.4vw, 18px);
  place-items: center;
  background:
    linear-gradient(rgba(36, 29, 25, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 29, 25, 0.022) 1px, transparent 1px),
    #fff;
  background-size: 24px 24px, 24px 24px, auto;
}

.quiz-image-slot img {
  position: relative;
  z-index: 1;
  display: block;
  width: auto;
  height: clamp(360px, 58vh, 620px);
  max-width: 100%;
  max-height: none;
  border: 1px solid rgba(36, 29, 25, 0.14);
  background: #fff;
  object-fit: contain;
  box-shadow: 4px 6px 0 rgba(36, 29, 25, 0.12);
}

.quiz-image-slot::before {
  content: "";
  position: absolute;
  left: 28px;
  top: -16px;
  width: 116px;
  height: 32px;
  border: 1px solid rgba(36, 29, 25, 0.12);
  background: rgba(255, 255, 255, 0.76);
  transform: rotate(-4deg);
}

.quiz-image-slot::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(36, 29, 25, 0.08);
  pointer-events: none;
}

.quiz-image-slot span {
  color: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 0.95;
}

.quiz-image-slot small {
  max-width: 560px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.45;
}

.quiz-image-slot.answered {
  border-color: rgba(84, 166, 109, 0.65);
  background:
    linear-gradient(135deg, rgba(84, 166, 109, 0.14), transparent 42%),
    linear-gradient(rgba(36, 29, 25, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 29, 25, 0.03) 1px, transparent 1px),
    #fff;
}

.answer-reveal {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: stretch;
}

.answer-reveal .actions {
  grid-column: 1 / -1;
  margin-top: 0;
}

.answer-image-slot {
  position: relative;
  display: grid;
  min-height: 168px;
  align-content: center;
  gap: 8px;
  border: 2px dashed rgba(36, 29, 25, 0.26);
  border-radius: 2px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(255, 143, 199, 0.18), transparent 42%),
    #fff;
  box-shadow: 5px 7px 0 rgba(36, 29, 25, 0.08);
  transform: rotate(-0.7deg);
}

.answer-image-slot::before {
  content: "";
  position: absolute;
  left: 20px;
  top: -14px;
  width: 88px;
  height: 28px;
  border: 1px solid rgba(36, 29, 25, 0.12);
  background: rgba(255, 255, 255, 0.72);
  transform: rotate(-4deg);
}

.answer-image-slot span {
  color: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  font-weight: 900;
  line-height: 1;
}

.answer-image-slot small {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.4;
}

.reaction {
  min-height: 54px;
  border: 1px solid rgba(36, 29, 25, 0.18);
  border-left: 8px solid var(--yellow);
  padding: 13px 15px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.48;
  box-shadow: 4px 6px 0 rgba(36, 29, 25, 0.08);
}

.photo-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 18px;
  align-items: stretch;
}

.photo-booth {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  border: 2px solid var(--ink);
  border-radius: 2px;
  background:
    radial-gradient(circle at 25% 18%, rgba(255, 143, 199, 0.34), transparent 18rem),
    radial-gradient(circle at 84% 20%, rgba(13, 133, 168, 0.25), transparent 14rem),
    #f7efe2;
  box-shadow: 8px 10px 0 rgba(36, 29, 25, 0.14);
  transform: rotate(-0.5deg);
}

.photo-booth video,
.photo-booth canvas,
.fallback-portrait {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-booth video {
  opacity: 0.74;
  transform: scaleX(-1);
}

.fallback-portrait {
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(36, 29, 25, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 29, 25, 0.035) 1px, transparent 1px),
    #fff8ea;
  background-size: 24px 24px;
}

.portrait-card {
  width: min(270px, 62vw);
  border: 1px solid rgba(36, 29, 25, 0.2);
  border-radius: 2px;
  padding: 24px;
  background: #fff;
  text-align: center;
  box-shadow: 6px 8px 0 rgba(36, 29, 25, 0.1);
  transform: rotate(2deg);
}

.portrait-face {
  width: 112px;
  height: 112px;
  margin: 0 auto 16px;
  border: 2px solid rgba(36, 29, 25, 0.16);
  border-radius: 48% 52% 50% 47%;
  background:
    radial-gradient(circle at 36% 34%, #2a2521 0 5px, transparent 6px),
    radial-gradient(circle at 64% 34%, #2a2521 0 5px, transparent 6px),
    radial-gradient(circle at 50% 62%, #d56c62 0 12px, transparent 13px),
    linear-gradient(#3b2a22 0 38%, #f1bda5 39% 100%);
}

.character {
  position: absolute;
  display: grid;
  place-items: center;
  width: 72px;
  height: 96px;
  border: 1px solid rgba(36, 29, 25, 0.24);
  border-radius: 2px;
  background: #fff;
  box-shadow: 5px 7px 0 rgba(36, 29, 25, 0.1);
}

.character::before {
  content: "";
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent, var(--green));
  box-shadow: 0 47px 0 -8px rgba(36, 29, 25, 0.16);
}

.character:nth-child(1) {
  left: 8%;
  top: 14%;
  --accent: var(--yellow);
  transform: rotate(-8deg);
}

.character:nth-child(2) {
  right: 13%;
  top: 12%;
  --accent: var(--blue);
  transform: rotate(6deg);
}

.character:nth-child(3) {
  left: 18%;
  bottom: 12%;
  --accent: var(--orange);
  transform: rotate(4deg);
}

.character:nth-child(4) {
  right: 8%;
  bottom: 15%;
  --accent: var(--pink);
  transform: rotate(-5deg);
}

.character:nth-child(5) {
  left: 44%;
  top: 8%;
  --accent: var(--red);
  transform: rotate(2deg);
}

.focus-frame {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(42vw, 250px);
  aspect-ratio: 0.78;
  border: 3px dashed var(--red);
  border-radius: 2px;
  transform: translate(-50%, -50%) rotate(1deg);
  box-shadow: 0 0 0 999px rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.focus-frame::after {
  content: "центр кадра";
  position: absolute;
  left: 50%;
  bottom: -38px;
  transform: translateX(-50%) rotate(-2deg);
  border: 1px solid rgba(36, 29, 25, 0.14);
  padding: 7px 10px;
  background: #fff;
  color: var(--red);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.flash {
  position: absolute;
  inset: 0;
  background: white;
  opacity: 0;
  pointer-events: none;
}

.flash.active {
  animation: flash 440ms ease;
}

.photo-side,
.archive-side {
  display: grid;
  align-content: start;
  gap: 12px;
  border: 1px solid rgba(36, 29, 25, 0.18);
  border-radius: 2px;
  padding: 16px;
  background: #fff;
  box-shadow: 5px 7px 0 rgba(36, 29, 25, 0.08);
}

.snapshot {
  overflow: hidden;
  aspect-ratio: 1.25;
  border: 1px solid rgba(36, 29, 25, 0.2);
  border-radius: 2px;
  background: #fff8ea;
}

.snapshot canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.beauty-meter {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(36, 29, 25, 0.14);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.beauty-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.86rem;
  font-weight: 900;
}

.beauty-track {
  position: relative;
  height: 18px;
  border: 1px solid rgba(36, 29, 25, 0.18);
  border-radius: 999px;
  background: #fff8ea;
}

.beauty-track span {
  position: absolute;
  left: 0;
  top: -1px;
  display: block;
  width: var(--fill, 0%);
  height: calc(100% + 2px);
  border-radius: 999px;
  background: var(--yellow);
  transition: width 520ms ease;
}

.beauty-track span.over-limit {
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(217, 34, 26, 0.1);
}

.file-game {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
}

.file-stack {
  position: relative;
  min-height: 430px;
  border: 1px solid rgba(36, 29, 25, 0.18);
  border-radius: 2px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(255, 143, 199, 0.22), transparent 42%),
    #fff8ea;
  box-shadow: inset 0 0 0 12px rgba(255, 255, 255, 0.42);
}

.file-card {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 18px;
  display: grid;
  gap: 12px;
  min-height: 260px;
  border: 1px solid rgba(36, 29, 25, 0.2);
  border-radius: 2px;
  padding: 18px;
  background: #fff;
  cursor: grab;
  user-select: none;
  touch-action: none;
  box-shadow: 7px 9px 0 rgba(36, 29, 25, 0.1);
  transform: rotate(-1deg);
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.file-card.dragging {
  cursor: grabbing;
  transition: none;
}

.file-card small {
  color: var(--muted);
  font-family: "Courier New", Courier, monospace;
  font-weight: 900;
}

.file-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 92px;
  border: 1px solid rgba(36, 29, 25, 0.18);
  border-radius: 2px;
  background: #f5d15a;
  color: var(--ink);
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: 1.2rem;
  font-weight: 900;
  transform: rotate(3deg);
}

.drop-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.drop-zone {
  min-height: 142px;
  border: 2px dashed rgba(36, 29, 25, 0.26);
  border-radius: 2px;
  padding: 14px;
  background: #fff8ea;
}

.drop-zone.hot {
  border-color: var(--green);
  background: var(--green-soft);
}

.drop-zone.delete.hot {
  border-color: var(--red);
  background: var(--red-soft);
}

.memory-meter {
  display: grid;
  gap: 8px;
}

.memory-bar {
  overflow: hidden;
  height: 18px;
  border: 1px solid rgba(36, 29, 25, 0.2);
  border-radius: 999px;
  background: #fff8ea;
}

.memory-fill {
  width: var(--fill, 0%);
  height: 100%;
  background: repeating-linear-gradient(90deg, var(--yellow) 0 18px, var(--orange) 18px 30px, var(--red) 30px 42px);
  transition: width 220ms ease;
}

.final-actions {
  position: relative;
  min-height: 160px;
}

.evade {
  position: absolute;
}

.evade:first-child {
  left: 0;
  top: 10px;
}

.evade:nth-child(2) {
  left: 170px;
  top: 76px;
}

.result-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.result-item {
  border: 1px solid rgba(36, 29, 25, 0.18);
  border-radius: 2px;
  padding: 15px;
  background: #fff;
  box-shadow: 4px 6px 0 rgba(36, 29, 25, 0.08);
  transform: rotate(var(--item-angle, -0.6deg));
}

.result-item:nth-child(2n) {
  --item-angle: 0.8deg;
}

.result-item b {
  display: block;
  margin-bottom: 6px;
  color: var(--red);
  font-family: "Courier New", Courier, monospace;
  font-size: 1.05rem;
  font-weight: 900;
}

.gift-reveal {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin: 24px 0;
}

.gift-card {
  position: relative;
  overflow: hidden;
  display: block;
  width: 100%;
  aspect-ratio: 0.78;
  border: 2px solid var(--ink);
  border-radius: 3px;
  padding: 0;
  background: #d8d5cf;
  cursor: pointer;
  box-shadow: 9px 11px 0 rgba(36, 29, 25, 0.13);
  transform: rotate(-1deg);
}

.gift-card::before {
  content: "";
  position: absolute;
  left: 24px;
  top: -16px;
  z-index: 3;
  width: 110px;
  height: 34px;
  border: 1px solid rgba(36, 29, 25, 0.12);
  background: rgba(255, 255, 255, 0.76);
  transform: rotate(-5deg);
}

.gift-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter:
    grayscale(var(--gift-gray, 1))
    blur(var(--gift-blur, 8px))
    brightness(var(--gift-brightness, 0.4));
  transform: scale(1.03);
  transition:
    filter 360ms ease,
    transform 360ms ease;
}

.gift-question {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(24, 23, 22, var(--gift-shade, 0.78));
  color: #fff;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(5rem, 16vw, 10rem);
  text-shadow: 5px 5px 0 rgba(36, 29, 25, 0.28);
  transition:
    opacity 260ms ease,
    transform 260ms ease;
}

.gift-card.revealed img {
  filter: none;
  transform: scale(1);
}

.gift-card.revealed .gift-question {
  opacity: 0;
  transform: scale(1.2) rotate(8deg);
  pointer-events: none;
}

.gift-card[data-gift-key="photo"]:not(.revealed) {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 32%),
    repeating-linear-gradient(
      -45deg,
      #9e9a91 0 18px,
      #8f8b83 18px 36px
    );
}

.gift-card[data-gift-key="photo"]:not(.revealed) img {
  opacity: 0;
}

.gift-card[data-gift-key="photo"]:not(.revealed) .gift-question {
  background: rgba(24, 23, 22, 0.82);
  font-size: clamp(3.2rem, 9vw, 5.8rem);
  text-transform: uppercase;
  letter-spacing: 0;
}

.gift-shake {
  animation: giftShake 360ms ease both;
}

.gift-copy {
  display: grid;
  gap: 10px;
  max-width: 520px;
}

.gift-progress {
  overflow: hidden;
  width: min(360px, 100%);
  height: 16px;
  border: 1px solid rgba(36, 29, 25, 0.2);
  border-radius: 999px;
  background: #fff;
}

.gift-progress span {
  display: block;
  width: var(--fill, 0%);
  height: 100%;
  background: repeating-linear-gradient(90deg, var(--yellow) 0 16px, var(--orange) 16px 28px);
  transition: width 180ms ease;
}

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

.confetti-piece {
  position: absolute;
  top: -20px;
  display: block;
  width: 9px;
  height: 15px;
  border-radius: 1px;
  background: var(--piece, var(--yellow));
  animation: fall var(--speed, 1800ms) ease-in forwards;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0) rotate(-1deg);
  }
  18% {
    transform: translateX(-8px) rotate(-2deg);
  }
  36% {
    transform: translateX(7px) rotate(1deg);
  }
  54% {
    transform: translateX(-5px) rotate(-1deg);
  }
  72% {
    transform: translateX(4px) rotate(1deg);
  }
}

@keyframes meterTap {
  0%,
  100% {
    transform: rotate(1deg) scale(1);
  }
  48% {
    transform: rotate(0.2deg) scale(0.985);
  }
}

@keyframes hardBlink {
  0% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.2) saturate(1.4);
  }
}

@keyframes flash {
  0% {
    opacity: 0;
  }
  18% {
    opacity: 0.96;
  }
  100% {
    opacity: 0;
  }
}

@keyframes fall {
  from {
    transform: translate3d(0, -20px, 0) rotate(0deg);
    opacity: 1;
  }
  to {
    transform: translate3d(var(--drift, 0), 110vh, 0) rotate(520deg);
    opacity: 0.92;
  }
}

@keyframes giftShake {
  0%,
  100% {
    transform: rotate(-1deg) translate(0, 0);
  }
  20% {
    transform: rotate(-3deg) translate(-5px, 2px);
  }
  42% {
    transform: rotate(2deg) translate(5px, -2px);
  }
  64% {
    transform: rotate(-2deg) translate(-3px, 1px);
  }
  82% {
    transform: rotate(1deg) translate(3px, -1px);
  }
}

@media (max-width: 920px) {
  .app {
    padding: 18px;
  }

  .topbar {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: 220px;
  }

  .status-pill {
    justify-self: start;
  }

  .balloon {
    opacity: 0.42;
    transform: scale(0.72);
  }

  .balloon-red {
    right: 120px;
    top: 54px;
  }

  .balloon-yellow {
    right: 178px;
    top: 92px;
  }

  .balloon-orange,
  .balloon-blue {
    display: none;
  }

  .hat {
    left: auto;
    right: 18px;
    top: 120px;
    width: 68px;
    height: 94px;
  }

  .module-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .view.split,
  .photo-stage,
  .gift-reveal,
  .file-game {
    grid-template-columns: 1fr;
  }

  .gift-card {
    width: min(340px, 100%);
  }

  .quiz-image-slot.has-image {
    height: auto;
  }

  .quiz-image-slot img {
    height: clamp(320px, 50vh, 480px);
  }

  .answers,
  .answer-reveal,
  .result-list {
    grid-template-columns: 1fr;
  }

  .screen,
  .view {
    min-height: calc(100vh - 245px);
  }

  .photo-booth {
    min-height: 420px;
  }

  .file-stack {
    min-height: 350px;
  }
}

@media (max-width: 560px) {
  .app {
    padding: 14px;
  }

  .topbar {
    min-height: 192px;
  }

  .module-nav {
    grid-template-columns: 1fr;
  }

  .nav-dot {
    min-height: 50px;
  }

  .view {
    padding: 22px;
  }

  .quiz-image-slot.has-image {
    height: auto;
    padding: 10px;
  }

  .quiz-image-slot img {
    height: clamp(260px, 46vh, 390px);
  }

  .cutout {
    min-width: 31px;
    height: 48px;
    padding: 0 4px;
    font-size: 2.55rem;
  }

  .cutout.small {
    min-width: 25px;
    height: 42px;
    font-size: 2.2rem;
  }

  .cutout.tall {
    height: 54px;
  }

  .cutout.wide {
    min-width: 43px;
  }

  .name-ticket {
    margin-top: 12px;
    padding: 8px 14px;
  }

  .hero-meter {
    min-height: 260px;
  }

  .photo-booth {
    min-height: 360px;
  }

  .character {
    width: 56px;
    height: 78px;
  }

  .character::before {
    width: 34px;
    height: 34px;
  }

  .final-actions {
    min-height: 230px;
  }

  .evade:nth-child(2) {
    left: 0;
    top: 86px;
  }
}

/* Pastel scrapbook cover pass */
:root {
  --paper: #fff7fb;
  --paper-warm: rgba(255, 250, 252, 0.78);
  --paper-aged: rgba(255, 236, 248, 0.8);
  --ink: #201719;
  --muted: #6e5663;
  --line: rgba(116, 77, 103, 0.2);
  --red: #c7356a;
  --yellow: #ff8fc7;
  --orange: #f09a51;
  --blue: #84d8f3;
  --mint: #baf3df;
  --pink: #ff9ccc;
  --green: #7cca91;
  --shadow: 0 34px 90px rgba(0, 0, 0, 0.48);
}

html,
body {
  background: #101010;
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 172, 214, 0.1), transparent 28rem),
    #101010;
}

.app {
  display: grid;
  min-height: 100vh;
  padding: clamp(18px, 4vw, 54px);
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 166, 211, 0.18), transparent 22rem),
    radial-gradient(circle at 88% 80%, rgba(121, 214, 247, 0.16), transparent 20rem),
    #101010;
  overflow: auto;
}

.app::before {
  opacity: 0.12;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.76) 0 1px, transparent 1.8px);
  background-size: 31px 31px;
}

.app::after {
  display: none;
}

.shell {
  position: relative;
  align-self: center;
  width: min(1280px, 100%);
  min-height: min(780px, calc(100vh - clamp(36px, 8vw, 108px)));
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: clamp(28px, 5vw, 58px);
  padding: clamp(20px, 3vw, 42px);
  overflow: hidden;
  background:
    radial-gradient(circle at 17% 20%, rgba(255, 133, 197, 0.48), transparent 21rem),
    radial-gradient(circle at 78% 14%, rgba(139, 232, 255, 0.58), transparent 24rem),
    radial-gradient(circle at 88% 72%, rgba(255, 235, 146, 0.38), transparent 20rem),
    linear-gradient(135deg, rgba(255, 186, 219, 0.8), rgba(221, 247, 255, 0.84) 54%, rgba(255, 220, 240, 0.82)),
    #fff8fb;
  box-shadow:
    0 0 0 10px rgba(255, 255, 255, 0.02),
    var(--shadow);
}

.shell::before,
.shell::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.shell::before {
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 1px, transparent 1.9px),
    radial-gradient(circle, rgba(255, 105, 180, 0.18) 0 1.4px, transparent 2.2px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.45) 0 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.35) 0 1px, transparent 1px);
  background-size: 23px 23px, 37px 37px, 42px 42px, 42px 42px;
  mix-blend-mode: screen;
  opacity: 0.5;
}

.shell::after {
  left: 0;
  top: 0;
  z-index: 0;
  width: 120px;
  height: 100%;
  background:
    linear-gradient(90deg, rgba(154, 87, 124, 0.28), transparent),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.28) 0 8px, rgba(255, 186, 219, 0.16) 8px 15px);
  box-shadow: inset -10px 0 22px rgba(88, 50, 76, 0.14);
}

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

.topbar,
.module-nav,
.screen {
  position: relative;
  z-index: 2;
}

.topbar {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  min-height: clamp(210px, 30vw, 300px);
  margin-bottom: 18px;
  padding-left: clamp(18px, 7vw, 86px);
  padding-right: clamp(12px, 3vw, 32px);
}

.brand-lockup {
  width: min(920px, 100%);
}

.brand-lockup::after {
  display: none;
}

.eyebrow {
  border: 1px solid rgba(161, 99, 131, 0.24);
  border-radius: 999px;
  padding: 7px 13px;
  background: rgba(255, 255, 255, 0.72);
  color: #8b5974;
  box-shadow: 0 5px 14px rgba(126, 68, 102, 0.1);
}

.collage-title {
  max-width: 980px;
  gap: clamp(1px, 0.65vw, 9px);
  filter: drop-shadow(0 10px 16px rgba(112, 57, 91, 0.2));
}

.cutout {
  min-width: clamp(40px, 6.3vw, 80px);
  height: clamp(54px, 7.3vw, 92px);
  border-color: rgba(255, 255, 255, 0.72);
  border-radius: 4px;
  box-shadow:
    0 9px 18px rgba(83, 41, 66, 0.16),
    inset 0 0 22px rgba(255, 255, 255, 0.34);
}

.cutout.red {
  background:
    radial-gradient(circle at 55% 44%, rgba(255, 255, 255, 0.45) 0 3px, transparent 4px),
    #e9a0c1;
  background-size: 12px 12px, auto;
  color: #8a3158;
}

.cutout.black {
  background: #f8edf4;
  color: #2c2025;
}

.cutout.yellow {
  background:
    linear-gradient(135deg, #fff6bc, #caa24d);
  color: #7b5522;
}

.cutout.mint {
  background: linear-gradient(135deg, #dffcff, #8ce2f2);
  color: #2388a1;
}

.cutout.orange {
  background: linear-gradient(135deg, #ffe0a3, #f1a551);
  color: #804d28;
}

.cutout.cream,
.cutout.white {
  background: rgba(255, 255, 255, 0.88);
  color: #2b2025;
}

.cutout.pink {
  background: linear-gradient(135deg, #ffd4ec, #f38dbc);
  color: #6c2e58;
}

.cutout.gray {
  background:
    repeating-linear-gradient(0deg, #d3c4cf 0 4px, #eadfe7 4px 8px);
  color: #3b3035;
}

.cutout.coral {
  background: linear-gradient(135deg, #ffe1ee, #f0749e);
  color: #fffafc;
}

.name-ticket {
  border: 0;
  border-radius: 5px;
  padding: 8px 18px 11px;
  background:
    linear-gradient(transparent 58%, rgba(255, 143, 199, 0.58) 58%),
    rgba(255, 255, 255, 0.76);
  color: #61404f;
  font-size: clamp(2.25rem, 6.1vw, 5.4rem);
  box-shadow: none;
  transform: rotate(-2deg);
}

.status-pill {
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  background: rgba(111, 77, 93, 0.46);
  color: #fff;
  box-shadow: 0 9px 24px rgba(69, 38, 55, 0.16);
  backdrop-filter: blur(10px);
}

.module-nav {
  gap: 12px;
  margin-bottom: 18px;
}

.nav-dot {
  min-height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 24px rgba(97, 55, 82, 0.1);
  backdrop-filter: blur(12px);
  transform: none;
}

.nav-dot span {
  min-width: 36px;
  height: 36px;
  border-radius: 5px;
  background: rgba(44, 31, 38, 0.78);
}

.nav-dot.active {
  background: rgba(255, 156, 204, 0.72);
}

.nav-dot.done {
  background: rgba(207, 255, 226, 0.62);
}

.nav-dot.locked {
  opacity: 0.6;
  filter: none;
}

.screen {
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 26px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.24) 1px, transparent 1px),
    rgba(255, 255, 255, 0.54);
  background-size: 32px 32px, 32px 32px, auto;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.28),
    0 18px 45px rgba(111, 58, 91, 0.18);
  backdrop-filter: blur(6px);
}

.screen::before {
  inset: 18px;
  border-color: rgba(255, 255, 255, 0.5);
}

.screen::after {
  display: none;
}

h2 {
  background:
    linear-gradient(transparent 58%, rgba(255, 143, 199, 0.52) 58%),
    transparent;
  color: #25191e;
}

.lede,
.fine {
  color: #654d5b;
}

.panel,
.question-box {
  max-width: 860px;
}

.view.split {
  grid-template-columns: minmax(280px, 0.76fr) minmax(430px, 1fr);
}

.verify-note,
.answer,
.reaction,
.result-item,
.terminal,
.photo-side,
.archive-side,
.file-stack,
.file-card,
.drop-zone,
.beauty-meter {
  border-color: rgba(255, 255, 255, 0.62);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 28px rgba(96, 52, 80, 0.12);
}

.btn {
  border: 1px solid rgba(52, 34, 43, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 18px rgba(96, 52, 80, 0.14);
}

.btn.primary {
  background: linear-gradient(135deg, #ff8fc7, #d7b5ff);
}

.hero-meter,
.photo-booth,
.gift-card {
  border: 1px solid rgba(42, 30, 36, 0.78);
  border-radius: 18px;
  box-shadow: 0 20px 38px rgba(86, 48, 73, 0.18);
}

.hero-meter {
  background:
    linear-gradient(
      0deg,
      rgba(111, 217, 150, 0.9) 0 var(--level),
      rgba(255, 226, 246, 0.9) var(--level) 100%
    ),
    radial-gradient(circle at 76% 18%, rgba(255, 255, 255, 0.42), transparent 10rem),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.22) 0 14px, transparent 14px 28px);
}

.hero-meter::before,
.gift-card::before,
.quiz-image-slot::before,
.answer-image-slot::before {
  border: 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 5px 13px rgba(95, 56, 77, 0.09);
}

.meter-number {
  color: #26191e;
  text-shadow:
    0 4px 0 rgba(255, 255, 255, 0.68),
    0 10px 18px rgba(74, 41, 58, 0.2);
}

.quiz-image-slot {
  border-color: rgba(255, 255, 255, 0.62);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 38px rgba(96, 52, 80, 0.14);
}

.quiz-image-slot img {
  border: 10px solid #fff;
  border-bottom-width: 26px;
  border-radius: 2px;
  box-shadow: 0 13px 26px rgba(83, 41, 66, 0.18);
}

.gift-card[data-gift-key="photo"]:not(.revealed) {
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.18), transparent 24%),
    repeating-linear-gradient(-45deg, #a89ca6 0 20px, #918691 20px 40px);
}

.gift-card[data-gift-key="photo"]:not(.revealed) .gift-question {
  background: rgba(38, 27, 34, 0.82);
}

.album-spine {
  position: absolute;
  left: 0;
  top: 0;
  width: clamp(58px, 8vw, 110px);
  height: 100%;
  background:
    linear-gradient(90deg, rgba(84, 38, 70, 0.22), transparent),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.42) 0 7px, rgba(255, 183, 219, 0.24) 7px 15px);
  box-shadow: inset -10px 0 28px rgba(90, 48, 75, 0.16);
}

.scrap-sticker {
  position: absolute;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.58);
  color: #71415e;
  font-weight: 900;
  text-align: center;
  box-shadow:
    0 8px 18px rgba(86, 45, 70, 0.16),
    inset 0 0 18px rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
}

.sticker-heart {
  left: clamp(62px, 10vw, 128px);
  top: 34px;
  width: 92px;
  height: 70px;
  border-radius: 42% 42% 54% 54%;
  background: linear-gradient(135deg, #ffb1d4, #ffe8f4);
  color: #8a3158;
  font-size: 0.74rem;
  transform: rotate(-12deg);
}

.sticker-vogue {
  left: clamp(310px, 36vw, 470px);
  top: 44px;
  border-radius: 4px;
  padding: 7px 13px;
  background: rgba(255, 255, 255, 0.7);
  color: #221719;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.1rem, 2vw, 1.65rem);
  letter-spacing: 0.02em;
  transform: rotate(-3deg);
}

.sticker-phone {
  left: clamp(66px, 9vw, 124px);
  top: 226px;
  width: 62px;
  height: 104px;
  border-radius: 16px;
  background: linear-gradient(135deg, #b6efff, #ffc1de);
  color: #74445f;
  font-size: 0.64rem;
  transform: rotate(-15deg);
}

.sticker-peace {
  right: clamp(28px, 5vw, 70px);
  bottom: 92px;
  width: 76px;
  height: 76px;
  border-radius: 30% 70% 52% 48%;
  background: linear-gradient(135deg, #ffe7f2, #f7a4cc);
  transform: rotate(-15deg);
}

.sticker-tap {
  right: clamp(210px, 23vw, 300px);
  top: 318px;
  width: 88px;
  min-height: 70px;
  border-radius: 4px;
  background: linear-gradient(135deg, #ff88c6, #ffe7f3);
  color: #fff;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: 1.05rem;
  line-height: 0.9;
  text-shadow: 0 2px 0 rgba(88, 42, 69, 0.22);
  transform: rotate(8deg);
}

.sticker-black-cat {
  right: 70px;
  bottom: 36px;
  width: 48px;
  height: 34px;
  border: 0;
  background: #171214;
  border-radius: 52% 48% 38% 45%;
  transform: rotate(-8deg);
}

.sticker-black-cat::before,
.sticker-black-cat::after {
  content: "";
  position: absolute;
  top: -10px;
  width: 16px;
  height: 16px;
  background: #171214;
  clip-path: polygon(50% 0, 0 100%, 100% 100%);
}

.sticker-black-cat::before {
  left: 9px;
}

.sticker-black-cat::after {
  right: 9px;
}

.sticker-actions {
  position: absolute;
  right: clamp(22px, 4vw, 58px);
  top: 34px;
  display: flex;
  gap: 10px;
}

.sticker-actions span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(77, 54, 67, 0.52);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 900;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.polaroid-strip {
  position: absolute;
  left: clamp(78px, 10vw, 150px);
  right: clamp(120px, 14vw, 210px);
  bottom: 28px;
  display: grid;
  grid-template-columns: repeat(4, minmax(90px, 1fr));
  gap: clamp(12px, 2vw, 26px);
  align-items: end;
}

.mini-polaroid {
  position: relative;
  display: grid;
  gap: 8px;
  margin: 0;
  border: 8px solid #fff;
  border-bottom-width: 24px;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 14px 24px rgba(83, 41, 66, 0.18);
  transform: rotate(var(--photo-angle, -2deg));
}

.mini-polaroid:nth-child(2n) {
  --photo-angle: 1.8deg;
}

.mini-polaroid i {
  display: block;
  aspect-ratio: 1.18;
  border-radius: 2px;
  background:
    radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.76), transparent 18%),
    linear-gradient(135deg, var(--photo-a), var(--photo-b));
}

.mini-polaroid figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -20px;
  color: #5d4453;
  font-size: 0.62rem;
  font-weight: 900;
  text-align: center;
}

.mini-pink {
  --photo-a: #ffb7d9;
  --photo-b: #ffdff0;
}

.mini-blue {
  --photo-a: #b7efff;
  --photo-b: #d9f8ff;
}

.mini-gold {
  --photo-a: #ff9dcc;
  --photo-b: #ffb0d0;
}

.mini-lilac {
  --photo-a: #d8c8ff;
  --photo-b: #bff3ff;
}

@media (max-width: 920px) {
  .shell {
    border-radius: 28px;
  }

  .topbar {
    padding-left: 34px;
    min-height: 240px;
  }

  .sticker-vogue,
  .sticker-actions,
  .sticker-tap {
    display: none;
  }

  .polaroid-strip {
    display: none;
  }

  .view.split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .app {
    padding: 10px;
  }

  .shell {
    min-height: calc(100vh - 20px);
    padding: 16px;
    border-radius: 22px;
  }

  .shell::after,
  .album-spine,
  .sticker-heart,
  .sticker-phone,
  .sticker-peace,
  .sticker-black-cat {
    display: none;
  }

  .topbar {
    min-height: 180px;
    padding-left: 0;
    padding-right: 0;
  }

  .screen {
    border-radius: 20px;
  }
}

@media (min-width: 921px) {
  .topbar {
    min-height: clamp(176px, 22vw, 238px);
  }

  .cutout {
    min-width: clamp(34px, 5vw, 66px);
    height: clamp(48px, 6.2vw, 76px);
    font-size: clamp(2.25rem, 5.6vw, 4.15rem);
  }

  .cutout.small {
    min-width: clamp(28px, 3.8vw, 46px);
    height: clamp(40px, 5.2vw, 62px);
    font-size: clamp(1.9rem, 4.7vw, 3.4rem);
  }

  .cutout.tall {
    height: clamp(54px, 6.8vw, 82px);
  }

  .cutout.wide {
    min-width: clamp(48px, 6.6vw, 82px);
  }

  .name-ticket {
    margin-top: 10px;
    font-size: clamp(2rem, 4.7vw, 4.5rem);
  }

  .screen,
  .view {
    min-height: min(540px, calc(100vh - 280px));
  }

  .hero-meter {
    min-height: 280px;
  }
}

/* Pink accent normalization */
:root {
  --yellow: #ff8fc7;
  --yellow-soft: rgba(255, 143, 199, 0.24);
  --orange: #d7b5ff;
  --red: #c7356a;
  --red-soft: rgba(199, 53, 106, 0.14);
}

.shell {
  background:
    radial-gradient(circle at 17% 20%, rgba(255, 133, 197, 0.54), transparent 21rem),
    radial-gradient(circle at 78% 14%, rgba(139, 232, 255, 0.56), transparent 24rem),
    radial-gradient(circle at 88% 72%, rgba(255, 154, 207, 0.28), transparent 20rem),
    linear-gradient(135deg, rgba(255, 180, 218, 0.84), rgba(221, 247, 255, 0.84) 54%, rgba(255, 200, 229, 0.84)),
    #fff8fb;
}

.balloon-yellow {
  background: radial-gradient(circle at 30% 28%, #ffd4ea, #ff8fc7 62%, #b64d80);
}

.cutout.yellow {
  background: linear-gradient(135deg, #ffd6ec, #ff8fc7);
  color: #7a3156;
}

.cutout.orange {
  background: linear-gradient(135deg, #ffc1dc, #d7b5ff);
  color: #6f3a5b;
}

.name-ticket {
  background:
    linear-gradient(transparent 58%, rgba(255, 143, 199, 0.58) 58%),
    rgba(255, 255, 255, 0.78);
}

h2 {
  background:
    linear-gradient(transparent 58%, rgba(255, 143, 199, 0.52) 58%),
    transparent;
}

.nav-dot.active {
  background: rgba(255, 156, 204, 0.72);
}

.btn.primary {
  background: linear-gradient(135deg, #ff8fc7, #d7b5ff);
}

.progress-fill,
.gift-progress span {
  background: repeating-linear-gradient(90deg, #ff8fc7 0 16px, #d7b5ff 16px 28px);
}

.memory-fill {
  background: repeating-linear-gradient(90deg, #ff8fc7 0 18px, #d7b5ff 18px 32px, #c7356a 32px 46px);
}

.beauty-track span {
  background: #ff8fc7;
}

.beauty-track span.over-limit {
  background: #c7356a;
}

.reaction {
  border-left-color: #ff8fc7;
}

.quiz-image-slot,
.quiz-image-slot.answered,
.answer-image-slot,
.file-stack {
  background:
    linear-gradient(135deg, rgba(255, 143, 199, 0.22), transparent 42%),
    rgba(255, 255, 255, 0.72);
}

.photo-booth {
  background:
    radial-gradient(circle at 25% 18%, rgba(255, 143, 199, 0.3), transparent 18rem),
    radial-gradient(circle at 84% 20%, rgba(132, 216, 243, 0.26), transparent 14rem),
    rgba(255, 247, 252, 0.76);
}

.file-icon {
  background: #ff8fc7;
}

.character:nth-child(1) {
  --accent: #ff8fc7;
}

.mini-gold {
  --photo-a: #ff9dcc;
  --photo-b: #d7b5ff;
}

/* Button restyle */
.module-nav {
  gap: 14px;
}

.nav-dot {
  position: relative;
  overflow: hidden;
  min-height: 60px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  padding: 8px 14px 8px 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(255, 217, 238, 0.4)),
    rgba(255, 255, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 12px 26px rgba(103, 56, 84, 0.12);
  transform: none;
}

.nav-dot::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 20%, rgba(255, 255, 255, 0.9), transparent 0.9rem),
    linear-gradient(110deg, rgba(255, 255, 255, 0.28), transparent 48%);
  opacity: 0.75;
  pointer-events: none;
}

.nav-dot span,
.nav-dot b {
  position: relative;
  z-index: 1;
}

.nav-dot span {
  min-width: 42px;
  height: 42px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(67, 46, 58, 0.92), rgba(130, 92, 116, 0.78));
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 6px 12px rgba(69, 38, 55, 0.2);
}

.nav-dot b {
  padding-left: 10px;
  color: #3c2833;
  font-size: 0.9rem;
}

.nav-dot:hover:not(.locked),
.nav-dot:focus-visible:not(.locked) {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 196, 226, 0.58)),
    rgba(255, 255, 255, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 10px 20px rgba(103, 56, 84, 0.18);
  transform: translateY(-1px);
}

.nav-dot.active {
  background:
    linear-gradient(135deg, #ff8fc7, #ffc2df 62%, #d7b5ff);
}

.nav-dot.active span {
  background:
    linear-gradient(135deg, #4b2639, #7e4565);
}

.nav-dot.done {
  background:
    linear-gradient(135deg, rgba(218, 255, 232, 0.74), rgba(255, 214, 236, 0.52));
}

.nav-dot.locked {
  opacity: 0.54;
  filter: saturate(0.72);
}

.btn {
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 999px;
  padding: 0 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 224, 240, 0.62)),
    rgba(255, 255, 255, 0.55);
  color: #3c2833;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 10px 22px rgba(103, 56, 84, 0.16);
  transform: none;
}

.btn:nth-child(2n) {
  transform: none;
}

.btn:hover,
.btn:focus-visible {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 198, 228, 0.76));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 7px 16px rgba(103, 56, 84, 0.2);
  transform: translateY(1px);
}

.btn.primary {
  border-color: rgba(255, 255, 255, 0.82);
  background:
    linear-gradient(135deg, #ff7fbe, #ffb4d8 54%, #d5b3ff);
  color: #321f2a;
}

.btn.warn {
  border-color: rgba(199, 53, 106, 0.38);
  background:
    linear-gradient(135deg, rgba(255, 245, 250, 0.86), rgba(255, 190, 222, 0.5));
  color: #9c2d59;
}

.btn.ghost {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(240, 219, 255, 0.44));
  color: #5d4050;
}

.btn:disabled {
  opacity: 0.5;
  filter: grayscale(0.18);
  box-shadow: none;
}

.answer {
  position: relative;
  overflow: hidden;
  min-height: 74px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  padding: 16px 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 225, 241, 0.62)),
    rgba(255, 255, 255, 0.58);
  color: #3c2833;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 12px 24px rgba(103, 56, 84, 0.13);
  transform: none;
}

.answer::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 143, 199, 0.78);
  box-shadow: 12px 0 0 rgba(215, 181, 255, 0.72);
}

.answer:hover,
.answer:focus-visible {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 193, 224, 0.74));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 9px 18px rgba(103, 56, 84, 0.19);
  transform: translateY(-1px);
}

.answer.correct {
  background:
    linear-gradient(135deg, rgba(219, 255, 232, 0.86), rgba(255, 217, 237, 0.66));
}

.answer.soft {
  background:
    linear-gradient(135deg, rgba(255, 218, 239, 0.88), rgba(229, 209, 255, 0.72));
}

.meter-corner,
.meter-label {
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: #7a4561;
  box-shadow: 0 7px 16px rgba(103, 56, 84, 0.12);
}

.tap-meter:hover,
.tap-meter:focus-visible {
  box-shadow:
    0 16px 30px rgba(103, 56, 84, 0.18),
    inset 0 0 38px rgba(255, 255, 255, 0.2);
}
