/* Built from Find Me's own kit: Fredoka, paper and ink, bright buttons with a
   darker bottom edge, WANTED cards and Nan's speech bubbles. The hero is the
   game's first level; the story runs as a line map; mini-games sit on a
   station departure board. */
:root {
  --ink: #2a2142;
  --ink-soft: #5b5277;
  --night: #221b38;
  --night-2: #3a2f63;
  --paper: #fff8ec;
  --dawn: #fff0c8;
  --card: #ffffff;
  --card-edge: #e3dccd;
  --rule: #eee4d2;

  --sun: #ffcf4a;
  --sun-dark: #e8a91a;
  --coral: #ff6b5e;
  --coral-dark: #d94b40;
  --teal: #20b6a5;
  --teal-dark: #158a7d;
  --sky: #5cc3f5;
  --sky-dark: #2f97cc;
  --grape: #8c6cf0;
  --grape-dark: #6748c9;
  --leaf: #55c463;
  --leaf-dark: #379a45;
  --pink: #ff8ab8;

  --font: "Fredoka", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 10px 30px rgba(42, 33, 66, .18);
  --wrap: 1200px;
  --section: clamp(4.5rem, 9vw, 7.5rem);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
p { margin: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.04; text-wrap: balance; }
h2 { font-size: clamp(2.3rem, 4.8vw, 3.6rem); letter-spacing: -.005em; }

:focus-visible { outline: 3px solid var(--grape); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 70;
  background: var(--ink); color: #fff; padding: .6em 1em; border-radius: 12px;
  text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

/* ---------- the game's buttons ---------- */

.btn {
  --bg: var(--sun); --edge: var(--sun-dark); --fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font: 600 1.15rem/1 var(--font);
  color: var(--fg); background: var(--bg);
  border: 0; border-radius: 18px;
  padding: .9em 1.4em;
  box-shadow: 0 6px 0 var(--edge);
  text-decoration: none; cursor: pointer;
  transition: transform .08s ease, box-shadow .08s ease, filter .15s;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--edge); }
.btn svg { width: 1.15em; height: 1.15em; fill: currentColor; }
.btn-teal { --bg: var(--teal); --edge: var(--teal-dark); --fg: #fff; }
.btn-sun { --bg: var(--sun); --edge: var(--sun-dark); --fg: var(--ink); }
.btn-white { --bg: #fff; --edge: var(--card-edge); --fg: var(--ink); }
.btn-big { font-size: clamp(1.15rem, 2vw, 1.35rem); padding: 1em 1.5em; border-radius: 22px; box-shadow: 0 7px 0 var(--edge); }
.btn-small { font-size: 1rem; padding: .66em 1.05em; border-radius: 14px; box-shadow: 0 4px 0 var(--edge); }
.btn-small:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--edge); }

.badge {
  display: inline-block;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; line-height: 1;
  padding: .38em .65em .34em; border-radius: 8px;
  background: var(--coral); color: #fff; box-shadow: 0 3px 0 var(--coral-dark);
  rotate: -4deg;
}
.badge-sun { background: var(--sun); color: var(--ink); box-shadow: 0 3px 0 var(--sun-dark); }

.kicker { display: flex; align-items: center; gap: .7rem; font-weight: 600; color: var(--ink-soft); }

/* phones: screenshots in a plain ink bezel */
.phone { padding: 7px; background: var(--ink); border-radius: 34px; box-shadow: var(--shadow); }
.phone img { width: 100%; border-radius: 28px; aspect-ratio: 780 / 1688; object-fit: cover; }

/* Nan's speech bubble, as drawn in the game */
.bubble {
  position: relative; margin: 0;
  background: #fff; color: var(--ink);
  border: 3px solid var(--ink); border-radius: 18px;
  padding: 1.05rem 1.05rem .95rem;
  font-weight: 500; line-height: 1.38;
}
.bubble-name {
  position: absolute; top: -.95em; left: 14px;
  padding: .12em .75em;
  background: var(--pink); color: var(--ink);
  border: 2.5px solid var(--ink); border-radius: 999px;
  font-size: .85rem; font-weight: 600;
}
.bubble-name.is-good { background: var(--leaf); }
.bubble-name.is-late { background: var(--coral); color: #fff; }
.nan-face { width: 76px; height: 76px; flex: none; border-radius: 50%; border: 3px solid var(--ink); object-fit: cover; background: #7fa46c; }

/* the WANTED card */
.wanted { margin: 0; background: #fff1c9; border: 3px solid var(--ink); border-radius: 10px; overflow: hidden; box-shadow: 0 4px 0 rgba(42, 33, 66, .25); }
.wanted figcaption, .wanted-head {
  background: var(--coral); color: #fff;
  font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; text-align: center; line-height: 1;
  padding: .45em 0 .4em;
}

/* ---------- header ---------- */

.site-header { background: var(--dawn); padding-top: 16px; position: relative; z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand img { height: 48px; width: auto; }
.site-header ul { display: flex; align-items: center; gap: clamp(.9rem, 2.2vw, 1.9rem); }
.site-header a:not(.btn) { font-weight: 500; text-decoration: none; padding-block: .3em; }
.site-header a:not(.btn):hover { color: var(--teal-dark); text-decoration: underline wavy var(--teal) 2px; text-underline-offset: .35em; }

/* ---------- hero ---------- */

.hero { background: linear-gradient(var(--dawn), var(--paper) 85%); padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3.5rem, 7vw, 5.5rem); overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 430px);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.hero-copy { position: relative; }
.title {
  margin-top: .9rem;
  font-size: clamp(4.6rem, 11vw, 8.6rem);
  line-height: .88;
  letter-spacing: .01em;
  color: #fff;
  -webkit-text-stroke: .085em var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 .075em 0 var(--ink);
}
.tagline { margin-top: 1.4rem; font-size: clamp(1.4rem, 2.5vw, 1.8rem); font-weight: 600; line-height: 1.18; max-width: 24ch; }
.lede { margin-top: 1.1rem; font-size: 1.15rem; max-width: 34rem; color: var(--ink-soft); font-weight: 450; }
.cta-row { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.facts { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .4rem 0; font-weight: 500; color: var(--ink-soft); }
.facts li + li::before { content: "\2605"; color: var(--sun-dark); margin-inline: .7rem; font-size: .9em; }
.stores { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: .8rem; }

.hero-play { position: relative; isolation: isolate; }
/* the sunburst behind the game's title screen */
.hero-play::before {
  content: ""; position: absolute; z-index: -1;
  inset: -18% -40%;
  background: repeating-conic-gradient(from 0deg at 50% 48%, rgba(255, 207, 74, .32) 0deg 8deg, transparent 8deg 16deg);
  -webkit-mask: radial-gradient(closest-side, #000 30%, transparent 100%);
          mask: radial-gradient(closest-side, #000 30%, transparent 100%);
}
.hero-note { margin-top: 1.2rem; text-align: center; font-size: .95rem; font-weight: 500; color: var(--ink-soft); }

/* the playable first level */
.teaser {
  width: min(100%, 410px); margin-inline: auto;
  padding: 9px; border-radius: 46px;
  background: var(--ink);
  box-shadow: 0 22px 50px rgba(42, 33, 66, .3);
}
.tz-screen {
  position: relative; overflow: hidden;
  aspect-ratio: 780 / 1160; max-width: 100%;
  border-radius: 38px;
  background: #8cc96b;
  -webkit-tap-highlight-color: transparent;
  user-select: none; -webkit-user-select: none;
}
.teaser[data-state="playing"] .tz-screen { cursor: pointer; }
.tz-scene { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }
.tz-top { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; align-items: flex-start; gap: 10px; pointer-events: none; }
.tz-timer {
  position: relative; flex: 1;
  height: 52px; display: grid; place-items: center;
  background: #fff; border: 3px solid var(--ink); border-radius: 16px; overflow: hidden;
  box-shadow: 0 3px 0 rgba(42, 33, 66, .25);
}
.tz-fill { position: absolute; inset: 0; background: var(--sun); transform-origin: left; }
.tz-clock { position: relative; font-size: 1.75rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.tz-wanted { width: 92px; flex: none; rotate: 3deg; }
.tz-wanted img { width: 100%; aspect-ratio: 163 / 195; object-fit: cover; }

.tz-talk {
  position: absolute; left: 12px; right: 12px; bottom: 14px;
  display: flex; align-items: flex-end; gap: 8px;
}
.tz-talk .bubble { flex: 1; font-size: 1rem; }
.bubble-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .85rem; }
.teaser[data-state="found"] .tz-talk,
.teaser[data-state="timeout"] .tz-talk { top: 164px; bottom: auto; }
.teaser[data-state="found"] .tz-talk .nan-face,
.teaser[data-state="timeout"] .tz-talk .nan-face { display: none; }

.tz-giveup {
  position: absolute; left: 14px; bottom: 14px;
  font: 600 .88rem/1 var(--font); color: var(--ink);
  background: rgba(255, 255, 255, .94); border: 2.5px solid var(--ink); border-radius: 999px;
  padding: .5em .95em; cursor: pointer;
}
.tz-miss {
  position: absolute; translate: -50% -50%;
  padding: .2em .6em; border-radius: 999px;
  background: #fff; border: 2.5px solid var(--ink);
  font-size: .85rem; font-weight: 600; white-space: nowrap;
  pointer-events: none;
  animation: miss .9s ease-out forwards;
}
@keyframes miss {
  0% { opacity: 0; transform: scale(.6); }
  15% { opacity: 1; transform: scale(1.06); }
  70% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-14px); }
}
.tz-ring {
  position: absolute; left: 13.4%; top: 68.4%;
  width: 70px; height: 70px; translate: -50% -50%;
  border-radius: 50%;
  border: 4px dashed var(--coral);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .8), inset 0 0 0 4px rgba(255, 255, 255, .8);
  animation: spin 6s linear infinite;
  pointer-events: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- section heads ---------- */

.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 3rem; }
.section-head p { max-width: 27rem; font-size: 1.15rem; color: var(--ink-soft); font-weight: 450; }
.section-head-light h2 { color: #fff; }
.section-head-light p { color: #ece6ff; }

/* ---------- how a hide works ---------- */

.how { position: relative; padding-block: var(--section); }
.how .wrap { position: relative; }
.steps {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
.step { display: grid; gap: 1.8rem; justify-items: center; }
.step .phone { width: min(100%, 262px); }
.step:nth-child(2) .phone { rotate: 2deg; translate: 0 -18px; }
.step:nth-child(1) .phone { rotate: -2deg; }
.step-text { max-width: 20rem; }
.step-num {
  display: inline-grid; place-items: center;
  width: 2.3rem; height: 2.3rem; border-radius: 50%;
  background: var(--sun); box-shadow: 0 4px 0 var(--sun-dark);
  font-weight: 700; font-size: 1.15rem;
  margin-bottom: .8rem;
}
.step h3 { font-size: 1.6rem; }
.step p { margin-top: .5rem; color: var(--ink-soft); font-weight: 450; }

/* ---------- the Peekham Line ---------- */

.story {
  padding-block: var(--section);
  background-color: #fdf5e6;
  background-image:
    linear-gradient(rgba(42, 33, 66, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 33, 66, .055) 1px, transparent 1px);
  background-size: 28px 28px;
}
.story-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 2.5rem 4rem; align-items: end; }
.story-intro h2 { margin-top: .6rem; }
.story-intro > p:not(.kicker) { margin-top: 1.1rem; max-width: 36rem; font-size: 1.15rem; font-weight: 450; }
.story-stats { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1.5rem; font-weight: 500; color: var(--ink-soft); }
.story-stats b { font-size: 1.7rem; color: var(--teal-dark); margin-right: .2rem; }

.nan-says { display: flex; align-items: flex-end; gap: 12px; margin: 0; justify-self: end; max-width: 25rem; }
.nan-says .bubble { flex: 1; font-size: 1.1rem; }
.nan-says .bubble::after {
  content: ""; position: absolute; right: -14px; bottom: 18px;
  width: 20px; height: 20px; background: #fff;
  border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink);
  rotate: -45deg;
}
.nan-says .nan-face { width: 104px; height: 104px; }

.line {
  margin-top: clamp(3rem, 6vw, 4rem);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 1.25rem; row-gap: 3rem;
}
.stop { position: relative; display: flex; flex-direction: column; padding-top: 2.5rem; min-width: 0; }
/* track */
.stop::before {
  content: ""; position: absolute; top: 12px; left: 0; right: -1.25rem;
  height: 8px; border-radius: 4px; background: var(--teal);
}
/* station */
.stop::after {
  content: ""; position: absolute; top: 3px; left: 12px;
  width: 26px; height: 26px; border-radius: 50%;
  background: #fff; border: 6px solid var(--teal);
}
.stop:nth-child(4n)::before { right: 0; }
.stop-card {
  flex: 1; overflow: hidden;
  background: var(--card); border-radius: 20px;
  box-shadow: 0 5px 0 var(--card-edge), 0 12px 26px rgba(42, 33, 66, .07);
}
.stop-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.stop-body { display: grid; gap: .3rem; justify-items: start; padding: .95rem 1.05rem 1.15rem; }
.pill {
  font-size: .72rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; line-height: 1;
  padding: .4em .75em .36em; border-radius: 999px;
  background: #efe6d4; color: var(--ink-soft);
}
.pill-teal { background: var(--teal-dark); color: #fff; }
.pill-coral { background: var(--coral-dark); color: #fff; }
.stop h3 { margin-top: .25rem; font-size: 1.45rem; }
.stop-where { color: var(--ink-soft); font-size: .95rem; font-weight: 500; }
.stop-levels {
  width: 100%; margin-top: .4rem; padding-top: .55rem;
  border-top: 2px dashed var(--rule);
  font-size: .9rem; line-height: 1.4;
}
.stop-levels::before { content: "Levels include "; color: var(--ink-soft); }
.stop-end { grid-column: span 2; }
.stop-end::before { right: auto; width: 84px; }
.stop-end::after { left: 12px; }
.stop-end .stop-card {
  background-color: var(--night); color: #fff;
  background-image:
    radial-gradient(circle at 78% 22%, var(--sun) 0 2.5px, transparent 3.5px),
    radial-gradient(circle at 88% 48%, var(--coral) 0 2px, transparent 3px),
    radial-gradient(circle at 66% 38%, var(--sky) 0 2px, transparent 3px),
    radial-gradient(circle at 92% 14%, #fff 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 72% 62%, var(--pink) 0 2px, transparent 3px),
    radial-gradient(circle at 95% 82%, var(--sun) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 58% 12%, var(--leaf) 0 2px, transparent 3px),
    radial-gradient(circle at 80% 90%, #fff 0 1.5px, transparent 2.5px);
}
.stop-end .stop-body { padding: 1.4rem 1.5rem 1.6rem; gap: .35rem; max-width: 30rem; }
.stop-end h3 { font-size: 2rem; }
.stop-end .stop-where { color: #cfc6ec; }
.stop-end .stop-levels { border-top-color: rgba(255, 255, 255, .14); }
.stop-end .stop-levels::before { color: #cfc6ec; }
.stop-last { margin-top: .8rem; font-weight: 600; color: var(--sun); }
.story-cta { margin-top: 3rem; display: flex; justify-content: center; }

/* ---------- the menu ---------- */

.modes { padding-block: var(--section); }
.modes-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 290px); gap: 3rem clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.modes-main { display: grid; gap: 2.4rem; }
.modes-copy { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .8rem 2rem; }
.modes-copy p { max-width: 22rem; font-size: 1.15rem; color: var(--ink-soft); font-weight: 450; }
.phone-tilt { width: 100%; rotate: 3deg; }

.menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.menu-btn {
  --bg: #fff; --edge: var(--card-edge); --fg: var(--ink); --icon: var(--teal);
  position: relative; height: 100%;
  display: flex; align-items: center; gap: 14px;
  min-height: 96px; padding: 16px 18px;
  background: var(--bg); color: var(--fg);
  border-radius: 22px; box-shadow: 0 6px 0 var(--edge);
  text-decoration: none;
  transition: transform .08s ease, box-shadow .08s ease, filter .15s;
}
.menu-btn:hover { filter: brightness(1.04); }
.menu-btn:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--edge); }
.menu-btn b { display: block; font-size: 1.45rem; font-weight: 700; line-height: 1.05; }
.menu-btn small { display: block; margin-top: .2rem; font-size: .95rem; font-weight: 500; line-height: 1.25; }
.menu-btn .badge { position: absolute; top: -10px; right: 14px; rotate: 5deg; }
.menu-icon {
  flex: none; display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: 50%;
  background: #fff; color: var(--icon);
  box-shadow: 0 4px 0 rgba(42, 33, 66, .14);
}
.menu-icon svg { width: 26px; height: 26px; fill: currentColor; }
.m-teal { --bg: var(--teal); --edge: var(--teal-dark); --fg: #fff; --icon: var(--teal); }
.m-sun { --bg: var(--sun); --edge: var(--sun-dark); --fg: var(--ink); --icon: #f29a1d; }
.m-grape { --bg: var(--grape); --edge: var(--grape-dark); --fg: #fff; --icon: var(--grape-dark); }
.m-sky { --bg: var(--sky); --edge: var(--sky-dark); --fg: var(--ink); --icon: var(--sky-dark); }
.m-coral { --bg: var(--coral); --edge: var(--coral-dark); --fg: #fff; --icon: var(--coral-dark); }
.i-grape { background: var(--grape); color: #fff; }
.i-leaf { background: var(--leaf); color: #fff; }
.i-sun { background: var(--sun); color: var(--ink); }

/* ---------- with friends ---------- */

.together { background: var(--grape-dark); color: #fff; padding-block: var(--section); }
.legend { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: .7rem 1.6rem; font-weight: 500; color: #ece6ff; }
.legend li { display: flex; align-items: center; gap: .55rem; }

.groups { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.group { background: #fff; color: var(--ink); border-radius: 22px; padding: 1.3rem 1.3rem .5rem; box-shadow: 0 6px 0 rgba(26, 14, 70, .35); }
.group h3 {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft);
  padding-bottom: .5rem;
}
.group h3 span { font-size: 1.3rem; color: var(--grape-dark); letter-spacing: 0; }
.mode { display: grid; gap: .3rem; padding: .85rem 0; border-top: 2px dashed var(--rule); }
.mode b { font-size: 1.12rem; font-weight: 600; line-height: 1.2; }
.mode p { font-size: .95rem; line-height: 1.38; color: var(--ink-soft); }
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: .15rem; }
.tag {
  display: inline-block;
  font-size: .68rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; line-height: 1;
  padding: .42em .6em .38em; border-radius: 7px; color: #fff;
}
.t-live { background: var(--coral-dark); }
.t-link { background: var(--teal-dark); }
.t-phone { background: var(--grape-dark); }
.t-n { background: #f1ebdf; color: var(--ink); }
.t-n::before { content: "\1F464\FE0E"; margin-right: .3em; font-size: .9em; }
.legend .tag { box-shadow: 0 0 0 2px rgba(255, 255, 255, .25); }
.phone-in-group { width: min(70%, 230px); margin: 1rem auto 1.1rem; rotate: 2deg; }

/* ---------- mini-games board ---------- */

.minis { background: var(--night); color: var(--paper); padding-block: var(--section); }
.minis-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 3rem clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
.minis h2 { color: #fff; }
.minis-copy p { margin-top: 1rem; max-width: 28rem; font-size: 1.12rem; color: #d9d2f0; font-weight: 450; }
.minis-copy b { color: var(--sun); font-weight: 600; }
.phone-dave { width: min(100%, 210px); margin-top: 2.2rem; rotate: -2deg; background: var(--night-2); }

.board {
  overflow: hidden;
  background: #120d22;
  border: 6px solid var(--night-2); border-radius: 18px;
  box-shadow: 0 10px 0 rgba(0, 0, 0, .3);
}
.board-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: .85rem 1.2rem;
  background: #2e2552;
  font-size: .85rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #fff;
}
.board-clock { color: var(--sun); font-size: 1.15rem; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.board-rows li {
  display: grid; grid-template-columns: minmax(0, 11.5rem) minmax(0, 1fr); gap: 1rem;
  padding: .72rem 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, .06);
}
.board-rows li:nth-child(odd) { background: rgba(255, 255, 255, .025); }
.board-rows b { color: var(--sun); font-weight: 600; text-shadow: 0 0 10px rgba(255, 207, 74, .35); }
.board-rows span { color: #d9d2f0; }

/* ---------- studio ---------- */

.studio { background: var(--sun); padding-block: var(--section); }
.studio-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 3rem clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
.studio-art { position: relative; }
.cannon-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 24px; -webkit-tap-highlight-color: transparent; }
.cannon-btn img { width: 100%; transform-origin: 28% 98%; transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.cannon-btn:hover img { transform: rotate(-2.5deg); }
.cannon-btn.firing img { animation: recoil .5s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes recoil {
  0%   { transform: none; }
  12%  { transform: translate(-4%, 1.5%) rotate(4deg) scale(1.04, .95); }
  40%  { transform: translate(1%, -.5%) rotate(-1.5deg) scale(.99, 1.02); }
  100% { transform: none; }
}
.cannon-note {
  position: absolute; left: 0; top: 2%;
  padding: .35em .8em; border-radius: 14px;
  background: #fff; box-shadow: 0 4px 0 var(--sun-dark);
  font-weight: 600; font-size: .95rem;
  rotate: -6deg; pointer-events: none;
  transition: opacity .4s;
}
.cannon-note.done { opacity: 0; }
.studio-copy { position: relative; }
.studio-copy > p { margin-top: 1.1rem; max-width: 34rem; font-size: 1.15rem; font-weight: 450; }

.posters { margin-top: 2.2rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; max-width: 34rem; }
.poster { display: flex; flex-direction: column; }
.poster:nth-child(1) { rotate: -2deg; }
.poster:nth-child(2) { rotate: 1.5deg; }
.poster:nth-child(3) { rotate: -1deg; }
.poster-found .wanted-head { background: var(--leaf-dark); }
.poster img, .poster-q { width: 100%; aspect-ratio: 1 / 1; }
.poster img { object-fit: cover; }
.poster-q {
  display: grid; place-items: center;
  font-size: 3.6rem; font-weight: 700; color: rgba(42, 33, 66, .22);
  background: radial-gradient(#fff6dc, #ffe6a3);
}
.poster-cap { flex: 1; padding: .55rem .7rem .7rem; font-size: .85rem; line-height: 1.3; color: var(--ink-soft); border-top: 2px solid var(--ink); }
.poster-cap b { display: block; font-size: 1.05rem; color: var(--ink); }

/* ---------- hello ---------- */

.hello { padding-block: clamp(4.5rem, 10vw, 7.5rem); }
.hello-inner { display: grid; gap: 1.3rem; justify-items: start; }
.hello h2 { font-size: clamp(3rem, 9vw, 6rem); }
.hello p { max-width: 36rem; font-size: 1.15rem; color: var(--ink-soft); font-weight: 450; }
.email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; margin-top: .4rem; max-width: 100%; }
.email {
  min-width: 0;
  font-size: clamp(1.4rem, 4.2vw, 2.6rem); font-weight: 600; line-height: 1.2;
  text-decoration: underline wavy var(--coral) 3px; text-underline-offset: .22em;
  overflow-wrap: anywhere;
}
.email:hover { color: var(--teal-dark); }

/* ---------- footer ---------- */

.site-footer { background: var(--night); color: #fff; padding-block: clamp(3rem, 6vw, 4.5rem) 2.25rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem 4rem; align-items: center; }
.footer-logo { width: min(100%, 400px); rotate: -3deg; }
.footer-meta { position: relative; display: grid; gap: 1.1rem; justify-items: start; }
.footer-meta ul { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.footer-meta a { font-weight: 500; text-decoration: none; }
.footer-meta a:hover { text-decoration: underline wavy var(--sun) 2px; text-underline-offset: .35em; }
.star-hint { color: var(--sun); font-weight: 500; }
.star-hint span { font-variant-numeric: tabular-nums; }
.legal { font-size: .88rem; color: #b9b1d6; }

/* ---------- hidden stars ---------- */

.hidden-star {
  position: absolute; z-index: 3;
  width: 24px; height: 24px;
  padding: 0; border: 0; background: none;
  color: var(--hs); cursor: pointer;
  transition: transform .2s cubic-bezier(.3, 1.6, .5, 1);
}
.hidden-star svg { display: block; width: 100%; height: 100%; fill: currentColor; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.hidden-star:hover { transform: scale(1.35) rotate(18deg); }
.hidden-star.found { animation: star-pop .55s forwards; pointer-events: none; }
@keyframes star-pop {
  40%  { transform: scale(2.1) rotate(40deg); color: var(--sun); }
  100% { transform: scale(0) rotate(130deg); opacity: 0; }
}
.hs-1 { --hs: #f1d692; right: 4%; bottom: -1.6rem; }
.hs-2 { --hs: #eadcbf; right: 3%; bottom: -2.6rem; }
.hs-3 { --hs: #ece2cf; right: 12px; bottom: 12px; width: 20px; height: 20px; }
.hs-4 { --hs: #efb526; right: 0; top: -1.8rem; }
.hs-5 { --hs: #3d3266; right: 0; bottom: -.2rem; }

/* ---------- toast + confetti ---------- */

.toast {
  position: fixed; left: 50%; z-index: 60;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  translate: -50% 180%;
  max-width: calc(100vw - 32px);
  padding: .75em 1.3em .7em;
  background: var(--night); color: #fff;
  border: 3px solid var(--sun); border-radius: 999px;
  font-size: 1.05rem; font-weight: 600;
  text-align: center;
  visibility: hidden;
  transition: translate .35s cubic-bezier(.3, 1.4, .5, 1), visibility 0s .35s;
}
.toast.show { translate: -50% 0; visibility: visible; transition: translate .35s cubic-bezier(.3, 1.4, .5, 1), visibility 0s; }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 55; }

/* ---------- smaller screens ---------- */

@media (max-width: 1040px) {
  .line { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stop:nth-child(4n)::before { right: -1.25rem; }
  .stop:nth-child(2n)::before { right: 0; }
  .groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .group:first-child { grid-row: span 2; }
}

@media (max-width: 960px) {
  .hero-grid, .story-head, .modes-grid, .minis-grid, .studio-grid, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .nan-says { justify-self: start; }
  .phone-tilt { display: none; }
  .studio-art { max-width: 420px; }
}

@media (max-width: 760px) {
  .site-header li:not(:last-child) { display: none; }
  .brand img { height: 40px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .step { grid-template-columns: minmax(0, 40%) minmax(0, 1fr); align-items: center; gap: 1.25rem; justify-items: stretch; }
  .step:nth-child(2) .phone { translate: none; }
  .menu { grid-template-columns: minmax(0, 1fr); }
  .groups { grid-template-columns: minmax(0, 1fr); }
  .group:first-child { grid-row: auto; }
  .phone-in-group { display: none; }
  .board-rows li { grid-template-columns: minmax(0, 1fr); gap: .1rem; }
  .posters { gap: .8rem; }
}

@media (max-width: 640px) {
  .line { grid-template-columns: minmax(0, 1fr); row-gap: 1.25rem; }
  .stop { padding: 0 0 0 2.4rem; }
  .stop::before, .stop:nth-child(n)::before { top: 0; bottom: -1.25rem; left: 9px; right: auto; width: 8px; height: auto; }
  .stop::after { top: 1.1rem; left: 0; }
  .stop:last-child::before { bottom: auto; height: 1.6rem; }
  .stop-end { grid-column: auto; }
  .tz-wanted { width: 78px; }
  .teaser[data-state="found"] .tz-talk,
  .teaser[data-state="timeout"] .tz-talk { top: 142px; }
  .tz-timer { height: 46px; }
  .tz-clock { font-size: 1.5rem; }
  .tz-talk .bubble { font-size: .95rem; padding: .95rem .85rem .8rem; }
  .tz-talk .nan-face { width: 60px; height: 60px; }
  .nan-says .nan-face { width: 84px; height: 84px; }
  .posters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .poster-cap { font-size: .78rem; padding: .45rem .5rem .55rem; }
  .poster-cap b { font-size: .92rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tz-ring, .tz-miss { animation: none; }
  .cannon-btn.firing img { animation: none; }
  .cannon-btn img, .hidden-star, .btn, .menu-btn { transition: none; }
}
