/* ============================================================================
   BIDROOM / DISCOVER — cyberslims reskin (index.html only)
   Metaphor: a printed CONVICTION EXCHANGE BULLETIN from a fictional floor
   authority. Pure black & white. Ink on warm paper. Monumental condensed
   display violently mixed with mono annotations. Every interaction inverts.
   This stylesheet fully replaces the shared bidroom.css FOR THE INDEX PAGE
   ONLY — it styles every class the page and its shared JS renderers emit.
   ========================================================================== */

:root {
  --paper: #efede6;
  --paper-2: #e7e4da;
  --ink: #0e0e0c;
  --ink-soft: #26251f;
  --gray: #78736a;       /* one warm gray — secondary text */
  --faint: #cdc7b9;      /* one faint outline tone */
  --line: #0e0e0c;
  --disp: "Anton", "Archivo Black", Impact, sans-serif;
  --grot: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "Space Mono", ui-monospace, monospace;
  --rail: 30px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
  cursor: crosshair;
  overflow-x: clip;   /* clip (not hidden) so body never becomes a scroll container */
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--ink); color: var(--paper); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: crosshair; background: none; border: 0; }
input { font: inherit; }
b, strong { font-weight: 700; }
.hide { display: none !important; }

/* paper grain overlay --------------------------------------------------- */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 9990; pointer-events: none;
  opacity: 0.05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------------------- layout */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 64px); }
main { position: relative; z-index: 2; }
/* inset ALL content past the fixed side rails so nothing hides under them */
@media (min-width: 900px) {
  header.top, .tape, main, .site-foot { margin-left: var(--rail); margin-right: var(--rail); }
}

/* fixed side rails ------------------------------------------------------- */
.cs-rail {
  position: fixed; top: 0; bottom: 0; width: var(--rail); z-index: 60;
  border-right: 1px solid var(--ink); background: var(--paper);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 14px 0; pointer-events: none;
}
.cs-rail.right { right: 0; left: auto; border-right: 0; border-left: 1px solid var(--ink); }
.cs-rail .rail-txt {
  writing-mode: vertical-rl; text-orientation: mixed; font-family: var(--mono);
  font-size: 9px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--ink);
}
.cs-rail .rail-ticks { flex: 1; width: 100%; margin: 12px 0;
  background-image: repeating-linear-gradient(180deg, var(--ink) 0 1px, transparent 1px 11px);
  background-position: right; background-repeat: no-repeat; background-size: 6px 100%;
}
.cs-rail.right .rail-ticks { background-position: left; }
.cs-rail .rail-no { font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; color: var(--gray); }
@media (max-width: 900px) { .cs-rail { display: none; } }

/* giant outlined glyph bleeding behind content -------------------------- */
.cs-glyph {
  position: fixed; right: -4vw; bottom: -12vh; z-index: 1; pointer-events: none;
  font-family: var(--disp); font-size: 92vh; line-height: 0.7; color: transparent;
  -webkit-text-stroke: 1px var(--faint); text-stroke: 1px var(--faint);
  user-select: none;
}
@media (max-width: 900px) { .cs-glyph { display: none; } }

/* registration crosshair ------------------------------------------------ */
.cs-reg { position: relative; }
.cs-reg::before, .cs-reg::after {
  content: ""; position: absolute; background: var(--ink);
}
.cs-reg::before { width: 13px; height: 1px; }
.cs-reg::after { width: 1px; height: 13px; }

