/* Weirmark — the shaft. A neon instrument: twenty tube rungs, one datum line, a readout beside it. */
:root{
  --bg:#07090C; --ink:#DCE9F2; --acc:#5EEAC0; --dim:#4C5D68; --glass:#0F151B; --edge:#1B252D;
  --railH:74px; --railW:88px;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;overflow-x:hidden}
body{
  background:var(--bg); color:var(--ink);
  font:400 14px/1.55 "IBM Plex Mono",ui-monospace,SFMono-Regular,Menlo,monospace;
  -webkit-font-smoothing:antialiased;
  background-image:radial-gradient(120% 60% at 50% -10%, rgba(94,234,192,.09), transparent 62%);
  background-attachment:fixed;
}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
img{max-width:100%}
h1,h2,h3,.num,.xs,.tk{font-family:Oxanium,"IBM Plex Mono",monospace;font-weight:800;letter-spacing:-.01em}

/* ── the fixed rail ─────────────────────────────────────────────────────────── */
.rail{
  position:fixed; z-index:40; left:0; right:0; bottom:0; height:var(--railH);
  display:flex; align-items:center; gap:10px; padding:10px 12px calc(10px + env(safe-area-inset-bottom));
  background:rgba(7,9,12,.93); backdrop-filter:blur(14px);
  border-top:1px solid var(--edge);
}
.sigil{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.sigil img{width:34px;height:34px;border-radius:10px;display:block;object-fit:cover;transform:scale(1.52);background:#05070A}
.sigil .disc{width:34px;height:34px;border-radius:10px;overflow:hidden;background:#05070A;display:block;flex:0 0 auto}
.sigil b{display:none;font-family:Oxanium;font-size:15px;letter-spacing:.06em;text-transform:uppercase}
.getit{
  flex:1 1 auto; min-width:0; display:flex; flex-direction:column; justify-content:center;
  padding:8px 14px; border-radius:11px; border:1px solid var(--acc);
  background:linear-gradient(180deg,rgba(94,234,192,.19),rgba(94,234,192,.07));
  box-shadow:0 0 22px rgba(94,234,192,.20), inset 0 0 18px rgba(94,234,192,.07);
}
.getit .tk{font-size:14px;line-height:1.15;color:var(--acc);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.getit .sub{font-size:10.5px;line-height:1.3;color:#9FD8C6;letter-spacing:.04em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.getit.armed{background:linear-gradient(180deg,rgba(94,234,192,.30),rgba(94,234,192,.12))}
.hookup{
  flex:0 0 auto; padding:10px 13px; border-radius:11px; border:1px solid var(--edge);
  background:var(--glass); font-size:12px; letter-spacing:.04em;
}
.hookup.on{border-color:rgba(94,234,192,.5);color:var(--acc)}

/* ── the stage ──────────────────────────────────────────────────────────────── */
#stage{
  max-width:560px; margin:0 auto;
  padding:18px 14px calc(var(--railH) + 30px);
  display:flex; flex-direction:column; gap:20px;
}
.jump{display:flex;gap:6px;flex-wrap:wrap}
.jump a{
  padding:6px 11px;border-radius:999px;border:1px solid var(--edge);background:var(--glass);
  font-size:11.5px;letter-spacing:.07em;text-transform:uppercase;color:#93A6B2;
}
.jump a.here{border-color:rgba(94,234,192,.55);color:var(--acc)}

/* ── the readout ────────────────────────────────────────────────────────────── */
.lede{margin:0;font-size:clamp(27px,7.6vw,40px);line-height:1.02;letter-spacing:-.025em}
.lede em{font-style:normal;color:var(--acc);text-shadow:0 0 26px rgba(94,234,192,.4)}
.blurb{margin:10px 0 0;color:#93A6B2;font-size:13px;line-height:1.6;max-width:56ch}
.ticks{display:grid;grid-template-columns:repeat(2,1fr);gap:9px;margin-top:16px}
.tick{padding:11px 12px;border:1px solid var(--edge);border-radius:12px;background:var(--glass)}
.tick b{display:block;font-family:Oxanium;font-weight:800;font-size:23px;line-height:1.05;letter-spacing:-.02em}
.tick span{display:block;margin-top:3px;font-size:10.5px;letter-spacing:.09em;text-transform:uppercase;color:var(--dim)}
.tick.hot b{color:var(--acc);text-shadow:0 0 22px rgba(94,234,192,.42)}

/* ── the shaft: the one object ──────────────────────────────────────────────── */
.shaftWrap{position:relative;border:1px solid var(--edge);border-radius:16px;background:linear-gradient(180deg,#0C1218,#080B0F);overflow:hidden}
.shaftHead{display:flex;justify-content:space-between;align-items:baseline;padding:11px 13px;border-bottom:1px solid var(--edge)}
.shaftHead .cap{font-size:10.5px;letter-spacing:.11em;text-transform:uppercase;color:var(--dim)}
.shaftHead .cap b{color:var(--acc);font-family:Oxanium}
.shaft{position:relative;list-style:none;margin:0;padding:0}
.rung{
  position:relative;display:grid;grid-template-columns:30px 1fr 52px 76px;align-items:center;gap:9px;
  padding:0 12px;height:34px;border-bottom:1px solid rgba(27,37,45,.6);cursor:pointer;
  transition:background .18s ease;
}
.rung:last-child{border-bottom:0}
.rung .no{font-size:11px;color:var(--dim);letter-spacing:.04em}
.rung .tube{position:relative;height:9px;border-radius:5px;background:#131C22;overflow:hidden}
.rung .tube i{display:block;height:100%;border-radius:5px;background:#283942;transition:width .5s cubic-bezier(.2,.8,.2,1)}
.rung .xs{font-size:12px;text-align:right;color:#7C8E9A;font-weight:700}
.rung .pays{font-size:11.5px;text-align:right;color:var(--dim);font-variant-numeric:tabular-nums}
.rung.wet .no{color:#8FB6A9}
.rung.wet .tube i{background:linear-gradient(90deg,#3FD7AE,var(--acc));box-shadow:0 0 12px rgba(94,234,192,.55)}
.rung.wet .xs{color:var(--acc)}
.rung.wet .pays{color:#B9E9DA}
.rung.iscut{background:rgba(94,234,192,.05);height:50px;padding-bottom:16px}
.rung.iscut .pays{color:var(--acc)}
.rung.picked{background:rgba(94,234,192,.12);box-shadow:inset 3px 0 0 var(--acc)}
.rung.mine{box-shadow:inset 3px 0 0 #E8C35E}
.rung.mine .no{color:#E8C35E}
.rung:active{background:rgba(94,234,192,.1)}
/* the weirmark itself: a tube that slides between rungs as the room moves */
.datum{
  position:absolute;left:0;right:0;top:0;height:3px;border-radius:2px;pointer-events:none;
  background:var(--acc);box-shadow:0 0 18px 2px rgba(94,234,192,.75);
  transition:transform .65s cubic-bezier(.2,.8,.2,1),opacity .3s;
}
.datum::after{
  content:attr(data-label);position:absolute;right:12px;top:-14px;
  font-family:Oxanium;font-weight:800;font-size:9.5px;letter-spacing:.15em;text-transform:uppercase;color:var(--acc);
}
.shaftFoot{display:flex;justify-content:space-between;gap:8px;padding:9px 13px;border-top:1px solid var(--edge);font-size:10.5px;letter-spacing:.07em;text-transform:uppercase;color:var(--dim)}

/* ── the commit ─────────────────────────────────────────────────────────────── */
.commit{display:flex;flex-direction:column;gap:9px}
.wade{
  width:100%;padding:16px;border-radius:14px;border:1px solid rgba(94,234,192,.55);
  background:linear-gradient(180deg,rgba(94,234,192,.22),rgba(94,234,192,.08));
  font-family:Oxanium;font-weight:800;font-size:16px;letter-spacing:.03em;color:var(--acc);
  box-shadow:0 0 30px rgba(94,234,192,.16);
}
.wade[disabled]{opacity:.4;border-color:var(--edge);background:var(--glass);color:var(--dim);box-shadow:none;cursor:default}
.hint{font-size:11.5px;color:var(--dim);text-align:center;line-height:1.5}

/* ── the column beside it (always rendered, empty or not) ───────────────────── */
.beside{display:flex;flex-direction:column;gap:14px}
.slab{border:1px solid var(--edge);border-radius:14px;background:var(--glass);overflow:hidden}
.slabTop{padding:10px 13px;border-bottom:1px solid var(--edge);font-size:10.5px;letter-spacing:.11em;text-transform:uppercase;color:var(--dim)}
.slabBody{padding:12px 13px}
.rule{display:flex;gap:9px;padding:6px 0;font-size:12px;line-height:1.5;color:#9DB0BC}
.rule b{color:var(--acc);font-family:Oxanium;flex:0 0 auto;min-width:58px}
.quiet{padding:16px 13px;text-align:center;color:var(--dim);font-size:12px;line-height:1.6}
.line{display:grid;grid-template-columns:1fr auto;gap:8px;padding:8px 13px;border-bottom:1px solid rgba(27,37,45,.55);font-size:12px}
.line:last-child{border-bottom:0}
.line .who{color:#93A6B2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.line .what{color:var(--acc);font-family:Oxanium;font-weight:700;white-space:nowrap}
.line .when{color:var(--dim);font-size:10.5px}

/* ── ledger / rung / pour tables ───────────────────────────────────────────── */
.scroller{overflow-x:auto;-webkit-overflow-scrolling:touch}
table.grid{width:100%;border-collapse:collapse;font-size:12px;min-width:420px}
table.grid th{text-align:left;padding:9px 11px;font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:var(--dim);border-bottom:1px solid var(--edge);font-weight:500}
table.grid td{padding:9px 11px;border-bottom:1px solid rgba(27,37,45,.55);white-space:nowrap}
table.grid td.acc{color:var(--acc);font-family:Oxanium;font-weight:700}

/* ── base ───────────────────────────────────────────────────────────────────── */
.base{border-top:1px solid var(--edge);padding-top:14px;display:flex;flex-direction:column;gap:7px;font-size:11px;color:var(--dim)}
.base code{color:#9DB0BC;word-break:break-all;font-size:11px}
.base .kk{letter-spacing:.09em;text-transform:uppercase;font-size:9.5px}
.base a{color:#7FA99A;border-bottom:1px solid rgba(127,169,154,.3)}

/* ── the sheet ──────────────────────────────────────────────────────────────── */
#veil{position:fixed;inset:0;z-index:60;background:rgba(3,5,7,.78);backdrop-filter:blur(5px);display:flex;align-items:flex-end;justify-content:center}
#veil[hidden]{display:none}
.datum[hidden]{display:none}
.pane{width:100%;max-width:460px;background:#0B1116;border:1px solid var(--edge);border-radius:18px 18px 0 0;max-height:88vh;overflow:auto}
.paneTop{display:flex;justify-content:space-between;align-items:center;padding:14px 16px;border-bottom:1px solid var(--edge);font-family:Oxanium;font-weight:800;font-size:13px;letter-spacing:.09em;text-transform:uppercase}
.paneTop button{font-size:24px;line-height:1;color:var(--dim)}
#paneBody{padding:16px}
#paneBody p{margin:0 0 12px;font-size:13px;line-height:1.6;color:#9DB0BC}
.pick{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin-bottom:14px}
.pick button{padding:11px 0;border-radius:10px;border:1px solid var(--edge);background:var(--glass);font-size:12px;font-family:Oxanium;font-weight:700}
.pick button.on{border-color:var(--acc);color:var(--acc);background:rgba(94,234,192,.12)}
.wl{display:flex;flex-direction:column;gap:8px}
.wl button{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid var(--edge);border-radius:11px;background:var(--glass);font-size:13px}
.wl img{width:22px;height:22px;border-radius:6px}
.toast{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(var(--railH) + 16px);z-index:80;padding:11px 16px;border-radius:11px;background:#111A20;border:1px solid var(--edge);font-size:12.5px;max-width:88vw;text-align:center;box-shadow:0 10px 40px rgba(0,0,0,.6)}

/* ── wider: a bigger instrument, still one column ───────────────────────────── */
@media (min-width:720px){
  #stage{max-width:760px;padding:26px 22px calc(var(--railH) + 40px);gap:26px}
  .sigil b{display:block}
  .ticks{grid-template-columns:repeat(4,1fr)}
  .tick b{font-size:26px}
  .rung{height:40px;grid-template-columns:36px 1fr 62px 96px;gap:12px;padding:0 15px}
  .rung.iscut{height:56px;padding-bottom:16px}
  .rung .xs{font-size:13.5px}
  .rung .pays{font-size:12.5px}
  .blurb{font-size:14px}
  .getit .tk{font-size:15px}
}

/* ── desktop: the instrument recomposes into two columns, rail down the right ─ */
@media (min-width:1000px){
  .rail{
    left:auto; top:0; bottom:0; right:0; width:var(--railW); height:auto;
    flex-direction:column; justify-content:flex-start; gap:14px;
    padding:18px 10px; border-top:0; border-left:1px solid var(--edge);
  }
  .sigil{flex-direction:column;gap:7px;text-align:center}
  .sigil img,.sigil .disc{width:42px;height:42px}
  .sigil b{font-size:10px;letter-spacing:.1em}
  .getit{flex:0 0 auto;width:100%;align-items:center;text-align:center;padding:12px 6px;gap:3px}
  .getit .tk{font-size:11px;letter-spacing:.02em}
  .getit .sub{font-size:9px;white-space:normal;line-height:1.25}
  .hookup{width:100%;padding:11px 4px;font-size:10.5px;letter-spacing:.02em}
  #stage{
    max-width:1180px; padding:34px 30px 50px; padding-right:calc(var(--railW) + 30px);
    display:grid; grid-template-columns:minmax(0,1fr) 340px; align-items:start;
    column-gap:30px; row-gap:24px;
  }
  .jump{grid-column:1/-1}
  .dial{grid-column:1}
  .lede{font-size:52px}
  .tick b{font-size:30px}
  .gauge{grid-column:1;display:flex;flex-direction:column;gap:18px}
  .beside{grid-column:2;grid-row:2/span 2;position:sticky;top:34px}
  .wide{grid-column:1/-1}
  .base{grid-column:1/-1;flex-direction:row;flex-wrap:wrap;align-items:center;gap:14px}
  .rung{height:42px;grid-template-columns:42px 1fr 74px 112px;padding:0 18px}
  .rung.iscut{height:58px;padding-bottom:16px}
  .toast{bottom:24px;left:calc(50% - var(--railW)/2)}
}
@media (min-width:1280px){
  #stage{grid-template-columns:minmax(0,1fr) 380px}
  .lede{font-size:58px}
}
@media (prefers-reduced-motion:reduce){ .datum,.rung .tube i{transition:none} }
