/* Rooftop Zombie Defense: the site's one stylesheet.
   A playful, bright game-site look (cream paper, torn edges, chunky outlined buttons, character carousels) around the
   game's moonlit night: night-blue hero and footer, ember red, gold and toxic green. */
:root {
  --paper: #f7ecd8;
  --paper-2: #efe0c4;
  --ink: #0d1430;
  --ink-2: #3a4366;
  --night: #0b1230;
  --night-2: #151f4a;
  --red: #e2382b;
  --red-2: #b82219;
  --ember: #ff8a1f;
  --gold: #ffcf4a;
  --toxic: #63c13f;
  --toxic-2: #3f9a2a;
  --radius: 22px;
  --shadow: 0 5px 0 var(--ink);
  --display: "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* the zigzag edge: one even, sharp tooth repeated across (same teeth at any width, always edge to edge) */
  --torn: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2030%2030'%20preserveAspectRatio='none'%3E%3Cpath%20d='M0%2030%20L0%2022%20L15%204%20L30%2022%20L30%2030Z'/%3E%3C/svg%3E");
  --torn-down: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2030%2030'%20preserveAspectRatio='none'%3E%3Cpath%20d='M0%200%20L0%208%20L15%2026%20L30%208%20L30%200Z'/%3E%3C/svg%3E");
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font: 500 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background-color: var(--paper);
  /* paper grain: two soft dot fields */
  background-image:
    radial-gradient(rgba(120, 90, 40, 0.07) 1px, transparent 1.2px),
    radial-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1.4px);
  background-size: 7px 7px, 11px 11px;
  background-position: 0 0, 3px 5px;
}
img, video { display: block; max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }
a { color: var(--red); text-decoration: none; font-weight: 700; }
a:hover { color: var(--red-2); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: 0.01em; line-height: 1.02; margin: 0; }
p { margin: 0; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(800px, 100% - 32px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.center { text-align: center; margin-inline: auto; }

/* ---------- top bar ---------- */
.topbar { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background 0.25s, box-shadow 0.25s; }
.topbar.solid { background: rgba(11, 18, 48, 0.94); backdrop-filter: blur(10px); box-shadow: 0 4px 0 rgba(0, 0, 0, 0.18); }
.topbar .wrap { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 50px; width: auto; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.35)); }
.nav { display: flex; gap: 4px; align-items: center; margin-inline: auto; }
.nav a { color: #fff; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 15px; }
.nav a:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.topbar .btn { min-height: 44px; font-size: 17px; padding: 0 20px; }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 50%; border: 2.5px solid #fff; background: transparent; color: #fff; cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; margin: auto; display: block; }
@media (max-width: 900px) {
  .nav { position: fixed; inset: 76px 12px auto 12px; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px; margin: 0;
         background: var(--night); border-radius: 20px; border: 3px solid var(--ink); box-shadow: 0 8px 0 var(--ink); display: none; }
  .nav.open { display: flex; }
  .nav a { font-size: 18px; padding: 12px 16px; }
  .menu-btn { display: block; margin-left: auto; }
  .topbar .btn { display: none; }
  .brand img { height: 42px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 30px; border-radius: 999px; cursor: pointer;
  font: 700 17px var(--body); color: var(--ink); background: #fff;
  border: 3px solid var(--ink); box-shadow: var(--shadow);
  transition: transform 0.1s, box-shadow 0.1s, background 0.15s;
}
.btn:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.btn.hot { background: linear-gradient(180deg, #ffb24a, var(--ember)); font-family: var(--display); font-weight: 400; font-size: 21px; letter-spacing: 0.02em; }
.btn.red { background: var(--red); color: #fff; }
.btn.red:hover { color: #fff; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }
.appstore { display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 20px; border-radius: 14px;
  background: #000; color: #fff; border: 2px solid rgba(255, 255, 255, 0.55); font-weight: 600; line-height: 1.1; }
.appstore:hover { color: #fff; }
.appstore small { display: block; font-size: 11px; font-weight: 500; opacity: 0.85; }
.appstore b { font-size: 19px; font-weight: 700; }
.appstore svg { width: 26px; height: 26px; }

/* round arrow buttons (carousels) */
.arrow { width: 52px; height: 52px; border-radius: 50%; border: 3px solid var(--ink); background: #fff; box-shadow: 0 4px 0 var(--ink);
  display: grid; place-items: center; cursor: pointer; color: var(--ink); transition: transform 0.1s; flex-shrink: 0; padding: 0; }
.arrow:hover { transform: translateY(-2px); }
.arrow:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.arrow svg { width: 22px; height: 22px; }

/* torn paper edges: an element filled with the next section's color, its top cut jagged */
.edge { position: relative; z-index: 3; height: 22px; margin-top: -21px; background: var(--paper);
  -webkit-mask: var(--torn) 0 0 / 26px 100% repeat-x; mask: var(--torn) 0 0 / 26px 100% repeat-x; }
.edge.down { margin-top: 0; margin-bottom: -21px; -webkit-mask-image: var(--torn-down); mask-image: var(--torn-down); }
.edge.to-red { background: var(--red); }
.edge.to-green { background: var(--toxic); }
.edge.to-night { background: var(--night); }

/* ---------- hero slider ---------- */
/* (no inline style attributes anywhere: the CSP blocks them; these small helpers replace them) */
.pt-s { padding-top: 20px; } .pt-m { padding-top: 34px; } .pb { padding-bottom: 96px; } .mt { margin-top: 24px; }
.page-hero.tall { padding-bottom: 120px; } .fineprint.tight { margin-top: 0; } .mono { font: 600 13px ui-monospace, Menlo, monospace; }
.card.full { width: 100%; } .spinner.spaced { margin: 30px auto; }

/* the slides share one grid cell: the hero is as tall as its tallest slide (never less than the screen), so nothing spills */
.hero { position: relative; display: grid; padding: 0; min-height: min(100svh, 860px); background: var(--night); color: #fff; overflow: hidden; isolation: isolate; }
.slide { grid-area: 1 / 1; position: relative; display: grid; align-items: center; opacity: 0; visibility: hidden; transition: opacity 0.7s, visibility 0.7s; }
.slide.on { opacity: 1; visibility: visible; }
.slide > .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.slide::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(11, 18, 48, 0.82) 0%, rgba(11, 18, 48, 0.35) 55%, rgba(11, 18, 48, 0.05)),
              linear-gradient(180deg, rgba(11, 18, 48, 0.55), transparent 30%); }
.slide .copy { padding: 110px 0 90px; max-width: 600px; display: grid; gap: 22px; justify-items: start; }
.slide .logo { width: min(520px, 86vw); filter: drop-shadow(0 10px 0 rgba(0, 0, 0, 0.35)) drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5)); }
.slide h2 { font-size: clamp(42px, 6.4vw, 78px); text-transform: uppercase; text-shadow: 0 5px 0 rgba(0, 0, 0, 0.35); }
.slide h2 em { font-style: normal; color: var(--gold); }
.slide p { font-size: clamp(17px, 1.6vw, 20px); font-weight: 600; max-width: 520px; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6); }
.slide .actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
/* the art sits above the darkening gradient (it used to be under it, which faded it) and beside the copy, never over it */
.slide .art { position: absolute; right: max(5vw, 28px); bottom: 64px; width: min(34vw, 430px); max-height: 74%; object-fit: contain; z-index: 0;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.55)); }
.slide .art.coins { width: min(36vw, 480px); }
.slide .wrap { position: relative; z-index: 1; }
@media (max-width: 1000px) { .slide .art { display: none; } }
.hero .arrow { position: absolute; top: 50%; translate: 0 -50%; z-index: 4; }
.hero .arrow.prev { left: 18px; } .hero .arrow.next { right: 18px; }
.dots { position: absolute; left: 50%; translate: -50% 0; bottom: 56px; display: flex; gap: 10px; z-index: 4; }
.dots button { width: 13px; height: 13px; border-radius: 50%; border: 2.5px solid #fff; background: transparent; padding: 0; cursor: pointer; }
.dots button.on { background: #fff; }
@media (max-width: 760px) {
  .hero { min-height: max(100svh, 700px); }
  .slide { align-items: end; }
  .slide .copy { padding: 100px 0 128px; gap: 16px; }
  .slide .actions { gap: 10px; flex-wrap: nowrap; }
  .slide .actions .btn { min-height: 48px; padding: 0 18px; font-size: 15px; }
  .slide .actions .btn.hot { font-size: 19px; }
  .slide .actions .appstore { min-height: 48px; padding: 0 14px; }
  .slide .actions .appstore b { font-size: 16px; }
  .slide .logo { width: min(330px, 80vw); }
  .slide h2 { font-size: 46px; }
  .slide p { font-size: 16px; }
  .hero .arrow { display: none; }
  .dots { bottom: 66px; }
}
@media (prefers-reduced-motion: reduce) { .slide { transition: none; } }

/* ---------- sections ---------- */
section { padding: 84px 0; position: relative; }
.head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.title { font-size: clamp(38px, 5.4vw, 60px); color: var(--red); text-transform: uppercase; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.08); }
.lead { font-size: 18px; color: var(--ink-2); max-width: 640px; margin-top: 12px; font-weight: 600; }
.head .controls { display: flex; gap: 10px; }

/* missions carousel */
.rail { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 14px 4px 26px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.mission { flex: 0 0 min(300px, 78vw); scroll-snap-align: center; background: #fff; border: 3px solid var(--ink); border-radius: var(--radius);
  box-shadow: 0 6px 0 var(--ink); overflow: hidden; transition: transform 0.2s; }
.mission:hover { transform: translateY(-6px) rotate(-1deg); }
.mission .shot { position: relative; aspect-ratio: 4 / 3; background: var(--night); overflow: hidden; }
.mission .shot video, .mission .shot img { width: 100%; height: 100%; object-fit: cover; }
.mission .lvl { position: absolute; top: 12px; left: 12px; font: 400 15px var(--display); letter-spacing: 0.04em; color: #fff; background: var(--red);
  border: 2.5px solid var(--ink); padding: 3px 12px; border-radius: 999px; box-shadow: 0 3px 0 var(--ink); }
.mission .info { padding: 16px 18px 20px; }
.mission.more .shot { display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, var(--night-2), var(--night)); }
.mission.more .shot img { position: absolute; width: auto; height: 86%; bottom: 0; right: 8%; object-fit: contain; filter: brightness(0) drop-shadow(0 0 18px rgba(99, 193, 63, 0.55)); opacity: 0.9; }
.mission.more .q { position: relative; z-index: 1; font: 400 120px var(--display); color: var(--gold); text-shadow: 0 6px 0 rgba(0, 0, 0, 0.4); margin-right: 30%; }
.mission h3 { font-size: 27px; color: var(--ink); }
.mission p { color: var(--ink-2); font-size: 15px; margin-top: 6px; }

/* meet the undead */
.undead { text-align: center; }
.stage { display: grid; grid-template-columns: auto 1fr 1.1fr auto; align-items: center; gap: 28px; margin-top: 36px; }
.stage .who { text-align: left; }
.stage .who .tag { display: inline-block; font: 400 15px var(--display); letter-spacing: 0.06em; padding: 4px 14px; border-radius: 999px;
  border: 2.5px solid var(--ink); box-shadow: 0 3px 0 var(--ink); background: var(--gold); margin-bottom: 14px; }
.stage .who h3 { font-size: clamp(40px, 5vw, 62px); color: var(--ink); text-transform: uppercase; }
.stage .who p { font-size: 18px; color: var(--ink-2); margin-top: 12px; max-width: 460px; font-weight: 600; }
.stage .who .stats { display: flex; gap: 22px; margin-top: 18px; flex-wrap: wrap; }
.stage .who .stats span { font-size: 13px; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.04em; }
.stage .who .stats b { display: block; font: 400 22px var(--display); color: var(--red); letter-spacing: 0; text-transform: none; }
.stage .pic { position: relative; height: 380px; display: grid; place-items: center; }
.stage .pic::before { content: ""; position: absolute; width: 330px; height: 330px; border-radius: 50%; background: radial-gradient(circle, #fff7e6 0%, var(--paper-2) 70%);
  border: 3px dashed rgba(13, 20, 48, 0.18); }
.stage .pic img { position: relative; max-height: 340px; max-width: 100%; width: auto; filter: drop-shadow(0 14px 0 rgba(13, 20, 48, 0.12)); animation: bob 3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px); } }
.roster { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.roster button { width: 64px; height: 64px; border-radius: 16px; border: 3px solid var(--ink); background: #fff; box-shadow: 0 3px 0 var(--ink);
  padding: 4px; cursor: pointer; transition: transform 0.12s; }
.roster button img { width: 100%; height: 100%; object-fit: contain; }
.roster button.on { background: var(--gold); transform: translateY(-4px); }
@media (max-width: 860px) {
  .stage { grid-template-columns: auto 1fr auto; }
  .stage .who { grid-column: 1 / -1; grid-row: 2; text-align: center; }
  .stage .who p { margin-inline: auto; }
  .stage .who .stats { justify-content: center; }
  .stage .pic { height: 280px; }
  .stage .pic::before { width: 240px; height: 240px; }
  .stage .pic img { max-height: 250px; }
  .roster button { width: 52px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) { .stage .pic img { animation: none; } }

/* arsenal: clip + words */
.feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: center; margin-bottom: 64px; }
.feature:last-child { margin-bottom: 0; }
.feature:nth-child(even) .media { order: 2; }
.feature .media { border-radius: var(--radius); overflow: hidden; border: 3px solid var(--ink); box-shadow: 0 8px 0 var(--ink); aspect-ratio: 16 / 9; background: var(--night); }
.feature .media video { width: 100%; height: 100%; object-fit: cover; }
.feature h3 { font-size: clamp(30px, 3.6vw, 44px); color: var(--ink); text-transform: uppercase; margin-bottom: 12px; }
.feature p { color: var(--ink-2); font-size: 18px; font-weight: 600; }
.feature ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.feature li { padding-left: 34px; position: relative; font-weight: 600; }
.feature li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 6px; background: var(--toxic); border: 2.5px solid var(--ink); }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; gap: 22px; } .feature:nth-child(even) .media { order: 0; } }

