/* Sievery — the mill. Cut-paper sieve on a near-black ground, one periwinkle screen.
   Long scroll down the tray stack; a fixed strip at the top carries identity and the buy. */
:root{
  --ground:#0A0A0C; --paper:#15151A; --paper2:#1D1D24; --edge:#2A2A33;
  --ink:#EFEDE6; --ink2:#9D9AA4; --ink3:#65636D;
  --screen:#6C8CFF; --screenlo:rgba(108,140,255,.16); --screenmid:rgba(108,140,255,.42);
  --warn:#E8B4A0;
  --strip:56px;
  --torn:0 2px 0 rgba(0,0,0,.6), 0 14px 30px rgba(0,0,0,.5);
  --poster:Staatliches,Impact,"Haettenschweiler",sans-serif;
  /* Staatliches sets 1 as a bare stroke, so every figure goes in the grotesk instead:
     poster caps carry the language, the grotesk carries the numbers. */
  --fig:Inter,-apple-system,BlinkMacSystemFont,sans-serif;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0; background:var(--ground); color:var(--ink);
  font:400 16px/1.5 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  padding-top:var(--strip); overflow-x:hidden;
}
img{max-width:100%;display:block}
a{color:inherit}
code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.78em;word-break:break-all}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
h1,h2,h3{font-family:var(--poster);font-weight:400;letter-spacing:.02em;margin:0;line-height:.98}

