@font-face{font-family:Cinzel;font-style:normal;font-weight:700 900;font-display:swap;src:url('assets/cinzel-700.ttf') format('truetype')}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:400 500;font-display:swap;src:url('assets/dm-sans-400.ttf') format('truetype')}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:700 900;font-display:swap;src:url('assets/dm-sans-700.ttf') format('truetype')}
@scope (.canonical-page) {

  :scope {
    --bg:#0d0e10; --bg-2:#0a0b0d;
    --surface:#141517; --surface-2:#1a1c1f; --surface-3:#212429;
    --line:#26292e; --line-2:#33373e; --line-3:#4a4f57;
    --text:#f0f1f3; --text-2:#a8adb5; --text-3:#70757e;
    --moon:#e8ebf0; --flame:#ff8a3d; --flame-dim:rgba(255,138,61,0.16);
    --flame-red:#ff4433; --flame-gradient: linear-gradient(135deg, #ffb648 0%, #ff8a3d 45%, #ff4433 100%);
    --green:#7fc79b; --red:#e05a5a;
    --ember-border: rgba(255,130,60,0.22); --ember-border-2: rgba(255,130,60,0.14);
    /* 2026-08-09, per Kenny — see the font-import comment above for the full story. Two fonts
       total now instead of three: --display (Cinzel) for headings/nav/titles, --sans AND --mono
       both pointing to DM Sans for everything else (numeric readouts, labels, body, buttons) so
       there's exactly one workhorse font instead of DM Sans/DM Mono splitting that role. --mono's
       var name is kept as-is (not renamed) so none of the many existing var(--mono) call sites
       need touching. Original DM Mono variant, for reference:
       --mono: "DM Mono", "SFMono-Regular", Consolas, monospace; */
    --mono: "DM Sans", -apple-system, "Segoe UI", sans-serif;
    --display: "Cinzel", "DM Sans", serif;
    --sans: "DM Sans", -apple-system, "Segoe UI", sans-serif;
  }
  * { box-sizing: border-box; }
  :scope { margin: 0; padding: 0; }
  /* Ember background + floating-particle layer, ported from the Mine tab redesign preview
     (2026-08-07, per Kenny's "restructure ... make it exactly like that" — the earlier brand
     pass only touched buttons/nav/footer and left the base card/background language flat, which
     is why it "looked nothing like" the reference mock. This is the actual visual foundation the
     mock's glow/ember treatment sits on top of. */
  body {
    background:
      radial-gradient(ellipse 900px 500px at 15% 0%, rgba(255,90,40,0.10), transparent 60%),
      radial-gradient(ellipse 900px 500px at 85% 100%, rgba(255,68,51,0.10), transparent 60%),
      radial-gradient(ellipse 1200px 700px at 50% 100%, rgba(255,138,61,0.08), transparent 65%),
      linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
    color: var(--text); font-family: var(--sans); min-height: 100vh;
    position: relative;
  }
  .embers { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
  .ember {
    position: absolute; bottom: -10px; width: 3px; height: 3px; border-radius: 50%;
    background: var(--flame); box-shadow: 0 0 6px 2px rgba(255,138,61,0.8);
    animation: emberRise linear infinite; opacity: 0;
  }
  @keyframes emberRise {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    8% { opacity: .9; }
    100% { transform: translateY(-100vh) translateX(var(--drift, 20px)); opacity: 0; }
  }
  @keyframes flicker {
    0%, 100% { opacity: 1; filter: brightness(1); }
    45% { opacity: .92; filter: brightness(1.08); }
    55% { opacity: .85; filter: brightness(0.96); }
  }
  .ember-floor {
    position: fixed; left: 0; right: 0; bottom: 0; height: 2px; z-index: 1; pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255,138,61,0.7) 25%, rgba(255,68,51,0.85) 50%, rgba(255,138,61,0.7) 75%, transparent);
    box-shadow: 0 0 20px 4px rgba(255,110,50,0.45);
  }
  /* overflow-x:hidden used to live on body — moved here instead. body/html having ANY overflow
     property is the actual, documented root cause of "fixed bottom nav disappears mid-scroll,
     comes back once you scroll up": it's a known mobile Safari/Chrome bug where overflow on the
     root establishes a different (buggy) scrolling context that position:fixed descendants can
     get dragged along with during momentum scroll. The GPU-layer hint on .bottom-nav didn't fix
     it because that wasn't the mechanism — this was. Wrapping the actual scrollable content
     (header+main) in this div and keeping body/html overflow-free is the standard fix; the
     bottom-nav/toastArea/chat-fab/.glow fixed elements all live outside this wrapper in the DOM
     specifically so nothing about their fixed positioning is affected by it. */
  .page-scroll { overflow-x: hidden; }
  .glow {
    position: fixed; top: -200px; left: 50%; transform: translateX(-50%);
    width: 900px; height: 500px; pointer-events: none; z-index: 0;
    background: radial-gradient(ellipse at center, rgba(217,192,138,0.06) 0%, transparent 70%);
  }
  button, input { font-family: inherit; }
  a { color: inherit; text-decoration: none; }

  /* ---------- Header ---------- */
  header {
    position: relative; z-index: 2; height: 78px; display: flex; align-items: center;
    gap: 28px; padding: 0 22px; border-bottom: 1px solid var(--ember-border, rgba(255,138,61,0.22));
    background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
    box-shadow: 0 1px 0 rgba(255,138,61,0.06), 0 6px 20px rgba(0,0,0,0.35);
  }
  .brand { display: flex; align-items: center; gap: 8px; }
  .brand-logo { height: 50px; width: auto; display: block; flex-shrink: 0; }
  /* Nav pushed off the logo with its own left margin (2026-08-08, per Kenny: "move the tabs away
     from the header logo") on top of header's existing 28px gap — the two together give the
     wordmark real breathing room instead of the nav crowding right up against it. */
  nav { display: flex; gap: 10px; flex: 1; margin-left: 26px; }
  /* Tabs enlarged + given a "mining/burn" feel (2026-08-08, per Kenny) — bigger type/icons/
     padding, a warm ember pill background on hover, and the active tab reads like a lit coal:
     flame-gradient text, glowing ember underline bar, and a soft heat bloom behind it instead of
     the earlier flat 2px border-bottom. */
  /* 2026-08-09, per Kenny: "the tabs at the top are dull - need to be brighter - can you change the
     Font to the same font as the crucible and put in capitals please" — inactive tabs were
     --text-3 (a dim #70757e grey) in the body sans-serif; swapped to --moon (bright, near-white)
     for contrast, and to var(--display) (Cinzel, same serif used by the Crucible hero title/logo)
     rendered as small-caps via text-transform:uppercase, matching "CLAIM THE CRUCIBLE"'s look. */
  /* 2026-08-09, per Kenny: "maybe the tab colour is too bright now" — --moon (#e8ebf0, a cool
     near-white) read as too stark/glary against the warm dark ember background once the tabs
     went brighter. Swapped to --gold (#f0c766, defined in the Crucible tab's own :scope block
     further down — same warm accent already used for the jackpot value), which stays legible but
     sits inside the site's warm palette instead of clashing against it. */
  nav a {
    position: relative; display: flex; align-items: center; gap: 8px;
    font-family: var(--display); font-size: 14px; font-weight: 700; color: var(--gold); padding: 9px 14px;
    border-radius: 10px; letter-spacing: .04em; text-transform: uppercase;
    border-bottom: 3px solid transparent; transition: color .15s, border-color .15s, background .15s;
  }
  /* Nav icons — Kenny's custom fire-themed art (one PNG per tab, 2026-08-07 brand pass).
     Full-color raster art rather than currentColor line icons, so on/off state is conveyed via
     opacity + a subtle glow filter on .on instead of color inheritance. Enlarged to 24px
     (2026-08-08) to match the bigger tab treatment. */
  nav a .nav-ic { display: inline-block; width: 24px; height: 24px; line-height: 1; flex-shrink: 0; }
  nav a .nav-ic img { width: 24px; height: 24px; object-fit: contain; display: block; opacity: 0.72; transition: opacity .15s, filter .15s; }
  nav a.on .nav-ic img { opacity: 1; filter: drop-shadow(0 0 6px rgba(255,138,61,0.65)); }
  nav a:hover .nav-ic img { opacity: 0.92; }
  nav a:hover { color: var(--text-2); background: rgba(255,110,45,0.08); }
  nav a.on {
    color: var(--flame); border-color: var(--flame);
    background: linear-gradient(180deg, rgba(255,110,45,0.14) 0%, rgba(255,68,51,0.05) 100%);
    text-shadow: 0 0 12px rgba(255,138,61,0.5);
    box-shadow: 0 3px 10px -2px rgba(255,110,45,0.4);
  }
  /* Hamburger toggle — hidden on desktop, only shown once the mobile breakpoint below hides
     the inline nav. header is already position:relative (see above), so the collapsible nav
     panel can anchor to it with position:absolute. */
  .nav-toggle {
    display: none; background: none; border: none; color: var(--text); font-size: 20px;
    cursor: pointer; padding: 4px 8px; line-height: 1; flex-shrink: 0;
  }
  .site-footer {
    max-width: 1360px; margin: 18px auto 0; padding: 0 16px 20px; text-align: right;
    font-size: 10.5px; color: var(--text-3); position: relative; z-index: 1;
  }
  .wallet { display: flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: 12px; }
  .ticker { display: flex; align-items: center; gap: 8px; color: var(--text-2); cursor: pointer; }
  .ticker b { color: var(--moon); }
  .ticker .sep { color: var(--line-3); }
  .connect-btn {
    background: var(--flame-gradient); color: var(--bg); border: none; border-radius: 8px;
    padding: 8px 16px; font-weight: 700; font-size: 12.5px; cursor: pointer; font-family: var(--sans);
    white-space: nowrap;
  }
  .connect-btn:hover { filter: brightness(1.08); }
  .connect-btn:disabled { cursor: default; filter: none; }
  /* WalletConnect fallback — now its own button beside Connect rather than a small text link
     stacked underneath it (that stacked layout was the "sitting underneath it" complaint), styled
     identically to Connect (same gradient/weight) rather than a muted outline, per Kenny's "make
     same as connect button" — the two are equally valid ways in, not a primary/secondary pair.
     Still needed for feature parity with BowStop's real connect flow: mobile browsers have no
     window.ethereum at all (see IS_MOBILE below), so on mobile this is often the ONLY way in.
     Click handler is unchanged (still #walletConnectBtn → connectWalletConnect below); this is a
     layout/visual pass only, per Kenny's "wire it up later."*/
  .wc-btn {
    background: var(--flame-gradient); color: var(--bg); border: none; border-radius: 8px;
    padding: 8px 12px; font-weight: 700; font-size: 11px; cursor: pointer;
    font-family: var(--sans); white-space: nowrap;
  }
  .wc-btn:hover { filter: brightness(1.08); }
  .wc-btn:disabled { cursor: default; filter: none; }
  /* Explicit disconnect control shown next to the address pill once connected — see the button's
     own HTML comment for why this exists alongside the pill's own click-to-disconnect behavior.
     Styled to match Connect/WalletConnect (same gradient/weight/radius) rather than a muted outline
     square, per Kenny's "untidy... same button style as connect" - just compact/square since it's
     a single icon rather than a text label. */
  .disconnect-btn {
    background: var(--flame-gradient); color: var(--bg); border: none; border-radius: 8px;
    width: 34px; height: 34px; align-items: center; justify-content: center; padding: 0;
    cursor: pointer; font-size: 13px; font-weight: 700; line-height: 1; font-family: var(--sans);
  }
  .disconnect-btn:hover { filter: brightness(1.08); }
  /* Was flex-direction: column (Connect on top, WalletConnect link underneath) — now a row so
     the two buttons sit side by side instead. */
  .wallet-col { display: flex; flex-direction: row; align-items: center; gap: 8px; }

  /* Toast/banner area for connect errors — luna.supply's real site has no equivalent chrome for
     this (BowStop's own #bannerArea was a top-of-page strip); a small fixed toast keeps this out
     of FLAME's layout entirely rather than bolting an extra bar onto its header. */
  #toastArea { position: fixed; top: 78px; right: 16px; z-index: 50; display: flex; flex-direction: column; gap: 8px; max-width: 340px; }
  .toast {
    background: var(--surface-2); border: 1px solid var(--line-2); border-left: 3px solid var(--text-3);
    border-radius: 8px; padding: 10px 12px; font-size: 12px; color: var(--text-2); line-height: 1.4;
  }
  .toast.error { border-left-color: var(--red); }
  .toast.success { border-left-color: var(--green); }

  /* Live jackpot toast (task #323) — broadcast to every connected tab the instant a Crucible
     round win or jackpot-tier win (Big/Mini ETH ML, Token ML, RwaVault "Jackpot 50x") is mined, via
     flame-state-api.js's live event listeners over the /ws push socket. Deliberately louder/
     longer-lived than the plain success/error toasts above — see toastJackpot() — since this is
     the one interruption we decided IS worth showing everyone (regular round wins are not; see
     the design note on renderMineWinners()/refreshMineState() instead). */
  .toast.jackpot {
    border-left-color: var(--flame); background: linear-gradient(90deg, var(--flame-dim), var(--surface-2));
    font-weight: 600; color: var(--text); box-shadow: 0 0 0 1px var(--flame-dim), 0 4px 18px rgba(255,138,61,0.18);
  }
  .toast.jackpot .toast-share {
    display: inline-block; margin-top: 6px; font-size: 11px; font-weight: 700; color: var(--flame);
    cursor: pointer; text-decoration: underline;
  }

  /* Full-screen jackpot popup (task #584, 2026-08-08) — Kenny: "jackpot pop ups for when each
     jackpot hits - using the images created and some sort of explosion on screen when it
     happens." Broadcast to every connected tab the instant a jackpot hits (same handleLiveEvent()
     "jackpot" branch that already drives toastJackpot() above — this fires ALONGSIDE the toast,
     not instead of it, so the toast still leaves a lower-key permanent record in #toastArea for
     anyone who glances back after the popup's gone). Uses the same jp-full-inferno/blaze/flare art
     already shown in the Mine tab hero stack (search "jp-full-inferno" for that markup) plus a
     scaled-up version of the tile-explosion particle burst (search "spawnTileExplosion" for the
     smaller original this was adapted from). z-index 205 sits just above the flex-card/outbid/
     login modals (all z-index 200) since the winner's flex card is deliberately opened only AFTER
     this popup finishes (see showJackpotPopup()'s finish() in the script below) — the two never
     actually overlap, but the higher value keeps this on top of literally everything else
     (including the toast area) for its brief moment on screen regardless. */
  .jackpot-popup-overlay {
    position: fixed; inset: 0; z-index: 205; display: flex; align-items: center; justify-content: center;
    background: radial-gradient(circle at 50% 42%, rgba(30,14,6,0.78) 0%, rgba(8,5,4,0.93) 100%);
    animation: jpPopupFadeIn 0.22s ease-out both; cursor: pointer; padding: 20px;
  }
  .jackpot-popup-overlay.closing { animation: jpPopupFadeOut 0.3s ease-in both; }
  @keyframes jpPopupFadeIn { from { opacity: 0; } to { opacity: 1; } }
  @keyframes jpPopupFadeOut { from { opacity: 1; } to { opacity: 0; } }
  .jackpot-popup-card {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 10px 20px; max-width: 320px; text-align: center; cursor: default;
    animation: jpPopupPop 0.55s cubic-bezier(.22,1.4,.4,1) both;
  }
  @keyframes jpPopupPop {
    0% { transform: scale(0.3); opacity: 0; }
    55% { transform: scale(1.12); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
  }
  .jackpot-popup-img {
    width: 180px; height: 180px; object-fit: contain; position: relative; z-index: 3;
    filter: drop-shadow(0 0 34px rgba(255,150,60,0.8));
  }
  .jackpot-popup-title {
    font-size: 20px; font-weight: 900; letter-spacing: 0.03em; text-transform: uppercase;
    color: #fff; text-shadow: 0 0 16px rgba(255,140,50,0.95), 0 2px 4px rgba(0,0,0,0.6); z-index: 3;
  }
  .jackpot-popup-amount {
    font-size: 27px; font-weight: 800; color: var(--flame); text-shadow: 0 0 20px rgba(255,138,61,0.85);
    z-index: 3;
  }
  .jackpot-popup-who { font-size: 13px; color: rgba(255,255,255,0.78); z-index: 3; }
  .jackpot-popup-hint { margin-top: 8px; font-size: 10px; color: rgba(255,255,255,0.42); z-index: 3; }
  /* Burst particles — scaled-up siblings of .tile-flash/.tile-shock/.tile-spark (search those
     names above for the originals), positioned relative to .jackpot-popup-card and appended
     behind the image (z-index 1, image itself is z-index 3) so the light reads as radiating out
     from it. Self-removing via animationend, same as the tile-explosion originals. */
  .jp-burst-flash {
    position: absolute; left: 50%; top: 40%; width: 40px; height: 40px; margin: -20px 0 0 -20px;
    border-radius: 50%; background: radial-gradient(circle, #ffffff 0%, #ffe8bf 30%, rgba(255,150,60,0.7) 60%, transparent 78%);
    z-index: 1; pointer-events: none; animation: jpFlashOut 0.5s ease-out forwards;
  }
  @keyframes jpFlashOut { 0% { transform: scale(0.15); opacity: 1; } 100% { transform: scale(9); opacity: 0; } }
  .jp-burst-ring {
    position: absolute; left: 50%; top: 40%; width: 24px; height: 24px; margin: -12px 0 0 -12px;
    border-radius: 50%; border: 3px solid rgba(255,205,130,0.9); z-index: 1; pointer-events: none;
    animation: jpRingOut 1s ease-out forwards;
  }
  .jp-burst-ring.ring2 { border-color: rgba(255,140,60,0.55); animation-duration: 1.3s; }
  @keyframes jpRingOut { 0% { transform: scale(0); opacity: .95; } 100% { transform: scale(14); opacity: 0; } }
  .jp-burst-spark {
    position: absolute; left: 50%; top: 42%; width: 6px; height: 6px; border-radius: 50%;
    background: radial-gradient(circle, #fff6e2 0%, #ffb84d 45%, transparent 75%);
    box-shadow: 0 0 10px 3px rgba(255,175,90,0.9); z-index: 1; pointer-events: none;
    animation: jpSparkFly 1.1s cubic-bezier(.22,.65,.4,1) forwards;
  }
  @keyframes jpSparkFly {
    0%   { transform: translate(-50%,-50%) translate(0,0) scale(1); opacity: 1; }
    60%  { transform: translate(-50%,-50%) translate(var(--sx), var(--sy)) scale(0.7); opacity: .9; }
    100% { transform: translate(-50%,-50%) translate(var(--sx), calc(var(--sy) + 24px)) scale(0.2); opacity: 0; }
  }

  /* Outbid popup (Kenny: "a pop up when you have been outbid ... no matter what page you are
     on"). Same global toastArea mechanism as the jackpot toast above — handleLiveEvent() already
     runs at the app level regardless of which tab/view is currently visible, so no extra plumbing
     was needed to make this "site-wide"; only a louder, red/urgent variant plus a longer stay
     (this is actionable and time-sensitive, unlike a plain success/error toast) and a one-click
     action that jumps to the Crucible tab and fires Quick Outbid for them. */
  .toast.outbid {
    border-left-color: var(--flame-red); background: linear-gradient(90deg, rgba(255,68,51,0.16), var(--surface-2));
    font-weight: 600; color: var(--text); box-shadow: 0 0 0 1px rgba(255,68,51,0.35), 0 4px 18px rgba(255,68,51,0.22);
  }
  .toast.outbid .toast-share {
    display: inline-block; margin-top: 6px; font-size: 11px; font-weight: 700; color: var(--flame-red);
    cursor: pointer; text-decoration: underline;
  }

  /* Shareable flex-card modal (tasks #324/#325) — a single component used for both an ordinary
     Crucible round win and a full jackpot-tier win; only shown to the winner themselves (winner address
     matches the connected wallet), never as an interruption for other visitors — they only get
     the toast above. Canvas-drawn so "Download PNG" produces a real shareable image file, not a
     DOM screenshot. */
  #flexCardOverlay {
    position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center;
    background: rgba(5,5,6,0.72); backdrop-filter: blur(2px); padding: 20px;
  }
  #flexCardOverlay.open { display: flex; }
  .flexcard-panel {
    background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; padding: 18px;
    max-width: 480px; width: 100%; max-height: calc(100dvh - 40px); overflow: auto;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5); position: relative;
  }
  .flexcard-close {
    position: absolute; top: 10px; right: 10px; background: none; border: none; color: var(--text-3);
    font-size: 18px; cursor: pointer; line-height: 1; padding: 4px;
  }
  .flexcard-close:hover { color: var(--text); }
  .flexcard-panel canvas { width: auto; max-width: 100%; height: auto; max-height: calc(100dvh - 200px); border-radius: 10px; display: block; margin: 0 auto 14px; }
  .flexcard-note { color: var(--text-3); font-size: 12px; line-height: 1.4; margin: -4px 0 12px; }
  /* Tokenomics document viewer. The pages are pre-rendered locally so every browser displays the
     document in-page without a native PDF download prompt or a third-party pdf.js dependency. */
  #pdfModalOverlay {
    position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center;
    background: rgba(5,5,6,0.72); backdrop-filter: blur(2px); padding: 20px;
  }
  #pdfModalOverlay.open { display: flex; }
  .pdf-modal-panel {
    background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; padding: 14px;
    max-width: 900px; width: 100%; height: 90vh; box-shadow: 0 12px 40px rgba(0,0,0,0.5); position: relative;
    display: flex; flex-direction: column;
  }
  .pdf-modal-close {
    position: absolute; top: 10px; right: 10px; background: none; border: none; color: var(--text-3);
    font-size: 18px; cursor: pointer; line-height: 1; padding: 4px; z-index: 1;
  }
  .pdf-modal-close:hover { color: var(--text); }
  .pdf-modal-pages {
    flex: 1; width: 100%; overflow-y: auto; margin-top: 20px; background: var(--surface-3);
    border: 1px solid var(--line-2); border-radius: 8px; padding: 16px; display: flex;
    flex-direction: column; align-items: center; gap: 14px;
  }
  .pdf-modal-page { width: 100%; height: auto; display: block; box-shadow: 0 4px 16px rgba(0,0,0,0.4); }
  .pdf-modal-loading { color: var(--text-3); font-size: 13px; padding: 40px 0; }
  /* "View all wins" / wallet-profile modals (Stats page) — plain scrollable-table overlays, same
     pattern as #pdfModalOverlay, populated from lastExploreDataFull/the last checkWallet() lookup
     the on-page card already holds — no extra API call to open one. */
  #jackpotsModalOverlay, #motherlodeModalOverlay, #crucibleWinsModalOverlay, #walletProfileModalOverlay {
    position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center;
    background: rgba(5,5,6,0.72); backdrop-filter: blur(2px); padding: 20px;
  }
  #jackpotsModalOverlay.open, #motherlodeModalOverlay.open, #crucibleWinsModalOverlay.open, #walletProfileModalOverlay.open { display: flex; }
  .rounds-modal-panel {
    background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; padding: 16px;
    max-width: 640px; width: 100%; max-height: 82vh; box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    position: relative; display: flex; flex-direction: column;
  }
  .rounds-modal-close {
    position: absolute; top: 10px; right: 10px; background: none; border: none; color: var(--text-3);
    font-size: 18px; cursor: pointer; line-height: 1; padding: 4px; z-index: 1;
  }
  .rounds-modal-close:hover { color: var(--text); }
  .rounds-modal-title { font-weight: 700; font-size: 14px; margin: 0 28px 12px 0; }
  .rounds-modal-body { overflow-y: auto; }
  .explore-rounds-link {
    display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 11px;
    font-weight: 500; color: var(--flame); background: none; border: none; padding: 0; cursor: pointer;
  }
  .explore-rounds-link:hover { text-decoration: underline; }
  /* Wallet nickname modal (2026-08-05, Kenny: "make the crucible more personal") — same overlay
     pattern as #roundsModalOverlay/#pdfModalOverlay above, just holding a short form instead of a
     table/PDF. Nicknames are shared/global (see flame-state-api.js's GET /api/nicknames doc
     comment), so setting one here makes it visible to every visitor, everywhere the Crucible shows
     an address — not just to the person who set it. */
  #nicknameModalOverlay {
    position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center;
    background: rgba(5,5,6,0.72); backdrop-filter: blur(2px); padding: 20px;
  }
  #nicknameModalOverlay.open { display: flex; }
  .nickname-modal-panel { max-width: 420px; width: 100%; }
  .nickname-modal-hint { font-size: 12px; color: var(--text-3); margin: 0 0 12px; line-height: 1.5; }
  .nickname-input {
    width: 100%; box-sizing: border-box; background: var(--surface-3); border: 1px solid var(--line-2);
    border-radius: 8px; padding: 10px 12px; color: var(--text); font-size: 14px; margin-bottom: 10px;
  }
  .nickname-modal-status { font-size: 12px; margin-top: 8px; min-height: 16px; }
  .nickname-modal-status.error { color: var(--flame-red); }
  .nickname-modal-status.success { color: var(--flame); }
  .nickname-link {
    display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 11px;
    font-weight: 500; color: var(--flame); background: none; border: none; padding: 0; cursor: pointer;
  }
  .nickname-link:hover { text-decoration: underline; }
  /* Mining rounds card only has two chips + a link now (task #463), far less content than its row
     sibling "Supply & burns" — without this it stretches to match that card's height (CSS grid
     default) and leaves a big empty gap under the link. align-self:start lets it size to its own
     content instead. */
  .explore-card-compact { align-self: start; }
  .flexcard-actions { display: flex; gap: 8px; }
  .flexcard-btn {
    flex: 1; background: var(--flame-gradient); color: var(--bg); border: none; border-radius: 8px;
    padding: 10px 12px; font-weight: 700; font-size: 13px; cursor: pointer;
  }
  .flexcard-btn.secondary {
    background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line-2);
  }

  /* ETH/USD toggle (staking rank flex card only, task #344) — SLVR-inspired "Flex Your Position"
     card added a currency switch on its stats row; hidden entirely for the jackpot/win cards
     above (those only ever show ETH/FLAME, there's no ambiguity to toggle). Backed by a real
     Chainlink read (RwaVault.ethUsdPrice()), not a hardcoded conversion rate — see
     drawStakeFlexCard()'s doc comment. */
  .flexcard-currency-toggle {
    display: none; gap: 6px; margin-bottom: 12px; justify-content: center;
  }
  .flexcard-currency-toggle.show { display: flex; }
  .flexcard-currency-btn {
    background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line-2);
    border-radius: 20px; padding: 5px 16px; font-size: 12px; font-weight: 700; cursor: pointer;
  }
  .flexcard-currency-btn.active {
    background: var(--flame-gradient); color: var(--bg); border-color: transparent;
  }
  .flexcard-currency-btn:disabled { opacity: .4; cursor: not-allowed; }

  /* Loss flash (task #326) — replaces the earlier "loss pop-up" idea. Most participants lose most
     rounds, so a modal per loss would be pure fatigue; this is a brief, quiet pulse on the board
     itself right after a round you played settles without you, then it's gone — no click required,
     nothing to dismiss. See flashMineLoss(). */
  @keyframes mineLossPulse {
    0% { box-shadow: 0 0 0 0 rgba(224,90,90,0.35); }
    70% { box-shadow: 0 0 0 10px rgba(224,90,90,0); }
    100% { box-shadow: 0 0 0 0 rgba(224,90,90,0); }
  }
  .grid.loss-flash { animation: mineLossPulse 1.1s ease-out 1; border-radius: 10px; }
  #mineLossNote {
    font-size: 11px; color: var(--text-3); margin-top: 4px; opacity: 0; transition: opacity 0.4s ease;
  }
  #mineLossNote.show { opacity: 1; }

  /* ---------- Main layout ---------- */
  main {
    position: relative; z-index: 1; display: flex; align-items: flex-start;
    min-height: calc(100vh - 55px);
  }

  /* Chat aside — real width 159px, left side, full height */
  aside.chat {
    width: 159px; flex-shrink: 0; align-self: stretch; display: flex; flex-direction: column;
    border-right: 1px solid var(--line); background: var(--surface);
  }
  /* Chat disabled 2026-08-04, per Kenny ("hide it for now") — CHAT_WS_URL (see connectChat()) was
     still the literal placeholder "wss://your-vps-host:8787", never pointed at a real deployed
     chat server, which is why the sidebar has shown "offline — retrying…" this whole session.
     Hiding every entry point (sidebar, mobile FAB, bottom-nav tab) instead of ripping the feature
     out, so it's a quick re-enable later — see CHAT_ENABLED near connectChat()'s call site too.
     main is a flex row with aside.chat as a flex child, so hiding it lets the rest of the layout
     reflow into the freed space with no other changes needed. */
  aside.chat, .chat-fab, a[data-tab="chat"] { display: none !important; }
  /* Vault hidden 2026-08-04, per Kenny ("hide the vault page coming post launch") — RwaVault.sol
     isn't deployed anywhere yet (see NETWORKS' blank RwaVault addresses), and the whole tab is a
     visual mockup with no real contract wired in regardless (same status as Crucible/Furnace were
     before their own real deploys). Same "hide every entry point, keep the code" call as chat
     above — nav link, bottom-nav tab, and the panel itself all disappear; switchToTab()'s own
     vaultView toggle logic is untouched underneath, so this is a one-line re-enable once RwaVault
     actually ships. The About tab's own dedicated RWA Vault page is hidden the same way, but
     separately — see the comment above its about-index-item markup further down. */
  a[data-tab="vault"], #vaultView { display: none !important; }
  .chat-head {
    display: flex; align-items: center; justify-content: space-between; padding: 10px 12px;
    border-bottom: 1px solid var(--line); font-size: 12.5px; font-weight: 700; color: var(--text-2);
  }
  .chat-toggle {
    background: none; border: none; color: var(--text-3); cursor: pointer; font-size: 14px; padding: 2px;
  }
  /* Only shown when chat is taking over the screen on mobile (aside.chat.mobile-open, see the
     900px/760px breakpoints below) — this is the fix for "chat takes over and you can't get
     back": previously there was no way to close chat once opened on a phone. Hidden by default
     since the desktop/inline chat sidebar doesn't need a close button at all. */
  .chat-mobile-close {
    display: none; background: none; border: none; color: var(--text); cursor: pointer;
    font-size: 20px; line-height: 1; padding: 2px 6px 2px 0; margin-right: 2px;
  }
  .chat-status { font-size: 9.5px; font-weight: 600; color: var(--text-3); }
  .chat-status.live { color: #4caf6a; }
  .chat-status.off { color: #c0525a; }
  .messages { flex: 1; overflow-y: auto; padding: 10px 10px; display: flex; flex-direction: column; gap: 10px; }
  .msg { font-size: 11.5px; line-height: 1.4; }
  .msg .who { color: var(--flame); font-weight: 700; display: block; font-size: 11px; }
  .msg .body { color: var(--text-2); }
  .msg.system { opacity: .6; font-style: italic; }
  .msg.system .body { color: var(--text-3); }
  .msg.me .who { color: #7fb3ff; }
  .chat-compose {
    display: flex; gap: 6px; padding: 8px; border-top: 1px solid var(--line);
  }
  .chat-compose input {
    flex: 1; min-width: 0; background: var(--surface-2); border: 1px solid var(--line-2);
    border-radius: 6px; color: var(--text); padding: 6px 8px; font-size: 11.5px; outline: none;
  }
  .chat-compose button {
    background: var(--surface-3); border: 1px solid var(--line-2); color: var(--text-2);
    border-radius: 6px; padding: 6px 9px; font-size: 11.5px; cursor: pointer;
  }

  /* Content column */
  .content { flex: 1; min-width: 0; padding: 14px 22px; }
  /* Centers the mid-col + right-rail block within .content with even gutters on both sides.
     Before chat was hidden (task #387), this block just happened to look roughly centered
     because the 159px chat aside ate space on the left — .left-wrap itself was never actually
     centered. With the aside gone, .content spans the full width and .left-wrap (a plain block
     box) sat flush against .content's left padding instead, which is what "moved everything
     left" — see Kenny's report. max-width matches the block's own natural cap (807px mid-col +
     20px gap + 265px right rail = 1092px) so this only kicks in on viewports wide enough to have
     spare room; on narrower/mobile widths it just fills the available width as before. */
  .left-wrap { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; max-width: 1092px; margin: 0 auto; }
  .mid-col { flex: 1 1 640px; max-width: 807px; min-width: 0; }
  .right { width: 265px; flex-shrink: 0; display: flex; flex-direction: column; gap: 12px; }

  /* Chips stat bar */
  .chips { display: flex; gap: 8px; flex-wrap: wrap; }
  .chip {
    flex: 1 1 150px; border: 1px solid var(--ember-border-2);
    background: linear-gradient(160deg, var(--surface-2), var(--surface));
    border-radius: 10px; padding: 6px 10px; display: grid; gap: 2px;
  }
  .chip.lode { background: var(--flame-dim); border-color: var(--flame); }
  .chip .c-label { font-size: 9px; letter-spacing: .08em; color: var(--text-3); font-weight: 700; }
  .chip.lode .c-label { color: var(--flame); }
  .chip .c-value { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--text); }
  /* The 15s gap between a round's deploy window closing and the next opening — replaces a frozen
     "00:00" with an explicit label + a slow pulse so it reads as "something is happening" rather
     than the countdown looking stuck. */
  .chip .c-value.resolving { font-size: 11px; letter-spacing: .04em; color: var(--flame); animation: resolvePulse 1.2s ease-in-out infinite; }
  @keyframes resolvePulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
  .chip.lode .c-value { color: var(--moon); }
  .chip .c-sub { font-size: 9.5px; color: var(--text-3); font-family: var(--mono); }

  /* Jackpots strip — the 3 real GridGame.sol jackpots. Was its own row of cards; now lives as a
     rotating carousel in the hero-mascot spot instead (2026-08-08 v6) — see .jp-carousel below. */
  .jackpots { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 7px; }

  /* Vault jackpot paytable — 4 spin tiers, mirrors .jp-card's look */
  .paytable { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 7px; }
  .pt-card {
    flex: 1 1 100px; border-radius: 10px; padding: 7px 10px; text-align: center;
    background: var(--surface-2); border: 1px solid var(--line-2);
    transition: border-color .15s, background .15s;
  }
  .pt-name { font-size: 9px; letter-spacing: .06em; color: var(--text-3); font-weight: 700; text-transform: uppercase; }
  .pt-chance { font-size: 9.5px; color: var(--text-2); font-family: var(--mono); display: block; margin-top: 1px; }
  .pt-mult { font-family: var(--mono); font-size: 16px; font-weight: 700; color: var(--text); margin-top: 3px; }
  .pt-card.jackpot { border-color: var(--flame); background: var(--flame-dim); }
  .pt-card.jackpot .pt-mult { color: var(--flame); }
  .pt-card.win { border-color: var(--green); background: rgba(127,199,155,0.14); }
  .pt-card.win .pt-mult { color: var(--green); }

  /* Vault right-rail: owner-reported RWA figures — flagged, never styled as verified data */
  .unverified-tag {
    font-size: 10px; color: var(--text-3); font-style: italic; line-height: 1.5; margin-top: 8px;
  }

  /* On-chain RWA holdings table (Vault tab) */
  .rwa-table { width: 100%; border-collapse: collapse; margin: 4px 0 2px; }
  .rwa-table th {
    text-align: left; font-size: 9px; letter-spacing: .06em; text-transform: uppercase;
    color: var(--text-3); font-weight: 700; padding: 0 6px 6px; border-bottom: 1px solid var(--line-2);
  }
  .rwa-table th.num, .rwa-table td.num { text-align: right; }
  .rwa-table td { padding: 7px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
  .rwa-table tr:last-child td { border-bottom: none; }
  .rwa-name-cell { display: flex; align-items: center; gap: 8px; }
  .rwa-logo-wrap { position: relative; width: 22px; height: 22px; flex-shrink: 0; }
  .rwa-logo {
    width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
    background: var(--surface-3); border: 1px solid var(--line-2);
  }
  .rwa-logo-fallback {
    position: absolute; top: 0; left: 0; align-items: center; justify-content: center;
    color: #fff; font-size: 8.5px; font-weight: 800; letter-spacing: -.02em; object-fit: initial;
  }
  .rwa-ticker { font-weight: 700; font-size: 12px; color: var(--text); }
  .rwa-company { font-size: 10px; color: var(--text-3); }
  .rwa-balance { font-family: var(--mono); font-size: 11.5px; color: var(--text-2); }
  .rwa-usd { font-family: var(--mono); font-size: 12px; color: var(--moon); font-weight: 600; }
  .rwa-table-empty { font-size: 11.5px; color: var(--text-3); padding: 10px 6px; }

  /* About tab — page-by-page format with a side index, styled after docs-site nav */
  .about-wrap { max-width: 980px; margin: 0 auto; padding: 22px 4px 60px; width: 100%; }
  .about-kicker {
    font-size: 11px; letter-spacing: .1em; color: var(--flame); font-weight: 700; text-transform: uppercase;
  }
  .about-hero h1 { font-size: 26px; line-height: 1.3; margin: 8px 0 16px; color: var(--moon); font-weight: 800; }
  .about-hero p { font-size: 13.5px; line-height: 1.7; color: var(--text-2); margin: 0 0 12px; }
  .about-layout { display: flex; gap: 22px; align-items: flex-start; margin-top: 12px; }
  .about-index {
    flex: 0 0 210px; position: sticky; top: 16px; display: flex; flex-direction: column; gap: 2px;
    background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 8px;
  }
  .about-index-item {
    display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; cursor: pointer;
    border: 1px solid transparent; background: none; text-align: left; font-family: inherit; width: 100%;
  }
  .about-index-item:hover { background: var(--surface-3); }
  .about-index-item.active { background: var(--surface-3); border-color: var(--line-2); }
  .about-index-n {
    font-family: var(--mono); font-size: 10.5px; color: var(--text-3); width: 16px; flex-shrink: 0;
  }
  .about-index-item.active .about-index-n { color: var(--flame); }
  .about-index-title { font-size: 12px; color: var(--text-2); line-height: 1.3; }
  .about-index-item.active .about-index-title { color: var(--text); font-weight: 700; }
  .about-pages { flex: 1; min-width: 0; }
  .about-page {
    display: none; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px;
    padding: 18px 20px;
  }
  .about-page.active { display: block; }
  .about-page-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
  .about-page-n { font-family: var(--mono); font-size: 12px; color: var(--flame); flex-shrink: 0; }
  .about-page-title { font-size: 16px; font-weight: 800; color: var(--text); }
  .about-page-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); }
  .about-nav-btn {
    display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 8px 14px;
    border-radius: 8px; background: var(--surface-3); border: 1px solid var(--line-2); color: var(--text);
    cursor: pointer; font-family: inherit;
  }
  .about-nav-btn:hover { border-color: var(--flame); }
  .about-nav-btn:disabled { opacity: .35; cursor: default; }
  .about-nav-btn:disabled:hover { border-color: var(--line-2); }
  .about-page-count { font-size: 11px; color: var(--text-3); font-family: var(--mono); }
  /* Tokenomics PDF download (page 8) — same shape as .about-nav-btn but flame-filled since it's a
     primary action on that page, not a secondary prev/next control. */
  .about-download-btn {
    display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 9px 16px;
    border-radius: 8px; background: var(--flame); border: 1px solid var(--flame); color: var(--bg);
    cursor: pointer; font-family: inherit; text-decoration: none; margin: 4px 0 14px;
  }
  .about-download-btn:hover { opacity: .88; }

  /* ---------- Explore tab — read-only protocol-wide stats dashboard ---------- */
  .explore-badge { font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--text-3); }
  .explore-badge.live { color: var(--green); }
  .explore-badge.stale { color: var(--flame); }
  .explore-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 16px; }
  .explore-card .chips { margin-bottom: 10px; }
  .explore-card-wide { grid-column: 1 / -1; }
  .explore-supply-layout { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
  .explore-chart-wrap { flex: 0 0 200px; width: 200px; height: 200px; position: relative; }
  .explore-supply-layout .rwa-table { flex: 1 1 320px; min-width: 260px; margin: 0; }
  .wallet-lookup { display: flex; gap: 8px; margin: 4px 0 12px; }
  .wallet-lookup-input {
    flex: 1; background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px;
    padding: 10px 12px; color: var(--text); font-family: var(--mono); font-size: 13px; outline: none;
  }
  .explore-wallet-result { display: flex; flex-direction: column; gap: 8px; }
  .explore-wallet-result .r-row { margin-bottom: 0; }
  .explore-wallet-empty { font-size: 11.5px; color: var(--text-3); }
  .explore-tag { font-family: var(--mono); font-size: 11px; color: var(--text-2); }
  .explore-tag.hit { color: var(--flame); font-weight: 700; }

  /* Fit-to-one-screen pass (2026-08-08, per Kenny: "get vercel to look at the stats page" ->
     decided against a v0 rebuild, went manual instead like Mine tab). Scoped to #exploreView since
     .about-wrap/.about-hero/.card/.chips/.r-row are all shared with the About tab and other tabs'
     own cards, which must stay untouched. */
  #exploreView.about-wrap { padding-top: 10px; }
  /* Headline/subtitle copy fix (2026-08-12, final cleanup item 1-2): exact copy per Kenny's spec,
     18-20px/700 headline, 11-12px slightly-brighter-grey subtitle, LIVE badge visually separated
     onto its own line (small gap) rather than run into the subtitle sentence. */
  #exploreView .about-hero h1 { font-size: 20px; font-weight: 700; margin: 4px 0 6px; }
  #exploreView .about-hero p { font-size: 12px; margin: 0; color: #b3b8c0; }
  #exploreView .explore-live-row { margin-top: 4px; }
  #exploreView .card { padding: 10px 12px; }
  #exploreView .stake-head { margin-bottom: 6px; }
  #exploreView .r-row { margin-bottom: 4px; }

  /* ---- Stats page redesign (2026-08-11) — Burned & Permanently Locked / Jackpots & Wins /
     Check a Wallet. Reuses .card/.r-row/.rwa-table/.explore-rounds-link throughout so it stays
     visually consistent with the rest of the app; new classes below are layout-only. Kept dark,
     minimal, orange-only-accent per the brief: no extra colors, no glow, no illustration. */
  .stats-top-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
  .stats-tile { text-align: center; padding: 16px 10px; }
  .stats-tile-label { font-size: 10.5px; letter-spacing: .06em; color: var(--text-3); font-weight: 700; text-transform: uppercase; }
  .stats-tile-value { font-family: var(--mono); font-size: 20px; font-weight: 800; color: var(--flame); margin-top: 8px; }
  .stats-section-card { margin-top: 10px; }
  .stats-range-row { display: flex; gap: 6px; margin: 2px 0 10px; }
  .stats-range-btn {
    background: var(--surface-3); border: 1px solid var(--line-2); color: var(--text-2);
    font-size: 11px; font-weight: 600; padding: 5px 12px; border-radius: 7px; cursor: pointer;
  }
  .stats-range-btn:hover { color: var(--text); }
  .stats-range-btn.active { background: var(--flame-dim); border-color: var(--flame); color: var(--flame); }
  .stats-chart-wrap { height: 220px; position: relative; }
  .stats-chart-legend { display: flex; gap: 16px; margin-top: 10px; flex-wrap: wrap; }
  .stats-legend-item { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-2); }
  .stats-legend-item i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
  /* Chart empty state (2026-08-12 fix) — centered over the same fixed-height .stats-chart-wrap
     box rather than a caption below it, so there's never a blank chart-shaped void before enough
     supply-history points exist. renderSupplyChart() toggles this vs the canvas; dimensions never
     change either way. */
  .stats-chart-empty {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    text-align: center; font-size: 12.5px; color: var(--text-3);
  }
  /* Hidden by default (shown only once renderSupplyChart() confirms enough data) so there's never
     a flash of an empty axes-only canvas before the first /api/explore response arrives. */
  #stSupplyChart { display: none; }
  .stats-total-row { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 2px !important; }
  .stats-total-row b { color: var(--flame); }
  .stats-wins-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
  .stats-wins-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
  .wins-tab-btn {
    background: none; border: 1px solid var(--line-2); color: var(--text-2); font-size: 11.5px;
    font-weight: 600; padding: 6px 14px; border-radius: 7px; cursor: pointer;
  }
  .wins-tab-btn:hover { color: var(--text); }
  .wins-tab-btn.active { background: var(--flame-dim); border-color: var(--flame); color: var(--flame); }
  .wins-table { margin-top: 4px; }
  .wins-row { cursor: pointer; }
  .wins-row:hover td { background: var(--surface-2); }
  .wins-row .wins-caret { display: inline-block; margin-left: 6px; color: var(--text-3); font-size: 9px; transition: transform .15s ease; }
  .wins-row.expanded .wins-caret { transform: rotate(90deg); color: var(--flame); }
  .wins-detail-row td { background: var(--surface-2); font-size: 11.5px; color: var(--text-2); padding: 10px 12px; }
  .wins-detail-grid { display: flex; flex-wrap: wrap; gap: 4px 22px; }
  .wins-detail-grid span { color: var(--text-3); }
  .wins-detail-grid b { color: var(--text); font-family: var(--mono); font-weight: 600; margin-left: 4px; }
  .wallet-profile-grid { display: flex; flex-direction: column; gap: 8px; }
  .wallet-profile-section-title { font-size: 10.5px; letter-spacing: .06em; color: var(--flame); font-weight: 700; text-transform: uppercase; margin: 10px 0 2px; }
  .wallet-profile-section-title:first-child { margin-top: 0; }
  .about-steps { display: flex; flex-direction: column; gap: 14px; margin-top: 2px; }
  .about-step { display: flex; gap: 12px; }
  .about-step-n {
    width: 22px; height: 22px; border-radius: 50%; background: var(--surface-3); border: 1px solid var(--line-2);
    display: flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 700;
    color: var(--text-2); flex-shrink: 0; font-family: var(--mono);
  }
  .about-step h3 { font-size: 12.5px; margin: 0 0 4px; color: var(--text); }
  .about-step p { font-size: 12px; color: var(--text-3); line-height: 1.6; margin: 0; }
  .about-p { font-size: 12.5px; color: var(--text-3); line-height: 1.7; margin: 0 0 10px; }
  .about-split { margin: 10px 0 4px; }
  .about-split-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 11.5px; }
  .about-split-label { width: 150px; color: var(--text-2); flex-shrink: 0; }
  .about-split-bar-track { flex: 1; height: 7px; background: var(--surface-3); border-radius: 4px; overflow: hidden; }
  .about-split-bar-fill { height: 100%; background: var(--flame); border-radius: 4px; }
  .about-split-pct { width: 38px; text-align: right; font-family: var(--mono); color: var(--moon); font-weight: 600; flex-shrink: 0; }
  .about-jp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 10px; margin: 10px 0; }
  .about-jp-card { background: var(--surface-3); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px; }
  .about-jp-card h4 { font-size: 12px; color: var(--flame); margin: 0 0 5px; }
  .about-jp-card .odds { font-family: var(--mono); font-size: 15px; color: var(--moon); font-weight: 700; margin-bottom: 6px; }
  .about-jp-card p { font-size: 11px; color: var(--text-3); line-height: 1.55; margin: 0; }
  .about-reward-trio { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px,1fr)); gap: 10px; margin: 10px 0; }
  .about-rcard { background: var(--surface-3); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px; }
  .about-rcard h4 { font-size: 12.5px; margin: 0 0 5px; color: var(--text); }
  .about-fee-tag {
    display: inline-block; font-size: 9.5px; font-family: var(--mono); padding: 2px 6px; border-radius: 6px;
    background: var(--surface); border: 1px solid var(--line-2); color: var(--text-2); margin-bottom: 6px;
  }
  .about-fee-tag.zero { color: var(--green); border-color: rgba(127,199,155,.3); }
  .about-rcard p { font-size: 11px; color: var(--text-3); line-height: 1.55; margin: 0; }
  .about-stake-table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 11.5px; }
  .about-stake-table th {
    text-align: left; font-size: 9px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3);
    padding: 0 8px 6px; border-bottom: 1px solid var(--line-2);
  }
  .about-stake-table th.num, .about-stake-table td.num { text-align: right; }
  .about-stake-table td { padding: 7px 8px; border-bottom: 1px solid var(--line); font-family: var(--mono); }
  .about-stake-table tr:last-child td { border-bottom: none; }
  .about-stake-table td.tier-name { font-family: inherit; font-weight: 600; color: var(--text); }
  .about-stake-table tr.burn-row td { color: var(--flame); }
  .about-contract-card {
    background: var(--surface-3); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px; margin-bottom: 8px;
  }
  .about-contract-card h4 { font-size: 12.5px; margin: 0 0 4px; color: var(--text); }
  .about-contract-card p { font-size: 11.5px; color: var(--text-3); line-height: 1.55; margin: 0 0 6px; }
  .about-not-deployed {
    font-size: 10px; font-family: var(--mono); color: var(--text-3); font-style: italic;
    background: var(--surface); border: 1px dashed var(--line-2); border-radius: 6px; padding: 4px 8px; display: inline-block;
  }
  .about-note { font-size: 11px; color: var(--text-3); font-style: italic; line-height: 1.6; margin-top: 10px; }
  .about-subhead { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--flame); margin: 18px 0 4px; font-weight: 700; }
  .about-page h4.about-subhead:first-of-type { margin-top: 4px; }
  .about-new-tag {
    display: inline-block; font-size: 8.5px; font-family: var(--mono); font-weight: 700; letter-spacing: .04em;
    color: var(--bg); background: var(--flame); border-radius: 5px; padding: 1px 5px; margin-left: 5px; vertical-align: middle;
  }

  /* Grid + winners row — .left-col/.grid-col kept for Crucible/Stake/Vault (which still use the
     old flex layout); Mine tab itself moves to the .mine-layout 3-column grid below and no
     longer uses .left-col/.grid-col at all (see mine-layout block). */
  .left-col { display: flex; gap: 20px; margin-top: 9px; flex-wrap: wrap; }
  .grid-col { flex: 1 1 400px; max-width: 500px; min-width: 0; }

  /* ---------- Mine tab 3-column restructure (2026-08-07) ----------
     Ported 1:1 from mine-tab-redesign-preview.html per Kenny: "Take the mock and make it exactly
     like that for the actual website." Scoped entirely to new .mine-* classes (not the shared
     .left-col/.grid-col/.right used by Crucible/Stake/Vault) so the other tabs' layouts are
     untouched — verified via grep that .left-col/.grid-col/.mid-col/.right each have multiple
     usages across tab views before making this change. */
  /* Mine tab's own top-level layout — overrides the shared .left-wrap flex row (used by
     Crucible/Stake/Vault, which still stack .mid-col + .right side by side) via ID+class
     specificity, so only #mineView switches to a vertical stack of [stat strip, 3-col layout]. */
  #mineView.left-wrap { display: block; max-width: 1360px; margin: 0 auto; }
  /* v11 (2026-08-08, per Kenny: "Mining grid moves up / How It works needs to come down" — v10's
     grid-row spanning made hero-card/.right span both rows, but the browser didn't reliably grow
     row 1 to fit hero-card's real height, so it visually overflowed and overlapped Recent Winners/
     How It Works. Back to a plain single-row 3-column grid — the same shape the ORIGINAL pre-v9
     layout used — where each column is its own independent flex stack, so no column's height can
     leak into another's. .mine-left-col = [hero] only as of v15 (Recent Winners/How It Works
     removed, see .jp-stack below); .mine-grid-col = [chips, mining grid]; .right unchanged. All 3
     top-align and start together — no spanning, no overlap risk. */
  .mine-layout {
    display: grid; grid-template-columns: minmax(150px,300px) minmax(300px,692px) minmax(220px,300px);
    gap: 14px; align-items: start;
  }
  /* v16 (2026-08-08, per Kenny: "have a box around the full panel same as everything else") —
     the hero card was background:none/border:none (a leftover from when it just held a floating
     mascot image), but now that it holds the 3-jackpot stack it reads as bare/unboxed next to
     .mine-grid-panel and .card, which both use this same gradient+border+radius treatment. Matches
     .mine-grid-panel's look exactly so all 3 Mine-tab columns feel like one family of panels. */
  .mine-hero-card {
    background: linear-gradient(160deg, var(--surface-2), var(--surface));
    border: 1px solid var(--ember-border); border-radius: 14px; padding: 14px 10px 34px;
    box-shadow: 0 0 30px rgba(255,110,45,0.06);
    display: flex; flex-direction: column; align-items: center; text-align: center;
    flex: 1;
  }
  .mine-stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
  /* Rewards figures strip (2026-08-08 v2, per Kenny: "the 4 boxes go below the 3 top [stat] tabs
     and fit in the same space as the grid") — pulled the 4 REWARDS numbers out of the .right
     column's text rows and into their own row of boxes, styled like the existing .chip stat
     boxes for brand consistency. Lives inside .mine-grid-col directly below .mine-stat-strip (the
     TOTAL DEPLOYED/YOU DEPLOYED/TIME REMAINING chips), so it's confined to that column's width —
     same width as the mining grid below it, not a page-wide strip (v1 spanned the full
     .mine-layout width via grid-column:1/-1; Kenny corrected that). The .claims.claims-grid tile
     grid (formerly below these 4 rows) moved up to sit directly under the deploy card in .right —
     see .rewards below. IDs unchanged (mineUnclaimedEth/mineMinedGrid/minePassiveGrid/
     mineWalletGrid) so the live-data JS needed zero changes. */
  .mine-reward-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .v5-last-result {
    display: none;
    color: #cda66d;
  }
  .v5-last-result .c-value { font-size: 15px; color: #f0c785; }
  .v5-last-result .c-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* Flame accent on the 7 stat/reward chips (2026-08-08, per Kenny: "add some flame accent to
     these 7 boxes") — a thin flame-gradient top edge plus a slightly warmer border/glow than the
     plain .chip default, scoped to just these two strips so it doesn't bleed into .chip.lode/
     .chip.crucible elsewhere (they already carry their own, stronger accent). Kept subtle: values
     stay plain white for legibility, only the box frame itself picks up the ember treatment. */
  .mine-stat-strip .chip,
  .mine-reward-strip .chip {
    position: relative;
    overflow: hidden;
    border-color: var(--ember-border);
    box-shadow: inset 0 1px 0 rgba(255,138,61,0.08), 0 0 14px rgba(255,110,45,0.06);
  }
  .mine-stat-strip .chip::before,
  .mine-reward-strip .chip::before {
    content: "";
    position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: var(--flame-gradient);
    opacity: .6;
  }
  /* v17 (2026-08-08, per Kenny: "make border box slightly longer to line up with bottom of tile
     panel box") — .mine-layout keeps align-items:start on the grid overall (so .right doesn't
     stretch too, see v11 note above), but .mine-left-col alone opts into align-self:stretch so its
     height matches the tallest column in the row — at the time, that was .mine-grid-col, since the
     5x5 mining grid was the tallest thing on the page. .mine-hero-card (flex:1 inside it, see
     above) then grows to fill that full height, so its border-box bottom edge lines up with
     .mine-grid-panel's bottom edge instead of stopping short.
     v20 (2026-08-09, per Kenny: "make the mining grid bigger so that it is level at the bottom
     with the jackpots block") — the jackpot column (.mine-left-col) has since grown taller than
     the grid column (bigger jackpot art, see task #608/#609), flipping which side v17 was written
     for. align-self:stretch only ever matched .mine-grid-col UP to whichever side was tallest —
     it never made .mine-grid-col itself grow to match a taller .mine-left-col, so the mining-grid
     panel was left visibly shorter, stopping above the jackpot column's bottom edge. Fixed the
     same way v17 fixed it in the other direction: .mine-grid-col now also stretches to the row's
     tallest column, and .mine-grid-panel/.grid (below) grow to fill that height so the tiles
     themselves get taller — not just empty padding — while never shrinking below their existing
     70px floor on a short viewport. */
  .mine-left-col { display: flex; flex-direction: column; gap: 2px; align-self: stretch; }
  .mine-grid-col { display: flex; flex-direction: column; gap: 12px; align-self: stretch; }
  .mine-layout > .right { width: auto; flex-direction: column; flex-wrap: nowrap; }
  /* Fit-to-one-screen pass, part 2 (2026-08-08, per Kenny: "keep all on same screen") — after
     shrinking .grid above, .mine-grid-col ended up SHORTER than .right (the deploy card + 4
     reward buttons), which would've made .right the new tallest column and eaten the screen-fit
     savings right back. These are scoped to #mineView specifically (via the ID) rather than
     edited on .card/.seg/.rows/etc. directly, since those base rules are shared with Stake/Vault/
     Crucible's own deploy panels and must stay untouched there. */
  #mineView .card { padding: 10px 14px; }
  #mineView .seg { margin-bottom: 8px; }
  #mineView .bal-line { margin-bottom: 6px; }
  #mineView .helper-row { margin-bottom: 8px; }
  #mineView .quick { margin-bottom: 8px; }
  #mineView .rows { gap: 6px; margin-bottom: 8px; }
  #mineView .rewards { padding: 10px 14px; }
  #mineView .claims { gap: 6px; margin-top: 4px; }
  #mineView .claims button { padding: 8px 13px; }
  #mineView .right { gap: 8px; }

  /* Stake page "bigger/richer" pass (2026-08-08) — supersedes the earlier one-screen-fit trim
     above (Kenny: "no this wasnt through vercel - I am out of credits anyway - this was just your
     interpretation" of a design review he'd gotten elsewhere: the compact page read as "too empty,
     too small for a desktop game UI... almost everything squeezed into a tiny block in the
     top-center while ~70% of the screen is just empty black space." Fix is the opposite direction
     from the earlier pass — bigger container, bigger cards/type, no more internal scroll caps, plus
     an escalating glow on the tier buttons and a bolder "Your Positions" card. Normal page scroll
     is fine now — no one-screen constraint here. No hero illustration yet (that piece needs
     AI-generated art via v0, which is blocked on credits — see task #614 for the follow-up once
     that's unblocked). Scoped to #stakeView since .card/.positions/.apy-card/.r-row/.right/
     .tier-btn/.pos-row etc. are all shared with Mine/Crucible/Vault and must stay untouched
     there. */
  #stakeView.left-wrap { max-width: 1480px; gap: 28px; }
  #stakeView .mid-col { max-width: 1060px; }
  #stakeView .right { width: 380px; gap: 12px; }

  #stakeView .chips { gap: 12px; }
  #stakeView .chip { padding: 14px 16px; }
  #stakeView .chip .c-label { font-size: 10.5px; }
  #stakeView .chip .c-value { font-size: 18px; }

  #stakeView .card { padding: 22px 24px; }
  #stakeView .rewards { padding: 22px 24px; }
  #stakeView .stake-head { font-size: 13px; margin-bottom: 14px; }

  /* Lock tier picker — bigger buttons, plus an escalating warm glow from 1 day up to Permanent
     (1.1x -> 4x) so the higher-commitment tiers visibly read as more valuable, per the brief
     ("Permanent especially should look valuable"). .tier-btn.on/.tier-btn.burn.on (the selected-
     state treatment) are untouched — this only adds a resting-state glow underneath them. */
  #stakeView .tier-picker { gap: 10px; margin-bottom: 18px; }
  #stakeView .tier-btn { padding: 14px 6px; border-radius: 10px; }
  #stakeView .tier-btn .t-dur { font-size: 12px; }
  #stakeView .tier-btn .t-mult { font-size: 10.5px; }
  #stakeView .tier-btn[data-tier="0"] { border-color: rgba(255,182,72,0.22); }
  #stakeView .tier-btn[data-tier="1"] { border-color: rgba(255,164,64,0.28); }
  #stakeView .tier-btn[data-tier="2"] { border-color: rgba(255,146,56,0.34); }
  #stakeView .tier-btn[data-tier="3"] { border-color: rgba(255,128,48,0.42); box-shadow: 0 0 10px rgba(255,128,48,0.12); }
  #stakeView .tier-btn[data-tier="4"] { border-color: rgba(255,110,40,0.52); box-shadow: 0 0 15px rgba(255,110,40,0.2); }
  #stakeView .tier-btn[data-tier="5"] { border-color: rgba(255,68,51,0.6); box-shadow: 0 0 20px rgba(255,68,51,0.3); }

  #stakeView .bal-line { margin-bottom: 14px; font-size: 12.5px; }
  #stakeView .big-amount { padding: 14px 18px; margin-bottom: 14px; }
  #stakeView .num-in { font-size: 22px; }
  #stakeView .helper { margin-bottom: 16px; font-size: 11.5px; }
  #stakeView .quick { gap: 10px; margin-bottom: 18px; }
  #stakeView .quick button { padding: 12px; font-size: 13px; }
  #stakeView .deploy { padding: 16px; font-size: 16px; }

  /* 2026-08-10 per Kenny: "make right hand block smaller and allow for the staking mascot to be
     positioned underneath it" — trims just the tier-picker card (scoped to .tier-card so this
     doesn't also shrink the new .rank-mascot-card below it or the .rewards card) and adds that
     new mascot card. Every rule below tightens the same properties the "richer" pass above set,
     just to smaller values — nothing structural changed, so this stays a same-file override
     rather than touching the base #stakeView rules.
     2026-08-09 (this session) per Kenny: "The right hand side block needs to shrink so that the
     image is viewable on the screen" — the whole right column (tier card + rewards card + mascot)
     was still too tall for the mascot to fit without scrolling, so every card in the column gets
     tightened further here (smaller padding/gaps/fonts) and the mascot image itself shrinks from
     a 240px cap down to 130px.
     2026-08-09 (later same session) per Kenny: "make the mascot at the bottom right bigger but
     keep on the screen" — mascot cap raised 130px -> 175px (~35% bigger). To keep the column from
     growing taller than before (risking the same off-screen problem this whole block exists to
     fix), every other gap/padding in the column was trimmed a touch further to roughly offset the
     added mascot height — net column height should land close to where it was, not taller. */
  #stakeView .right { gap: 10px; }
  #stakeView .tier-card { padding: 10px 14px; }
  #stakeView .tier-card .stake-head { margin-bottom: 6px; }
  #stakeView .tier-card .tier-picker { gap: 6px; margin-bottom: 8px; }
  #stakeView .tier-card .tier-btn { padding: 8px 5px; }
  #stakeView .tier-card .tier-btn .t-dur { font-size: 11px; }
  #stakeView .tier-card .tier-btn .t-mult { font-size: 9.5px; }
  #stakeView .tier-card .bal-line { margin-bottom: 6px; }
  #stakeView .tier-card .big-amount { padding: 8px 12px; margin-bottom: 6px; }
  #stakeView .tier-card .num-in { font-size: 17px; }
  #stakeView .tier-card .helper { margin-bottom: 6px; }
  #stakeView .tier-card .quick { gap: 6px; margin-bottom: 8px; }
  #stakeView .tier-card .quick button { padding: 8px; }
  #stakeView .tier-card .deploy { padding: 9px; font-size: 14px; }

  /* 2026-08-10 per Kenny, with a screenshot boxing the empty space below the Claim ETH button:
     "make it fit in the space I have highlighted red" — the highlighted box is scoped to the
     .right column's own width, not the full page, so the full-width breakout from the previous
     "make mascot twice as big" pass (below both columns, up to 680px) has been reverted:
     .rank-mascot-row moves back inside .right as its last child, sized to fill the column.
     Root cause of why the mascot looked like empty space + a few stray orange dots (not just
     "too small"): stake-mascot-guardian.png already has a real alpha channel — PIL-sampled the
     file directly and its corners are (0,0,0,0) fully transparent, while the castle-ruins/armor
     shadow areas are ~99% opaque but very dark RGB (e.g. (13,5,5), (5,0,1)). mix-blend-mode:
     lighten (added back when an older, different asset needed a "remove solid black bg" hack)
     was being applied on TOP of that already-correct transparency. Lighten keeps only the
     brighter-per-channel of source/backdrop, so every opaque-but-dark pixel — i.e. most of the
     character and scene, not just the background — blended down to near-invisible against the
     page's own near-black background. Only the brightest highlights (flame core, blue shield
     glow) were bright enough to survive, which is exactly the sparse-dots look in the
     screenshot. This got worse, not better, as the image was sized up. Fix: drop
     mix-blend-mode entirely and let the image's own alpha do the work — plain <img>, real
     transparency, full tonal range intact. */
  /* 2026-08-10 per Kenny: "Move up and slightly smaller" — margin-top 8px -> -10px, width 100%
     -> 82%. Then "Move up and a little smaller" again — margin-top -10px -> -30px, width 82%
     -> 70%. Then "25% smaller" — width 70% -> 52.5%. Then, with a screenshot showing a lot of
     empty column space below the mascot at that size: "Bigger I need it to fit nicely in this
     space" — width 52.5% -> 85% to actually fill the open space in the column instead of
     leaving it mostly blank. margin-top stays -30px (that part was working). Then "reduce size
     by 10%" — width 85% -> 76.5%. Then "reduce by 1.5%" — width 76.5% -> 75.35% (76.5 * 0.985).
     Still centered via align-items:center on the card. */
  #stakeView .rank-mascot-card { display: flex; flex-direction: column; align-items: center; text-align: center; margin-top: -30px; }
  #stakeView .rank-mascot-img { width: 75.35%; height: auto; margin: 0; display: block; }

  /* position:relative + z-index here was originally a guardrail for the Guardian card's deliberate
     overlap below it; 2026-08-12 (FLAME_STAKE_FINAL_VISUAL_FIX) removed that overlap (Guardian is
     back to plain in-flow spacing below Rewards, see .st-guardian-card), so this no longer does
     anything functionally — left in place since it's harmless and costs nothing to keep. Nothing
     else about this card changes: same content, same ids, same Claim ETH button. */
  #stakeView .rewards { padding: 12px 16px; position: relative; z-index: 2; }
  #stakeView .rewards-head { font-size: 11px; margin-bottom: 8px; }
  #stakeView .r-row { margin-bottom: 6px; font-size: 12.5px; }
  #stakeView .claims { gap: 6px; margin-top: 2px; }
  #stakeView .claims button { padding: 10px 14px; font-size: 13.5px; }

  /* "Your Positions" as the visual anchor of the page (brief: "the amount, lock status, multiplier
     and Claim ETH action should have much stronger hierarchy") — scoped to #positionsBody only, so
     the Est. APY card below (which reuses the same .pos-row markup) gets its own treatment instead
     of inheriting this one. */
  #stakeView .positions { padding: 20px 22px; margin-top: 18px; }
  #stakeView .positions-head { padding-bottom: 12px; margin-bottom: 10px; font-size: 13px; }
  #stakeView .positions-compact-body { max-height: none; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  #stakeView #positionsBody .pos-row {
    padding: 18px; gap: 10px; border-color: var(--ember-border);
    background: linear-gradient(160deg, var(--surface-2), var(--surface));
  }
  #stakeView #positionsBody .pos-amount { font-size: 20px; }
  #stakeView #positionsBody .pos-badge { font-size: 10.5px; padding: 4px 10px; }
  #stakeView #positionsBody .pos-reward { font-size: 13px; }

  /* Est. APY by Lock Tier — brief: "taking a lot of horizontal space without giving much visual
     information... make the multiplier/APY itself large" instead of six near-identical dark
     rectangles. Keeps all 6 real tiers (dropping to one "featured" number would hide real data),
     but makes the % the dominant visual element: large, flame-colored, glowing. */
  #stakeView .apy-card { padding: 20px 22px; }
  #stakeView .apy-card .positions-head { margin-bottom: 10px; padding-bottom: 10px; }
  #stakeView .apy-card .positions-compact-body { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  #stakeView .apy-card .pos-row { padding: 20px 14px; align-items: center; text-align: center; border-color: var(--ember-border-2); }
  #stakeView .apy-card .pos-left { align-items: center; }
  #stakeView .apy-card .pos-amount { font-size: 24px; font-weight: 800; color: var(--flame); text-shadow: 0 0 12px rgba(255,138,61,0.3); }
  #stakeView .apy-card .pos-meta { font-size: 11px; margin-top: 2px; }

  /* ==========================================================================================
     STAKE PAGE — "Sacred Treasury" redesign (2026-08-12, per Kenny's FLAME_STAKE_CLAUDE_ASSETS
     brief). Visual-only pass: no DOM id used by JS was removed, only the top "PENDING REWARDS"
     chip (see renderStakeChips() — that write was deleted in JS at the same time this shipped,
     not left dangling). Everything below is scoped to #stakeView, same discipline as the rest of
     this tab's CSS, since .card/.chip/.tier-btn/.pos-row/.rewards are shared with Mine/Crucible/
     Vault and must stay untouched there. Emerald (--st-emerald) is introduced here as a
     Stake-only secondary accent (Protection/Treasury/Permanent) layered on top of the site's
     existing orange/gold brand, per the brief's "do not make the whole page green" instruction —
     used only on the Permanent tier button, permanent positions, and the Guardian card border.
     Right column widened from 380px to 480px (mid-col trimmed to match) to give the Guardian
     artwork room to read as a major element per the brief's 420-520px target, while keeping the
     overall left/right split inside the brief's 65-68/32-35 range (roughly 972:480 within the
     1480px max-width below ≈ 67/33). */
  :scope { --st-emerald: #35d08a; --st-emerald-dim: rgba(53,208,138,0.14); }
  #stakeView .mid-col { max-width: 972px; }
  #stakeView .right { width: 480px; }

  .st-header { position: relative; margin-bottom: 4px; text-align: left; }
  .st-header-divider {
    position: absolute; top: -6px; left: -4px; width: 120px; height: auto; opacity: 0.28;
    pointer-events: none; z-index: 0;
  }
  .st-title {
    position: relative; z-index: 1; margin: 0; font-family: var(--display); font-weight: 900;
    font-size: 20px; letter-spacing: -0.01em; color: var(--moon);
    text-shadow: 0 0 20px rgba(255,138,61,0.25);
  }
  @media (min-width: 640px) { .st-title { font-size: 22px; } }
  .st-subtitle { position: relative; z-index: 1; margin: 5px 0 0; font-size: 12px; line-height: 1.45; color: var(--text-2); max-width: 46rem; }

  /* Permanent tier button — subtle emerald+gold identity (brief: "Do NOT turn the whole position
     card green", "restrained emerald + gold accents"). Layered ON TOP of the existing .tier-btn/
     .tier-btn.burn rules above (border-color etc.) rather than replacing them, so the underlying
     red "burn" semantics used elsewhere (pos-badge.burn on open positions, e.g.) are untouched —
     this only restyles the tier-PICKER button itself. */
  #stakeView .tier-btn.burn {
    position: relative; border-color: rgba(53,208,138,0.35);
    background: linear-gradient(160deg, rgba(53,208,138,0.06), var(--surface));
  }
  #stakeView .tier-btn.burn .t-dur { color: var(--st-emerald); }
  #stakeView .tier-btn.burn.on {
    background: linear-gradient(160deg, var(--st-emerald-dim), rgba(240,199,102,0.08));
    border-color: var(--st-emerald); box-shadow: 0 0 16px rgba(53,208,138,0.25);
  }
  #stakeView .tier-btn.burn.on .t-dur { color: var(--st-emerald); }

  /* Permanent POSITIONS (open stakes in Your Positions) — thin emerald border + small highlight,
     not a full-green card (brief again explicit about this). .pos-badge.burn above already sets
     the little status pill red-orange for other tabs' own burn semantics — untouched. Here we only
     add a border/glow to the whole .pos-row when it's a permanent stake, via a sibling class the
     JS adds (see renderStakePositions()). */
  #stakeView .pos-row.st-permanent {
    border-color: rgba(53,208,138,0.4);
    box-shadow: inset 0 0 0 1px rgba(53,208,138,0.08), 0 0 14px rgba(53,208,138,0.1);
  }
  #stakeView .pos-row.st-permanent .pos-badge.burn { background: var(--st-emerald-dim); color: var(--st-emerald); }

  /* Small subtle icon accents (brief: "Use the SVG icons subtly... Do not put icons everywhere") —
     one 11px glyph beside the position meta line and the rewards head, nothing on every row. */
  .st-pos-icon { width: 11px; height: 11px; vertical-align: -1.5px; margin-right: 3px; opacity: 0.7; }
  .st-rewards-icon { width: 13px; height: 13px; vertical-align: -2px; margin-right: 5px; opacity: 0.85; }

  /* Loading / error states for wallet-specific sections (ADDITIONAL REQUIREMENT in the brief) —
     reuses .pos-empty's existing look for the positions card so no new empty-state style is
     needed; chip/reward numbers get a plain muted ellipsis instead of flashing "0.00"/"0.0000". */
  .st-loading-text { font-size: 11.5px; color: var(--text-3); padding: 10px 0; grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; }
  .st-spinner {
    width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line-2);
    border-top-color: var(--flame); animation: st-spin 0.7s linear infinite; flex-shrink: 0;
  }
  @keyframes st-spin { to { transform: rotate(360deg); } }
  .st-error-text { font-size: 11.5px; color: var(--text-3); padding: 10px 0; grid-column: 1 / -1; }
  .st-retry-btn {
    margin-left: 8px; padding: 4px 12px; border-radius: 6px; border: 1px solid var(--line-2);
    background: var(--surface-3); color: var(--flame); font-size: 10.5px; font-weight: 700; cursor: pointer;
  }
  .st-retry-btn:hover { border-color: var(--flame); }
  .c-value.st-loading-dim, .r-row b.st-loading-dim { color: var(--text-3); font-weight: 400; }

  /* Your Rewards card header — icon + relabel container so #pendingRewardsRow/#weightShareRow/
     #claimStakeBtn keep their exact ids/position in the DOM, only the head gains an icon. */
  .st-rewards-head-row { display: flex; align-items: center; }

  /* Guardian card — 2026-08-12 (FLAME_STAKE_FINAL_VISUAL_FIX, superseding the same-day overlap/
     bleed version below in history): Kenny's follow-up brief reported the Guardian was now too
     LARGE, parts of the composition were being cropped, and there was "a visible rectangular/
     glowing area around the image." Root cause of the rectangle/glow: the stake-frame.svg wrapper
     (now removed from the markup above) plus the two drop-shadow filters that used to sit on
     .st-guardian-img — a drop-shadow follows the image's full transparent bounding box, not just
     the opaque pixels, so a large blurred shadow reads as a soft rectangle behind mostly-
     transparent artwork. Both are gone now: no frame asset, filter:none. Root cause of the
     cropping: width:118% + a -64px negative margin-top were sized for deliberate overflow/overlap
     with the Rewards card, which is no longer wanted — this is now a plain in-flow image, sized to
     max-width:420px (mid the brief's 400-430px target) and never wider than its column, with a
     small POSITIVE margin-top so it starts a short gap below Rewards instead of tucking under it.
     overflow:visible/pointer-events:none/z-index kept as guardrails even though nothing should
     overlap now — costs nothing and keeps this safe if sizing changes again later. No change to
     staking controls, Rewards card content, DOM ids, or JS bindings. */
  .st-guardian-card {
    position: relative; overflow: visible; display: flex; justify-content: center;
    min-height: 0; padding: 0; border: none; background: none; box-shadow: none;
    margin-top: 48px; pointer-events: none; z-index: 0;
  }
  .st-guardian-img {
    position: relative; z-index: 1; width: 100%; height: auto; max-width: 420px;
    object-fit: contain; margin: 0 auto; display: block; pointer-events: none;
    background: none; border: none; box-shadow: none; filter: none;
    transform: translate(-20px, -18px);
  }
  /* Tablet / wrapped-row layout — scale down further so it never collides with the tier/rewards
     cards beside it in the wrapped row. */
  @media (max-width: 1200px) {
    .st-guardian-card { min-height: 0; margin-top: 10px; }
    .st-guardian-img { max-width: 340px; transform: none; }
  }
  /* Mobile — plain in-flow stacking below Rewards, full width up to a sensible cap, original
     aspect ratio preserved, no horizontal scroll risk, no absolute positioning. */
  @media (max-width: 900px) {
    .st-guardian-card { margin-top: 14px; }
    .st-guardian-img { width: 100%; max-width: 420px; margin: 0 auto; }
  }

  /* Mobile stacking order (brief: header -> staking controls -> rewards -> guardian -> main stats
     -> positions -> APY). Achieved with flex order rather than reordering markup, so desktop's
     natural DOM order (stats/positions/APY left, controls/rewards/guardian right) stays the
     source of truth and mobile is purely a visual reflow — same pattern already used by
     #stakeView .right's existing max-1200px rule just below. */
  @media (max-width: 1200px) {
    #stakeView.left-wrap { flex-direction: column; }
    #stakeView .right { order: 1; flex-direction: column; }
    #stakeView .right .tier-card { order: 1; }
    #stakeView .right .rewards { order: 2; }
    #stakeView .right .st-guardian-card { order: 3; }
    #stakeView .mid-col { order: 2; max-width: none; }
  }

  /* Mascot rules kept but currently unused in markup (2026-08-08 v6, "remove the hero mascot for
     now") — .jp-carousel below has taken its spot. Left in place in case the mascot comes back. */
  .mine-medallion { position: relative; display: flex; align-items: center; justify-content: center; }
  .mine-logo-img { width: auto; height: 190px; max-width: 100%; object-fit: contain; filter: drop-shadow(0 0 18px rgba(255,138,61,0.5)); position: relative; z-index: 1; }
  /* v15 (2026-08-08, per Kenny: "remove the HOW it works and recent winners and just have the 3
     jackpots vertically BIG SMALL MOTHERLODE order - no carousel - just static images with ETH
     FLAME values changing etc") — replaces the 5s cross-fading single-card carousel (v6-v14,
     see below) with 3 always-visible cards stacked vertically in a plain flex column, freed-up
     room in .mine-left-col now that How It Works/Recent Winners are gone too (see their removal
     right below in the markup). Order matches the array order the live-update code already used
     (jpInferno = Big, jpBlaze = Small, jpFlare = Motherlode), so no JS changes needed there — see
     jpInferno/jpBlaze/jpFlare's textContent updates, untouched. spawnJpCarousel()'s rotation timer
     is gone; the ids/value-overlay markup it drove are reused as-is, just permanently "on" instead
     of index-toggled. */
  /* v16 (2026-08-08, per Kenny: "spread out equally and the text needs to drop on a few of them
     make bigger if required") — .jp-stack now fills the full height of .mine-hero-card (which
     itself stretches to flex:1 inside .mine-left-col, see above) and uses justify-content:
     space-evenly so the 3 cards distribute evenly across all the freed-up vertical room left by
     removing How It Works/Recent Winners, instead of clumping at the top with dead space below.
     v18 (2026-08-08, per Kenny: "the bottom jackpot is too close to the bottom - space the 3
     equidistant") — was space-between, which pins the last card flush to the container's bottom
     edge with no margin, so Motherlode's value text (which hangs below its own image via
     .jp-value-box's negative bottom offset, see below) ran right up against/past the panel border.
     space-evenly adds that same gap before the first card and after the last one too, so all 3
     sit clear of both edges. See .mine-hero-card's padding-bottom below for the matching fix.
     v19 (2026-08-08, per Kenny: "the 3 jackpots need to move up slightly so distance from border
     is the same at top and bottom") — space-evenly's "gap before first / after last" shares are
     computed off each item's plain 190px flow height, but Motherlode's value text hangs well below
     that (via .jp-value-box's negative bottom offset), silently eating into the last gap's real
     visible clearance. Net effect: the top gap (full, untouched) reads bigger than the bottom gap
     (partly consumed by that hanging text) even though the CSS numbers were meant to be even. A
     small upward nudge trades a bit of the excess top whitespace for more real bottom clearance. */
  .jp-stack { display: flex; flex-direction: column; gap: 18px; align-items: center; justify-content: space-evenly; width: 100%; height: 100%; transform: translateY(-14px); }
  /* v12 (2026-08-08) — Kenny supplied newly-regenerated jackpot art (jp-full-*-v2.png). Unlike the
     original uploads, these have real alpha (rounded-corner cutout, not a hard square), but each
     one's own baked-in vignette wash is a DIFFERENT stray color — Motherlode's is a pale khaki-
     green, Big/Small ETH Jackpot's is warm amber — so laid in as-is they'd blend into the dark page
     inconsistently, one image at a time. Fix: mask much more aggressively than v8 (42%→80% vs the
     old 32%→94%) so most of each image's own mismatched vignette gets cut away, leaving mainly the
     "hot" object itself (chest/crystals/banner) — then each card's own color-matched glow behind
     it (strengthened here) fills that space uniformly across all 3 cards instead. */
  /* v20 (2026-08-08, per Kenny — supplied this exact recipe for the jackpot text: Cinzel Black,
     all caps, tight tracking, gold gradient, dark brown/black shadow, thin orange/gold outer glow,
     bevel/emboss) added as a title above each image, then v21 (2026-08-08, per Kenny: "dont need
     the text above each jackpot, but I like the colour of that text - please replace the ETH flame
     numbers with that text/font") — the standalone title is gone again (.jp-stack-item back to its
     v16 fixed 190px box, image back to height:100%), and that same gold/bevel/emboss recipe now
     lives on .jp-value-item below instead, replacing its old flat --flame-gradient (orange) fill. */
  .jp-stack-item {
    position: relative; width: 190px; height: 190px; max-width: 100%; margin: 0 auto; flex-shrink: 0;
    background: radial-gradient(ellipse 65% 65% at 50% 46%, rgba(255,138,61,0.22), rgba(255,68,51,0.08) 55%, transparent 78%);
  }
  .jp-slide-img {
    width: 100%; height: 100%; object-fit: contain; display: block;
    filter: drop-shadow(0 0 16px rgba(255,138,61,0.35));
    -webkit-mask-image: radial-gradient(ellipse 66% 66% at 50% 46%, #000 42%, transparent 80%);
    mask-image: radial-gradient(ellipse 66% 66% at 50% 46%, #000 42%, transparent 80%);
  }
  /* v9 (2026-08-08, per Kenny's pick): dropped the boxed/white-on-orange v8 pill — the win-amount
     text on the shareable flex cards (see drawFlexCard()'s "Big amount(s)" section) already uses
     the site's --flame-gradient as a text fill with no container at all, so this reuses that exact
     established pattern instead of inventing a new one. No border, no background — just the
     gradient-filled amount sitting under the image. */
  /* v13 (2026-08-08, per Kenny: "the jackpot totals are too far away from the jackpot images -
     move closer and shade/colour in such a way that they look like they are part of the images")
     — pulled the value text out of normal flow (it used to sit in its own row below the jackpot
     image with an 8px margin gap) and overlaid it directly onto the lower third of the image
     instead, via position:absolute inside .jp-stack-item (which is position:relative). A soft
     radial glow — same warm amber as the card's own background wash, just stronger and centered
     right behind the text — sits under the numbers so they read as lit from the same light source
     as the artwork rather than a separate label stuck below it. DOM order (after the .jp-slide-img)
     plus no explicit z-index needed puts it on top naturally.
     v14 (2026-08-08) — per Kenny, the value text was sitting too high, crowding/overlapping the
     "SMALL/BIG ETH JACKPOT" banner baked into the artwork. Dropped bottom:14px -> 2px to nudge it
     down into the plain dark space below that banner. Also swapped the flat DM Mono digits for
     Cinzel (--display, loaded above) — an engraved-serif game/treasure typeface that echoes the
     banner lettering's own style instead of reading like a tech/UI number.
     v16 (2026-08-08, per Kenny: "the text needs to drop on a few of them") — the Motherlode art's
     own baked-in "MOTHERLODE" banner sits lower in its frame than Big/Small ETH Jackpot's banners
     do, so bottom:-8px wasn't enough clearance and the value text overlapped it. Dropped further
     to -26px (clear of all 3 banners now) and bumped size up to match the enlarged 190px cards.
     v21 (2026-08-08, per Kenny: "I like the colour of that text - please replace the ETH flame
     numbers with that text/font") — swapped the flat orange --flame-gradient fill for the gold
     gradient + bevel/emboss + outer-glow recipe Kenny gave for the (now-removed) jackpot titles,
     see .jp-stack-item's note above. Same layering as before: gold gradient text-fill, 2 stacked
     text-shadows underneath it for the bevel/emboss (light highlight above, dark recess below,
     drawn through the transparent fill), dark drop-shadow + thin gold outer-glow drop-shadow on
     top for legibility against the artwork. Letter-spacing loosened back from title's tight -0.01em
     to .02em — these are numerals, not the all-caps banner word, so tight tracking looked cramped. */
  .jp-value-box {
    position: absolute; left: 50%; bottom: -26px; transform: translateX(-50%);
    display: grid; width: max-content; max-width: 90%; padding: 8px 18px 6px;
    background: radial-gradient(ellipse 85% 75% at 50% 55%, rgba(255,158,66,0.38), rgba(255,68,51,0.14) 55%, transparent 78%);
    pointer-events: none;
  }
  .jp-value-item {
    grid-area: 1 / 1; font-family: var(--display); font-size: 22px; font-weight: 900;
    letter-spacing: .02em; text-align: center; opacity: 0; transition: opacity .7s ease;
    background: linear-gradient(180deg, #fff6d6 0%, #ffd873 32%, #d99a1f 62%, #8a5a06 100%);
    -webkit-background-clip: text; background-clip: text;
    color: transparent; white-space: nowrap;
    text-shadow: 0 1px 0 rgba(255,244,210,0.35), 0 -1px 0 rgba(40,20,4,0.55);
    filter: drop-shadow(0 2px 2px rgba(25,12,3,0.85)) drop-shadow(0 0 4px rgba(255,175,70,0.55));
  }
  .jp-value-item.on { opacity: 1; }
  /* v17 (2026-08-08, per Kenny: "Small jackpot text to move up slightly / Mother load text all in
     one line") — .jp-value-box's shared -26px offset (tuned for Big/Motherlode's art) sat a touch
     too low under Small ETH Jackpot's shorter chest image, so .jp-value-box-tight nudges just that
     one back up. Motherlode's "XX.XX FLAME" string is longer than the ETH boxes' "X.XX ETH", so at
     the shared max-width:90% (~171px of the 190px card) it wrapped to 2 lines; .jp-value-box-wide
     widens that one box to the full card width so "FLAME" stays on the same line as the number. */
  .jp-value-box-tight { bottom: -14px; }
  .jp-value-box-wide { max-width: 100%; }
  .mine-grid-col > .mine-grid-panel { width: 100%; }
  /* v20 (2026-08-09) — display:flex/flex-direction:column/flex:1 added so this panel fills
     .mine-grid-col's now-stretched height (see .mine-grid-col above) the same way .mine-hero-card
     fills .mine-left-col. .mine-grid-panel-head and .field-actions stay their natural size as
     ordinary flex children; #grid (flex:1, see below) is the one that absorbs the extra height. */
  .mine-grid-panel {
    background: linear-gradient(160deg, var(--surface-2), var(--surface)); border: 1px solid var(--ember-border); border-radius: 14px; padding: 10px;
    box-shadow: 0 0 30px rgba(255,110,45,0.06);
    display: flex; flex-direction: column; flex: 1;
  }
  .mine-grid-panel-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 7px; }
  .mine-grid-panel-head h2 { font-size: 12px; letter-spacing: .05em; margin: 0; color: var(--flame); font-weight: 800; text-shadow: 0 0 10px rgba(255,138,61,0.35); }
  .mine-grid-panel-head span { font-size: 10px; color: var(--text-3); }

  /* Fit-to-one-screen pass (2026-08-08, per Kenny: "keep all on same screen") — grid-auto-rows
     86px/gap 12px was the single biggest vertical consumer on the whole tab (5 rows + 4 gaps).
     Shrunk to 70px/8px, which alone reclaims ~96px without changing the 5x5 layout, tile
     selection visuals, or any JS (still just #grid, .tile/.tile.selected, untouched).
     v20 (2026-08-09) — swapped the fixed grid-auto-rows:70px for grid-template-rows: repeat(5,
     minmax(70px, 1fr)) + flex:1 (the panel is now display:flex via .mine-grid-panel above, so
     #grid is a flex child that gets to claim whatever extra height .mine-grid-col's stretch adds).
     70px stays as a hard floor — on a short viewport where the jackpot column ISN'T taller, this
     computes right back to the old fixed 70px rows, so the fit-to-one-screen behavior above is
     unaffected either way. */
  .grid {
    display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(5, minmax(70px, 1fr));
    gap: 8px; width: 100%; flex: 1;
  }
  /* Selected-tile visual state fully redone 2026-08-08 (per Kenny's detailed spec: "heated /
     burning around the edges with a strong FLAME-style orange glow, while the inside of the
     tile stays mostly dark and readable... NOT neon cyberpunk... NOT yellow... NOT casino-like").
     Unselected went from a warm gradient fill to a flat near-black (#141414) with just a subtle
     orange-brown border, so the selected state reads as a clear, high-contrast "this one's lit"
     jump rather than everything already glowing a bit. The old tileFlicker keyframe (which
     animated .tile.selected's own box-shadow directly) is retired — the flicker now lives on the
     new ::before pseudo-element below (selectedTileFlame), so .tile.selected's own multi-layer
     box-shadow stays static/strong and the ::before's opacity-only animation is what gives the
     "uneven, ember-like" flicker without the whole tile's glow uniformly pulsing in and out.
     Text inside selected tiles is now plain white (was --flame/--moon two-tone) — Kenny was
     explicit that tile numbers must stay crisp/white with no added glow, only the border/edges
     should look like they're burning.
     Toned down further 2026-08-08 (same day) — per Kenny: "still too bright... make the visual
     effect darker, deeper orange, and more subtle... heated obsidian with glowing edges, NOT
     bright orange neon button." Darkened the radial interior gradient, swapped the bright
     border-color for a deeper burnt orange (#c85a16), cut the box-shadow glow layers down to 4
     much weaker ones, darkened/desaturated the ::before edge gradient and dropped its blur/
     opacity (5px/0.8 -> 3px/0.45), and simplified selectedTileFlame to a subtle opacity-only
     flicker (0.38-0.55, no blur/scale swings) per his exact spec. Grid layout, tile sizes,
     selection logic, hover behavior, and text stayed untouched. */
  .tile {
    position: relative;
    background: #141414;
    border: 1px solid rgba(255, 126, 32, 0.25);
    border-radius: 14px; cursor: pointer; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 5px;
    transition: background .2s, border-color .2s, transform .12s, box-shadow .2s;
    user-select: none;
  }
  .tile:not(.selected):hover {
    border-color: rgba(255, 126, 32, 0.55);
    box-shadow: 0 0 8px rgba(255, 95, 20, 0.12);
    transform: translateY(-1px);
  }
  .tile .t-id { font-family: var(--mono); font-size: 13px; color: var(--text-3); }
  .tile .t-val { font-family: var(--mono); font-size: 16px; font-weight: 600; color: var(--text); }
  .tile .t-miners { display: flex; align-items: center; gap: 3px; font-family: var(--mono); font-size: 9.5px; color: var(--text-3); }
  .tile .t-miners svg { width: 9px; height: 9px; stroke: var(--text-3); }
  .tile.selected {
    isolation: isolate;
    z-index: 2;
    border-color: #c85a16;
    background: radial-gradient(circle at 50% 45%, rgba(145,55,10,0.10) 0%, rgba(28,18,14,0.97) 45%, #141414 75%);
    box-shadow:
      0 0 2px rgba(200,85,20,0.70),
      0 0 6px rgba(170,60,10,0.45),
      0 0 12px rgba(120,40,5,0.22),
      inset 0 0 8px rgba(180,65,12,0.14);
  }
  .tile.selected .t-id, .tile.selected .t-val, .tile.selected .t-miners { color: #ffffff; }
  /* Irregular fiery edge — an offset, blurred gradient ring behind the tile (negative z-index,
     stays within the isolated stacking context set above) rather than a uniform box-shadow, so
     the border reads as uneven/molten (stronger in a few spots, weaker in others) instead of a
     flat neon outline. Animated for a slow ember flicker; the tile's own box-shadow above stays
     put so the tile itself never visibly "pulses." */
  .tile.selected::before {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    pointer-events: none;
    z-index: -1;
    background: linear-gradient(115deg,
      rgba(190,65,10,0.65) 0%,
      rgba(145,40,5,0.50) 22%,
      rgba(210,85,15,0.65) 45%,
      rgba(120,30,5,0.35) 68%,
      rgba(190,65,10,0.65) 100%);
    filter: blur(3px);
    opacity: 0.45;
    animation: selectedTileFlame 1.7s ease-in-out infinite alternate;
  }
  /* Thin inner ember line, keeps the very edge of the tile itself looking hot even where the
     blurred ::before ring is momentarily weak. */
  .tile.selected::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 0 3px rgba(255,180,60,0.75), inset 0 0 8px rgba(255,95,15,0.28);
  }
  @keyframes selectedTileFlame {
    0%   { opacity: 0.38; }
    35%  { opacity: 0.55; }
    70%  { opacity: 0.42; }
    100% { opacity: 0.50; }
  }
  /* Ring of fire — added 2026-08-08 per Kenny: "can we get a ring of fire effect for the winning
     tile?" This is the settled-round reveal state (.drawing, applied via refreshFlameState's
     tiles.forEach reveal block ~line 6113 above), a separate moment from .tile.selected's subtler
     ember glow — it's the actual "you hit it" payoff, on-screen for the ~15s intermission before
     the next round opens, so it's allowed to read brighter/more celebratory than the selected
     state. Note: .tile.selected also owns a ::before (the ember-flicker edge) — a tile that's
     both .selected and .drawing at once (you picked the winning square) can only render one
     ::before, and since this rule is declared after .selected's in the stylesheet it wins for
     that tile, which is the right outcome: the win ring should take over from the ambient
     selected glow.
     Reworked 2026-08-08 (same day) — per Kenny's reference image: "have the edges of the tile
     burning - so when selecting the winning tile it turns off the orange colour and then gives
     the ring of fire around it." The v1 pass filled the tile itself with var(--flame-gradient) (a
     flat light-orange background), which is exactly the "orange colour" he asked to turn off —
     swapped to the same flat dark #141414 interior as an unselected tile (plain white text, since
     the light-on-dark var(--bg) text no longer applies against a dark fill) so all the "burning"
     reads entirely from the ring.
     Rebuilt again 2026-08-08 (same day, 3rd pass) — per Kenny: "shows now but just not the ring
     of fire." The 2nd pass built the ring via a masked ::before (mask-composite: exclude, cutting
     a content-box-shaped hole out of a filled conic-gradient box) — a technique with known patchy
     real-world support once you mix -webkit-mask and unprefixed mask/mask-composite on the same
     element, which is almost certainly why it silently failed to render for Kenny while the dark
     tile fill (a plain, non-mask property) still worked fine. Replaced with a mask-free two-
     pseudo-element "hole punch" instead: ::before is a small margin larger than the tile (inset
     -4px), fully filled with the flame conic-gradient, no mask at all; ::after sits exactly on
     the tile's own footprint (inset 0) filled solid #141414 and painted on top of ::before (via a
     less-negative z-index, -1 vs -2) — so ::after simply covers/hides the middle of ::before,
     leaving only the outer 4px band showing as a ring. Every property involved (position, inset,
     border-radius, background, z-index) is basic, universally-supported CSS — nothing masked.
     Per Kenny's immediate follow-up ("remove the rotating graphic... keep the static ring... make
     it look its burning") also dropped the continuous 360° rotation (ringFireSpin) in favor of a
     static ring whose glow/opacity flickers in place (burningFlicker below) — reads as an actual
     flame licking at the edge rather than a spinning wheel. */
  .tile.drawing {
    position: relative;
    isolation: isolate;
    z-index: 3;
    background: #141414;
    border-color: transparent;
    animation: drawingGlowPulse 1.4s ease-in-out infinite;
  }
  .tile.drawing .t-id, .tile.drawing .t-val, .tile.drawing .t-miners { color: #ffffff; }
  .tile.drawing::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 17px;
    z-index: -2;
    pointer-events: none;
    background: conic-gradient(from 0deg,
      #ff3d00, #ffb648 14%, #ffe9b0 26%, #ff8a3d 38%, #ff3d00 52%, #ffcf6b 66%, #ffe9b0 78%, #ff5b00 90%, #ff3d00 100%);
    animation: burningFlicker 1.6s ease-in-out infinite;
  }
  .tile.drawing::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 14px;
    z-index: -1;
    pointer-events: none;
    background: #141414;
  }
  @keyframes burningFlicker {
    0%, 100% { opacity: 0.85; filter: blur(2px)   drop-shadow(0 0 8px  rgba(255,130,30,0.80)) drop-shadow(0 0 18px rgba(255,80,0,0.50)); }
    30%      { opacity: 1;    filter: blur(2.5px) drop-shadow(0 0 10px rgba(255,150,50,0.90)) drop-shadow(0 0 22px rgba(255,90,10,0.60)); }
    55%      { opacity: 0.9;  filter: blur(1.8px) drop-shadow(0 0 7px  rgba(255,120,20,0.75)) drop-shadow(0 0 16px rgba(255,70,0,0.45)); }
    80%      { opacity: 0.95; filter: blur(2.2px) drop-shadow(0 0 9px  rgba(255,140,40,0.85)) drop-shadow(0 0 20px rgba(255,80,0,0.55)); }
  }
  @keyframes drawingGlowPulse {
    0%, 100% { box-shadow: 0 0 6px rgba(255,140,50,0.85), 0 0 16px rgba(255,90,10,0.55), 0 0 30px rgba(255,60,0,0.35); }
    50%      { box-shadow: 0 0 10px rgba(255,170,80,1), 0 0 24px rgba(255,110,20,0.75), 0 0 46px rgba(255,70,0,0.5); }
  }
  .tile.faded { opacity: .22; }

  /* Tile "explosion" effect (2026-08-07, replaces the earlier softer "ignite" per Kenny: "change
     ignite effect to explosion?") — fires once, on selection only (not on deselect — see
     toggleTile()), via a one-shot .exploding class plus JS-spawned blast elements that remove
     themselves on animationend. A punchier hit than the old ignite: bigger scale overshoot, a
     white-hot flash core, a double shockwave ring, and more debris that arcs/tumbles outward
     with gravity instead of flying in straight lines. Animates the tile's own transform/
     box-shadow independently of .tile.selected::before's separate selectedTileFlame flicker
     (2026-08-08 redesign, see above) — that pseudo-element keeps flickering underneath the
     whole time, so once JS removes .exploding the tile settles straight into its normal
     steady-burn selected look with no jump. */
  .tile.exploding { animation: tileExplode 0.7s cubic-bezier(.2,.9,.3,1) both; }
  @keyframes tileExplode {
    0%   { transform: scale(1); box-shadow: 0 0 0 1px var(--flame), 0 0 6px rgba(255,130,50,0.3), inset 0 -8px 12px rgba(255,150,60,0.25); }
    10%  { transform: scale(1.32); box-shadow: 0 0 0 4px #ffffff, 0 0 90px rgba(255,225,180,1), 0 0 170px rgba(255,120,40,0.85), inset 0 -24px 34px rgba(255,235,190,0.95); }
    26%  { transform: scale(0.88); box-shadow: 0 0 0 2px var(--flame), 0 0 46px rgba(255,140,55,0.9), inset 0 -16px 22px rgba(255,170,80,0.7); }
    45%  { transform: scale(1.08); box-shadow: 0 0 0 1px var(--flame), 0 0 28px rgba(255,140,55,0.7), inset 0 -12px 18px rgba(255,160,70,0.55); }
    68%  { transform: scale(0.97); box-shadow: 0 0 0 1px var(--flame), 0 0 22px rgba(255,135,52,0.55), inset 0 -12px 18px rgba(255,155,65,0.4); }
    100% { transform: scale(1); box-shadow: 0 0 0 1px var(--flame), 0 0 18px rgba(255,130,50,0.5), inset 0 -12px 18px rgba(255,150,60,0.35); }
  }
  .tile-flash {
    position: absolute; left: 50%; top: 52%; width: 14px; height: 14px; margin: -7px 0 0 -7px;
    border-radius: 50%; background: radial-gradient(circle, #ffffff 0%, #ffe8bf 35%, rgba(255,150,60,0.6) 65%, transparent 80%);
    pointer-events: none; z-index: 6; animation: tileFlashOut 0.28s ease-out forwards;
  }
  @keyframes tileFlashOut { 0% { transform: scale(0.2); opacity: 1; } 100% { transform: scale(5.5); opacity: 0; } }
  .tile-shock {
    position: absolute; left: 50%; top: 52%; width: 10px; height: 10px; margin: -5px 0 0 -5px;
    border-radius: 50%; border: 2px solid rgba(255,205,130,0.95); pointer-events: none; z-index: 4;
    animation: tileShockOut 0.6s ease-out forwards;
  }
  .tile-shock.ring2 { border-color: rgba(255,140,60,0.6); animation-duration: 0.8s; }
  @keyframes tileShockOut { 0% { transform: scale(0); opacity: .9; } 100% { transform: scale(11); opacity: 0; } }
  .tile-spark {
    position: absolute; left: 50%; top: 55%; width: 4px; height: 4px; border-radius: 50%;
    background: radial-gradient(circle, #fff6e2 0%, #ffb84d 45%, transparent 75%);
    box-shadow: 0 0 7px 2px rgba(255,175,90,0.9); pointer-events: none; z-index: 5;
    animation: tileSparkFly 0.85s cubic-bezier(.25,.65,.4,1) forwards;
  }
  /* Chunkier debris pieces mixed in with the fine sparks — squared off and tumbling (rotation),
     reads as blasted-off rock/ember chunks rather than more sparks, and falls under a light
     gravity arc via the midpoint keyframe instead of flying in a straight line. */
  .tile-debris {
    position: absolute; left: 50%; top: 55%; width: 6px; height: 6px; border-radius: 2px;
    background: linear-gradient(135deg, #ffb84d 0%, #8a3a12 100%);
    box-shadow: 0 0 5px 1px rgba(255,140,60,0.6); pointer-events: none; z-index: 5;
    animation: tileDebrisFly 0.85s cubic-bezier(.25,.65,.4,1) forwards;
  }
  @keyframes tileSparkFly {
    0%   { transform: translate(-50%,-50%) translate(0,0) scale(1); opacity: 1; }
    60%  { transform: translate(-50%,-50%) translate(var(--sx), var(--sy)) scale(0.6); opacity: .9; }
    100% { transform: translate(-50%,-50%) translate(var(--sx), calc(var(--sy) + 14px)) scale(0.15); opacity: 0; }
  }
  @keyframes tileDebrisFly {
    0%   { transform: translate(-50%,-50%) translate(0,0) rotate(0deg) scale(1); opacity: 1; }
    60%  { transform: translate(-50%,-50%) translate(var(--sx), var(--sy)) rotate(var(--rot)) scale(0.85); opacity: .95; }
    100% { transform: translate(-50%,-50%) translate(var(--sx), calc(var(--sy) + 20px)) rotate(calc(var(--rot) * 1.6)) scale(0.3); opacity: 0; }
  }

  .field-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 7px; height: 24px; }
  .ghost-btn {
    background: transparent; border: 1px solid var(--line-2); color: var(--text-2);
    border-radius: 8px; padding: 6px 14px; font-size: 12px; font-weight: 600; cursor: pointer;
  }
  .ghost-btn:hover { border-color: var(--line-3); color: var(--text); }
  .verified { color: var(--green); font-size: 11px; display: flex; align-items: center; gap: 4px; }

  /* Winners */
  .winners {
    flex: 1 1 180px; max-width: 219px; min-width: 160px;
    background: linear-gradient(160deg, var(--surface-2), var(--surface));
    border: 1px solid var(--ember-border-2); border-radius: 12px; padding: 12px; display: flex;
    flex-direction: column; gap: 8px; height: fit-content;
  }
  .winners-mascot { display: flex; justify-content: center; margin-bottom: -2px; }
  .winners-mascot img { width: 56px; height: 56px; object-fit: contain; filter: drop-shadow(0 0 8px rgba(255,138,61,0.4)); }
  .winners-head {
    display: flex; justify-content: space-between; align-items: baseline; font-size: 11px;
    color: var(--text-2); font-weight: 700; border-bottom: 1px solid var(--line); padding-bottom: 8px;
  }
  .winners-head .wh-round { font-size: 10px; color: var(--text-3); font-weight: 500; }
  .winners-head .wh-round .mono { font-family: var(--mono); color: var(--text-2); }
  .w-body { display: flex; flex-direction: column; gap: 6px; }
  .w-row { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 11.5px; }
  .w-who { color: var(--text-2); }
  .w-eth { color: var(--moon); display: flex; align-items: center; gap: 3px; }
  .w-eth::after { content: "Ξ"; color: var(--text-3); font-size: 10px; }

  /* .mine-left-col .winners overrides + the entire .how-it-works/.hiw-* card removed 2026-08-08
     v15 (per Kenny: "remove the HOW it works and recent winners") — both features are gone from
     the Mine tab's markup now (see .jp-stack above, which replaced the single hero image with all
     3 jackpots stacked vertically). The base .winners/.winners-head/.w-body/.w-row rules above are
     untouched — Crucible's and Vault's own winners lists still use them. */

  /* Right rail — bet card */
  .card {
    background: linear-gradient(160deg, var(--surface-2), var(--surface));
    border: 1px solid var(--ember-border-2); border-radius: 12px; padding: 14px;
  }
  .card.glow { border-color: var(--ember-border); box-shadow: 0 0 0 1px rgba(255,138,61,0.1), 0 10px 30px rgba(255,110,45,0.12); }
  .seg { display: flex; background: var(--surface); border-radius: 10px; padding: 3px; gap: 3px; margin-bottom: 12px; }
  .seg button {
    flex: 1; padding: 8px; border-radius: 8px; background: transparent; border: none;
    color: var(--text-3); font-weight: 700; font-size: 12.5px; cursor: pointer;
  }
  .seg button.on { background: var(--flame); color: var(--bg); }
  .seg.source-seg { margin-bottom: 8px; }
  .seg.source-seg button.on { background: var(--flame-dim); color: var(--flame); border: 1px solid var(--flame); }
  /* Up to 3 buttons now (task #469 added "Unclaimed Rewards") — smaller font/padding than the
     2-button case above so "Unclaimed Rewards" doesn't wrap awkwardly in the shared flex:1 space. */
  .seg.source-seg button { font-size: 11px; padding: 8px 4px; line-height: 1.2; }
  .credit-over-note { font-size: 10.5px; color: var(--flame); margin: -4px 0 10px; display: none; }
  .bal-line { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-3); margin-bottom: 10px; }
  .bal-line b { color: var(--text-2); display: flex; align-items: center; gap: 4px; font-weight: 500; }
  /* Shorter box (2026-08-08 v2, per Kenny: "make this smaller still") — shared across
     Mine/Crucible/Stake/Vault's amount-input card, so tightened padding + a smaller digit size
     apply everywhere consistently. */
  .big-amount {
    display: flex; align-items: baseline; justify-content: space-between; border: 1px solid var(--line-2);
    border-radius: 10px; padding: 3px 12px; margin-bottom: 6px; background: var(--surface);
  }
  .num-in { background: transparent; border: none; color: var(--text); font-family: var(--mono); font-size: 16px; font-weight: 700; width: 100%; outline: none; }
  .per { font-size: 9.5px; color: var(--text-3); letter-spacing: .05em; white-space: nowrap; font-weight: 700; }
  .helper { font-size: 10.5px; color: var(--text-3); margin-bottom: 12px; }
  /* Wraps the amount helper text + a Clear button on one line (Mine tab bet amount box) — Kenny
     flagged 2026-08-03 that there was no way to zero out the ETH-per-block amount short of
     manually deleting digits. margin-bottom lives here now instead of on .helper so the two other
     re-uses of .helper (Crucible/Stake/Vault tabs, not wrapped in .helper-row) are unaffected. */
  .helper-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; }
  .helper-row .helper { margin-bottom: 0; }
  .quick { display: flex; gap: 8px; margin-bottom: 14px; }
  .quick button {
    flex: 1; padding: 8px; background: var(--surface); border: 1px solid var(--line-2);
    border-radius: 8px; color: var(--text-2); font-family: var(--mono); font-size: 11.5px; cursor: pointer;
  }
  .quick button:hover { border-color: var(--line-3); color: var(--text); }
  .rows { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
  .row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-2); }
  .row.total { border-top: 1px solid var(--line); padding-top: 8px; color: var(--text); font-weight: 700; }
  .row .with-btn { display: flex; align-items: center; gap: 6px; }
  .mini-btn {
    background: var(--surface-3); border: 1px solid var(--line-2); border-radius: 6px;
    padding: 2px 8px; font-size: 10.5px; color: var(--text-2); cursor: pointer;
  }
  .rv { font-family: var(--mono); }
  .rounds-in {
    width: 56px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 6px;
    color: var(--text); text-align: center; font-family: var(--mono); padding: 4px; font-size: 11.5px;
  }
  .rounds-in:disabled { color: var(--text-3); }
  .note { font-size: 9.5px; color: var(--text-3); margin-left: 4px; }
  .loop-row {
    display: flex; justify-content: space-between; align-items: center; font-size: 12px;
    color: var(--text-2); margin-bottom: 12px;
  }
  .switch { width: 32px; height: 18px; background: var(--surface-3); border: 1px solid var(--line-2); border-radius: 20px; position: relative; cursor: pointer; }
  .switch::after { content: ""; position: absolute; top: 1px; left: 1px; width: 14px; height: 14px; border-radius: 50%; background: var(--text-3); transition: left .15s, background .15s; }
  .switch.on { background: var(--flame-dim); border-color: var(--flame); }
  .switch.on::after { left: 15px; background: var(--flame); }
  /* Loop Rewards is an Auto-mode-only concept (setAutomation's loopWinnings flag) — the Deploy
     button's click handler only ever calls setAutomation() when the Auto tab is selected (see
     deployBtn's listener), so toggling this switch while on Manual silently does nothing. Kenny
     hit this 2026-08-04 ("Looping rewards is not taking anything from unclaimed ETH") — he'd
     toggled it on while still on the Manual tab. Greyed out + non-interactive here, same "auto
     only" treatment as the Rounds field just above it. */
  .switch.disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }
  .deploy {
    width: 100%; padding: 12px; border-radius: 10px; border: none; font-weight: 700;
    font-size: 15px; cursor: pointer; background: var(--flame-gradient); color: var(--bg);
  }
  .deploy:disabled { background: var(--surface-3); color: var(--text-3); cursor: not-allowed; }

  /* Crucible "Quick Outbid" (task: Kenny asked 2026-08-05 for "an outbid tab which immediately
     does it for you without typing in") — sits beside the existing manual Bid button rather than
     replacing it, so .deploy needs to give up its own width:100% here specifically. */
  .crucible-bid-row { display: flex; gap: 8px; }
  .crucible-bid-row .deploy { width: auto; flex: 1; }
  .outbid-btn {
    flex: 1; padding: 12px; border-radius: 10px; font-weight: 700; font-size: 14px; cursor: pointer;
    background: var(--surface-3); color: var(--flame); border: 1px solid var(--flame);
  }
  .outbid-btn:hover { background: var(--surface-2); }
  .outbid-btn:disabled { opacity: 0.5; cursor: not-allowed; }

  /* Rewards card */
  .rewards {
    background: linear-gradient(160deg, var(--surface-2), var(--surface));
    border: 1px solid var(--ember-border-2); border-radius: 12px; padding: 14px;
  }
  .rewards-head { font-size: 11px; letter-spacing: .08em; color: var(--text-3); margin-bottom: 10px; font-weight: 700; }
  .r-row { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-2); margin-bottom: 8px; }
  .r-row b { color: var(--moon); font-weight: 500; font-family: var(--mono); }
  /* Claim/stake buttons restyled to the flame-gradient / dark-card brand language (2026-08-07,
     ported from the Mine tab redesign preview per Kenny: "adopt this brand for the whole
     website"). Markup now wraps the label (and, where relevant, a fee badge) in .c-label/.c-fee
     spans instead of plain button text — verified nothing else in this file mutates these
     buttons' textContent/innerHTML, only .disabled, so this is safe. */
  .claims { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
  .claims button {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    border-radius: 9px; padding: 10px 13px; cursor: pointer; font-family: inherit;
    border: 1px solid var(--line-2); background: linear-gradient(160deg, var(--surface-2), var(--surface));
    transition: transform .15s ease, filter .15s ease, box-shadow .15s ease, border-color .15s ease;
  }
  .claims button .c-label { font-size: 12.5px; font-weight: 800; letter-spacing: .01em; color: var(--text); }
  .claims button .c-fee {
    font-size: 10px; font-weight: 800; font-family: var(--mono); padding: 4px 9px; border-radius: 20px;
    /* color bumped from var(--text-3) (dim gray) to bright white 2026-08-08 per Kenny: "change
       the fee colour to bright white same as other text" — matches .c-label's --text color. */
    letter-spacing: .02em; background: var(--surface-3); color: #ffffff; border: 1px solid var(--line-2);
  }
  .claims button:hover { border-color: var(--line-3); transform: translateY(-1px); }
  .claims button:active { transform: translateY(1px); }
  .claims button:disabled { opacity: .5; cursor: not-allowed; transform: none !important; filter: none !important; }

  .claims button.primary { background: var(--flame-gradient); border: none; box-shadow: 0 6px 22px rgba(255,110,45,0.4); }
  .claims button.primary .c-label { color: var(--bg); }
  .claims button.primary .c-fee { background: rgba(0,0,0,0.55); color: #fff; }
  .claims button.primary:hover { filter: brightness(1.08); box-shadow: 0 6px 26px rgba(255,110,45,0.55); }

  /* Plain-with-orange-hover buttons — Mine tab REWARDS card only (2026-08-08). Started as
     "Stake FLAME"-only styling (.stake, per Kenny: "stake flame has orange text - make it that
     these are plain but when you hover over them they turn orange?"), then extended to all 4
     Mine tab claim buttons per Kenny: "stake flame button works correctly other 3 stay white
     when you hover over them" — renamed the class from .stake to the generic .ember-hover and
     applied it to buyStakeBtn/claimEthBtn/claimAllBtn/stakeBurnBtn alike, so all 4 now go
     orange (label, fee badge, border glow) on hover and read plain at rest. Deliberately its
     own class rather than folding into the base .claims button:hover rule, since that rule is
     shared by claimStakeBtn/vaultClaimRwaBtn on the Stake/Vault tabs and this orange-on-hover
     treatment is Mine-tab-specific. */
  .claims button.ember-hover { border: 1px solid rgba(255,130,60,0.22); box-shadow: inset 0 0 16px rgba(255,138,61,0.05); }
  .claims button.ember-hover:hover {
    border-color: rgba(255,138,61,0.6);
    box-shadow: inset 0 0 16px rgba(255,138,61,0.09), 0 0 18px rgba(255,138,61,0.15);
  }
  .claims button.ember-hover:hover .c-label { color: var(--flame); text-shadow: 0 0 8px rgba(255,138,61,0.3); }
  .claims button.ember-hover:hover .c-fee { background: rgba(0,0,0,0.4); color: #ffd9b0; border: 1px solid rgba(255,138,61,0.5); }

  /* Mine tab REWARDS card only (2026-08-08, per Kenny: "These 4 images are going in a grid at
     the bottom for claim etc") — .claims-grid is an additional modifier class, so this doesn't
     touch the plain .claims text-button rows still used on the Stake/Crucible tabs above. Each
     tile IS the button; the branded artwork carries the label/fee text baked in, so there's no
     .c-label/.c-fee markup here at all. */
  .claims.claims-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .claim-tile {
    padding: 0; border: none; background: none; border-radius: 12px; overflow: hidden;
    cursor: pointer; line-height: 0; transition: transform .15s ease, filter .15s ease;
  }
  .claim-tile img { width: 100%; height: auto; display: block; }
  .claim-tile:hover { transform: translateY(-2px); filter: brightness(1.1); }
  .claim-tile:active { transform: translateY(1px); }
  .claim-tile:disabled { opacity: .5; cursor: not-allowed; transform: none !important; filter: none !important; }
  /* "Busy" flash (2026-08-08 v2, per Kenny: "no I meant the button that I clicked to flash" —
     correcting the first version of this, which pulsed the header logo instead) — pulses the
     clicked claim-tile's own image while doMineClaim() is checking/pending. Targets the <img>,
     not the <button class="claim-tile"> itself, so it never fights .claim-tile:disabled's
     `filter: none !important` two lines up (that rule only overrides the button's own filter,
     not its child's) — and never touches btn.textContent/children, which is what destroyed the
     tile's artwork in the original "Checking…" text-swap bug. See setTileBusy() in doMineClaim(). */
  .claim-tile img.tile-busy { animation: tileBusyFlash 0.9s ease-in-out infinite; }
  @keyframes tileBusyFlash {
    0%, 100% { opacity: 1; filter: none; }
    50% { opacity: .45; filter: drop-shadow(0 0 12px rgba(255,138,61,0.9)) brightness(1.35); }
  }

  /* ---------- Crucible panel ---------- */
  .chip.crucible { background: var(--flame-dim); border-color: var(--flame); }
  .chip.crucible .c-label { color: var(--flame); }
  .chip.crucible .c-value { color: var(--moon); }
  .crucible-explainer { font-size: 12px; color: var(--text-2); line-height: 1.55; margin-bottom: 14px; }
  .crucible-explainer b { color: var(--text); font-weight: 700; }
  /* Reused for the round countdown bar (was the escalating-odds bar under the old Furnace mechanic). */
  .odds-wrap { margin-bottom: 14px; }
  .odds-label { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-3); margin-bottom: 6px; }
  .odds-label b { color: var(--flame); font-family: var(--mono); }
  .odds-bar { height: 6px; border-radius: 4px; background: var(--surface); border: 1px solid var(--line-2); overflow: hidden; }
  .odds-bar-fill { height: 100%; background: var(--flame); border-radius: 4px; transition: width .25s; }
  /* Mine tab Auto status (task: "slider bar underneath ETH... when it runs out and we're
     playing rewards, it changes to REWARDS") — reuses .odds-bar's look, see renderAutoStatus().
     Bar drains from 100% (full funded buffer) toward 0% as budget gets spent by losses; once it
     can't cover another round on its own, .rewards-mode kicks in (living off reinvested winnings
     round-to-round has no meaningful "time left" to show, so the bar switches to a full, gently
     pulsing flame-gradient fill instead of an empty one). */
  .auto-status { margin-bottom: 12px; }
  .auto-status-row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-2); margin-bottom: 6px; }
  .auto-status-sub { font-size: 10.5px; color: var(--text-3); text-align: right; margin-top: 4px; font-family: var(--mono); }
  .auto-bar-fill { transition: width .6s ease; }
  .auto-bar.rewards-mode .auto-bar-fill {
    width: 100% !important; background: var(--flame-gradient); animation: autoRewardsPulse 1.6s ease-in-out infinite;
  }
  @keyframes autoRewardsPulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
  .locked-tag { font-size: 9.5px; color: var(--text-3); font-style: italic; }
  .auxiliary-note { font-size: 10.5px; color: var(--text-3); line-height: 1.5; margin-top: 8px; }
  .leader-card {
    background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px;
    padding: 12px; margin-bottom: 14px;
  }
  .leader-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 11px; color: var(--text-3); }
  .leader-addr { font-family: var(--mono); font-size: 13px; color: var(--moon); font-weight: 700; }
  .leader-stake { font-family: var(--mono); font-size: 13px; color: var(--flame); font-weight: 700; }
  .leader-you { color: var(--flame); font-weight: 700; }

  /* ---------- Stake panel ---------- */
  .stake-head { font-size: 11px; font-weight: 700; color: var(--text-2); margin-bottom: 10px; }
  .tier-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 12px; }
  .tier-btn {
    background: var(--surface); border: 1px solid var(--line-2); border-radius: 8px;
    padding: 8px 4px; cursor: pointer; text-align: center; display: flex; flex-direction: column;
    gap: 2px; user-select: none;
  }
  .tier-btn .t-dur { font-size: 10px; font-weight: 700; color: var(--text-2); }
  .tier-btn .t-mult { font-size: 9px; color: var(--text-3); font-family: var(--mono); }
  .tier-btn.on { background: var(--flame-dim); border-color: var(--flame); }
  .tier-btn.on .t-dur { color: var(--flame); }
  .tier-btn.burn { border-color: rgba(255,68,51,0.4); }
  .tier-btn.burn.on { background: rgba(255,68,51,0.14); border-color: var(--flame-red); }
  .tier-btn.burn.on .t-dur { color: var(--flame-red); }

  .positions {
    background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px;
    padding: 12px; margin-top: 14px;
  }
  .positions-head {
    display: flex; justify-content: space-between; align-items: baseline; font-size: 11px;
    color: var(--text-2); font-weight: 700; border-bottom: 1px solid var(--line); padding-bottom: 8px;
    margin-bottom: 4px;
  }
  .positions-head .ph-sub { font-size: 10px; color: var(--text-3); font-weight: 500; }
  /* Cards, not rows, as of 2026-08-05 (Kenny: "3 stakes side by side rather than a vertical
     slider bar") — see .positions-compact-body's grid below. Each position is now a self-
     contained bordered box instead of one row in a continuous scrolling list, so it needs its
     own border/radius/background rather than just a border-bottom, and its contents stack
     vertically (amount+meta on top, badge/reward/buttons below) since a grid column is much
     narrower than the old full-width row was. */
  .pos-row {
    display: flex; flex-direction: column; gap: 8px; padding: 10px;
    border: 1px solid var(--line); border-radius: 8px; background: var(--surface);
    font-size: 11.5px;
  }
  .pos-empty { font-size: 11.5px; color: var(--text-3); padding: 10px 0; grid-column: 1 / -1; }
  .pos-left { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .pos-amount { font-family: var(--mono); font-weight: 700; color: var(--text); font-size: 12px; }
  .pos-meta { font-size: 10px; color: var(--text-3); }
  .pos-right { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
  .pos-badge {
    font-size: 9px; font-weight: 800; padding: 3px 7px; border-radius: 5px;
    text-transform: uppercase; letter-spacing: .03em; white-space: nowrap;
  }
  .pos-badge.locked { background: var(--surface-3); color: var(--text-3); }
  .pos-badge.unlocked { background: rgba(127,199,155,0.14); color: var(--green); }
  .pos-badge.burn { background: rgba(255,68,51,0.14); color: var(--flame-red); }
  .pos-reward { font-family: var(--mono); color: var(--moon); font-size: 11px; white-space: nowrap; }
  .pos-action {
    padding: 5px 10px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--surface);
    color: var(--text-2); font-size: 10.5px; font-weight: 600; cursor: pointer;
  }
  .pos-action:disabled { opacity: .4; cursor: not-allowed; }
  .pos-action:not(:disabled):hover { border-color: var(--line-3); color: var(--text); }
  /* Your Positions vs Est. Tier APY (2026-08-04) — split into two separate cards (Kenny asked to
     "separate the two blocks... making the APY block bigger and the staking block smaller").
     The APY card gets larger type/row padding so it reads as the more prominent of the two.
     Positions card used to be a single vertically-scrolling list capped at 210px — Kenny flagged
     2026-08-05 that the scrollbar looked odd once several tiers were staked at once ("could we
     have 3 stakes side by side rather than a vertical slider bar"). auto-fit + minmax means this
     naturally lays out 3 per row on desktop (mid-col tops out at 807px — three 220px+ cards plus
     gaps fits), 2 on a tablet-width screen, and 1 on a phone, with no separate media query needed
     for any of those steps. max-height/overflow-y stay on as a safety net only — for the normal
     handful of open positions this now fits with no scrolling or scrollbar at all. */
  .positions-compact-body {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px;
    max-height: 460px; overflow-y: auto;
  }
  .apy-card { padding: 20px 18px; }
  .apy-card .positions-head { font-size: 13px; margin-bottom: 10px; padding-bottom: 10px; }
  .apy-note { font-size: 10.5px; color: var(--text-3); margin-top: 10px; }

  .chat-fab {
    display: none; position: fixed; bottom: 18px; right: 18px; width: 48px; height: 48px;
    border-radius: 50%; background: var(--flame-gradient); border: none; color: var(--bg); cursor: pointer;
    align-items: center; justify-content: center; z-index: 5; box-shadow: 0 8px 20px rgba(0,0,0,.4);
    transform: translateZ(0); -webkit-transform: translateZ(0); /* see .bottom-nav comment */
  }

  /* Bottom tab bar — hidden by default (desktop keeps the inline header <nav>), turned on
     under the 760px breakpoint below where it replaces the old hamburger dropdown entirely.
     Fixed to the viewport bottom with safe-area-inset padding so it clears the home-indicator
     bar on notched phones and the gesture-nav strip on Android once this is installed as a PWA. */
  .bottom-nav {
    display: none;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: var(--surface); border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
    justify-content: space-around; align-items: stretch;
    /* Fixes "bottom tabs disappear while scrolling the About tab, come back on scroll up" —
       body has overflow-x:hidden (below), and combined with position:fixed that's a known
       mobile Safari/Chrome bug where a fixed element detaches and scrolls away with the page
       during momentum scrolling instead of staying pinned to the viewport, then snaps back once
       scrolling settles. Forcing this onto its own GPU compositing layer keeps it correctly
       pinned throughout the scroll instead of only at rest. Only shows up on tabs tall enough to
       actually scroll — About is the first one that is. */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
  }
  .bottom-nav a {
    flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 6px 2px 4px; color: var(--text-3); text-decoration: none; font-size: 10.5px;
    border-radius: 8px;
  }
  .bottom-nav a svg { width: 22px; height: 22px; }
  .bottom-nav a.on { color: var(--flame); }
  .bottom-nav a:active { background: var(--surface-2); }

  @media (max-width: 1200px) {
    .right { width: 100%; flex-direction: row; flex-wrap: wrap; }
    .card, .rewards { flex: 1 1 260px; }
    /* 2026-08-09, mobile sweep — found via code audit, not a screenshot: the Stake tab's "bigger/
       richer" desktop pass (2026-08-08, see #stakeView .right above) set `#stakeView .right {
       width: 380px }` with higher CSS specificity (id + class) than the generic `.right { width:
       100% }` rule directly above. An id+class selector always beats a plain class selector
       regardless of media-query nesting or source order, so on every OTHER tab (Mine/Crucible/
       Vault) .right correctly collapses to a full-width wrapped row below ~1200px, but on Stake
       it silently stayed pinned at a fixed 380px — wider than most phones' entire viewport, and
       since .page-scroll has overflow-x:hidden (not overflow-x:auto), that excess just gets
       clipped off-screen instead of becoming scrollable. In practice: the Stake tab's rewards/
       positions column would run off the right edge of the screen on any phone, with no way to
       scroll to see it. Matching the id+class specificity here (not just .right) so this override
       actually wins. */
    #stakeView .right { width: 100%; }
  }
  /* Mine tab's 3-col .mine-layout has no built-in narrow-viewport fallback (ported as-is from the
     desktop-only redesign mock), so it needs its own responsive collapse — the shared .left-wrap/
     .right breakpoints above don't apply here since Mine no longer uses those classes for layout.
     Stacks to a single column below the point where 300+692+220px of grid tracks stops fitting. */
  @media (max-width: 1120px) {
    .mine-layout { grid-template-columns: 1fr; }
    /* 2026-08-09, per Kenny's screenshot ("mobile view of jackpots" showing the jackpot box
       stopping about halfway across the screen with dead black space beside it) — align-items:
       flex-start here dates back to when .mine-left-col held multiple side-by-side cards (hero +
       How It Works + Recent Winners, both since removed, see the "= [hero] only as of v15" note
       above .mine-left-col's base rule) and needed them top-aligned rather than stretched to match
       heights. With only .mine-hero-card left as a child, flex-start instead left it free to size
       to its own auto content width and sit flush-left — never filling the row at all, at both
       this breakpoint (flex-direction:row) and the one below (flex-direction:column, where
       flex-start becomes a left-aligned narrow column instead of a full-width one). Removed the
       align-items override (falls back to the default stretch) and pinned .mine-hero-card to
       flex-basis 100% below so it explicitly claims the full row/column width either way. */
    .mine-left-col { flex-direction: row; flex-wrap: wrap; }
    .mine-hero-card { flex: 1 1 100%; }
  }
  @media (max-width: 640px) {
    .mine-stat-strip { grid-template-columns: repeat(2, 1fr); }
    /* 2026-08-09, per Kenny's screenshot ("random space in the block") — 3 stat chips (TOTAL
       DEPLOYED/YOU DEPLOYED/TIME REMAINING) in a 2-column mobile grid leaves the 3rd sitting alone
       with an empty cell beside it. Spanning just the odd one out across both columns fills that
       gap without giving up the 2-per-row density for the first pair. */
    .mine-stat-strip .chip:last-child { grid-column: auto; }
    .mine-reward-strip { grid-template-columns: repeat(2, 1fr); }
    .mine-left-col { flex-direction: column; }
  }
  @media (max-width: 900px) {
    aside.chat { display: none; }
    /* Chat's mobile takeover — opened via the chat-fab (this width range) or the bottom-nav
       Chat tab (<=760px, see below). Previously this had no close affordance at all once
       opened; .chat-mobile-close (revealed here) fixes that, and switchToTab() drives the
       "mobile-open" class so opening/closing chat behaves exactly like switching any other tab. */
    aside.chat.mobile-open {
      display: flex !important;
      position: fixed; top: 55px; left: 0; right: 0; bottom: 0; width: 100%; z-index: 20;
    }
    aside.chat.mobile-open .chat-mobile-close { display: inline-flex; align-items: center; }
    .chat-fab { display: flex; }
    .right { flex-direction: column; }
    .card, .rewards { flex: 1 1 auto; }
    .stats-top-grid { grid-template-columns: 1fr; }
  }
  /* Below this width the header can't fit all 6 links plus the wallet/ticker, so the hamburger
     + dropdown #siteNav is hidden entirely and .bottom-nav (declared above) takes over as the
     primary nav — a fixed tab bar instead of a dropdown panel, closer to how a native mobile app
     navigates and the natural fit once this is installed as a PWA. Content gets bottom padding
     so the fixed bar never covers anything, and the chat-fab (which also pins to the bottom)
     shifts up to clear it. */
  @media (max-width: 760px) {
    .nav-toggle { display: none; }
    #siteNav { display: none !important; }
    .bottom-nav { display: flex; } :scope { padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px)); }
    .chat-fab { display: none; } /* superseded by the Chat tab in .bottom-nav at this width */
    /* Chat overlay needs to stop above the bottom-nav bar (not run behind it) at this width. */
    aside.chat.mobile-open { bottom: calc(58px + env(safe-area-inset-bottom, 0px)); }
    /* About tab's page-by-page + side-index layout (task #214) was built for desktop, where the
       fixed 210px .about-index sidebar leaves .about-pages plenty of room. On a phone that same
       210px sidebar sitting in a flex row next to .about-pages squeezed the content column down
       to ~150px, wrapping body text to 2-3 words a line. Stack them instead: index becomes a
       full-width row of wrapping pills above the (now full-width) page content. */
    .about-layout { flex-direction: column; gap: 14px; }
    .about-index {
      flex: 0 0 auto; width: 100%; position: static; flex-direction: row; flex-wrap: wrap; gap: 6px;
    }
    .about-index-item { width: auto; }
    .about-page { padding: 16px 14px; }
  }
  @media (max-width: 640px) {
    header { gap: 10px; padding: 0 10px; }
    /* Previously this only hid the FLAME/ETH labels and left the price <b> tags + separator
       showing — that leftover width, plus the hamburger button added above, was enough to push
       the Connect button (and the WalletConnect fallback link beside it) off the right edge of
       the screen with no way to reach them. Hide the whole ticker instead: on a phone the price
       readout is the least essential thing in the header, and Connect/WalletConnect is the one
       control that has to stay fully on-screen. */
    .wallet .ticker { display: none; }
    .wallet { gap: 8px; }
    .wallet-col { gap: 6px; }
    /* Now that Connect and WalletConnect sit side by side (see .wallet-col above) instead of
       stacked, "WalletConnect" being one unbreakable word matters even more — it sets a hard
       minimum width for the button. Tightening padding/font here (rather than letting it wrap,
       which only made sense in the old stacked layout) is what keeps both buttons on-screen
       together on a phone. */
    .connect-btn { padding: 7px 12px; font-size: 11.5px; }
    .wc-btn { padding: 7px 9px; font-size: 10px; }
    .content { padding: 14px; }
    .winners { max-width: 100%; }
    /* 2026-08-09, mobile sweep — iOS Safari auto-zooms the whole page when a tapped text input's
       *computed* font-size is under 16px. Three real (non-disabled) inputs were sitting below that
       threshold: Crucible's bid-amount field (15px), the Stats-tab wallet lookup (13px), and the
       nickname field (14px) — every one of them would trigger an involuntary zoom-in on tap on a
       phone, which iOS doesn't auto-reverse on blur. Scoped to mobile only so the tighter desktop
       sizing these were designed at is untouched. (.rounds-in was checked too — it's always
       rendered `disabled`, so it's never focusable and was left alone.) */
    .cr-amount-wrap input, .wallet-lookup-input, .nickname-input { font-size: 16px; }
  }

  /* ===========================================================
     CRUCIBLE TAB REDESIGN (2026-08-08) — v0-by-Vercel design pass
     (chat: flame-crucible-page-redesign-jPTyXLRtUiy), hand-ported
     from its generated Next.js/Tailwind source into plain CSS here,
     per Kenny's "ok lets put that in". Scoped entirely under a
     `.cr-` prefix so nothing here touches the shared .chip/.card/
     .winners/.deploy/etc. component classes used by Mine/Stake/
     Vault — those rules above are now unused BY Crucible specifically
     (left in place, harmless) since #crucibleView's markup below no
     longer references them. Real artwork wired in directly:
       crucible-hero-mascot.png (hero mascot + jackpot showcase image — 2026-08-08, per Kenny:
         "lets lose the jackpot image and put the king of the hill image in that space", the
         jackpot card now reuses this same art instead of crucible-jackpot.png)
     Uses the site's existing --bg/--surface/--text/--flame/--display/
     --mono tokens from :scope — --gold is new, added locally here
     since no prior tab needed a dedicated gold accent. #crucibleView
     keeps class="left-wrap" + id (switchToTab() toggles it via
     style.display="flex") but is overridden to display:block below,
     the exact same pattern #mineView.left-wrap already uses for its
     own custom internal layout. */
  :scope { --gold: #f0c766; }
  #crucibleView.left-wrap { display: block; max-width: 1092px; margin: 0 auto; }

  /* Hero (2026-08-08 v2, per Kenny: "have a look at wasted space") — collapsed from a tall
     stacked banner into a short horizontal strip (text left, mascot right) so it no longer eats
     a screen's worth of height on its own. */
  .cr-hero {
    position: relative; overflow: hidden; border-radius: 14px; border: 1px solid var(--ember-border);
    background: radial-gradient(ellipse 80% 130% at 100% 50%, rgba(255,90,40,0.18), transparent 70%), linear-gradient(160deg, var(--surface-2), var(--surface));
    padding: 12px 16px;
    display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; text-align: left;
  }
  .cr-hero-text { flex: 1 1 auto; min-width: 0; }
  .cr-hero-badge {
    display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--ember-border); background: rgba(255,130,60,0.08);
    border-radius: 999px; padding: 3px 10px; margin-bottom: 5px;
  }
  .cr-hero-badge span { font-family: var(--mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: .16em; color: var(--gold); }
  .cr-hero-title {
    margin: 0; max-width: none; font-family: var(--display); font-weight: 900; font-size: 18px; line-height: 1.12;
    text-shadow: 0 0 20px rgba(255,138,61,0.3); color: var(--moon);
  }
  @media (min-width: 640px) { .cr-hero-title { font-size: 23px; } }
  .cr-hero-title .cr-flame-text { background-image: var(--flame-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .cr-hero-sub { margin: 5px 0 0; max-width: 32rem; font-size: 11px; line-height: 1.4; color: var(--text-2); }
  @media (max-width: 480px) { .cr-hero-sub { display: none; } }
  /* Rules link (2026-08-08, per Kenny: "put in a rules button which we can link" / "the rules
     button goes in top RHS of that block") — a normal flex sibling of .cr-hero-text (not
     .cr-hero-text's own last line), so with .cr-hero's align-items:flex-start + its own
     justify-content:space-between it naturally lands pinned to the hero card's top-right
     corner. Jumps to the About tab's existing Crucible explainer page (page 6) rather than
     duplicating that copy here. */
  .cr-rules-btn {
    flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px;
    border: 1px solid var(--ember-border-2); background: rgba(255,130,60,0.08); border-radius: 999px;
    padding: 5px 12px; font-family: var(--mono); font-size: 10.5px; font-weight: 600; color: var(--gold);
    text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s;
  }
  .cr-rules-btn:hover { background: rgba(255,130,60,0.14); border-color: rgba(255,138,61,0.5); }
  .cr-hero-mascot-wrap { position: relative; flex-shrink: 0; width: 70px; margin: 0; }
  @media (min-width: 640px) { .cr-hero-mascot-wrap { width: 96px; } }
  .cr-hero-mascot-wrap img {
    position: relative; z-index: 1; width: 100%; height: auto; margin: 0;
    filter: drop-shadow(0 10px 18px rgba(255,90,40,0.4));
  }
  @media (max-width: 420px) { .cr-hero-mascot-wrap { display: none; } }

  .cr-chips { display: flex; flex-direction: column; gap: 8px; }
  @media (min-width: 640px) { .cr-chips { flex-direction: row; } }
  /* Chips shrunk vertically (2026-08-08, per Kenny's screenshot markup) — was padding:14px 16px
     / value 22px / sub margin-top 4px, tightened so the row takes noticeably less height and
     Close Round fits on screen without scrolling. */
  .cr-chip {
    flex: 1 1 0; border-radius: 12px; border: 1px solid var(--ember-border-2);
    background: linear-gradient(160deg, var(--surface-2), var(--surface)); padding: 8px 14px;
  }
  .cr-chip-head { display: flex; align-items: center; justify-content: space-between; }
  .cr-chip-label { font-family: var(--mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--text-3); }
  .cr-chip-tag {
    display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--ember-border-2); background: rgba(255,130,60,0.08);
    border-radius: 999px; padding: 2px 8px; font-family: var(--mono); font-size: 9.5px; text-transform: uppercase; color: var(--text-3);
  }
  .cr-chip-value { margin-top: 3px; font-family: var(--display); font-weight: 900; font-size: 17px; letter-spacing: -0.01em; }
  .cr-chip-value.gold { color: var(--gold); }
  .cr-chip-value.flame { background-image: var(--flame-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .cr-chip-value.neutral { color: var(--text); }
  .cr-chip-sub { margin-top: 2px; font-family: var(--mono); font-size: 10px; color: var(--text-3); }

  /* Layout (2026-08-08 v3, per Kenny: "make the 3 blocks on the left the same width [as
     the 3 on the right] / move up the jackpot image to sit next to the king of the hill
     image") — hero+chips moved INSIDE the left grid column (alongside the bid card, 3 blocks
     total), matching the right column's supporting blocks. Both
     columns are now equal width (1fr 1fr) and top-aligned, so the jackpot card sits directly
     beside the hero/mascot instead of lower down. Plain DOM order now does the right thing on
     its own (left column first, right column second) so the old order-swap hack is gone. */
  .cr-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
  /* align-items: stretch (2026-08-08, per Kenny: "make the bottom of the rhs block level with
     the lhs block") — was "start", which let .cr-col-right sit shorter than .cr-col-left with
     dead space beneath it. Stretch forces both columns to the grid row's full height; the
     jackpot card (flex:1 below) is what actually grows into that height, since the shorter
     supporting cards below it keep their own natural size. */
  @media (min-width: 860px) { .cr-grid { grid-template-columns: 1fr 1fr; align-items: stretch; } }
  .cr-col-left, .cr-col-right { display: flex; flex-direction: column; gap: 12px; }

  /* Vertical rhythm tightened throughout the bid card (2026-08-08, per Kenny: "Use in deploy
     just slightly off the bottom of the screen") — this card's own height sets both columns'
     height now (see .cr-jackpot-card flex:1 above), so trimming a few px off each internal
     panel's padding/margin here is what gets the whole tab back on-screen without scrolling. */
  .cr-bid-card { border-radius: 16px; border: 1px solid var(--ember-border); background: linear-gradient(160deg, var(--surface-2), var(--surface)); padding: 12px 16px; }
  .cr-bid-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
  .cr-bid-head h2 { margin: 0; font-family: var(--display); font-weight: 900; font-size: 17px; letter-spacing: -0.01em; color: var(--moon); }
  .cr-bid-head p { margin: 5px 0 0; font-size: 11px; line-height: 1.42; color: var(--text-2); }
  .cr-bid-head-icon { display: none; flex-shrink: 0; border-radius: 999px; border: 1px solid var(--ember-border-2); background: rgba(255,130,60,0.08); padding: 8px; }
  @media (min-width: 640px) { .cr-bid-head-icon { display: block; } }

  .cr-panel { margin-top: 8px; border-radius: 12px; border: 1px solid var(--ember-border-2); background: var(--surface-3); padding: 8px 10px; }
  .cr-panel-row { display: flex; align-items: center; justify-content: space-between; }
  .cr-panel-label { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: var(--text-3); }
  .cr-panel-time { font-family: var(--mono); font-size: 15px; font-weight: 700; color: var(--text); }
  .cr-progress-track { margin-top: 6px; height: 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); overflow: hidden; }
  .cr-progress-fill { height: 100%; background: var(--flame); border-radius: 999px; transition: width .25s; }

  .cr-leader-panel { margin-top: 6px; display: flex; flex-direction: column; gap: 6px; border-radius: 12px; border: 1px solid var(--ember-border-2); background: var(--surface-3); padding: 8px 10px; }
  @media (min-width: 640px) { .cr-leader-panel { flex-direction: row; align-items: center; justify-content: space-between; } }
  .cr-leader-left { display: flex; align-items: center; gap: 10px; }
  .cr-leader-avatar { width: 32px; height: 32px; border-radius: 999px; background-image: var(--flame-gradient); box-shadow: 0 0 14px rgba(255,138,61,0.4); display: flex; align-items: center; justify-content: center; font-size: 14px; }
  .cr-leader-name-row { display: flex; align-items: center; gap: 8px; }
  .cr-leader-name { font-family: var(--mono); font-size: 12.5px; color: var(--moon); font-weight: 700; }
  .cr-leader-you { border-radius: 999px; background-image: var(--flame-gradient); color: var(--bg); padding: 2px 8px; font-family: var(--mono); font-size: 9.5px; font-weight: 700; text-transform: uppercase; }
  .cr-leader-sub { margin-top: 2px; font-family: var(--mono); font-size: 10.5px; color: var(--text-3); }
  .cr-nickname-link { align-self: flex-start; border: none; background: none; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; color: var(--gold); }
  @media (min-width: 640px) { .cr-nickname-link { align-self: center; } }
  .cr-nickname-link:hover { text-decoration: underline; }

  .cr-balmin-grid { margin-top: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .cr-balmin-box { border-radius: 8px; border: 1px solid var(--ember-border-2); background: var(--surface-3); padding: 8px 12px; }
  .cr-balmin-label { font-family: var(--mono); font-size: 9px; text-transform: uppercase; letter-spacing: .12em; color: var(--text-3); }
  .cr-balmin-value { margin-top: 2px; font-family: var(--mono); font-size: 13.5px; color: var(--text); }
  .cr-balmin-value.gold { color: var(--gold); }

  .cr-amount-block { margin-top: 8px; }
  .cr-amount-label { margin-bottom: 5px; display: block; font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: var(--text-3); }
  .cr-amount-wrap { position: relative; }
  .cr-amount-wrap input {
    width: 100%; border-radius: 8px; border: 1px solid var(--ember-border-2); background: var(--bg-2);
    padding: 10px 74px 10px 14px; font-family: var(--mono); font-size: 15px; color: var(--text); outline: none; transition: border-color .15s;
  }
  .cr-amount-wrap input:focus { border-color: rgba(255,138,61,0.55); }
  .cr-amount-suffix { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 12.5px; color: var(--text-3); }
  .cr-quickadd { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; }
  .cr-quickadd button {
    border-radius: 999px; border: 1px solid var(--ember-border-2); background: rgba(255,130,60,0.06);
    padding: 4px 11px; font-family: var(--mono); font-size: 10.5px; color: var(--text); cursor: pointer; transition: all .15s;
  }
  .cr-quickadd button:hover { border-color: rgba(255,138,61,0.5); background: rgba(255,130,60,0.12); }

  .cr-actions-1 { margin-top: 10px; display: flex; flex-direction: column; gap: 7px; }
  @media (min-width: 640px) { .cr-actions-1 { flex-direction: row; } }
  .cr-btn-bid {
    flex: 1; border: none; border-radius: 8px; padding: 10px 18px; text-align: center; cursor: pointer;
    background-image: var(--flame-gradient); color: var(--bg); font-family: var(--display); font-weight: 700; font-size: 13.5px;
    box-shadow: 0 8px 22px -6px rgba(255,90,40,0.55); transition: transform .15s;
  }
  .cr-btn-bid:hover { transform: scale(1.01); }
  .cr-btn-outbid {
    flex: 1; border-radius: 8px; padding: 10px 18px; text-align: center; cursor: pointer;
    border: 1px solid var(--ember-border); background: rgba(255,130,60,0.08); color: var(--text); font-weight: 600; font-size: 12px;
    transition: background .15s;
  }
  .cr-btn-outbid:hover { background: rgba(255,130,60,0.14); }
  .cr-actions-2 { margin-top: 6px; display: flex; flex-direction: column; gap: 7px; }
  @media (min-width: 640px) { .cr-actions-2 { flex-direction: row; } }
  .cr-btn-ghost {
    flex: 1; border-radius: 8px; padding: 8px 18px; text-align: center; cursor: pointer;
    border: 1px solid var(--ember-border-2); background: transparent; color: var(--text-3); font-weight: 500; font-size: 12px; transition: all .15s;
  }
  .cr-btn-ghost:hover:not(:disabled) { border-color: var(--ember-border); color: var(--text); }
  .cr-btn-ghost:disabled { opacity: .4; cursor: not-allowed; }

  /* Jackpot showcase — top card of .cr-col-right, and the card that absorbs whatever extra
     height .cr-grid's align-items:stretch hands the column (flex:1 below) — so its image grows
     or shrinks to keep the column's bottom level with .cr-col-left's bottom (2026-08-08, per
     Kenny), instead of a fixed width/aspect-ratio guess that drifted out of sync every time the
     left column's content height changed. */
  .cr-jackpot-card {
    position: relative; display: flex; flex-direction: column; align-items: center;
    flex: 1 1 auto; min-height: 0;
    border-radius: 16px; border: 1px solid var(--ember-border); background: linear-gradient(160deg, var(--surface-3), var(--surface-2)); padding: 10px;
  }
  .cr-jackpot-glow { position: absolute; inset: 0; border-radius: 16px; pointer-events: none; background: radial-gradient(ellipse 70% 60% at 50% 30%, rgba(240,199,102,0.12), transparent 70%); }
  /* Fills the card's leftover height (flex:1) rather than a fixed width — the image inside
     scales via object-fit:contain, so it grows only as large as the taller left column allows
     without ever distorting or overflowing. */
  /* flex-basis: 0, not auto (2026-08-08, per Kenny: "not level both blocks" — RHS was actually
     running LONGER than LHS) — with flex-basis:auto, the image's own intrinsic aspect-ratio
     height fed into the grid's row-height calculation before stretch/grow ever kicks in, which
     could make the right column's "natural" size taller than the left column's and flip the
     mismatch the other way. flex-basis:0 (+ min-height:0) makes this item contribute ~nothing
     to that pre-stretch measurement, so the grid row's height is set by .cr-col-left alone, and
     only then does this flex:1 grow into whatever height that leaves for it — the image can
     never be what's dictating the column height. */
  .cr-jackpot-img-wrap {
    position: relative; z-index: 1; width: 100%; flex: 1 1 0; min-height: 0;
    display: flex; align-items: center; justify-content: center;
  }
  .cr-jackpot-img-wrap img { margin: 0 auto; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 16px 40px rgba(240,199,102,0.25)); }
  .cr-jackpot-footer { position: relative; z-index: 1; margin-top: 8px; width: 100%; display: flex; align-items: center; justify-content: center; border-top: 1px solid var(--ember-border-2); padding-top: 8px; }
  .cr-jackpot-footer .cr-jf-label { font-family: var(--mono); font-size: 9px; text-transform: uppercase; letter-spacing: .14em; color: var(--text-3); text-align: center; }
  .cr-jackpot-footer .cr-jf-value { margin-top: 2px; font-family: var(--display); font-weight: 900; font-size: 18px; color: var(--gold); text-align: center; }

  .cr-side-card { border-radius: 16px; border: 1px solid var(--ember-border-2); background: linear-gradient(160deg, var(--surface-2), var(--surface)); padding: 10px 14px; }
  .cr-side-head { display: flex; align-items: center; gap: 8px; }
  .cr-side-head.cr-spread { justify-content: space-between; }
  .cr-side-head h3 { margin: 0; font-family: var(--display); font-weight: 900; font-size: 13.5px; color: var(--moon); }
  .cr-locked-pill { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; border: 1px solid var(--ember-border-2); background: rgba(255,130,60,0.08); padding: 3px 9px; font-family: var(--mono); font-size: 9.5px; text-transform: uppercase; color: var(--text-3); }
  .cr-winners-list { margin-top: 6px; display: flex; flex-direction: column; }
  .cr-winner-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid rgba(255,130,60,0.1); }
  .cr-winner-row:first-child { border-top: none; padding-top: 1px; }
  .cr-winner-left { display: flex; flex-direction: column; }
  .cr-winner-round { font-family: var(--mono); font-size: 10px; color: var(--text-3); }
  .cr-winner-name { font-family: var(--mono); font-size: 11.5px; color: var(--text); }
  .cr-winner-amount { font-family: var(--mono); font-size: 11.5px; font-weight: 700; color: var(--gold); }
  .cr-winner-note { font-size: 9px; color: var(--text-3); font-style: italic; margin-top: 1px; }
  .cr-winner-empty { font-size: 11.5px; color: var(--text-3); padding: 10px 6px; }

  .cr-credit-balance { margin-top: 6px; font-family: var(--mono); font-size: 19px; font-weight: 700; color: var(--text); }
  .cr-credit-note { margin-top: 4px; font-size: 10px; line-height: 1.4; color: var(--text-3); }
  .cr-btn-deploy-credit {
    margin-top: 8px; width: 100%; border-radius: 8px; border: 1px solid var(--ember-border); background: rgba(255,130,60,0.08);
    padding: 8px 18px; text-align: center; cursor: pointer; font-weight: 600; font-size: 12px; color: var(--text); transition: background .15s;
  }
  .cr-btn-deploy-credit:hover { background: rgba(255,130,60,0.14); }

  @media (max-width: 640px) { .cr-bid-card, .cr-jackpot-card, .cr-side-card { padding: 12px; } }

.ref-style-0{width:100%;}
.ref-style-1{margin-top:8px; font-size:10.5px; color:var(--text-3);}
.ref-style-2{display:none;}
.ref-style-3{display:none;}
.ref-style-4{margin-top:8px; font-size:10.5px; color:var(--text-3);}
.ref-style-5{display:none;}
.ref-style-6{margin-top:2px;}
.ref-style-7{background:#ff8a3d}
.ref-style-8{background:#ff4433}
.ref-style-9{background:#5c626c}
.ref-style-10{margin-bottom:0;}
.ref-style-11{display:none;}
.ref-style-12{display:none;}
.ref-style-13{margin-bottom:10px;}
.ref-style-14{width:auto;padding:0 18px;}
}
.canonical-page{font-family:var(--sans);margin:24px 0;min-height:0!important}
.canonical-page button:disabled{cursor:not-allowed;opacity:.5}
.canonical-page .integration-notice{padding:10px 14px;border:1px solid #ff8a3d55;border-radius:8px;color:#eac6a5;font-size:14px;margin:10px 0}
.canonical-page [hidden]{display:none!important}
.canonical-page h1,.canonical-page h2,.canonical-page h3,.canonical-page button,.canonical-page input{font-family:inherit}
.canonical-page .stake-position,.canonical-page .crucible-record{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 20px;margin:10px 0;border:1px solid #78512f77;border-radius:12px;background:#151516}
.canonical-page .stake-position.st-permanent{border-color:#bd782f99;background:linear-gradient(120deg,#241c16,#151516 65%)}
.canonical-page .pos-left{display:flex;flex-direction:column;gap:7px;min-width:0}
.canonical-page .stake-position .pos-amount{font-size:24px;line-height:1.2;color:#fff3df;font-weight:700}
.canonical-page .position-tier{font-size:16px;font-weight:600;color:#ffbd76}
.canonical-page .stake-position .pos-meta,.canonical-page .crucible-record .pos-meta{font-size:14px;line-height:1.45;color:#c3b9b2;overflow-wrap:anywhere}
.canonical-page .pos-right{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:10px;max-width:320px}
.canonical-page .pos-reward{width:100%;font-size:16px;line-height:1.4;color:#fff3df;text-align:right}
.canonical-page .pos-badge{padding:4px 9px;border:1px solid #a9845277;border-radius:5px;font-size:13px;color:#e4cba2}
.canonical-page .pos-badge.burn{color:#ffbd76;border-color:#c17c39;background:#4a2b15}
.canonical-page .pos-action{width:auto;min-height:42px;padding:9px 16px;border:1px solid #876038;border-radius:7px;font-size:15px;font-weight:600;background:#2b221a;color:#ffd39b}
.canonical-page .cr-claimable{display:block;font-size:24px;margin:10px 0;color:#ffd39b}
.canonical-page #crucibleClaimBtn{display:block;width:100%;min-height:48px;padding:12px 18px;border:1px solid #ffbd76;border-radius:9px;background:linear-gradient(110deg,#ffc56b,#f4863b);color:#25160c;font-size:16px;font-weight:700;line-height:1.3}
.canonical-page #crucibleClaimBtn:disabled{opacity:1;background:#35271e;border-color:#956b43;color:#f0cea6;cursor:not-allowed}
.canonical-page #crucibleClaimBtn:hover:not(:disabled){background:linear-gradient(110deg,#ffd38a,#ff9a50);color:#25160c}
.canonical-page #crucibleClaimBtn:focus-visible{outline:3px solid #ffe1aa;outline-offset:3px}
.canonical-page #crucibleIncreaseBtn{margin-top:10px;min-height:44px;padding:9px 18px;font-size:14px;font-weight:700;border:1px solid #ffbd76;background:linear-gradient(110deg,#ffc56b,#f4863b);color:#25160c}
.canonical-page #crucibleTimeLeft{font-variant-numeric:tabular-nums}
.canonical-page #crucibleMinHelper{font-size:14px;line-height:1.4;color:#c3b9b2}
.canonical-page #crucibleTimeBarFill{transition:width 1s linear}
@media(max-width:640px){
  .canonical-page .stake-position{flex-direction:column;align-items:stretch;padding:16px;gap:14px}
  .canonical-page .pos-right{justify-content:flex-start;max-width:none}
  .canonical-page .pos-reward{text-align:left;order:-1}
  .canonical-page .crucible-record{flex-wrap:wrap;padding:14px}
}
@media(prefers-reduced-motion:reduce){.canonical-page #crucibleTimeBarFill{transition:none}}
