/* Moonwake Society — Marin theme (shared with the Moonwake Studio app) */
@font-face { font-family: "Cinzel"; src: url("/assets/fonts/cinzel-500.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "Cinzel"; src: url("/assets/fonts/cinzel-700.woff2") format("woff2"); font-weight: 700 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-600.woff2") format("woff2"); font-weight: 600 800; font-display: swap; }

:root {
  --bg: #0b0a10;
  --bg-2: #110f17;
  --panel: #15121c;
  --panel-2: #1b1724;
  --line: rgba(214, 180, 122, 0.14);
  --line-strong: rgba(214, 180, 122, 0.34);
  --gold: #d6b47a;
  --gold-bright: #f0d9a8;
  --pink: #ec8fb1;
  --pink-deep: #c9668d;
  --text: #ece2d2;
  --muted: #a39a8e;
  --dim: #7a7282;
  --good: #8fd3a8;
  --warn: #e8c46b;
  --tiktok: #6fe3e8;
  --radius: 16px;
  --serif: "Cinzel", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1160px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; color: var(--text); font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
  background:
    radial-gradient(1px 1px at 12% 18%, rgba(240, 217, 168, 0.55), transparent 60%),
    radial-gradient(1px 1px at 78% 9%, rgba(240, 217, 168, 0.45), transparent 60%),
    radial-gradient(1.5px 1.5px at 64% 32%, rgba(236, 143, 177, 0.4), transparent 60%),
    radial-gradient(1px 1px at 33% 61%, rgba(240, 217, 168, 0.35), transparent 60%),
    radial-gradient(1px 1px at 89% 72%, rgba(240, 217, 168, 0.35), transparent 60%),
    radial-gradient(1100px 620px at 92% -10%, rgba(214, 180, 122, 0.1), transparent 60%),
    radial-gradient(900px 700px at -10% 105%, rgba(236, 143, 177, 0.07), transparent 60%),
    var(--bg);
  background-attachment: fixed; }
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--gold-bright); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: #fff3d6; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: 0.04em; line-height: 1.15; margin: 0; color: var(--gold-bright); }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 700; letter-spacing: 0.06em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.15rem; color: var(--gold-bright); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
code, .mono { font: 500 0.86em/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace; color: var(--gold-bright); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; padding: 8px 14px; border-radius: 10px; background: var(--gold); color: #1a1408; }
.skip:focus { left: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: var(--panel-2); color: var(--text); font-weight: 600; font-size: 0.95rem; text-decoration: none;
  transition: border-color 0.15s, background 0.15s, filter 0.15s, transform 0.15s; }
.button:hover { border-color: var(--gold); color: var(--text); transform: translateY(-1px); }
.button.primary { background: linear-gradient(180deg, #e9cb93, #c49c5e); color: #1a1408; border-color: #f3dcae; box-shadow: 0 8px 28px rgba(214, 180, 122, 0.18); }
.button.primary:hover { filter: brightness(1.07); color: #1a1408; }
.button.pink { background: linear-gradient(180deg, #f2a3c1, #c9668d); color: #24101a; border-color: #f7c3d6; }
.button.pink:hover { filter: brightness(1.06); color: #24101a; }
.button.small { min-height: 36px; padding: 6px 14px; font-size: 0.86rem; border-radius: 10px; }
.button .arrow { transition: transform 0.15s; }
.button:hover .arrow { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(11, 10, 16, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--gold-bright); font-family: var(--serif); font-size: 1.05rem; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; }
.brand img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-strong); box-shadow: 0 0 0 4px rgba(214, 180, 122, 0.06); }
.brand:hover { color: #fff3d6; }
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav a { padding: 8px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: 0.93rem; font-weight: 500; }
.site-nav a:hover { color: var(--text); background: rgba(214, 180, 122, 0.06); }
.site-nav a[aria-current="page"] { color: var(--gold-bright); background: rgba(214, 180, 122, 0.11); }
.site-nav .button { margin-left: 10px; color: #1a1408; padding: 6px 16px; }
.site-nav .button:hover { background: linear-gradient(180deg, #e9cb93, #c49c5e); color: #1a1408; }
.menu-button { display: none; margin-left: auto; min-height: 40px; padding: 6px 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--panel-2); color: var(--text); font: 600 0.9rem var(--sans); cursor: pointer; }

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section.tight { padding-top: 24px; }
.section-alt { background: linear-gradient(180deg, rgba(21, 18, 28, 0.6), rgba(17, 15, 23, 0.25)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; color: var(--pink); font: 600 0.75rem/1.2 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: linear-gradient(90deg, transparent, var(--pink)); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 20px 48px; align-items: end; margin-bottom: 44px; }
.section-head p { color: var(--muted); }
.lede { font-size: clamp(1.05rem, 1.8vw, 1.2rem); color: var(--text); max-width: 40em; }
.muted { color: var(--muted); }
.ornament { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--gold); opacity: 0.7; margin: 0 auto; }
.ornament::before, .ornament::after { content: ""; flex: 0 1 120px; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong)); }
.ornament::after { transform: scaleX(-1); }

/* Hero (profile-banner style) */
.hero { position: relative; }
.hero-banner { position: relative; height: clamp(300px, 46vw, 680px); overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-banner img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
@media (max-width: 720px) { .hero-banner img { object-position: 24% 25%; } }
.hero-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 10, 16, 0) 35%, rgba(11, 10, 16, 0.75) 80%, var(--bg)); }
.hero-body { position: relative; margin-top: clamp(-120px, -9vw, -60px); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px; align-items: start; }
.hero-copy { padding-top: 8px; }
.app-mark { width: 96px; height: 96px; border-radius: 24px; border: 1px solid var(--line-strong); box-shadow: 0 0 0 6px var(--bg), 0 18px 40px rgba(0, 0, 0, 0.5); margin-bottom: 26px; }
.hero h1 { margin-bottom: 18px; }
.hero h1 span { display: block; font-size: 0.42em; letter-spacing: 0.3em; color: var(--gold); font-weight: 500; margin-bottom: 8px; }
.hero .lede { margin-bottom: 28px; }
.trust-line { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 24px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.88rem; }
.trust-line li { display: inline-flex; align-items: center; gap: 8px; }
.trust-line li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* Composer illustration */
.composer { margin: 0; padding: 20px; border-radius: 22px; background: linear-gradient(180deg, rgba(27, 23, 36, 0.96), rgba(21, 18, 28, 0.96)); border: 1px solid var(--line-strong);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(236, 143, 177, 0.05) inset; }
.composer-top { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.composer-top strong { font-family: var(--serif); font-weight: 500; letter-spacing: 0.06em; color: var(--gold-bright); }
.composer-top .acct { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--muted); }
.avatar-dot { width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg, var(--tiktok), var(--pink)); }
.composer-grid { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; }
.preview { aspect-ratio: 9 / 16; border-radius: 12px; border: 1px solid var(--line); position: relative; overflow: hidden;
  background: radial-gradient(60px 60px at 70% 25%, rgba(240, 217, 168, 0.5), transparent 70%), linear-gradient(170deg, #2a2140, #120f1b 70%); }
.preview::before { content: ""; position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: rgba(11, 10, 16, 0.55); border: 1px solid rgba(240, 217, 168, 0.5); }
.preview::after { content: ""; position: absolute; left: 50%; top: 50%; margin: -7px 0 0 -3px; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent var(--gold-bright); }
.preview span { position: absolute; left: 8px; bottom: 8px; font-size: 0.68rem; color: var(--muted); }
.fields { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.field-label { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); margin-bottom: 4px; }
.fake-input { padding: 8px 11px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); font-size: 0.85rem; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fake-input.select { display: flex; justify-content: space-between; color: var(--muted); }
.fake-input.select::after { content: "\25BE"; color: var(--gold); }
.toggles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.toggle { display: flex; align-items: center; gap: 7px; font-size: 0.8rem; color: var(--muted); }
.switch { flex: none; width: 28px; height: 16px; border-radius: 99px; background: var(--panel); border: 1px solid var(--line-strong); position: relative; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 10px; height: 10px; border-radius: 50%; background: var(--dim); }
.switch.on { background: rgba(236, 143, 177, 0.3); border-color: var(--pink); }
.switch.on::after { left: 14px; background: var(--pink); }
.disclosure { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 11px; border-radius: 10px; border: 1px dashed var(--line-strong); font-size: 0.8rem; color: var(--muted); }
.composer-foot { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.composer-foot small { color: var(--dim); font-size: 0.72rem; line-height: 1.4; }
.fake-button { margin-left: auto; flex: none; padding: 8px 16px; border-radius: 10px; background: linear-gradient(180deg, #e9cb93, #c49c5e); color: #1a1408; font-weight: 600; font-size: 0.85rem; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; padding: 5px 11px; border-radius: 99px; font-size: 0.76rem; color: var(--good); background: rgba(143, 211, 168, 0.08); border: 1px solid rgba(143, 211, 168, 0.3); }
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 8px var(--good); }
.composer figcaption { margin-top: 14px; font-size: 0.75rem; color: var(--dim); text-align: center; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.steps li { position: relative; padding: 26px 22px 24px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 18px; font: 700 1.6rem/1 var(--serif); color: transparent; -webkit-text-stroke: 1px var(--gold); }
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--muted); font-size: 0.94rem; }

/* Cards / features */
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.feature { padding: 26px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.feature h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.feature h3::before { content: ""; flex: none; width: 10px; height: 10px; transform: rotate(45deg); border: 1px solid var(--gold); background: rgba(214, 180, 122, 0.15); }
.feature p { color: var(--muted); }
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.scope-card { border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--panel); overflow: hidden; }
.scope-card header { padding: 16px 22px; border-bottom: 1px solid var(--line); font-family: var(--serif); color: var(--gold-bright); letter-spacing: 0.06em; }
.scope-list { list-style: none; margin: 0; padding: 0; }
.scope-list li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; padding: 16px 22px; border-bottom: 1px solid var(--line); font-size: 0.93rem; color: var(--muted); }
.scope-list li:last-child { border-bottom: 0; }
.scope-list code { align-self: start; padding: 3px 8px; border-radius: 7px; background: rgba(111, 227, 232, 0.07); border: 1px solid rgba(111, 227, 232, 0.25); color: var(--tiktok); justify-self: start; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 10px; max-width: 820px; }
.faq details { border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.faq details[open] { border-color: var(--line-strong); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 18px 22px; font-weight: 600; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 22px 18px; color: var(--muted); margin: 0; }

/* CTA band */
.cta-band { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: 34px; border-radius: 22px; overflow: hidden;
  border: 1px solid var(--line-strong); background: radial-gradient(500px 220px at 100% 0%, rgba(236, 143, 177, 0.14), transparent 70%), radial-gradient(500px 260px at 0% 100%, rgba(214, 180, 122, 0.12), transparent 70%), var(--panel); }
.cta-band img { width: 84px; height: 84px; border-radius: 50%; border: 1px solid var(--line-strong); object-fit: cover; }
.cta-band h2 { font-size: clamp(1.4rem, 2.8vw, 1.9rem); margin-bottom: 6px; }
.cta-band p { color: var(--muted); }

/* Games */
.games-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; }
.game-card { position: relative; display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); }
.game-card .art { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); }
.game-card .art img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.game-card:hover .art img { transform: scale(1.03); }
.game-card .body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 24px; flex: 1; }
.game-card h3 { font-size: 1.4rem; }
.game-card p { color: var(--muted); }
.game-card .actions { margin-top: auto; padding-top: 8px; }
.game-card.featured { border-color: var(--line-strong); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }
.game-card.featured .art { aspect-ratio: 16 / 9; }
.game-card.retired .art img { filter: saturate(0.55) brightness(0.8); }
.badge { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; padding: 4px 11px; border-radius: 99px; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.04em; border: 1px solid; }
.badge.live { color: var(--good); border-color: rgba(143, 211, 168, 0.35); background: rgba(143, 211, 168, 0.08); }
.badge.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 8px var(--good); }
.badge.frozen { color: var(--warn); border-color: rgba(232, 196, 107, 0.35); background: rgba(232, 196, 107, 0.07); }
.badge.archived { color: var(--dim); border-color: var(--line); }
.art .badge { position: absolute; left: 14px; top: 14px; background: rgba(11, 10, 16, 0.8); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.facts li { padding: 3px 10px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--line); font-size: 0.8rem; color: var(--muted); }
.group-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: center; margin-top: 18px; padding: 22px 26px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); }
.group-card img { width: 76px; height: 76px; border-radius: 18px; border: 1px solid var(--line-strong); }
.group-card h3 { margin-bottom: 4px; }
.group-card p { color: var(--muted); font-size: 0.95rem; }

