/* ============================================================
   VERIFIER TERMINAL — hero rail
   Front page only. Loads after home.css.

   FROST CONSOLE (2026-08-09). The panel used to be a #04070b slab that
   stayed dark in both themes. On the light rail that read as a hole
   punched between two white .nr-cards, and its 11.5px log / 11px hex
   sat at the edge of legibility in either theme. It is now a bright
   console that belongs to the page it lives on, with a dark
   counterpart built from the same design — not a reversion to the slab.

   Three decisions carry the look:
     1. Tint, not darkness. An accent wash falls 120px from the top of
        the card and the toolbar floats on it as a frosted bar. Depth
        comes from that wash plus layered soft shadow.
     2. Two data blocks. Both digests share one tinted sub-panel
        (.tm-dg) so the hashes read as instrumentation; the headline and
        its picture share a hero card (.tm-hero) with an accent bloom.
        Both wrappers are emitted by terminal.js render().
     3. Everything that can be a pill is a pill — the live status tag,
        the derivation steps, the chips, the verdict, the run button.

   The three window lights are deliberately UNCHANGED from the previous
   skin: macOS traffic lights, glyphs revealed on hover of the group.
   red clears · amber folds · green reboots.

   TYPE FLOOR — the second half of the brief. Nothing here is under
   11px, and the pieces that carry the proof are bigger than that:
     log 12.5 · hex 12 · rl/rn/dv/chip/ps1/in 11.5 · tag/rc/k/sc 11 ·
     ROLL 40 (26 before).

   Layout order inside one result:
     .tm-dg    → both hex ribbons, consumed bytes lit
     .tm-drv   → the casino's own derivation steps
     .tm-hero  → headline value + the picture (board, pyramid, wheel…)
     verdict pill, then the link to the full verifier
   ============================================================ */

