/* NOCTARA · clean market UI: white surfaces, one confident blue, green/red only for Yes/No.
   Type: Geist for everything, Geist Mono for addresses and hashes. */
:root {
  --bg: #ffffff;
  --bg-2: #f5f7fb;
  --panel: #ffffff;
  --line: #e5e8ef;
  --line-2: #d6dae4;
  --ink: #0d1524;
  --dim: #556070;
  --mute: #8b94a3;
  --blue: #1f5cf0;
  --blue-d: #1747c2;
  --blue-t: #eaf0ff;
  --yes: #0f9f55;
  --yes-t: #e6f6ee;
  --no: #e0444b;
  --no-t: #fdecec;
  --gold: #b7791f;
  --sans: 'Geist', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 1px 2px rgba(13, 21, 36, .04), 0 6px 18px -10px rgba(13, 21, 36, .12);
  --gl: max(16px, env(safe-area-inset-left, 0px));
  --gr: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
img, video, canvas { max-width: 100%; }
[hidden] { display: none !important; }
body { background: var(--bg-2); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; min-height: 100svh; display: flex; flex-direction: column; font-variant-numeric: tabular-nums; }
main { flex: 1; }
::selection { background: var(--blue); color: #fff; }
a { color: inherit; text-underline-offset: .2em; text-decoration-color: rgba(31, 92, 240, .4); }
a:hover { text-decoration-color: var(--blue); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 8px; }
h1, h2, h3 { font-family: var(--sans); font-weight: 700; margin: 0; text-wrap: balance; letter-spacing: -.02em; line-height: 1.15; }
p { margin: 0; text-wrap: pretty; }
.mono { font-family: var(--mono); }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: var(--gl); padding-right: var(--gr); }
.narrow { max-width: 860px; }

/* nav */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
body::after { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 41; background: #fff; }
.nav .wrap { display: flex; align-items: center; gap: 26px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; text-decoration: none; }
.brand svg { width: 30px; height: 30px; }
.links { display: flex; gap: 4px; font-size: 15px; font-weight: 500; color: var(--dim); }
.links a { text-decoration: none; padding: 8px 12px; border-radius: 10px; transition: background .15s, color .15s; }
.links a:hover { background: var(--bg-2); color: var(--ink); }
.links a[aria-current="page"] { color: var(--ink); background: var(--bg-2); font-weight: 600; }
.nav .sp { flex: 1; }
@media (max-width: 760px) { .links { display: none; } .nav .wrap { gap: 10px; } }
.tabbar { display: none; }
@media (max-width: 760px) {
  .tabbar { position: fixed; inset: auto 0 0; z-index: 40; display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 6px var(--gr) calc(6px + env(safe-area-inset-bottom, 0px)) var(--gl); }
  .tabbar a { display: grid; justify-items: center; gap: 2px; padding: 6px 0; font-size: 12px; font-weight: 600; color: var(--mute); text-decoration: none; }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar a[aria-current="page"] { color: var(--blue); }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent; font: 600 15px var(--sans); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .12s var(--ease); white-space: nowrap; color: var(--ink); background: none; }
.btn:active { transform: scale(.98); }
.btn-gold, .btn-blue { background: var(--blue); color: #fff; }
.btn-gold:hover, .btn-blue:hover { background: var(--blue-d); }
.btn-line { border-color: var(--line-2); background: #fff; }
.btn-line:hover { border-color: var(--ink); }
.btn-quiet { color: var(--dim); padding: 0 10px; }
.btn-quiet:hover { color: var(--ink); background: var(--bg-2); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.who { display: inline-flex; align-items: center; gap: 8px; }
.who .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yes); }

/* hero strip */
.hero { padding-block: clamp(24px, 4vw, 40px) 8px; }
.hero .wrap { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 32px; }
.hero h1 { font-size: clamp(30px, 4vw, 44px); }
.hero .lead { margin-top: 8px; font-size: 17px; color: var(--dim); max-width: 60ch; }
.hero .lead b { color: var(--ink); font-weight: 600; }
.clock { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 14px; color: var(--dim); margin-top: 16px; }
.clock i { width: 8px; height: 8px; border-radius: 50%; background: var(--no); box-shadow: 0 0 0 4px var(--no-t); animation: pulse 1.6s infinite; }
.clock b { font-weight: 700; color: var(--ink); font-size: 16px; }
.tally { display: flex; flex-wrap: wrap; gap: 10px; }
.tally div { display: grid; padding: 10px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--line); min-width: 130px; }
.tally b { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.tally span { font-size: 13px; color: var(--mute); }
@keyframes pulse { 50% { opacity: .45; } }

/* sections */
.section { padding-block: clamp(18px, 3vw, 32px); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; margin-bottom: 16px; }
.section-head h2 { font-size: clamp(22px, 2.4vw, 26px); }
.section-head p { color: var(--mute); font-size: 15px; }

/* market cards */
.preds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
@media (max-width: 1060px) { .preds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .preds { grid-template-columns: 1fr; } }
.pred { position: relative; display: grid; gap: 16px; padding: 18px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); transition: border-color .15s, box-shadow .2s; }
.pred:hover { border-color: var(--line-2); box-shadow: 0 2px 4px rgba(13, 21, 36, .04), 0 12px 28px -14px rgba(13, 21, 36, .2); }
.pred.voted { border-color: rgba(31, 92, 240, .35); }
.pred-top { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.cat-ico { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-t); color: var(--blue); overflow: hidden; }
.cat-ico svg { width: 22px; height: 22px; }
.cat-ico img { width: 100%; height: 100%; object-fit: cover; }
.cat-ico.crypto { background: #fff4e0; color: #c27803; }
.cat-ico.memes { background: #f1ebff; color: #7c3aed; }
.cat-ico.sports { background: #e6f6ee; color: var(--yes); }
.cat-ico.world { background: var(--blue-t); color: var(--blue); }
.pred h3 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.pred h3 a { text-decoration: none; }
.pred h3 a:hover { text-decoration: underline; }
.chance { display: grid; justify-items: end; line-height: 1; }
.chance b { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.chance span { font-size: 12px; color: var(--mute); margin-top: 3px; }
.gauge { width: 46px; height: 25px; }
.opts { display: grid; gap: 8px; }
.opts.binary { grid-template-columns: 1fr 1fr; }
.opt { --pct: 0%; position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid transparent; background: var(--bg-2); color: var(--ink); font: 600 15px var(--sans); cursor: pointer; overflow: hidden; isolation: isolate; text-align: left; transition: background .15s, border-color .15s, color .15s, transform .1s var(--ease); }
.opt::before { content: ""; position: absolute; inset: 0; z-index: -1; width: var(--pct); background: rgba(31, 92, 240, .08); transition: width .8s var(--ease); }
.opt .meta { display: flex; gap: 10px; font-weight: 600; color: var(--dim); }
.opt .meta small { font-weight: 500; color: var(--mute); }
.opt:hover:not([disabled]) { border-color: var(--blue); background: var(--blue-t); }
.opt:active:not([disabled]) { transform: scale(.985); }
.opt[disabled] { cursor: default; }
.opts.binary .opt { justify-content: center; }
.opts.binary .opt::before { display: none; }
.opts.binary .opt.y { background: var(--yes-t); color: var(--yes); }
.opts.binary .opt.n { background: var(--no-t); color: var(--no); }
.opts.binary .opt.y:hover:not([disabled]) { background: var(--yes); color: #fff; border-color: var(--yes); }
.opts.binary .opt.n:hover:not([disabled]) { background: var(--no); color: #fff; border-color: var(--no); }
.opts.binary .opt .meta { color: inherit; opacity: .85; }
.opt.mine { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue) inset; }
.opts.binary .opt.y.mine { background: var(--yes); color: #fff; border-color: var(--yes); box-shadow: none; }
.opts.binary .opt.n.mine { background: var(--no); color: #fff; border-color: var(--no); box-shadow: none; }
.opt.right { border-color: var(--yes); box-shadow: 0 0 0 1px var(--yes) inset; }
.opt .tag { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 6px; border-radius: 6px; background: var(--blue); color: #fff; }
.opt.right .tag { background: var(--yes); }
.opts.binary .opt .tag { position: absolute; top: -1px; right: -1px; border-radius: 0 10px 0 8px; }
.pred-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; font-size: 13px; color: var(--mute); padding-top: 12px; border-top: 1px solid var(--line); }
.facts { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.facts b, .facts .mono { color: var(--dim); font-weight: 600; font-family: var(--sans); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; background: var(--bg-2); font-size: 12px; font-weight: 600; color: var(--dim); }
.chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--mute); }
.chip.live { background: var(--no-t); color: var(--no); }
.chip.live i { background: var(--no); animation: pulse 1.6s infinite; }
.chip.ok { background: var(--yes-t); color: var(--yes); }
.chip.ok i { background: var(--yes); }
.boost { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 14px; color: var(--dim); background: var(--blue-t); border-radius: 10px; padding: 10px 12px; }
.boost b { color: var(--ink); }
.boost small { color: var(--mute); width: 100%; }
.boost .yes { color: var(--yes); font-weight: 600; } .boost .no { color: var(--no); font-weight: 600; }
.resolves { font-size: 12px; color: var(--mute); }
.empty { border: 1px dashed var(--line-2); border-radius: 16px; padding: 36px 24px; text-align: center; color: var(--dim); display: grid; gap: 8px; justify-items: center; background: #fff; grid-column: 1 / -1; }
.empty h3 { font-size: 20px; color: var(--ink); }

/* last night */
.sealed-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.sealed { position: relative; display: grid; gap: 12px; align-content: start; padding: 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); transition: border-color .15s; }
.sealed:hover { border-color: var(--line-2); }
.sealed a.cover { position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.sealed .top-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sealed h3 { font-size: 16px; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; }
.reveal { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.reveal span { font-size: 13px; color: var(--mute); }
.reveal b { font-size: 22px; font-weight: 700; color: var(--yes); letter-spacing: -.02em; }
.reveal.void b { color: var(--mute); }
.split { display: flex; height: 6px; border-radius: 6px; overflow: hidden; background: var(--bg-2); gap: 2px; }
.split i { display: block; height: 100%; background: var(--line-2); }
.split i.win { background: var(--yes); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; font-weight: 600; color: var(--mute); }
.legend .win { color: var(--yes); }
.sealed .fact { font-size: 13px; color: var(--dim); }
.sealed .fact b, .sealed .fact .mono { font-family: var(--sans); font-weight: 600; color: var(--ink); }
.sealed .foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; color: var(--mute); padding-top: 10px; border-top: 1px solid var(--line); }
.sealed .foot b { color: var(--ink); }
.you { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: var(--bg-2); color: var(--dim); }
.you.yes { color: var(--yes); background: var(--yes-t); }
.you.no { color: var(--no); background: var(--no-t); }

/* ritual + top seekers */
.altar { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 16px; align-items: start; }
.altar h2 { font-size: 22px; }
.ritual, .seekers { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 20px; display: grid; gap: 14px; justify-items: start; }
.rite { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; width: 100%; counter-reset: r; }
.rite li { position: relative; display: grid; gap: 2px; padding: 12px 0 12px 48px; border-bottom: 1px solid var(--line); counter-increment: r; }
.rite li:last-child { border-bottom: 0; }
.rite li::before { content: counter(r); position: absolute; left: 0; top: 12px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: var(--blue-t); color: var(--blue); font-weight: 700; font-size: 15px; }
.rite b { font-size: 16px; }
.rite span { color: var(--dim); font-size: 15px; }
.seekers { justify-items: stretch; }
.seekers a { color: var(--blue); text-decoration: none; font-size: 14px; font-weight: 600; }
.top { list-style: none; margin: 0; padding: 0; display: grid; }
.top li:not(.skeleton) { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.top li:last-child { border-bottom: 0; }
.top .r { font-weight: 700; color: var(--mute); }
.top li:first-child .r { color: var(--gold); }
.top .w { display: grid; min-width: 0; }
.top .w .mono { font-size: 14px; overflow: hidden; text-overflow: ellipsis; }
.top .w small { font-size: 12px; font-weight: 600; color: var(--blue); }
.top .p { font-weight: 700; text-align: right; }
.top .p small { display: block; color: var(--mute); font-size: 12px; font-weight: 500; }
@media (max-width: 860px) { .altar { grid-template-columns: 1fr; } }

/* tables */
.tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.tabs button { min-height: 34px; padding: 0 14px; border-radius: 8px; border: 0; background: none; color: var(--dim); font: 600 14px var(--sans); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--blue); color: #fff; }
.table-scroll { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; font-size: 12px; font-weight: 600; color: var(--mute); padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.n, th.n { text-align: right; }
.rank { font-weight: 700; color: var(--mute); width: 1%; }
.title-tag { font-size: 12px; font-weight: 600; color: var(--blue); background: var(--blue-t); padding: 2px 7px; border-radius: 6px; margin-left: 8px; }
tr.me td { background: var(--blue-t); }
.podium { display: grid; grid-template-columns: 1fr 1.12fr 1fr; gap: 12px; align-items: end; margin-bottom: 16px; }
.podium .pod { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 20px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.podium .pod.first { padding-block: 30px; border-color: rgba(31, 92, 240, .35); background: linear-gradient(180deg, var(--blue-t), #fff 70%); }
.pod .place { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--bg-2); color: var(--dim); }
.pod.first .place { width: 44px; height: 44px; background: var(--blue); color: #fff; font-size: 18px; }
.pod .mono { font-size: 14px; }
.pod b { font-size: 22px; font-weight: 700; }
.pod small { color: var(--mute); font-size: 13px; }
.pod .title-tag { margin: 0; }
@media (max-width: 640px) { .podium { grid-template-columns: 1fr; } .podium .pod.first { order: -1; } }

/* profile */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stats div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: grid; gap: 2px; box-shadow: var(--shadow); }
.stats b { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.stats span { font-size: 13px; color: var(--mute); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.note { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; color: var(--dim); background: #fff; font-size: 15px; }
.note.warn { border-color: rgba(224, 68, 75, .35); background: var(--no-t); color: var(--ink); }
.status { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.status.paid { color: var(--yes); }
.status.pending { color: var(--gold); }
.yes { color: var(--yes); } .no { color: var(--no); }
.past { display: grid; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.past a { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); text-decoration: none; }
.past a:last-child { border-bottom: 0; }
.past a:hover { background: var(--bg-2); }
.past .q { font-weight: 600; }
.past .ans { font-weight: 700; font-size: 14px; color: var(--yes); }
.past .ans.no { color: var(--no); }
.past .void { color: var(--mute); }
.past .pct { font-size: 13px; color: var(--mute); text-align: right; }
@media (max-width: 640px) { .past a { grid-template-columns: 1fr auto; } .past .pct { display: none; } }

/* prediction page */
.detail h1 { font-size: clamp(26px, 3.6vw, 38px); }
.detail > .btn { justify-self: start; }
.p-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.panel { border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: clamp(16px, 3vw, 24px); display: grid; gap: 16px; box-shadow: var(--shadow); }
.panel h2 { font-size: 22px; }
.result .reveal { justify-content: flex-start; gap: 12px; }
.result .reveal b { font-size: 32px; }
.winners { display: flex; flex-wrap: wrap; gap: 6px; }
.winners span { font-family: var(--mono); font-size: 12px; padding: 5px 9px; border-radius: 8px; background: var(--bg-2); }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.steps div { display: grid; gap: 8px; align-content: start; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: var(--shadow); }
.steps h3 { font-size: 20px; }
.steps h3::before { counter-increment: s; content: counter(s); display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 10px; border-radius: 8px; background: var(--blue); color: #fff; font-size: 14px; vertical-align: 2px; }
.steps p { color: var(--dim); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.rules { display: grid; gap: 12px; color: var(--dim); max-width: 72ch; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: clamp(18px, 3vw, 28px); box-shadow: var(--shadow); }
.rules h2 { font-size: 24px !important; color: var(--ink) !important; }
.rules b { color: var(--ink); }
.hero em, .rules em { font-style: normal; color: var(--blue); }

/* forms (admin) */
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
label.f { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--dim); min-width: 0; }
input, select, textarea { width: 100%; min-height: 42px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); font: 15px var(--sans); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31, 92, 240, .15); }
input.mono, textarea.mono { font-family: var(--mono); font-size: 14px; }
input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; accent-color: var(--blue); }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.admin-p { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.admin-p:last-child { border-bottom: 0; }
.admin-p .q { font-weight: 600; }
.admin-p .sub { font-size: 13px; color: var(--mute); }
@media (max-width: 760px) { .admin-p { grid-template-columns: 1fr; } }

/* modal + toast */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(13, 21, 36, .4); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fade .2s var(--ease); }
.modal .box { width: min(420px, 100%); max-height: calc(100svh - 32px); overflow: auto; border-radius: 18px; background: #fff; padding: 24px; display: grid; gap: 14px; box-shadow: 0 30px 70px -20px rgba(13, 21, 36, .35); animation: rise .3s var(--ease); }
.modal h2 { font-size: 22px; }
.modal p { color: var(--dim); font-size: 15px; }
.wl { display: grid; gap: 8px; }
.wl button, .wl a { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); font: 600 15px var(--sans); cursor: pointer; text-decoration: none; }
.wl button:hover, .wl a:hover { border-color: var(--blue); background: var(--blue-t); }
.wl img { width: 26px; height: 26px; border-radius: 6px; }
.presets { display: flex; gap: 8px; flex-wrap: wrap; }
.steps-p { display: grid; gap: 6px; font-size: 14px; color: var(--mute); }
.steps-p .on { color: var(--ink); }
@keyframes fade { from { opacity: 0 } }
@keyframes rise { from { opacity: 0; transform: translateY(10px) } }
.toasts { position: fixed; z-index: 90; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: grid; gap: 8px; width: min(440px, calc(100% - 32px)); }
@media (max-width: 760px) { .toasts { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); } }
.toast { padding: 12px 16px; border-radius: 12px; background: var(--ink); color: #fff; box-shadow: 0 14px 30px -14px rgba(13, 21, 36, .5); font-size: 15px; animation: rise .25s var(--ease); }
.toast.ok { background: #0b3d26; }
.toast.bad { background: #5c1418; }
.demo-bar { background: var(--blue); color: rgba(255, 255, 255, .9); font-size: 14px; text-align: center; padding: 7px var(--gr) 7px var(--gl); }
.demo-bar b { color: #fff; }

footer { border-top: 1px solid var(--line); margin-top: clamp(32px, 5vw, 64px); padding-block: 28px; color: var(--mute); font-size: 14px; background: #fff; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 24px; }
footer p { max-width: 70ch; }
footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.skeleton { border-radius: 16px; height: 220px; background: linear-gradient(100deg, #eef1f6 30%, #f7f9fc 50%, #eef1f6 70%); background-size: 200% 100%; animation: sk 1.4s infinite; }
@keyframes sk { to { background-position: -200% 0; } }

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

[data-s], .rules .mono, .steps .mono, .boost .mono, .hero .mono { font-family: var(--sans); font-weight: 700; }

/* ---------- brand + banner hero ---------- */
.brand img { width: 32px; height: 32px; display: block; }
.hero .wrap { flex-direction: column; align-items: stretch; }
.hero-card {
  position: relative; overflow: hidden; border-radius: 24px; border: 1px solid var(--line, #e5e8ef);
  min-height: clamp(260px, 30vw, 380px); display: flex; align-items: center;
  padding: clamp(24px, 4vw, 56px);
  background: #eef2fa url(../img/hero.webp) right center / cover no-repeat;
  box-shadow: 0 24px 60px -40px rgba(31, 92, 240, .45);
}
.hero-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(247,249,253,.92) 0%, rgba(247,249,253,.6) 38%, rgba(247,249,253,0) 62%); pointer-events: none; }
.hero-text { position: relative; max-width: 540px; }
.hero-text h1 { font-size: clamp(32px, 4.4vw, 54px); letter-spacing: -.03em; line-height: 1.02; }
.hero .tally { align-self: stretch; }
@media (max-width: 720px) {
  .hero-card { align-items: flex-start; min-height: 440px; background-position: 79% 100%; background-size: auto 72%; background-color: #f4f6fb; }
  .hero .tally { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .hero .tally > div { min-width: 0; padding: 12px; }
  .hero .tally span { font-size: 11px; }
  .hero-card::before { background: linear-gradient(180deg, #f4f6fb 0%, #f4f6fb 30%, rgba(244,246,251,.7) 44%, rgba(244,246,251,0) 62%); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-card { animation: heroIn 1.1s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes heroIn { from { opacity: 0; transform: translateY(8px); background-position: 104% center; } to { opacity: 1; transform: none; } }
}