/* Inner pages */
.page-hero { padding: clamp(56px, 8vw, 96px) 0 clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--line);
  background: radial-gradient(700px 300px at 85% 0%, rgba(236, 143, 177, 0.08), transparent 70%); }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 16px; }
.page-hero p { color: var(--muted); max-width: 44em; font-size: 1.08rem; }
.page-hero .actions { margin-top: 26px; }
.detail { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 48px; align-items: start; }
.detail figure { margin: 0; border-radius: 22px; overflow: hidden; border: 1px solid var(--line-strong); }
.detail h2 { margin-bottom: 14px; }
.detail p { color: var(--muted); }
.meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 24px 0; }
.meta div { padding: 12px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.meta dt { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.meta dd { margin: 4px 0 0; color: var(--text); font-weight: 500; }
.notice { padding: 14px 18px; border-radius: 12px; border: 1px solid rgba(232, 196, 107, 0.35); background: rgba(232, 196, 107, 0.06); color: var(--text); margin: 18px 0; }
.notice strong { color: var(--warn); }
.notice.calm { border-color: var(--line-strong); background: rgba(214, 180, 122, 0.06); }
.notice.calm strong { color: var(--gold-bright); }

/* Legal */
.legal { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; padding-top: 48px; padding-bottom: 96px; }
.toc { position: sticky; top: 92px; align-self: start; display: flex; flex-direction: column; gap: 2px; font-size: 0.88rem; }
.toc strong { font-family: var(--serif); font-weight: 500; color: var(--gold); letter-spacing: 0.08em; margin-bottom: 8px; }
.toc a { color: var(--muted); text-decoration: none; padding: 5px 10px; border-left: 1px solid var(--line); }
.toc a:hover { color: var(--gold-bright); border-left-color: var(--gold); }
.legal-content { max-width: 780px; }
.legal-content h2 { font-size: 1.35rem; margin: 44px 0 14px; padding-top: 4px; }
.legal-content h2:first-of-type { margin-top: 18px; }
.legal-content h3 { font-family: var(--sans); font-weight: 600; font-size: 1rem; letter-spacing: 0; color: var(--text); margin: 22px 0 8px; }
.legal-content p, .legal-content li { color: #d6ccbd; }
.legal-content ul, .legal-content ol { padding-left: 1.2em; margin: 0 0 1em; }
.legal-content li { margin-bottom: 8px; }
.legal-content li::marker { color: var(--gold); }
.legal-date { display: inline-block; padding: 4px 12px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; }
.legal-content table { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-size: 0.92rem; }
.legal-content th, .legal-content td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal-content th { color: var(--gold); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
.legal-content td { color: #d6ccbd; }

/* Footer */
.site-footer { margin-top: auto; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(17, 15, 23, 0.4), var(--bg-2)); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding: 56px 0 36px; }
.footer-brand p { color: var(--muted); font-size: 0.9rem; margin-top: 14px; max-width: 26em; }
.footer-col { display: flex; flex-direction: column; gap: 8px; font-size: 0.92rem; }
.footer-col strong { font-family: var(--serif); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.78rem; color: var(--gold); margin-bottom: 4px; }
.footer-col a { color: var(--muted); text-decoration: none; }
.footer-col a:hover { color: var(--gold-bright); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 18px 0 28px; border-top: 1px solid var(--line); color: var(--dim); font-size: 0.84rem; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-legal a { color: var(--muted); text-decoration: none; }
.footer-legal a:hover, .footer-legal a[aria-current="page"] { color: var(--gold-bright); }

/* 404 */
.lost { text-align: center; padding: clamp(80px, 14vw, 160px) 0; }
.lost img { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 28px; border: 1px solid var(--line-strong); box-shadow: 0 0 0 8px rgba(214, 180, 122, 0.05); }
.lost p { color: var(--muted); }
.lost .actions { justify-content: center; margin-top: 26px; }

/* Responsive */
@media (max-width: 1020px) {
  .hero-body, .split, .detail { grid-template-columns: minmax(0, 1fr); }
  .composer { max-width: 560px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .games-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .legal { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .toc strong { width: 100%; margin-bottom: 2px; }
  .toc a { border: 1px solid var(--line); border-radius: 99px; padding: 4px 12px; }
}
@media (max-width: 860px) {
  .menu-button { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px 18px; background: rgba(11, 10, 16, 0.97); border-bottom: 1px solid var(--line); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 14px; font-size: 1rem; }
  .site-nav .button { margin: 8px 0 0; }
  .section-head { grid-template-columns: minmax(0, 1fr); margin-bottom: 32px; }
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .cta-band { grid-template-columns: minmax(0, 1fr); text-align: left; padding: 26px; }
  .group-card { grid-template-columns: auto minmax(0, 1fr); }
  .group-card .actions { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  body { font-size: 15.5px; }
  .brand span { font-size: 0.92rem; letter-spacing: 0.1em; }
  .app-mark { width: 76px; height: 76px; border-radius: 20px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .composer { padding: 16px; }
  .composer-grid { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; }
  .toggles { grid-template-columns: minmax(0, 1fr); }
  .composer-top .acct span { display: none; }
  .scope-list li { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .meta { grid-template-columns: minmax(0, 1fr); }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .group-card { padding: 18px; gap: 16px; }
  .group-card img { width: 60px; height: 60px; }
  .actions .button { flex: 1 1 auto; }
  .legal-content table, .legal-content tbody, .legal-content tr, .legal-content td { display: block; width: 100%; }
  .legal-content thead { display: none; }
  .legal-content td:first-child { padding-bottom: 0; border-bottom: 0; color: var(--gold-bright); font-weight: 600; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Studio availability labels */
.soon-tag { display: inline-flex; align-items: center; padding: 1px 9px; margin: 0 2px; border-radius: 99px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.03em; vertical-align: middle; white-space: nowrap; color: var(--warn); border: 1px solid rgba(232, 196, 107, 0.4); background: rgba(232, 196, 107, 0.07); }
.avail-list { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 6px; }

/* Home (2026-10-27 redesign) */
.eyebrow { letter-spacing: 0.02em; text-transform: none; font-size: 0.9rem; font-weight: 500; }
.eyebrow::before { display: none; }
.home-hero { position: relative; min-height: min(92vh, 900px); display: flex; align-items: flex-end; overflow: hidden; border-bottom: 1px solid var(--line); }
.home-hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.home-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(270deg, rgba(11, 10, 16, 0.96) 0%, rgba(11, 10, 16, 0.9) 42%, rgba(11, 10, 16, 0.55) 52%, rgba(11, 10, 16, 0) 64%), linear-gradient(0deg, var(--bg) 0%, rgba(11, 10, 16, 0) 30%); }
.home-hero-body { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); gap: 56px; align-items: end; padding-top: 120px; padding-bottom: 72px; }
.home-hero-copy { grid-column: 2; }
.home-hero h1 { font-size: clamp(3rem, 7.4vw, 5.6rem); margin-bottom: 20px; text-shadow: 0 6px 30px rgba(0, 0, 0, 0.55); }
.home-hero h1 span { display: block; font-size: 0.36em; letter-spacing: 0.32em; color: var(--gold); font-weight: 500; margin-bottom: 10px; }
.home-hero .lede { max-width: 34em; margin-bottom: 28px; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6); }
.home-hero .app-mark { width: 80px; height: 80px; border-radius: 20px; margin-bottom: 22px; }
.how-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); gap: 56px; align-items: start; }
.how-grid .flow { grid-template-columns: minmax(0, 1fr); gap: 30px; }
.how-grid .flow li { padding: 0 0 0 68px; }
.how-grid .flow li::after { top: 52px; bottom: -26px; left: 22px; right: auto; width: 1px; height: auto; background: linear-gradient(180deg, var(--line-strong), var(--line)); }
.how-grid .composer { position: sticky; top: 96px; transform: rotate(1deg); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }

.pillars { border-bottom: 1px solid var(--line); background: var(--bg-2); }
.pillars-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pillar { display: flex; align-items: center; gap: 18px; padding: 28px 26px; color: var(--text); text-decoration: none; border-left: 1px solid var(--line); transition: background 0.15s; }
.pillar:first-child { border-left: 0; padding-left: 0; }
.pillar:hover { background: rgba(214, 180, 122, 0.05); }
.pillar img { flex: none; width: 64px; height: 64px; border-radius: 16px; object-fit: cover; border: 1px solid var(--line-strong); }
.pillar strong { display: block; font: 500 1.05rem/1.3 var(--serif); letter-spacing: 0.05em; color: var(--gold-bright); margin-bottom: 4px; }
.pillar span span { color: var(--muted); font-size: 0.92rem; line-height: 1.45; }

.home-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 20px 56px; align-items: end; margin-bottom: 48px; }
.home-head p { margin: 0; color: var(--muted); }

.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.flow li { position: relative; padding-top: 64px; counter-increment: step; }
.flow li::before { content: counter(step); position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--gold); background: var(--bg); color: var(--gold-bright); font: 700 1.1rem/1 var(--serif); z-index: 1; }
.flow li::after { content: ""; position: absolute; top: 22px; left: 52px; right: -24px; height: 1px; background: linear-gradient(90deg, var(--line-strong), var(--line)); }
.flow li:last-child::after { display: none; }
.flow h3 { margin-bottom: 10px; font-size: 1.12rem; }
.flow p { color: var(--muted); font-size: 0.95rem; }

.avail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
.avail h3 { margin-bottom: 14px; }
.avail-now .avail-list { list-style: none; padding: 0; gap: 12px; }
.avail-now .avail-list li { position: relative; padding-left: 30px; }
.avail-now .avail-list li::before { content: ""; position: absolute; left: 2px; top: 0.45em; width: 12px; height: 7px; border-left: 2px solid var(--good); border-bottom: 2px solid var(--good); transform: rotate(-45deg); }
.avail-next { display: grid; border-left: 1px solid var(--line); padding-left: 40px; }
.next-item { padding: 16px 0; border-bottom: 1px solid var(--line); }
.next-item:first-child { padding-top: 0; }
.next-item:last-child { border-bottom: 0; }
.next-item h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 1.05rem; }
.next-item p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.next-item p .soon-tag { display: none; }

.trust-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 32px; margin: 32px 0 0; }
.trust-points dt { font: 500 1.02rem/1.3 var(--serif); letter-spacing: 0.05em; color: var(--gold-bright); margin-bottom: 8px; }
.trust-points dd { margin: 0; color: var(--muted); font-size: 0.95rem; }

.showcase { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); border-radius: 22px; overflow: hidden; border: 1px solid var(--line-strong); background: var(--panel); }
.showcase-art img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; transition: transform 0.5s; }
.showcase:hover .showcase-art img { transform: scale(1.03); }
.showcase-body { display: flex; flex-direction: column; gap: 14px; justify-content: center; padding: clamp(28px, 5vw, 56px); }
.showcase-body h3 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.showcase-body > p:not(.badge) { color: var(--muted); font-size: 1.05rem; max-width: 36em; }
.games-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.mini-game { display: flex; gap: 18px; align-items: flex-start; padding: 22px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); }
.mini-game img { flex: none; width: 76px; height: 76px; border-radius: 16px; object-fit: cover; }
.mini-game h3 { font-size: 1.1rem; margin-bottom: 6px; }
.mini-game p { color: var(--muted); font-size: 0.93rem; margin-bottom: 8px; }
.mini-links { display: flex; flex-wrap: wrap; gap: 16px; font-weight: 600; }

