/* ===== Ferver Games: brand colors (never change) ===== */
:root {
  --ember: #FF6A2B;
  --ember-deep: #E8501A;
  --gold: #FFC23D;
  --cream: #FAF7F2;
  --head: "Arial Black", "Arial Bold", Arial, sans-serif;
  --body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 16px;
}

/* ===== Theme: Sunrise (default) — cream, peach and ember ===== */
:root, [data-theme="sunrise"] {
  --page-bg:
    radial-gradient(1200px 600px at 85% -10%, rgba(255,194,61,.28), transparent 60%),
    radial-gradient(900px 600px at -10% 20%, rgba(255,106,43,.16), transparent 60%),
    linear-gradient(180deg, #FFF8EF 0%, #FFF1E3 45%, #FFE9D8 100%);
  --page-color: #FFF4E8;
  --surface: #FFFFFF;
  --surface-2: #FFF4E8;
  --surface-glass: rgba(255,250,244,.82);
  --input-bg: #FFFBF6;
  --heading: #2E1520;
  --text: #4A3138;
  --muted: #7D6066;
  --link: #C2410C;
  --link-hover: #8F2E07;
  --accent-text: #C8461A;
  --line: rgba(160,72,30,.14);
  --line-strong: rgba(160,72,30,.26);
  --shadow: 0 1px 2px rgba(120,50,20,.06), 0 8px 28px rgba(200,90,40,.10);
  --shadow-hover: 0 2px 4px rgba(120,50,20,.08), 0 18px 44px rgba(232,80,26,.20);
  --band-bg: linear-gradient(120deg, #FFE3CC 0%, #FFEFD9 55%, #FFF6E2 100%);
  --hero-glow: radial-gradient(ellipse 55% 55% at 50% 52%, rgba(255,106,43,.30), rgba(255,194,61,.14) 45%, transparent 72%);
  --dot: rgba(160,72,30,.14);
  --footer-bg: linear-gradient(160deg, #C24A1C 0%, #9E3416 55%, #7E2818 100%);
  --footer-text: #FFEFE3;
  --footer-muted: #FFD2BC;
  --footer-line: rgba(255,230,210,.22);
  --ok: #1F8A4C;
  --ok-bg: rgba(31,138,76,.08);
  --danger: #C62828;
  --danger-bg: rgba(198,40,40,.06);
  --info-bg: rgba(255,194,61,.16);
  --info-line: rgba(214,140,20,.45);
  --intro-bg: radial-gradient(ellipse at 50% 50%, #FFE7CF 0%, #FFF4E6 60%, #FFF8EF 100%);
  --intro-color: #FFF4E6;
  --intro-word: #2E1520;
  --chip-bg: #FFFFFF;
  --tag-bg: #FFF4E8;
}

/* ===== Theme: Ember Dusk — warm wine and plum, glowing ember ===== */
[data-theme="dusk"] {
  --page-bg:
    radial-gradient(1100px 600px at 85% -10%, rgba(255,194,61,.16), transparent 60%),
    radial-gradient(900px 700px at -10% 30%, rgba(255,106,43,.20), transparent 60%),
    linear-gradient(180deg, #4A1D33 0%, #3D1830 50%, #331528 100%);
  --page-color: #3D1830;
  --surface: #55223C;
  --surface-2: #5E2742;
  --surface-glass: rgba(74,29,51,.85);
  --input-bg: #44192F;
  --heading: #FFFFFF;
  --text: #F7E6DE;
  --muted: #E0BFC0;
  --link: #FFC23D;
  --link-hover: #FFFFFF;
  --accent-text: #FF8B57;
  --line: rgba(255,210,190,.14);
  --line-strong: rgba(255,210,190,.26);
  --shadow: 0 8px 28px rgba(30,5,15,.25);
  --shadow-hover: 0 18px 44px rgba(255,106,43,.28);
  --band-bg: linear-gradient(120deg, #6B2540 0%, #5A2039 60%, #4E1C34 100%);
  --hero-glow: radial-gradient(ellipse 55% 55% at 50% 52%, rgba(255,106,43,.40), rgba(255,194,61,.14) 45%, transparent 72%);
  --dot: rgba(255,210,190,.10);
  --footer-bg: linear-gradient(160deg, #6B2540 0%, #4E1C34 100%);
  --footer-text: #F7E6DE;
  --footer-muted: #D9B5B8;
  --footer-line: rgba(255,210,190,.16);
  --ok: #8BF0B0;
  --ok-bg: rgba(139,240,176,.10);
  --danger: #FFA59C;
  --danger-bg: rgba(255,165,156,.10);
  --info-bg: rgba(255,194,61,.12);
  --info-line: rgba(255,194,61,.40);
  --intro-bg: radial-gradient(ellipse at 50% 50%, #6B2540 0%, #4A1D33 70%);
  --intro-color: #4A1D33;
  --intro-word: #FFFFFF;
  --chip-bg: #4A1D33;
  --tag-bg: rgba(255,255,255,.06);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--page-bg); background-color: var(--page-color); color: var(--text);
  font: 400 16px/1.6 var(--body); overflow-x: hidden; min-height: 100vh;
}
img, svg { max-width: 100%; }
a { color: var(--link); }
a:hover { color: var(--link-hover); }
h1, h2, h3 { font-family: var(--head); font-weight: 800; letter-spacing: -.01em; line-height: 1.1; color: var(--heading); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.strong { color: var(--heading); font-weight: 700; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
@media (min-width: 720px) { .wrap { padding-left: 28px; padding-right: 28px; } }

:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #2E1520; padding: 8px 14px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 0;
  background: linear-gradient(180deg, var(--ember) 0%, var(--ember-deep) 100%);
  color: #FFFFFF; font: 700 1rem/1.15 var(--body); text-align: center;
  text-decoration: none; cursor: pointer; text-shadow: 0 1px 1px rgba(140,40,10,.35);
  box-shadow: 0 4px 14px rgba(232,80,26,.30);
  transition: box-shadow .2s, transform .2s, filter .2s;
}
.btn:hover { color: #FFFFFF; filter: brightness(1.05); box-shadow: 0 0 0 4px rgba(255,194,61,.35), 0 10px 30px rgba(232,80,26,.40); }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: .95rem; }
.btn-ghost { background: var(--surface); border: 1px solid var(--line-strong); color: var(--heading); text-shadow: none; box-shadow: none; }
.btn-ghost:hover { color: var(--heading); background: var(--surface-2); box-shadow: none; filter: none; }
.btn-block { width: 100%; }
.link-quiet { color: var(--heading); text-decoration: none; font-weight: 600; padding: 8px 4px; }
.link-quiet:hover { color: var(--accent-text); }

/* ===== Preview bar + header ===== */
.preview-bar { background: linear-gradient(90deg, var(--gold), #FFD46B); color: #3A1E10; text-align: center; font-size: .82rem; font-weight: 600; padding: 6px 16px; }
.site-header { position: sticky; top: 0; z-index: 40; background: var(--surface-glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--heading); }
.brand svg { flex: none; border-radius: 9px; box-shadow: 0 3px 10px rgba(232,80,26,.30); }
.wordmark { font: 800 1.15rem/1 var(--head); letter-spacing: .02em; display: flex; flex-direction: column; color: var(--heading); }
.wordmark span { color: var(--accent-text); font-size: .62em; letter-spacing: .38em; margin-top: 3px; }
.main-nav { display: flex; gap: 6px; }
.main-nav a { color: var(--heading); text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: 8px; }
.main-nav a:hover { background: var(--surface-2); color: var(--heading); }
.main-nav a[aria-current="page"] { color: var(--accent-text); box-shadow: inset 0 -2px 0 var(--ember); border-radius: 0; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.balance { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; color: var(--heading); font-weight: 700; text-decoration: none; }
.balance:hover { color: var(--heading); border-color: var(--ember); }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--gold), var(--ember)); color: #FFFFFF; font-weight: 800; text-decoration: none; text-shadow: 0 1px 1px rgba(140,40,10,.4); }
.avatar:hover { color: #FFFFFF; }
.coin { flex: none; vertical-align: -3px; }
@media (max-width: 600px) {
  .header-inner { gap: 6px 12px; padding-top: 8px; padding-bottom: 4px; }
  .main-nav { order: 3; width: 100%; margin-left: -12px; }
  .wordmark { font-size: 1rem; }
}

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; text-align: center; padding: 72px 0 84px; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: -20% -10% -10%; z-index: -1; background: var(--hero-glow); }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000, transparent 75%);
}
.hero-logo { display: inline-flex; align-items: center; gap: 18px; margin-bottom: 28px; }
.hero-logo svg { width: clamp(64px, 12vw, 104px); height: auto; border-radius: 20px; box-shadow: 0 14px 40px rgba(232,80,26,.40); }
.hero-word { font: 800 clamp(2.4rem, 8vw, 5rem)/.9 var(--head); text-align: left; color: var(--heading); letter-spacing: -.01em; }
.hero-word span { display: block; color: var(--accent-text); font-size: .4em; letter-spacing: .42em; margin-top: .35em; }
.tagline-rotator { position: relative; min-height: 3.6em; max-width: 680px; margin: 0 auto 36px; font-size: clamp(1.1rem, 2.6vw, 1.45rem); font-weight: 500; color: var(--heading); }
.tagline-rotator p { position: absolute; inset: 0; margin: 0; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 1.2s ease, transform 1.2s ease; transform: translateY(8px); }
.tagline-rotator p.is-on { opacity: 1; transform: none; }
.play-btn { min-height: 72px; padding: 0 48px; font: 800 clamp(1.25rem, 3vw, 1.6rem)/1 var(--head); letter-spacing: .02em; box-shadow: 0 12px 36px rgba(232,80,26,.45); }
.play-btn:hover { box-shadow: 0 0 0 6px rgba(255,194,61,.45), 0 0 60px rgba(255,194,61,.55), 0 12px 36px rgba(232,80,26,.5); }
.play-btn svg { width: 22px; height: 22px; }
.hero-sub { margin-top: 18px; color: var(--muted); font-size: .92rem; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #2DBE6C; margin-right: 6px; box-shadow: 0 0 0 0 rgba(45,190,108,.6); animation: pulse 2s infinite; vertical-align: 1px; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(45,190,108,0); } 100% { box-shadow: 0 0 0 0 rgba(45,190,108,0); } }

/* ===== Sections ===== */
.section { padding: 64px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head h2 { margin: 0; }
.eyebrow { font: 700 .78rem/1 var(--body); text-transform: uppercase; letter-spacing: .14em; color: var(--accent-text); margin-bottom: 10px; }

/* ===== Game cards ===== */
.game-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.game-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--text); text-decoration: none; box-shadow: var(--shadow); transition: transform .25s, border-color .25s, box-shadow .25s; }
.game-card .art { aspect-ratio: 200 / 140; display: block; overflow: hidden; }
.game-card .art svg { width: 100%; height: 100%; display: block; }
.game-card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.game-card h3 { margin: 0; }
.game-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: .72rem; font-weight: 600; letter-spacing: .04em; padding: 3px 8px; border-radius: 999px; background: var(--tag-bg); border: 1px solid var(--line); color: var(--muted); }
.badge { position: absolute; top: 12px; left: 12px; font: 700 .72rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; }
.badge-live { background: linear-gradient(180deg, var(--ember), var(--ember-deep)); color: #FFFFFF; box-shadow: 0 3px 10px rgba(232,80,26,.4); }
.badge-soon { background: rgba(255,248,238,.92); color: #8A3A12; }
.game-card .cta { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--accent-text); }
a.game-card:hover { transform: translateY(-4px); border-color: var(--ember); box-shadow: var(--shadow-hover); color: var(--text); }
.game-card.is-soon .art { filter: saturate(.7); }
.game-card.is-soon .cta { color: var(--muted); }
.game-card.is-featured { border: 2px solid var(--ember); }
@media (min-width: 900px) { .game-grid.home { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }

/* ===== Feature bands ===== */
.band { background: var(--band-bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1.1fr 1fr; gap: 56px; } }
.points { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 14px; }
.points li { display: flex; gap: 12px; align-items: flex-start; }
.points .ico { flex: none; width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(135deg, var(--gold), var(--ember)); color: #FFFFFF; display: grid; place-items: center; font-weight: 800; text-shadow: 0 1px 1px rgba(140,40,10,.35); }
.points strong { color: var(--heading); display: block; }
.points span.d { color: var(--muted); font-size: .94rem; }
.coin-stage { position: relative; display: grid; place-items: center; min-height: 260px; }
.coin-stage .big-coin svg { width: 160px; height: 160px; filter: drop-shadow(0 14px 34px rgba(232,80,26,.40)); }
.orbit { position: absolute; border: 2px dashed rgba(232,80,26,.30); border-radius: 50%; }
.orbit.o1 { width: 230px; height: 230px; }
.orbit.o2 { width: 320px; height: 320px; border-color: rgba(214,150,20,.30); }
.orbit-chip { position: absolute; font-size: .78rem; font-weight: 700; color: var(--heading); background: var(--chip-bg); border: 1px solid var(--line-strong); padding: 5px 10px; border-radius: 999px; white-space: nowrap; box-shadow: var(--shadow); }
.orbit-chip.mult { background: linear-gradient(135deg, var(--gold), var(--ember)); color: #FFFFFF; border: 0; text-shadow: 0 1px 1px rgba(140,40,10,.35); }
.account-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 12px; box-shadow: var(--shadow); }
.linked-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; color: var(--heading); }
.linked-row .mini { width: 40px; height: 28px; border-radius: 6px; overflow: hidden; flex: none; }
.linked-row .mini svg { width: 100%; height: 100%; display: block; }
.linked-row .st { margin-left: auto; font-size: .8rem; font-weight: 700; text-align: right; }
.st-on { color: var(--ok); }
.st-soon { color: var(--muted); }

/* ===== Forms / auth ===== */
.auth-wrap { display: grid; place-items: start center; padding-top: 48px; padding-bottom: 72px; }
.auth-card { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px 22px; box-shadow: var(--shadow); }
@media (min-width: 480px) { .auth-card { padding: 34px 32px; } }
.auth-card h1 { font-size: 1.8rem; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: .92rem; color: var(--heading); }
.field input[type=text], .field input[type=email], .field input[type=password] {
  width: 100%; min-height: 48px; padding: 0 14px; border-radius: 10px; font: inherit; color: var(--heading);
  background: var(--input-bg); border: 1px solid var(--line-strong);
}
.field input:focus { outline: none; border-color: var(--ember); box-shadow: 0 0 0 3px rgba(255,106,43,.25); }
.field .hint { font-size: .82rem; color: var(--muted); }
.field .err, .terms-err { font-size: .85rem; color: var(--danger); }
.field.has-err input { border-color: var(--danger); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; margin-bottom: 18px; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ember); flex: none; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; margin: 20px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.btn-google { background: #FFFFFF; color: #1F1F1F; border: 1px solid rgba(0,0,0,.14); text-shadow: none; box-shadow: none; }
.btn-google:hover { color: #1F1F1F; background: #FFFBF6; box-shadow: none; filter: none; }
.btn-brains { background: var(--ok-bg); border: 1px solid var(--ok); color: var(--ok); text-shadow: none; box-shadow: none; }
.btn-brains:hover { color: var(--ok); box-shadow: none; filter: brightness(.97); }
.alt-stack { display: grid; gap: 10px; }
.notice { border-radius: 10px; padding: 12px 14px; font-size: .9rem; margin-bottom: 18px; border: 1px solid; color: var(--heading); }
.notice-info { background: var(--info-bg); border-color: var(--info-line); }
.notice-err { background: var(--danger-bg); border-color: var(--danger); }
.notice-ok { background: var(--ok-bg); border-color: var(--ok); }
.auth-foot { text-align: center; margin-top: 18px; font-size: .92rem; color: var(--muted); }
.pw-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.pw-row a { font-size: .85rem; }
.brains-panel { border: 1px solid var(--ok); background: var(--ok-bg); border-radius: 12px; padding: 16px; margin-bottom: 18px; }
.brains-panel h2 { font-size: 1.05rem; margin-bottom: 4px; }

/* ===== Page header ===== */
.page-head { padding-top: 52px; padding-bottom: 12px; }
.page-head p { color: var(--muted); max-width: 640px; font-size: 1.05rem; }

/* ===== Store ===== */
.soon-hero { text-align: center; padding-top: 56px; padding-bottom: 24px; }
.soon-hero .big-coin svg { width: 96px; height: 96px; filter: drop-shadow(0 10px 26px rgba(232,80,26,.35)); }
.soon-hero p { max-width: 620px; margin: 0 auto 1em; color: var(--muted); font-size: 1.05rem; }
.cat-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.cat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.cat .ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(255,194,61,.30), rgba(255,106,43,.22)); margin-bottom: 14px; }
.cat .ic svg { width: 26px; height: 26px; }
.cat p { color: var(--muted); font-size: .94rem; }
.pay { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pay span { font-size: .75rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--heading); display: inline-flex; gap: 5px; align-items: center; }
.ghost-items { display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); margin-top: 18px; }
.ghost-item { border: 1px dashed var(--line-strong); border-radius: 10px; padding: 8px; background: var(--surface-2); }
.ghost-item .ph { aspect-ratio: 1; border-radius: 8px; background: linear-gradient(135deg, rgba(255,194,61,.22), rgba(255,106,43,.14)); margin-bottom: 8px; }
.ghost-item .bar { height: 8px; border-radius: 4px; background: var(--line-strong); margin-bottom: 5px; }
.ghost-item .bar.s { width: 55%; }

/* ===== Account ===== */
.acct-grid { display: grid; gap: 18px; }
@media (min-width: 900px) { .acct-grid { grid-template-columns: 1fr 1.5fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.panel h2 { font-size: 1.15rem; margin-bottom: 14px; }
.profile-top { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.profile-top .avatar { width: 64px; height: 64px; font-size: 1.6rem; }
.wallet-big { display: flex; align-items: center; gap: 12px; font: 800 2.6rem/1 var(--head); color: var(--heading); margin: 6px 0 4px; }
.wallet-big svg { width: 40px; height: 40px; }
.ledger { width: 100%; border-collapse: collapse; font-size: .92rem; }
.ledger th { text-align: left; color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; padding: 0 8px 8px; border-bottom: 1px solid var(--line-strong); }
.ledger td { padding: 11px 8px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--heading); }
.ledger td:first-child { white-space: nowrap; }
.ledger td.amt { text-align: right; font-weight: 700; color: var(--ok); white-space: nowrap; }
.ledger th:last-child { text-align: right; }
@media (max-width: 520px) { .ledger .col-game { display: none; } }
.meter { height: 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; margin: 10px 0 6px; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--ember), var(--gold)); border-radius: inherit; }
.empty { text-align: center; color: var(--muted); padding: 22px 8px; border: 1px dashed var(--line-strong); border-radius: 12px; background: var(--surface-2); }

/* ===== Theme picker ===== */
.theme-form fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.theme-form legend { padding: 0; margin-bottom: 10px; }
.theme-options { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.theme-opt { position: relative; display: grid; gap: 4px; padding: 12px; border: 2px solid var(--line-strong); border-radius: 14px; background: var(--surface-2); cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.theme-opt:hover { border-color: var(--ember); }
.theme-opt input { position: absolute; opacity: 0; pointer-events: none; }
.theme-opt:has(input:checked) { border-color: var(--ember); box-shadow: 0 0 0 3px rgba(255,106,43,.25); }
.theme-opt:has(input:checked)::after { content: "\2713"; position: absolute; top: 8px; right: 10px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--ember); color: #FFFFFF; font-size: .75rem; font-weight: 800; }
.theme-opt:has(input:focus-visible) { outline: 3px solid var(--ember); outline-offset: 3px; }
.swatch { display: flex; height: 54px; border-radius: 10px; overflow: hidden; margin-bottom: 6px; border: 1px solid var(--line); }
.swatch i { flex: 1; }
.swatch-sunrise i:nth-child(1) { background: linear-gradient(180deg, #FFF8EF, #FFE9D8); flex: 2; }
.swatch-sunrise i:nth-child(2) { background: #FF6A2B; }
.swatch-sunrise i:nth-child(3) { background: #C24A1C; }
.swatch-dusk i:nth-child(1) { background: linear-gradient(180deg, #4A1D33, #331528); flex: 2; }
.swatch-dusk i:nth-child(2) { background: #FF6A2B; }
.swatch-dusk i:nth-child(3) { background: #6B2540; }
.theme-name { font-weight: 700; color: var(--heading); }
.theme-desc { font-size: .82rem; color: var(--muted); line-height: 1.35; }

/* ===== Legal ===== */
.prose { max-width: 760px; padding-bottom: 64px; }
.prose h2 { font-size: 1.25rem; margin-top: 1.8em; }
.prose li { margin-bottom: .4em; }

/* ===== Footer ===== */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 48px 0 24px; }
.site-footer .brand, .site-footer .wordmark { color: #FFFFFF; }
.site-footer .wordmark span { color: var(--gold); }
.site-footer .brand svg { box-shadow: 0 0 0 2px rgba(255,240,225,.55), 0 4px 14px rgba(60,10,0,.3); }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; max-width: 360px; }
.footer-brand p { color: var(--footer-muted); font-size: .92rem; margin-top: 14px; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.2fr; } .footer-brand { grid-column: auto; } }
.site-footer h2 { font: 700 .8rem/1 var(--body); text-transform: uppercase; letter-spacing: .12em; color: var(--footer-muted); margin-bottom: 14px; }
.site-footer nav a { display: block; color: var(--footer-text); text-decoration: none; padding: 4px 0; }
.site-footer nav a:hover { color: var(--gold); }
.socials { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.social-soon { display: inline-block; font-size: .82rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--footer-line); background: rgba(255,255,255,.08); color: var(--footer-text); }
.site-footer .muted { color: var(--footer-muted); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--footer-line); font-size: .85rem; color: var(--footer-muted); }
.footer-legal a { color: var(--footer-muted); }
.footer-legal a:hover { color: #FFFFFF; }

/* ===== Intro animation overlay ===== */
.intro { position: fixed; inset: 0; z-index: 90; background: var(--intro-bg); background-color: var(--intro-color); display: grid; place-items: center; transition: opacity .6s ease, visibility .6s; }
.intro.is-done { opacity: 0; visibility: hidden; }
.intro[hidden] { display: none; }
.intro-stage { position: relative; width: min(92vw, 560px); height: 170px; }
.intro .rows { position: absolute; left: 0; right: 0; top: 50%; margin-top: -56px; height: 112px; transition: opacity .5s; }
.intro .row { height: 56px; display: flex; justify-content: center; align-items: center; font: 800 clamp(30px, 8vw, 48px)/56px var(--head); color: var(--intro-word); transition: transform .8s ease; }
.intro .k { color: var(--ember); }
.intro .g { display: inline-block; overflow: hidden; white-space: nowrap; transition: opacity .7s, max-width .7s; }
.intro .final { position: absolute; left: 0; right: 0; top: 50%; margin-top: -28px; height: 56px; display: flex; justify-content: center; align-items: center; font: 800 clamp(30px, 8vw, 48px)/56px var(--head); opacity: 0; transition: opacity .5s; }
.intro .fv { color: var(--ember); }
.intro .gm { display: inline-block; overflow: hidden; white-space: nowrap; max-width: 0; opacity: 0; color: var(--intro-word); transition: max-width .9s ease, opacity .9s ease; }
.intro-skip { position: absolute; right: 16px; bottom: 20px; background: var(--surface); color: var(--heading); border: 1px solid var(--line-strong); border-radius: 999px; padding: 10px 18px; font: 600 .9rem var(--body); cursor: pointer; min-height: 44px; }
.intro-skip:hover { border-color: var(--ember); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}
