@font-face { font-family: "Bungee"; src: url("/fonts/bungee-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/fonts/atkinson-hyperlegible-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/fonts/atkinson-hyperlegible-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* One look on purpose: Mixtape. */
:root {
  --grape: #35115f; --plum: #200838; --pink: #ff3ea5; --berry: #b3126a; --teal: #19cfc1; --yellow: #ffe14d; --white: #fff; --tape: #12131a;
  --display: "Bungee", "Arial Black", sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--grape); color: var(--white); font: 400 1.0625rem/1.55 var(--body); }
h1, h2, p, ul, figure, dl, dd { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 400; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); line-height: 1.1; }
h2 { font-size: 1.55rem; line-height: 1.15; }
a { color: var(--yellow); text-underline-offset: 0.2em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.inner { max-width: 1040px; margin: 0 auto; padding: 24px max(20px, env(safe-area-inset-right, 0px)) 24px max(20px, env(safe-area-inset-left, 0px)); }

.nav { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding-block: 14px; }
.nav a { font-size: 0.9rem; }
.logo { display: flex; align-items: center; gap: 10px; font: 400 1.25rem/1 var(--display); }
.logo b { font-weight: 400; color: var(--yellow); }
.stripes { height: 30px; background: linear-gradient(var(--pink) 0 33%, var(--yellow) 33% 66%, var(--teal) 66%); }

.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 24px; align-items: center; padding-block: 36px; }
.sticker { display: inline-block; margin-bottom: 16px; border: 3px solid var(--white); background: var(--tape); font: 400 0.75rem/1.35 var(--display); padding: 5px 8px; transform: rotate(-3deg); }
.lead { margin-top: 14px; max-width: 48ch; font-size: 1.12rem; }
.meter { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font: 700 0.82rem var(--mono); }
.bar { width: 180px; max-width: 100%; height: 14px; border: 2px solid var(--white); border-radius: 4px; padding: 1px; }
.bar i { display: block; height: 100%; width: 4%; background: var(--pink); transition: width 0.5s; }
.full .bar i { width: 100%; background: var(--teal); }
.controls { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.big { font: 400 1.25rem var(--display); border: 0; border-radius: 999px; background: var(--pink); color: var(--plum); padding: 12px 24px; box-shadow: 0 5px 0 var(--plum); }
.big:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--plum); }
.ghost { background: transparent; color: var(--white); border: 2px solid var(--white); border-radius: 999px; padding: 7px 16px; font-weight: 700; }
.dashed { border: 2px dashed var(--yellow); }
.status { margin-top: 16px; min-height: 38px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-weight: 700; }
.boom { font: 400 1rem var(--display); background: var(--yellow); color: var(--plum); border-radius: 999px; padding: 4px 12px; transform: rotate(-3deg); animation: boom 0.45s cubic-bezier(0.2, 1.8, 0.4, 1); }
@keyframes boom { from { transform: scale(0.3) rotate(-14deg); } to { transform: scale(1) rotate(-3deg); } }
figure { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-weight: 700; font-size: 0.95rem; }
#mascot { width: min(300px, 100%); height: auto; transform-origin: 50% 90%; }
.label { font: 400 13px var(--display); fill: var(--plum); }
.wiggle { animation: wiggle 0.6s ease-in-out; }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-10deg); } 60% { transform: rotate(8deg); } 80% { transform: rotate(-4deg); } }

.tracks { background: var(--teal); color: var(--plum); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.track { display: flex; flex-direction: column; gap: 12px; min-width: 0; background: var(--white); border: 3px solid var(--plum); border-radius: 14px; box-shadow: 6px 6px 0 var(--plum); padding: 18px; }
.no { font-size: 0.85rem; font-weight: 700; color: var(--berry); }
ul { padding-left: 18px; display: flex; flex-direction: column; gap: 5px; font-size: 0.98rem; }
.fine { margin-top: 20px; font-weight: 700; }
.cmd { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--tape); color: var(--white); border-radius: 8px; padding: 8px 8px 8px 12px; font: 700 0.95rem var(--mono); min-height: 46px; }
.cmd button { border: 1px solid #8a8ea0; background: transparent; color: var(--white); border-radius: 6px; padding: 3px 10px; font-size: 0.85rem; }
.say { margin-top: auto; border: 2px dashed var(--berry); border-radius: 8px; padding: 10px 12px; font: 700 0.9rem var(--mono); min-height: 46px; }

.remix { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; }
.remix p { max-width: 62ch; margin-top: 6px; }

.notes { background: var(--yellow); color: var(--plum); }
dl { margin-top: 16px; background: var(--white); border: 3px solid var(--plum); border-radius: 14px; box-shadow: 6px 6px 0 var(--plum); padding: 6px 18px; }
dl div { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 4px 16px; padding: 10px 0; border-bottom: 2px dotted var(--berry); }
dl div:last-child { border-bottom: 0; }
dt { font: 700 0.9rem var(--mono); color: var(--berry); }
dd { overflow-wrap: anywhere; }

.secret .inner { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
#hidden-line { background: var(--yellow); color: var(--plum); border-radius: 10px; padding: 8px 14px; font-weight: 700; }
#hidden-line:empty { padding: 0; background: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
footer { border-top: 3px solid var(--teal); font-size: 0.88rem; }

.lost { text-align: center; padding-block: 72px; display: flex; flex-direction: column; gap: 18px; align-items: center; }

@media (max-width: 760px) {
  .hero, .grid, dl div { grid-template-columns: minmax(0, 1fr); }
  #mascot { width: min(230px, 80%); }
}
@media (prefers-reduced-motion: reduce) {
  .boom, .wiggle { animation: none; }
  .bar i { transition: none; }
}