/* the red web-store card (patterned) */
.promo { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: 30px; align-items: center; padding: 44px; border-radius: 28px;
  background-color: var(--red); color: #fff; border: 3px solid var(--ink); box-shadow: 0 8px 0 var(--ink);
  background-image: radial-gradient(rgba(0, 0, 0, 0.12) 2px, transparent 2.5px), radial-gradient(rgba(255, 255, 255, 0.08) 2px, transparent 2.5px);
  background-size: 28px 28px; background-position: 0 0, 14px 14px; }
.promo h2 { font-size: clamp(34px, 4.6vw, 54px); text-transform: uppercase; text-shadow: 0 4px 0 rgba(0, 0, 0, 0.25); }
.promo p { font-size: 18px; font-weight: 600; margin: 14px 0 24px; max-width: 480px; }
.promo .packs { display: grid; place-items: center; min-width: 0; }
.promo .packs img { width: min(100%, 340px); filter: drop-shadow(0 12px 0 rgba(0, 0, 0, 0.25)); }
.promo .badge { position: absolute; top: -22px; right: 26px; z-index: 3; font: 400 22px var(--display); background: var(--toxic); color: #fff;
  border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); border-radius: 999px; padding: 6px 18px; transform: rotate(4deg); text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25); }
@media (max-width: 860px) { .promo { grid-template-columns: 1fr; padding: 34px 22px 26px; text-align: center; } .promo p { margin-inline: auto; } .promo .packs img { width: min(70%, 240px); } }

