/* Kingpin Legacy website. Dark noir, lamp gold. No framework. */

@font-face {
  font-family: "Oswald";
  src: url("fonts/Oswald-SemiBold.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("fonts/Barlow-Medium.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --night: #0a0e1a;
  --night-2: #111727;
  --night-3: #1a2236;
  --line: #2a3450;
  --gold: #d9a648;
  --gold-hi: #f0c870;
  --gold-dim: #8f6d2c;
  --teal: #4fd1c5;
  --text: #ece6d8;
  --muted: #b3ab9b;       /* 8.4:1 on --night */
  --danger: #ff8a7a;
  --ok: #7fd99a;
  --radius: 10px;
  --wrap: 1120px;
  --head: "Oswald", "Arial Narrow", Arial, sans-serif;
  --body: "Barlow", "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font: 500 1.0625rem/1.6 var(--body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-hi); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--head); font-weight: 600; line-height: 1.15; letter-spacing: .02em; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); text-transform: uppercase; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); text-transform: uppercase; color: var(--gold); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 28px; } }
.narrow { max-width: 780px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--gold); color: var(--night); padding: 8px 14px; z-index: 100; font-weight: 600; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(10, 14, 26, .92); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--gold); font-family: var(--head); font-size: 1.2rem; letter-spacing: .08em; text-transform: uppercase; }
.brand img { width: 36px; height: 36px; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { color: var(--text); text-decoration: none; font-family: var(--head); text-transform: uppercase; letter-spacing: .08em; font-size: .95rem; padding: 10px 12px; border-radius: 6px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold-hi); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.nav .btn { margin-left: 6px; }
.nav-toggle { display: none; }
@media (max-width: 640px) {
  .nav-toggle { display: inline-flex; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 6px; padding: 8px 12px; font: 600 .95rem var(--head); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
  .nav { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--night-2); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 8px; }
  .nav .btn { margin: 8px 0 0; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  font: 600 1rem var(--head); letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  color: var(--night); background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, #b8862e);
  border: 1px solid #f6d98f; border-radius: 6px; cursor: pointer;
  box-shadow: 0 2px 0 #6b4f1d, 0 6px 22px rgba(217, 166, 72, .18);
}
.btn:hover { color: var(--night); filter: brightness(1.08); }
.btn:disabled, .btn[aria-disabled="true"] { filter: grayscale(.8) brightness(.6); cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--gold-hi); border-color: var(--gold-dim); box-shadow: none; }
.btn.ghost:hover { color: #fff; border-color: var(--gold); }
.btn.small { min-height: 40px; padding: 0 16px; font-size: .9rem; }
.linkbtn { background: none; border: 0; color: var(--gold-hi); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 4px 0; }

/* ---------- ornament ---------- */
.rule { display: flex; align-items: center; gap: 14px; color: var(--gold); margin: 0 auto 28px; max-width: 360px; }
.rule::before, .rule::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.rule::after { background: linear-gradient(90deg, var(--gold), transparent); }
.rule span { width: 10px; height: 10px; transform: rotate(45deg); border: 1px solid var(--gold); }
.eyebrow { font: 600 .85rem var(--head); letter-spacing: .25em; text-transform: uppercase; color: var(--teal); margin-bottom: .5em; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(88vh, 820px); display: grid; place-items: center; text-align: center; overflow: hidden; isolation: isolate; }
.hero picture, .hero .hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero .hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 50% 38%, rgba(10,14,26,.55), rgba(10,14,26,.1) 60%), linear-gradient(180deg, rgba(10,14,26,.15) 60%, var(--night) 98%); }
.hero-inner { padding: 64px 16px 48px; max-width: 760px; }
.hero .logo { width: min(440px, 82vw); margin: 0 auto 8px; filter: drop-shadow(0 8px 30px rgba(0,0,0,.7)); }
.tagline { font: 600 clamp(1.15rem, 3vw, 1.6rem) var(--head); letter-spacing: .22em; text-transform: uppercase; color: var(--text); margin: 0 0 28px; text-shadow: 0 2px 12px #000; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.platforms { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 26px; list-style: none; padding: 0; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(17,23,39,.8); font-size: .92rem; color: var(--muted); }
.chip.live { border-color: var(--gold-dim); color: var(--text); }
.chip.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section.alt { background: linear-gradient(180deg, var(--night), var(--night-2) 20%, var(--night-2) 80%, var(--night)); }
.center { text-align: center; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 620px; margin: 0 auto 1.2em; }
.quote { font: 600 clamp(1.2rem, 2.6vw, 1.6rem)/1.4 var(--head); color: var(--gold-hi); letter-spacing: .03em; max-width: 680px; margin: 0 auto; }
.quote cite { display: block; margin-top: 10px; font: 500 1rem var(--body); color: var(--muted); font-style: normal; }

.pillars { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 32px; }
.pillar { background: var(--night-2); border: 1px solid var(--line); border-top: 2px solid var(--gold); border-radius: var(--radius); padding: 20px; }
.pillar h3 { color: var(--gold-hi); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .3em; }
.pillar p { margin: 0; color: var(--muted); }

/* gallery */
.gallery { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); margin-top: 32px; }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--night-2); position: relative; }
.gallery img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; transition: transform .4s ease; }
.gallery figure:hover img { transform: scale(1.03); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 12px 10px; font: 600 .9rem var(--head); letter-spacing: .12em; text-transform: uppercase; background: linear-gradient(transparent, rgba(10,14,26,.92)); }
.gallery .wide { grid-column: 1 / -1; }
.gallery .wide img { aspect-ratio: 16 / 9; }
.note-small { font-size: .9rem; color: var(--muted); }