/* =============================================================== loader */
.cs-loader {
  position: fixed; inset: 0; z-index: 9999; background: var(--paper);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden;
}
.cs-loader .ld-plate { position: relative; }
.cs-loader .ld-title {
  font-family: var(--disp); font-size: clamp(56px, 15vw, 190px); line-height: 0.86;
  letter-spacing: 0.01em; color: var(--ink); position: relative;
}
.cs-loader .ld-title .ld-echo {
  position: absolute; inset: 0; color: var(--ink);
  filter: blur(2.2px) contrast(1.5); opacity: 0.4;
}
.cs-loader .ld-title .ld-echo.b { transform: translate(3px, -2px); opacity: 0.28; }
.cs-loader .ld-scan {
  position: absolute; left: -6%; right: -6%; height: 46px; top: 0;
  background: linear-gradient(180deg, transparent, rgba(14,14,12,0.16), transparent);
  mix-blend-mode: multiply;
}
.cs-loader .ld-meta {
  margin-top: 30px; width: min(560px, 82vw);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink); display: flex; justify-content: space-between; gap: 16px;
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 8px 2px;
}
.cs-loader .ld-status { color: var(--gray); }
.cs-loader .ld-corner {
  position: fixed; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gray);
}
.cs-loader .lc-tl { top: 18px; left: 22px; }
.cs-loader .lc-tr { top: 18px; right: 22px; }
.cs-loader .lc-bl { bottom: 18px; left: 22px; }
.cs-loader .lc-br { bottom: 18px; right: 22px; }
.cs-loader.wipe { transform: translateY(-101%); transition: transform 0.62s cubic-bezier(.7,0,.3,1); }
body.cs-loading { overflow: hidden; }

/* ================================================================ ticker */
.tape {
  position: relative; z-index: 40; background: var(--ink); color: var(--paper);
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
  overflow: hidden; white-space: nowrap; padding: 7px 0;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
}
.tape-track { display: inline-block; animation: tape 44s linear infinite; }
.tape-item { padding: 0 26px; border-right: 1px solid rgba(239,237,230,0.28); }
.tape-item .tk { font-weight: 700; }
.tape-item .up::before { content: "▲ "; }
.tape-item .down::before { content: "▽ "; }
@keyframes tape { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ================================================================= header */
header.top {
  position: sticky; top: 0; z-index: 50; background: var(--paper);
  border-bottom: 1px solid var(--ink);
}
header.top .nav-in {
  display: flex; align-items: stretch; gap: 0; min-height: 58px;
}
.logo {
  display: flex; align-items: center; gap: 0; align-self: stretch; padding-right: 22px;
  border-right: 1px solid var(--ink);
  font-family: var(--disp); font-size: 24px; letter-spacing: 0.02em;
}
.logo .lmark {
  width: 22px; height: 22px; margin-right: 12px; border: 1px solid var(--ink);
  position: relative; align-self: center;
}
.logo .lmark::after {
  content: "B"; position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--disp); font-size: 15px;
}
.logo .bid, .logo .room { color: var(--ink); }  /* pure B/W — no acid */
.nav-links { display: flex; align-items: stretch; }
.nav-links a {
  display: flex; align-items: center; padding: 0 18px; border-right: 1px solid var(--ink);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  transition: background 0.09s linear, color 0.09s linear;
}
.nav-links a:hover, .nav-links a:focus-visible { background: var(--ink); color: var(--paper); outline: none; }
.nav-links a.on { background: var(--ink); color: var(--paper); }
.nav-sp { flex: 1; }
.wallet-slot { display: flex; align-items: center; padding: 0 14px; border-left: 1px solid var(--ink); }
.nav-burger { display: none; padding: 0 16px; border-left: 1px solid var(--ink); align-items: center; }
.nav-burger svg { width: 20px; height: 20px; stroke: var(--ink); }
.nav-drawer { display: none; border-bottom: 1px solid var(--ink); }
.nav-drawer a {
  display: block; padding: 14px 20px; border-top: 1px solid var(--faint);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
}
.nav-drawer.open { display: block; }
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
}

