/* Subathon. Flat ink surfaces, one loud violet block, lime for money and subs, red only for live. */
:root {
  --bg: #0d0a12; --panel: #15111d; --panel-2: #1d1729; --line: #2e2640; --line-2: #42375a;
  --ink: #f4efe7; --mute: #aea5be; --violet: #8f5bff; --violet-deep: #5a2fd0; --violet-ink: #160b33;
  --lime: #c6f24b; --lime-edge: #7c9a22; --live: #ff4d5e; --warn: #ffb84d;
  --display: 'Bricolage Grotesque', 'Trebuchet MS', sans-serif; --body: 'Onest', 'Segoe UI', sans-serif;
  --r: 14px; --rail: 68px;
}
* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.04; margin: 0; }
p { margin: 0; } a { color: inherit; } button, input, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
.mute { color: var(--mute); } .lime { color: var(--lime); } .num { font-family: var(--display); font-weight: 700; font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }

/* ---- shell ---- */
.rail { position: fixed; inset: 0 auto 0 0; width: var(--rail); background: var(--panel); border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; padding: 14px 0; gap: 6px; z-index: 30; }
.rail .mark { width: 42px; height: 42px; border-radius: 12px; overflow: hidden; display: block; margin-bottom: 14px; border: 2px solid #000; box-shadow: 0 3px 0 var(--violet-deep); flex: none; }
.rail .mark img { width: 100%; height: 100%; object-fit: cover; }
.rail a { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: var(--mute); text-decoration: none; position: relative; }
.rail a:hover { color: var(--ink); background: var(--panel-2); }
.rail a.on { color: var(--violet-ink); background: var(--lime); }
.rail a span { position: absolute; left: 58px; background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 600; padding: 5px 10px; border-radius: 8px; white-space: nowrap; opacity: 0; pointer-events: none; transform: translateX(-4px); transition: opacity .12s, transform .12s; }
.rail a:hover span { opacity: 1; transform: none; }
.rail svg, .btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.top { position: sticky; top: 0; z-index: 20; margin-left: var(--rail); background: var(--bg); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; padding: 12px 28px; }
.top .word { font: 800 22px/1 var(--display); letter-spacing: -0.03em; text-decoration: none; margin-right: 8px; display: inline-flex; align-items: center; gap: 9px; }
.top .word img { width: 30px; height: 30px; border-radius: 9px; border: 2px solid #000; object-fit: cover; flex: none; }
.search { flex: 1; max-width: 460px; position: relative; }
.search input { width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; outline: none; }
.search input:focus { border-color: var(--violet); }
.search input::placeholder { color: var(--mute); }
.top .spacer { flex: 1; }
/* ---- the platform coin's strip, under the top bar on every page ---- */
#tokenStrip { margin-left: var(--rail); background: var(--lime); color: #10140a; border-bottom: 2px solid #000; }
.strip-in { display: flex; align-items: center; gap: 12px; padding: 11px 28px; max-width: 1240px; min-width: 0; }
.strip-in b, .strip-in span:not(.go) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.strip-in img { width: 30px; height: 30px; border-radius: 8px; border: 2px solid #000; object-fit: cover; flex: none; }
.strip-in b { font-family: var(--display); font-size: 17px; letter-spacing: -0.01em; }
.strip-in span { font-size: 15px; font-weight: 500; }
.strip-in .ca { background: rgba(0, 0, 0, .12); border-color: rgba(0, 0, 0, .35); color: #10140a; min-width: 0; flex: 0 1 300px; }
.strip-in .go { flex: none; }
/* when the bar gets tight the market cap goes first: the claim and the address are the point of the strip */
@media (max-width: 1080px) { .strip-in > span:not(.go) { display: none; } }
.strip-in .ca:hover { border-color: #000; }
.strip-in .go { margin-left: auto; }
.strip-in .btn.ink { box-shadow: 0 3px 0 #000; }
@media (min-width: 1400px) { .strip-in { margin-left: calc((100vw - var(--rail) - 1240px) / 2); } }
/* on a phone the strip keeps the two things that matter, the claim and the address, in two tight rows */
@media (max-width: 700px) {
  #tokenStrip { margin-left: 0; }
  .strip-in { padding: 10px 14px; gap: 8px 10px; flex-wrap: wrap; }
  .strip-in img { width: 26px; height: 26px; }
  /* the claim takes the rest of its row beside the image, which pushes the address and the button to the next one */
  .strip-in b { white-space: normal; flex: 1 1 calc(100% - 46px); min-width: 0; font-size: 15px; line-height: 1.25; }
  .strip-in > span:not(.go) { display: none; }
  .strip-in .ca { order: 3; flex: 1 1 140px; padding: 5px 10px; }
  .strip-in .go { order: 4; }
}

main { margin-left: var(--rail); padding: 28px; max-width: 1240px; }
@media (min-width: 1400px) { main { margin-left: calc(var(--rail) + (100vw - var(--rail) - 1240px) / 2); } }

/* ---- buttons: one system. Ink outline, solid lower edge that sinks on press ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 2px solid #000; border-radius: 12px; padding: 10px 18px; font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none; background: var(--panel-2); color: var(--ink); box-shadow: 0 3px 0 #000; transition: transform .06s, box-shadow .06s; white-space: nowrap; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(3px); box-shadow: 0 0 0 #000; }
.btn.lime { background: var(--lime); color: #10140a; box-shadow: 0 3px 0 var(--lime-edge); }
.btn.lime:active { box-shadow: 0 0 0 var(--lime-edge); }
.btn.violet { background: var(--violet); box-shadow: 0 3px 0 var(--violet-deep); }
.btn.ink { background: var(--violet-ink); color: var(--ink); box-shadow: 0 3px 0 #000; }
.btn.big { padding: 14px 24px; font-size: 17px; border-radius: 14px; }
.btn.small { padding: 6px 12px; font-size: 14px; border-radius: 10px; box-shadow: 0 2px 0 #000; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; filter: none; }
.btn.wide { width: 100%; }

.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 3px 10px; font-size: 13px; font-weight: 700; background: var(--panel-2); border: 1px solid var(--line-2); color: var(--ink); }
.pill.live { background: var(--live); border-color: var(--live); color: #fff; }
.pill.lime { background: var(--lime); border-color: var(--lime); color: #10140a; }
.pill.warn { background: transparent; border-color: var(--warn); color: var(--warn); }

/* ---- hero ---- */
.hero { background: var(--violet); color: var(--ink); border: 2px solid #000; border-radius: 22px; box-shadow: 0 6px 0 var(--violet-deep); padding: 44px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; overflow: hidden; }
.hero h1 { font-size: clamp(40px, 5.4vw, 74px); }
.hero h1 em { font-style: normal; background: var(--lime); color: #10140a; padding: 0 .16em; border-radius: .16em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero p.lede { font-size: 19px; max-width: 34em; margin: 20px 0 28px; color: #efe6ff; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.rise { animation: rise .5s cubic-bezier(.2, .8, .2, 1) both; }
.rise:nth-child(2) { animation-delay: .06s; } .rise:nth-child(3) { animation-delay: .12s; } .rise:nth-child(4) { animation-delay: .18s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

.calc { background: var(--violet-ink); border: 2px solid #000; border-radius: 18px; padding: 24px; }
.calc h3 { font-size: 20px; margin-bottom: 4px; }
.calc .out { display: flex; align-items: baseline; gap: 10px; margin: 18px 0 2px; }
.calc .out b { font: 800 clamp(48px, 6vw, 76px)/1 var(--display); color: var(--lime); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.calc .out span { font-size: 18px; font-weight: 600; }
.calc .row { display: flex; justify-content: space-between; font-size: 15px; margin-top: 14px; }
.calc input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 12px; border-radius: 999px; background: #2a1a5c; border: 2px solid #000; margin: 10px 0 2px; cursor: pointer; }
.calc input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 9px; background: var(--lime); border: 2px solid #000; box-shadow: 0 3px 0 var(--lime-edge); }
.calc input[type=range]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 9px; background: var(--lime); border: 2px solid #000; }
.calc .fine { font-size: 14px; color: #cdbdf5; margin-top: 14px; }

/* ---- stat strip ---- */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 18px 0; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.stat b { display: block; font: 800 34px/1.1 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat span { color: var(--mute); font-size: 15px; }

/* ---- bento ---- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; min-width: 0; }
.panel > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.panel > header h2 { font-size: 24px; }
.panel > header a { font-weight: 700; font-size: 15px; color: var(--lime); text-decoration: none; }
.panel > header a:hover { text-decoration: underline; }
.span-4 { grid-column: span 4; } .span-3 { grid-column: span 3; } .span-2 { grid-column: span 2; } .span-6 { grid-column: span 6; }
.empty { border: 2px dashed var(--line-2); border-radius: var(--r); padding: 28px 20px; text-align: center; color: var(--mute); flex: 1; display: grid; place-content: center; gap: 12px; justify-items: center; }
.empty strong { color: var(--ink); font: 700 19px var(--display); }

/* ---- coin cards ---- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.coin { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: grid; gap: 12px; text-decoration: none; transition: border-color .12s, transform .12s; }
.coin:hover { border-color: var(--violet); transform: translateY(-2px); }
.coin .head { display: flex; gap: 12px; align-items: center; min-width: 0; }
.coin .art { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; border: 2px solid #000; background: var(--panel-2); flex: none; }
.coin .head div { min-width: 0; }
.coin h3 { font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coin .tick { color: var(--mute); font-weight: 600; font-size: 14px; }
.streamer { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; min-width: 0; }
.streamer img { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--violet); flex: none; }
.streamer span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.streamer .pill { margin-left: auto; flex: none; }
.coin .nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.coin .nums b { display: block; font: 700 18px var(--display); font-variant-numeric: tabular-nums; }
.coin .nums span { font-size: 13px; color: var(--mute); }
.meter { height: 10px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line-2); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--lime); border-radius: 999px; transition: width .6s cubic-bezier(.2, .8, .2, 1); }

/* ---- lists ---- */
.rows { display: grid; gap: 8px; }
.rowi { display: flex; align-items: center; gap: 12px; background: var(--panel-2); border-radius: 12px; padding: 10px 12px; text-decoration: none; min-width: 0; }
a.rowi:hover { outline: 1px solid var(--violet); }
.rowi img { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; flex: none; border: 2px solid #000; }
.rowi img.round { border-radius: 50%; border-color: var(--violet); }
.rowi .grow { flex: 1; min-width: 0; }
.rowi .grow b, .rowi .grow span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rowi .grow span { font-size: 14px; color: var(--mute); }
.rowi .amt { font: 800 20px var(--display); color: var(--lime); white-space: nowrap; }
.rowi .when { font-size: 14px; color: var(--mute); white-space: nowrap; }

/* ---- page heads, segmented control ---- */
.pagehead { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.pagehead h1 { font-size: clamp(34px, 4vw, 52px); }
.pagehead p { color: var(--mute); margin-top: 8px; max-width: 40em; }
.seg { display: inline-flex; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 7px 14px; border-radius: 9px; font-weight: 700; font-size: 15px; cursor: pointer; color: var(--mute); }
.seg button.on { background: var(--lime); color: #10140a; }

/* ---- launch ---- */
.launch { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; align-items: start; }
.form { display: grid; gap: 16px; }
.field label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.field label small { font-weight: 400; color: var(--mute); font-size: 14px; margin-left: 6px; }
.field input, .field textarea { width: 100%; background: var(--bg); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; outline: none; }
.field input:focus, .field textarea:focus { border-color: var(--violet); }
.field textarea { min-height: 84px; resize: vertical; }
.field input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.field input[type=number]::-webkit-inner-spin-button, .field input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.drop { border: 2px dashed var(--line-2); border-radius: 14px; padding: 16px; display: flex; align-items: center; gap: 14px; cursor: pointer; }
.drop:hover, .drop.over { border-color: var(--lime); }
.drop img { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; border: 2px solid #000; }
.drop .ph { width: 72px; height: 72px; border-radius: 14px; background: var(--panel-2); display: grid; place-items: center; color: var(--mute); flex: none; }
.chanbox { display: flex; align-items: center; gap: 12px; background: var(--panel-2); border-radius: 12px; padding: 10px 12px; margin-top: 8px; }
.chanbox img { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--violet); }
.chanbox.bad { color: var(--warn); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.chips button { border: 1px solid var(--line-2); background: var(--panel-2); border-radius: 999px; padding: 5px 12px; font-weight: 700; font-size: 14px; cursor: pointer; }
.chips button.on { background: var(--lime); color: #10140a; border-color: var(--lime); }
.ca { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 7px 12px; font: 600 14px ui-monospace, Consolas, monospace; cursor: pointer; color: var(--ink); }
.ca span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca:hover { border-color: var(--lime); }
.steps { display: grid; gap: 10px; counter-reset: s; }
.steps li { list-style: none; display: flex; gap: 12px; align-items: center; color: var(--mute); font-weight: 600; }
.steps li::before { counter-increment: s; content: counter(s); width: 30px; height: 30px; border-radius: 9px; background: var(--panel-2); border: 2px solid var(--line-2); display: grid; place-items: center; font: 800 15px var(--display); flex: none; }
.steps li.now { color: var(--ink); } .steps li.now::before { border-color: var(--lime); color: var(--lime); animation: pulse 1s infinite alternate; }
.steps li.done { color: var(--ink); } .steps li.done::before { background: var(--lime); border-color: #000; color: #10140a; }
.steps li.fail { color: var(--warn); } .steps li.fail::before { border-color: var(--warn); color: var(--warn); }
@keyframes pulse { to { transform: scale(1.08); } }
.error { color: var(--warn); font-weight: 600; }
ol.steps { margin: 0; padding: 0; }

/* ---- coin page ---- */
.coinpage { display: grid; grid-template-columns: 1.35fr .65fr; gap: 18px; align-items: start; }
.cointitle { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; min-width: 0; }
.cointitle img { width: 84px; height: 84px; border-radius: 18px; border: 2px solid #000; object-fit: cover; flex: none; }
.cointitle h1 { font-size: clamp(30px, 4vw, 46px); overflow-wrap: anywhere; }
.stage { aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; border: 2px solid #000; background: #000; }
.stage iframe { width: 100%; height: 100%; border: 0; display: block; }
.offline { aspect-ratio: 16 / 9; border-radius: 16px; border: 1px solid var(--line); background: var(--panel-2); display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; padding: 20px; }
.offline img { width: 96px; height: 96px; border-radius: 50%; border: 3px solid var(--violet); }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kv div { background: var(--panel-2); border-radius: 12px; padding: 12px 14px; min-width: 0; }
.kv b { display: block; font: 800 24px var(--display); font-variant-numeric: tabular-nums; }
.kv span { font-size: 14px; color: var(--mute); }
.banner { border: 2px solid var(--warn); border-radius: 14px; padding: 16px 18px; margin-bottom: 18px; display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.proof a { color: var(--lime); font-weight: 600; overflow-wrap: anywhere; }

/* ---- docs ---- */
.docs { max-width: 760px; display: grid; gap: 14px; }
.docs h2 { font-size: 26px; margin-bottom: 8px; }
.docs p + p { margin-top: 10px; }
.docs .panel p { color: #ddd4ea; }
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 8px 0; }
.flow div { background: var(--panel-2); border-radius: 14px; padding: 16px; }
.flow b { font: 800 34px var(--display); color: var(--lime); display: block; }

/* ---- modal, toast ---- */
.veil { position: fixed; inset: 0; background: rgba(5, 3, 9, .8); z-index: 50; display: grid; place-items: center; padding: 20px; }
.modal { width: min(440px, 100%); background: var(--panel); border: 2px solid #000; border-radius: 20px; box-shadow: 0 6px 0 #000; padding: 24px; display: grid; gap: 14px; max-height: 90vh; overflow: auto; }
.modal h2 { font-size: 28px; }
.wopt { display: flex; align-items: center; gap: 12px; width: 100%; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px; cursor: pointer; font-weight: 700; text-align: left; }
.wopt:hover { border-color: var(--lime); } .wopt img { width: 32px; height: 32px; border-radius: 8px; } .wopt span { margin-left: auto; color: var(--mute); font-weight: 500; font-size: 14px; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); background: var(--ink); color: var(--bg); font-weight: 700; padding: 10px 18px; border-radius: 12px; z-index: 60; border: 2px solid #000; }
table.t { width: 100%; border-collapse: collapse; font-size: 15px; }
table.t th { text-align: left; color: var(--mute); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.scrollx { overflow-x: auto; }

/* ---- small screens: the rail becomes a bottom bar ---- */
@media (max-width: 900px) {
  .hero, .launch, .coinpage { grid-template-columns: 1fr; } .hero { padding: 26px; gap: 26px; }
  .strip { grid-template-columns: 1fr 1fr; } .bento { grid-template-columns: 1fr; } .bento > * { grid-column: auto !important; }
  .flow { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  :root { --rail: 0px; }
  .rail { inset: auto 0 0 0; width: auto; height: 62px; flex-direction: row; justify-content: space-around; border-right: 0; border-top: 1px solid var(--line); padding: 0 6px; }
  .rail .mark, .rail a span { display: none; }
  .top { padding: 10px 14px; gap: 8px; } .top .word { font-size: 19px; } .search { display: none; }
  main { padding: 16px 14px 90px; } .two { grid-template-columns: 1fr; } .kv b { font-size: 20px; }
  .toast { bottom: 76px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
