/* ==========================================================================
   BUIDL — art direction: fluid ASCII, monochrome + one accent
   ========================================================================== */

:root {
  --bg: #060606;
  --fg: #efefe9;
  --dim: #8a8a83;
  --mute: #3d3d39;
  --line: #242422;
  --acc: #14f195;
  --acc2: #9945ff;
  --warn: #ffb020;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --pad: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --panel: rgba(6, 6, 6, .82);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body { min-height: 100vh; overflow-x: hidden; background: var(--bg); }
::selection { background: var(--acc); color: #000; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
pre { font-family: var(--mono); }
i { font-style: normal; }
:focus-visible { outline: 1px dashed var(--acc); outline-offset: 4px; }

html.has-cursor, html.has-cursor * { cursor: none !important; }

.dim { color: var(--dim); }
.acc { color: var(--acc); }
.warn { color: var(--warn); }

/* --- fixed layers ------------------------------------------------------ */
#field { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; height: 100lvh; z-index: 0; pointer-events: none; }
.scan {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 45%, transparent 50%, rgba(0, 0, 0, .6) 100%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .016) 0 1px, transparent 1px 3px);
}
main, .foot { position: relative; z-index: 2; }
main { min-height: 100vh; overflow-x: clip; }

/* --- cursor ------------------------------------------------------------- */
#cursor { position: fixed; top: 0; left: 0; z-index: 200; pointer-events: none; opacity: 0; mix-blend-mode: difference; color: #fff; font-weight: 700; will-change: transform; }
#cursor.on { opacity: 1; }
html:not(.has-cursor) #cursor { display: none; }
#cursor span { position: absolute; display: flex; align-items: center; transform: translate(-50%, -50%); white-space: nowrap; font-size: 15px; line-height: 1; transition: transform .2s var(--ease); }
#cursor i { opacity: 0; transition: transform .28s var(--ease), opacity .2s; }
#cursor i:first-child { transform: translateX(10px); }
#cursor i:last-child { transform: translateX(-10px); }
#cursor b { transition: transform .28s var(--ease), opacity .2s; display: inline-block; }
#cursor[data-mode="link"] i { opacity: 1; }
#cursor[data-mode="link"] i:first-child { transform: translateX(-7px); }
#cursor[data-mode="link"] i:last-child { transform: translateX(7px); }
#cursor[data-mode="link"] b { transform: rotate(135deg) scale(.8); }
#cursor[data-mode="text"] b { transform: scaleY(1.5) scaleX(.2); }
#cursor.down span { transform: translate(-50%, -50%) scale(.72); }

/* --- HUD ---------------------------------------------------------------- */
.hud { position: fixed; bottom: 12px; z-index: 40; font-size: 11px; color: var(--dim); letter-spacing: .06em; pointer-events: none; mix-blend-mode: difference; }
.hud-l { left: var(--pad); }
.hud-r { right: var(--pad); }
.hud .rec { color: var(--acc); animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (max-width: 900px) { .hud { display: none; } }

/* --- nav ---------------------------------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px var(--pad);
  background: linear-gradient(rgba(6, 6, 6, .92), rgba(6, 6, 6, 0));
  transition: transform .5s var(--ease), background .3s;
}
.nav.hide { transform: translateY(-110%); }
.nav.solid { background: rgba(6, 6, 6, .88); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .14em; font-size: 15px; }
.mark { width: 26px; height: 25px; fill: var(--fg); overflow: visible; }
.mark polygon { transition: transform .5s var(--ease), fill .25s; }
.brand:hover .m1, .foot-brand:hover .m1 { transform: translate(40px, -40px); fill: var(--acc); }
.brand:hover .m2, .foot-brand:hover .m2 { transform: translate(-20px, 10px); }
.brand:hover .m3, .foot-brand:hover .m3 { transform: translate(-50px, 50px) rotate(-12deg); transform-origin: 81px 457px; fill: var(--acc); }

.links { display: flex; gap: clamp(14px, 2.4vw, 34px); }
.links a { position: relative; display: flex; gap: 8px; align-items: baseline; padding: 6px 0; text-transform: uppercase; letter-spacing: .1em; font-size: 12px; color: var(--dim); transition: color .2s; }
.links a i { font-size: 10px; color: var(--mute); transition: color .2s, transform .3s var(--ease); }
.links a::after { content: "~~~~~~~~~~~~~~~~~~~~~~~~"; position: absolute; left: 0; right: 0; bottom: -7px; height: 10px; overflow: hidden; font-size: 10px; line-height: 10px; letter-spacing: 0; color: var(--acc); clip-path: inset(0 100% 0 0); transition: clip-path .4s steps(12); }
.links a:hover, .links a.on { color: var(--fg); }
.links a:hover i, .links a.on i { color: var(--acc); transform: translateY(-2px); }
.links a:hover::after, .links a.on::after { clip-path: inset(0); }

.nav-r { display: flex; align-items: center; gap: 18px; }
.live { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--dim); letter-spacing: .06em; }
.spin::before { content: "⠋"; color: var(--acc); animation: spin .8s steps(1) infinite; }
@keyframes spin {
  0% { content: "⠋"; } 12% { content: "⠙"; } 25% { content: "⠹"; } 37% { content: "⠸"; }
  50% { content: "⠼"; } 62% { content: "⠴"; } 75% { content: "⠦"; } 87% { content: "⠧"; }
}
.cd b { font-weight: 500; display: inline-block; }
.cd b.tk { animation: tk .35s steps(4); }
@keyframes tk { 0% { transform: translateY(-60%); opacity: 0; color: var(--acc); } 100% { transform: none; opacity: 1; } }
.burger { display: none; font-size: 15px; letter-spacing: 0; padding: 4px; }

@media (max-width: 1180px) { .live { display: none; } }
@media (max-width: 860px) {
  .burger { display: block; position: relative; z-index: 3; }
  .live { display: none; }
  .links {
    position: fixed; inset: 0; z-index: 2; flex-direction: column; justify-content: center; gap: 6px;
    padding: 0 var(--pad); background: rgba(6, 6, 6, .96);
    clip-path: inset(0 0 100% 0); transition: clip-path .5s steps(14); pointer-events: none;
  }
  .nav.open .links { clip-path: inset(0); pointer-events: auto; }
  .links a { font-size: clamp(28px, 9vw, 44px); font-weight: 800; letter-spacing: 0; color: var(--fg); opacity: 0; transform: translateX(-24px); transition: opacity .4s, transform .5s var(--ease), color .2s; }
  .links a i { font-size: 12px; }
  .links a::after { display: none; }
  .nav.open .links a { opacity: 1; transform: none; }
  .nav.open .links a:nth-child(1) { transition-delay: .12s; }
  .nav.open .links a:nth-child(2) { transition-delay: .18s; }
  .nav.open .links a:nth-child(3) { transition-delay: .24s; }
  .nav.open .links a:nth-child(4) { transition-delay: .30s; }
  .brand { position: relative; z-index: 3; }
  .nav-r { position: relative; z-index: 3; }
}

/* --- buttons ------------------------------------------------------------ */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: .7em; isolation: isolate;
  padding: .95em 1.15em; font-size: 12.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; white-space: nowrap;
  color: var(--fg);
  transform: translate(var(--tx, 0px), var(--ty, 0px));
  transition: color .2s .08s, transform .35s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; border: 1px solid currentColor; opacity: .45; transition: opacity .2s; }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fg); transform: scaleX(0); transform-origin: 0 50%; transition: transform .38s steps(10); }