/* wallet chip / button as stamps --------------------------------------- */
.wallet-cta, .wallet-chip {
  font-family: var(--mono) !important; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid var(--ink); background: var(--paper); color: var(--ink);
  padding: 9px 14px; display: inline-flex; align-items: center; gap: 8px;
  transition: background 0.09s linear, color 0.09s linear;
}
.wallet-cta:hover, .wallet-chip:hover { background: var(--ink); color: var(--paper); }
.wallet-chip .dot { width: 7px; height: 7px; background: currentColor; }
.wallet-chip .car { margin-left: 2px; }
.wallet-menu {
  position: absolute; top: 100%; right: 0; margin-top: -1px; min-width: 230px; z-index: 80;
  background: var(--paper); border: 1px solid var(--ink);
}
.wallet-menu .wm-bal { padding: 12px 14px; border-bottom: 1px solid var(--ink); }
.wallet-menu .wm-bal b { font-family: var(--mono); font-size: 12px; display: block; }
.wallet-menu .wm-bal span { font-size: 10px; color: var(--gray); text-transform: uppercase; letter-spacing: 0.1em; }
.wallet-menu a, .wallet-menu button {
  display: block; width: 100%; text-align: left; padding: 11px 14px; border-top: 1px solid var(--faint);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
}
.wallet-menu a:hover, .wallet-menu button:hover { background: var(--ink); color: var(--paper); }

/* ================================================================== hero */
.hero { position: relative; border-bottom: 1px solid var(--ink); padding: 4px 0 0; }
.hero-inner { position: relative; padding: clamp(26px, 5vw, 60px) 0 34px; }
.hero-word {
  font-family: var(--disp); font-weight: 400;
  font-size: clamp(84px, 20vw, 300px); line-height: 0.82; letter-spacing: 0.005em;
  text-transform: uppercase; margin: 0 0 0 -0.02em;
}
.hero-tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.5em; text-transform: uppercase;
  color: var(--ink); margin: 16px 0 26px; padding-left: 0.3em;
}
.acid-x { color: var(--ink); }         /* was acid green — now ink */
.hero-scan { display: none; }           /* retired scan band */
.hero-line {
  font-family: var(--disp); font-size: clamp(24px, 4.4vw, 54px); line-height: 0.98;
  text-transform: uppercase; letter-spacing: 0.01em; max-width: 16ch;
}
.hero-sub {
  font-family: var(--mono); font-size: 12.5px; line-height: 1.65; color: var(--ink-soft);
  max-width: 52ch; margin: 20px 0 0; text-transform: uppercase; letter-spacing: 0.04em;
}
.hero-sub b { border-bottom: 2px solid var(--ink); }
.hero-cta { display: flex; gap: 14px; margin: 30px 0 0; flex-wrap: wrap; }

/* buttons as stamps ----------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--ink);
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 14px 22px; border-radius: 0; transition: background 0.09s linear, color 0.09s linear;
  position: relative;
}
.btn-lg { padding: 17px 30px; font-size: 12px; }
.btn-sm { padding: 9px 14px; font-size: 10.5px; }
.btn-acid { background: var(--ink); color: var(--paper); }          /* solid-ink stamp */
.btn-acid:hover { background: var(--paper); color: var(--ink); }
.btn-ghost { background: var(--paper); color: var(--ink); }         /* outline stamp */
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-acid::after {
  content: "▸"; font-size: 11px;
}
.btn-ghost::after { content: "▸"; font-size: 11px; }

/* hero stats → ledger tape --------------------------------------------- */
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 46px;
  border: 1px solid var(--ink);
}
.hstat {
  padding: 16px 18px; border-right: 1px solid var(--ink); display: flex; flex-direction: column; gap: 8px;
}
.hstat:last-child { border-right: 0; justify-content: center; }
.hstat b { font-family: var(--disp); font-size: clamp(26px, 3.6vw, 46px); line-height: 0.9; }
.hstat span { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gray); }
/* live floor-status ledger entry (fixes the lone floating chip in L/04) */
.hstat-live b { display: inline-flex; align-items: center; gap: 10px; font-size: clamp(22px, 3vw, 38px); }
.hstat-live .live-dot { width: 12px; height: 12px; background: var(--ink); animation: livepulse 1.6s steps(1) infinite; }
@keyframes livepulse { 0%, 60% { opacity: 1; } 61%, 100% { opacity: 0.18; } }
.hstat::before {
  content: "LEDGER"; font-family: var(--mono); font-size: 8px; letter-spacing: 0.2em;
  color: var(--gray); align-self: flex-start;
}
.hstat:nth-child(1)::before { content: "L/01"; }
.hstat:nth-child(2)::before { content: "L/02"; }
.hstat:nth-child(3)::before { content: "L/03"; }
.hstat:nth-child(4)::before { content: "L/04"; }
@media (max-width: 700px) { .hero-stats { grid-template-columns: 1fr 1fr; }
  .hstat:nth-child(2) { border-right: 0; } .hstat:nth-child(1), .hstat:nth-child(2) { border-bottom: 1px solid var(--ink); } }