/* the green "coming soon" band */
.band-green { background-color: var(--toxic); color: #fff; padding: 90px 0 0; overflow: hidden;
  background-image: radial-gradient(rgba(0, 0, 0, 0.08) 2px, transparent 2.5px); background-size: 26px 26px; }
.band-green .wrap { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; }
.band-green h2 { font-size: clamp(36px, 5vw, 58px); text-transform: uppercase; text-shadow: 0 4px 0 rgba(0, 0, 0, 0.22); }
.band-green p { font-size: 18px; font-weight: 600; margin: 14px 0 26px; max-width: 520px; }
.band-green .copy { padding-bottom: 90px; }
.band-green .pop { width: min(300px, 36vw); filter: drop-shadow(0 12px 0 rgba(0, 0, 0, 0.2)); }
@media (max-width: 760px) { .band-green .wrap { grid-template-columns: 1fr; text-align: center; } .band-green p { margin-inline: auto; } .band-green .pop { margin: 0 auto; width: 52vw; } .band-green .copy { padding-bottom: 10px; } }

/* ---------- footer ---------- */
footer { background: var(--night); color: rgba(255, 255, 255, 0.75); padding: 56px 0 36px; text-align: center; font-weight: 500; }
footer .logo { width: 260px; margin: 0 auto 26px; filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.35)); }
footer .badges { display: flex; justify-content: center; gap: 12px; margin-bottom: 30px; }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; padding: 22px 0; border-block: 1px solid rgba(255, 255, 255, 0.14); }
footer nav a { color: #fff; font-weight: 600; }
footer nav a:hover { color: var(--gold); }
footer .legal { margin-top: 22px; font-size: 14px; display: grid; gap: 6px; }
footer .blm { width: 110px; margin: 16px auto 0; opacity: 0.8; }

/* ---------- inner pages ---------- */
.page-hero { position: relative; padding: 140px 0 84px; background: var(--night); color: #fff; overflow: hidden;
  background-image: radial-gradient(60% 100% at 80% 0%, rgba(255, 138, 31, 0.22), transparent 70%), radial-gradient(40% 60% at 10% 100%, rgba(99, 193, 63, 0.18), transparent 70%); }
.page-hero h1 { font-size: clamp(42px, 6.4vw, 72px); text-transform: uppercase; text-shadow: 0 5px 0 rgba(0, 0, 0, 0.35); }
.page-hero p { font-size: 18px; font-weight: 600; margin-top: 12px; max-width: 640px; color: rgba(255, 255, 255, 0.86); }
.page-hero .updated { color: rgba(255, 255, 255, 0.7); font-size: 15px; }
.eyebrow { display: inline-block; font: 400 16px var(--display); letter-spacing: 0.06em; color: var(--ink); background: var(--gold); padding: 4px 14px;
  border-radius: 999px; border: 2.5px solid var(--ink); box-shadow: 0 3px 0 var(--ink); margin-bottom: 16px; text-transform: uppercase; }
.page-hero .peek { position: absolute; right: 5vw; bottom: 0; height: 230px; width: auto; filter: drop-shadow(0 10px 0 rgba(0, 0, 0, 0.3)); }
@media (max-width: 760px) { .page-hero .peek { height: 120px; opacity: 0.45; right: 2vw; } }

.card { background: #fff; border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: 0 6px 0 var(--ink); padding: 26px; }

/* store: player box */
.player { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 22px; align-items: center; margin-top: -44px; position: relative; z-index: 4; }
.player label { font: 400 24px var(--display); display: block; margin-bottom: 4px; }
.player .hint { color: var(--ink-2); font-size: 15px; font-weight: 600; }
.player .row { display: flex; gap: 10px; margin-top: 14px; }
.player .row .btn { flex-shrink: 0; }
.player input { flex: 1; min-width: 0; height: 56px; border-radius: 16px; border: 3px solid var(--ink); background: var(--paper);
  color: var(--ink); font: 700 23px ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.12em; padding: 0 16px; text-transform: uppercase; }
.player input:focus { outline: none; box-shadow: 0 0 0 4px rgba(255, 138, 31, 0.35); }
.status { margin-top: 10px; font-size: 15px; font-weight: 700; min-height: 22px; }
.status.ok { color: var(--toxic-2); }
.status.err { color: var(--red); }
.where { display: flex; gap: 14px; align-items: center; color: var(--ink-2); font-size: 14px; font-weight: 600; max-width: 300px; }
.where img { width: 76px; }
@media (max-width: 760px) { .player { grid-template-columns: minmax(0, 1fr); } .player input { font-size: 19px; letter-spacing: 0.06em; padding: 0 12px; } .player .btn { padding: 0 18px; } }

.store-section { margin-top: 56px; }
.store-section h2 { font-size: 44px; color: var(--red); text-transform: uppercase; margin-bottom: 26px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.bonus-pill { font: 400 17px var(--display); letter-spacing: 0.03em; color: #fff; background: var(--toxic); border: 2.5px solid var(--ink); box-shadow: 0 3px 0 var(--ink);
  padding: 5px 14px; border-radius: 999px; text-transform: none; }
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(206px, 1fr)); gap: 22px 20px; }
.product { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 26px 16px 18px;
  background: #fff; border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: 0 6px 0 var(--ink); transition: transform 0.15s; }
.product:hover { transform: translateY(-5px) rotate(-0.6deg); }
.product > img { height: 120px; width: auto; object-fit: contain; filter: drop-shadow(0 8px 0 rgba(13, 20, 48, 0.12)); }
.product .amount { font: 400 32px var(--display); color: var(--ink); display: flex; align-items: center; gap: 6px; }
.product .amount img { height: 28px; }
.product .name { font-weight: 800; }
.product .was { color: var(--ink-2); font-size: 13px; font-weight: 600; }
.product .btn { width: 100%; margin-top: 10px; min-height: 48px; }
.product .tag { position: absolute; top: -15px; left: 50%; translate: -50% 0; white-space: nowrap; font: 400 14px var(--display); letter-spacing: 0.05em;
  padding: 3px 12px; border-radius: 999px; background: var(--gold); border: 2.5px solid var(--ink); box-shadow: 0 3px 0 var(--ink); text-transform: uppercase; }
.product.od { background: linear-gradient(180deg, #fff, #fff7e6); }
.product.od > img { height: 150px; }
.product.od .amount { font-size: 26px; }
.locked .product .btn { pointer-events: none; opacity: 0.45; }
.fineprint { color: var(--ink-2); font-size: 13px; font-weight: 600; margin-top: 30px; max-width: 780px; }
@media (max-width: 520px) {
  .store-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .product { padding: 20px 8px 12px; }
  .product > img { height: 80px; } .product.od > img { height: 130px; }
  .product .amount { font-size: 24px; }
  .product .btn { font-size: 15px; min-height: 44px; padding: 0 8px; }
}

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.steps div { counter-increment: s; padding: 22px; background: #fff; border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: 0 5px 0 var(--ink); }
.steps div::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; margin-bottom: 12px;
  font: 400 22px var(--display); background: var(--red); color: #fff; border: 2.5px solid var(--ink); }
.steps b { display: block; font-size: 17px; }
.steps span { color: var(--ink-2); font-size: 15px; font-weight: 600; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* legal / help text */
.legal-doc { padding: 56px 0 90px; }
.legal-doc h2 { font-size: 30px; color: var(--red); margin: 40px 0 12px; text-transform: uppercase; }
.legal-doc h2:first-child { margin-top: 0; }
.legal-doc h3 { font: 800 17px var(--body); margin: 24px 0 8px; }
.legal-doc p, .legal-doc li { color: var(--ink-2); font-weight: 500; }
.legal-doc p + p { margin-top: 12px; }
.legal-doc ul { padding-left: 22px; display: grid; gap: 6px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.toc a { font-size: 13px; font-weight: 700; padding: 6px 13px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); border: 2px solid rgba(255, 255, 255, 0.4); color: #fff; }
.toc a:hover { background: #fff; color: var(--ink); }
code { font: 700 0.92em ui-monospace, "SF Mono", Menlo, monospace; background: var(--paper-2); padding: 1px 6px; border-radius: 6px; color: var(--ink); }
mark[data-todo] { background: rgba(226, 56, 43, 0.18); color: var(--red-2); padding: 0 4px; border-radius: 4px; }

/* success */
.receipt { max-width: 560px; margin: 0 auto; text-align: center; display: grid; gap: 16px; justify-items: center; padding-bottom: 90px; }
.receipt .big { width: 130px; height: 130px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--ink); margin-top: -110px; position: relative; z-index: 4; }
.receipt .big img { width: 90px; }
.receipt h1 { font-size: clamp(36px, 5vw, 54px); color: var(--red); text-transform: uppercase; }
.receipt .lead { margin: 0; }
.spinner { width: 32px; height: 32px; border-radius: 50%; border: 4px solid rgba(13, 20, 48, 0.15); border-top-color: var(--red); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.kv { width: 100%; display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; text-align: left; font-size: 15px; }
.kv dt { color: var(--ink-2); font-weight: 600; }
.kv dd { margin: 0; font-weight: 800; text-align: right; }
