/* SANDBOX: dark graphite and cream, the logo's gold as the only accent. Flat panels over a live 3D lab. */
@font-face { font-family: Geist; src: url(/assets/fonts/geist.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url(/assets/fonts/geist-mono-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url(/assets/fonts/geist-mono-500.woff2) format('woff2'); font-weight: 500 700; font-display: swap; }

:root {
  --bg: #050505; --panel: rgba(16, 16, 17, .88); --panel2: #18181a; --card: #1d1d20; --line: rgba(237, 230, 214, .09); --line2: rgba(237, 230, 214, .16);
  --ink: #ede6d6; --mute: rgba(237, 230, 214, .58); --faint: rgba(237, 230, 214, .36);
  --gold: #ffc21a; --gold2: #ffd84a; --goldDeep: #c98a12; --ember: #ff6a2b; --ok: #8fd18a; --bad: #ff7a5c;
  --r: 12px; --r2: 8px; --sans: Geist, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif; --mono: 'Geist Mono', ui-monospace, Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font: 14px/1.45 var(--sans); -webkit-font-smoothing: antialiased; overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--gold2); text-decoration: none; }
a:hover { text-decoration: underline; }
[hidden] { display: none !important; }
.mono { font-family: var(--mono); }
.small { font-size: 12px; color: var(--mute); }
::selection { background: var(--gold); color: #111; }
* { scrollbar-width: thin; scrollbar-color: rgba(237, 230, 214, .16) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-thumb { background: rgba(237, 230, 214, .14); border-radius: 8px; } ::-webkit-scrollbar-track { background: transparent; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

#world { position: fixed; inset: 0; width: 100%; height: 100%; display: block; outline: none; touch-action: none; cursor: grab; }
#world.dragging { cursor: grabbing; }
#tags { position: fixed; inset: 0; pointer-events: none; z-index: 2; }
body.is-gate #tags { opacity: 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line2); background: transparent; cursor: pointer; font-weight: 550; font-size: 13px; white-space: nowrap; transition: background .15s, border-color .15s, transform .1s; text-decoration: none !important; color: var(--ink); }
.btn:hover { background: rgba(237, 230, 214, .06); border-color: rgba(237, 230, 214, .26); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--gold); border-color: var(--gold); color: #141006; }
.btn.primary:hover { background: var(--gold2); border-color: var(--gold2); }
.btn.primary.on { background: #2a2210; color: var(--gold2); border-color: rgba(255, 194, 26, .5); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.block { width: 100%; } .btn.lg { height: 46px; font-size: 15px; }
.btn.sq { width: 36px; padding: 0; font-size: 16px; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 999px; background: rgba(0, 0, 0, .25); }
.seg button { border: 0; background: transparent; height: 28px; padding: 0 11px; border-radius: 999px; cursor: pointer; font-size: 12px; color: var(--mute); font-weight: 550; }
.seg button:hover { color: var(--ink); } .seg button.on { background: var(--card); color: var(--gold2); box-shadow: inset 0 0 0 1px var(--line2); }

/* top bar */
.topbar { position: fixed; top: 0; left: 0; right: 0; height: 60px; display: flex; align-items: center; gap: 18px; padding: 0 16px; z-index: 20; }
.bar { background: linear-gradient(rgba(5, 5, 5, .9), rgba(5, 5, 5, .55)); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none !important; }
.brand img { border-radius: 9px; box-shadow: 0 0 0 1px var(--line2), 0 0 24px rgba(255, 170, 20, .18); }
.word { font-weight: 700; letter-spacing: .14em; font-size: 15px; }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--mute); padding: 7px 12px; border-radius: 999px; font-weight: 550; font-size: 13px; text-decoration: none; }
.nav a:hover { color: var(--ink); background: rgba(237, 230, 214, .05); }
.nav a.on { color: var(--ink); background: rgba(237, 230, 214, .08); }
.nav b { font-family: var(--mono); font-weight: 500; font-size: 11px; color: var(--gold2); margin-left: 4px; }
.end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.links { display: flex; align-items: center; gap: 6px; }
.ic { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--line); background: rgba(0, 0, 0, .3); color: var(--ink); cursor: pointer; padding: 0; text-decoration: none !important; }
.ic:hover { border-color: var(--line2); background: rgba(237, 230, 214, .06); }
.ic svg { width: 15px; height: 15px; } .ic img { width: 19px; height: 19px; border-radius: 50%; }
.ic.off { opacity: .45; cursor: default; }
.ic.ca { width: auto; padding: 0 12px; font: 500 12px var(--mono); color: var(--gold2); }
.wallet.on { color: var(--gold2); border-color: rgba(255, 194, 26, .4); }

/* gate */
.gate { position: fixed; inset: 0; z-index: 10; pointer-events: none; }
.gate > * { pointer-events: auto; }
.gate-copy { position: absolute; left: clamp(20px, 7vw, 110px); top: 50%; transform: translateY(-50%); max-width: 520px; transition: opacity .8s, transform .8s; }
.gate.leaving .gate-copy, .gate.leaving .gate-top { opacity: 0; transform: translateY(-46%); pointer-events: none; }
.gate-top { transition: opacity .6s; }
.kick { margin: 0 0 10px; font: 500 11px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.title { font-size: clamp(38px, 5.4vw, 68px); line-height: 1.02; letter-spacing: -.03em; font-weight: 650; margin: 0 0 18px; }
.gate .body { color: var(--mute); font-size: 16px; max-width: 460px; margin: 0 0 30px; }
.enter { position: relative; display: inline-flex; align-items: center; gap: 14px; padding: 8px 22px 8px 8px; border-radius: 999px; border: 1px solid rgba(255, 194, 26, .35); background: rgba(20, 16, 6, .7); cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; transition: border-color .2s, box-shadow .2s; box-shadow: 0 0 calc(var(--p, 0) * 60px) rgba(255, 180, 20, calc(var(--p, 0) * .5)); }
.enter:hover { border-color: var(--gold); }
.enter svg { width: 52px; height: 52px; transform: rotate(-90deg); }
.enter .ring-bg { fill: none; stroke: rgba(255, 194, 26, .18); stroke-width: 4; }
.enter .ring { fill: none; stroke: var(--gold); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.enter .dot { position: absolute; left: 28px; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -6px; background: var(--gold); box-shadow: 0 0 14px var(--gold); transform: rotate(45deg) scale(calc(.8 + var(--p, 0) * .5)); }
.enter .lbl { display: grid; text-align: left; } .enter b { font-size: 15px; font-weight: 600; } .enter small { color: var(--mute); font-size: 12px; }
.enter.holding b { color: var(--gold2); }
.gate-load { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); margin: 0; font: 12px var(--mono); color: var(--faint); transition: opacity .6s; }
.gate-load.done { opacity: 0; }

/* panels */
.panel { position: fixed; z-index: 15; background: var(--panel); backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 20px 60px rgba(0, 0, 0, .5); opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s; }
body.live .panel { opacity: 1; transform: none; }
.ph { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px 10px; }
.ph h2 { margin: 0; font-size: 13px; font-weight: 650; letter-spacing: .02em; display: flex; align-items: center; gap: 8px; }
.min { width: 28px; height: 28px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--mute); cursor: pointer; display: none; }
@media (max-width: 1099px) { .min { display: inline-block; } }
.ph select { background: var(--card); border: 1px solid var(--line); border-radius: 999px; height: 30px; padding: 0 10px; font-size: 12px; color: var(--mute); cursor: pointer; }
.rules { left: 14px; top: 72px; bottom: 14px; width: 330px; display: flex; flex-direction: column; }
.readout > *, .rules > :not(.tab-body) { flex-shrink: 0; }
.readout { right: 14px; top: 72px; bottom: 14px; width: 340px; display: flex; flex-direction: column; overflow: auto; }
.tabs { display: flex; gap: 2px; margin: 0 12px; padding: 3px; border-radius: 999px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); }
.tabs button { flex: 1; border: 0; background: transparent; height: 28px; border-radius: 999px; font-size: 12px; font-weight: 550; color: var(--mute); cursor: pointer; }
.tabs button[aria-selected=true] { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line2); }
.tab-body { flex: 1; overflow: auto; padding: 12px 14px 8px; }
.hint { margin: 0 0 12px; color: var(--mute); font-size: 12.5px; }
.tab-body h4 { margin: 16px 0 6px; font-size: 11px; font-weight: 500; font-family: var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.tab-body h4 small { text-transform: none; letter-spacing: 0; font-family: var(--sans); }
.curves { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; }
.curves button { display: grid; grid-template-columns: 46px 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; text-align: left; padding: 8px; border-radius: var(--r2); border: 1px solid var(--line); background: rgba(0, 0, 0, .2); cursor: pointer; }
.curves button:hover { border-color: var(--line2); }
.curves button.on { border-color: rgba(255, 194, 26, .55); background: rgba(255, 194, 26, .07); }
.curves svg { grid-row: span 2; width: 46px; height: 26px; } .curves polyline { fill: none; stroke: var(--faint); stroke-width: 2.2; stroke-linejoin: round; }
.curves .on polyline { stroke: var(--gold); }
.curves b { font-size: 12px; font-weight: 600; } .curves small { font-size: 10.5px; color: var(--faint); line-height: 1.25; }
.sl { display: block; margin: 0 0 10px; }
.sl-h { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 2px; color: var(--ink); }
.sl-h output { font-family: var(--mono); font-size: 12px; color: var(--gold2); }
.sl small { display: block; color: var(--faint); font-size: 11px; margin-top: -2px; }
.sl .dot, .keys i, .legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 7px; vertical-align: 0; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; cursor: pointer; margin: 0; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: rgba(237, 230, 214, .12); }
input[type=range]::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(237, 230, 214, .12); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 3px; background: var(--gold); transform: rotate(45deg); box-shadow: 0 0 10px rgba(255, 194, 26, .5); }
input[type=range]::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 3px; background: var(--gold); }
.f { display: grid; gap: 6px; margin: 0 0 12px; font-size: 12.5px; }
.f > span { color: var(--ink); }
.facts { margin: 8px 0 0; padding: 10px 12px; border-radius: var(--r2); background: rgba(0, 0, 0, .3); border: 1px solid var(--line); font-size: 12px; color: var(--mute); }
.facts b { color: var(--ink); font-weight: 600; } .facts .ok { color: var(--ok); } .facts .bad { color: var(--bad); }
.seed { grid-template-columns: auto 1fr auto; align-items: center; }
.seed input { height: 32px; border-radius: var(--r2); border: 1px solid var(--line); background: rgba(0, 0, 0, .3); padding: 0 10px; font-family: var(--mono); font-size: 12px; min-width: 0; }
.run { display: flex; gap: 8px; align-items: center; padding: 12px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.run #run { flex: 1; min-width: 130px; }
.run .speed { width: 100%; justify-content: space-between; } .run .speed button { flex: 1; }

/* readout */
.live { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.live.on { background: var(--gold); box-shadow: 0 0 10px var(--gold); animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .35; } }
.clock { font-size: 11.5px; color: var(--mute); }
.prog { position: relative; height: 3px; margin: 0 14px 10px; border-radius: 3px; background: rgba(237, 230, 214, .1); }
.prog i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--gold); border-radius: 3px; transition: width .2s linear; }
.prog b { position: absolute; top: -4px; width: 2px; height: 11px; background: var(--gold2); box-shadow: 0 0 6px var(--gold2); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0 14px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r2); overflow: hidden; }
.stats div { background: #111112; padding: 8px 10px; }
.stats dt { font-size: 10.5px; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; font-family: var(--mono); }
.stats dd { margin: 2px 0 0; font: 500 14px var(--mono); color: var(--ink); white-space: nowrap; }
.stats em { font-style: normal; font-size: 11px; margin-left: 6px; }
.up { color: var(--ok) !important; } .dn { color: var(--bad) !important; }
.chart { margin: 12px 14px 0; }
.chart canvas { width: 100%; height: 150px; display: block; border-radius: var(--r2); background: rgba(0, 0, 0, .3); border: 1px solid var(--line); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-size: 11px; color: var(--mute); }
.legend i { width: 12px; height: 3px; border-radius: 2px; vertical-align: 2px; } .legend i.dash { background: none; border-top: 2px dashed; height: 0; }
.legend b { font-family: var(--mono); font-weight: 500; color: var(--ink); }
.split { margin: 12px 14px 0; }
.split .bar { display: flex; height: 8px; border-radius: 6px; overflow: hidden; gap: 2px; background: rgba(0, 0, 0, .3); }
.split .bar i { min-width: 2px; transition: flex .3s; }
.keys { display: flex; flex-wrap: wrap; gap: 3px 10px; margin-top: 6px; font-size: 11px; color: var(--mute); }
.keys b { font-family: var(--mono); font-weight: 500; color: var(--ink); }
.log { list-style: none; margin: 12px 14px 0; padding: 0; display: grid; gap: 2px; font-size: 12px; }
.log li { display: grid; grid-template-columns: 8px 1fr auto; gap: 8px; align-items: baseline; padding: 4px 0; border-bottom: 1px solid var(--line); animation: in .35s ease-out; }
@keyframes in { from { opacity: 0; transform: translateY(-4px); } }
.log i { width: 6px; height: 6px; border-radius: 2px; background: var(--faint); transform: translateY(-1px); }
.log [data-k=buy] i { background: var(--gold); } .log [data-k=sell] i { background: var(--bad); } .log [data-k=grad] i { background: var(--gold2); box-shadow: 0 0 8px var(--gold2); } .log [data-k=kol] i { background: #8b7cff; }
.log [data-k=grad] span { color: var(--gold2); }
.log time { font: 11px var(--mono); color: var(--faint); }
.note { margin: 12px 14px 14px; font-size: 11px; color: var(--faint); }
.card-report { margin: 12px 14px 0; padding: 14px; border-radius: var(--r); background: linear-gradient(180deg, rgba(255, 194, 26, .08), rgba(255, 194, 26, .02)); border: 1px solid rgba(255, 194, 26, .25); display: grid; grid-template-columns: 86px 1fr; gap: 12px; animation: in .5s ease-out; }
.score { position: relative; width: 86px; height: 86px; display: grid; place-items: center; align-content: center; }
.score svg { position: absolute; inset: 0; transform: rotate(-90deg); } .score circle { fill: none; stroke-width: 3.4; } .score .t { stroke: rgba(237, 230, 214, .1); } .score .v { stroke: var(--gold); stroke-dasharray: 100; stroke-linecap: round; transition: stroke-dashoffset 1s; }
.score b { font: 600 28px var(--mono); line-height: 1; color: var(--gold2); } .score small { font-size: 10px; color: var(--mute); }
.scs { display: grid; gap: 6px; align-content: center; }
.sc { display: grid; grid-template-columns: 62px 1fr 24px; align-items: center; gap: 6px; font-size: 11.5px; color: var(--mute); }
.sc i { height: 5px; border-radius: 4px; background: rgba(237, 230, 214, .1); overflow: hidden; } .sc i b { display: block; height: 100%; background: var(--gold); border-radius: 4px; }
.sc em { font: normal 500 11.5px var(--mono); color: var(--ink); text-align: right; }
.mini { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0; }
.mini dt { font-size: 10px; color: var(--faint); font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em; } .mini dd { margin: 0; font: 500 12.5px var(--mono); }
.tips { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 12.5px; }
.tips li { padding-left: 16px; position: relative; color: var(--ink); }
.tips li::before { content: ''; position: absolute; left: 2px; top: 6px; width: 7px; height: 7px; border-radius: 2px; transform: rotate(45deg); }
.tips .warn::before { background: var(--ember); } .tips .good::before { background: var(--ok); }
.acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.acts .btn { height: 32px; font-size: 12px; padding: 0 12px; }

/* zone labels */
.zl { position: absolute; left: 0; top: 0; pointer-events: auto; display: grid; justify-items: center; gap: 1px; padding: 5px 10px 6px; border-radius: 8px; background: rgba(10, 10, 11, .78); border: 1px solid var(--line2); cursor: pointer; backdrop-filter: blur(6px); transition: border-color .2s, background .2s; white-space: nowrap; }
.zl::after { content: ''; position: absolute; bottom: -5px; left: 50%; width: 8px; height: 8px; margin-left: -4px; background: inherit; border-right: 1px solid var(--line2); border-bottom: 1px solid var(--line2); transform: rotate(45deg); }
.zl b { font-size: 12px; font-weight: 650; color: var(--ink); } .zl span { font-size: 10.5px; color: var(--mute); }
.zl:hover, .zl.hot { border-color: rgba(255, 194, 26, .6); } .zl:hover b, .zl.hot b { color: var(--gold2); }
.zl-launch { background: rgba(40, 30, 6, .85); border-color: rgba(255, 194, 26, .5); } .zl-launch b { color: var(--gold2); }

/* detail card */
.detail { left: 50%; bottom: 74px; transform: translateX(-50%); width: min(380px, calc(100vw - 32px)); padding: 16px 18px; opacity: 1; }
body.live .detail { transform: translateX(-50%); }
.detail h3 { margin: 0 0 6px; font-size: 18px; } .detail p { margin: 0 0 10px; color: var(--mute); font-size: 13px; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin: 0 0 12px; }
.kv dt { font-size: 10.5px; color: var(--faint); font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em; } .kv dd { margin: 0; font: 500 13px var(--mono); }
.x { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 999px; border: 1px solid var(--line); background: rgba(0, 0, 0, .3); cursor: pointer; font-size: 16px; line-height: 1; color: var(--mute); }
.x:hover { color: var(--ink); border-color: var(--line2); }

/* dock + fabs */
.dock { position: fixed; z-index: 16; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(12px); }
.dock button { width: 36px; height: 32px; border-radius: 999px; border: 0; background: transparent; cursor: pointer; color: var(--mute); font-size: 15px; }
.dock button:hover { background: rgba(237, 230, 214, .07); color: var(--ink); }
.fab { position: fixed; z-index: 16; bottom: 64px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line2); background: var(--panel); color: var(--ink); font-weight: 600; font-size: 12.5px; cursor: pointer; backdrop-filter: blur(10px); }
.fab-l { left: 14px; } .fab-r { right: 14px; }

/* sheets */
.sheet { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 76px 16px 16px; background: rgba(0, 0, 0, .45); animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.sheet-card { position: relative; width: min(620px, 100%); max-height: 100%; overflow: auto; padding: 26px 28px; border-radius: 16px; background: #0f0f10; border: 1px solid var(--line2); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); animation: rise .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } }
.sheet.wide .sheet-card { width: min(1000px, 100%); }
.sheet h2 { margin: 0 0 8px; font-size: 26px; letter-spacing: -.02em; font-weight: 650; } .sheet h2 span { color: var(--gold2); font-family: var(--mono); font-size: 18px; font-weight: 500; }
.lead { color: var(--mute); margin: 0 0 18px; font-size: 14.5px; }
.how { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 14px; }
.how li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; }
.how .n, .ls .n { font: 500 12px var(--mono); color: var(--gold); border: 1px solid rgba(255, 194, 26, .3); border-radius: 8px; height: 30px; display: grid; place-items: center; }
.how h3 { margin: 4px 0 4px; font-size: 15px; } .how p { margin: 0; color: var(--mute); font-size: 13.5px; }
.search { width: 100%; height: 40px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(0, 0, 0, .3); padding: 0 16px; margin-bottom: 12px; }
.coins { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.coins a { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 8px 10px; border-radius: var(--r2); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.coins a:hover { border-color: rgba(255, 194, 26, .4); background: rgba(255, 194, 26, .04); }
.ci { width: 44px; height: 44px; border-radius: 8px; background: var(--card); overflow: hidden; } .ci img { width: 100%; height: 100%; object-fit: cover; }
.cn { display: grid; } .cn small { color: var(--mute); font-size: 12px; }
.cs { font: 600 18px var(--mono); color: var(--gold2); display: grid; justify-items: center; } .cs small { font: 10px var(--sans); color: var(--mute); }
.cs.big { font-size: 30px; margin-left: auto; }
.empty { color: var(--mute); padding: 16px; text-align: center; border: 1px dashed var(--line2); border-radius: var(--r2); }
.coin-h { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; } .coin-h img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.sheet .acts { margin: 14px 0; }

/* launch */
.lgrid { display: grid; grid-template-columns: 1fr 300px; gap: 22px; align-items: start; }
.ls { padding: 14px 0; border-top: 1px solid var(--line); } .ls:first-child { border-top: 0; padding-top: 0; }
.ls header { display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: center; margin-bottom: 12px; }
.ls h3 { margin: 0; font-size: 15px; } .ls header p { margin: 0; color: var(--faint); font-size: 12px; }
.ruleset > p:first-child { margin: 0 0 10px; font-size: 13px; color: var(--mute); }
.rs-score { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: var(--r2); background: rgba(255, 194, 26, .07); border: 1px solid rgba(255, 194, 26, .25); margin-bottom: 8px; }
.rs-score b { font: 600 26px var(--mono); color: var(--gold2); } .rs-score span { font-size: 12px; color: var(--mute); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .f.full { grid-column: 1 / -1; }
.f em { font-style: normal; color: var(--faint); font-size: 11px; margin-left: 6px; }
.f input, .f textarea { height: 40px; border-radius: var(--r2); border: 1px solid var(--line2); background: rgba(0, 0, 0, .3); padding: 0 12px; min-width: 0; }
.f input:focus { border-color: rgba(255, 194, 26, .6); outline: none; }
.tick { display: flex; align-items: center; border: 1px solid var(--line2); border-radius: var(--r2); background: rgba(0, 0, 0, .3); padding-left: 12px; } .tick i { font-style: normal; color: var(--gold); } .tick input { border: 0; background: transparent; flex: 1; }
.drop { display: flex; gap: 12px; align-items: center; margin-top: 10px; padding: 10px; border: 1px dashed var(--line2); border-radius: var(--r2); cursor: pointer; }
.drop:hover, .drop.over { border-color: var(--gold); } .drop small { display: block; color: var(--faint); font-size: 11.5px; }
.thumb { width: 52px; height: 52px; border-radius: 8px; background: var(--card); display: grid; place-items: center; color: var(--gold); font-size: 22px; overflow: hidden; flex: none; } .thumb img { width: 100%; height: 100%; object-fit: cover; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chip { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line2); background: transparent; cursor: pointer; font-size: 12.5px; }
.chip.on { border-color: var(--gold); color: var(--gold2); background: rgba(255, 194, 26, .08); }
.preview { position: sticky; top: 0; }
.pcard { padding: 14px; border-radius: var(--r); background: var(--panel2); border: 1px solid var(--line); display: grid; gap: 10px; }
.pimg { aspect-ratio: 1; border-radius: 10px; background: #0b0b0c; display: grid; place-items: center; color: var(--faint); overflow: hidden; border: 1px solid var(--line); } .pimg img { width: 100%; height: 100%; object-fit: cover; }
.pwho { display: flex; justify-content: space-between; align-items: baseline; } .pwho b { font-size: 16px; } .pwho span { font-family: var(--mono); color: var(--gold2); }
.pagent { display: flex; gap: 10px; align-items: center; } .pagent small { display: block; color: var(--faint); font-size: 11px; } .pagent b { font-size: 12.5px; font-weight: 550; }
.pscore { width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; font: 600 18px var(--mono); color: var(--gold2); border: 1px solid rgba(255, 194, 26, .35); background: rgba(255, 194, 26, .07); flex: none; }
.fine { margin: 0; font-size: 11.5px; color: var(--faint); }
.status { padding: 10px 12px; border-radius: var(--r2); border: 1px solid var(--line2); font-size: 12.5px; color: var(--mute); }
.status.err { border-color: rgba(255, 122, 92, .5); color: #ffb8a6; } .status.ok { border-color: rgba(143, 209, 138, .5); color: #c7f0c3; } .status.hide { display: none; }
.status .btn { height: 28px; margin-left: 6px; }

/* admin, toasts, no-gl */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(0, 0, 0, .6); }
.modal .card { position: relative; width: min(400px, calc(100vw - 32px)); padding: 22px; border-radius: 14px; background: #0f0f10; border: 1px solid var(--line2); display: grid; gap: 10px; }
.modal h2 { margin: 0 0 4px; font-size: 18px; } .modal label { display: grid; gap: 4px; font-size: 12.5px; color: var(--mute); }
.modal input { height: 38px; border-radius: var(--r2); border: 1px solid var(--line2); background: rgba(0, 0, 0, .3); padding: 0 10px; color: var(--ink); }
.modal .actions { display: flex; gap: 8px; justify-content: flex-end; }
.toasts { position: fixed; z-index: 60; left: 50%; top: 72px; transform: translateX(-50%); display: grid; gap: 6px; }
.toast { padding: 10px 14px; border-radius: 10px; background: #19191b; border: 1px solid var(--line2); font-size: 13px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); animation: rise .3s; transition: opacity .4s; }
.toast.err { border-color: rgba(255, 122, 92, .5); } .toast.out { opacity: 0; }
.nogl { position: fixed; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; padding: 24px; gap: 4px; } .nogl img { border-radius: 24px; }

/* narrow screens: panels become sheets from the bottom */
@media (max-width: 1099px) {

  .rules, .readout { left: 8px; right: 8px; width: auto; top: auto; bottom: 8px; max-height: 62vh; }
  .rules .ph::after, .readout .ph::after { content: none; }
  .end .btn.primary { display: none; }
  .detail { bottom: 64px; }
  body.panel-up .dock, body.panel-up .fab, body.panel-up .detail { display: none; }
}
@media (max-width: 1099px) { .rules .ph, .readout .ph { position: relative; } }
@media (max-width: 640px) {
  .topbar { gap: 8px; padding: 0 10px; } .word { display: none; } .links .ic.snd, .wallet, .ic.ca { display: none; }
  .bar .nav { display: flex; } .nav a { padding: 6px 8px; font-size: 12px; } .nav b { display: none; }
  .zl { padding: 3px 8px 4px; } .zl b { font-size: 11px; } .zl span { display: none; }
  .gate-copy { left: 20px; right: 20px; top: auto; bottom: 90px; transform: none; } .gate.leaving .gate-copy { transform: translateY(10px); }
  .gate .body { font-size: 14px; }
  .lgrid { grid-template-columns: 1fr; } .fields { grid-template-columns: 1fr; } .sheet-card { padding: 20px 16px; }
  .mini { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
