/* NUKEEZ, the landing page. Plain CSS, no build step, nothing loaded from anywhere else.
   Colours are the game's own (ui/UiKit.gd); the font is the game's (Fredoka, SIL OFL 1.1).
   The other pages (support, privacy, press, 404) use site.css. */

@font-face {
  font-family: "Fredoka";
  src: url("../fonts/fredoka-latin.woff") format("woff");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #291f38;
  --ink-soft: #544868;
  --cream: #fff7e6;
  --paper: #fffbf0;
  --sun: #ffd147;
  --red: #ff544d;
  --sky: #73c7ff;
  --mint: #80e68c;
  --tangerine: #ff9947;
  --grape: #bd8cff;
  --bubblegum: #ff80ad;
  --dough: #edad61;
  --tint-sky: #dff3ff;
  --tint-sun: #fff3cc;
  --tint-gum: #ffe6ef;

  --line: 4px;
  --radius: 26px;
  --plate: 0 7px 0 rgba(41, 31, 56, 0.18);
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 12px; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Fredoka", ui-rounded, "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  font-size: 1.125rem;
  line-height: 1.5;
  font-weight: 450;
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--bubblegum); }
:focus-visible { outline: 4px solid var(--grape); outline-offset: 3px; border-radius: 8px; }

h1, h2, h3 { margin: 0; line-height: 1.08; font-weight: 700; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.35rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.9rem); max-width: 20ch; }
h3 { font-size: 1.45rem; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 12px; }
.skip-link:focus { left: 12px; }

/* the candy letters, as type (the real logo is an image in the hero) */
.wordmark { font-weight: 700; font-size: 1.5rem; letter-spacing: 0.02em; display: inline-flex; }
.wordmark span { text-shadow: 0 2px 0 rgba(41, 31, 56, 0.9); -webkit-text-stroke: 1px var(--ink); }
.wordmark span:nth-child(1) { color: var(--sun); }
.wordmark span:nth-child(2) { color: var(--bubblegum); }
.wordmark span:nth-child(3) { color: var(--sky); }
.wordmark span:nth-child(4) { color: var(--mint); }
.wordmark span:nth-child(5) { color: var(--tangerine); }
.wordmark span:nth-child(6) { color: var(--grape); }
.wordmark span:nth-child(7) { color: var(--sun); }

