:root {
  --bg: #070D1C; --panel: #0D1730; --line: #1B2A4D; --line2: #16244A;
  --ink: #E4ECFF; --mute: #8C9CC0; --dim: #7183AD;
  --acc: #3D7BFF; --acc2: #2F6AF0; --accs: #142A5E;
  --up: #34D399; --down: #FF5A6E; --downs: #2A1424; --neg: #FFA552; --warn: #FFB547;
  --hover: #111E3D; --head: #0B1530; --field: #091327;
  --sans: 'Manrope', system-ui, sans-serif; --mono: 'Fira Code', ui-monospace, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 15px/1.5 var(--sans); min-width: 0; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.mono, .num { font-family: var(--mono); font-feature-settings: "zero" 0; }
.grow { flex: 1; }
.hide { display: none !important; }
.up { color: var(--up); } .down { color: var(--neg); } .mute { color: var(--mute); } .dim { color: var(--dim); } .acc { color: var(--acc); }

/* header */
.hdr { background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.hdr .wrap { display: flex; align-items: center; gap: 22px; height: 60px; }
.mark { font: 800 21px/1 var(--sans); letter-spacing: -.035em; color: var(--ink); }
.mark b { color: var(--acc); font-weight: 800; }
.nav { display: flex; gap: 4px; }
.nav a { font-weight: 600; font-size: 14.5px; color: var(--mute); padding: 19px 10px 17px; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a.on { color: var(--acc); border-bottom-color: var(--acc); }
.live { display: inline-flex; align-items: center; gap: 8px; font: 500 13px var(--mono); color: var(--mute); }
.live i { width: 8px; height: 8px; background: var(--line); }
.live.on { color: var(--acc); }
.live.on i { background: var(--acc); animation: blink 1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border: 1px solid var(--line); background: var(--panel); border-radius: 2px; font-weight: 700; font-size: 14px; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.btn:hover { border-color: var(--acc); color: var(--acc); }
.btn.acc { background: var(--acc); border-color: var(--acc); color: #fff; }
.btn.acc:hover { background: var(--acc2); border-color: var(--acc2); color: #fff; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.lg { height: 48px; font-size: 15.5px; }
.btn.block { width: 100%; }
.btn.wal { font-family: var(--mono); font-weight: 500; font-size: 13.5px; }
.btn.wal.on i { width: 7px; height: 7px; background: var(--up); }

/* footer */
.ftr { border-top: 1px solid var(--line); margin-top: 56px; background: var(--panel); }
.ftr .wrap { display: flex; align-items: center; gap: 18px; padding-top: 22px; padding-bottom: 22px; flex-wrap: wrap; }
.ftr .mark { font-size: 17px; }
.ftr p { margin: 0; color: var(--mute); font-size: 14px; }
.ftr nav { display: flex; gap: 18px; font-size: 14px; font-weight: 600; color: var(--mute); flex-wrap: wrap; }
.ftr nav a:hover { color: var(--acc); }

/* panels */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; min-width: 0; }
.ph { display: flex; align-items: baseline; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.ph h2, .ph h3 { font-size: 15px; font-weight: 800; }
.ph .sub { color: var(--mute); font-size: 13.5px; }
.ph .r { margin-left: auto; font: 500 13px var(--mono); color: var(--mute); }
.pb { padding: 18px; }
.lab { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }

/* chips */
.chip { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; font: 600 12px var(--mono); border: 1px solid; border-radius: 2px; white-space: nowrap; }
.chip.raced { color: var(--down); border-color: #5A2333; background: var(--downs); }
.chip.batch { color: #fff; border-color: var(--acc); background: var(--acc); }
.chip.settled { color: #9DBBFF; border-color: var(--acc); background: var(--accs); }
.chip.trading { color: var(--mute); border-color: var(--line); background: var(--panel); }

/* coin images */
.img { width: 36px; height: 36px; flex: none; display: grid; place-items: center; overflow: hidden; background: var(--accs); border: 1px solid var(--line2); }
.img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img b { font: 700 13px var(--mono); color: var(--acc); }

/* page */
.page { padding-top: 28px; }
.roomhd { display: flex; align-items: flex-end; gap: 24px; margin-bottom: 18px; flex-wrap: wrap; }
.roomhd h1 { font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.roomhd p { margin: 6px 0 0; color: var(--mute); max-width: 560px; }
.facts { display: flex; gap: 0; margin-left: auto; border: 1px solid var(--line); background: var(--panel); border-radius: 8px; }
.facts div { padding: 10px 18px; border-left: 1px solid var(--line); }
.facts div:first-child { border-left: 0; }
.facts b { display: block; font: 600 20px var(--mono); }
.facts span { font-size: 12.5px; color: var(--mute); font-weight: 600; }

/* the clock row */
.clocks { display: flex; gap: 0; overflow-x: auto; scrollbar-width: thin; }
.clock { flex: none; width: 210px; padding: 20px 16px 16px; border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 12px; transition: background .2s; position: relative; }
.clock:hover { background: var(--hover); }
.clock .face { position: relative; width: 148px; height: 148px; }
.clock .face svg { position: absolute; inset: 0; }
.ring .rt { fill: none; stroke: var(--line2); }
.ring .rf { fill: none; stroke: var(--acc); stroke-linecap: butt; transition: stroke-dashoffset .25s linear; }
.ring.late .rf, .clock.late .ring .rf { stroke: var(--ink); }
.clock .in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.clock .t { font: 600 30px/1 var(--mono); letter-spacing: -.02em; }
.clock .s { font: 500 13.5px var(--mono); margin-top: 8px; color: var(--ink); }
.clock .w { font: 500 12.5px var(--mono); color: var(--mute); }
.clock .nm { font-weight: 800; font-size: 15px; display: flex; align-items: center; gap: 8px; max-width: 100%; }
.clock .nm span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clock .nm small { font: 500 12.5px var(--mono); color: var(--mute); }
.clock.closing { animation: closing .9s ease-out; }
@keyframes closing { 0% { background: var(--accs); } 100% { background: transparent; } }
.clocks .empty { display: flex; align-items: center; gap: 28px; padding: 22px 24px; width: 100%; }
.clocks .empty .face { position: relative; width: 120px; height: 120px; flex: none; }
.clocks .empty .face svg { position: absolute; inset: 0; }
.clocks .empty .face .ring .rf { stroke: var(--line); stroke-dasharray: 4 6 !important; stroke-dashoffset: 0 !important; }
.clocks .empty .face span { position: absolute; inset: 0; display: grid; place-items: center; font: 600 24px var(--mono); color: var(--dim); }
.clocks .empty h3 { font-size: 18px; font-weight: 800; }
.clocks .empty p { margin: 4px 0 14px; color: var(--mute); max-width: 520px; }

/* kanban */
.kan { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 14px; margin-top: 14px; align-items: start; }
.col { background: transparent; border: 1px solid var(--line); border-radius: 8px; min-height: 170px; min-width: 0; }
.col > header { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--panel); border-radius: 8px 8px 0 0; }
.col > header h3 { font-size: 14px; font-weight: 800; }
.col > header .n { margin-left: auto; font: 600 13px var(--mono); color: var(--mute); }
.col > header i { width: 10px; height: 10px; }
.col.c1 > header i { background: var(--acc); } .col.c2 > header i { background: var(--panel); border: 2px solid var(--acc); } .col.c3 > header i { background: var(--line); }
.col .list { display: flex; flex-direction: column; gap: 8px; padding: 10px; }
.col .none { padding: 18px 12px; color: var(--mute); font-size: 14px; }
.col .none a { color: var(--acc); font-weight: 700; }
.kc { display: grid; grid-template-columns: 36px 1fr auto; gap: 4px 10px; align-items: center; background: var(--panel); border: 1px solid var(--line); padding: 10px 12px; transition: transform .65s cubic-bezier(.2, .8, .2, 1), border-color .2s, opacity .4s; will-change: transform; border-radius: 2px; }
.kc:hover { border-color: var(--acc); }
.kc.moving { border-color: var(--acc); z-index: 2; position: relative; }
.kc.enter { opacity: 0; transform: translateY(-8px); }
.kc .img { grid-row: span 2; }
.kc .nm { font-weight: 800; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.kc .nm small { font: 500 12.5px var(--mono); color: var(--mute); margin-left: 6px; }
.kc .v { font: 600 14px var(--mono); text-align: right; }
.kc .sub { font: 500 12.5px var(--mono); color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kc .sub2 { font: 500 12.5px var(--mono); color: var(--mute); text-align: right; }
.kc .bar { grid-column: 1 / -1; height: 3px; background: var(--line2); margin-top: 6px; }
.kc .bar i { display: block; height: 100%; background: var(--acc); transition: width .25s linear; }

/* stonkfun table */
.sect { display: flex; align-items: flex-end; gap: 16px; margin: 40px 0 12px; flex-wrap: wrap; }
.sect h2 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.sect p { margin: 2px 0 0; color: var(--mute); font-size: 14px; }
.seg { display: inline-flex; border: 1px solid var(--line); background: var(--panel); border-radius: 2px; }
.seg button { border: 0; background: none; padding: 0 12px; height: 34px; font-weight: 700; font-size: 13.5px; color: var(--mute); border-left: 1px solid var(--line); }
.seg button:first-child { border-left: 0; }
.seg button.on { background: var(--acc); color: #fff; }
.find { display: flex; align-items: center; gap: 8px; height: 36px; border: 1px solid var(--line); background: var(--panel); padding: 0 10px; border-radius: 2px; min-width: 0; }
.find svg { width: 16px; height: 16px; color: var(--dim); flex: none; }
.find input { border: 0; outline: 0; background: none; width: 220px; min-width: 0; font-size: 14px; }
.tbl { width: 100%; }
.tr { display: grid; grid-template-columns: minmax(200px, 2.2fr) 112px 64px 96px 72px 72px 118px 92px 84px; gap: 12px; align-items: center; padding: 10px 16px; border-top: 1px solid var(--line2); font: 500 14px var(--mono); transition: background .15s; }
.tr:first-child { border-top: 0; }
a.tr:hover { background: var(--hover); }
.tr.h { font: 700 12px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); background: var(--head); border-radius: 8px 8px 0 0; }
.tr .r { text-align: right; }
.tr .coin { display: flex; align-items: center; gap: 10px; min-width: 0; font-family: var(--sans); }
.tr .coin div { min-width: 0; }
.tr .coin b { display: block; font-weight: 800; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr .coin small { font: 500 12.5px var(--mono); color: var(--mute); }
.tr .tx { font-size: 13px; }
.tr .cv { display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
.tr .cv i { width: 40px; height: 4px; background: var(--line2); position: relative; }
.tr .cv i b { position: absolute; inset: 0 auto 0 0; background: var(--acc); }
.tr.flash { animation: fl 1s ease-out; }
@keyframes fl { 0% { background: var(--accs); } 100% { background: transparent; } }
.more { display: flex; justify-content: center; padding: 12px; border-top: 1px solid var(--line2); }
.sk { background: var(--line2); animation: sk 1.2s ease-in-out infinite alternate; height: 14px; }
@keyframes sk { to { opacity: .45; } }

/* coin page */
.coinhd { display: flex; align-items: center; gap: 16px; padding: 24px 0 18px; flex-wrap: wrap; }
.coinhd .img { width: 60px; height: 60px; }
.coinhd .img b { font-size: 20px; }
.coinhd h1 { font-size: 28px; font-weight: 800; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.coinhd h1 small { font: 500 16px var(--mono); color: var(--mute); }
.coinhd .meta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; color: var(--mute); font-size: 14px; margin-top: 6px; }
.coinhd .meta b { color: var(--ink); font-weight: 600; }
.ca { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--panel); height: 28px; padding: 0 8px; font: 500 13px var(--mono); border-radius: 2px; }
.ca svg, .lnk svg { width: 14px; height: 14px; }
.lnk { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--acc); }
.cgrid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
.cgrid > * { min-width: 0; }
.stack { display: grid; gap: 16px; min-width: 0; }

/* batch panel */
.bp { display: grid; grid-template-columns: 220px 1fr; border-bottom: 1px solid var(--line); }
.bp .face { position: relative; width: 196px; height: 196px; margin: 22px auto; }
.bp .face svg { position: absolute; inset: 0; }
.bp .face .in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.bp .face .t { font: 600 42px/1 var(--mono); letter-spacing: -.03em; }
.bp .face .s { font: 500 15px var(--mono); margin-top: 10px; }
.bp .face .w { font: 500 13px var(--mono); color: var(--mute); }
.bp .side { border-left: 1px solid var(--line); padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.bp .state { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--acc); }
.bp h2 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.bp .side p { margin: 0; color: var(--mute); }
.amt { display: flex; align-items: center; border: 1px solid var(--line); height: 54px; padding: 0 14px; border-radius: 2px; background: var(--field); }
.amt:focus-within { border-color: var(--acc); }
.amt input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 600 24px var(--mono); }
.amt span { font: 600 14px var(--mono); color: var(--mute); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 24px; background: none; margin: 0; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; background: linear-gradient(var(--acc), var(--acc)) 0 / var(--f, 0%) 100% no-repeat, var(--line2); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; background: var(--panel); border: 2px solid var(--acc); margin-top: -7px; border-radius: 0; }
input[type=range]::-moz-range-track { height: 4px; background: var(--line2); }
input[type=range]::-moz-range-progress { height: 4px; background: var(--acc); }
input[type=range]::-moz-range-thumb { width: 14px; height: 14px; background: var(--panel); border: 2px solid var(--acc); border-radius: 0; }
.ticks { display: flex; justify-content: space-between; font: 500 12px var(--mono); color: var(--dim); margin-top: -4px; }
.quick { display: flex; gap: 6px; flex-wrap: wrap; }
.quick button { height: 30px; padding: 0 10px; border: 1px solid var(--line); background: var(--panel); font: 500 13px var(--mono); border-radius: 2px; }
.quick button:hover { border-color: var(--acc); color: var(--acc); }
.proj { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line2); border-radius: 2px; }
.proj div { padding: 10px 12px; border-left: 1px solid var(--line2); min-width: 0; }
.proj div:first-child { border-left: 0; }
.proj b { display: block; font: 600 16px var(--mono); overflow: hidden; text-overflow: ellipsis; }
.proj span { font-size: 12px; color: var(--mute); font-weight: 600; }
.yours { font: 500 13.5px var(--mono); color: var(--mute); }
.yours b { color: var(--ink); }

/* commit book / settlement */
.book { width: 100%; border-collapse: collapse; font: 500 14px var(--mono); }
.book th { text-align: left; font: 700 12px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); padding: 10px 18px; border-bottom: 1px solid var(--line); background: var(--head); }
.book td { padding: 11px 18px; border-bottom: 1px solid var(--line2); white-space: nowrap; }
.book tr:last-child td { border-bottom: 0; }
.book .r { text-align: right; }
.book .same { background: var(--accs); color: #A9C3FF; font-weight: 600; text-align: right; }
.book th.same { background: var(--acc); color: #fff; }
.book tr.me td:first-child { box-shadow: inset 3px 0 0 var(--acc); }
.book tr.new td:not(.same) { animation: fl 1.2s ease-out; }
.book .empty td { text-align: center; color: var(--mute); font-family: var(--sans); padding: 28px 18px; white-space: normal; }
.bookwrap { overflow-x: auto; }

/* clearing vs race */
.cmp { padding: 18px; display: grid; gap: 14px; }
.cmp .row { display: grid; grid-template-columns: 190px 1fr 150px; gap: 14px; align-items: center; }
.cmp .row .k { font-weight: 700; font-size: 14px; }
.cmp .row .k small { display: block; font-weight: 500; color: var(--mute); font-size: 12.5px; }
.cmp .row .bar { height: 22px; background: var(--line2); position: relative; }
.cmp .row .bar b { position: absolute; inset: 0 auto 0 0; background: #3A4E80; width: 0; transition: width .9s cubic-bezier(.2, .8, .2, 1); }
.cmp .row.clr .bar b { background: var(--acc); }
.cmp .row.bot .bar b { background: var(--down); }
.cmp .row .v { font: 600 15px var(--mono); text-align: right; }
.cmp .row .v small { display: block; font-size: 12.5px; font-weight: 500; color: var(--mute); }
.cmp .note { color: var(--mute); font-size: 14px; margin: 0; }

/* ticket */
.bs { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 2px; margin-bottom: 14px; }
.bs button { height: 38px; border: 0; background: var(--panel); font-weight: 800; color: var(--mute); }
.bs button.on { background: var(--acc); color: #fff; }
.kv { display: grid; gap: 0; margin: 14px 0; }
.kv div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line2); font-size: 14px; }
.kv div:last-child { border-bottom: 0; }
.kv .k { color: var(--mute); }
.kv .v { font-family: var(--mono); font-weight: 500; text-align: right; }
.lock { display: flex; gap: 10px; align-items: center; padding: 12px; background: var(--head); border: 1px solid var(--line2); font-size: 14px; color: var(--mute); border-radius: 2px; }
.lock b { color: var(--ink); }

.stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.stats div { padding: 14px 18px; border-left: 1px solid var(--line); min-width: 0; }
.stats div:first-child { border-left: 0; }
.stats b { display: block; font: 600 17px var(--mono); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chart { height: 380px; position: relative; overflow: hidden; border-radius: 8px; }
.chart iframe { width: 100%; height: 100%; border: 0; display: block; opacity: 0; transition: opacity .4s; }
.chart iframe.in { opacity: 1; }
.chart canvas { width: 100%; height: 100%; display: block; }
.chart .skc { position: absolute; inset: 0; display: grid; place-items: center; color: var(--mute); }
.early { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.early > div { padding: 14px 18px; border-left: 1px solid var(--line); min-width: 0; }
.early > div:first-child { border-left: 0; }
.early .pc { font: 600 20px var(--mono); margin: 2px 0 6px; }
.early .bb { display: flex; height: 6px; background: var(--line2); }
.early .bb b { background: var(--up); } .early .bb s { background: var(--neg); }
.early .n { display: flex; justify-content: space-between; font: 500 12.5px var(--mono); margin-top: 6px; }
.raced { border-left: 3px solid var(--down); }
.racednote { padding: 16px 18px; display: flex; gap: 16px; align-items: flex-start; }
.racednote p { margin: 0; color: var(--mute); }
.racednote b { color: var(--ink); }
.about { white-space: pre-wrap; color: var(--mute); }

/* forms */
.lgrid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 16px; align-items: start; }
.f { display: grid; gap: 6px; margin-bottom: 16px; min-width: 0; }
.f label { font-size: 13px; font-weight: 800; }
.f input:not([type=range]), .f textarea { width: 100%; border: 1px solid var(--line); background: var(--field); height: 42px; padding: 0 12px; border-radius: 2px; outline: 0; font-size: 15px; }
.f textarea { height: 86px; padding: 10px 12px; resize: vertical; }
.f input:focus, .f textarea:focus { border-color: var(--acc); }
.f .hint { font-size: 13px; color: var(--mute); }
.f2 { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
.f3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.drop { display: flex; align-items: center; gap: 14px; border: 1px dashed var(--line); padding: 12px; cursor: pointer; border-radius: 2px; background: var(--field); }
.drop.over { border-color: var(--acc); background: var(--accs); }
.drop .pv { width: 64px; height: 64px; background: var(--accs); display: grid; place-items: center; overflow: hidden; flex: none; font: 600 18px var(--mono); color: var(--acc); }
.drop .pv img { width: 100%; height: 100%; object-fit: cover; }
.drop .hint { font-size: 13px; color: var(--mute); }
.tline { display: grid; grid-template-columns: 64px 1fr; gap: 0; }
.tline > div { display: contents; }
.tline .t { font: 600 13px var(--mono); color: var(--acc); padding: 10px 0; border-top: 1px solid var(--line2); }
.tline .d { padding: 10px 0; border-top: 1px solid var(--line2); font-size: 14px; color: var(--mute); }
.tline .d b { color: var(--ink); }
.tline > div:first-child .t, .tline > div:first-child .d { border-top: 0; }
.steps { display: grid; gap: 8px; }
.step { display: flex; gap: 10px; align-items: center; color: var(--mute); font-size: 14px; }
.step i { width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid var(--line); font: 600 12px var(--mono); font-style: normal; flex: none; }
.step.on { color: var(--ink); } .step.on i { border-color: var(--acc); color: var(--acc); }
.step.done i { background: var(--acc); border-color: var(--acc); color: #fff; }

/* batches page */
.bsum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bsum div { padding: 16px 18px; border-left: 1px solid var(--line); min-width: 0; }
.bsum div:first-child { border-left: 0; }
.bsum b { display: block; font: 600 24px var(--mono); margin-top: 2px; }
.calc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

/* docs */
.doc { max-width: 760px; }
.doc h1 { font-size: 34px; font-weight: 800; letter-spacing: -.03em; }
.doc h2 { font-size: 20px; font-weight: 800; margin: 34px 0 8px; }
.doc p, .doc li { color: #C3CEEA; font-size: 15.5px; line-height: 1.65; }
.doc code { font: 500 14px var(--mono); background: var(--accs); color: #A9C3FF; padding: 1px 5px; }
.doc .lead { font-size: 18px; color: var(--mute); margin-top: 8px; }
.doc table { width: 100%; border-collapse: collapse; font: 500 14px var(--mono); margin: 12px 0; background: var(--panel); border: 1px solid var(--line); }
.doc th, .doc td { padding: 9px 12px; border-bottom: 1px solid var(--line2); text-align: left; }
.doc th { font: 700 12px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.doc td.r, .doc th.r { text-align: right; }
.docgrid { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 40px; }
.toc { position: sticky; top: 84px; align-self: start; display: grid; gap: 2px; font-size: 14px; font-weight: 600; }
.toc a { color: var(--mute); padding: 6px 10px; border-left: 2px solid var(--line); }
.toc a.on { color: var(--acc); border-left-color: var(--acc); }

/* toasts */
.toasts { position: fixed; right: 18px; bottom: 18px; display: grid; gap: 8px; z-index: 50; max-width: calc(100vw - 36px); }
.toast { background: #16244A; color: var(--ink); border: 1px solid var(--line); padding: 12px 16px; font-size: 14px; font-weight: 600; transform: translateY(10px); opacity: 0; transition: .25s; border-left: 4px solid var(--acc); max-width: 420px; }
.toast.in { transform: none; opacity: 1; }
.toast.ok { border-left-color: var(--up); } .toast.bad { border-left-color: var(--neg); }
.flash { animation: fl 1s ease-out; }
.rise { animation: rise .5s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 1100px) {
  .tr { grid-template-columns: minmax(180px, 2fr) 112px 64px 96px 72px 72px 110px; }
  .tr > :nth-child(8), .tr > :nth-child(9) { display: none; }
  .cgrid, .lgrid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats div:nth-child(4) { border-left: 0; } .stats div:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .wrap { padding: 0 16px; }
  .nav { display: none; }
  .hdr .wrap { gap: 12px; }
  .hide-s { display: none; }
  .kan { grid-template-columns: 1fr; }
  .facts { margin-left: 0; width: 100%; }
  .facts div { flex: 1; padding: 10px 12px; }
  .roomhd h1 { font-size: 28px; }
  .tr { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 12px 14px; }
  .tr.h { display: none; }
  .tr > * { display: none; }
  .tr > .coin { display: flex; grid-column: 1; }
  .tr > .mob { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; grid-column: 2; grid-row: 1; }
  .tr > .mob2 { display: flex; grid-column: 1 / -1; gap: 14px; font-size: 12.5px; color: var(--mute); flex-wrap: wrap; }
  .find input { width: 140px; }
  .bp { grid-template-columns: 1fr; }
  .bp .side { border-left: 0; border-top: 1px solid var(--line); padding: 18px; }
  .cmp .row { grid-template-columns: 1fr 110px; }
  .cmp .row .bar { grid-column: 1 / -1; grid-row: 2; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats div:nth-child(odd) { border-left: 0; } .stats div:nth-child(4) { border-left: 1px solid var(--line); } .stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .early { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .early > div:nth-child(3) { border-left: 0; } .early > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .bsum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsum div:nth-child(3) { border-left: 0; } .bsum div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .f2, .f3, .calc { grid-template-columns: 1fr; }
  .docgrid { grid-template-columns: 1fr; }
  .toc { display: none; }
  .chart { height: 300px; }
  .clocks .empty { flex-direction: column; align-items: flex-start; gap: 14px; }
  .clock { width: 180px; }
  .clock .face { width: 128px; height: 128px; }
  .clock .t { font-size: 26px; }
  .book th, .book td { padding: 10px 12px; }
}
@media (min-width: 861px) { .tr > .mob, .tr > .mob2 { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* hero: clocks + last bell */
.hero2 { display: grid; grid-template-columns: fit-content(62%) minmax(220px, 1fr) 330px; }
.hero2.idle { grid-template-columns: minmax(0, 1fr) 330px; }
.hero2.idle .feed { display: none; }
.feed { border-left: 1px solid var(--line); padding: 18px 20px; min-width: 0; display: flex; flex-direction: column; gap: 0; }
.feed .lab { margin-bottom: 8px; }
.feed .ev { display: grid; grid-template-columns: 52px 1fr auto; gap: 8px; align-items: baseline; padding: 7px 0; border-top: 1px dashed var(--line2); font: 500 13px var(--mono); animation: rise .4s ease-out both; }
.feed .ev:first-of-type { border-top: 0; }
.feed .ev .tm { color: var(--dim); }
.feed .ev .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--mute); }
.feed .ev .who b { color: var(--ink); font-weight: 600; }
.feed .ev .amt2 { font-weight: 600; }
.feed .ev .amt2.out { color: var(--down); }
.feed p { margin: 0; color: var(--mute); font-size: 14px; }
.hero2 .clocks { min-width: 0; }
.lastbell { border-left: 1px solid var(--line); padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; min-width: 0; background: var(--head); border-radius: 0 0 8px 0; }
.lastbell .top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lastbell .top b { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lastbell .top small { font: 500 12.5px var(--mono); color: var(--mute); margin-left: auto; white-space: nowrap; }
.lastbell .big { font: 600 40px/1 var(--mono); color: var(--acc); letter-spacing: -.03em; }
.lastbell .big small { font-size: 14px; color: var(--mute); letter-spacing: 0; margin-left: 6px; }
.lastbell .line { font: 500 13.5px var(--mono); color: var(--ink); }
.lastbell .rr { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; font: 500 12.5px var(--mono); color: var(--mute); }
.lastbell .rr i { height: 4px; background: var(--line2); position: relative; }
.lastbell .rr i b { position: absolute; top: -4px; width: 2px; height: 12px; background: var(--acc); }
.lastbell p { margin: 0; font-size: 14px; color: var(--mute); }
.lastbell ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; counter-reset: s; }
.lastbell li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; font-size: 14px; color: var(--mute); counter-increment: s; }
.lastbell li::before { content: counter(s); width: 24px; height: 24px; border: 1px solid var(--acc); color: var(--acc); display: grid; place-items: center; font: 600 12px var(--mono); }
.lastbell li b { color: var(--ink); }
@media (max-width: 1100px) { .hero2, .hero2.idle { grid-template-columns: 1fr; } .feed { border-left: 0; border-top: 1px solid var(--line); } .lastbell { border-left: 0; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; } }
@media (max-width: 860px) {
  .ph .sub { display: none; }
  .live span .lg { display: none; }
  .book .hs { display: none; }
  .cmp .row .v small { display: inline; margin-left: 6px; }
}
.f .amt input:not([type=range]) { border: 0; height: auto; padding: 0; background: none; font: 600 22px var(--mono); }
.calc .f { align-content: start; }

@media (max-width: 860px) {
  .book { font-size: 13px; }
  .book th, .book td { padding: 9px 10px; }
  .coinhd { flex-wrap: nowrap; align-items: flex-start; }
  .coinhd > div { min-width: 0; }
  .coinhd .img { width: 48px; height: 48px; }
  .coinhd h1 { font-size: 23px; gap: 8px; }
}

.smw { display: none; }
@media (max-width: 860px) {
  .lgw { display: none; } .smw { display: inline; }
  .book .rp { display: block; font-size: 12px; }
  .col { min-height: 0; }
  .clocks::before, .clocks::after { content: ''; margin: auto; }
}
.clocks .clock:last-child { border-right: 0; }

/* dark round 2 */
.acc { color: #6E9BFF; }
a.lnk, .lnk { color: #6E9BFF; }
.nav a.on { color: #fff; border-bottom-color: var(--acc); }
.mark b { color: var(--acc); }
.live.on { color: #6E9BFF; }
.lastbell .big, .kc .v.acc, .clock .t.acc { color: #6E9BFF; }
.bp .state { color: #6E9BFF; }
.tline .t { color: #6E9BFF; }
.img b { color: #8FB0FF; }
.drop .pv { color: #8FB0FF; }
.chip.trading { color: var(--mute); }
.ftr, .hdr { background: #0A1328; }
input::placeholder, textarea::placeholder { color: #55678F; }
.chart { background: var(--panel); }
.kc { background: var(--panel); }
.kc:hover, .clock:hover { background: var(--hover); }
.tr.h, .book th { background: var(--head); }

/* LED auction board */
.ledboard { background: var(--bg); border-bottom: 1px solid var(--line); position: relative; }
.ledboard canvas { display: block; width: 100%; }
.ledboard .lp { height: 66px; }
.ledboard .ls { height: 34px; border-top: 1px solid var(--line); }
.ledboard .tag { position: absolute; right: 12px; top: 8px; font: 600 11.5px var(--mono); letter-spacing: .08em; color: var(--dim); background: var(--bg); padding: 0 4px; }
@media (max-width: 700px) { .ledboard .lp { height: 50px; } .ledboard .ls { height: 28px; } .ledboard .tag { display: none; } }

/* facts under the coin ring */
.bp .left { display: flex; flex-direction: column; }
.ringkv { margin: 0 18px 20px; display: grid; border-top: 1px solid var(--line); }
.ringkv div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line2); font-size: 13.5px; }
.ringkv div:last-child { border-bottom: 0; }
.ringkv span { color: var(--mute); }
.ringkv b { font: 500 13.5px var(--mono); text-align: right; }

/* Fair Play: logo mark, CA + X */
.mark { display: inline-flex; align-items: center; gap: 9px; }
.mark img { width: 28px; height: 28px; border-radius: 2px; display: block; }
.ftr .mark img { width: 22px; height: 22px; }
.cabar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.cacopy { gap: 12px; min-width: 0; font: 500 13.5px/1 var(--mono); }
.cacopy .k { color: var(--dim); font: 600 12px var(--sans); letter-spacing: .04em; }
.cacopy svg, .xbtn svg { width: 15px; height: 15px; flex: none; }
.cacopy .v.short { display: none; }
.xbtn svg { width: 14px; height: 14px; }
@media (max-width: 1100px) { .cacopy .v.full { display: none; } .cacopy .v.short { display: inline; } }
@media (max-width: 860px) { .mark img { width: 24px; height: 24px; } }
.mark, .live { white-space: nowrap; }
@media (max-width: 420px) { .hdr .live { display: none; } }