/* ---------- cards, steps ---------- */
.card { background: var(--night-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card + .card { margin-top: 16px; }
.card.gold { border-color: var(--gold-dim); box-shadow: inset 0 0 0 1px rgba(217,166,72,.15); }
.steps { list-style: none; counter-reset: step; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.steps li { counter-increment: step; background: var(--night-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px 20px; position: relative; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-hi); font: 600 1.2rem var(--head); margin-bottom: 12px; }
.steps h3 { margin-bottom: .3em; }
.steps p { margin: 0; color: var(--muted); }
.twocol { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding-left: 28px; position: relative; margin-bottom: 8px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 10px; height: 10px; transform: rotate(45deg); background: var(--gold); }
.ticks.cross li::before { background: none; border: 1px solid var(--muted); }
.big-x2 { font: 600 3.2rem/1 var(--head); color: var(--gold-hi); }

/* ---------- page header ---------- */
.page-head { padding: 56px 0 24px; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 50% 0, rgba(217,166,72,.12), transparent 65%); }
.page-head p { color: var(--muted); max-width: 680px; }

/* ---------- legal / prose ---------- */
.prose { padding-top: 32px; padding-bottom: 64px; } /* top and bottom only: keep .wrap's side gutter on phones */
.prose h2 { font-size: 1.4rem; margin-top: 2em; }
.prose h3 { color: var(--gold-hi); margin-top: 1.4em; }
.prose li { margin-bottom: .4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: .98rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px; border-bottom: 1px solid var(--line); }
.prose th { color: var(--gold-hi); font-family: var(--head); font-weight: 600; letter-spacing: .04em; }
.table-scroll { overflow-x: auto; }
.hint code, .prose code { overflow-wrap: anywhere; word-break: break-all; }
.draft { border: 1px dashed var(--gold); background: rgba(217,166,72,.08); color: var(--text); border-radius: var(--radius); padding: 14px 16px; margin: 24px 0 8px; }
.draft strong { color: var(--gold-hi); text-transform: uppercase; letter-spacing: .08em; font-family: var(--head); }
.fill { background: rgba(79,209,197,.14); outline: 1px dashed var(--teal); padding: 0 4px; border-radius: 3px; }
.updated { color: var(--muted); font-size: .95rem; }

/* ---------- shop ---------- */
.banner { padding: 12px 16px; border-radius: var(--radius); margin: 20px 0 0; border: 1px solid; }
.banner.demo { border-color: var(--teal); background: rgba(79,209,197,.1); }
.banner.warn { border-color: var(--danger); background: rgba(255,138,122,.08); }
.shop-grid { display: grid; gap: 24px; padding: 32px 0 64px; }
.form-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 240px; }
label { font-weight: 600; }
input[type="email"], input[type="text"] {
  min-height: 48px; padding: 0 14px; font: 500 1.05rem var(--body); color: var(--text);
  background: var(--night); border: 1px solid #44506e; border-radius: 6px; width: 100%;
}
input:focus-visible { border-color: var(--teal); }
input.code { letter-spacing: .35em; font-family: var(--head); font-size: 1.3rem; max-width: 220px; }
.hint { color: var(--muted); font-size: .95rem; margin: 6px 0 0; }
.status { min-height: 1.6em; margin-top: 10px; }
.status.err { color: var(--danger); }
.status.ok { color: var(--ok); }
.whoami { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.packs { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-top: 8px; }
.pack { display: flex; flex-direction: column; background: linear-gradient(180deg, var(--night-3), var(--night-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.pack.featured { border-color: var(--gold); }
/* 2 Dec 2026: one card per hero in the Heroes section (shop.js groupHeroPacks); open = the whole row, its packs inside */
.pack.hero-group.open { grid-column: 1 / -1; border-color: var(--gold); }
.pack.hero-group.open > .pack-art { aspect-ratio: auto; height: 170px; overflow: hidden; }
.pack.hero-group.open > .pack-art img { object-position: 50% 20%; } /* heads sit high in the hero art */
.pack.hero-group .hero-packs { margin-top: 12px; }
.pack.hero-group .hero-packs > summary { list-style: none; display: inline-block; cursor: pointer; }
.pack.hero-group .hero-packs > summary::-webkit-details-marker { display: none; }
.pack.hero-group .hero-packs .packs { padding-left: 0; margin: 14px 0 0; color: inherit; }
.pack h3 { color: var(--gold-hi); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .2em; }
.pack .tag { align-self: flex-start; font: 600 .75rem var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--night); background: var(--gold); padding: 3px 8px; border-radius: 4px; margin-bottom: 10px; }
.pack.offer { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; } /* 4 Dec 2026: the personal offer */
.pack ul { padding-left: 18px; margin: 6px 0 12px; color: var(--muted); }
.random-label { font: 600 .85rem var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-hi); border: 1px solid var(--gold); border-radius: 4px; padding: 2px 8px; align-self: flex-start; margin: 0 0 8px; }
.pack .odds { margin: 0 0 12px; }
.pack .odds summary { cursor: pointer; color: var(--gold-hi); font-weight: 600; }
.pack .odds h4 { margin: 10px 0 2px; font-size: 1rem; }
.pack .odds .hint { font-size: .85rem; margin: 4px 0; }
.odds-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.odds-table th, .odds-table td { text-align: left; padding: 3px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.odds-table td:first-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.pack .price { font: 600 1.8rem var(--head); margin: auto 0 4px; }
.pack .x2 { color: var(--teal); font-size: .92rem; margin-bottom: 14px; }
.history { width: 100%; border-collapse: collapse; }
.history th, .history td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.history th { font: 600 .9rem var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-hi); }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .85rem; border: 1px solid var(--line); }
.pill.paid { color: var(--ok); border-color: rgba(127,217,154,.5); }
.pill.pending { color: var(--gold-hi); border-color: var(--gold-dim); }
.pill.refunded, .pill.chargeback, .pill.failed { color: var(--danger); border-color: rgba(255,138,122,.5); }
@media (max-width: 560px) {
  .history thead { display: none; }
  .history tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
  .history td { display: flex; justify-content: space-between; border: 0; padding: 4px 0; }
  .history td::before { content: attr(data-label); color: var(--muted); padding-right: 12px; }
}

dialog { width: min(600px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; color: var(--text); background: var(--night-2); border: 1px solid var(--gold-dim); border-radius: var(--radius); }
dialog::backdrop { background: rgba(0,0,0,.75); }
.dlg { padding: 22px; }
.dlg h2 { font-size: 1.4rem; }
.consent { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 12px; }
.consent label { display: grid; grid-template-columns: 26px 1fr; gap: 10px; font-weight: 500; cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--gold); }
.dlg-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; margin-top: 18px; }
.summary { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--night); }
.summary strong { font: 600 1.3rem var(--head); color: var(--gold-hi); }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); background: #070a13; padding: 40px 0 28px; font-size: .95rem; color: var(--muted); }
.foot-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.site-foot h2 { font-size: 1rem; letter-spacing: .14em; margin-bottom: .6em; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: 6px; }
.site-foot a { color: var(--text); }
.site-foot a:hover { color: var(--gold-hi); }
.foot-small { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
[hidden] { display: none !important; }

/* small utilities (no inline styles: the CSP blocks them) */
.m0 { margin: 0; }
.mt0 { margin-top: 0; }
.mt-s { margin-top: 12px; }
.mt-m { margin-top: 24px; }
.m-b0 { margin-bottom: 0; }
.pt-s { padding-top: 40px; }
.plain { list-style: none; padding: 0; }
.field-code { flex: 0 1 240px; }
@media (max-width: 480px) { .tagline { letter-spacing: .1em; } }
.pack.blocked { opacity: .6; }
/* the age step and the quantity picker (24 Nov 2026) */
.age-step { margin: 16px 0; display: grid; gap: 12px; justify-items: start; }
.age-step h3 { color: var(--gold-hi); text-transform: uppercase; letter-spacing: .05em; margin: 0; }
.age-tick { display: flex; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; }
.age-tick input { width: 22px; height: 22px; margin: 0; accent-color: var(--gold); }
.qty { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 10px; }
.qty-label { font-size: .9rem; color: var(--muted); width: 100%; margin: 0; }
.qty button { min-width: 44px; min-height: 40px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--gold-dim); background: transparent; color: var(--gold-hi); font: 600 .95rem var(--head); cursor: pointer; }
.qty button[aria-pressed="true"] { background: var(--gold); color: var(--night); border-color: var(--gold); }
.qty input { width: 84px; min-height: 40px; padding: 0 8px; border-radius: 6px; border: 1px solid var(--line); background: var(--night); color: var(--text); font: inherit; }
.age-step .status:empty { display: none; }
.blocked-why { color: var(--muted); font-size: .95rem; margin: 0; }
.consent-text { font-size: .95rem; color: var(--muted); border-left: 2px solid var(--gold-dim); padding-left: 12px; }
.payout { display: flex; gap: 16px; align-items: center; margin-bottom: 12px; }
.payout .big-x2 { font-size: 2.4rem; }
/* the 2x beta payback (25 Nov 2026): badge, per-purchase line, explainer (Terms 6) */
.beta-bonus { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; margin-top: 18px; border-radius: 999px; border: 1px solid var(--teal); background: rgba(79,209,197,.1); color: var(--text); font: 600 .95rem var(--head); letter-spacing: .04em; text-decoration: none; }
.beta-bonus b { color: var(--teal); font-size: 1.15rem; }
a.beta-bonus:hover, a.beta-bonus:focus-visible { background: rgba(79,209,197,.18); }
.payback-line { color: var(--teal); font-size: .95rem; margin: 4px 0 10px; }
.payback-line strong { color: var(--text); }
.payback-how { margin: 0 0 16px; }
.payback-how > summary { cursor: pointer; color: var(--teal); font: 600 1rem var(--head); letter-spacing: .04em; }
.payback-how .steps { margin: 16px 0 8px; }
.payback-how .steps li::before, #payback .steps li::before { border-color: var(--teal); color: var(--teal); }