/* ─── buttons: the game's plates ─── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 60px; padding: 12px 26px;
  border: var(--line) solid var(--ink); border-radius: 22px;
  font: inherit; font-weight: 700; font-size: 1.15rem; line-height: 1.1; text-decoration: none; color: var(--ink);
  box-shadow: 0 7px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
a.btn:hover { transform: translateY(2px); box-shadow: 0 5px 0 var(--ink); }
a.btn:active { transform: translateY(7px); box-shadow: 0 0 0 var(--ink); }
.btn-sun { background: var(--sun); }
.btn-paper { background: var(--paper); }
.btn .ico { width: 22px; height: 22px; fill: var(--ink); flex: none; }
.is-soon { cursor: default; }

/* ─── top bar ─── */
.top { background: #b9e4ff; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { border-radius: 11px; border: 3px solid var(--ink); }
.top-nav { display: flex; gap: clamp(14px, 2.4vw, 28px); font-weight: 600; font-size: 1rem; overflow-x: auto; scrollbar-width: none; white-space: nowrap; min-width: 0; }
@media (max-width: 560px) { .brand .wordmark { display: none; } }
.top-nav::-webkit-scrollbar { display: none; }
.top-nav a { text-decoration: none; padding: 8px 2px; border-bottom: 3px solid transparent; }
.top-nav a:hover { border-bottom-color: var(--ink); }

/* ─── hero: the title screen's sky ─── */
.hero {
  background:
    radial-gradient(ellipse 46% 120px at 14% 16%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 70%),
    radial-gradient(ellipse 30% 90px at 78% 8%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, #b9e4ff 0, #dff3ff 62%, #c9f0a8 62%, #b7e68f 100%);
  padding-block: clamp(20px, 4vw, 44px) clamp(36px, 6vw, 72px);
  overflow: hidden;
}
.hero-grid { display: grid; gap: clamp(28px, 5vw, 56px); align-items: center; }
.hero-logo { width: min(100%, 520px); height: auto; margin-left: -6px; }
.hero-tag { font-weight: 600; font-size: clamp(1.1rem, 2.2vw, 1.4rem); color: var(--ink-soft); margin: 2px 0 18px 4px; }
.lede { font-size: clamp(1.1rem, 1.7vw, 1.3rem); max-width: 34rem; margin-top: 16px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px 16px; margin-top: 26px; }
.chips { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.chips li { background: rgba(255, 255, 255, 0.72); border: 3px solid var(--ink); border-radius: 999px; padding: 5px 14px; font-weight: 600; font-size: 0.98rem; }

/* phones */
.phone {
  margin: 0; position: relative;
  aspect-ratio: 9 / 16;
  border: 7px solid var(--ink); border-radius: 40px;
  background: var(--ink);
  box-shadow: 0 12px 0 rgba(41, 31, 56, 0.22);
  overflow: hidden;
}
.phone img, .phone video { width: 100%; height: 100%; object-fit: cover; border-radius: 32px; }
.phone picture { display: block; width: 100%; height: 100%; }

.hero-stage { position: relative; display: grid; grid-template-columns: 1fr; justify-items: center; min-height: 420px; }
.phone-front { width: min(68vw, 300px); z-index: 2; }
.phone-back { position: absolute; top: 9%; width: min(52vw, 230px); z-index: 1; opacity: 0.96; }
.phone-left { left: 50%; transform: translateX(-118%) rotate(-7deg); }
.phone-right { left: 50%; transform: translateX(18%) rotate(7deg); }

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
  .phone-front { width: 300px; }
  .phone-back { width: 232px; }
}
@media (max-width: 520px) {
  .phone-back { width: 46vw; top: 12%; }
  .phone-left { transform: translateX(-112%) rotate(-7deg); }
  .phone-right { transform: translateX(12%) rotate(7deg); }
}

/* ─── the order board's belt ─── */
.belt { background: var(--ink); border-block: var(--line) solid var(--ink); height: 74px; overflow: hidden; }
.belt-run {
  height: 100%; width: calc(100% + 240px);
  background:
    radial-gradient(circle at 60px 50%, var(--cream) 0 9px, var(--bubblegum) 10px 25px, var(--ink) 26px 29px, transparent 30px) 0 0 / 120px 100%,
    radial-gradient(circle at 60px 50%, transparent 0 29px, rgba(255, 255, 255, 0.06) 30px 31px, transparent 32px) 0 0 / 120px 100%,
    linear-gradient(180deg, #3a2d4f 0 16%, #4a3b63 16% 84%, #3a2d4f 84%);
  animation: belt 3.2s linear infinite;
}
@keyframes belt { to { transform: translateX(-120px); } }

/* ─── bands ─── */
.band { padding-block: clamp(52px, 8vw, 104px); }
.band-sky { background: var(--tint-sky); }
.band-cream { background: var(--tint-sun); }
.kicker { font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 10px; }
.band-lede { font-size: clamp(1.1rem, 1.6vw, 1.25rem); max-width: 44rem; margin-top: 16px; }

/* ─── work tickets ─── */
.tickets { list-style: none; padding: 0; margin: clamp(28px, 4vw, 44px) 0 0; display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.ticket {
  background: var(--paper); border: var(--line) solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--plate); overflow: hidden; display: flex; flex-direction: column;
}
.ticket:nth-child(1) { transform: rotate(-0.8deg); }
.ticket:nth-child(3) { transform: rotate(0.8deg); }
.ticket-shot { margin: 0; border-bottom: var(--line) solid var(--ink); background: var(--tint-sky); }
.ticket-shot img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.ticket-body { padding: 20px 22px 26px; display: grid; gap: 8px; }
.ticket-no { display: inline-block; justify-self: start; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--red); border: 2.5px solid var(--red); border-radius: 8px; padding: 1px 8px; }

/* ─── the ladder: six rungs, each a step up ─── */
.ladder { list-style: none; padding: 0; margin: clamp(30px, 5vw, 56px) 0 0; display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
.rung {
  background: var(--paper); border: var(--line) solid var(--ink); border-radius: 22px; box-shadow: var(--plate);
  padding: 16px 12px 16px; text-align: center; display: grid; justify-items: center; gap: 4px;
}
.rung svg { width: 64px; height: 64px; padding: 10px; border-radius: 50%; border: var(--line) solid var(--ink); fill: var(--ink); stroke: var(--ink); stroke-width: 0; margin-bottom: 6px; }
.rung svg [fill="none"] { stroke: var(--ink); }
.rung svg .cut { fill: var(--paper); }
.rung b { font-size: 1.15rem; line-height: 1.15; }
.rung span { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.2; }
.rung-1 svg { background: var(--sun); } .rung-2 svg { background: var(--bubblegum); } .rung-3 svg { background: var(--sky); }
.rung-4 svg { background: var(--mint); } .rung-5 svg { background: var(--tangerine); } .rung-6 svg { background: var(--grape); }
.ladder-note { margin-top: 26px; max-width: 44rem; color: var(--ink-soft); }
@media (min-width: 620px) { .ladder { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 980px) {
  .ladder { grid-template-columns: repeat(6, minmax(0, 1fr)); padding-top: 100px; }
  .rung-2 { transform: translateY(-20px); } .rung-3 { transform: translateY(-40px); } .rung-4 { transform: translateY(-60px); }
  .rung-5 { transform: translateY(-80px); } .rung-6 { transform: translateY(-100px); }
}

/* ─── split sections ─── */
.split { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split-copy { display: grid; gap: 16px; }
.split-copy h2 { margin-bottom: 4px; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); }
  .split-flip { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr); }
}
.ticks { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 38px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%; background: var(--mint); border: 3px solid var(--ink); }
.ticks li::after { content: ""; position: absolute; left: 8px; top: 7px; width: 8px; height: 12px; border: solid var(--ink); border-width: 0 3px 3px 0; transform: rotate(40deg); }

.crew { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 14px; }
.crew figure { margin: 0; text-align: center; }
.crew img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: var(--line) solid var(--ink); box-shadow: var(--plate); background: var(--tint-sky); }
.crew figcaption { margin-top: 12px; font-size: 0.92rem; line-height: 1.25; color: var(--ink-soft); }
.crew figcaption b { display: block; color: var(--ink); font-size: 1.05rem; }

.phone-solo { width: min(100%, 320px); justify-self: center; }

/* ─── the dark band: the plant under its red emergency light ─── */
.band-ink { background: radial-gradient(ellipse 70% 60% at 50% 0, #5a2038 0, var(--ink) 70%); color: var(--paper); }
.band-ink .kicker { color: #ffb3ae; }
.clips { margin-top: clamp(28px, 4vw, 44px); display: grid; grid-auto-flow: column; grid-auto-columns: min(64vw, 280px); gap: 22px; overflow-x: auto; padding: 4px 4px 22px; scroll-snap-type: x mandatory; scrollbar-color: var(--bubblegum) transparent; }
.phone-clip { scroll-snap-align: center; overflow: visible; background: none; border: 0; box-shadow: none; aspect-ratio: auto; border-radius: 0; }
.phone-clip video { aspect-ratio: 9 / 16; border: 7px solid #150f1f; border-radius: 40px; background: #150f1f; box-shadow: 0 12px 0 rgba(0, 0, 0, 0.35); }
.phone-clip figcaption { margin-top: 26px; font-weight: 600; text-align: center; font-size: 1.02rem; }
@media (min-width: 980px) { .clips { justify-content: center; overflow: visible; } }

/* ─── the road trip: Tina's postcards ─── */
.band-road { background: linear-gradient(180deg, var(--tint-gum), var(--cream)); padding-bottom: clamp(36px, 6vw, 72px); }
.rail { overflow-x: auto; padding: 34px 0 30px; scroll-snap-type: x proximity; scrollbar-color: var(--bubblegum) transparent; }
.cards { list-style: none; margin: 0; padding: 0 max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); display: grid; grid-auto-flow: column; grid-auto-columns: min(74vw, 268px); gap: 22px; width: max-content; }
.card {
  scroll-snap-align: center;
  background: var(--paper); border: var(--line) solid var(--ink); border-radius: 18px; box-shadow: var(--plate);
  padding: 10px 10px 16px; display: grid; gap: 10px; align-content: start; position: relative;
  transition: transform 0.15s ease;
}
.card:nth-child(odd) { transform: rotate(-1.4deg); }
.card:nth-child(even) { transform: rotate(1.2deg) translateY(8px); }
.card:hover { transform: rotate(0) translateY(-4px); }
.card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; border: 3px solid var(--ink); background: var(--tint-sky); }
.card h3 { font-size: 1.18rem; }
.card p { font-size: 0.95rem; line-height: 1.35; color: var(--ink-soft); }
.card .stamp {
  position: absolute; right: 18px; top: 18px; width: 40px; height: 46px; display: grid; place-items: center;
  font-weight: 700; font-size: 1rem; color: var(--ink); background: var(--sun);
  border: 3px dotted var(--ink); border-radius: 6px; transform: rotate(6deg); box-shadow: 0 3px 0 rgba(41, 31, 56, 0.25);
}
.card-blank {
  aspect-ratio: 4 / 5; border-radius: 10px; border: 3px dashed var(--ink-soft);
  display: grid; place-items: center;
  background: repeating-linear-gradient(-45deg, var(--tint-gum) 0 14px, var(--paper) 14px 28px);
  font-weight: 700; font-size: 6rem; line-height: 1; color: var(--bubblegum);
  text-shadow: 0 4px 0 var(--ink); -webkit-text-stroke: 3px var(--ink);
}
.card-secret .stamp { background: var(--paper); }
.rail-hint { font-size: 0.92rem; color: var(--ink-soft); }
@media (min-width: 760px) {
  .rail { overflow: visible; padding: 34px 0 20px; }
  .cards { width: auto; max-width: var(--wrap); margin-inline: auto; padding: 0 var(--gutter); grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 26px; }
  .rail-hint { display: none; }
}

/* ─── the film ─── */
.film-wrap { display: grid; gap: clamp(24px, 5vw, 56px); align-items: center; }
.story-copy { display: grid; gap: 16px; }
.story-copy .band-lede { margin-top: 4px; }
.story-copy p:not(.kicker):not(.band-lede) { max-width: 40rem; }
.story-small { font-weight: 600; color: var(--ink-soft); }
.film { justify-self: center; width: 100%; max-width: 340px; }
.film video { width: 100%; aspect-ratio: 9 / 16; border: 7px solid var(--ink); border-radius: 34px; background: var(--ink); box-shadow: 0 12px 0 rgba(41, 31, 56, 0.22); }
@media (min-width: 760px) { .film-wrap { grid-template-columns: minmax(0, 1fr) 340px; } }

/* ─── the deal ─── */
.promise { list-style: none; padding: 0; margin: clamp(26px, 4vw, 40px) 0 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.promise li { background: var(--paper); border: var(--line) solid var(--ink); border-radius: 22px; box-shadow: var(--plate); padding: 20px 20px 22px; display: grid; gap: 6px; align-content: start; }
.promise b { font-size: 1.45rem; line-height: 1.1; }
.promise span { font-size: 0.98rem; color: var(--ink-soft); }
.promise li:nth-child(1) { background: var(--sun); } .promise li:nth-child(1) span { color: var(--ink); }

/* ─── questions ─── */
.faq-wrap { display: grid; gap: clamp(24px, 4vw, 48px); }
.faq-wrap > div:first-child { display: grid; gap: 14px; align-content: start; }
@media (min-width: 900px) { .faq-wrap { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); } }
.faq { display: grid; gap: 12px; }
.faq details { background: var(--paper); border: var(--line) solid var(--ink); border-radius: 18px; box-shadow: var(--plate); }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 52px 16px 20px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-52%); font-size: 1.7rem; font-weight: 700; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 20px 18px; color: var(--ink-soft); }

/* ─── closing ─── */
.closing { background: linear-gradient(180deg, var(--cream) 0, #b9e4ff 100%); padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 104px); text-align: center; }
.closing .wrap { display: grid; justify-items: center; gap: 22px; }
.closing-art { width: min(100%, 760px); border: var(--line) solid var(--ink); border-radius: 34px; box-shadow: var(--plate); }
.closing h2 { max-width: none; font-size: clamp(2.2rem, 6vw, 4rem); }
.closing-small { font-weight: 600; color: var(--ink-soft); margin-top: 6px; }

/* ─── footer ─── */
.foot { background: var(--ink); color: #e9e2f5; padding-block: 40px 48px; font-size: 0.95rem; }
.foot .wrap { display: grid; gap: 12px; }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; margin-bottom: 10px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-weight: 600; }
.foot .wordmark span { -webkit-text-stroke: 0; text-shadow: none; }
.foot p { color: #bfb4d2; max-width: 60rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .belt-run { animation: none; }
  .btn, .card { transition: none; }
}