/* =============================================================== sections */
.sec { position: relative; padding: clamp(48px, 8vw, 96px) 0; border-bottom: 1px solid var(--ink); }
.sec.dark { background: var(--ink); color: var(--paper); }
.sec.dark .eyebrow, .sec.dark .sec-sub { color: var(--paper); }
.sec.dark .sec-sub { opacity: 0.72; }
.sec-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 28px;
  flex-wrap: wrap; margin-bottom: 34px; position: relative;
}
.eyebrow {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gray); display: block; margin-bottom: 14px;
}
.eyebrow::before { content: "// "; }
.sec-t {
  font-family: var(--disp); font-weight: 400; font-size: clamp(38px, 6.6vw, 92px);
  line-height: 0.9; text-transform: uppercase; letter-spacing: 0.01em;
}
.sec-sub {
  font-family: var(--mono); font-size: 11px; line-height: 1.7; color: var(--ink-soft);
  max-width: 40ch; text-transform: uppercase; letter-spacing: 0.05em; text-align: right;
}
/* giant outlined section index numbers */
.sec { counter-increment: seccount; }
.sec > .wrap { position: relative; }
.sec > .wrap::before {
  content: "0" counter(seccount); position: absolute; top: -18px; right: 0; z-index: 0;
  font-family: var(--disp); font-size: clamp(120px, 22vw, 300px); line-height: 0.7;
  color: transparent; -webkit-text-stroke: 1px var(--faint); pointer-events: none; opacity: 0.5;
}
.sec.dark > .wrap::before { -webkit-text-stroke: 1px rgba(239,237,230,0.18); }
.sec > .wrap > * { position: relative; z-index: 1; }

/* toolbar / search / filters ------------------------------------------- */
.toolbar { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 26px; align-items: stretch; }
.search { display: flex; align-items: center; gap: 10px; border: 1px solid var(--ink); padding: 0 14px; flex: 1; min-width: 240px; background: var(--paper); }
.search svg { width: 15px; height: 15px; stroke: var(--ink); flex: none; }
.search input {
  border: 0; background: none; padding: 13px 0; width: 100%; color: var(--ink);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
}
.search input::placeholder { color: var(--gray); }
.search input:focus { outline: none; }
.filters { display: flex; border: 1px solid var(--ink); }
.fchip {
  padding: 12px 18px; border-right: 1px solid var(--ink);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  transition: background 0.09s linear, color 0.09s linear;
}
.fchip:last-child { border-right: 0; }
.fchip:hover { background: var(--ink); color: var(--paper); }
.fchip.on { background: var(--ink); color: var(--paper); }

/* ================================================= room cards → exhibits */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--ink); }
.grid-3 > .room-card { border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.grid-3 > .room-card:nth-child(3n) { border-right: 0; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } .grid-3 > .room-card:nth-child(3n) { border-right: 1px solid var(--ink); } .grid-3 > .room-card:nth-child(2n) { border-right: 0; } }
@media (max-width: 560px) { .grid-3 { grid-template-columns: 1fr; } .grid-3 > .room-card { border-right: 0 !important; } }

.room-card {
  position: relative; display: block; padding: 18px 18px 16px;
  background: var(--paper); transition: background 0.1s linear, color 0.1s linear;
  overflow: hidden;
}
.room-card:hover { background: var(--ink); color: var(--paper); }
.room-card:hover .rc-name, .room-card:hover .rc-price, .room-card:hover .plate-tk { color: var(--paper); }
.room-card:hover .plate,
.room-card:hover .rc-stat,
.room-card:hover .meter,
.room-card:hover .chip { border-color: var(--paper); }
.room-card:hover .rc-stat span, .room-card:hover .rc-sub, .room-card:hover .meter-label { color: var(--paper); opacity: 0.85; }