.btn i { color: var(--acc); transition: transform .35s var(--ease), color .2s .08s; }
.btn:hover, .btn:focus-visible { color: #000; }
.btn:hover::after, .btn:focus-visible::after { transform: scaleX(1); }
.btn:hover::before { opacity: 1; }
.btn:hover i { color: #000; }
.btn:hover i:first-child { transform: translateX(-5px); }
.btn:hover i:last-child { transform: translateX(5px); }
.btn:active { transform: translate(var(--tx, 0px), var(--ty, 0px)) scale(.97); }
.btn--pri { color: #000; }
.btn--pri::before { border-color: var(--acc); opacity: 1; background: var(--acc); z-index: -2; }
.btn--pri i { color: #000; }
.btn--pri::after { background: var(--fg); }
.btn--sm { padding: .6em .8em; font-size: 11.5px; }
.btn[disabled], .btn.off { pointer-events: none; opacity: .35; }

.chip { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); border: 1px dashed var(--mute); transition: color .15s, border-color .15s, background .15s, transform .25s var(--ease); user-select: none; }
.chip::before { content: "○"; font-size: 10px; }
.chip:hover { color: var(--fg); border-color: var(--fg); transform: translateY(-2px); }
.chip.on, .chip:has(input:checked) { color: #000; background: var(--acc); border: 1px solid var(--acc); }
.chip.on::before, .chip:has(input:checked)::before { content: "●"; }
.chip input { position: absolute; opacity: 0; inset: 0; }

/* --- ASCII boxes (dashed border that "marches" on hover) ------ */
.box {
  --bc: var(--mute);
  position: relative;
  background:
    linear-gradient(90deg, var(--bc) 50%, transparent 0) 0 0 / 8px 1px repeat-x,
    linear-gradient(90deg, var(--bc) 50%, transparent 0) 0 100% / 8px 1px repeat-x,
    linear-gradient(0deg, var(--bc) 50%, transparent 0) 0 0 / 1px 8px repeat-y,
    linear-gradient(0deg, var(--bc) 50%, transparent 0) 100% 0 / 1px 8px repeat-y,
    var(--panel);
}
.box.hot:hover, .box.hot:focus-visible { --bc: var(--acc); animation: march .45s linear infinite; }
@keyframes march { to { background-position: 8px 0, -8px 100%, 0 -8px, 100% 8px, 0 0; } }
.k { position: absolute; width: 10px; height: 10px; font-size: 13px; line-height: 10px; text-align: center; color: var(--dim); transition: transform .35s var(--ease), color .2s; pointer-events: none; }
.k::before { content: "+"; }
.k1 { top: -5px; left: -5px; } .k2 { top: -5px; right: -5px; } .k3 { bottom: -5px; left: -5px; } .k4 { bottom: -5px; right: -5px; }
.box.hot:hover .k { color: var(--acc); }
.box.hot:hover .k1 { transform: translate(-5px, -5px) rotate(90deg); }
.box.hot:hover .k2 { transform: translate(5px, -5px) rotate(90deg); }
.box.hot:hover .k3 { transform: translate(-5px, 5px) rotate(90deg); }
.box.hot:hover .k4 { transform: translate(5px, 5px) rotate(90deg); }

/* ASCII noise under the cursor */
.noise { position: absolute; inset: 1px; z-index: 0; overflow: hidden; pointer-events: none; font-size: 11px; line-height: 13px; color: var(--acc); opacity: 0; white-space: pre; transition: opacity .35s;
  -webkit-mask-image: radial-gradient(circle 130px at var(--mx, 50%) var(--my, 50%), #000 0%, transparent 100%);
  mask-image: radial-gradient(circle 130px at var(--mx, 50%) var(--my, 50%), #000 0%, transparent 100%);
}
[data-noise]:hover > .noise { opacity: .32; }
[data-noise] > :where(:not(.noise):not(.k)) { position: relative; z-index: 1; }

/* --- scroll reveal ----------------------------------------------- */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .7s, transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.rv.in { opacity: 1; transform: none; }
.rv-clip { clip-path: inset(0 100% 0 0); transition: clip-path .9s steps(28); transition-delay: calc(var(--i, 0) * 70ms); }
.rv-clip.in { clip-path: inset(0 0 0 0); }

/* --- section typography --------------------------------------------- */
.sec { position: relative; padding: clamp(72px, 11vw, 150px) var(--pad); }
.wrap { max-width: 1280px; margin: 0 auto; }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .16em; color: var(--dim); margin-bottom: 18px; }
.eyebrow span { color: var(--acc); }
.sh { margin-bottom: clamp(32px, 5vw, 64px); max-width: 980px; }
h1, h2, h3 { font-weight: 800; line-height: 1.02; letter-spacing: -.03em; text-transform: uppercase; }
h2 { font-size: clamp(30px, 5.4vw, 76px); }
h3 { font-size: clamp(18px, 2vw, 24px); letter-spacing: -.01em; }
.lead { margin-top: 22px; max-width: 62ch; color: #c9c9c2; font-size: clamp(14px, 1.15vw, 16px); text-shadow: 0 0 14px #000, 0 0 4px #000; }
.w { display: inline-block; padding: 0 .06em; margin: 0 -.06em; transition: color .12s, background .12s, transform .3s var(--ease); }
.w:hover { background: var(--fg); color: #000; transform: translateY(-.06em) skewX(-6deg); }
.w.a { color: var(--acc); }
.w.a:hover { background: var(--acc); color: #000; }
.rule { height: 1.3em; overflow: hidden; white-space: nowrap; color: var(--mute); user-select: none; }
.rule::before { content: "////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////"; }
.note { font-size: 11.5px; color: var(--dim); }
.tag { display: inline-block; padding: 1px 7px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; border: 1px solid var(--mute); color: var(--dim); }
.demo-tag { color: var(--warn); border-color: rgba(255, 176, 32, .4); }
.live-tag { color: var(--acc); border-color: rgba(20, 241, 149, .45); }
.live-tag::before { content: "● "; animation: blink 1.4s steps(2) infinite; }

/* --- hero --------------------------------------------------------------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: 3vw; padding: 100px var(--pad) 120px; }
.hero-l { position: relative; min-width: 0; will-change: transform, opacity; }
.hero-l::before, .sh::before { content: ""; position: absolute; inset: -50px -70px; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 42% 50%, rgba(6, 6, 6, .86) 28%, rgba(6, 6, 6, 0) 72%); }
.sh { position: relative; }
@media (max-width: 900px) { .hero-l::before, .sh::before { inset: -40px -16px; } }
.hero-logo { width: min(100%, 500px); aspect-ratio: 564 / 536; justify-self: center; }
.wm { font-size: clamp(8px, 2.25vw, 34px); line-height: 1.19; font-weight: 400; color: var(--fg); margin: 18px 0 26px; white-space: pre; user-select: none; width: max-content; max-width: 100%; }
.wm span span { display: inline-block; transition: color .12s; }
.ascii .off { opacity: 0; }
.ascii .hot { color: var(--acc); }
.tagline { font-size: clamp(22px, 3.3vw, 46px); }
.tagline .w:nth-child(3) { color: var(--acc); }
.hero-p { margin: 22px 0 34px; max-width: 56ch; color: #c9c9c2; font-size: clamp(14px, 1.15vw, 16px); text-shadow: 0 0 14px #000, 0 0 4px #000; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 34px; margin-top: 44px; font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: .1em; }
.hero-meta b { display: block; font-size: 22px; font-weight: 700; color: var(--fg); letter-spacing: 0; transition: color .2s; }
.hero-meta div:hover b { color: var(--acc); }
.scroll-hint { position: absolute; right: var(--pad); bottom: 102px; font-size: 11px; letter-spacing: .14em; color: var(--dim); text-transform: uppercase; writing-mode: vertical-rl; }
.scroll-hint::after { content: "↓"; display: inline-block; margin-top: 8px; animation: bob 1.4s steps(6) infinite; color: var(--acc); }
@keyframes bob { 50% { transform: translateY(8px); } }

.ticker { position: absolute; left: 0; right: 0; bottom: 38px; overflow: hidden; white-space: nowrap; padding: 11px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); background: rgba(6, 6, 6, .7); font-size: 12px; }
.ticker-in { display: inline-flex; animation: slide 46s linear infinite; }
.ticker:hover .ticker-in { animation-play-state: paused; }
.ticker span { padding: 0 20px; color: var(--dim); transition: color .15s; }
.ticker span b { color: var(--fg); font-weight: 500; }
.ticker span em { font-style: normal; color: var(--acc); }
.ticker span:hover { color: var(--fg); }
.ticker span:hover b { color: var(--acc); }
@keyframes slide { to { transform: translateX(-50%); } }

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 12px; padding-top: 86px; align-content: center; }
  .hero-logo { order: -1; width: min(52vw, 260px); justify-self: start; }
  .wm { font-size: 4.2vw; margin: 6px 0 18px; }
  .scroll-hint { display: none; }
  .ticker { bottom: 0; border-bottom: 0; }
  .hero-meta { gap: 10px 22px; margin-top: 30px; }
}

/* --- steps -------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { padding: 24px; display: flex; flex-direction: column; gap: 12px; min-height: 330px; overflow: hidden; }
.step .n { display: flex; justify-content: space-between; font-size: 11.5px; letter-spacing: .14em; color: var(--dim); text-transform: uppercase; }
.step .n b { color: var(--acc); font-weight: 500; }
.pic { font-size: 14px; line-height: 1.22; height: 7.4em; color: var(--fg); transition: color .2s, transform .5s var(--ease); margin: 6px 0 4px; }
.step:hover .pic { color: var(--acc); transform: translateX(6px); }
.step h3 small { display: block; margin-top: 6px; font-size: 12px; font-weight: 400; letter-spacing: .12em; color: var(--dim); }
.step p { color: #b9b9b2; font-size: 13.5px; }
.step .go { margin-top: auto; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); display: flex; gap: 8px; }
.step .go::before { content: "──"; display: inline-block; color: var(--acc); width: 2ch; overflow: hidden; white-space: nowrap; transition: width .4s steps(8); }
.step:hover .go::before { content: "────────▶"; width: 9ch; }
.step:hover .go { color: var(--fg); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } .step { min-height: 0; } }

.loop { margin-top: 26px; padding: 16px 20px; font-size: clamp(9px, 1.1vw, 13px); line-height: 1.3; color: var(--dim); overflow-x: auto; white-space: pre; }
.loop b { color: var(--fg); font-weight: 500; transition: color .15s; }
.loop:hover b { color: var(--acc); }

/* --- leaderboard -------------------------------------------------------- */
.arena-prev { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 1000px) { .arena-prev { grid-template-columns: 1fr; } }
.lb { padding: 8px 0 4px; }
.lb-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 18px 12px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--dim); border-bottom: 1px dashed var(--line); }
.lb-row, .lb-head { display: grid; grid-template-columns: 38px 40px minmax(110px, 1.1fr) 84px minmax(84px, .7fr) minmax(120px, 1.6fr) 92px 78px; align-items: center; gap: 12px; padding: 9px 18px; }
.lb-head { font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--mute); padding-top: 12px; padding-bottom: 4px; }
.lb-body { position: relative; }
.lb-row { position: relative; border-top: 1px dashed var(--line); transition: background .15s; font-size: 13px; }
.lb-row::before { content: ">"; position: absolute; left: 5px; color: var(--acc); opacity: 0; transform: translateX(-8px); transition: opacity .2s, transform .3s var(--ease); }
.lb-row:hover { background: rgba(239, 239, 233, .055); }
.lb-row:hover::before { opacity: 1; transform: none; }
.lb-row .c-rk { color: var(--dim); font-variant-numeric: tabular-nums; }
.lb-row:nth-child(1) .c-rk { color: var(--acc); }
.c-dl { font-size: 11px; color: var(--mute); }
.c-dl.up { color: var(--acc); } .c-dl.dn { color: #ff5d5d; }
.c-nm { font-weight: 700; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-nm .mine { margin-left: 8px; font-size: 9.5px; font-weight: 500; padding: 0 5px; color: #000; background: var(--acc); vertical-align: 1px; }
.c-ct, .c-by { font-size: 11.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-bar { white-space: nowrap; overflow: hidden; font-size: 11px; letter-spacing: -.02em; color: var(--mute); }
.c-bar b { font-weight: 400; color: var(--fg); transition: color .15s; }
.lb-row:hover .c-bar b { color: var(--acc); }
.c-sc { text-align: right; font-variant-numeric: tabular-nums; position: relative; transition: color .3s; }
.lb-row.bump .c-sc { color: var(--acc); }
.lb-row.bump { animation: bump .6s steps(6); }
@keyframes bump { 0% { background: rgba(20, 241, 149, .22); } 100% { background: transparent; } }
.plus { position: absolute; right: 0; top: -4px; font-size: 10.5px; color: var(--acc); pointer-events: none; animation: plus .9s var(--ease) forwards; }
@keyframes plus { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-18px); } }
.boost { justify-self: end; padding: 3px 7px; font-size: 11px; letter-spacing: .06em; color: var(--dim); border: 1px dashed var(--mute); transition: color .12s, background .12s, border-color .12s, transform .2s var(--ease); white-space: nowrap; }
.boost:hover { color: #000; background: var(--acc); border: 1px solid var(--acc); transform: scale(1.08); }
.boost:active { transform: scale(.92); }
@media (max-width: 1100px) {
  .lb-row, .lb-head { grid-template-columns: 34px 34px minmax(90px, 1fr) minmax(90px, 1.2fr) 86px 70px; }
  .c-ct, .c-by { display: none; }
}
@media (max-width: 640px) {
  .lb-row, .lb-head { grid-template-columns: 30px minmax(80px, 1fr) 80px 64px; gap: 8px; padding-left: 14px; padding-right: 12px; }
  .c-bar, .c-dl { display: none; }
}

.log { padding: 0; font-size: 12px; min-height: 100%; }
.log-body { padding: 12px 18px 16px; min-height: 268px; display: flex; flex-direction: column; gap: 5px; }
.log-line { display: flex; gap: 10px; color: var(--dim); white-space: nowrap; overflow: hidden; animation: logIn .4s var(--ease); transition: color .15s; }
.log-line:hover { color: var(--fg); }
.log-line > span { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.log-line time { color: var(--mute); }
.log-line b { color: var(--fg); font-weight: 500; }
.log-line em { font-style: normal; color: var(--acc); margin-left: auto; padding-left: 8px; }
.log-line.me b, .log-line.me { color: var(--acc); }
@keyframes logIn { from { opacity: 0; transform: translateX(-10px); } }
.caret::after { content: "█"; animation: blink 1s steps(2) infinite; color: var(--acc); }

/* --- distribution ------------------------------------------------------- */
.dist { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 20px; align-items: start; }
@media (max-width: 1000px) { .dist { grid-template-columns: 1fr; } }
.dist-ctl { padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.dist-ctl h3 { font-size: 15px; letter-spacing: .08em; }
.slider { position: relative; font-size: 14px; white-space: nowrap; overflow: hidden; padding: 6px 0; }
.slider input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; }
.slider pre { color: var(--dim); }
.slider pre b { color: var(--acc); font-weight: 700; }
.slider:hover pre { color: var(--fg); }
.dist-out { font-size: 12.5px; color: var(--dim); }
.dist-out b { color: var(--fg); font-size: 26px; font-weight: 800; display: block; letter-spacing: -.02em; }
.dist-rows { padding: 14px 8px; }
.dist-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 62px; gap: 10px; align-items: center; padding: 2px 10px; font-size: 12px; color: var(--dim); transition: color .1s, background .1s, transform .25s var(--ease); }
.dist-row .bar { white-space: nowrap; overflow: hidden; color: var(--fg); letter-spacing: -.02em; }
.dist-row .pc { text-align: right; font-variant-numeric: tabular-nums; }
.dist-row:hover, .dist-row.sel { color: var(--fg); background: rgba(20, 241, 149, .09); transform: translateX(6px); }
.dist-row:hover .bar, .dist-row.sel .bar { color: var(--acc); }

/* --- transparency ------------------------------------------------------ */
.st { padding: 8px 0; }
.st-row { display: grid; grid-template-columns: 74px minmax(120px, 220px) 1fr; gap: 14px; padding: 13px 20px; border-top: 1px dashed var(--line); transition: background .15s, padding-left .3s var(--ease); align-items: baseline; }
.st-row:first-of-type { border-top: 0; }
.st-row:hover { background: rgba(239, 239, 233, .05); padding-left: 30px; }
.st-row .badge { font-weight: 700; white-space: pre; }
.st-row .ok { color: var(--acc); } .st-row .no { color: var(--warn); } .st-row .info { color: var(--dim); }
.st-row b { text-transform: uppercase; letter-spacing: .08em; font-weight: 500; }
.st-row p { color: #b9b9b2; font-size: 13px; }
.st-row .more { display: block; max-height: 0; overflow: hidden; opacity: 0; color: var(--dim); font-size: 12px; transition: max-height .4s var(--ease), opacity .3s, margin .3s; }
.st-row:hover .more { max-height: 6em; opacity: 1; margin-top: 6px; }
@media (max-width: 700px) { .st-row { grid-template-columns: 64px 1fr; } .st-row p { grid-column: 1 / -1; } }

/* --- final CTA ---------------------------------------------------------- */
.final { text-align: center; padding-top: clamp(90px, 14vw, 200px); padding-bottom: clamp(90px, 14vw, 200px); }
.final h2 { font-size: clamp(40px, 9.5vw, 150px); }
.final .cta { justify-content: center; margin-top: 44px; }
.final .lead { margin-left: auto; margin-right: auto; }

/* --- pages -------------------------------------------------------------- */
.page { padding: 130px var(--pad) 90px; }
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 26px; margin-bottom: 44px; }
.page-head h2 { font-size: clamp(40px, 8vw, 116px); }
.page-head .lead { margin-top: 14px; }
.big-cd { text-align: right; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.big-cd .cd { display: block; font-size: clamp(20px, 2.6vw, 34px); color: var(--fg); letter-spacing: 0; text-transform: none; font-weight: 700; margin-top: 2px; }
.big-cd .cd b { font-weight: 700; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 20px; }
.stat { padding: 18px 20px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--dim); overflow: hidden; }
.stat b { display: block; font-size: clamp(22px, 2.6vw, 34px); font-weight: 800; color: var(--fg); letter-spacing: -.02em; transition: color .2s, transform .35s var(--ease); }
.stat:hover b { color: var(--acc); transform: translateX(6px); }
@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, 1fr); gap: 14px; } .big-cd { text-align: left; } }
.block { margin-top: 20px; }
.block-t { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin: 54px 0 16px; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--dim); }
.block-t b { color: var(--fg); font-weight: 500; }
.block-t b::before { content: "// "; color: var(--acc); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }

/* duel */
.duel { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; padding: 26px; }
.duel-side { display: flex; align-items: center; gap: 18px; padding: 14px; transition: background .15s, transform .35s var(--ease); min-width: 0; text-align: left; width: 100%; }
.duel-side.r { flex-direction: row-reverse; text-align: right; }
.duel-side:hover { background: rgba(239, 239, 233, .05); transform: translateX(-6px); }
.duel-side.r:hover { transform: translateX(6px); }
.duel-side:hover .idn { color: var(--acc); }
.duel-side .nm { font-size: clamp(16px, 2vw, 24px); font-weight: 800; letter-spacing: -.01em; }
.duel-side .pc { font-size: 12px; color: var(--dim); }
.duel-side .pc b { color: var(--acc); font-size: 18px; }
.duel-side .vote { display: inline-block; margin-top: 6px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.duel-side:hover .vote { color: var(--acc); }
.vs { font-size: clamp(5px, .8vw, 10px); line-height: normal; color: var(--dim); text-align: center; user-select: none; }
.duel:hover .vs { color: var(--fg); animation: shake .35s steps(3) infinite; }
@keyframes shake { 33% { transform: translate(1px, -1px); } 66% { transform: translate(-1px, 1px); } }
.duel-bar { grid-column: 1 / -1; font-size: 12px; white-space: nowrap; overflow: hidden; color: var(--mute); text-align: center; letter-spacing: -.02em; }
.duel-bar b { color: var(--acc); font-weight: 400; } .duel-bar u { text-decoration: none; color: var(--fg); }
.duel-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 11.5px; color: var(--dim); text-transform: uppercase; letter-spacing: .1em; }
@media (max-width: 700px) { .duel { grid-template-columns: 1fr; padding: 16px; } .duel-side.r { flex-direction: row; text-align: left; } .vs { font-size: 6px; } }

.idn { font-size: 12px; line-height: 1.2; color: var(--fg); transition: color .2s; white-space: pre; flex: none; user-select: none; }

.bracket { padding: 22px; overflow-x: auto; font-size: 12.5px; line-height: 1.35; color: var(--mute); white-space: pre; }
.bracket span { color: var(--fg); transition: color .12s, background .12s; }
.bracket.hov span { color: var(--mute); }
.bracket.hov span.hl { color: #000; background: var(--acc); }
.bracket .q { color: var(--warn); }

/* --- projects ----------------------------------------------------------- */
.tools { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 24px; }
.search { display: flex; align-items: center; gap: 8px; padding: 9px 14px; min-width: min(320px, 100%); color: var(--dim); }
.search input { background: none; border: 0; outline: 0; flex: 1; min-width: 0; caret-color: var(--acc); }
.search input::placeholder { color: var(--mute); }
.search:focus-within { --bc: var(--acc); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.card { padding: 22px; display: flex; flex-direction: column; gap: 12px; min-height: 280px; text-align: left; overflow: hidden; transition: transform .45s var(--ease); width: 100%; }
.card:hover { transform: translateY(-6px); }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.card .rk { font-size: 30px; font-weight: 800; letter-spacing: -.04em; color: var(--mute); line-height: 1; transition: color .2s; }
.card:hover .rk { color: var(--fg); }
.card:hover .idn { color: var(--acc); }
.card-h { display: flex; align-items: baseline; gap: 10px; }
.card-h b { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.tk { font-size: 11.5px; color: var(--acc); }
.card p { color: #b9b9b2; font-size: 13px; flex: 1; }
.card-f { display: flex; justify-content: space-between; gap: 10px; font-size: 11.5px; color: var(--dim); border-top: 1px dashed var(--line); padding-top: 10px; }
.card .open { position: absolute; right: 18px; bottom: 50px; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--acc); opacity: 0; transform: translateX(-12px); transition: opacity .2s, transform .35s var(--ease); z-index: 2; }
.card:hover .open { opacity: 1; transform: none; }
.card.gone { display: none; }
.empty { grid-column: 1 / -1; padding: 60px 20px; text-align: center; color: var(--dim); }

/* --- modal -------------------------------------------------------------- */
#modal { position: fixed; inset: 0; z-index: 80; display: none; place-items: center; padding: 20px; background: rgba(0, 0, 0, .74); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
#modal.open { display: grid; animation: fadeIn .25s; }
@keyframes fadeIn { from { opacity: 0; } }
.modal-card { width: min(700px, 100%); max-height: 88vh; overflow: auto; padding: 28px; animation: pop .5s steps(12) both; }
.modal-card.out { animation: popOut .28s steps(8) both; }
@keyframes pop { from { clip-path: inset(49% 49% 49% 49%); } to { clip-path: inset(0 0 0 0); } }
@keyframes popOut { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(50% 0 50% 0); } }
.modal-top { display: flex; gap: 22px; align-items: center; }
.modal-top .idn { font-size: 20px; color: var(--acc); }
.modal-top h3 { font-size: clamp(26px, 4vw, 40px); }
.modal-top .meta { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12px; color: var(--dim); }
.modal-card > p { margin: 22px 0; color: #c9c9c2; font-size: 14.5px; }
.modal-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.modal-stats div { padding: 14px 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--dim); }
.modal-stats b { display: block; font-size: 22px; color: var(--fg); letter-spacing: -.02em; }
.spark { margin: 20px 0 6px; font-size: 22px; letter-spacing: .1em; color: var(--acc); white-space: nowrap; overflow: hidden; }
.modal-act { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.x { position: absolute; top: 12px; right: 14px; font-size: 13px; color: var(--dim); padding: 4px; transition: color .15s, transform .3s var(--ease); }
.x:hover { color: var(--acc); transform: rotate(90deg); }

/* --- launch ------------------------------------------------------------- */
.launch-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 1000px) { .launch-grid { grid-template-columns: 1fr; } }
.term { padding: 0 0 22px; }
.term-bar { display: flex; justify-content: space-between; gap: 12px; padding: 11px 18px; font-size: 11.5px; color: var(--dim); border-bottom: 1px dashed var(--line); letter-spacing: .06em; }
.term-bar .dots { color: var(--mute); letter-spacing: .3em; transition: color .2s; }
.term:hover .dots { color: var(--acc); }
.fld { display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: start; padding: 13px 18px; border-bottom: 1px dashed var(--line); position: relative; transition: background .15s; }
.fld:hover, .fld:focus-within { background: rgba(239, 239, 233, .04); }
.fld .pr { color: var(--dim); white-space: nowrap; transition: color .15s; }
.fld .pr::before { content: "> "; color: var(--mute); transition: color .15s; }
.fld:focus-within .pr { color: var(--fg); }
.fld:focus-within .pr::before { color: var(--acc); }
.fld input, .fld textarea { width: 100%; background: none; border: 0; outline: 0; caret-color: var(--acc); resize: none; text-transform: none; }
.fld input::placeholder, .fld textarea::placeholder { color: var(--mute); }
.fld .cnt { position: absolute; right: 16px; bottom: 6px; font-size: 10.5px; font-style: normal; color: var(--mute); }
.fld.err { background: rgba(255, 93, 93, .08); animation: shake .3s steps(3) 2; }
.fld.err .pr { color: #ff5d5d; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.term-out { padding: 14px 18px 4px; font-size: 12.5px; color: var(--dim); min-height: 30px; white-space: pre-wrap; }
.term-out .ok { color: var(--acc); } .term-out .bad { color: #ff5d5d; }
.term-act { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 12px 18px 0; }
@media (max-width: 560px) { .fld { grid-template-columns: 1fr; gap: 4px; } }
.ticket-wrap { position: sticky; top: 96px; }
.ticket { font-size: clamp(9px, 1.42vw, 16px); line-height: normal; color: var(--fg); white-space: pre; width: max-content; max-width: 100%; overflow: hidden; transition: transform .6s var(--ease), filter .3s; transform-origin: 50% 50%; user-select: none; }
.ticket-wrap:hover .ticket { transform: rotate(-1.4deg) scale(1.02); }
.ticket.stamp { animation: stamp .7s var(--ease); }
@keyframes stamp { 0% { transform: scale(1.12) rotate(2deg); filter: brightness(2); } 100% { transform: none; filter: none; } }
.ticket-wrap .note { margin-top: 14px; max-width: 46ch; }
@media (max-width: 1000px) { .ticket-wrap { position: static; } .ticket { font-size: clamp(7px, 3.3vw, 15px); } }

/* --- rules -------------------------------------------------------------- */
.cols { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: start; }
@media (max-width: 1000px) { .cols { grid-template-columns: 1fr; } }
.rules { list-style: none; counter-reset: r; }
.rules li { counter-increment: r; position: relative; padding: 20px 20px 20px 74px; border-top: 1px dashed var(--line); transition: background .15s, padding-left .35s var(--ease); }
.rules li::before { content: "0" counter(r); position: absolute; left: 16px; top: 16px; font-size: 26px; font-weight: 800; color: var(--mute); letter-spacing: -.04em; transition: color .15s, transform .35s var(--ease); }
.rules li:hover { background: rgba(239, 239, 233, .045); padding-left: 86px; }
.rules li:hover::before { color: var(--acc); transform: scale(1.15); }
.rules li b { display: block; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.rules li p { color: #b9b9b2; font-size: 13.5px; }
.faq details { border-top: 1px dashed var(--line); }
.faq summary { list-style: none; display: flex; gap: 14px; padding: 16px 12px; font-weight: 500; transition: background .15s, color .15s, padding-left .3s var(--ease); cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "[+]"; color: var(--acc); flex: none; }
.faq details[open] summary::before { content: "[-]"; }
.faq summary:hover { background: rgba(239, 239, 233, .05); padding-left: 20px; }
.faq details[open] summary { color: var(--acc); }
.faq .a { padding: 0 12px 18px 52px; color: #b9b9b2; font-size: 13.5px; animation: logIn .4s var(--ease); }
.manifest { padding: 26px; font-size: clamp(15px, 1.7vw, 22px); line-height: 1.45; font-weight: 500; margin-bottom: 40px; }
.manifest em { font-style: normal; color: var(--acc); }

/* 404 */
.nf { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 120px var(--pad); }
.nf pre { font-size: clamp(7px, 1.8vw, 20px); line-height: normal; color: var(--acc); margin-bottom: 26px; }

/* --- footer ------------------------------------------------------------- */
.foot { border-top: 1px dashed var(--line); background: rgba(6, 6, 6, .86); padding-bottom: 46px; }
.mega { overflow: hidden; white-space: nowrap; border-bottom: 1px dashed var(--line); padding: 18px 0 10px; }
.mega-in { display: inline-flex; animation: slide 38s linear infinite; }
.mega:hover .mega-in { animation-play-state: paused; }
.mega span { font-size: clamp(54px, 11vw, 170px); font-weight: 800; line-height: 1; letter-spacing: -.04em; padding: 0 .16em; color: transparent; -webkit-text-stroke: 1px var(--mute); transition: color .2s, -webkit-text-stroke-color .2s; text-transform: uppercase; }
.mega span:hover { color: var(--acc); -webkit-text-stroke-color: var(--acc); }
.mega span.sep { -webkit-text-stroke: 0; color: var(--mute); font-weight: 300; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.5fr; gap: 34px; padding: 48px var(--pad) 34px; max-width: 1400px; margin: 0 auto; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-col h4 { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .14em; color: var(--dim); margin-bottom: 14px; }
.foot-col a, .foot-col .lk { display: flex; gap: 8px; padding: 3px 0; font-size: 13px; color: var(--fg); transition: color .15s, transform .3s var(--ease); width: max-content; max-width: 100%; }
.foot-col a::before { content: "→"; color: var(--mute); transition: color .15s; }
.foot-col a:hover { color: var(--acc); transform: translateX(6px); }
.foot-col a:hover::before { color: var(--acc); }
.foot-col .lk { color: var(--mute); }
.foot-col .lk::before { content: "·"; }
.foot-col p { font-size: 12.5px; color: var(--dim); margin-bottom: 10px; max-width: 44ch; }
.foot-warn p b { color: var(--warn); font-weight: 500; }
.foot-brand { display: flex; align-items: center; gap: 12px; font-size: 20px; letter-spacing: .12em; margin-bottom: 14px; width: max-content; }
.foot-brand .mark { width: 34px; height: 32px; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 16px var(--pad) 0; max-width: 1400px; margin: 0 auto; font-size: 11.5px; color: var(--dim); border-top: 1px dashed var(--line); }
.top { text-transform: uppercase; letter-spacing: .1em; font-size: 11.5px; color: var(--dim); transition: color .15s; }
.top:hover { color: var(--acc); }

/* --- page transition + boot ------------------------------------------ */
#wipe { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 90; display: none; }
#wipe-label { position: fixed; inset: 0; z-index: 91; display: grid; place-items: center; pointer-events: none; font-size: clamp(16px, 3vw, 34px); font-weight: 700; letter-spacing: .04em; color: var(--fg); opacity: 0; }
#wipe-label.on { opacity: 1; }
#wipe-label b { color: var(--acc); font-weight: 700; }
#boot { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; background: var(--bg); }
#boot pre { font-size: clamp(10px, 1.4vw, 14px); line-height: 1.7; color: var(--dim); min-width: min(44ch, 90vw); }
#boot pre b { color: var(--fg); font-weight: 500; } #boot pre em { font-style: normal; color: var(--acc); }
#boot.done { display: none; }

/* particles */
.pt { position: fixed; z-index: 120; pointer-events: none; font-size: 13px; font-weight: 700; color: var(--acc); will-change: transform, opacity; }

/* --- solana: contract address, wallet, token ---------------------------- */
.ca { display: flex; align-items: center; gap: 14px; padding: 14px 16px; font-size: 13px; width: fit-content; max-width: 100%; min-width: 0; transition: transform .35s var(--ease); }
.ca[data-copy]:hover { transform: translateX(6px); }
.ca-l { flex: none; padding: 0 7px; font-size: 11px; font-weight: 700; letter-spacing: .1em; color: #000; background: var(--acc); }
.ca-v { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: .02em; }
.ca:not([data-copy]) .ca-v { color: var(--dim); }
.ca-c { flex: none; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--acc); }
.ca-c.warn { color: var(--warn); }
.ca--sm { margin-top: 24px; padding: 9px 12px; font-size: 12px; }
.ca--lg { padding: 20px 22px; font-size: clamp(12px, 1.5vw, 18px); }
[data-copy] { cursor: pointer; }

.toast { position: fixed; left: 50%; bottom: 54px; z-index: 150; transform: translate(-50%, 20px); padding: 10px 16px; font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; color: #000; background: var(--acc); opacity: 0; pointer-events: none; transition: opacity .2s, transform .35s var(--ease); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: #ff5d5d; }

.wl { display: grid; gap: 10px; margin: 20px 0 8px; }
.wl-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; padding: 15px 16px; text-align: left; border: 1px dashed var(--mute); transition: background .15s, border-color .15s, padding-left .3s var(--ease); }
.wl-row b { font-size: 16px; letter-spacing: .02em; }
.wl-row span { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); white-space: nowrap; }
.wl-row.det span { color: var(--acc); }
.wl-row:hover { border: 1px solid var(--acc); background: rgba(20, 241, 149, .08); padding-left: 26px; }
.wl-row:hover span { color: var(--acc); }
.wl-row.busy { opacity: .5; pointer-events: none; }
.addr { margin: 16px 0; padding: 12px 14px; font-size: 13px; word-break: break-all; border: 1px dashed var(--mute); transition: border-color .15s, color .15s; }
.addr:hover { border-color: var(--acc); color: var(--acc); }
.modal-card .eyebrow { margin-bottom: 10px; }
.modal-card h3 { font-size: clamp(22px, 3.4vw, 34px); }
.modal-stats b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.stats.tok { grid-template-columns: repeat(3, 1fr); }
.stats.tok .stat b { text-transform: none; min-height: 1.3em; }
.stat b.neg { color: #ff5d5d; }
.stat b.acc { color: var(--acc); }
@media (max-width: 800px) { .stats.tok { grid-template-columns: repeat(2, 1fr); } }
.wal { padding: 22px; }
.wal-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 34px; }
.wal-a { font-size: 16px; font-weight: 700; transition: color .15s; }
.wal-a:hover { color: var(--acc); }
.wal-n { font-size: 11.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--dim); }
.wal-n b { display: block; font-size: 24px; font-weight: 800; color: var(--fg); letter-spacing: -.02em; text-transform: none; }
.lnk { font-size: 11.5px; color: var(--dim); text-decoration: underline dashed; text-underline-offset: 4px; transition: color .15s; text-align: left; }
.lnk:hover { color: var(--acc); }
span.btn.off { cursor: default; }

/* --- live arena states -------------------------------------------------- */
.lb-empty { padding: 34px 18px; text-align: center; color: var(--dim); font-size: 13px; border-top: 1px dashed var(--line); }
.c-nm .demo { margin-left: 8px; font-size: 9.5px; font-weight: 500; padding: 0 5px; color: var(--warn); border: 1px solid rgba(255, 176, 32, .4); vertical-align: 1px; }
.boost.done { color: var(--mute); border-style: dotted; }
.boost.done:hover { color: var(--dim); background: none; border: 1px dotted var(--mute); transform: none; }
.boost.busy { opacity: .5; pointer-events: none; }
.duel[hidden], .duel-none[hidden] { display: none; }
.duel-none { padding: 34px 26px; text-align: center; color: var(--dim); }
.duel-side.picked { background: rgba(20, 241, 149, .08); }
.duel-side.picked .vote { color: var(--acc); }
.bracket.wait { color: var(--dim); white-space: normal; text-align: center; padding: 34px 22px; }
.m-links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: -8px 0 18px; font-size: 12px; color: var(--dim); }
.m-links a { transition: color .15s; }
.m-links a:hover { color: var(--acc); }
button.btn.off { pointer-events: none; opacity: .4; }
.term-sub { padding: 12px 18px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--dim); border-bottom: 1px dashed var(--line); }
.term-sub::before { content: "// "; color: var(--acc); }
.mine-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 30px; padding: 20px 18px; border-bottom: 1px dashed var(--line); }
.mine-top h3 { font-size: clamp(22px, 2.6vw, 32px); }
.mine-top h3 .tk { font-size: 13px; font-weight: 400; letter-spacing: 0; }
.mine-n { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--dim); }
.mine-n b { display: block; font-size: 24px; font-weight: 800; color: var(--fg); letter-spacing: -.02em; }
.pts { padding: 6px 0; }
.pt-row { display: grid; grid-template-columns: 90px minmax(140px, 260px) 1fr; gap: 14px; align-items: baseline; padding: 13px 20px; border-top: 1px dashed var(--line); transition: background .15s, padding-left .3s var(--ease); }
.pt-row:first-child { border-top: 0; }
.pt-row:hover { background: rgba(239, 239, 233, .05); padding-left: 30px; }
.pt-row b { font-size: 22px; font-weight: 800; color: var(--acc); letter-spacing: -.02em; }
.pt-row span { text-transform: uppercase; letter-spacing: .08em; font-weight: 500; }
.pt-row em { font-style: normal; color: var(--dim); font-size: 13px; }
@media (max-width: 700px) { .pt-row { grid-template-columns: 70px 1fr; } .pt-row em { grid-column: 1 / -1; } }

.mine-tok { padding: 16px 18px; border-bottom: 1px dashed var(--line); }
.mine-tok .ca { max-width: 100%; width: 100%; }

/* --- reduced motion ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .rv, .rv-clip { opacity: 1; transform: none; clip-path: none; }
  .ticker-in, .mega-in { animation: none !important; }
}
