/* Antefast — the table. Cold graphite ground, one butter-yellow signal, a call sheet that prints. */
:root{
  --ground:#0B0C10; --ink:#E8EAF0; --acc:#FFE066; --hot:#FFFAE4;
  --dim:#767C8C; --dimmer:#4A4F5E; --rule:#1C1F27; --panel:#111319; --panel2:#0E1016;
  --dsp:'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  --mono:'Spline Sans Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --bar:60px;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  background:var(--ground); color:var(--ink); font-family:var(--mono);
  font-size:14px; line-height:1.55; -webkit-font-smoothing:antialiased;
  padding-bottom:calc(var(--bar) + env(safe-area-inset-bottom));
  overflow-x:hidden;
}
a{color:var(--acc); text-decoration:none}
a:hover{text-decoration:underline}
code{font-family:var(--mono); font-size:.86em; color:var(--dim); word-break:break-all}
button{font:inherit}

/* ---- the fixed command bar: identity, the buy, the routes. Never scrolls away. ---- */
.cmdbar{
  position:fixed; left:0; right:0; bottom:0; z-index:40;
  height:calc(var(--bar) + env(safe-area-inset-bottom));
  padding:0 12px env(safe-area-inset-bottom);
  display:flex; align-items:center; gap:10px; justify-content:space-between;
  background:rgba(11,12,16,.94); backdrop-filter:blur(10px);
  border-top:1px solid var(--rule);
}
.cmd-buy{
  display:flex; align-items:baseline; gap:7px; min-width:0; flex:0 1 auto; overflow:hidden;
  padding:8px 12px; border-radius:2px; border:1px solid var(--acc);
  background:var(--acc); color:#0B0C10; text-decoration:none; white-space:nowrap;
}
.cmd-buy:hover{text-decoration:none; background:var(--hot)}
.cmd-buy[aria-disabled="true"]{background:transparent; color:var(--dim); border-color:var(--rule); cursor:default}
.cmd-tk{font-family:var(--dsp); font-weight:800; font-size:15px; letter-spacing:-.01em}
.cmd-word{font-size:10px; letter-spacing:.07em; text-transform:uppercase; opacity:.8; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
@media (max-width:420px){.cmd-word{display:none}.cmd-buy::after{content:'BUY'; font-size:10px; letter-spacing:.09em; opacity:.8}}
.cmd-nav{display:flex; gap:0; flex:0 0 auto}
.cmd-nav a{
  padding:8px 7px; font-size:10.5px; white-space:nowrap; letter-spacing:.1em; text-transform:uppercase;
  color:var(--dim); text-decoration:none; border-bottom:2px solid transparent;
}
.cmd-nav a:hover{color:var(--ink); text-decoration:none}
.cmd-nav a.on{color:var(--acc); border-bottom-color:var(--acc)}

/* ---- the call strip ---- */
.pit{padding:0 0 28px}
.strip{
  border-bottom:1px solid var(--rule); background:var(--panel2);
  padding:16px 16px 14px; display:flex; flex-wrap:wrap; gap:10px 20px; align-items:flex-end;
}
.strip-id{display:flex; align-items:center; gap:10px; min-width:0}
.strip-id img{width:26px; height:26px; display:block}
.heatno{font-family:var(--dsp); font-weight:800; font-size:20px; letter-spacing:-.02em; line-height:1}
.strip-phase{font-size:11px; letter-spacing:.12em; text-transform:uppercase; color:var(--dim)}
.strip-clock{margin-left:auto; text-align:right}
.tick{font-family:var(--dsp); font-weight:800; font-size:34px; line-height:.95; letter-spacing:-.03em; font-variant-numeric:tabular-nums}
.tick.warm{color:var(--acc)}
.tick-k{font-size:10px; letter-spacing:.14em; text-transform:uppercase; color:var(--dim)}

/* ---- the body: one column on a phone, two past the fold on a desk ---- */
.col{padding:18px 16px 0; display:grid; gap:20px; grid-template-columns:minmax(0,1fr); max-width:1180px; margin:0 auto}
.lede{font-family:var(--dsp); font-weight:700; font-size:26px; line-height:1.12; letter-spacing:-.025em; margin:0 0 8px}
.lede-sub{color:var(--dim); margin:0 0 18px; max-width:60ch}

/* ---- the one object: the ladder of eight calls ---- */
.rungs{display:flex; flex-direction:column; gap:3px; margin:0 0 22px}
.rung{
  position:relative; display:grid; grid-template-columns:34px 1fr auto; align-items:center; gap:12px;
  padding:11px 13px; background:var(--panel); border:1px solid var(--rule); border-radius:2px;
  overflow:hidden;
}
.rung > *{position:relative}
.rung .rung-fill{position:absolute; inset:0 auto 0 0; width:0; background:linear-gradient(90deg, rgba(255,224,102,.10), rgba(255,224,102,.01))}
.rung-n{font-size:10px; letter-spacing:.1em; color:var(--dimmer); text-transform:uppercase}
.rung-ante{font-family:var(--dsp); font-weight:700; font-size:17px; letter-spacing:-.01em; font-variant-numeric:tabular-nums}
.rung-note{font-size:11px; color:var(--dim); margin-top:1px}
.rung.done .rung-note,.rung.ahead .rung-note{display:none}
.rung.done,.rung.ahead{padding:7px 13px}
.rung.done .rung-ante,.rung.ahead .rung-ante{font-size:14px}
.rung-men{font-size:11px; letter-spacing:.06em; color:var(--dim); text-align:right; white-space:nowrap}
.rung.done{border-color:#232733}
.rung.done .rung-ante{color:var(--dim)}
.rung.now{border-color:var(--acc); background:#15161C; padding:15px 13px}
.rung.now .rung-ante{color:var(--acc)}
.rung.now .rung-n{color:var(--acc)}
.rung.ahead{opacity:.5}
.rung.ahead .rung-men{color:var(--dimmer)}

/* ---- the action ---- */
.bigpost{
  display:block; width:100%; text-align:left; cursor:pointer;
  padding:16px 18px; border-radius:2px; border:1px solid var(--acc); background:var(--acc); color:#0B0C10;
}
.bigpost:disabled{background:transparent; color:var(--dim); border-color:var(--rule); cursor:not-allowed}
.bigpost-k{display:block; font-size:10px; letter-spacing:.14em; text-transform:uppercase; opacity:.72}
.bigpost-v{display:block; font-family:var(--dsp); font-weight:800; font-size:23px; line-height:1.15; letter-spacing:-.02em; margin-top:2px}
.note{font-size:12px; color:var(--dim); margin-top:9px; min-height:18px}
.note.bad{color:#FF7A6B}
.note.good{color:var(--acc)}

.act{margin:0 0 22px}

/* ---- the second column ---- */
.aside{display:flex; flex-direction:column; gap:18px; min-width:0}
.pane{background:var(--panel); border:1px solid var(--rule); border-radius:2px; padding:14px}
.pane-k{font-size:10px; letter-spacing:.14em; text-transform:uppercase; color:var(--dim); margin-bottom:10px}
.stand{display:flex; flex-direction:column; gap:7px; margin:0; padding:0; list-style:none}
.stand li{display:flex; justify-content:space-between; gap:10px; font-size:12px; border-bottom:1px dotted #1A1D24; padding-bottom:6px}
.stand li:last-child{border-bottom:0; padding-bottom:0}
.stand .who{color:var(--ink)}
.stand .amt{color:var(--dim); font-variant-numeric:tabular-nums; white-space:nowrap}
.stand.quiet .who{color:var(--dimmer); text-decoration:line-through}
.hush{color:var(--dimmer); font-size:12px; font-style:normal}

/* ---- the tape: lines print in ---- */
.tape{display:flex; flex-direction:column; gap:0; margin:0; padding:0; list-style:none; font-size:12px}
.tape li{display:flex; gap:9px; padding:5px 0; border-bottom:1px dotted #1A1D24; animation:print .32s ease-out both}
.tape li:last-child{border-bottom:0}
.tape .t{color:var(--dimmer); white-space:nowrap; font-variant-numeric:tabular-nums}
.tape .m{min-width:0; flex:1}
.tape .m b{font-weight:500; color:var(--acc)}
@keyframes print{from{opacity:0; transform:translateY(-4px)}to{opacity:1; transform:none}}
@media (prefers-reduced-motion:reduce){.tape li{animation:none}}

/* ---- tables of settled heats ---- */
.bookwrap{overflow-x:auto; -webkit-overflow-scrolling:touch}
table.book{width:100%; border-collapse:collapse; font-size:12px; min-width:520px}
table.book th{text-align:left; font-weight:500; font-size:10px; letter-spacing:.12em; text-transform:uppercase; color:var(--dim); padding:8px 10px; border-bottom:1px solid var(--rule)}
table.book td{padding:9px 10px; border-bottom:1px solid #15171E; font-variant-numeric:tabular-nums}
table.book tr:last-child td{border-bottom:0}

/* ---- the rules, and the standing primer that fills the column before a heat exists ---- */
.rule-list{counter-reset:r; list-style:none; margin:0; padding:0}
.rule-list li{counter-increment:r; position:relative; padding:0 0 14px 34px}
.rule-list li::before{
  content:counter(r); position:absolute; left:0; top:0; width:22px; height:22px; border-radius:2px;
  display:grid; place-items:center; background:var(--acc); color:#0B0C10;
  font-family:var(--dsp); font-weight:800; font-size:12px;
}
.rule-list b{color:var(--ink); font-weight:700}
.miss{color:var(--dim); font-size:12px}

/* ---- footer ---- */
.callsheet{max-width:1180px; margin:26px auto 0; padding:18px 16px 26px; border-top:1px solid var(--rule); color:var(--dimmer); font-size:11.5px}
.callsheet .fl{display:block; margin-bottom:5px}
.callsheet a{color:var(--dim)}

/* ---- a wider measure before the page recomposes ---- */
@media (min-width:720px){
  body{font-size:15px}
  .cmd-nav a{padding:8px 12px; font-size:11px}
  .cmd-buy{padding:8px 16px}
  .strip{padding:20px 28px 18px}
  .heatno{font-size:25px}
  .tick{font-size:46px}
  .col{padding:26px 28px 0; gap:26px}
  .lede{font-size:34px}
  .rung{grid-template-columns:44px 1fr auto; padding:14px 16px}
  .rung-ante{font-size:21px}
  .bigpost-v{font-size:28px}
  .callsheet{padding:22px 28px 30px}
}
/* ---- the desk: the table on the left, the room beside it ---- */
@media (min-width:1000px){
  :root{--bar:64px}
  .col{grid-template-columns:minmax(0,1fr) 400px; align-items:start; padding:32px 32px 0; gap:34px}
  .col.one{grid-template-columns:minmax(0,1fr)}
  .strip{padding:24px 32px 20px}
  .heatno{font-size:30px}
  .tick{font-size:60px}
  .lede{font-size:42px}
  .rungs{gap:4px}
  .rung{padding:16px 18px}
  .rung-ante{font-size:24px}
  .bigpost{padding:20px 22px}
  .bigpost-v{font-size:33px}
  .aside{position:sticky; top:24px}
  .callsheet{padding:24px 32px 34px}
}