/* per-exhibit "floor sentiment" emote stamps (varies by position) */
.room-card::after {
  position: absolute; top: 12px; right: 14px; z-index: 3;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gray); text-align: right; white-space: nowrap;
}
.room-card:hover::after { color: var(--paper); opacity: 0.9; }
.room-card:nth-child(8n+1)::after { content: ">_< VOLATILE"; }
.room-card:nth-child(8n+2)::after { content: "-_- UNBOTHERED"; }
.room-card:nth-child(8n+3)::after { content: "o_O WATCHING"; }
.room-card:nth-child(8n+4)::after { content: "=) CONVICTION"; }
.room-card:nth-child(8n+5)::after { content: ":| NO COMMENT"; }
.room-card:nth-child(8n+6)::after { content: "^_^ HODLING"; }
.room-card:nth-child(8n+7)::after { content: "T_T CAPITULATED"; }
.room-card:nth-child(8n+8)::after { content: ">:] OVEREXPOSED"; }

/* LEAD listing — the top-of-board exhibit gets hierarchy so the grid isn't
   six equal tiles. Only the trending board has a lead. */
#grid-trending > .room-card:first-child { border-top: 3px solid var(--ink); padding-top: 30px; }
#grid-trending > .room-card:first-child::before {
  content: "\2460 TOP OF BOARD"; position: absolute; top: 0; left: 0; z-index: 3;
  background: var(--ink); color: var(--paper); padding: 5px 10px;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase;
}
#grid-trending > .room-card:first-child .plate { background: var(--ink); border-color: var(--ink); }
#grid-trending > .room-card:first-child .plate-tk { color: var(--paper); }
#grid-trending > .room-card:first-child .plate-idx { color: var(--paper); opacity: 0.6; }
#grid-trending > .room-card:first-child .rc-name { font-size: 27px; }
#grid-trending > .room-card:first-child:hover .plate { background: var(--paper); border-color: var(--paper); }
#grid-trending > .room-card:first-child:hover .plate-tk { color: var(--ink); }

.rc-top { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; padding-right: 92px; }
.plate {
  position: relative; width: 54px; height: 54px; flex: none; border: 1px solid var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: var(--paper); overflow: hidden;
}
.plate-idx { font-family: var(--mono); font-size: 7px; letter-spacing: 0.08em; color: var(--gray); position: absolute; top: 3px; left: 4px; }
.plate-led { display: none; }
.plate-tk { font-family: var(--disp); font-size: 17px; line-height: 1; color: var(--ink); }
.plate-lg { width: 74px; height: 74px; }
.plate-lg .plate-tk { font-size: 24px; }
.rc-id { min-width: 0; }
.rc-name { font-family: var(--disp); font-size: 21px; line-height: 0.94; text-transform: uppercase; margin-bottom: 8px; }
.rc-sub { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

/* chips → mono tags */
.chip {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid var(--ink); padding: 4px 7px; display: inline-flex; align-items: center; gap: 5px;
  color: var(--ink); background: var(--paper);
}
.chip-ticker { font-weight: 700; }
.chip-live .led, .chip-soon .led { width: 6px; height: 6px; background: var(--ink); display: inline-block; }
.chip-grad { background: var(--ink); color: var(--paper); }
.chip-new { border-style: dashed; }

.rc-price-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.rc-price { font-family: var(--mono); font-size: 15px; font-weight: 700; }
.rc-chg { font-family: var(--mono); font-size: 11px; }
.rc-chg.up::before { content: "▲"; margin-right: 3px; font-size: 8px; }
.rc-chg.down::before { content: "▽"; margin-right: 3px; font-size: 8px; }
.rc-spark { margin-left: auto; color: var(--ink); opacity: 0.55; }
.room-card:hover .rc-spark { color: var(--paper); opacity: 0.8; }

.rc-stats { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ink); margin-bottom: 14px; }
.rc-stat { padding: 9px 10px; border-right: 1px solid var(--ink); }
.rc-stat:last-child { border-right: 0; }
.rc-stat span { font-family: var(--mono); font-size: 8px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray); display: block; margin-bottom: 4px; }
.rc-stat b { font-family: var(--mono); font-size: 12px; }