/* ---------- home: h1 (logo + keyword line), about, FAQ (SEO pass 25 Nov 2026) ---------- */
.hero-title { margin: 0 0 8px; font-size: inherit; line-height: 1; letter-spacing: 0; }
.hero-title .logo { display: block; }
.hero-kicker { display: block; font: 600 clamp(.95rem, 2.4vw, 1.2rem) var(--head); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-hi); text-shadow: 0 2px 12px #000; margin-top: 4px; }
#about p { color: var(--muted); }
#about h3, .faq h3 { color: var(--gold-hi); margin-top: 1.4em; }
.faq h3 { font-size: 1.15rem; margin-bottom: .3em; }
.faq p { color: var(--muted); margin-top: 0; }
/* the shop in sections, every pack with its art (25 Nov 2026) */
/* 26 Nov 2026: the shop toolbar (search + section links), kept in view while scrolling */
.shop-bar { position: sticky; top: calc(var(--site-head-h, 61px) + 6px); z-index: 20; margin: 22px 0 10px; padding: 14px 16px 10px; background: color-mix(in srgb, var(--night) 92%, transparent); backdrop-filter: blur(6px); border: 1px solid var(--gold-dim); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0,0,0,.35); }
#items-title { scroll-margin-top: calc(var(--site-head-h, 61px) + 12px); }
/* 26 Nov 2026: a link to one pack (#item=<id>, the game's "Buy on website"): a gold pulse on its card for about 2 s */
li.pack.deep-hit { animation: deep-hit 0.8s ease-in-out 3; border-color: var(--gold, #d9a648); }
@keyframes deep-hit { 0%, 100% { box-shadow: 0 0 0 0 rgba(240, 198, 110, 0); } 50% { box-shadow: 0 0 0 6px rgba(240, 198, 110, .55), 0 0 28px rgba(240, 198, 110, .45); } }
.shop-search { position: relative; }
.shop-search-icon { position: absolute; left: 16px; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); color: var(--gold); pointer-events: none; }
.shop-search input { width: 100%; box-sizing: border-box; padding: 14px 48px 14px 50px; border: 2px solid var(--gold-dim); border-radius: 999px; background: var(--night-2); color: var(--text); font: 500 1.1rem var(--body); }
.shop-search input::placeholder { color: var(--muted); }
.shop-search input:focus, .shop-search input:focus-visible { outline: none; border-color: var(--gold-hi); box-shadow: 0 0 0 3px rgba(201,165,90,.28); }
.shop-search input::-webkit-search-cancel-button { display: none; }
.shop-search-clear { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--night-3); color: var(--gold-hi); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.shop-search-clear:hover, .shop-search-clear:focus-visible { background: var(--gold-dim); color: var(--night); }
.shop-search-count { margin: 8px 4px 0; color: var(--gold-hi); font: 600 .9rem var(--head); letter-spacing: .04em; }
.shop-search-none { margin: 8px 4px 0; color: var(--muted); }
.shop-bar .shop-nav { margin: 12px 0 0; }
.shop-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 6px; }
.shop-nav a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font: 600 .85rem var(--head); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: var(--text); background: var(--night-2); }
.shop-nav a:hover, .shop-nav a:focus-visible { border-color: var(--gold-dim); color: var(--gold-hi); }
/* 0.36.4: the section links are tabs (shop.js selectTab); a search shows every section */
.shop-nav a[aria-current="true"] { border-color: var(--gold); color: var(--night); background: var(--gold); }
.shop-sec.tab-off { display: none; }
.shop-searching .shop-sec.tab-off:not([hidden]) { display: block; }
.shop-sec { margin-top: 36px; scroll-margin-top: 76px; }
.shop-sec > h3 { font-size: 1.5rem; color: var(--gold); text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.sec-sub { margin: 24px 0 0; color: var(--gold-hi); font: 600 1.05rem var(--head); letter-spacing: .06em; text-transform: uppercase; }
.pack { overflow: hidden; min-width: 0; }
.pack-art { margin: -20px -20px 14px; aspect-ratio: 16 / 9; background: radial-gradient(ellipse at 50% 40%, rgba(217,166,72,.18), transparent 70%), var(--night-3); border-bottom: 1px solid var(--line); }
.pack-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pack-art.none { aspect-ratio: 32 / 9; }
.pack h3 { overflow-wrap: anywhere; }
.pack .limits { font-size: .9rem; color: var(--muted); margin: 0 0 10px; }
.pack .example { margin-top: 2px; }
.pack .get-tokens { align-self: flex-start; margin-top: 10px; }
.pack .value-badge { margin: 0 0 6px; color: var(--teal); font-size: .9rem; }
.later { margin-top: 16px; }
.later > summary { cursor: pointer; color: var(--gold-hi); font: 600 1rem var(--head); letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 560px) { .packs { grid-template-columns: 1fr; } }

/* Creator Programme and Work with us forms (creators.html, partners.html, apply.js) */
.apply-form { display: grid; gap: 18px; }
.apply-form .field { flex: none; }
.apply-form select, .apply-form textarea, .apply-form input[type="url"] {
  min-height: 48px; padding: 0 14px; font: 500 1.05rem var(--body); color: var(--text);
  background: var(--night); border: 1px solid #44506e; border-radius: 6px; width: 100%;
}
.apply-form textarea { padding: 12px 14px; min-height: 120px; resize: vertical; line-height: 1.5; }
.apply-form select:focus-visible, .apply-form textarea:focus-visible { border-color: var(--teal); }
.apply-form [aria-invalid="true"] { border-color: var(--danger); }
.apply-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.apply-form legend { font-weight: 600; padding: 0; margin-bottom: 6px; }
.apply-form .opt { font-weight: 500; color: var(--muted); }
.checks { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.checks label, .tick { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; cursor: pointer; }
.checks input, .tick input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--gold); }
.field-err { color: var(--danger); font-size: .95rem; margin: 0; }
.field-err:empty { display: none; }
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.apply-thanks:focus { outline: none; }
.perks { margin-top: 0; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* ---------- website growth (4 Dec 2026): PC / phone CTA, email forms, video, press kit, creator tiers ---------- */
/* Phones and tablets can't install the Windows game: they see "Email me the PC link" instead of the download button.
   CSS guesses from the pointer (no flash); site.js then sets html.is-pc (Windows) or html.is-phone from the browser. */
.for-phone { display: none; }
@media (hover: none) and (pointer: coarse) {
  html:not(.is-pc) .for-pc { display: none; }
  html:not(.is-pc) .for-phone { display: block; }
}
html.is-phone .for-pc { display: none; }
html.is-phone .for-phone { display: block; }

.cta-meta { margin: 12px 0 0; color: var(--text); font-size: .95rem; text-shadow: 0 1px 8px #000; }
.hero .cta-meta a { color: var(--gold-hi); }
.hero .for-phone { max-width: 520px; margin: 0 auto; text-align: left; }
.hero .hint, .hero .form-title { text-shadow: 0 1px 8px #000; }
.hero .hint { color: var(--text); }
.form-title { font: 600 1.05rem var(--head); letter-spacing: .06em; text-transform: uppercase; color: var(--gold-hi); margin: 0 0 8px; }

/* one email box + a button; stacks on narrow screens */
.inline-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.inline-row input[type="email"] { flex: 1 1 220px; width: auto; min-width: 0; }
.inline-row .btn { flex: 0 0 auto; }
@media (max-width: 420px) { .inline-row .btn { flex: 1 1 100%; } }
.mail-form { display: grid; gap: 10px; }
.mail-form .tick { font-size: .98rem; }
.mail-form .hint { margin: 0; }
.mail-form [aria-invalid="true"] { border-color: var(--danger); }
.mail-form .status { margin: 0; min-height: 0; }
.mail-form .status:empty { display: none; }
.form-done { border: 1px solid var(--gold-dim); border-radius: var(--radius); background: rgba(217,166,72,.08); padding: 16px 18px; }
.form-done:focus, [data-join-page] h1:focus { outline: none; } /* focused by script so screen readers hear the new state */
.form-done p { margin: 0; }
.form-done p + p { margin-top: 6px; color: var(--muted); }

/* "See it played": the video (or its poster) beside the Join the Family box */
.play-grid { display: grid; gap: 24px; align-items: start; grid-template-columns: 1fr; margin-top: 8px; }
@media (min-width: 900px) { .play-grid { grid-template-columns: 3fr 2fr; } }
.video { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; }
.video img, .video video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
.video-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 20px 12px 14px; border-radius: 999px; border: 1px solid var(--gold-hi); background: rgba(10,14,26,.82); color: var(--text);
  font: 600 1rem var(--head); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; box-shadow: 0 8px 30px rgba(0,0,0,.6);
  white-space: nowrap; /* centred with left 50%: without this the label wraps into half the width on phones */ }
@media (max-width: 420px) { .video-play { font-size: .9rem; padding: 8px 14px 8px 10px; gap: 10px; } .video-play .video-icon { width: 34px; height: 34px; } .video-play .video-icon::after { left: 13px; top: 9px; border-width: 8px 0 8px 12px; } }
.video-play:hover, .video-play:focus-visible { color: #fff; background: rgba(10,14,26,.95); }
.video-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--gold); position: relative; flex: none; }
.video-icon::after { content: ""; position: absolute; left: 15px; top: 11px; border-style: solid; border-width: 9px 0 9px 14px; border-color: transparent transparent transparent var(--night); }
.video figcaption { padding: 10px 14px; font-size: .9rem; color: var(--muted); background: var(--night-2); border-top: 1px solid var(--line); }
.video .video-note { position: absolute; left: 12px; right: 12px; bottom: 52px; margin: 0; padding: 8px 12px; border-radius: 6px; background: rgba(10,14,26,.9); text-align: center; }
.join-card h2 { font-size: 1.6rem; margin-bottom: .3em; }
.join-card > p { color: var(--muted); }
.inline-links { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; padding: 0; margin: 12px 0 0; }
.center .inline-links { justify-content: center; }

/* beta page: one shot above the download button, the short system list */
.beta-shot { margin: 0 auto 20px; max-width: 720px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.beta-shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.specs { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.specs li { padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; color: var(--muted); background: var(--night-2); }
#download .for-phone { max-width: 520px; margin: 0 auto; text-align: left; }

/* press kit */
.facts { display: grid; grid-template-columns: minmax(110px, 180px) 1fr; gap: 0; margin: 0 0 1.2em; border-top: 1px solid var(--line); }
.facts dt, .facts dd { margin: 0; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--gold-hi); font-family: var(--head); letter-spacing: .04em; }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } .facts dt { border-bottom: 0; padding-bottom: 0; } }
.dl-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin: 8px 0 1.2em; padding: 0; list-style: none; }
.dl-grid li { background: var(--night-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.dl-grid img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: var(--night-3); } /* whole shot, portrait ones pillarboxed: nothing cut off */
.dl-grid .logo-tile img { padding: 14px; background: radial-gradient(ellipse at 50% 40%, rgba(217,166,72,.12), transparent 70%), var(--night-3); }
.dl-grid p { margin: 0; padding: 10px 12px 12px; font-size: .95rem; }
.dl-grid p a { font-weight: 600; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 8px 0 1.2em; }
.swatches li { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; }
.swatches span { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); }
.sw-night { background: #0a0e1a; } .sw-gold { background: #d9a648; } .sw-gold-hi { background: #f0c870; } .sw-teal { background: #4fd1c5; } .sw-text { background: #ece6d8; }

/* creator programme tiers and rules */
.tiers { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 8px 0 8px; }
.tier { background: var(--night-2); border: 1px solid var(--line); border-top: 2px solid var(--gold); border-radius: var(--radius); padding: 20px; }
.tier.partner { border-color: var(--gold-dim); border-top-color: var(--teal); }
.tier h3 { margin: 0 0 .2em; color: var(--gold-hi); text-transform: uppercase; letter-spacing: .06em; }
.tier .tier-who { margin: 0 0 10px; color: var(--muted); font-size: .95rem; }
.tier ul { margin: 0; padding-left: 20px; }
.tier li { margin-bottom: 6px; }
.rules li { margin-bottom: 10px; }
.rules strong { color: var(--gold-hi); }
.ad-line { display: inline-block; padding: 2px 8px; border: 1px solid var(--gold); border-radius: 4px; font-family: var(--head); letter-spacing: .06em; color: var(--gold-hi); }