.dyi-term{
  --tm-f:var(--font-mono);
  --tm-fu:var(--font-sans);

  /* --- surfaces --- */
  --tm-card:#ffffff;
  --tm-wash:rgba(59,130,246,.07);
  --tm-edge:#dde4ef;
  --tm-bar:rgba(255,255,255,.72);
  --tm-bar-line:rgba(15,23,42,.09);
  --tm-bar-shadow:0 6px 16px -12px rgba(30,64,140,.45);
  --tm-panel:#f6f9ff;
  --tm-panel-line:rgba(37,99,235,.28);
  --tm-panel-div:rgba(37,99,235,.20);
  --tm-hero:#ffffff;
  --tm-hero-bloom:rgba(59,130,246,.15);
  --tm-foot:linear-gradient(180deg,#fbfcfe,#f5f8fc);
  --tm-foot-line:#e2e8f2;

  /* --- ink. Every one of these is >=4.5:1 on the surface it lands on;
         the hex body, which is the element the redesign exists for,
         runs 16.7:1 in light and 12.9:1 in dark. --- */
  --tm-ink:#0e1116;
  --tm-log-ink:#263140;
  --tm-lbl:#3f4753;
  --tm-note:#475264;
  --tm-hex:#131922;
  --tm-fig:#0b0f15;
  --tm-quiet:#5c6675;

  /* --- controls --- */
  --tm-ctl:#ffffff;
  --tm-ctl-edge:#c6d2e3;
  --tm-ctl-ink:#2c3644;
  --tm-ctl-hover:#eff5ff;
  --tm-ctl-shadow:0 1px 2px rgba(16,17,22,.06);

  /* --- accent + status --- */
  --tm-acc:#2563eb;
  --tm-acc-deep:#1d4ed8;
  --tm-acc-soft:rgba(59,130,246,.10);
  --tm-acc-line:rgba(37,99,235,.30);
  /* The status pill's ink sits on a tinted fill, not on the card, so it
     needs its own step — the accent that clears AA on white does not clear
     it on the dark pill. */
  --tm-tag-ink:#1d4ed8;
  --tm-lit-ink:#ffffff;
  --tm-lit-bg:#1d4ed8;
  --tm-lit-glow:0 3px 11px rgba(37,99,235,.34);
  --tm-ok:#0f8f5d;
  --tm-ok-ink:#0a6b46;
  --tm-ok-fill:linear-gradient(180deg,#ebf8f2,#e2f4ec);
  --tm-ok-line:rgba(15,143,93,.50);
  --tm-err:#b3261e;
  --tm-hot:#c0392b;
  --tm-gold:#8a6100;

  /* --- meter --- */
  --tm-track:#e7ecf4;
  --tm-track-ring:#7f8998;
  --tm-track-fill:linear-gradient(90deg,#3b82f6,#1d4ed8);
  --tm-pin:#ffffff;
  --tm-pin-ring:#1d4ed8;

  --tm-scroll:#c2cfe0;
  --tm-scroll-hi:#a9b9d0;
  --tm-lift:0 1px 2px rgba(16,17,22,.05),0 4px 10px rgba(16,17,22,.045),
            0 18px 40px rgba(30,64,140,.10);

  position:relative;
  background:linear-gradient(180deg,var(--tm-wash) 0,rgba(59,130,246,0) 120px),var(--tm-card);
  border:1px solid var(--tm-edge);
  border-radius:16px;
  box-shadow:var(--tm-lift);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  font-family:var(--tm-f);
  color:var(--tm-log-ink);
}

/* ============================================================
   DARK — the same console, not the old slab. The page's own cards
   sit at --surface #0f141b, so the terminal sits with them and takes
   the accent wash on top; the ink is lifted well clear of the panel
   because "the colour of the font looks like it's merged into the
   background" was half the original complaint.
   ============================================================ */
[data-theme="dark"] .dyi-term{
  --tm-card:#0e141d;
  --tm-wash:rgba(59,130,246,.12);
  --tm-edge:#232e3c;
  --tm-bar:rgba(255,255,255,.045);
  --tm-bar-line:rgba(255,255,255,.09);
  --tm-bar-shadow:0 6px 16px -12px rgba(0,0,0,.8);
  --tm-panel:#131d2a;
  --tm-panel-line:rgba(59,130,246,.34);
  --tm-panel-div:rgba(59,130,246,.22);
  --tm-hero:#121a25;
  --tm-hero-bloom:rgba(59,130,246,.20);
  --tm-foot:linear-gradient(180deg,#0d131c,#0a1017);
  --tm-foot-line:#1e2836;

  --tm-ink:#f2f6fa;
  --tm-log-ink:#c8d5e4;
  --tm-lbl:#a7b8cc;
  --tm-note:#9aacc1;
  --tm-hex:#dfe9f5;
  --tm-fig:#ffffff;
  --tm-quiet:#8a9bb0;

  --tm-ctl:rgba(255,255,255,.05);
  --tm-ctl-edge:#31404f;
  --tm-ctl-ink:#cddaea;
  --tm-ctl-hover:rgba(59,130,246,.18);
  --tm-ctl-shadow:0 1px 2px rgba(0,0,0,.35);

  --tm-acc:#3b82f6;
  --tm-acc-deep:#5b9bff;
  --tm-acc-soft:rgba(59,130,246,.16);
  --tm-acc-line:rgba(59,130,246,.38);
  --tm-tag-ink:#7bb0ff;              /* 5.2:1 on the dark pill; #5b9bff was 4.2 */
  --tm-lit-ink:#06101f;
  --tm-lit-bg:#5b9bff;
  --tm-lit-glow:0 3px 14px rgba(59,130,246,.55);
  --tm-ok:#27cf8c;
  --tm-ok-ink:#5ef0b4;
  --tm-ok-fill:linear-gradient(180deg,rgba(39,207,140,.14),rgba(39,207,140,.08));
  --tm-ok-line:rgba(39,207,140,.42);
  --tm-err:#ff8a8a;
  --tm-hot:#ff6b6b;
  --tm-gold:#ffd166;

  --tm-track:#1b2635;
  --tm-track-ring:#7d8ea3;
  --tm-track-fill:linear-gradient(90deg,#3b82f6,#7db2ff);
  --tm-pin:#ffffff;
  --tm-pin-ring:#7db2ff;

  --tm-scroll:#2b3a4b;
  --tm-scroll-hi:#3a4c60;
  --tm-lift:0 1px 2px rgba(0,0,0,.5),0 14px 44px rgba(0,0,0,.5);
}

/* ============================================================
   TITLE BAR — a frosted toolbar floating on the wash
   ============================================================ */
.tm-h{position:relative;z-index:2; /* the tooltip has to clear the log */
  display:flex;align-items:center;gap:10px;padding:11px 14px;
  background:var(--tm-bar);
  -webkit-backdrop-filter:blur(14px) saturate(1.6);
  backdrop-filter:blur(14px) saturate(1.6);
  border-bottom:1px solid var(--tm-bar-line);
  box-shadow:var(--tm-bar-shadow)}

/* ---- the three lights: unchanged from the previous skin ----
   Two of the three used to be scenery; all three are controls now, and
   the macOS colours are where the affordance is already learnt.
   red clears · amber folds · green reboots. */
.tm-dots{display:flex;align-items:center;gap:6px;flex-shrink:0}
.tm-light{position:relative;width:11px;height:11px;padding:0;border:0;border-radius:50%;
  cursor:pointer;display:grid;place-items:center;
  box-shadow:inset 0 0 0 .5px rgba(0,0,0,.28);
  transition:background .18s,box-shadow .18s}
.tm-light svg{width:8px;height:8px;display:block;opacity:0;transition:opacity .16s}
.tm-dots:hover .tm-light svg,.tm-light:focus-visible svg{opacity:1}
/* The dots stay 11px visually, but each button's tap area is a 24px circle
   drawn on ::before — ::after belongs to the tooltip. On touch screens the
   dots also spread to 24px between centres, so the enlarged targets don't
   intersect and a thumb can't fire the wrong light. */
.tm-light::before,.tm-zoom::before{content:"";position:absolute;left:50%;top:50%;
  width:24px;height:24px;transform:translate(-50%,-50%);border-radius:50%}
@media(pointer:coarse){.tm-dots{gap:13px}}
.tm-close{background:#ff5f57;color:rgba(58,0,0,.7)}
.tm-min{background:#febc2e;color:rgba(58,34,0,.72)}
.tm-reload{background:#28c840;color:rgba(0,34,8,.72)}
.tm-close:hover,.tm-close:focus-visible{background:#ff7b74;
  box-shadow:inset 0 0 0 .5px rgba(0,0,0,.28),0 0 12px rgba(255,95,87,.55)}
.tm-min:hover,.tm-min:focus-visible{background:#ffcb54;
  box-shadow:inset 0 0 0 .5px rgba(0,0,0,.28),0 0 12px rgba(254,188,46,.5)}
.tm-reload:hover,.tm-reload:focus-visible{background:#34e34f;
  box-shadow:inset 0 0 0 .5px rgba(0,0,0,.28),0 0 12px rgba(40,200,64,.6)}

.tm-ttl{display:inline-flex;align-items:center;gap:7px;
  font-family:var(--tm-f);font-size:12px;font-weight:700;letter-spacing:.04em;
  color:var(--tm-ink)}
.tm-ttl svg{width:13px;height:13px;display:block;color:var(--tm-acc)}

/* "in-browser" is a promise, not a label — it earns a live dot. */
.tm-tag{margin-left:auto;display:inline-flex;align-items:center;gap:6px;flex-shrink:0;
  font-family:var(--tm-fu);font-size:11px;font-weight:600;letter-spacing:.05em;
  text-transform:none;padding:4px 10px 4px 8px;border-radius:var(--r-pill);
  color:var(--tm-tag-ink);background:var(--tm-acc-soft);
  box-shadow:inset 0 0 0 1px var(--tm-acc-line)}
.tm-tag::before{content:"";width:6px;height:6px;border-radius:50%;flex-shrink:0;
  background:var(--tm-ok);box-shadow:0 0 0 3px color-mix(in srgb,var(--tm-ok) 18%,transparent)}

/* Expand: not one of the lights' jobs, so it gets its own control. */
.tm-zoom{position:relative;flex-shrink:0;margin-left:2px;width:26px;height:26px;padding:0;
  border-radius:9px;cursor:pointer;display:grid;place-items:center;
  color:var(--tm-lbl);background:var(--tm-ctl);border:1px solid var(--tm-ctl-edge);
  box-shadow:var(--tm-ctl-shadow);
  transition:background .18s,color .18s,border-color .18s,box-shadow .18s,transform .16s}
.tm-zoom svg{width:13px;height:13px;display:block}
.tm-zoom:hover,.tm-zoom:focus-visible{background:var(--tm-ctl-hover);
  border-color:var(--tm-acc);color:var(--tm-acc-deep);
  transform:translateY(-1px);box-shadow:0 4px 12px rgba(30,64,140,.18)}
.tm-zoom.on{background:var(--tm-acc);border-color:var(--tm-acc);color:#fff}

.dyi-term [data-tip]::after{content:attr(data-tip);position:absolute;top:calc(100% + 8px);left:-3px;
  white-space:nowrap;font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  color:var(--tm-ink);background:var(--tm-card);border:1px solid var(--tm-ctl-edge);border-radius:6px;
  padding:4px 7px;box-shadow:0 6px 18px rgba(16,17,22,.14);opacity:0;transform:translateY(-3px);
  pointer-events:none;transition:opacity .16s,transform .16s}
.dyi-term [data-tip]:hover::after,.dyi-term [data-tip]:focus-visible::after{opacity:1;transform:none}
.tm-zoom::after{left:auto;right:-3px} /* it sits on the right edge */

/* ---- folded: nothing but the title bar ---- */
.dyi-term.folded .tm-log,
.dyi-term.folded .tm-chips,
.dyi-term.folded .tm-form{display:none}
.dyi-term.folded .tm-h{border-bottom:0;cursor:pointer}

/* ---- zoomed: the panel as an overlay, with room for the pictures ----
   Sits above the sticky header (200) and below the nav drawer (300). */
.tm-backdrop{position:fixed;inset:0;z-index:260;background:rgba(12,20,34,.42);
  -webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
[data-theme="dark"] .tm-backdrop{background:rgba(4,7,11,.74)}
/* Height is what zoom is really for — a whole proof on one screen. Width
   stays at terminal proportions so the text column doesn't strand the
   right half of the panel. */
.dyi-term.zoomed{position:fixed;z-index:261;left:50%;top:50%;transform:translate(-50%,-50%);
  width:min(780px,calc(100vw - 28px));height:min(76vh,720px);
  box-shadow:0 40px 120px rgba(16,26,48,.34)}
[data-theme="dark"] .dyi-term.zoomed{box-shadow:0 40px 120px rgba(0,0,0,.66)}
.dyi-term.zoomed .tm-log{height:auto;flex:1 1 auto;font-size:13px;padding:18px 20px 26px}
.dyi-term.zoomed .tm-chips{padding:0 20px 14px}
.dyi-term.zoomed .tm-form{padding:12px 20px}
.dyi-term.zoomed .tm-res .v{font-size:48px}
.dyi-term.zoomed .tm-res.wrap .v{font-size:17px}
.dyi-term.zoomed .tm-rib .rb{font-size:12.5px}
.dyi-term.zoomed .vz{max-width:600px}
.dyi-term.zoomed .tm-pick{max-width:520px}
.dyi-term.zoomed .bd-mines{max-width:330px}
.dyi-term.zoomed .bd-keno{max-width:500px}
.dyi-term.zoomed .vz-wheel svg{width:210px;height:210px}
.dyi-term.zoomed .vz-cards .cd{width:44px;height:60px}
.dyi-term.zoomed .vz-cards .cd b,.dyi-term.zoomed .vz-cards .cd i{font-size:17px}
@media(max-width:700px){
  .dyi-term.zoomed{width:calc(100vw - 18px);height:min(86vh,760px)}
  .dyi-term.zoomed .tm-log{padding:14px 15px 24px}
}

/* ============================================================
   OUTPUT
   ============================================================ */
.tm-log{
  position:relative; /* results scroll themselves into frame */
  padding:14px 14px 20px;font-size:12.5px;line-height:1.78;
  height:clamp(276px,30vw,338px);overflow-y:auto;overscroll-behavior:contain;
  color:var(--tm-log-ink);
  scrollbar-width:thin;scrollbar-color:var(--tm-scroll) transparent;
  /* A result is taller than the window, so the last visible line is usually
     a half one. Fading the bottom edge turns that from a clipping artefact
     into a "there's more" signal; the extra bottom padding means nothing is
     lost to the fade once you reach the end. */
  -webkit-mask-image:linear-gradient(to bottom,#000 calc(100% - 18px),transparent);
  mask-image:linear-gradient(to bottom,#000 calc(100% - 18px),transparent);
}
.tm-log::-webkit-scrollbar{width:9px}
.tm-log::-webkit-scrollbar-track{background:transparent}
.tm-log::-webkit-scrollbar-thumb{background:var(--tm-scroll);border-radius:var(--r-pill);
  border:2px solid transparent;background-clip:padding-box}
.tm-log::-webkit-scrollbar-thumb:hover{background:var(--tm-scroll-hi);background-clip:padding-box}
.tm-log .ln{white-space:pre-wrap;overflow-wrap:anywhere}
.tm-log .ttl{color:var(--tm-ink);font-weight:700;letter-spacing:.01em}
.tm-log .dim{color:var(--tm-note)}
.tm-log .err{color:var(--tm-err);font-weight:600}
.tm-log .cmd{color:var(--tm-ink);font-weight:500;margin-top:1px}
.tm-log .cmd .p{color:var(--tm-acc-deep);font-weight:700}
.tm-log .meta .mk{display:inline-block;min-width:62px;color:var(--tm-note)}

.tm-link{font-family:var(--tm-fu);font-size:12.5px;font-weight:600;
  color:var(--tm-acc-deep);text-decoration:none;border-radius:5px;
  box-shadow:inset 0 -1px 0 0 var(--tm-acc-line);
  transition:box-shadow .18s,color .18s,background .18s}
.tm-link:hover,.tm-link:focus-visible{background:var(--tm-acc-soft);
  box-shadow:inset 0 -1px 0 0 currentColor,0 0 0 4px var(--tm-acc-soft)}

/* ---- opening screen: pick a casino ----
   The first thing a visitor sees was three lines of text over an empty
   panel. These rows fill it with the only decision that matters first,
   and skip the typing for anyone on a phone. */
.tm-pick{display:flex;flex-direction:column;gap:7px;margin:10px 0 4px}
.pk-row{display:flex;align-items:center;gap:11px;width:100%;text-align:left;cursor:pointer;
  padding:9px 11px;border-radius:11px;font-family:inherit;color:var(--tm-ctl-ink);
  background:var(--tm-ctl);border:1px solid var(--tm-ctl-edge);box-shadow:var(--tm-ctl-shadow);
  transition:background .18s,border-color .18s,box-shadow .2s,transform .16s}
/* The fusion hover (f10): accent edge, soft fill, a 3px slide right —
   the arrow answers with its own 2px below. Keyboard focus gets the
   same treatment on top of the shared outline ring. */
.pk-row:hover,.pk-row:focus-visible{background:var(--tm-acc-soft);border-color:var(--tm-acc-line);
  transform:translateX(3px);
  box-shadow:0 4px 14px -4px color-mix(in srgb,var(--tm-acc) 30%,transparent)}
.pk-row .lg{width:28px;height:28px;flex-shrink:0;border-radius:9px;display:grid;place-items:center;
  font-size:11px;font-weight:700;color:var(--tm-acc-deep);
  background:var(--tm-acc-soft);border:1px solid var(--tm-acc-line)}
.pk-row .mid{display:flex;flex-direction:column;gap:1px;flex:1;min-width:0}
.pk-row .nm{font-size:12.5px;font-weight:700;color:var(--tm-ink);line-height:1.3}
.pk-row .ct{font-size:11.5px;color:var(--tm-note);letter-spacing:.02em;line-height:1.3}
.pk-row .go{font-size:13px;color:var(--tm-lbl);transition:color .18s,transform .18s}
.pk-row:hover .go{color:var(--tm-acc-deep);transform:translateX(2px)}
.pk-hint{font-size:11.5px;color:var(--tm-note);letter-spacing:.02em;margin-top:4px}
/* Answered pickers stay in the scrollback but stop inviting a click. */
.tm-pick.spent{opacity:.5}
.tm-pick.spent .pk-row,.tm-pick.spent .pk-row:hover,
.tm-pick.spent .pk-row:focus-visible{cursor:default;transform:none;
  background:var(--tm-ctl);border-color:var(--tm-ctl-edge);box-shadow:none}
.tm-pick.spent .pk-row:hover .go{color:var(--tm-lbl);transform:none}

/* ============================================================
   THE DIGEST PANEL — both hashes as one block of instrumentation
   A digest printed as one long string is unreadable and, worse, says
   nothing. Split into bytes with the consumed ones lit, it shows at a
   glance which part of the hash actually decided the bet.
   ============================================================ */
.tm-dg{position:relative;margin:12px 0 13px;background:var(--tm-panel);
  border:1px solid var(--tm-panel-line);border-radius:12px;overflow:hidden;
  box-shadow:0 1px 2px rgba(30,64,140,.05)}
.tm-rib{padding:10px 11px 11px}
.tm-rib+.tm-rib{border-top:1px solid var(--tm-panel-div)}
.tm-rib .rh{display:flex;align-items:flex-start;gap:8px}
.tm-rib .rl{flex:1;min-width:0;overflow-wrap:anywhere;
  font-size:11.5px;line-height:1.5;color:var(--tm-lbl)}
.tm-rib .rc{flex-shrink:0;margin-left:auto;font-family:var(--tm-fu);font-size:11px;
  font-weight:700;letter-spacing:.11em;text-transform:uppercase;line-height:1;cursor:pointer;
  padding:5px 9px;border-radius:var(--r-pill);
  color:var(--tm-acc-deep);background:var(--tm-ctl);border:1px solid var(--tm-acc-line);
  transition:background .18s,color .18s,border-color .18s,box-shadow .18s,transform .16s}
.tm-rib .rc:hover,.tm-rib .rc:focus-visible{background:var(--tm-acc-deep);
  border-color:var(--tm-acc-deep);color:var(--tm-lit-ink);
  transform:translateY(-1px);box-shadow:0 4px 10px rgba(29,78,216,.28)}
.tm-rib .rb{margin-top:7px;font-size:12px;line-height:1.9;color:var(--tm-hex);
  word-break:break-all}
.tm-rib .hx{transition:color .2s}
.tm-rib .hx.gap{margin-right:3px}
.tm-rib .hx.on{color:var(--tm-lit-ink);background:var(--tm-lit-bg);
  padding:2px 0;border-radius:2px;
  box-shadow:0 0 0 1px var(--tm-lit-bg),var(--tm-lit-glow)}
.tm-rib .hx.on.gap{margin-right:0;padding-right:3px}
.tm-rib .hx.more{color:var(--tm-note)}
.tm-rib .rn{margin-top:7px;font-family:var(--tm-fu);font-size:11.5px;line-height:1.5;
  color:var(--tm-note)}

/* ---- derivation: float → × 10 000 → ÷ 100, as connected pills ---- */
.tm-drv{display:flex;flex-wrap:wrap;align-items:center;gap:4px 0;margin:0 0 13px}
.tm-drv .dv{font-size:11.5px;line-height:1;padding:6px 11px;border-radius:var(--r-pill);
  color:var(--tm-log-ink);background:var(--tm-ctl);border:1px solid var(--tm-ctl-edge);
  box-shadow:var(--tm-ctl-shadow)}
.tm-drv .ar{flex-shrink:0;width:20px;display:grid;place-items:center;
  font-family:var(--tm-fu);font-size:11.5px;font-weight:700;line-height:1;
  color:var(--tm-acc-deep)}

/* ============================================================
   THE HERO — headline value and its picture, on one card
   ============================================================ */
.tm-hero{position:relative;margin:0 0 13px;padding:14px;border-radius:14px;
  background:radial-gradient(110% 130% at 16% 4%,var(--tm-hero-bloom),transparent 68%),var(--tm-hero);
  border:1px solid var(--tm-acc-line);
  box-shadow:0 1px 2px rgba(16,17,22,.04),0 8px 22px rgba(30,64,140,.09)}
.tm-res{display:flex;flex-direction:column;align-items:flex-start;gap:2px}
.tm-res .k{font-family:var(--tm-fu);font-size:11px;font-weight:700;
  letter-spacing:.18em;text-transform:uppercase;line-height:1.4;color:var(--tm-lbl)}
.tm-res .v{font-size:40px;font-weight:700;letter-spacing:-.025em;line-height:1.04;
  color:var(--tm-fig);font-variant-numeric:tabular-nums}
/* A long string value (a seed, a card list) can't be 40px. */
.tm-res.wrap{gap:5px}
.tm-res.wrap .v{font-size:14.5px;font-weight:600;letter-spacing:.01em;line-height:1.5;
  overflow-wrap:anywhere}
/* Games whose picture already IS the number (roulette) print no value. */
.tm-res.quiet .k{color:var(--tm-note)}

/* ============================================================
   PICTURES
   ============================================================ */
.vz{margin:0}
.tm-hero .vz{margin-top:13px}

/* ---- a value on its range: dice, hash dice ---- */
.vz-meter .mtr{position:relative;height:10px;border-radius:var(--r-pill);
  background:var(--tm-track);box-shadow:inset 0 0 0 1px var(--tm-track-ring)}
.vz-meter .fill{position:absolute;inset:0 auto 0 0;border-radius:var(--r-pill);
  background:var(--tm-track-fill);box-shadow:0 1px 3px rgba(29,78,216,.30)}
.vz-meter .pin{position:absolute;top:50%;width:14px;height:14px;margin-left:-7px;
  transform:translateY(-50%);border-radius:50%;background:var(--tm-pin);
  box-shadow:0 0 0 1px var(--tm-pin-ring),0 2px 6px rgba(16,17,22,.28)}
.vz-meter .sc{display:flex;justify-content:space-between;margin-top:8px;
  font-size:11px;letter-spacing:.04em;color:var(--tm-note)}

/* multipliers run over four orders of magnitude, so the track is log-scaled
   and the colour carries the size */
.vz-mult.b1 .fill{background:linear-gradient(90deg,#8895a8,#6c7b90)}
.vz-mult.b2 .fill{background:var(--tm-track-fill)}
.vz-mult.b3 .fill{background:linear-gradient(90deg,#19a06d,#0b7a4e)}
.vz-mult.b4 .fill{background:linear-gradient(90deg,#d99b12,#a06f05)}
[data-theme="dark"] .vz-mult.b1 .fill{background:linear-gradient(90deg,#5b7f95,#7f93a8)}
[data-theme="dark"] .vz-mult.b3 .fill{background:linear-gradient(90deg,#19a06d,#3fe8a8)}
[data-theme="dark"] .vz-mult.b4 .fill{background:linear-gradient(90deg,#c99a2a,#ffd166)}

/* ---- roulette: the winning pocket and its neighbours on the wheel ---- */
.vz-pocket{display:flex;align-items:center;gap:14px}
.vz-pocket .pk{width:60px;height:60px;flex-shrink:0;border-radius:50%;
  display:grid;place-items:center;font-size:23px;font-weight:700;color:#fff;
  font-variant-numeric:tabular-nums;border:2px solid rgba(255,255,255,.28)}
.vz-pocket .pk-red{background:#b8232b;box-shadow:0 6px 18px rgba(184,35,43,.35)}
.vz-pocket .pk-black{background:#1c232c;box-shadow:0 6px 18px rgba(28,35,44,.35)}
.vz-pocket .pk-green{background:#137a52;box-shadow:0 6px 18px rgba(19,122,82,.35)}
.vz-pocket .nblbl{font-size:11px;letter-spacing:.1em;text-transform:uppercase;
  font-weight:700;color:var(--tm-note)}
.vz-pocket .nbrs{display:flex;gap:5px;margin-top:6px}
.vz-pocket .nb{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;
  font-size:11px;font-weight:700;color:#fff;border:1px solid rgba(255,255,255,.22)}
.vz-pocket .nb-red{background:#c2434a}
.vz-pocket .nb-black{background:#39414c}
.vz-pocket .nb-green{background:#2c8a63}

/* ---- boards: mines (5×5) and keno (8×5) ---- */
.vz-board{display:grid;grid-template-columns:repeat(var(--cols),1fr);gap:5px}
.vz-board .cl{aspect-ratio:1;display:grid;place-items:center;border-radius:6px;
  font-size:11px;color:var(--tm-note);background:var(--tm-ctl);
  border:1px solid var(--tm-ctl-edge)}
/* Boards are capped so a whole result still fits the rail's window. */
.bd-mines{max-width:190px}
.bd-keno{max-width:272px}
.bd-mines .cl.on{font-size:15px;color:#fff;background:#c0392b;
  border-color:#a3301f;box-shadow:0 3px 10px rgba(192,57,43,.35)}
.bd-keno .cl{font-size:11px;border-radius:5px}
.bd-keno .cl.on{color:#fff;font-weight:700;background:#0f8f5d;
  border-color:#0a6b46;box-shadow:0 3px 10px rgba(15,143,93,.32)}
[data-theme="dark"] .bd-keno .cl.on{color:#04120c;background:#3fe8a8;border-color:#3fe8a8}

/* ---- plinko: the pin field with the ball's real path drawn through ---- */
.vz-plinko svg{width:100%;height:auto;display:block}
.vz-plinko .pegs circle{fill:var(--tm-track-ring)}
.vz-plinko .ball{fill:none;stroke:var(--tm-acc);stroke-width:1.1;
  stroke-linejoin:round;stroke-linecap:round;
  filter:drop-shadow(0 0 1.6px color-mix(in srgb,var(--tm-acc) 70%,transparent))}
.vz-plinko .bkt{fill:var(--tm-track)}
.vz-plinko .bkt.hit{fill:var(--tm-ok)}

/* ---- wheel: a ring of segments with the winner lit ---- */
.vz-wheel{display:flex;justify-content:center}
.vz-wheel svg{width:148px;height:148px}
.vz-wheel .ring{stroke:var(--tm-track)}
.vz-wheel .win{stroke:var(--tm-acc);filter:drop-shadow(0 0 3px color-mix(in srgb,var(--tm-acc) 70%,transparent))}
.vz-wheel .num{fill:var(--tm-fig);font-family:var(--tm-f);font-size:21px;font-weight:700}
.vz-wheel .ptr{fill:var(--tm-gold)}

/* ---- cards ---- */
.vz-cards{display:flex;flex-wrap:wrap;gap:7px}
.vz-cards .cd{width:36px;height:48px;border-radius:6px;background:#fff;
  color:#0d1520;display:flex;flex-direction:column;align-items:center;justify-content:center;
  line-height:1;border:1px solid var(--tm-ctl-edge);
  box-shadow:0 2px 8px rgba(16,17,22,.14)}
.vz-cards .cd b{font-size:13px;font-weight:700}
.vz-cards .cd i{font-size:13px;font-style:normal;margin-top:2px}
.vz-cards .cd.red{color:#c02434}

/* ---- tokens: gems, flips, a coin ---- */
.vz-tokens{display:flex;flex-wrap:wrap;gap:7px}
.vz-tokens .tk{display:inline-flex;align-items:center;gap:6px;padding:6px 11px;
  border-radius:var(--r-pill);font-size:11.5px;color:var(--tm-ctl-ink);
  background:var(--tm-ctl);border:1px solid var(--tm-ctl-edge);box-shadow:var(--tm-ctl-shadow)}
.vz-tokens .tk.has-dot::before{content:"";width:8px;height:8px;border-radius:2px;
  transform:rotate(45deg);background:var(--dot)}
.vz-tokens .t-up{color:#fff;background:var(--tm-ok);border-color:var(--tm-ok);font-weight:700}
[data-theme="dark"] .vz-tokens .t-up{color:#04120c}
.vz-tokens .t-down{color:var(--tm-note)}

/* ============================================================
   VERDICT — the payoff line, as a status pill
   ============================================================ */
.tm-log .ok{display:block;margin:0 0 11px;padding:10px 13px;border-radius:12px;
  background:var(--tm-ok-fill);border:1px solid var(--tm-ok-line);
  box-shadow:0 1px 2px rgba(10,107,70,.06),0 6px 16px rgba(15,143,93,.10);
  font-family:var(--tm-fu);font-size:12.5px;font-weight:600;line-height:1.55;
  color:var(--tm-ok-ink)}
/* The "✓" is already the first character of the string — promoted to a
   filled badge here, so no copy is added and none is changed. */
.tm-log .ok::first-letter{font-family:var(--tm-fu);font-size:13px;font-weight:700;
  color:#fff;background:var(--tm-ok);padding:1px 5px 2px;border-radius:var(--r-pill);
  margin-right:3px}
[data-theme="dark"] .tm-log .ok::first-letter{color:#04120c}

/* ---- suggestion chips ---- */
.tm-chips{display:flex;flex-wrap:wrap;gap:7px;padding:0 14px 13px}
.tm-chips[hidden]{display:none}
.tm-chip{font-family:var(--tm-fu);font-size:11.5px;font-weight:600;line-height:1;
  letter-spacing:.01em;padding:8px 13px;border-radius:var(--r-pill);cursor:pointer;
  color:var(--tm-ctl-ink);background:var(--tm-ctl);border:1px solid var(--tm-ctl-edge);
  box-shadow:var(--tm-ctl-shadow);
  transition:background .18s,color .18s,border-color .18s,box-shadow .2s,transform .16s}
.tm-chip:hover,.tm-chip:focus-visible{transform:translateX(2px);
  background:var(--tm-acc-soft);color:var(--tm-acc-deep);border-color:var(--tm-acc-line);
  box-shadow:0 6px 16px rgba(30,64,140,.16)}
.tm-chip:active{transform:translateX(1px)}

/* ============================================================
   PROMPT
   ============================================================ */
.tm-form{display:flex;align-items:center;gap:9px;padding:11px 14px;
  background:var(--tm-foot);border-top:1px solid var(--tm-foot-line)}
.tm-ps1{flex-shrink:0;white-space:nowrap;font-size:11.5px;font-weight:700;
  color:var(--tm-acc-deep)}

/* The completion ghost mirrors the input exactly and sits on top of it, so
   both must take their metrics from the same box — hence the font-size
   living on .tm-field and both children inheriting it. A pixel of drift
   here shows up as a visibly misaligned suffix. */
.tm-field{position:relative;flex:1;min-width:0;display:flex;align-items:center;
  font-size:11.5px;padding:6px 12px;border-radius:var(--r-pill);
  background:var(--tm-ctl);border:1px solid var(--tm-ctl-edge);
  box-shadow:inset 0 1px 2px rgba(16,17,22,.05);
  transition:border-color .18s,box-shadow .18s}
.tm-form:focus-within .tm-field{border-color:var(--tm-acc);
  box-shadow:inset 0 1px 2px rgba(16,17,22,.04),0 0 0 3px var(--tm-acc-soft)}
.tm-in{width:100%;min-width:0;background:none;border:0;outline:0;padding:1px 0;
  font-family:inherit;font-size:inherit;line-height:1.5;
  color:var(--tm-ink);caret-color:var(--tm-acc)}
.tm-in::placeholder{color:var(--tm-quiet);opacity:1}
.tm-ghost{position:absolute;inset:0;display:flex;align-items:center;padding:1px 12px;
  font-family:inherit;font-size:inherit;line-height:1.5;
  white-space:pre;overflow:hidden;pointer-events:none}
.tm-ghost .pre{color:transparent}
.tm-ghost .suf{color:var(--tm-quiet);font-style:normal}
.tm-key{position:absolute;right:9px;top:50%;transform:translateY(-50%);pointer-events:none;
  font-family:var(--tm-fu);font-size:11px;font-weight:700;letter-spacing:.1em;
  text-transform:uppercase;color:var(--tm-lbl);
  background:var(--tm-card);border:1px solid var(--tm-ctl-edge);border-radius:5px;padding:2px 5px}
.tm-key[hidden]{display:none}
.tm-go{flex-shrink:0;width:28px;height:28px;padding:0;border-radius:50%;cursor:pointer;
  display:grid;place-items:center;font-size:14px;line-height:1;color:#fff;
  background:linear-gradient(180deg,#2563eb,#1740b8);border:1px solid #1740b8;
  box-shadow:0 2px 6px rgba(23,64,184,.32);
  transition:box-shadow .18s,transform .16s,filter .18s}
.tm-go:hover,.tm-go:focus-visible{transform:translateY(-1px);filter:saturate(1.15);
  box-shadow:0 6px 14px rgba(23,64,184,.42)}
.tm-go:active{transform:translateY(0)}

.tm-ns{padding:14px;font-size:12.5px;color:var(--tm-note);line-height:1.6}
.tm-ns a{color:var(--tm-acc-deep)}

/* Focus rings: the panel is bright now, so a single accent ring reads on
   every control instead of each one inventing its own. */
.dyi-term :is(.tm-light,.tm-zoom,.rc,.tm-chip,.tm-go,.pk-row,.tm-link):focus-visible{
  outline:2px solid var(--tm-acc);outline-offset:3px}

/* ---- motion: everything arrives, nothing loops (except the live dot) ---- */
@media(prefers-reduced-motion:no-preference){
  @keyframes tmIn{from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:none}}
  @keyframes tmPop{from{opacity:0;transform:scale(.7)}to{opacity:1;transform:none}}
  @keyframes tmDeal{from{opacity:0;transform:translateY(9px) rotate(-7deg)}to{opacity:1;transform:none}}
  @keyframes tmGrow{from{transform:scaleX(0)}to{transform:scaleX(1)}}
  @keyframes tmSpin{to{transform:rotate(-360deg)}}
  @keyframes tmLive{0%,100%{box-shadow:0 0 0 3px color-mix(in srgb,var(--tm-ok) 18%,transparent)}
                    50%{box-shadow:0 0 0 4px color-mix(in srgb,var(--tm-ok) 6%,transparent)}}

  .tm-log .ln,.tm-dg,.tm-drv,.tm-hero,.vz{animation:tmIn .26s ease both}
  /* backwards, NOT both: a finished fill-both animation's final
     keyframe (transform:none) outranks any hover transform for as
     long as it stays attached — the rows' hover slide would be
     silently dead. The rows' static state already equals the "to"
     frame, so dropping the forwards fill changes nothing at rest. */
  .tm-pick .pk-row{animation:tmIn .3s ease backwards}
  .tm-reload.spin svg{animation:tmSpin .5s cubic-bezier(.3,.8,.3,1)}
  .vz-board .cl{animation:tmPop .3s cubic-bezier(.2,.8,.3,1) both}
  .vz-cards .cd,.vz-tokens .tk{animation:tmDeal .34s cubic-bezier(.2,.8,.3,1) both}
  .vz-meter .fill{transform-origin:left;animation:tmGrow .6s cubic-bezier(.2,.7,.2,1) both}
  .vz-wheel .win{animation:tmIn .5s ease both}
  .tm-tag::before{animation:tmLive 2.8s ease-in-out infinite}
}

/* The hover slides are transitions, not animations — hold them still
   for reduced motion (colour and fill still answer). */
@media(prefers-reduced-motion:reduce){
  .pk-row:hover,.pk-row:focus-visible,
  .tm-chip:hover,.tm-chip:focus-visible,.tm-chip:active{transform:none}
  .pk-row:hover .go{transform:none}
}

/* Full-width once the hero rail stacks — the log can afford to be taller.
   The prompt grows to 16px so iOS doesn't zoom the page when it takes
   focus; the ghost inherits from .tm-field, so the pair stays aligned. */
@media(max-width:860px){
  .tm-log{height:clamp(300px,58vw,360px)}
  .tm-field{font-size:16px}
}