.meter-row { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.meter-label { font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray); }
.meter-label b { color: var(--ink); font-weight: 700; }
.room-card:hover .meter-label b { color: var(--paper); }
.rc-earning { text-align: right; }
.meter { display: flex; gap: 2px; border: 1px solid var(--ink); padding: 3px; height: 16px; }
.meter .seg { flex: 1; background: transparent; }
.meter .seg.on { background: var(--ink); }
.room-card:hover .meter .seg.on { background: var(--paper); }
.meter .seg.tick { flex: none; width: 2px; background: var(--gray); }
.meter.is-grad { outline: 1px solid var(--ink); }

/* how it works → numbered protocol ------------------------------------- */
.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--paper); }
.sec.dark .how-grid { border-color: var(--paper); }
.how-step { padding: 22px 20px; border-right: 1px solid rgba(239,237,230,0.3); position: relative; }
.how-step:last-child { border-right: 0; }
.how-step .num {
  font-family: var(--disp); font-size: clamp(44px, 6vw, 80px); line-height: 0.8; display: block;
  color: transparent; -webkit-text-stroke: 1px var(--paper); margin-bottom: 18px;
}
.how-step h3 { font-family: var(--disp); font-size: 20px; text-transform: uppercase; margin-bottom: 10px; line-height: 0.98; }
.how-step p { font-family: var(--mono); font-size: 10.5px; line-height: 1.7; text-transform: uppercase; letter-spacing: 0.04em; opacity: 0.82; }
@media (max-width: 820px) { .how-grid { grid-template-columns: 1fr 1fr; } .how-step:nth-child(2) { border-right: 0; } .how-step:nth-child(1), .how-step:nth-child(2) { border-bottom: 1px solid rgba(239,237,230,0.3); } }
@media (max-width: 520px) { .how-grid { grid-template-columns: 1fr; } .how-step { border-right: 0 !important; border-bottom: 1px solid rgba(239,237,230,0.3); } }

/* final cta → stamped directive ---------------------------------------- */
.cta-panel {
  border: 1px solid var(--ink); display: flex; justify-content: space-between; align-items: center;
  gap: 30px; padding: clamp(28px, 5vw, 56px); flex-wrap: wrap;
}
.cta-panel h2 { font-family: var(--disp); font-size: clamp(30px, 5vw, 62px); line-height: 0.92; text-transform: uppercase; max-width: 18ch; }
.cta-panel p { font-family: var(--mono); font-size: 11px; line-height: 1.7; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); margin-top: 14px; max-width: 46ch; }

/* empty state ----------------------------------------------------------- */
.empty { border: 1px solid var(--ink); padding: 30px; text-align: center; }
.empty b { font-family: var(--disp); font-size: 26px; text-transform: uppercase; display: block; margin-bottom: 8px; }
.empty p { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray); margin-bottom: 16px; }

/* ================================================================ footer */
.site-foot { border-top: 1px solid var(--ink); background: var(--paper); padding: 40px 0 30px; position: relative; z-index: 2; }
.foot-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: flex-start; border-bottom: 1px solid var(--ink); padding-bottom: 24px; margin-bottom: 20px; }
.foot-brand .logo { border-right: 0; padding-right: 0; font-size: 30px; }
.foot-brand p { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gray); margin-top: 10px; }
.foot-links { display: flex; gap: 0; flex-wrap: wrap; border: 1px solid var(--ink); }
.foot-links a, .foot-links .chip {
  padding: 11px 15px; border-right: 1px solid var(--ink); border-radius: 0;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
}
.foot-links a:hover { background: var(--ink); color: var(--paper); }
.foot-links .chip { border: 0; border-right: 1px solid var(--ink); }
.foot-links > *:last-child { border-right: 0; }
.foot-note { font-family: var(--mono); font-size: 10px; line-height: 1.8; color: var(--gray); text-transform: uppercase; letter-spacing: 0.04em; max-width: 92ch; }
/* redaction bars inside the disclaimer (decorative, applied by JS-free spans) */
.rdct { background: var(--ink); color: var(--ink); padding: 0 2px; user-select: none; }