.store-band { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.store-copy p { color: var(--muted); font-size: 1.05rem; margin: 16px 0 26px; max-width: 34em; }
.store-stack { position: relative; aspect-ratio: 16 / 11; }
.store-stack img { position: absolute; width: 78%; border-radius: 16px; border: 1px solid var(--line-strong); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); transition: transform 0.4s; }
.store-stack img:nth-child(1) { left: 0; top: 0; transform: rotate(-4deg); }
.store-stack img:nth-child(2) { right: 0; top: 14%; transform: rotate(3deg); }
.store-stack img:nth-child(3) { left: 10%; bottom: 0; transform: rotate(-1deg); }
.store-band:hover .store-stack img:nth-child(1) { transform: rotate(-6deg) translate(-8px, -6px); }
.store-band:hover .store-stack img:nth-child(2) { transform: rotate(5deg) translate(8px, -4px); }

.faq-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; max-width: none; align-items: start; }
.home .cta-band { margin-top: 56px; }

@media (max-width: 960px) {
  .home-hero-body, .home-head, .avail, .store-band, .showcase, .split { grid-template-columns: minmax(0, 1fr); }
  .home-hero { align-items: stretch; }
  .home-hero::after { background: linear-gradient(0deg, var(--bg) 8%, rgba(11, 10, 16, 0.78) 55%, rgba(11, 10, 16, 0.25) 100%); }
  .home-hero-copy { grid-column: 1; }
  .how-grid { grid-template-columns: minmax(0, 1fr); }
  .how-grid .composer { position: static; transform: none; }
  .avail-next { border-left: 0; padding-left: 0; }
}
@media (max-width: 720px) {
  .pillars-grid, .flow, .trust-points, .games-row, .faq-columns { grid-template-columns: minmax(0, 1fr); }
  .pillar { border-left: 0; border-top: 1px solid var(--line); padding: 20px 0; }
  .pillar:first-child { border-top: 0; }
  .home-hero-body { padding-top: 96px; padding-bottom: 40px; gap: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .store-stack img, .showcase-art img { transition: none; }
}