/* ---------- the fixed strip: identity, the live line, and the buy ---------- */
#strip{
  position:fixed; inset:0 0 auto 0; z-index:60; height:var(--strip);
  display:flex; align-items:center; gap:10px; padding:0 12px;
  background:rgba(10,10,12,.94); backdrop-filter:blur(10px);
  border-bottom:1px solid var(--edge);
}
.brandtile{display:flex;align-items:center;gap:8px;text-decoration:none;flex:0 0 auto}
.brandtile img{width:30px;height:30px;border-radius:7px}
.brandtile b{font-family:var(--poster);font-weight:400;font-size:23px;letter-spacing:.05em}
.striplive{
  flex:1 1 auto; min-width:0; display:none; color:var(--ink2);
  font-size:12.5px; letter-spacing:.04em; text-transform:lowercase;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.striplive b{color:var(--ink);font-weight:500}
.striplive .hot{color:var(--screen)}
.buypill{
  margin-left:auto; flex:0 0 auto; text-decoration:none;
  font-family:var(--poster); font-size:16px; letter-spacing:.06em;
  padding:8px 14px; border-radius:999px; line-height:1;
  background:var(--screen); color:#06060A; box-shadow:0 0 22px rgba(108,140,255,.4);
}
.buypill.cold{background:transparent;color:var(--ink3);border:1px dashed var(--edge);box-shadow:none;font-size:12px;font-family:Inter,sans-serif;letter-spacing:.02em;padding:7px 11px}

/* ---------- layout ---------- */
#mill{max-width:640px;margin:0 auto;padding:0 14px 40px}
#lede{padding:26px 0 8px}
#lede h1{font-size:clamp(38px,11vw,54px);max-width:11ch}
.ledesub{margin:14px 0 0;color:var(--ink2);font-size:15px;max-width:46ch}
.ledesub em{color:var(--ink);font-style:normal}

/* the gauge: the whole sieve at a glance, tray widths drawn true */
#gauge{margin:22px 0 4px;display:flex;flex-direction:column;gap:7px}
.gaugerow{
  display:grid; grid-template-columns:22px 1fr 60px; align-items:center; gap:10px;
  background:none; border:0; padding:3px 0; width:100%; text-align:left;
}
.gaugerow .gn{font:700 15px/1 var(--fig);color:var(--ink3);letter-spacing:-.01em;font-variant-numeric:tabular-nums}
.gaugetrack{height:20px;position:relative;background:var(--paper);border:1px solid var(--edge);border-radius:3px;overflow:hidden}
.gaugetrack::after{content:"";position:absolute;inset:0;background:repeating-linear-gradient(90deg,transparent 0 3px,rgba(255,255,255,.05) 3px 4px)}
.gaugefill{position:absolute;inset:0 auto 0 0;background:var(--screenmid);transition:width .5s cubic-bezier(.2,.8,.2,1)}
.gaugerow.on .gaugefill{background:var(--screen);box-shadow:0 0 16px rgba(108,140,255,.55)}
.gaugerow.shut .gaugetrack{border-style:dashed;border-color:rgba(108,140,255,.3);background:rgba(108,140,255,.05)}
.gaugeX{font:700 19px/1 var(--fig);text-align:right;letter-spacing:-.025em;font-variant-numeric:tabular-nums}
.gaugerow.shut .gaugeX{color:var(--ink2)}
.gaugekey{margin:12px 0 0;font-size:12.5px;color:var(--ink3);letter-spacing:.02em}

/* ---------- the tray slabs ---------- */
#slabs{display:flex;flex-direction:column;gap:16px;padding:22px 0 8px}
.trayslab{
  position:relative; background:var(--paper); border:1px solid var(--edge);
  border-radius:4px; padding:18px 16px 16px; box-shadow:var(--torn);
}
.trayslab::before{
  content:""; position:absolute; left:0; right:0; top:0; height:3px;
  background:var(--screenlo);
}
.trayslab.live::before{background:var(--screen);box-shadow:0 0 18px rgba(108,140,255,.6)}
.trayslab.shut{opacity:.7}
.slabhead{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.slabname{font-family:var(--poster);font-size:24px;letter-spacing:.05em;color:var(--ink2)}
.trayslab.live .slabname{color:var(--ink)}
.slabX{font:700 clamp(40px,12vw,56px)/.85 var(--fig);letter-spacing:-.045em;font-variant-numeric:tabular-nums}
.trayslab.live .slabX{color:var(--screen);text-shadow:0 0 34px rgba(108,140,255,.45)}
.slabwidth{margin:8px 0 0;font-size:14px;color:var(--ink2)}
.meter{margin:14px 0 0;height:30px;position:relative;background:var(--ground);border:1px solid var(--edge);border-radius:3px;display:flex;overflow:hidden}
.meterseat{flex:1 1 0;min-width:2px;border-right:1px solid var(--ground);background:var(--paper2)}
.meterseat.taken{background:var(--screen)}
.meterseat.fell{background:var(--screenlo);box-shadow:inset 0 0 0 1px var(--screenmid)}
.meterover{position:absolute;inset:0 0 0 auto;display:flex;align-items:center;padding:0 9px;font-size:12px;letter-spacing:.03em;color:var(--warn);background:linear-gradient(90deg,transparent,rgba(10,10,12,.95) 30%)}
.slabfacts{margin:12px 0 0;display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--edge);border:1px solid var(--edge);border-radius:3px;overflow:hidden}
.slabfacts div{background:var(--paper);padding:9px 10px}
.slabfacts span{display:block;font-size:10.5px;letter-spacing:.09em;text-transform:uppercase;color:var(--ink3)}
.slabfacts b{display:block;font:700 21px/1.1 var(--fig);letter-spacing:-.03em;margin-top:3px;font-variant-numeric:tabular-nums}
.slabfall{margin:12px 0 0;font-size:13.5px;color:var(--ink2);border-left:2px solid var(--edge);padding-left:10px}
.trayslab.live .slabfall{border-left-color:var(--screenmid)}
.callbtn{
  margin:14px 0 0; width:100%; display:flex; align-items:center; justify-content:center; gap:9px;
  font-family:var(--poster); font-size:21px; letter-spacing:.05em;
  padding:14px 16px; border-radius:3px; background:var(--ink); color:var(--ground);
}
.trayslab.live .callbtn{background:var(--screen);color:#06060A}
.callbtn[disabled]{background:var(--paper2);color:var(--ink3);cursor:not-allowed}
.callbtn em{font:400 13px/1 Inter,sans-serif;font-style:normal;opacity:.7}
.youre{margin:10px 0 0;font-size:13px;color:var(--screen)}

/* ---------- the column beside it ---------- */
#beside{display:flex;flex-direction:column;gap:14px;padding:10px 0 0}
.plate{background:var(--paper);border:1px solid var(--edge);border-radius:4px;padding:14px}
.plate h3{font-size:19px;letter-spacing:.05em;color:var(--ink2)}
.platesub{margin:4px 0 0;font-size:12.5px;color:var(--ink3)}
.bigline{display:flex;align-items:baseline;gap:8px;margin:10px 0 0}
.bigline b{font:700 38px/.95 var(--fig);letter-spacing:-.04em;font-variant-numeric:tabular-nums}
.bigline i{font-style:normal;font-size:13px;color:var(--ink2)}
.pairs{margin:12px 0 0;display:flex;flex-direction:column;gap:7px}
.pairs div{display:flex;justify-content:space-between;gap:10px;font-size:13.5px}
.pairs span{color:var(--ink3)}
.pairs b{font-weight:600;font-variant-numeric:tabular-nums}
.roomline{display:flex;align-items:center;gap:8px;padding:7px 0;border-top:1px dashed var(--edge);font-size:13px}
.roomline:first-of-type{border-top:0}
.roomline code{color:var(--ink2)}
.roomline .tag{font:700 12px/1 var(--fig);letter-spacing:.02em;color:var(--screen);flex:0 0 auto;min-width:20px}
.roomline .when{margin-left:auto;color:var(--ink3);font-size:11.5px;flex:0 0 auto}
.quiet{color:var(--ink3);font-size:13.5px;margin:10px 0 0}
.sifthead{display:flex;justify-content:space-between;font-size:13px;padding:8px 0;border-top:1px dashed var(--edge)}
.sifthead a{color:var(--ink2);text-decoration:none}
.sifthead b{font-weight:500}
.primerlist{margin:10px 0 0;padding:0;list-style:none;display:flex;flex-direction:column;gap:8px;font-size:13.5px;color:var(--ink2)}
.primerlist li{padding-left:16px;position:relative}
.primerlist li::before{content:"";position:absolute;left:0;top:8px;width:7px;height:7px;background:var(--screenmid)}
.walletchip{display:flex;align-items:center;gap:8px;width:100%;font-size:13px;color:var(--ink2)}
.walletchip b{color:var(--screen);font-weight:500}

/* ---------- long-form views ---------- */
.prose{padding:24px 0 10px;max-width:60ch}
.prose h1{font-size:clamp(34px,10vw,48px)}
.prose h2{font-size:24px;letter-spacing:.04em;margin:28px 0 8px;color:var(--ink2)}
.prose p{color:var(--ink2);font-size:15px}
.prose strong{color:var(--ink);font-weight:500}
.slate{width:100%;border-collapse:collapse;margin:14px 0 0;font-size:13.5px}
.slate th{text-align:left;font:400 10.5px/1 Inter,sans-serif;letter-spacing:.09em;text-transform:uppercase;color:var(--ink3);padding:0 8px 8px 0}
.slate td{padding:9px 8px 9px 0;border-top:1px solid var(--edge)}
.slate td:last-child,.slate th:last-child{text-align:right;padding-right:0}
.slate b{font:700 16px/1 var(--fig);letter-spacing:-.025em;font-variant-numeric:tabular-nums}

/* ---------- footer ---------- */
.foot{border-top:1px solid var(--edge);margin-top:26px;padding:22px 14px 40px;max-width:640px;margin-left:auto;margin-right:auto}
.footnav{display:flex;flex-wrap:wrap;gap:16px;font-size:13.5px}
.footnav a{color:var(--ink2);text-decoration:none}
.footnav a:hover{color:var(--screen)}
.footca{margin:16px 0 0;display:flex;flex-direction:column;gap:8px}
.footca div{display:flex;flex-direction:column;gap:2px}
.footca span{font-size:10.5px;letter-spacing:.09em;text-transform:uppercase;color:var(--ink3)}
.footca code{color:var(--ink2)}
.footnote{margin:16px 0 0;font-size:12px;color:var(--ink3)}

/* ---------- sheet + toast ---------- */
#sheet{position:fixed;inset:0;z-index:90;background:rgba(6,6,10,.8);display:flex;align-items:flex-end;justify-content:center;padding:0}
#sheet[hidden]{display:none!important}
.sheetbox{width:100%;max-width:540px;background:var(--paper);border:1px solid var(--edge);border-radius:10px 10px 0 0;padding:16px;max-height:86vh;overflow:auto}
.sheethead{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.sheethead b{font-family:var(--poster);font-weight:400;font-size:22px;letter-spacing:.04em}
.sheethead button{font-size:12.5px;color:var(--ink3);letter-spacing:.04em}
.picker{display:flex;flex-direction:column;gap:8px}
.picker button{display:flex;align-items:center;gap:10px;width:100%;padding:12px;background:var(--paper2);border:1px solid var(--edge);border-radius:4px;font-size:14px}
.picker img{width:22px;height:22px;border-radius:5px}
.puff{
  position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:120;
  background:var(--ink);color:var(--ground);padding:11px 16px;border-radius:3px;
  font-size:13.5px;max-width:calc(100vw - 28px);text-align:center;box-shadow:0 10px 30px rgba(0,0,0,.6);
}

/* a disc falling through the sieve when a call lands */
.fall{position:fixed;z-index:55;width:9px;height:9px;border-radius:50%;background:var(--screen);box-shadow:0 0 12px var(--screen);pointer-events:none;animation:drop 1.1s cubic-bezier(.4,0,.8,1) forwards}
@keyframes drop{0%{opacity:0;transform:translateY(-14px)}15%{opacity:1}100%{opacity:0;transform:translateY(150px)}}
@media (prefers-reduced-motion:reduce){.fall{display:none}.gaugefill{transition:none}}

/* ---------- a wider measure ---------- */
@media (min-width:720px){
  :root{--strip:60px}
  #mill{max-width:760px;padding:0 24px 48px}
  .foot{max-width:760px;padding-left:24px;padding-right:24px}
  .striplive{display:block}
  #lede{padding:40px 0 10px}
  #lede h1{font-size:clamp(54px,7.6vw,72px)}
  .ledesub{font-size:17px}
  .gaugerow{grid-template-columns:30px 1fr 84px}
  .gaugetrack{height:26px}
  .gaugeX{font-size:24px}
  .slabX{font-size:68px}
  .trayslab{padding:24px 22px 20px}
  .slabfacts b{font-size:25px}
}

/* ---------- desktop: the sieve keeps the page, the room moves beside it ---------- */
@media (min-width:1000px){
  #mill{
    max-width:1180px; display:grid; grid-template-columns:minmax(0,1fr) 372px;
    gap:34px; align-items:start; padding:0 32px 64px;
  }
  .foot{max-width:1180px;padding-left:32px;padding-right:32px}
  #lede{padding:56px 0 10px}
  #lede h1{font-size:76px}
  #beside{position:sticky;top:calc(var(--strip) + 22px);max-height:calc(100vh - var(--strip) - 40px);overflow:auto;padding-top:56px}
  #beside::-webkit-scrollbar{width:6px}
  #beside::-webkit-scrollbar-thumb{background:var(--edge);border-radius:3px}
  .slabX{font-size:80px}
  .prose{max-width:68ch}
  .footca{flex-direction:row;gap:40px}
}
@media (min-width:1280px){
  #mill{max-width:1240px;grid-template-columns:minmax(0,1fr) 400px}
  .foot{max-width:1240px}
  #lede h1{font-size:88px}
}