/* barcode + serial strip in footer ------------------------------------- */
.cs-barcode { height: 42px; margin: 22px 0 8px; width: min(320px, 60vw);
  background-image: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 9px, var(--ink) 9px 12px, transparent 12px 14px); }
.cs-serialrow { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray); }

/* =============================================================== toasts */
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 9997; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--ink); color: var(--paper); border: 1px solid var(--ink); padding: 11px 16px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.toast .t-dot { width: 7px; height: 7px; background: var(--paper); }
.toast.out { opacity: 0; transition: opacity 0.2s linear; }

/* =============================================================== modals */
.modal-backdrop { position: fixed; inset: 0; z-index: 9998; background: rgba(14,14,12,0.6); display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-backdrop.show { display: flex; }
.modal { background: var(--paper); border: 1px solid var(--ink); width: min(440px, 94vw); }
.m-head { display: flex; justify-content: space-between; align-items: center; padding: 15px 18px; border-bottom: 1px solid var(--ink); font-family: var(--disp); font-size: 20px; text-transform: uppercase; }
.m-close { font-family: var(--mono); font-size: 14px; }
.m-status { padding: 12px 18px; border-bottom: 1px solid var(--ink); display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }
.wopts { display: flex; flex-direction: column; }
.wopt { text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--faint); font-family: var(--mono); text-transform: uppercase; }
.wopt:hover { background: var(--ink); color: var(--paper); }
.wopt b { display: block; font-size: 12px; letter-spacing: 0.1em; }
.wopt span { font-size: 9.5px; color: var(--gray); letter-spacing: 0.08em; }
.wopt:hover span { color: var(--paper); }
.wconnecting { padding: 34px 18px; text-align: center; font-family: var(--mono); text-transform: uppercase; }
.wconnecting b { display: block; font-size: 13px; letter-spacing: 0.1em; margin: 14px 0 6px; }
.wconnecting span { font-size: 10px; color: var(--gray); }
.spinner { width: 26px; height: 26px; border: 2px solid var(--faint); border-top-color: var(--ink); border-radius: 50%; margin: 0 auto; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.m-foot { padding: 14px 18px; border-top: 1px solid var(--ink); font-family: var(--mono); font-size: 9.5px; line-height: 1.6; color: var(--gray); text-transform: uppercase; letter-spacing: 0.06em; }

/* ================================================= dematerialize hover */
/* Real text keeps its box; ghost + slice clones are injected by JS. */
.dmz { position: relative; display: inline-block; }
.dmz .dmz-base { position: relative; z-index: 3; transition: opacity 0.14s linear; }
.dmz.on .dmz-base { opacity: 0.14; }
.dmz .dmz-ghost {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
  filter: blur(1.6px) contrast(1.6); color: var(--ink);
}
.dmz.on .dmz-ghost { opacity: 0.35; }
.dmz .dmz-slice {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; color: var(--ink);
  will-change: transform, opacity; opacity: 0;
}
.dmz.on .dmz-slice { opacity: 1; }
.dmz .dmz-particle { position: absolute; background: var(--ink); z-index: 4; pointer-events: none; }

/* ============================================================ utilities */
@media (prefers-reduced-motion: reduce) {
  .tape-track { animation: none; }
  .spinner { animation: none; }
  .cs-loader .ld-scan { display: none; }
  .dmz.on .dmz-slice, .dmz .dmz-particle, .dmz .dmz-ghost { display: none !important; }
}
