/*
 * The interaction panel as Apple would draw it: frosted, translucent
 * bubbles floating over the room, pill controls, one type family, numbers
 * that keep their width, and motion that eases rather than announces.
 *
 * Loaded last on every page that mounts the crowd panel. It restyles the
 * surfaces only: layout, order and behaviour stay where they were, so the
 * other sheets keep doing their job underneath.
 *
 * Glass needs something to refract. Over a flat dark ground a frosted pane
 * reads as grey, so the dock gets an ambient layer behind it: two soft
 * colour fields, blurred, that the bubbles pick up. Over the video (the
 * watch page lays the dock across the picture) it refracts the stream.
 */

:root {
  --gl-face: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Plus Jakarta Sans', 'Helvetica Neue', system-ui, sans-serif;
  /* The Dock's glass: a light neutral frost, not a dark tint. Light enough to read as
     material over the picture, dark enough for white type to hold. */
  --gl-bg: rgba(70, 70, 80, 0.34);
  --gl-bg-strong: rgba(110, 110, 122, 0.36);
  --gl-bg-press: rgba(150, 150, 162, 0.42);
  --gl-stroke: rgba(255, 255, 255, 0.22);
  --gl-hi: rgba(255, 255, 255, 0.45);
  --gl-ink: rgba(255, 255, 255, 0.97);
  --gl-ink-2: rgba(255, 255, 255, 0.72);
  --gl-ink-3: rgba(255, 255, 255, 0.50);
  --gl-tint: 181, 108, 255;
  --gl-yes: 126, 226, 168;
  --gl-no: 255, 138, 147;
  --gl-blur: blur(36px) saturate(170%) brightness(0.96);
  --gl-r: 24px;
  --gl-r-s: 16px;
  /* the rim: a bright top edge, a faint inner line all round, a dark bottom edge, then the drop */
  --gl-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 -1px 0 rgba(0, 0, 0, 0.28), 0 12px 32px rgba(0, 0, 0, 0.42);
  /* the tiles inside the glass: dark, glossy, the Dock's icon wells */
  --gl-tile: linear-gradient(180deg, rgba(64, 64, 72, 0.78), rgba(36, 36, 42, 0.88));
  --gl-tile-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.20), inset 0 -1px 0 rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.35);
  --gl-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ---- the dock: no box of its own, an ambient field behind the bubbles ---- */
.crowd-dock {
  position: relative;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 12px !important;
  gap: 10px;
  font-family: var(--gl-face);
  color: var(--gl-ink);
  isolation: isolate;
}
.crowd-dock::before {
  content: '';
  position: absolute;
  inset: -40px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 20% 10%, rgba(255, 255, 255, 0.10), transparent 70%),
    radial-gradient(50% 45% at 85% 70%, rgba(var(--gl-tint), 0.12), transparent 70%);
  filter: blur(30px);
}

/* ---- every card is a bubble ---- */
.crowd-dock > .crowd-head,
.crowd-dock .crowd-poll,
.crowd-dock .crowd-shares,
.crowd-dock .crowd-bounty,
.crowd-dock .crowd-callers,
.crowd-dock .crowd-book,
.crowd-dock .crowd-bank,
.crowd-dock .crowd-bets,
.crowd-dock .crowd-table,
.crowd-refill,
.crowd-table {
  background: var(--gl-bg) !important;
  -webkit-backdrop-filter: var(--gl-blur);
  backdrop-filter: var(--gl-blur);
  border: 1px solid var(--gl-stroke) !important;
  border-radius: var(--gl-r) !important;
  box-shadow: var(--gl-shadow) !important;
  padding: 16px 18px !important;
  color: var(--gl-ink);
  position: relative;
  overflow: hidden;
}
/* the inner highlight along the top edge, the thing that makes glass read as glass */
.crowd-dock > .crowd-head::after,
.crowd-dock .crowd-poll::after,
.crowd-dock .crowd-shares::after,
.crowd-dock .crowd-bounty::after,
.crowd-dock .crowd-callers::after,
.crowd-dock .crowd-book::after,
.crowd-dock .crowd-bank::after,
.crowd-dock .crowd-bets::after,
.crowd-refill::after {
  content: '';
  position: absolute;
  left: 12%; right: 12%; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gl-hi), transparent);
  pointer-events: none;
}

/* ---- the head: a slim pill with the balance ---- */
.crowd-dock > .crowd-head {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px !important;
  border-radius: 999px !important;
}
.crowd-dock .crowd-head h3 { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.01em; color: var(--gl-ink-2); text-transform: none; }
.crowd-dock .crowd-head .wallet { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--gl-ink); font-variant-numeric: tabular-nums; background: var(--gl-bg-strong); border-radius: 999px; padding: 4px 12px 4px 8px; }
.crowd-dock .crowd-head .wallet b { font-weight: 700; }

/* ---- kickers, clocks, the small type ---- */
.crowd-dock .crowd-kicker, .crowd-dock .poll-kind, .crowd-dock .bets-kind, .crowd-dock .bank-kind, .crowd-dock .sh-head, .crowd-dock .pm-head, .crowd-dock .pt-head {
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gl-ink-3);
}
.crowd-dock .crowd-clock, .crowd-dock .poll-clock, .crowd-dock .sh-clock, .crowd-dock .bets-clock, .crowd-dock .bank-clock, .crowd-dock .pm-clock, .crowd-dock .rf-clock {
  font-size: 12px; font-weight: 600; color: var(--gl-ink-2); font-variant-numeric: tabular-nums;
  background: var(--gl-bg-strong); border-radius: 999px; padding: 3px 10px;
}
.crowd-dock .crowd-card-head, .crowd-dock .poll-top, .crowd-dock .bets-top, .crowd-dock .bank-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }

/* ---- questions and titles ---- */
.crowd-dock .poll-top .text, .crowd-dock .crowd-bounty-title, .crowd-dock .sh-head + *, .crowd-dock .pm-label, .crowd-dock .bets-group-name {
  font-size: 17px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; color: var(--gl-ink);
}

/* ---- poll options: pills with a liquid fill ---- */
.crowd-dock .poll-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 6px; }
.crowd-dock .poll-option {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 46px; padding: 10px 14px;
  border: 1px solid var(--gl-stroke) !important;
  border-radius: 16px !important;
  background: var(--gl-bg) !important;
  color: var(--gl-ink) !important;
  font: 600 14px/1.2 var(--gl-face) !important;
  letter-spacing: -0.005em;
  transition: transform 180ms var(--gl-ease), background 180ms var(--gl-ease), border-color 180ms var(--gl-ease);
}
.crowd-dock .poll-option .text { position: relative; z-index: 1; }
.crowd-dock .poll-option .num { position: relative; z-index: 1; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--gl-ink-2); font-size: 13px; }
.crowd-dock .poll-option .fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: linear-gradient(90deg, rgba(var(--gl-tint), 0.34), rgba(var(--gl-tint), 0.10));
  border-radius: inherit;
  transition: width 600ms var(--gl-ease);
}
.crowd-dock .poll-option:hover:not(:disabled) { background: var(--gl-bg-strong) !important; border-color: rgba(255,255,255,0.24) !important; }
.crowd-dock .poll-option:active:not(:disabled) { transform: scale(0.97); background: var(--gl-bg-press) !important; }
.crowd-dock .poll-option.mine { border-color: rgba(var(--gl-tint), 0.7) !important; box-shadow: 0 0 0 3px rgba(var(--gl-tint), 0.18); }
.crowd-dock .poll-option:disabled { opacity: 0.7; }
.crowd-dock .poll-foot, .crowd-dock .bets-foot, .crowd-dock .bank-foot, .crowd-dock .sh-vol, .crowd-dock .pm-vol, .crowd-dock .pm-note, .crowd-dock .rf-note { font-size: 12px; color: var(--gl-ink-3); }

/* ---- the market: a segmented control and pill actions ---- */
.crowd-dock .sh-sides, .crowd-dock .pm-sides {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3px;
  padding: 3px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.22); border: 1px solid var(--gl-stroke);
}
.crowd-dock .sh-side, .crowd-dock .pm-side {
  border: 0 !important; border-radius: 999px !important; background: transparent !important;
  color: var(--gl-ink-2) !important; font: 600 13px var(--gl-face) !important; padding: 9px 0 !important;
  transition: background 180ms var(--gl-ease), color 180ms var(--gl-ease);
}
.crowd-dock .sh-side.is-on, .crowd-dock .sh-side[aria-pressed="true"], .crowd-dock .pm-side.is-on, .crowd-dock .pm-side[aria-pressed="true"] {
  background: var(--gl-bg-press) !important; color: var(--gl-ink) !important; box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.crowd-dock .sh-price { font: 700 28px var(--gl-face); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--gl-ink); }
.crowd-dock .sh-price-row { display: flex; align-items: baseline; justify-content: space-between; margin: 6px 0; }
.crowd-dock .sh-spark { opacity: 0.8; }
.crowd-dock .sh-go, .crowd-dock .sh-buy, .crowd-dock .sh-cashout, .crowd-dock .pm-buy, .crowd-dock .bank-plus, .crowd-dock .rf-go, .crowd-dock .crowd-bounty-row button, .crowd-dock .pm-chips button, .crowd-dock .bank-chips button {
  font: 600 14px var(--gl-face) !important; color: var(--gl-ink) !important;
  background: var(--gl-bg-strong) !important; border: 1px solid var(--gl-stroke) !important; border-radius: 999px !important;
  padding: 11px 16px !important; cursor: pointer;
  transition: transform 160ms var(--gl-ease), background 160ms var(--gl-ease);
}
.crowd-dock .sh-go, .crowd-dock .sh-buy, .crowd-dock .rf-go { background: rgba(var(--gl-tint), 0.55) !important; border-color: rgba(var(--gl-tint), 0.7) !important; }
.crowd-dock .sh-cashout { background: rgba(var(--gl-yes), 0.22) !important; border-color: rgba(var(--gl-yes), 0.5) !important; }
.crowd-dock .sh-go:hover, .crowd-dock .sh-buy:hover, .crowd-dock .crowd-bounty-row button:hover, .crowd-dock .pm-chips button:hover, .crowd-dock .bank-chips button:hover { background: var(--gl-bg-press) !important; }
.crowd-dock .sh-go:active, .crowd-dock .sh-buy:active, .crowd-dock .sh-cashout:active, .crowd-dock .crowd-bounty-row button:active { transform: scale(0.96); }
.crowd-dock button:disabled { opacity: 0.45; cursor: default; }
.crowd-dock .sh-result, .crowd-dock .pm-result, .crowd-dock .bets-result, .crowd-dock .bank-result { font-size: 13px; color: var(--gl-ink-2); }

/* ---- actions (Hype, Doubt and the game's own): chips in a row ---- */
.crowd-dock .crowd-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 4px; }
.crowd-dock .crowd-btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 8px 14px !important;
  background: var(--gl-bg) !important; border: 1px solid var(--gl-stroke) !important; border-radius: 999px !important;
  -webkit-backdrop-filter: var(--gl-blur); backdrop-filter: var(--gl-blur);
  color: var(--gl-ink) !important; font: 600 13px var(--gl-face) !important;
  box-shadow: var(--gl-shadow);
  transition: transform 160ms var(--gl-ease), background 160ms var(--gl-ease);
}
.crowd-dock .crowd-btn .cost { font-variant-numeric: tabular-nums; color: var(--gl-ink-2); font-weight: 600; }
.crowd-dock .crowd-btn .cool { color: var(--gl-ink-3); font-variant-numeric: tabular-nums; }
.crowd-dock .crowd-btn:hover:not(:disabled) { background: var(--gl-bg-strong) !important; }
.crowd-dock .crowd-btn:active:not(:disabled) { transform: scale(0.95); }

/* ---- the bounty and the callers ---- */
.crowd-dock .crowd-bounty-pot { font-size: 13px; color: var(--gl-ink-2); }
.crowd-dock .crowd-bounty-pot b { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; color: var(--gl-ink); font-variant-numeric: tabular-nums; }
.crowd-dock .crowd-bounty-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.crowd-dock .crowd-bounty-line { font-size: 12px; color: var(--gl-ink-2); margin-top: 10px; }
.crowd-dock .crowd-bounty-line.won { color: rgb(var(--gl-yes)); }
.crowd-dock .crowd-bounty-line.failed, .crowd-dock .crowd-bounty-line.refunded { color: rgb(var(--gl-no)); }
.crowd-dock .crowd-callers-list li { padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 13px; }
.crowd-dock .crowd-callers-list li:last-child { border-bottom: 0; }
.crowd-dock .crowd-callers-list li span { color: var(--gl-ink-3); }
.crowd-dock .crowd-callers-list li em { font-weight: 700; font-variant-numeric: tabular-nums; }
.crowd-dock .crowd-callers-me { border-top: 1px solid rgba(255,255,255,0.08); color: var(--gl-ink-2); }

/* ---- the note: a small floating toast ---- */
.crowd-dock .crowd-note {
  margin: 0; padding: 8px 14px;
  font: 500 12.5px var(--gl-face); color: var(--gl-ink-2);
  background: var(--gl-bg); border: 1px solid var(--gl-stroke); border-radius: 999px;
  -webkit-backdrop-filter: var(--gl-blur); backdrop-filter: var(--gl-blur);
}
.crowd-dock .crowd-note:empty { display: none; }
.crowd-dock .crowd-note.bad { color: rgb(var(--gl-no)); }

/* ---- the refill sheet and the table keep the same glass ---- */
.crowd-refill .rf-title, .crowd-table .pt-head { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.crowd-refill .rf-close { background: transparent !important; border: 0 !important; color: var(--gl-ink-2) !important; }

/* ---- the home stage panel and the casino page share the language ---- */
.hm-stage-side.watch-page { background: transparent !important; border-left: 0 !important; }
.hm-stage-side-head { background: var(--gl-bg); -webkit-backdrop-filter: var(--gl-blur); backdrop-filter: var(--gl-blur); border: 1px solid var(--gl-stroke) !important; border-radius: var(--gl-r); margin: 12px 12px 0; }
.pl-card {
  background: var(--gl-bg) !important; -webkit-backdrop-filter: var(--gl-blur); backdrop-filter: var(--gl-blur);
  border: 1px solid var(--gl-stroke) !important; border-radius: var(--gl-r) !important; box-shadow: var(--gl-shadow);
  font-family: var(--gl-face);
}
.pl-sideb { border-radius: var(--gl-r-s) !important; background: var(--gl-bg) !important; border-color: var(--gl-stroke) !important; }
.pl-stakes button, .pl-go { border-radius: 999px !important; background: var(--gl-bg-strong) !important; border-color: var(--gl-stroke) !important; font-family: var(--gl-face) !important; }
.pl-stakes button.is-on { background: rgba(var(--gl-tint), 0.45) !important; border-color: rgba(var(--gl-tint), 0.7) !important; }
.pl-go.yes { background: rgba(var(--gl-yes), 0.22) !important; border-color: rgba(var(--gl-yes), 0.5) !important; }
.pl-go.no { background: rgba(var(--gl-no), 0.22) !important; border-color: rgba(var(--gl-no), 0.5) !important; }
.pl-bar { background: rgba(255,255,255,0.10) !important; }
body:has(.pl) { background: radial-gradient(80% 60% at 20% 0%, rgba(var(--gl-tint), 0.16), transparent 60%), radial-gradient(60% 50% at 90% 80%, rgba(90,140,255,0.12), transparent 60%), #0b0b0c; }

/* ---- calm, when asked ---- */
@media (prefers-reduced-motion: reduce) {
  .crowd-dock *, .crowd-dock *::before, .crowd-dock *::after { transition: none !important; }
}
/* Browsers without backdrop-filter get a slightly denser fill so the text stays readable. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root { --gl-bg: rgba(30, 30, 36, 0.88); --gl-bg-strong: rgba(48, 48, 56, 0.92); }
}

/* ================================================================== */
/* The live HUD and the interaction arena, in the same glass.          */
/* The watch page lays its controls over the picture: the viewer card, */
/* the wallet, the round cue, the room panel, the action dock. Every   */
/* one of them becomes a frosted bubble refracting the stream.         */
/* ================================================================== */

.hud-viewer, .hud-wallet, .hud-channel-card, .hud-round-cue, .hud-action-dock, .hud-utilities, .ix-room-panel, .room-guide-card {
  background: var(--gl-bg) !important;
  -webkit-backdrop-filter: var(--gl-blur) !important;
  backdrop-filter: var(--gl-blur) !important;
  border: 1px solid var(--gl-stroke) !important;
  box-shadow: var(--gl-shadow) !important;
  color: var(--gl-ink);
  font-family: var(--gl-face);
}
.hud-viewer, .hud-wallet, .hud-channel-card, .hud-round-cue, .ix-room-panel, .room-guide-card { border-radius: var(--gl-r) !important; }
.hud-action-dock, .hud-utilities { border-radius: 999px !important; padding: 8px !important; gap: 4px !important; }
.hud-viewer::after, .hud-wallet::after, .hud-round-cue::after, .ix-room-panel::after, .hud-channel-card::after {
  content: ''; position: absolute; left: 14%; right: 14%; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gl-hi), transparent); pointer-events: none;
}
/* the header cards are flex items and keep their flow; the others already position themselves */
.hud-viewer, .hud-wallet { position: relative; overflow: hidden; }
.hud-round-cue, .hud-channel-card { overflow: hidden; }
/* the room panel scrolls its content; the highlight line is clipped by the radius instead */
.ix-room-panel::after { border-radius: 1px; }

/* the viewer card and the wallet: quieter, the avatar as a soft disc */
.hud-viewer-avatar { background: var(--gl-bg-strong) !important; border: 1px solid var(--gl-stroke) !important; border-radius: 50% !important; }
.hud-kicker { font: 600 11px var(--gl-face) !important; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gl-ink-3) !important; }
.hud-viewer-copy b, .hud-wallet-copy b { font-weight: 700; letter-spacing: -0.01em; }
.hud-add { background: var(--gl-bg-strong) !important; border: 1px solid var(--gl-stroke) !important; border-radius: 50% !important; color: var(--gl-ink) !important; }

/* the action dock: a pill of glass chips */
.hud-dock-action {
  border-radius: 18px !important; background: transparent !important; border: 1px solid transparent !important;
  color: var(--gl-ink-2) !important; font: 600 11px var(--gl-face) !important;
  transition: background 160ms var(--gl-ease), transform 160ms var(--gl-ease), color 160ms var(--gl-ease);
}
.hud-dock-action:hover { background: var(--gl-bg-strong) !important; color: var(--gl-ink) !important; }
.hud-dock-action:active { transform: scale(0.95); }
.hud-dock-action.is-on, .hud-dock-action[aria-pressed="true"], .hud-dock-action.active {
  background: var(--gl-bg-press) !important; border-color: var(--gl-stroke) !important; color: var(--gl-ink) !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.35);
}
.hud-dock-icon { background: var(--gl-bg-strong) !important; border: 1px solid var(--gl-stroke) !important; border-radius: 14px !important; }

/* the round cue: a toast */
.hud-round-cue { border-radius: 20px !important; }
.hud-cue-symbol { background: var(--gl-bg-strong) !important; border: 1px solid var(--gl-stroke) !important; border-radius: 50% !important; }
.hud-round-cue b { font-weight: 700; letter-spacing: -0.01em; }

/* the room panel: a slim head, a segmented control for the tabs */
.hud-panel-head { padding: 12px 16px 6px !important; border-bottom: 0 !important; background: transparent !important; }
#hud-panel-close { background: var(--gl-bg-strong) !important; border: 1px solid var(--gl-stroke) !important; border-radius: 50% !important; color: var(--gl-ink-2) !important; }
.ix-room-tabs {
  display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 3px !important;
  margin: 4px 14px 10px !important; padding: 3px !important;
  background: rgba(0, 0, 0, 0.22) !important; border: 1px solid var(--gl-stroke) !important; border-radius: 999px !important;
}
.ix-room-tabs button {
  border: 0 !important; border-bottom: 0 !important; border-radius: 999px !important; background: transparent !important;
  color: var(--gl-ink-2) !important; font: 600 13px var(--gl-face) !important; padding: 8px 0 !important; box-shadow: none !important;
  transition: background 180ms var(--gl-ease), color 180ms var(--gl-ease);
}
.ix-room-tabs button.is-on, .ix-room-tabs button[aria-selected="true"], .ix-room-tabs button.active, .ix-room-tabs button[aria-current] {
  background: var(--gl-bg-press) !important; color: var(--gl-ink) !important; box-shadow: 0 1px 3px rgba(0,0,0,0.3) !important;
}
.hud-context-note { background: var(--gl-bg) !important; border: 1px solid var(--gl-stroke) !important; border-radius: 999px !important; color: var(--gl-ink-2) !important; font: 500 12.5px var(--gl-face) !important; padding: 8px 14px !important; margin: 0 14px 10px !important; }

/* the arena: tiles, then the vote card, then the options as liquid pills */
.interaction-arena { background: transparent !important; border: 0 !important; font-family: var(--gl-face); }
.ia-topline, .ia-eyebrow, .ia-meta { font: 600 11px var(--gl-face) !important; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gl-ink-3) !important; }
.ia-tabs { display: grid !important; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px !important; }
.ia-tabs button, .interaction-arena .ia-tabs > * {
  background: var(--gl-bg) !important; border: 1px solid var(--gl-stroke) !important; border-radius: 18px !important;
  color: var(--gl-ink-2) !important; font: 600 12px var(--gl-face) !important;
  -webkit-backdrop-filter: var(--gl-blur); backdrop-filter: var(--gl-blur);
  transition: background 160ms var(--gl-ease), transform 160ms var(--gl-ease);
}
.ia-tabs button:hover { background: var(--gl-bg-strong) !important; color: var(--gl-ink) !important; }
.ia-tabs button.is-on, .ia-tabs button[aria-selected="true"], .ia-tabs button.active { background: var(--gl-bg-press) !important; color: var(--gl-ink) !important; box-shadow: 0 1px 3px rgba(0,0,0,0.35); }
.ia-tabs button:active { transform: scale(0.95); }
.ia-content, .ia-hero { background: transparent !important; border: 0 !important; }
.ia-hero-art, .ia-orbit { filter: saturate(1.1); }
.ia-body b, .ia-hero b, .ia-hero h3, .ia-hero h4 { font-weight: 700 !important; letter-spacing: -0.015em !important; line-height: 1.25 !important; color: var(--gl-ink) !important; }
.ia-clock { font: 600 12px var(--gl-face) !important; font-variant-numeric: tabular-nums; color: var(--gl-ink-2) !important; background: var(--gl-bg-strong) !important; border-radius: 999px !important; padding: 3px 10px !important; }
.ia-options { display: grid; gap: 8px; }
.ia-option {
  border: 1px solid var(--gl-stroke) !important; border-radius: 18px !important;
  background: var(--gl-bg) !important; color: var(--gl-ink) !important;
  min-height: 56px !important; padding: 12px 14px !important;
  font-family: var(--gl-face) !important;
  transition: transform 180ms var(--gl-ease), background 180ms var(--gl-ease), border-color 180ms var(--gl-ease);
}
.ia-option:hover:not(:disabled) { background: var(--gl-bg-strong) !important; border-color: rgba(255,255,255,0.24) !important; }
.ia-option:active:not(:disabled) { transform: scale(0.98); }
.ia-option.is-mine, .ia-option[aria-pressed="true"], .ia-option.picked { border-color: rgba(var(--gl-tint), 0.7) !important; box-shadow: 0 0 0 3px rgba(var(--gl-tint), 0.18); }
.ia-option-fill { background: linear-gradient(90deg, rgba(var(--gl-tint), 0.34), rgba(var(--gl-tint), 0.08)) !important; border-radius: inherit; }
.ia-option-index { background: var(--gl-bg-strong) !important; border: 1px solid var(--gl-stroke) !important; border-radius: 50% !important; color: var(--gl-ink-2) !important; font: 600 12px var(--gl-face) !important; }
.ia-option-copy b { font-weight: 600; letter-spacing: -0.005em; }
.ia-vote-status, .ia-rule, .ia-receipt, .ia-foot, .ia-preview-note { font: 500 12px var(--gl-face) !important; color: var(--gl-ink-3) !important; }
.ia-vote-status b, .ia-receipt b { color: var(--gl-ink-2); }
.interaction-arena button:not(.ia-option):not(.ia-tabs button) {
  background: var(--gl-bg-strong) !important; border: 1px solid var(--gl-stroke) !important; border-radius: 999px !important;
  color: var(--gl-ink) !important; font: 600 12px var(--gl-face) !important;
}
.ix-crowd-wait { background: var(--gl-bg) !important; border: 1px solid var(--gl-stroke) !important; border-radius: var(--gl-r) !important; color: var(--gl-ink-2) !important; font-family: var(--gl-face); }
.ix-crowd-wait b { color: var(--gl-ink); }

/* the room guide, the same */
.room-guide-card { padding: 16px 18px !important; }
.room-guide-close { background: var(--gl-bg-strong) !important; border: 1px solid var(--gl-stroke) !important; border-radius: 50% !important; }

/* the panel's ambient field, so the frost has colour to pick up even over a dark corner of the picture */
.ix-room-panel::before {
  content: ''; position: absolute; inset: -30px; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 45% at 15% 0%, rgba(255, 255, 255, 0.10), transparent 70%), radial-gradient(50% 45% at 90% 100%, rgba(var(--gl-tint), 0.12), transparent 70%);
  filter: blur(26px);
}
.ix-room-panel { isolation: isolate; }


/* ================================================================== */
/* The Dock's wells: dark glossy squircles inside the light glass.     */
/* ================================================================== */
.hud-dock-icon, .ia-tabs button, .ia-tabs > *, .crowd-dock .crowd-btn, .hud-cue-symbol, .hud-viewer-avatar, .hud-add, #hud-panel-close, .ia-option-index {
  background: var(--gl-tile) !important;
  border: 0 !important;
  box-shadow: var(--gl-tile-shadow) !important;
}
.hud-dock-icon, .ia-tabs button, .ia-tabs > * { border-radius: 22px !important; }
.hud-dock-action { padding: 6px 8px 8px !important; }
.hud-dock-action.is-on .hud-dock-icon, .hud-dock-action[aria-pressed="true"] .hud-dock-icon, .hud-dock-action.active .hud-dock-icon,
.ia-tabs button.is-on, .ia-tabs button[aria-selected="true"], .ia-tabs button.active {
  box-shadow: var(--gl-tile-shadow), 0 0 0 2px rgba(255, 255, 255, 0.55) !important;
}
.hud-action-dock, .hud-utilities { padding: 6px !important; }
/* a Dock-style divider between the two groups when they sit together */
.hud-utilities { margin-left: 8px; }

/* the poll options and the arena options: a light well, the fill as a wash of the tint */
.crowd-dock .poll-option, .ia-option {
  background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.06)) !important;
  border: 0 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), inset 0 0 0 1px rgba(255,255,255,0.10), 0 2px 6px rgba(0,0,0,0.25) !important;
}
.crowd-dock .poll-option:hover:not(:disabled), .ia-option:hover:not(:disabled) { background: linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0.10)) !important; }

/* the segmented controls: a recessed track, a raised white-ish thumb */
.ix-room-tabs, .crowd-dock .sh-sides, .crowd-dock .pm-sides { background: rgba(0, 0, 0, 0.28) !important; box-shadow: inset 0 1px 2px rgba(0,0,0,0.35); border: 0 !important; }
.ix-room-tabs button.is-on, .ix-room-tabs button[aria-selected="true"], .ix-room-tabs button.active, .ix-room-tabs button[aria-current],
.crowd-dock .sh-side.is-on, .crowd-dock .sh-side[aria-pressed="true"], .crowd-dock .pm-side.is-on, .crowd-dock .pm-side[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.34) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 1px 3px rgba(0,0,0,0.35) !important;
}

/* the home page's stage panel: the same glass, floating inside the picture */
.hm-stage-side, #stage-side {
  top: 12px !important; right: 12px !important; bottom: 12px !important;
  background: var(--gl-bg) !important;
  -webkit-backdrop-filter: var(--gl-blur) !important; backdrop-filter: var(--gl-blur) !important;
  border: 1px solid var(--gl-stroke) !important; border-radius: var(--gl-r) !important;
  box-shadow: var(--gl-shadow) !important;
  font-family: var(--gl-face);
  overflow: hidden;
}
.hm-stage-side-head { background: transparent !important; border: 0 !important; margin: 0 !important; box-shadow: none !important; }
#stage-side .crowd, #stage-side .interaction-arena { background: transparent !important; }

/* ================================================================== */
/* Motion: the glass answers the hand.                                 */
/* One spring for everything that appears or is pressed, the Dock's   */
/* lift on hover and jump on tap, liquid fills, a pulse when a round   */
/* opens, a glow when something pays. Nothing loops for attention.     */
/* ================================================================== */
:root { --gl-spring: cubic-bezier(0.34, 1.56, 0.64, 1); --gl-out: cubic-bezier(0.22, 1, 0.36, 1); }

@keyframes gl-pop { from { opacity: 0; transform: translateY(10px) scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes gl-pop-panel { from { opacity: 0; transform: translateY(14px) scale(0.96); } 60% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes gl-jump { 0% { transform: translateY(0); } 35% { transform: translateY(-14px) scale(1.06); } 70% { transform: translateY(0) scale(0.98); } 100% { transform: none; } }
@keyframes gl-select { 0% { transform: scale(1); } 40% { transform: scale(1.035); } 100% { transform: scale(1); } }
@keyframes gl-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.55), var(--gl-tile-shadow); } 100% { box-shadow: 0 0 0 18px rgba(255,255,255,0), var(--gl-tile-shadow); } }
@keyframes gl-glow { 0% { box-shadow: 0 0 0 0 rgba(var(--gl-yes), 0.0); } 30% { box-shadow: 0 0 0 4px rgba(var(--gl-yes), 0.35), 0 0 24px rgba(var(--gl-yes), 0.35); } 100% { box-shadow: 0 0 0 0 rgba(var(--gl-yes), 0); } }
@keyframes gl-ripple { from { transform: translate(-50%, -50%) scale(0); opacity: 0.35; } to { transform: translate(-50%, -50%) scale(1); opacity: 0; } }
@keyframes gl-shimmer { from { transform: translateX(-120%); } to { transform: translateX(120%); } }

/* things that appear */
.ix-room-panel:not([hidden]), .hud-round-cue:not([hidden]), .hud-channel-card:not([hidden]), .room-guide-card:not([hidden]), .crowd-refill:not([hidden]), .crowd-table:not([hidden]) {
  animation: gl-pop-panel 480ms var(--gl-spring) both;
}
.crowd-dock > *:not([hidden]), .ia-content > *, .gl-in { animation: gl-pop 420ms var(--gl-spring) both; }
.crowd-dock > *:nth-child(2) { animation-delay: 40ms; } .crowd-dock > *:nth-child(3) { animation-delay: 80ms; } .crowd-dock > *:nth-child(4) { animation-delay: 120ms; }
.ia-options > *:nth-child(1) { animation-delay: 60ms; } .ia-options > *:nth-child(2) { animation-delay: 120ms; } .ia-options > *:nth-child(3) { animation-delay: 180ms; }

/* the Dock: lift on hover, the neighbours a little, a jump on tap */
.hud-dock-action, .hud-dock-icon { transition: transform 260ms var(--gl-spring), background 160ms var(--gl-out), color 160ms var(--gl-out), box-shadow 200ms var(--gl-out) !important; }
.hud-dock-action:hover .hud-dock-icon { transform: translateY(-8px) scale(1.22); }
.hud-dock-action:hover + .hud-dock-action .hud-dock-icon, .hud-dock-action:has(+ .hud-dock-action:hover) .hud-dock-icon { transform: translateY(-3px) scale(1.10); }
.hud-dock-action:active .hud-dock-icon { animation: gl-jump 420ms var(--gl-spring); }
.hud-dock-action.gl-pulse .hud-dock-icon { animation: gl-pulse 900ms var(--gl-out) 2; }

/* wells and pills: sink under the finger, spring back */
.crowd-dock .poll-option, .ia-option, .ia-tabs button, .crowd-dock .crowd-btn, .crowd-dock .sh-go, .crowd-dock .sh-buy, .crowd-dock .sh-cashout, .crowd-dock .crowd-bounty-row button, .pl-go, .pl-stakes button, .ix-room-tabs button, .hud-add, #hud-panel-close {
  transition: transform 220ms var(--gl-spring), background 160ms var(--gl-out), box-shadow 220ms var(--gl-out), color 160ms var(--gl-out) !important;
  position: relative; overflow: hidden;
}
.crowd-dock .poll-option:hover:not(:disabled), .ia-option:hover:not(:disabled), .ia-tabs button:hover, .crowd-dock .crowd-btn:hover:not(:disabled), .pl-go:hover:not([disabled]) { transform: translateY(-1px) scale(1.015); }
.crowd-dock .poll-option:active:not(:disabled), .ia-option:active:not(:disabled), .ia-tabs button:active, .crowd-dock .crowd-btn:active:not(:disabled), .crowd-dock .sh-go:active, .crowd-dock .sh-buy:active, .crowd-dock .sh-cashout:active, .crowd-dock .crowd-bounty-row button:active, .pl-go:active, .pl-stakes button:active, .ix-room-tabs button:active { transform: scale(0.95) !important; }
.crowd-dock .poll-option.mine, .ia-option.is-mine, .ia-option[aria-pressed="true"], .ia-option.picked, .pl-stakes button.is-on { animation: gl-select 360ms var(--gl-spring); }

/* liquid fills */
.crowd-dock .poll-option .fill, .ia-option-fill, .pl-bar i, .crowd-dock .bank-bar span { transition: width 800ms var(--gl-spring) !important; }
.ia-option-fill::after, .crowd-dock .poll-option .fill::after {
  content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.18) 50%, transparent 65%);
  animation: gl-shimmer 1.6s var(--gl-out) 1; pointer-events: none;
}

/* the tap's ripple, placed by glass.js */
.gl-ripple { position: absolute; left: var(--x, 50%); top: var(--y, 50%); width: 240px; height: 240px; border-radius: 50%; background: rgba(255,255,255,0.45); pointer-events: none; animation: gl-ripple 600ms var(--gl-out) forwards; }

/* something paid, something won */
.crowd-dock .crowd-bounty-line.won, .crowd-dock .sh-result, .ia-receipt, .pl-line.won { animation: gl-glow 1200ms var(--gl-out) 1; border-radius: 12px; }

/* numbers that move, move */
.gl-tally { display: inline-block; transition: transform 200ms var(--gl-spring); }
.gl-tally.is-up { transform: translateY(-2px) scale(1.06); }

@media (prefers-reduced-motion: reduce) {
  .ix-room-panel, .hud-round-cue, .hud-channel-card, .room-guide-card, .crowd-refill, .crowd-table, .crowd-dock > *, .ia-content > *, .gl-in, .hud-dock-action .hud-dock-icon, .poll-option, .ia-option, .gl-ripple, .ia-option-fill::after, .crowd-dock .poll-option .fill::after { animation: none !important; }
  .hud-dock-action:hover .hud-dock-icon { transform: none; }
}


/* ================================================================== */
/* The clean pass: icons stand on the glass with nothing behind them,  */
/* one size, one rhythm, a dot for the active one, the logo aligned.   */
/* ================================================================== */
.hud-dock-icon, .ia-tabs button, .ia-tabs > *, .hud-utilities > *, .hud-cue-symbol, .hud-viewer-avatar, .hud-add, #hud-panel-close, .ia-option-index {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
/* the dock: icons of one size, labels of one weight, an even rhythm */
.hud-action-dock { padding: 8px 10px !important; gap: 2px !important; }
.hud-dock-action { width: 64px !important; padding: 6px 4px 8px !important; gap: 5px !important; display: flex !important; flex-direction: column; align-items: center; justify-content: center; border-radius: 16px !important; }
.hud-dock-icon { width: 40px !important; height: 40px !important; display: grid !important; place-items: center; border-radius: 0 !important; padding: 0 !important; }
.hud-dock-icon img, .hud-dock-icon svg { width: 34px !important; height: 34px !important; object-fit: contain; display: block; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.45)); }
.hud-dock-action > span:not(.hud-dock-icon), .hud-dock-action .label { font: 600 11px var(--gl-face) !important; letter-spacing: 0.01em; color: var(--gl-ink-2) !important; }
.hud-dock-action:hover > span:not(.hud-dock-icon), .hud-dock-action.is-on > span:not(.hud-dock-icon), .hud-dock-action[aria-pressed="true"] > span:not(.hud-dock-icon), .hud-dock-action.active > span:not(.hud-dock-icon) { color: var(--gl-ink) !important; }
/* the active one is marked by the Dock's dot, not by a frame */
.hud-dock-action { position: relative; }
.hud-dock-action::after { content: ''; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: rgba(255,255,255,0.85); opacity: 0; transform: scale(0.4); transition: opacity 200ms var(--gl-out), transform 260ms var(--gl-spring); }
.hud-dock-action.is-on::after, .hud-dock-action[aria-pressed="true"]::after, .hud-dock-action.active::after { opacity: 1; transform: scale(1); }
.hud-dock-action.is-on .hud-dock-icon, .hud-dock-action[aria-pressed="true"] .hud-dock-icon, .hud-dock-action.active .hud-dock-icon { box-shadow: none !important; }
.hud-dock-action.gl-pulse .hud-dock-icon { animation: none; }
.hud-dock-action.gl-pulse::before { content: ''; position: absolute; left: 50%; top: 26px; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; box-shadow: 0 0 0 0 rgba(255,255,255,0.55); animation: gl-pulse 900ms var(--gl-out) 2; pointer-events: none; }
/* the utilities: the same rhythm as the dock */
.hud-utilities { padding: 8px 10px !important; gap: 2px !important; }
.hud-utilities > * { width: 56px !important; display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 5px !important; padding: 6px 4px 8px !important; border-radius: 16px !important; color: var(--gl-ink-2) !important; font: 600 11px var(--gl-face) !important; text-decoration: none; }
.hud-utilities > * img, .hud-utilities > * svg { width: 30px !important; height: 30px !important; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.45)); }
.hud-utilities > *:hover { background: var(--gl-bg-strong) !important; color: var(--gl-ink) !important; }
/* the arena tiles: icon, label, nothing else; the chosen one gets the dot */
.ia-tabs { gap: 4px !important; padding: 2px; }
.ia-tabs button, .ia-tabs > * { position: relative; display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 10px 4px 12px !important; border-radius: 16px !important; color: var(--gl-ink-2) !important; }
.ia-tabs button img, .ia-tabs button svg, .ia-tabs > * img { width: 32px !important; height: 32px !important; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.45)); }
.ia-tabs button span { font: 600 11px var(--gl-face) !important; letter-spacing: 0.01em; }
.ia-tabs button:hover { background: var(--gl-bg-strong) !important; color: var(--gl-ink) !important; }
.ia-tabs button.is-on, .ia-tabs button[aria-selected="true"], .ia-tabs button.active { background: var(--gl-bg-strong) !important; color: var(--gl-ink) !important; box-shadow: none !important; }
.ia-tabs button::after { content: ''; position: absolute; left: 50%; bottom: 4px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: rgba(255,255,255,0.85); opacity: 0; transform: scale(0.4); transition: opacity 200ms var(--gl-out), transform 260ms var(--gl-spring); }
.ia-tabs button.is-on::after, .ia-tabs button[aria-selected="true"]::after, .ia-tabs button.active::after { opacity: 1; transform: scale(1); }
/* the viewer card: the logo aligned with the avatar and the text, one baseline */
.hud-viewer { display: flex !important; align-items: center !important; gap: 12px !important; padding: 12px 16px !important; min-height: 64px !important; }
.hud-home { display: flex !important; align-items: center; height: 40px; padding: 0 14px 0 2px !important; margin-right: 2px; border-right: 1px solid rgba(255,255,255,0.14); }
.hud-home img { height: 18px !important; width: auto !important; display: block; opacity: 0.95; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4)); }
.hud-viewer-avatar { width: 40px !important; height: 40px !important; border-radius: 50% !important; background: rgba(255,255,255,0.10) !important; }
.hud-viewer-avatar svg { width: 20px; height: 20px; }
.hud-viewer-copy { display: flex; flex-direction: column; gap: 2px; }
.hud-viewer-copy .ar-tag, .hud-viewer-copy b { font: 700 15px var(--gl-face) !important; letter-spacing: -0.01em; color: var(--gl-ink) !important; text-decoration: none; }
.hud-viewer-copy span, .hud-viewer-copy small { font: 500 12px var(--gl-face) !important; color: var(--gl-ink-2) !important; }
/* the wallet card: same height, the plus as a quiet circle */
.hud-wallet { min-height: 64px !important; padding: 12px 16px !important; align-items: center !important; }
.hud-add { width: 32px !important; height: 32px !important; background: rgba(255,255,255,0.10) !important; border-radius: 50% !important; }
/* the cue and the panel head: icon on the glass */
.hud-cue-symbol { width: 40px !important; height: 40px !important; }
.hud-cue-symbol img, .hud-cue-symbol svg { width: 32px; height: 32px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.45)); }
#hud-panel-close { width: 30px !important; height: 30px !important; background: rgba(255,255,255,0.10) !important; border-radius: 50% !important; }
.ia-option-index { background: rgba(255,255,255,0.10) !important; }


/* the arena tiles, with the specificity the earlier glass rule used, so this one wins */
.interaction-arena nav.ia-tabs, .interaction-arena .ia-tabs { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; }
.interaction-arena .ia-tabs > *, .interaction-arena .ia-tabs button, .interaction-arena .ia-tabs button:hover {
  background: transparent !important; border: 0 !important; box-shadow: none !important; outline: none !important;
}
.interaction-arena .ia-tabs button:hover, .interaction-arena .ia-tabs > *:hover { background: var(--gl-bg-strong) !important; }
.interaction-arena .ia-tabs button.is-on, .interaction-arena .ia-tabs button[aria-selected="true"], .interaction-arena .ia-tabs button.active { background: var(--gl-bg-strong) !important; }
.interaction-arena .ia-tabs button:focus-visible { outline: 2px solid rgba(255,255,255,0.7) !important; outline-offset: 2px; }

/* ================================================================== */
/* The liquid tab bar: the bubble that glides to the chosen item.      */
/* ================================================================== */
/* zero specificity on purpose: a bar that already positions itself keeps its own rule */
:where(.gl-liquid) { position: relative; }
.gl-liquid { isolation: isolate; }
:where(.gl-liquid > *:not(.gl-thumb)) { position: relative; z-index: 1; }
.gl-thumb {
  position: absolute; left: 0; top: 0; z-index: 0 !important;
  width: 0; height: 0; opacity: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.20);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55), inset 0 0 0 1px rgba(255,255,255,0.14), 0 6px 18px rgba(0,0,0,0.30);
  -webkit-backdrop-filter: blur(10px) saturate(160%); backdrop-filter: blur(10px) saturate(160%);
  transform: translate(var(--tx, 0px), var(--ty, 0px)) scale(var(--s, 1));
  transition: transform 460ms var(--gl-spring), width 460ms var(--gl-spring), height 460ms var(--gl-spring), opacity 220ms var(--gl-out), background 200ms var(--gl-out);
  pointer-events: none;
}
.gl-thumb.is-still { transition: none; }
.gl-thumb.is-hover { background: rgba(255, 255, 255, 0.11); box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), inset 0 0 0 1px rgba(255,255,255,0.08); }
.gl-thumb.is-press { --s: 0.93; background: rgba(255, 255, 255, 0.26); }
.ix-room-tabs .gl-thumb, .hud-utilities .gl-thumb { border-radius: 999px; }
.hud-action-dock .gl-thumb { border-radius: 16px; }
/* the bar's own selected fills step aside for the bubble */
.gl-liquid.ix-room-tabs button[aria-selected="true"], .gl-liquid.ia-tabs button[aria-pressed="true"], .gl-liquid.ia-tabs button.is-on, .gl-liquid .hud-dock-action.gl-active, .gl-liquid .hud-dock-action:hover, .gl-liquid.ia-tabs button:hover, .gl-liquid.hud-utilities > *:hover { background: transparent !important; box-shadow: none !important; }
/* the chosen item speaks in the tint, the way iOS colours the active tab */
.hud-dock-action.gl-active > span:not(.hud-dock-icon), .ia-tabs button[aria-pressed="true"] span, .ix-room-tabs button[aria-selected="true"] { color: #d9c2ff !important; }
.hud-dock-action.gl-active::after { opacity: 1; transform: scale(1); }
.hud-dock-action.gl-active .hud-dock-icon { transform: translateY(-2px) scale(1.06); }
.hud-dock-action.gl-active .hud-dock-icon img, .hud-dock-action.gl-active .hud-dock-icon svg { filter: drop-shadow(0 2px 6px rgba(217,194,255,0.45)); }
@media (prefers-reduced-motion: reduce) { .gl-thumb { transition: opacity 150ms linear; } }

/* ================================================================== */
/* The compact dock and its quick menu.                                */
/* ================================================================== */
.hud-action-dock { padding: 6px 8px !important; }
.hud-dock-action { width: 50px !important; padding: 6px 0 8px !important; gap: 0 !important; }
.hud-dock-action > span:not(.hud-dock-icon), .hud-dock-action .label { display: none !important; }
.hud-dock-icon { width: 34px !important; height: 34px !important; }
.hud-dock-icon img, .hud-dock-icon svg { width: 30px !important; height: 30px !important; }
.hud-dock-action::after { bottom: 3px; }
.hud-utilities { padding: 6px 8px !important; }
.hud-utilities > * { width: 46px !important; padding: 6px 0 !important; gap: 0 !important; }
.hud-utilities > * span, .hud-utilities > * .label { display: none !important; }
.hud-utilities > * img, .hud-utilities > * svg { width: 26px !important; height: 26px !important; }

@keyframes gl-sheet-in { from { opacity: 0; transform: translateY(14px) scale(0.92); } to { opacity: 1; transform: none; } }
@keyframes gl-sheet-out { to { opacity: 0; transform: translateY(10px) scale(0.96); } }
@keyframes gl-row-in { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
.gl-pop {
  position: absolute; bottom: calc(100% + 14px); z-index: 60;
  padding: 10px; border-radius: 26px;
  background: rgba(70, 70, 80, 0.52);
  -webkit-backdrop-filter: blur(36px) saturate(170%); backdrop-filter: blur(36px) saturate(170%);
  border: 1px solid var(--gl-stroke);
  box-shadow: var(--gl-shadow);
  transform-origin: var(--arrow, 50%) 100%;
  animation: gl-sheet-in 420ms var(--gl-spring) both;
  font-family: var(--gl-face); color: var(--gl-ink);
}
.gl-pop.is-out { animation: gl-sheet-out 180ms var(--gl-out) forwards; }
.gl-pop::after { content: ''; position: absolute; left: var(--arrow, 50%); bottom: -7px; width: 14px; height: 14px; margin-left: -7px; background: inherit; border-right: 1px solid var(--gl-stroke); border-bottom: 1px solid var(--gl-stroke); transform: rotate(45deg); border-radius: 2px; }
.gl-pop-head { padding: 8px 12px 10px; }
.gl-pop-kicker { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gl-ink-3); margin-bottom: 3px; }
.gl-pop-head b { display: block; font-size: 16px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; }
.gl-pop-rows { display: grid; gap: 2px; }
.gl-row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 7px 8px; border: 0; border-radius: 18px; background: transparent; color: var(--gl-ink);
  font: inherit; text-align: left; cursor: pointer;
  animation: gl-row-in 360ms var(--gl-spring) both; animation-delay: calc(60ms + var(--i, 0) * 45ms);
  transition: background 140ms var(--gl-out), transform 200ms var(--gl-spring);
}
.gl-row:hover:not(:disabled) { background: rgba(255,255,255,0.12); }
.gl-row:active:not(:disabled) { transform: scale(0.97); }
.gl-row:disabled { cursor: default; }
.gl-row.is-quiet { opacity: 0.8; }
.gl-row.is-off { opacity: 0.45; }
.gl-row.is-done .gl-dot { transform: scale(1.12); box-shadow: 0 0 0 4px rgba(255,255,255,0.25); }
.gl-dot {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--c, #8e8e93); color: rgba(0,0,0,0.78);
  font: 800 15px var(--gl-face);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), inset 0 -2px 4px rgba(0,0,0,0.18), 0 2px 6px rgba(0,0,0,0.25);
  transition: transform 220ms var(--gl-spring), box-shadow 220ms var(--gl-out);
}
.gl-row-copy { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.gl-row-copy b { font-size: 15px; font-weight: 600; letter-spacing: -0.005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gl-row-copy small { font-size: 12px; color: var(--gl-ink-2); }
.gl-row em { font-style: normal; font: 600 13px var(--gl-face); color: var(--gl-ink-2); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .gl-pop, .gl-row, .gl-pop.is-out { animation: none !important; } }

/* a real compact bar: no inherited heights */
.hud-action-dock, .hud-utilities { height: auto !important; min-height: 0 !important; }
.hud-dock-action, .hud-utilities > * { height: auto !important; min-height: 0 !important; }
.hud-dock-action { padding: 7px 0 9px !important; }
.hud-utilities > * { padding: 9px 0 !important; }


/* ---- the dock: the hovered icon rises alone, nothing lights up behind it ---- */
.hud-dock-action:hover + .hud-dock-action .hud-dock-icon, .hud-dock-action:has(+ .hud-dock-action:hover) .hud-dock-icon { transform: none !important; }
.hud-dock-action:hover .hud-dock-icon { transform: translateY(-7px) scale(1.18) !important; }
.hud-dock-action:hover, .hud-utilities > *:hover { background: transparent !important; box-shadow: none !important; }
.hud-utilities > *:hover img, .hud-utilities > *:hover svg { transform: translateY(-4px) scale(1.12); }
.hud-utilities > * img, .hud-utilities > * svg { transition: transform 260ms var(--gl-spring); }
.hud-action-dock .gl-thumb.is-hover { opacity: 0 !important; }

/* ---- the stake slider in the quick menu ---- */
.gl-slider { padding: 6px 12px 12px; }
.gl-amount { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.gl-amount-n { font: 700 30px var(--gl-face); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; display: inline-block; transition: transform 200ms var(--gl-spring); }
.gl-amount-n.is-bump { animation: gl-bump 220ms var(--gl-spring); }
@keyframes gl-bump { 0% { transform: scale(1); } 40% { transform: scale(1.08); } 100% { transform: scale(1); } }
.gl-amount-u { font: 500 12px var(--gl-face); color: var(--gl-ink-2); }
.gl-slider input[type=range] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 30px; margin: 0; background: transparent; cursor: pointer;
  --p: 50%;
}
.gl-slider input[type=range]::-webkit-slider-runnable-track {
  height: 10px; border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,0.85) 0 var(--p), rgba(255,255,255,0.14) var(--p) 100%);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.35);
}
.gl-slider input[type=range]::-moz-range-track { height: 10px; border-radius: 999px; background: rgba(255,255,255,0.14); }
.gl-slider input[type=range]::-moz-range-progress { height: 10px; border-radius: 999px; background: rgba(255,255,255,0.85); }
.gl-slider input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 28px; height: 28px; margin-top: -9px; border-radius: 50%;
  background: #fff; border: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.45), inset 0 -1px 0 rgba(0,0,0,0.08);
  transition: transform 200ms var(--gl-spring);
}
.gl-slider input[type=range]::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 2px 8px rgba(0,0,0,0.45); }
.gl-slider input[type=range]:active::-webkit-slider-thumb { transform: scale(1.15); }
.gl-slider input[type=range]:focus-visible { outline: 2px solid rgba(255,255,255,0.7); outline-offset: 4px; border-radius: 999px; }


/* ---- the sheet fits its words: no clipped labels, no line under another ---- */
.gl-pop { width: auto !important; min-width: 280px; max-width: min(340px, calc(100vw - 24px)); max-height: calc(100vh - 150px); overflow: auto; overscroll-behavior: contain; }
.gl-pop-head b { overflow-wrap: anywhere; }
.gl-row { align-items: center; }
.gl-row-copy b { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.25; }
.gl-row-copy small { line-height: 1.3; }
.gl-row em { flex: none; margin-left: 4px; }
.gl-amount { display: grid; grid-template-columns: auto; gap: 2px; align-items: start; }
.gl-amount-u { white-space: normal; line-height: 1.3; }

/* ---- the demo toast: one glass line at the top, with its call ---- */
@keyframes gl-toast-in { from { opacity: 0; transform: translate(-50%, -14px) scale(0.96); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
.gl-toast {
  /* below the header cards, so it never sits on the viewer or the wallet */
  position: fixed; left: 50%; top: 96px; z-index: 120; transform: translate(-50%, 0);
  display: flex; align-items: center; gap: 14px; max-width: min(560px, calc(100vw - 24px));
  padding: 12px 14px 12px 18px; border-radius: 22px;
  background: rgba(70, 70, 80, 0.55); -webkit-backdrop-filter: var(--gl-blur); backdrop-filter: var(--gl-blur);
  border: 1px solid var(--gl-stroke); box-shadow: var(--gl-shadow);
  font-family: var(--gl-face); color: var(--gl-ink);
  animation: gl-toast-in 420ms var(--gl-spring) both;
}
.gl-toast.is-out { opacity: 0; transition: opacity 200ms var(--gl-out); }
.gl-toast-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gl-toast-copy b { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; }
.gl-toast-copy small { font-size: 12px; color: var(--gl-ink-2); }
.gl-toast-cta { flex: none; padding: 9px 14px; border-radius: 999px; background: #fff !important; color: #111 !important; font: 600 13px var(--gl-face) !important; text-decoration: none !important; }
.gl-toast-cta:active { transform: scale(0.96); }

/* ================================================================== */
/* The chosen icon says its name: the pill stretches to the right and  */
/* the label slides in beside the icon, the bubble following.          */
/* ================================================================== */
@keyframes gl-label-in { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
.hud-dock-action {
  flex-direction: row !important; justify-content: flex-start !important;
  width: auto !important; max-width: 50px; min-width: 50px;
  padding: 7px 0 9px !important; overflow: hidden;
  transition: max-width 420ms var(--gl-spring), padding 420ms var(--gl-spring), transform 260ms var(--gl-spring), background 160ms var(--gl-out), color 160ms var(--gl-out), box-shadow 200ms var(--gl-out) !important;
}
.hud-dock-action .hud-dock-icon { flex: none; margin: 0 auto; }
.hud-dock-action.gl-active { max-width: 220px; padding: 7px 16px 9px 8px !important; gap: 8px !important; }
.hud-dock-action.gl-active .hud-dock-icon { margin: 0; transform: none !important; }
.hud-dock-action.gl-active > span:not(.hud-dock-icon), .hud-dock-action.gl-active .label {
  display: inline-block !important; white-space: nowrap;
  font: 600 13px var(--gl-face) !important; letter-spacing: -0.005em; color: #d9c2ff !important;
  animation: gl-label-in 360ms var(--gl-spring) both; animation-delay: 80ms;
}
.hud-dock-action.gl-active::after { opacity: 0; }   /* the name replaces the dot */
@media (prefers-reduced-motion: reduce) { .hud-dock-action { transition: none !important; } .hud-dock-action.gl-active > span:not(.hud-dock-icon) { animation: none; } }
/* the dock lays its pills out as a row that can stretch, not a grid of fixed columns */
.hud-action-dock { display: flex !important; align-items: center !important; grid-template-columns: none !important; }


/* ================================================================== */
/* The stake sheet: the amount big and centred on top, the slider, the */
/* question, the two choices side by side, the rest quiet below.       */
/* ================================================================== */
.gl-pop.has-slider { min-width: 300px; max-width: min(360px, calc(100vw - 24px)); padding: 14px 12px 8px; }
.gl-stake { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 2px 6px 6px; }
.gl-stake-k { font: 600 11px var(--gl-face); letter-spacing: 0.08em; text-transform: uppercase; color: var(--gl-ink-3); }
.gl-stake-n { display: flex; align-items: baseline; justify-content: center; gap: 6px; }
.gl-stake-n .gl-amount-n { font: 800 48px var(--gl-face); letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.gl-stake-n i { font: 600 13px var(--gl-face); font-style: normal; color: var(--gl-ink-2); }
.gl-stake .gl-amount-u { font: 500 12px var(--gl-face); color: var(--gl-ink-3); }
.gl-stake .gl-slider { width: 100%; padding: 4px 4px 2px; }
.gl-stake-q { margin: 6px 0 2px; font: 600 14px var(--gl-face); letter-spacing: -0.01em; color: var(--gl-ink); text-wrap: balance; }
.gl-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; margin-top: 6px; }
.gl-choice {
  display: grid; gap: 2px; padding: 12px 10px; border: 0; border-radius: 18px; cursor: pointer;
  color: #fff; font-family: var(--gl-face); text-align: center;
  background: rgba(255,255,255,0.10); box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), inset 0 0 0 1px rgba(255,255,255,0.10), 0 2px 6px rgba(0,0,0,0.25);
  transition: transform 220ms var(--gl-spring), background 160ms var(--gl-out), box-shadow 220ms var(--gl-out);
  animation: gl-pop 380ms var(--gl-spring) both; animation-delay: 120ms;
}
.gl-choice b { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.gl-choice small { font-size: 11px; color: rgba(255,255,255,0.72); line-height: 1.3; }
.gl-choice.tone-0 { background: linear-gradient(180deg, rgba(52,199,89,0.55), rgba(52,199,89,0.32)); }
.gl-choice.tone-2 { background: linear-gradient(180deg, rgba(255,59,48,0.55), rgba(255,59,48,0.32)); }
.gl-choice:hover { transform: translateY(-1px) scale(1.02); }
.gl-choice:active { transform: scale(0.96); }
.gl-choice.is-done { box-shadow: 0 0 0 3px rgba(255,255,255,0.55), inset 0 1px 0 rgba(255,255,255,0.35); }
.gl-pop.has-slider .gl-pop-rows { margin-top: 4px; }
.gl-row.is-link { padding: 6px 8px; opacity: 0.85; }
.gl-row.is-link .gl-dot { width: 30px; height: 30px; font-size: 12px; }
.gl-row.is-link .gl-row-copy b { font-size: 13px; font-weight: 600; }
.gl-row.is-link .gl-row-copy small { display: none; }

.gl-stake-n .gl-approx { font: 600 22px var(--gl-face); font-style: normal; color: var(--gl-ink-3); align-self: center; }


/* ================================================================== */
/* The stake sheet in the Recharge shape: a near-black frame with a    */
/* dot grid, the bet's title big and white, a scale, and a gel bar     */
/* whose colour follows the level: red low, yellow mid, green high.    */
/* ================================================================== */
.gl-pop.has-slider {
  padding: 18px 16px 12px !important;
  border-radius: 34px !important;
  background:
    radial-gradient(rgba(255,255,255,0.055) 1px, transparent 1.4px) 0 0 / 9px 9px,
    linear-gradient(180deg, rgba(58, 58, 64, 0.98), rgba(18, 18, 22, 0.98)) !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), inset 0 0 0 1px rgba(0,0,0,0.4), 0 20px 50px rgba(0,0,0,0.55) !important;
}
.gl-pop.has-slider::after { background: rgba(28, 28, 32, 0.98) !important; }
.gl-stake { gap: 8px; padding: 2px 4px 4px; }
.gl-stake-title { margin: 2px 0 8px; font: 800 26px var(--gl-face); letter-spacing: -0.03em; line-height: 1.1; color: #fff; text-wrap: balance; }
.gl-scale { display: flex; justify-content: space-between; width: 100%; padding: 0 18px; font: 500 13px var(--gl-face); color: rgba(255,255,255,0.42); font-variant-numeric: tabular-nums; }
.gl-bar {
  --p: 50%;
  position: relative; width: 100%; height: 64px; border-radius: 32px; overflow: hidden;
  background: rgba(0,0,0,0.55);
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(255,255,255,0.06);
}
.gl-bar-fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: var(--p);
  border-radius: 32px;
  background: linear-gradient(90deg, var(--f1), var(--f2));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), inset 0 -8px 16px rgba(0,0,0,0.25), 0 0 28px var(--glow);
  transition: width 500ms var(--gl-spring), background 400ms var(--gl-out), box-shadow 400ms var(--gl-out);
}
.gl-bar-fill::after { content: ''; position: absolute; left: 10%; right: 10%; top: 7px; height: 14px; border-radius: 999px; background: linear-gradient(180deg, rgba(255,255,255,0.35), rgba(255,255,255,0)); }
.gl-bar[data-level="low"]  { --f1: #ff3b30; --f2: #ff7a3d; --glow: rgba(255,59,48,0.45); }
.gl-bar[data-level="mid"]  { --f1: #d9c70a; --f2: #f5e94a; --glow: rgba(245,233,74,0.40); }
.gl-bar[data-level="high"] { --f1: #2fb84a; --f2: #a8ff3e; --glow: rgba(120,255,80,0.45); }
.gl-bar .gl-stake-n { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6px; pointer-events: none; z-index: 1; text-shadow: 0 1px 2px rgba(0,0,0,0.35); }
.gl-bar .gl-stake-n .gl-amount-n { font-size: 30px; }
.gl-bar .gl-stake-n i { color: rgba(255,255,255,0.85); }
.gl-bar .gl-stake-n .gl-approx { font-size: 18px; color: rgba(255,255,255,0.7); }
.gl-bar input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 2; }
.gl-stake .gl-amount-u { color: rgba(255,255,255,0.5); }
.gl-pop.has-slider .gl-choices { margin-top: 8px; }
.gl-pop.has-slider .gl-choice { border-radius: 22px; padding: 14px 10px; }
.gl-pop.has-slider .gl-row.is-link { opacity: 0.7; }

/* the sheets: the same frosted glass as everywhere, just darker, no texture */
.gl-pop, .gl-pop.has-slider {
  background: rgba(34, 34, 40, 0.74) !important;
  -webkit-backdrop-filter: blur(36px) saturate(160%) !important; backdrop-filter: blur(36px) saturate(160%) !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 20px 50px rgba(0,0,0,0.5) !important;
}
.gl-pop::after, .gl-pop.has-slider::after { background: rgba(34, 34, 40, 0.92) !important; }


/* ================================================================== */
/* Chat only: a narrow stream chat, nothing else in the panel.         */
/* ================================================================== */
.ix-room-panel.gl-chat-only {
  width: 300px !important; max-width: calc(100vw - 24px);
  background: rgba(12, 12, 16, 0.90) !important;
  -webkit-backdrop-filter: blur(30px) saturate(150%) !important; backdrop-filter: blur(30px) saturate(150%) !important;
  border: 1px solid rgba(255,255,255,0.10) !important; border-radius: 22px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 20px 50px rgba(0,0,0,0.5) !important;
  display: flex !important; flex-direction: column; overflow: hidden !important;
  font-family: var(--gl-face);
}
.ix-room-panel.gl-chat-only::before, .ix-room-panel.gl-chat-only::after { display: none; }
.ix-room-panel.gl-chat-only .hud-panel-head, .ix-room-panel.gl-chat-only .ix-room-tabs, .ix-room-panel.gl-chat-only #ix-play-panel, .ix-room-panel.gl-chat-only #support-panel, .ix-room-panel.gl-chat-only .hud-context-note, .ix-room-panel.gl-chat-only .chat-head { display: none !important; }
.ix-room-panel.gl-chat-only #chat-panel { display: flex !important; flex-direction: column; flex: 1; min-height: 0; background: transparent !important; border: 0 !important; padding: 0 !important; margin: 0 !important; }
.gl-chat-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 12px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.gl-chat-title { font: 700 11px var(--gl-face); letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.55); }
.gl-chat-live { display: inline-flex; align-items: center; gap: 7px; font: 700 11px var(--gl-face); letter-spacing: 0.14em; text-transform: uppercase; color: #fff; font-variant-numeric: tabular-nums; }
.gl-chat-live i { width: 7px; height: 7px; border-radius: 50%; background: #ff5a5f; box-shadow: 0 0 8px rgba(255,90,95,0.7); animation: live-breathe 1.8s ease-in-out infinite; }
.ix-room-panel.gl-chat-only #chat-log { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 18px !important; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; background: transparent !important; }
.ix-room-panel.gl-chat-only .msg { display: block !important; padding: 2px 0 !important; background: transparent !important; border: 0 !important; font: 500 15px/1.35 var(--gl-face); color: #fff; }
.ix-room-panel.gl-chat-only .msg .avatar, .ix-room-panel.gl-chat-only .msg .tag { display: none !important; }
.ix-room-panel.gl-chat-only .msg-name { font-weight: 700 !important; color: var(--nc, #6aa6ff) !important; margin-right: 0 !important; }
.ix-room-panel.gl-chat-only .msg-name::after { content: ':'; color: rgba(255,255,255,0.55); font-weight: 500; margin-right: 6px; }
.ix-room-panel.gl-chat-only .msg-text { color: #fff !important; font-weight: 500; }
.ix-room-panel.gl-chat-only .chat-system { font: italic 500 15px/1.35 var(--gl-face) !important; color: rgba(255,255,255,0.42) !important; padding: 2px 0 !important; text-align: left !important; background: transparent !important; border: 0 !important; }
.ix-room-panel.gl-chat-only .chat-system::before { content: 'room: '; font-style: normal; font-weight: 700; color: rgba(255,255,255,0.5); }
.ix-room-panel.gl-chat-only .chat-compose { display: flex; align-items: center; gap: 12px; padding: 12px 18px 16px !important; border-top: 1px solid rgba(255,255,255,0.08); background: transparent !important; margin: 0 !important; }
.ix-room-panel.gl-chat-only #chat-input { flex: 1; min-width: 0; height: 46px; padding: 0 16px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.10) !important; background: rgba(255,255,255,0.05) !important; color: #fff; font: 500 15px var(--gl-face); }
.ix-room-panel.gl-chat-only #chat-input::placeholder { color: rgba(255,255,255,0.35); }
.ix-room-panel.gl-chat-only #chat-input:focus { outline: none; border-color: rgba(255,255,255,0.28) !important; }
.ix-room-panel.gl-chat-only .btn-send { display: none !important; }
.gl-chat-actions { font: 700 11px var(--gl-face); letter-spacing: 0.14em; text-transform: uppercase; color: #ff5a5f; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---- the stake sheet, darker and on the grid ---- */
.gl-pop { background: rgba(20, 20, 26, 0.84) !important; }
.gl-pop::after { background: rgba(20, 20, 26, 0.96) !important; }
.gl-pop.has-slider { background: rgba(12, 12, 16, 0.92) !important; padding: 20px 16px 12px !important; border-radius: 32px !important; }
.gl-pop.has-slider::after { background: rgba(12, 12, 16, 0.98) !important; }
.gl-stake { gap: 10px; }
.gl-stake-title { font-size: 24px; margin: 0 0 4px; }
.gl-scale { padding: 0 20px; font-size: 12px; color: rgba(255,255,255,0.38); }
.gl-bar { height: 60px; border-radius: 30px; background: rgba(255,255,255,0.05); box-shadow: inset 0 2px 8px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(255,255,255,0.05); }
.gl-bar-fill { border-radius: 30px; }
.gl-bar .gl-stake-n .gl-amount-n { font-size: 28px; }
.gl-stake .gl-amount-u { margin-top: -2px; }
.gl-pop.has-slider .gl-choice { padding: 13px 10px; border-radius: 20px; }

/* ================================================================== */
/* One frame for everything: the player bar's recipe. Near-black,      */
/* opaque, a hairline border, a soft drop. No frost, no rim, no glow.  */
/* ================================================================== */
:root {
  --fr-bg: rgba(11, 11, 15, 0.88);
  --fr-bg-2: rgba(16, 16, 21, 0.92);
  --fr-line: rgba(255, 255, 255, 0.10);
  --fr-shadow: 0 8px 26px rgba(0, 0, 0, 0.38);
}
.hud-viewer, .hud-wallet, .hud-channel-card, .hud-round-cue, .hud-action-dock, .hud-utilities, .ix-room-panel, .room-guide-card,
.crowd-dock > .crowd-head, .crowd-dock .crowd-poll, .crowd-dock .crowd-shares, .crowd-dock .crowd-bounty, .crowd-dock .crowd-callers, .crowd-dock .crowd-book, .crowd-dock .crowd-bank, .crowd-dock .crowd-bets, .crowd-dock .crowd-table, .crowd-refill, .crowd-table,
.gl-pop, .gl-pop.has-slider, .gl-toast, .ix-room-panel.gl-chat-only, .hm-stage-side, #stage-side, .pl-card, .hm-stage-side-head, .crowd-dock .crowd-note {
  background: var(--fr-bg) !important;
  -webkit-backdrop-filter: blur(18px) !important; backdrop-filter: blur(18px) !important;
  border: 1px solid var(--fr-line) !important;
  box-shadow: var(--fr-shadow) !important;
}
.gl-pop, .gl-pop.has-slider, .ix-room-panel, .ix-room-panel.gl-chat-only { background: var(--fr-bg-2) !important; }
.gl-pop::after, .gl-pop.has-slider::after { background: rgb(16, 16, 21) !important; border-color: var(--fr-line) !important; }
/* the rims and highlight lines go */
.hud-viewer::after, .hud-wallet::after, .hud-round-cue::after, .ix-room-panel::after, .hud-channel-card::after,
.crowd-dock > .crowd-head::after, .crowd-dock .crowd-poll::after, .crowd-dock .crowd-shares::after, .crowd-dock .crowd-bounty::after, .crowd-dock .crowd-callers::after, .crowd-dock .crowd-book::after, .crowd-dock .crowd-bank::after, .crowd-dock .crowd-bets::after, .crowd-refill::after { display: none !important; }
.crowd-dock::before, .ix-room-panel::before { display: none !important; }
/* the bars are pills, the cards keep their corners */
.hud-action-dock, .hud-utilities { border-radius: 999px !important; }
.hud-viewer, .hud-wallet, .hud-round-cue, .hud-channel-card { border-radius: 20px !important; }
.ix-room-panel, .gl-pop, .gl-toast { border-radius: 24px !important; }
.gl-pop.has-slider { border-radius: 28px !important; }
/* the bubble under the chosen item: a quiet grey, no glow */
.gl-thumb { background: rgba(255, 255, 255, 0.10) !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.gl-thumb.is-press { background: rgba(255, 255, 255, 0.16) !important; }
/* wells and controls follow: flat, one shade lighter than the frame */
.crowd-dock .poll-option, .ia-option, .gl-row:hover:not(:disabled), .gl-choice, .pl-sideb, .crowd-dock .sh-sides, .crowd-dock .pm-sides, .ix-room-tabs {
  box-shadow: none !important;
}
.crowd-dock .poll-option, .ia-option { background: rgba(255,255,255,0.06) !important; border: 1px solid var(--fr-line) !important; }
.ix-room-tabs, .crowd-dock .sh-sides, .crowd-dock .pm-sides { background: rgba(255,255,255,0.05) !important; border: 1px solid var(--fr-line) !important; }
.ix-room-tabs button[aria-selected="true"], .crowd-dock .sh-side.is-on, .crowd-dock .pm-side.is-on { background: rgba(255,255,255,0.14) !important; box-shadow: none !important; }
.gl-bar { background: rgba(255,255,255,0.05) !important; box-shadow: inset 0 0 0 1px var(--fr-line) !important; }
.gl-toast-cta { box-shadow: none !important; }

/* ---- the IMPAKT mark, larger, on the same baseline ---- */
.hud-home { height: 44px !important; padding: 0 16px 0 4px !important; }
.hud-home img { height: 26px !important; }
.kk-mark img, .ar-mark img { height: 30px !important; }
.ix-room-panel.gl-chat-only #chat-input:focus, .ix-room-panel.gl-chat-only #chat-input:focus-visible { outline: none !important; box-shadow: none !important; border-color: rgba(255,255,255,0.28) !important; }
/* the two choices, lower; the gel bar a touch lower too */
.gl-pop.has-slider .gl-choice { padding: 8px 10px !important; gap: 1px; border-radius: 16px !important; }
.gl-pop.has-slider .gl-choice b { font-size: 15px; }
.gl-pop.has-slider .gl-choice small { font-size: 10.5px; line-height: 1.25; }
.gl-bar { height: 52px !important; border-radius: 26px !important; }
.gl-bar-fill { border-radius: 26px !important; }
.gl-bar .gl-stake-n .gl-amount-n { font-size: 24px; }


/* ================================================================== */
/* The stake pill: a thin track, a glowing knob that carries the       */
/* amount and rides the track, the estimate on the right.              */
/* ================================================================== */
@keyframes gl-knob-live { 0% { box-shadow: 0 0 0 0 var(--glow), 0 0 22px var(--glow), 0 2px 6px rgba(0,0,0,0.45); } 100% { box-shadow: 0 0 0 10px transparent, 0 0 22px var(--glow), 0 2px 6px rgba(0,0,0,0.45); } }
.gl-bar {
  --pf: 0.5;
  position: relative; height: 56px !important; border-radius: 28px !important; overflow: visible !important;
  background: rgba(0, 0, 0, 0.70) !important; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06) !important;
}
.gl-bar .gl-bar-fill, .gl-bar .gl-stake-n { display: none !important; }
.gl-track { position: absolute; left: 22px; right: 96px; top: 50%; height: 8px; margin-top: -4px; border-radius: 4px; background: rgba(255,255,255,0.13); overflow: hidden; }
.gl-track-fill { position: absolute; left: 0; top: 0; bottom: 0; width: var(--p, 50%); border-radius: 4px; background: var(--f1); box-shadow: 0 0 14px var(--glow); transition: width 420ms var(--gl-spring), background 300ms var(--gl-out), box-shadow 300ms var(--gl-out); }
.gl-knob {
  position: absolute; top: 50%; left: calc(22px + (100% - 22px - 96px) * var(--pf));
  transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 3px; height: 32px; padding: 0 12px 0 10px; border-radius: 16px;
  background: var(--f1); color: #fff; font: 700 15px var(--gl-face); font-variant-numeric: tabular-nums; letter-spacing: -0.01em;
  box-shadow: 0 0 22px var(--glow), 0 2px 6px rgba(0,0,0,0.45);
  transition: left 420ms var(--gl-spring), background 300ms var(--gl-out), box-shadow 300ms var(--gl-out);
  pointer-events: none; z-index: 1; white-space: nowrap;
}
.gl-knob i { font-style: normal; font-size: 11px; opacity: 0.85; }
.gl-knob.is-live { animation: gl-knob-live 600ms var(--gl-out); }
.gl-bar-right { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font: 600 15px var(--gl-face); color: var(--f2); font-variant-numeric: tabular-nums; transition: color 300ms var(--gl-out); pointer-events: none; }
.gl-bar[data-level="low"]  { --f1: #ff453a; --f2: #ff6b61; --glow: rgba(255,69,58,0.55); }
.gl-bar[data-level="mid"]  { --f1: #ffd60a; --f2: #ffe066; --glow: rgba(255,214,10,0.45); }
.gl-bar[data-level="high"] { --f1: #30d158; --f2: #7ee89a; --glow: rgba(48,209,88,0.5); }
.gl-bar[data-level="mid"] .gl-knob { color: #1a1a1a; }
.gl-bar input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 2; }
.gl-scale { display: none !important; }
.gl-stake .gl-amount-u { margin-top: 2px; }


/* ================================================================== */
/* The timer: a Live Activity pill with the digits big and a ring      */
/* that empties as the round runs out. Orange, red for the last ten.   */
/* ================================================================== */
@keyframes gl-timer-in { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }
.gl-timer { --c: #ff9f0a; position: relative; height: 64px; margin: 4px 0 10px; border-radius: 32px; background: #000; animation: gl-timer-in 380ms var(--gl-spring) both; }
.gl-timer-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.gl-timer-ring rect { fill: none; stroke-width: 3; vector-effect: non-scaling-stroke; }
.gl-timer-track { stroke: rgba(255,255,255,0.10); }
.gl-timer-arc { stroke: var(--c); stroke-linecap: round; transition: stroke-dashoffset 220ms linear, stroke 300ms var(--gl-out); filter: drop-shadow(0 0 6px var(--c)); }
.gl-timer-copy { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; gap: 1px; }
.gl-timer-copy small { font: 600 10px var(--gl-face); letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.45); }
.gl-timer-copy b { font: 800 28px var(--gl-face); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: #fff; }
.gl-timer-copy span { font: 600 11px var(--gl-face); color: rgba(255,255,255,0.5); }
.gl-timer.is-late { --c: #ff453a; }
.gl-timer.is-late .gl-timer-copy b { animation: gl-bump 600ms var(--gl-spring) infinite; }
.gl-timer.is-over { --c: rgba(255,255,255,0.25); }
.gl-timer.is-over .gl-timer-copy b { font-size: 20px; color: rgba(255,255,255,0.6); }
.gl-timer.is-over .gl-timer-arc { filter: none; }
.gl-stake .gl-timer { width: 100%; }
@media (prefers-reduced-motion: reduce) { .gl-timer, .gl-timer.is-late .gl-timer-copy b { animation: none !important; } }

/* ================================================================== */
/* The side card: a square on the right when a round heats up.         */
/* ================================================================== */
.gl-side {
  --level: 0%; --y: #ffd60a;
  position: fixed; right: 26px; top: 112px; z-index: 40;
  width: 208px; height: 208px; border-radius: 28px; overflow: hidden;
  background: rgb(16, 16, 21); border: 1px solid var(--fr-line); box-shadow: var(--fr-shadow);
  font-family: var(--gl-face); color: #fff;
  opacity: 0; transform: translateX(28px) scale(0.96); pointer-events: none;
  transition: opacity 320ms var(--gl-out), transform 460ms var(--gl-spring);
}
.gl-side.is-on { opacity: 1; transform: none; pointer-events: auto; }
.gl-side-bolt { position: absolute; right: -26px; top: 8px; width: 150px; height: 200px; transform: rotate(14deg); }
.gl-side-bolt-bg { fill: rgba(255,255,255,0.10); }
.gl-side-liquid { fill: var(--y); transform-origin: 50% 100%; transform: translateY(calc(100% - var(--level))); transition: transform 900ms var(--gl-spring); filter: drop-shadow(0 0 14px rgba(255,214,10,0.45)); }
.gl-side-top { position: absolute; left: 20px; top: 20px; display: grid; gap: 2px; }
.gl-side-n { font: 800 44px var(--gl-face); letter-spacing: -0.04em; line-height: 1; color: var(--y); font-variant-numeric: tabular-nums; display: inline-block; }
.gl-side-n.is-bump { animation: gl-bump 320ms var(--gl-spring); }
.gl-side-label { font: 500 13px var(--gl-face); color: rgba(255,255,255,0.7); }
.gl-side-bottom { position: absolute; left: 20px; right: 20px; bottom: 18px; display: grid; gap: 3px; }
.gl-side-sub { font: 600 13px/1.3 var(--gl-face); color: #fff; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gl-side-foot { font: 500 11.5px var(--gl-face); color: rgba(255,255,255,0.55); font-variant-numeric: tabular-nums; }
body.gl-chat-only .gl-side, .hud-panel-open .gl-side { opacity: 0 !important; pointer-events: none !important; }
@media (max-width: 900px) { .gl-side { display: none; } }
@media (prefers-reduced-motion: reduce) { .gl-side, .gl-side-liquid { transition: none; } }
/* the liquid inside the bolt: percentages need the shape's own box as reference */
.gl-side-liquid { transform-box: fill-box; transform-origin: 50% 100%; }
.gl-side-bolt-bg { fill: rgba(255,255,255,0.14); }
.gl-side-bolt { opacity: 0.95; }

/* ---- the side card's bolt keeps its size against the global svg rule ---- */
.gl-side svg.gl-side-bolt { width: 150px !important; height: 200px !important; }

/* ---- the utilities: Info, Guide, Store, Focus, Support, one rhythm ---- */
.hud-utilities .hud-dock-action.gl-util { width: 46px !important; min-width: 46px !important; max-width: 46px !important; padding: 9px 0 !important; flex-direction: column !important; }
.hud-utilities .hud-dock-action.gl-util .hud-dock-icon { width: 26px !important; height: 26px !important; margin: 0 auto !important; }
.hud-utilities .hud-dock-action.gl-util .hud-dock-icon img, .hud-utilities .hud-dock-action.gl-util .hud-dock-icon svg { width: 26px !important; height: 26px !important; }
.hud-utilities .hud-dock-action.gl-util::after { display: none; }
.gl-info {
  width: 46px; padding: 9px 0; border: 0; background: transparent; color: var(--gl-ink-2); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; border-radius: 16px; font-family: var(--gl-face);
  transition: transform 260ms var(--gl-spring), color 160ms var(--gl-out);
}
.gl-info span:not(.gl-info-glyph) { display: none; }
.gl-info-glyph { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; font: italic 700 15px Georgia, 'Times New Roman', serif; line-height: 1; transition: transform 260ms var(--gl-spring), background 160ms var(--gl-out), color 160ms var(--gl-out); }
.gl-info:hover .gl-info-glyph { transform: translateY(-4px) scale(1.12); }
.gl-info:active .gl-info-glyph { transform: scale(0.94); }
.gl-info.is-on { color: #fff; }
.gl-info.is-on .gl-info-glyph { background: #fff; color: #111; border-color: #fff; }

/* ---- the card about the live, in the frame's recipe when shown ---- */
.hud-channel-card:not([hidden]) { display: block !important; animation: gl-pop-panel 420ms var(--gl-spring) both; }
/* the utilities' own icons stay visible: the label rule must not eat them */
.hud-utilities > .gl-info .gl-info-glyph { display: grid !important; }
.hud-utilities > .hud-dock-action .hud-dock-icon { display: grid !important; }
/* the card about the live sits above the player bar */
.hud-channel-card { bottom: 150px !important; }

/* ================================================================== */
/* The artifact carousel: big squircles over the picture, the middle   */
/* one bright and large, a caption under it.                           */
/* ================================================================== */
.gl-carousel {
  position: fixed; inset: 0; z-index: 130;
  background: rgba(0, 0, 0, 0.62);
  -webkit-backdrop-filter: blur(14px) saturate(120%); backdrop-filter: blur(14px) saturate(120%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  opacity: 0; transition: opacity 260ms var(--gl-out);
  font-family: var(--gl-face); color: #fff;
}
.gl-carousel.is-on { opacity: 1; }
.gl-carousel-x {
  position: absolute; left: 26px; top: 26px; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--fr-line); background: var(--fr-bg); color: #fff; font: 600 16px var(--gl-face); cursor: pointer;
  transition: transform 220ms var(--gl-spring), background 160ms var(--gl-out);
}
.gl-carousel-x:hover { background: rgba(255,255,255,0.12); }
.gl-carousel-x:active { transform: scale(0.92); }
.gl-carousel-track {
  width: 100%; display: flex; gap: 28px; align-items: center;
  padding: 40px calc(50% - 56px); box-sizing: border-box;
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; outline: none;
  -webkit-overflow-scrolling: touch;
}
.gl-carousel-track::-webkit-scrollbar { display: none; }
.gl-carousel-item {
  --s: 0.74; --o: 0.5; --b: 3px; --y: 10px;
  flex: none; width: 112px; height: 112px; border-radius: 30px; border: 0; padding: 0; cursor: pointer;
  scroll-snap-align: center;
  background: #fff; overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,0.45), inset 0 0 0 1px rgba(255,255,255,0.35);
  transform: translateY(var(--y)) scale(var(--s)); opacity: var(--o); filter: blur(var(--b));
  transition: transform 120ms linear, opacity 120ms linear, filter 120ms linear;
}
.gl-carousel-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gl-carousel-glyph { display: grid; place-items: center; width: 100%; height: 100%; font: 800 44px var(--gl-face); color: #111; background: linear-gradient(160deg, #fff, color-mix(in srgb, var(--tint) 35%, #fff)); }
.gl-carousel.is-on .gl-carousel-item { animation: gl-pop 480ms var(--gl-spring) both; }
.gl-carousel-item:nth-child(2) { animation-delay: 40ms; } .gl-carousel-item:nth-child(3) { animation-delay: 80ms; } .gl-carousel-item:nth-child(4) { animation-delay: 120ms; } .gl-carousel-item:nth-child(5) { animation-delay: 160ms; }
.gl-carousel-item.is-current { box-shadow: 0 24px 50px rgba(0,0,0,0.5), 0 0 0 3px rgba(255,255,255,0.9), 0 0 40px color-mix(in srgb, var(--tint) 55%, transparent); }
.gl-carousel-caption { text-align: center; max-width: 380px; padding: 0 20px; opacity: 0; transform: translateY(8px); transition: opacity 240ms var(--gl-out), transform 360ms var(--gl-spring); }
.gl-carousel-caption.is-in { opacity: 1; transform: none; }
.gl-carousel-caption b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.gl-carousel-caption p { margin: 4px 0 10px; font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.4; }
.gl-carousel-price { display: inline-block; margin-bottom: 12px; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,0.10); font: 600 12px var(--gl-face); color: rgba(255,255,255,0.85); font-variant-numeric: tabular-nums; }
.gl-carousel-cta { display: block; margin: 0 auto; padding: 12px 22px; border: 0; border-radius: 999px; background: #fff; color: #111; font: 700 14px var(--gl-face); cursor: pointer; transition: transform 220ms var(--gl-spring), background 160ms var(--gl-out); }
.gl-carousel-cta:hover { background: #f2f2f5; }
.gl-carousel-cta:active { transform: scale(0.96); }
@media (prefers-reduced-motion: reduce) { .gl-carousel, .gl-carousel-item, .gl-carousel-caption { transition: none; animation: none !important; } }
/* the entrance animation must not keep its last frame, or the scale by distance never applies */
.gl-carousel.is-on .gl-carousel-item { animation-fill-mode: backwards !important; }
.gl-carousel-item { width: 124px; height: 124px; border-radius: 32px; }
.gl-carousel-track { gap: 30px; padding: 44px calc(50% - 62px); }

/* ================================================================== */
/* Apple pills for the choices, the strip in the Artifacts sheet, and  */
/* the Polymarket list in the Predict sheet.                           */
/* ================================================================== */
/* vote options: full-width black pills, the label centred, the share at the right */
.gl-pop.is-vote .gl-pop-rows { gap: 8px; }
.gl-pop.is-vote .gl-row:not(.is-link):not(.is-quiet) {
  position: relative; justify-content: center; min-height: 52px; padding: 0 56px; border-radius: 999px;
  background: #000; border: 1px solid rgba(255,255,255,0.12); box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}
.gl-pop.is-vote .gl-row:not(.is-link):not(.is-quiet):hover { background: #141418; }
.gl-pop.is-vote .gl-row:not(.is-link):not(.is-quiet) .gl-dot { position: absolute; left: 6px; top: 50%; width: 40px; height: 40px; margin-top: -20px; }
.gl-pop.is-vote .gl-row:not(.is-link):not(.is-quiet) .gl-row-copy { flex: none; align-items: center; text-align: center; }
.gl-pop.is-vote .gl-row:not(.is-link):not(.is-quiet) .gl-row-copy b { font-size: 17px; font-weight: 700; }
.gl-pop.is-vote .gl-row:not(.is-link):not(.is-quiet) .gl-row-copy small { font-size: 11px; }
.gl-pop.is-vote .gl-row:not(.is-link):not(.is-quiet) em { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); }
/* the stake sheet's two choices: stacked black pills, the tone as a dot */
.gl-pop.has-slider .gl-choices { grid-template-columns: 1fr; gap: 8px; }
.gl-pop.has-slider .gl-choice {
  position: relative; display: flex !important; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 20px !important; border-radius: 999px !important;
  background: #000 !important; border: 1px solid rgba(255,255,255,0.12) !important; box-shadow: 0 4px 14px rgba(0,0,0,0.35) !important;
}
.gl-pop.has-slider .gl-choice:hover { background: #141418 !important; }
.gl-pop.has-slider .gl-choice b { font-size: 17px; }
.gl-pop.has-slider .gl-choice small { display: none; }
.gl-pop.has-slider .gl-choice::before { content: ''; width: 10px; height: 10px; border-radius: 50%; }
.gl-pop.has-slider .gl-choice.tone-0::before { background: #30d158; box-shadow: 0 0 10px rgba(48,209,88,0.7); }
.gl-pop.has-slider .gl-choice.tone-2::before { background: #ff453a; box-shadow: 0 0 10px rgba(255,69,58,0.7); }
/* the artifacts strip inside the sheet */
.gl-pop.is-strip { min-width: 320px; max-width: 360px; }
.gl-strip-wrap { padding: 4px 0 6px; }
.gl-strip { display: flex; gap: 12px; align-items: center; padding: 14px calc(50% - 40px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gl-strip::-webkit-scrollbar { display: none; }
.gl-strip-item { --s: 0.78; --o: 0.5; --b: 2px; flex: none; width: 80px; height: 80px; border-radius: 22px; border: 0; padding: 0; cursor: pointer; scroll-snap-align: center; background: #fff; overflow: hidden; box-shadow: 0 10px 24px rgba(0,0,0,0.45); transform: scale(var(--s)); opacity: var(--o); filter: blur(var(--b)); transition: transform 120ms linear, opacity 120ms linear, filter 120ms linear; }
.gl-strip-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gl-strip-item span { display: grid; place-items: center; width: 100%; height: 100%; font: 800 30px var(--gl-face); color: #111; }
.gl-strip-item.is-current { box-shadow: 0 12px 28px rgba(0,0,0,0.5), 0 0 0 2px rgba(255,255,255,0.9), 0 0 24px color-mix(in srgb, var(--tint) 55%, transparent); }
.gl-strip-cap { text-align: center; padding: 2px 10px 0; opacity: 0; transform: translateY(6px); transition: opacity 220ms var(--gl-out), transform 320ms var(--gl-spring); }
.gl-strip-cap.is-in { opacity: 1; transform: none; }
.gl-strip-cap b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -0.015em; }
.gl-strip-cap p { margin: 3px 0 8px; font-size: 12.5px; color: rgba(255,255,255,0.65); line-height: 1.35; }
.gl-strip-price { display: inline-block; margin-bottom: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,0.10); font: 600 11px var(--gl-face); color: rgba(255,255,255,0.85); }
.gl-strip-cta { display: block; width: 100%; min-height: 48px; border: 1px solid rgba(255,255,255,0.12); border-radius: 999px; background: #000; color: #fff; font: 700 15px var(--gl-face); cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,0.35); transition: transform 220ms var(--gl-spring), background 160ms var(--gl-out); }
.gl-strip-cta:hover { background: #141418; }
.gl-strip-cta:active { transform: scale(0.97); }
.gl-strip-empty { padding: 14px 6px; font: 500 13px var(--gl-face); color: rgba(255,255,255,0.6); text-align: center; }
/* the Predict sheet: a Polymarket list */
.gl-pop.is-pm { min-width: 320px; max-width: 380px; }
.gl-pm { display: grid; gap: 6px; padding: 2px 4px 6px; }
.gl-pm-head { display: flex; justify-content: space-between; padding: 0 8px 4px; font: 600 11px var(--gl-face); letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.4); }
.gl-pm-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; padding: 10px 8px 10px 10px; border-radius: 16px; background: rgba(255,255,255,0.05); border: 1px solid var(--fr-line); animation: gl-row-in 360ms var(--gl-spring) both; }
.gl-pm-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gl-pm-copy b { font: 600 14px/1.3 var(--gl-face); color: #fff; }
.gl-pm-copy small { font: 500 11px var(--gl-face); color: rgba(255,255,255,0.5); }
.gl-pm-pct { font: 800 20px var(--gl-face); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: #fff; min-width: 46px; text-align: right; }
.gl-pm-btns { display: flex; gap: 6px; }
.gl-pm-btns button { min-width: 48px; height: 34px; padding: 0 12px; border: 0; border-radius: 10px; font: 700 13px var(--gl-face); color: #fff; cursor: pointer; transition: transform 200ms var(--gl-spring), filter 160ms var(--gl-out); }
.gl-pm-btns .yes { background: rgba(48,209,88,0.22); color: #4ade80; }
.gl-pm-btns .no { background: rgba(255,69,58,0.22); color: #ff6b61; }
.gl-pm-btns .one { background: #fff; color: #111; }
.gl-pm-btns button:hover { filter: brightness(1.15); }
.gl-pm-btns button:active, .gl-pm-btns button.is-done { transform: scale(0.94); }
.gl-pm-foot { padding: 4px 8px 0; font: 500 11px var(--gl-face); color: rgba(255,255,255,0.45); }
/* the round cue on the right is gone: the dock and the side card carry the round now */
.hud-round-cue { display: none !important; }
/* the live card, well clear of the control bar's row */
.hud-channel-card { bottom: 200px !important; }

/* ================================================================== */
/* The countdown at the top centre, on its own frame.                  */
/* ================================================================== */
.gl-top-timer {
  --c: #ff9f0a;
  position: fixed; left: 50%; top: 16px; z-index: 45; width: 260px; height: 64px;
  transform: translate(-50%, -20px) scale(0.94); opacity: 0; pointer-events: none;
  border-radius: 32px; background: rgb(11, 11, 15); box-shadow: var(--fr-shadow);
  transition: opacity 260ms var(--gl-out), transform 460ms var(--gl-spring);
  font-family: var(--gl-face); color: #fff;
}
.gl-top-timer.is-on { opacity: 1; transform: translate(-50%, 0) scale(1); }
.gl-top-timer .gl-timer-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.gl-top-timer .gl-timer-copy { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; gap: 1px; padding: 0 22px; }
.gl-top-timer .gl-timer-copy small { font: 600 10px var(--gl-face); letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.45); }
.gl-top-timer .gl-timer-copy b { font: 800 26px var(--gl-face); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.gl-top-timer .gl-timer-copy span { font: 500 11px var(--gl-face); color: rgba(255,255,255,0.55); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gl-top-timer.is-late { --c: #ff453a; }
.gl-top-timer.is-late .gl-timer-copy b { animation: gl-bump 600ms var(--gl-spring) infinite; }
/* the demo toast moves under it */
.gl-toast { top: 96px; }
@media (max-width: 900px) { .gl-top-timer { width: 200px; height: 56px; } }
@media (prefers-reduced-motion: reduce) { .gl-top-timer { transition: none; } .gl-top-timer.is-late .gl-timer-copy b { animation: none; } }
/* the countdown, a size down */
.gl-top-timer { width: 196px; height: 50px; top: 14px; border-radius: 25px; }
.gl-top-timer .gl-timer-copy { padding: 0 18px; gap: 0; }
.gl-top-timer .gl-timer-copy small { font-size: 9px; }
.gl-top-timer .gl-timer-copy b { font-size: 20px; }
.gl-top-timer .gl-timer-copy span { font-size: 10px; }
.gl-top-timer .gl-timer-ring rect { stroke-width: 2.5; }


/* ================================================================== */
/* The store over the live: a panel on the right, the stream behind.   */
/* ================================================================== */
.gl-store {
  position: fixed; top: 12px; right: 12px; bottom: 12px; z-index: 110; width: min(440px, calc(100vw - 24px));
  display: flex; flex-direction: column; overflow: hidden;
  background: rgb(11, 11, 15); border: 1px solid var(--fr-line); border-radius: 24px; box-shadow: var(--fr-shadow);
  transform: translateX(24px) scale(0.98); opacity: 0; pointer-events: none;
  transition: opacity 260ms var(--gl-out), transform 460ms var(--gl-spring);
  font-family: var(--gl-face); color: #fff;
}
.gl-store.is-on { opacity: 1; transform: none; pointer-events: auto; }
.gl-store-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 18px; border-bottom: 1px solid var(--fr-line); }
.gl-store-title { font: 700 11px var(--gl-face); letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.6); }
.gl-store-x { width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.10); color: #fff; font: 600 14px var(--gl-face); cursor: pointer; transition: transform 220ms var(--gl-spring), background 160ms var(--gl-out); }
.gl-store-x:hover { background: rgba(255,255,255,0.18); }
.gl-store-x:active { transform: scale(0.92); }
.gl-store-frame { flex: 1; width: 100%; border: 0; background: #0b0b0f; }
body.gl-store-on .gl-side, body.gl-store-on .ix-room-panel { opacity: 0 !important; pointer-events: none !important; }
/* the countdown, lower, clear of the header cards */
.gl-top-timer { top: 84px; }
.gl-toast { top: 150px; }


/* ---- the countdown as an island: tap to shrink, tap to grow ---- */
@keyframes gl-morph { 0% { transform: translate(-50%, 0) scale(1); } 40% { transform: translate(-50%, 0) scale(1.04); } 100% { transform: translate(-50%, 0) scale(1); } }
.gl-top-timer { cursor: pointer; pointer-events: auto; transition: opacity 260ms var(--gl-out), transform 460ms var(--gl-spring), width 460ms var(--gl-spring), height 460ms var(--gl-spring), border-radius 460ms var(--gl-spring); }
.gl-top-timer.is-morph { animation: gl-morph 460ms var(--gl-spring); }
.gl-top-timer:not(.is-on) { pointer-events: none; }
.gl-top-timer .gl-timer-copy small, .gl-top-timer .gl-timer-copy span { transition: opacity 200ms var(--gl-out), max-height 300ms var(--gl-out); max-height: 20px; overflow: hidden; }
.gl-top-timer.is-compact { width: 104px; height: 36px; border-radius: 18px; }
.gl-top-timer.is-compact .gl-timer-copy { padding: 0 12px; }
.gl-top-timer.is-compact .gl-timer-copy small, .gl-top-timer.is-compact .gl-timer-copy span { opacity: 0; max-height: 0; }
.gl-top-timer.is-compact .gl-timer-copy b { font-size: 16px; }
.gl-top-timer.is-compact .gl-timer-ring rect { stroke-width: 2; }
.gl-top-timer:focus-visible { outline: 2px solid rgba(255,255,255,0.6); outline-offset: 3px; }

/* the Predict sheet with its stake pill on top: no title block, no choices, the list does the choosing */
.gl-pop.is-pm .gl-stake-title { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.45); margin: 0 0 6px; }
.gl-pop.is-pm .gl-choices { display: none; }
.gl-pop.is-pm .gl-stake { padding-bottom: 0; }

/* ================================================================== */
/* Buttons the way Apple draws them on dark: white for the primary,    */
/* translucent grey for the choices, tinted at 20% for yes and no.     */
/* ================================================================== */
/* vote options: grey translucent pills, white text; the chosen one turns white */
.gl-pop.is-vote .gl-row:not(.is-link):not(.is-quiet) { background: rgba(255,255,255,0.12) !important; border: 0 !important; box-shadow: none !important; }
.gl-pop.is-vote .gl-row:not(.is-link):not(.is-quiet):hover { background: rgba(255,255,255,0.18) !important; }
.gl-pop.is-vote .gl-row:not(.is-link):not(.is-quiet).is-done { background: #fff !important; color: #111 !important; }
.gl-pop.is-vote .gl-row:not(.is-link):not(.is-quiet).is-done .gl-row-copy b, .gl-pop.is-vote .gl-row:not(.is-link):not(.is-quiet).is-done em { color: #111 !important; }
.gl-pop.is-vote .gl-row:not(.is-link):not(.is-quiet).is-done .gl-row-copy small { color: rgba(0,0,0,0.6) !important; }
/* yes and no: tinted fills, the text in the tint */
.gl-pop.has-slider .gl-choice { border: 0 !important; box-shadow: none !important; }
.gl-pop.has-slider .gl-choice.tone-0 { background: rgba(48,209,88,0.20) !important; color: #4ade80 !important; }
.gl-pop.has-slider .gl-choice.tone-0:hover { background: rgba(48,209,88,0.28) !important; }
.gl-pop.has-slider .gl-choice.tone-2 { background: rgba(255,69,58,0.20) !important; color: #ff6b61 !important; }
.gl-pop.has-slider .gl-choice.tone-2:hover { background: rgba(255,69,58,0.28) !important; }
.gl-pop.has-slider .gl-choice::before { display: none; }
.gl-pop.has-slider .gl-choice.is-done { box-shadow: 0 0 0 3px rgba(255,255,255,0.7) !important; }
/* primary calls: white, black text */
.gl-strip-cta, .gl-toast-cta, .gl-carousel-cta { background: #fff !important; color: #111 !important; border: 0 !important; box-shadow: none !important; }
.gl-strip-cta:hover, .gl-carousel-cta:hover { background: #ececf0 !important; }
/* the polymarket buttons keep their tints; the single Predict is white */
.gl-pm-btns .one { background: #fff; color: #111; }
/* the "play for real" and other rows: grey translucent, the arrow disc white */
.gl-row.is-link { background: rgba(255,255,255,0.06); }
.gl-row.is-link .gl-dot { background: #fff !important; color: #111; }
/* the sheet's list rows: a soft grey fill so they read as buttons */
.gl-pop:not(.is-vote) .gl-row:not(.is-link):not(.is-quiet) { background: rgba(255,255,255,0.08); }
.gl-pop:not(.is-vote) .gl-row:not(.is-link):not(.is-quiet):hover:not(:disabled) { background: rgba(255,255,255,0.14); }

/* ================================================================== */
/* Particles, the settle moment, and the vote card on the left.        */
/* ================================================================== */
.gl-fx { position: fixed; inset: 0; z-index: 140; pointer-events: none; }
@keyframes gl-cheer-in { 0% { opacity: 0; transform: translate(-50%, -50%) scale(0.7); } 60% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); } 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes gl-coin { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-14px) rotate(6deg); } }
@keyframes gl-melt { 0% { transform: translateY(-30px) rotate(0); } 55% { transform: translateY(6px) rotate(-14deg); } 75% { transform: translateY(-4px) rotate(10deg); } 100% { transform: translateY(0) rotate(0) scaleY(0.92); } }
@keyframes gl-shake { 0%, 100% { margin-left: 0; } 20% { margin-left: -6px; } 40% { margin-left: 6px; } 60% { margin-left: -4px; } 80% { margin-left: 4px; } }
.gl-cheer {
  position: fixed; left: 50%; top: 46%; z-index: 135; width: 280px; padding: 26px 22px 22px; text-align: center;
  border-radius: 28px; background: rgb(11, 11, 15); border: 1px solid var(--fr-line); box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  transform: translate(-50%, -50%) scale(0.7); opacity: 0; font-family: var(--gl-face); color: #fff; cursor: pointer;
}
.gl-cheer.is-on { animation: gl-cheer-in 520ms var(--gl-spring) both; }
.gl-cheer:not(.is-on) { transition: opacity 260ms var(--gl-out), transform 260ms var(--gl-out); }
.gl-cheer-icon { width: 84px; height: 84px; margin: 0 auto 12px; display: grid; place-items: center; font-size: 64px; line-height: 1; }
.gl-cheer-icon img { width: 84px; height: 84px; object-fit: contain; filter: drop-shadow(0 8px 20px rgba(255,214,10,0.45)); animation: gl-coin 1.4s var(--gl-out) infinite; }
.gl-cheer-melt { animation: gl-melt 1.2s var(--gl-spring) both; }
.gl-cheer.is-loss { animation: gl-cheer-in 520ms var(--gl-spring) both, gl-shake 600ms var(--gl-out) 500ms; }
.gl-cheer b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.gl-cheer.is-win b { color: #ffd60a; }
.gl-cheer p { margin: 6px 0 0; font-size: 13px; color: rgba(255,255,255,0.65); }

.gl-vote {
  position: fixed; left: 26px; top: 112px; z-index: 40; width: 250px; padding: 14px 14px 12px;
  border-radius: 22px; background: rgb(11, 11, 15); border: 1px solid var(--fr-line); box-shadow: var(--fr-shadow);
  font-family: var(--gl-face); color: #fff;
  opacity: 0; transform: translateX(-28px) scale(0.96); pointer-events: none;
  transition: opacity 320ms var(--gl-out), transform 460ms var(--gl-spring);
}
.gl-vote.is-on { opacity: 1; transform: none; pointer-events: auto; }
.gl-vote.is-closed { opacity: 0.75; }
.gl-vote-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.gl-vote-k { font: 700 10px var(--gl-face); letter-spacing: 0.14em; text-transform: uppercase; color: #d9c2ff; }
.gl-vote-n { font: 500 11px var(--gl-face); color: rgba(255,255,255,0.5); font-variant-numeric: tabular-nums; }
.gl-vote-q { display: block; font: 700 15px/1.25 var(--gl-face); letter-spacing: -0.015em; margin-bottom: 10px; text-wrap: balance; }
.gl-vote-opts { display: grid; gap: 6px; }
.gl-vote-opt {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 42px; padding: 0 14px; border: 0; border-radius: 999px; background: rgba(255,255,255,0.10); color: #fff;
  font: 600 14px var(--gl-face); cursor: pointer; text-align: left;
  transition: transform 220ms var(--gl-spring), background 160ms var(--gl-out);
}
.gl-vote-opt .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(181,108,255,0.28); transition: width 700ms var(--gl-spring); }
.gl-vote-opt span, .gl-vote-opt em { position: relative; z-index: 1; }
.gl-vote-opt em { font-style: normal; font-size: 12px; color: rgba(255,255,255,0.65); font-variant-numeric: tabular-nums; }
.gl-vote-opt:hover { background: rgba(255,255,255,0.16); }
.gl-vote-opt:active, .gl-vote-opt.is-tap { animation: gl-select 320ms var(--gl-spring); }
.gl-vote-opt.is-mine { background: #fff; color: #111; }
.gl-vote-opt.is-mine em { color: rgba(0,0,0,0.55); }
.gl-vote-opt.is-mine .fill { background: rgba(181,108,255,0.35); }
.gl-vote-foot { display: block; margin-top: 8px; font: 500 11px var(--gl-face); color: rgba(255,255,255,0.45); }
.gl-vote-bar, .gl-vote-check { display: none; }
.gl-vote-glyph { margin-right: 6px; }
.gl-vote-clock { display: block; margin-top: 6px; font: 600 11px var(--gl-face); color: rgba(255,255,255,0.6); font-variant-numeric: tabular-nums; }
body.gl-info-on .gl-vote { top: 112px; }
body.gl-store-on .gl-vote, .hud-panel-open .gl-vote { opacity: 1; }
@media (max-width: 900px) { .gl-vote { display: none; } }
@media (prefers-reduced-motion: reduce) { .gl-cheer, .gl-cheer-icon img, .gl-cheer-melt, .gl-vote { animation: none !important; transition: none; } }


/* ---- emoji particles as elements, so they show everywhere ---- */
.gl-emo-layer { position: fixed; inset: 0; z-index: 141; pointer-events: none; overflow: hidden; }
.gl-emo { position: absolute; left: 0; top: 0; will-change: transform, opacity; line-height: 1; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4)); }
/* ---- Duolingo's juice: squash on press, overshoot on release ---- */
@keyframes gl-squash { 0% { transform: scale(1, 1); } 30% { transform: scale(1.08, 0.9); } 60% { transform: scale(0.96, 1.06); } 100% { transform: scale(1, 1); } }
.gl-vote-opt:active, .gl-vote-opt.is-tap, .gl-choice:active, .gl-pm-btns button:active, .gl-row:active:not(:disabled), .hud-dock-action:active .hud-dock-icon { animation: gl-squash 380ms var(--gl-spring) !important; }
@keyframes gl-combo-pop { 0% { opacity: 0; transform: translate(-50%, 10px) scale(0.6) rotate(-8deg); } 30% { opacity: 1; transform: translate(-50%, -10px) scale(1.25) rotate(4deg); } 100% { opacity: 1; transform: translate(-50%, -6px) scale(1) rotate(0); } }
.gl-combo { position: absolute; left: 50%; top: -18px; padding: 6px 12px; border-radius: 999px; background: #ffd60a; color: #1a1a1a; font: 800 15px var(--gl-face); letter-spacing: -0.02em; opacity: 0; pointer-events: none; box-shadow: 0 6px 16px rgba(255,214,10,0.45); transform: translate(-50%, 10px); transition: opacity 260ms var(--gl-out); }
.gl-combo.is-pop { animation: gl-combo-pop 460ms var(--gl-spring) both; }
.gl-vote { overflow: visible; }
.hud-dock-action.gl-hide-artifacts { display: none !important; }

/* the store panel, smaller */
.gl-store { width: min(360px, calc(100vw - 24px)); top: 84px; bottom: 84px; }

/* the countdown on the header line, between the logo card and the wallet card */
.gl-top-timer { top: 21px; }
.gl-toast { top: 96px; }

/* ---- emojis in place of the drawn icons ---- */
.gl-emoji { display: inline-grid; place-items: center; line-height: 1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.45)); transition: transform 260ms var(--gl-spring); }
.hud-dock-icon .gl-emoji { width: 34px; height: 34px; }
.hud-utilities > * .gl-emoji { width: 26px; height: 26px; }
.hud-utilities > * > .gl-emoji { display: inline-grid; }
nav.ia-tabs > button .gl-emoji { width: 32px; height: 32px; margin-bottom: 2px; }
.hud-dock-action:hover .gl-emoji { transform: scale(1.06); }
/* the utilities' emojis must not fall under the label rule */
.hud-utilities .gl-emoji { display: inline-grid !important; }


/* ================================================================== */
/* The stake slider, the way iOS draws one: the amount above, a thin   */
/* track, the filled part in white, a round white thumb with a shadow. */
/* ================================================================== */
.gl-stake .gl-stake-n { display: flex; align-items: baseline; justify-content: center; gap: 6px; margin: 2px 0 4px; }
.gl-stake .gl-stake-n .gl-amount-n { font: 800 44px var(--gl-face); letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; color: #fff; }
.gl-stake .gl-stake-n i { font: 600 13px var(--gl-face); font-style: normal; color: rgba(255,255,255,0.55); }
.gl-bar { height: 44px !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; margin: 0 4px; }
.gl-track { left: 14px !important; right: 14px !important; height: 4px !important; margin-top: -2px !important; border-radius: 2px; background: rgba(255,255,255,0.20) !important; overflow: hidden; }
.gl-track-fill { background: #fff !important; box-shadow: none !important; border-radius: 2px; transition: width 260ms var(--gl-out) !important; }
.gl-knob {
  left: calc(14px + (100% - 28px) * var(--pf)) !important; width: 28px; height: 28px; padding: 0 !important; border-radius: 50% !important;
  background: #fff !important; box-shadow: 0 3px 8px rgba(0,0,0,0.35), 0 0 0 0.5px rgba(0,0,0,0.1) !important;
  transition: left 260ms var(--gl-out), transform 200ms var(--gl-spring) !important;
}
.gl-knob i, .gl-knob b { display: none; }
.gl-knob.is-live { animation: none; transform: translate(-50%, -50%) scale(1.08); }
.gl-bar-right { display: none; }
.gl-bar[data-level] { --f1: #fff; --f2: #fff; --glow: transparent; }
.gl-bar input[type=range]:active ~ .gl-knob, .gl-bar:active .gl-knob { transform: translate(-50%, -50%) scale(1.12); }
.gl-stake .gl-amount-u { margin-top: 0; font-size: 12px; color: rgba(255,255,255,0.5); }
/* the open countdown grows to fit its sentence instead of cutting it */
.gl-top-timer:not(.is-compact) { width: auto; min-width: 196px; max-width: min(460px, calc(100vw - 600px)); }
.gl-top-timer:not(.is-compact) .gl-timer-copy { position: relative; inset: auto; height: 100%; padding: 0 22px; }
.gl-top-timer:not(.is-compact) .gl-timer-copy span { max-width: none; white-space: nowrap; overflow: visible; text-overflow: clip; }
.gl-top-timer.is-compact { width: 104px; }
.gl-top-timer.is-compact .gl-timer-copy { position: absolute; inset: 0; padding: 0 12px; }
@media (max-width: 1100px) { .gl-top-timer:not(.is-compact) { max-width: 300px; } .gl-top-timer:not(.is-compact) .gl-timer-copy span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; } }

/* ================================================================== */
/* The emote wheel over the dock.                                      */
/* ================================================================== */
.gl-wheel { position: absolute; bottom: 100%; z-index: 70; width: 0; height: 0; pointer-events: none; }
.gl-wheel-e {
  position: absolute; left: 0; top: 0; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; border: 1px solid var(--fr-line);
  background: var(--fr-bg); font: 24px "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; line-height: 1; cursor: pointer; pointer-events: auto;
  box-shadow: var(--fr-shadow);
  transform: translate(0, 10px) scale(0.4); opacity: 0;
  transition: transform 460ms var(--gl-spring), opacity 200ms var(--gl-out), background 160ms var(--gl-out);
  transition-delay: calc(var(--i) * 28ms);
}
.gl-wheel.is-on .gl-wheel-e { transform: translate(var(--x), var(--y)) scale(1); opacity: 1; }
.gl-wheel-e:hover { background: rgba(255,255,255,0.14); }
.gl-wheel.is-on .gl-wheel-e.is-tap { animation: gl-squash 380ms var(--gl-spring); transform: translate(var(--x), var(--y)) scale(1.2); transition-delay: 0ms; }
.gl-wheel-e:active { transition-delay: 0ms; }
.gl-wheel-combo { position: absolute; left: 0; top: -150px; transform: translate(-50%, 0); padding: 6px 12px; border-radius: 999px; background: #ffd60a; color: #1a1a1a; font: 800 15px var(--gl-face); opacity: 0; pointer-events: none; box-shadow: 0 6px 16px rgba(255,214,10,0.45); }
.gl-wheel-combo.is-pop { animation: gl-combo-pop 460ms var(--gl-spring) both; }
.gl-emote .hud-dock-icon .gl-emoji { width: 34px; height: 34px; }
/* the emote wheel: bigger, brighter, clear of the picture's edge */
.gl-wheel-e { width: 52px; height: 52px; margin: -26px 0 0 -26px; font-size: 27px; background: rgba(40, 40, 48, 0.96); border: 1px solid rgba(255,255,255,0.18); box-shadow: 0 10px 24px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.12); }
.gl-wheel-e:hover { background: rgba(70, 70, 80, 0.98); }
.gl-wheel-combo { top: -190px; }


/* ---- no frame behind the chosen dock icon: the name alone slides in ---- */
.hud-action-dock .gl-thumb { display: none !important; }
.hud-dock-action.gl-active { background: transparent !important; box-shadow: none !important; }
.hud-dock-action:hover, .hud-dock-action:active { background: transparent !important; }

/* ---- the slider follows the hand: no easing while held, easing back on release ---- */
.gl-bar.is-drag .gl-knob, .gl-bar.is-drag .gl-track-fill { transition: none !important; }
.gl-bar .gl-knob { transition: left 160ms var(--gl-out), transform 200ms var(--gl-spring) !important; will-change: left; }
.gl-bar .gl-track-fill { transition: width 160ms var(--gl-out) !important; will-change: width; }
.gl-bar.is-drag .gl-knob { transform: translate(-50%, -50%) scale(1.15); }
.gl-bar input[type=range] { touch-action: none; }

/* ---- no dot under the icons ---- */
.hud-dock-action::after, .ia-tabs button::after { display: none !important; }

/* ---- the Mac bounce: an icon with news jumps a few times, rests, jumps again, until it is opened ---- */
@keyframes gl-mac-bounce {
  0%, 22%, 100% { transform: translateY(0); }
  4% { transform: translateY(-18px); }
  8% { transform: translateY(0); }
  11% { transform: translateY(-12px); }
  14% { transform: translateY(0); }
  17% { transform: translateY(-6px); }
  20% { transform: translateY(0); }
}
.hud-dock-action.gl-bounce .hud-dock-icon { animation: gl-mac-bounce 2.6s cubic-bezier(0.28, 0.84, 0.42, 1) infinite !important; transform-origin: 50% 100%; }
.hud-dock-action.gl-bounce:hover .hud-dock-icon { animation: none !important; }

/* ---- the notification line: same glass line, a white button ---- */
.gl-notify .gl-toast-cta { cursor: pointer; border: 0; }
@media (prefers-reduced-motion: reduce) { .hud-dock-action.gl-bounce .hud-dock-icon { animation: none !important; } }

/* ---- nothing small and grey on a dock icon: no ripple blob, no availability badge ---- */
.hud-dock-action .gl-ripple { display: none !important; }
.hud-dock-action.is-available .hud-dock-icon::after, .hud-dock-icon::after, .hud-dock-icon::before { display: none !important; content: none !important; }
.hud-dock-action { overflow: visible !important; }

/* ---- the stake slider takes colour from the amount: red when small, yellow in the middle, green when big ---- */
.gl-bar { --hue: calc(var(--pf, 0.5) * 130); --f1: hsl(var(--hue) 92% 58%); --glow: hsl(var(--hue) 92% 58% / 0.55); }
.gl-bar[data-level] { --f1: hsl(var(--hue) 92% 58%); --f2: var(--f1); --glow: hsl(var(--hue) 92% 58% / 0.55); }
.gl-track-fill { background: var(--f1) !important; box-shadow: 0 0 12px var(--glow) !important; }
.gl-bar .gl-knob { box-shadow: 0 1px 4px rgba(0,0,0,0.35), 0 0 0 3px hsl(var(--hue) 92% 58% / 0.35) !important; }
.gl-stake .gl-amount-n, .gl-stake-n b { color: hsl(calc(var(--pf, 0.5) * 130) 92% 68%); transition: color 160ms var(--gl-out); }
.gl-stake .gl-stake-n b.gl-amount-n, .gl-stake .gl-amount-n { color: hsl(calc(var(--pf, 0.5) * 130) 92% 70%) !important; }

/* ================================================================== */
/* The bet sheet as a trade ticket: what is available, With | Against, */
/* the amount on a white slider, the payout multiplier on a green to   */
/* red meter, what you get, one big button in the side's colour.       */
/* ================================================================== */
.gl-pop.is-trade { padding: 14px 16px 16px !important; }
.gl-trade .gl-stake-title { text-align: left; margin: 0 0 6px; font-size: 15px; }
.gl-trade-avail { font: 500 14px var(--gl-face); color: rgba(255,255,255,0.55); margin: 0 0 12px; }
.gl-trade-avail b { color: #fff; font-weight: 600; }
.gl-seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; height: 44px; border-radius: 22px; background: rgba(255,255,255,0.10); padding: 3px; margin: 0 0 4px; }
.gl-seg-pill { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 19px; background: #34c759; transition: left 320ms var(--gl-spring), background 200ms var(--gl-out); box-shadow: 0 2px 8px rgba(0,0,0,0.25); }
.gl-trade[data-side="no"] .gl-seg-pill { left: 50%; background: #ff453a; }
.gl-seg button { position: relative; z-index: 1; border: 0; background: transparent; font: 600 15px var(--gl-face); color: rgba(255,255,255,0.6); border-radius: 19px; cursor: pointer; transition: color 200ms var(--gl-out); padding: 0 6px; white-space: nowrap; }
.gl-seg button[aria-selected="true"] { color: #fff; }
.gl-trade-sec { padding: 12px 0 6px; border-top: 1px solid rgba(255,255,255,0.08); }
.gl-trade-sec + .gl-trade-sec { margin-top: 4px; }
.gl-trade-lab { display: block; font: 500 13px var(--gl-face); color: rgba(255,255,255,0.55); margin-bottom: 2px; }
.gl-trade .gl-stake-n { justify-content: flex-start; margin: 0 0 2px; }
.gl-trade .gl-stake-n .gl-amount-n, .gl-trade .gl-mult { font: 700 32px var(--gl-face) !important; letter-spacing: -0.03em; color: #fff !important; }
.gl-trade .gl-stake-n .gl-bolt { font-style: normal; font-size: 18px; }
.gl-trade .gl-bar { margin: 0; height: 36px !important; }
.gl-trade .gl-track { left: 0 !important; right: 0 !important; height: 8px !important; margin-top: -4px !important; border-radius: 4px; background: rgba(255,255,255,0.16) !important; }
.gl-trade .gl-track-fill { background: #fff !important; box-shadow: none !important; border-radius: 4px; }
.gl-trade .gl-knob { left: calc(12px + (100% - 24px) * var(--pf)) !important; width: 24px; height: 24px; box-shadow: 0 2px 6px rgba(0,0,0,0.4) !important; }
.gl-meter { position: relative; height: 36px; --m: 0.5; }
.gl-meter-track { position: absolute; left: 0; right: 0; top: 50%; height: 8px; margin-top: -4px; border-radius: 4px; background: linear-gradient(90deg, #34c759 0%, #c8e63a 35%, #ffd60a 55%, #ff9f0a 75%, #ff453a 100%); }
.gl-meter-knob { position: absolute; top: 50%; left: calc(12px + (100% - 24px) * var(--m)); width: 24px; height: 24px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); box-shadow: 0 2px 6px rgba(0,0,0,0.4); transition: left 320ms var(--gl-spring); }
.gl-trade-foot { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0 12px; border-top: 1px solid rgba(255,255,255,0.08); font: 500 14px var(--gl-face); color: rgba(255,255,255,0.55); }
.gl-trade-foot b { color: #fff; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.gl-trade-go { width: 100%; height: 50px; border: 0; border-radius: 14px; background: #34c759; color: #fff; font: 700 17px var(--gl-face); letter-spacing: -0.01em; cursor: pointer; transition: background 200ms var(--gl-out), transform 200ms var(--gl-spring), filter 160ms; }
.gl-trade[data-side="no"] .gl-trade-go { background: #ff453a; }
.gl-trade-go:hover { filter: brightness(1.08); }
.gl-trade-go:active { transform: scale(0.97); }
.gl-trade-go.is-done { box-shadow: 0 0 0 3px rgba(255,255,255,0.7); }
.gl-pop.is-trade .gl-pop-rows { margin-top: 8px; }

/* trade ticket: a plain column, left aligned, full width, compact */
.gl-pop.is-trade { padding: 12px 14px 14px !important; max-height: calc(100vh - 110px); overflow: auto; }
.gl-stake.gl-trade { display: block !important; text-align: left !important; gap: 0 !important; padding: 0 !important; }
.gl-stake.gl-trade > * { width: 100%; justify-self: stretch; }
.gl-stake.gl-trade .gl-stake-title { text-align: left; margin: 0 0 4px; font-size: 15px; line-height: 1.2; }
.gl-stake.gl-trade .gl-trade-avail { margin: 0 0 10px; font-size: 13px; }
.gl-stake.gl-trade .gl-seg { height: 40px; border-radius: 20px; margin-bottom: 2px; }
.gl-stake.gl-trade .gl-seg-pill { border-radius: 17px; }
.gl-stake.gl-trade .gl-seg button { font-size: 14px; }
.gl-stake.gl-trade .gl-trade-sec { padding: 9px 0 2px; }
.gl-stake.gl-trade .gl-trade-lab { font-size: 12px; margin: 0; }
.gl-stake.gl-trade .gl-stake-n { display: flex !important; justify-content: flex-start !important; align-items: baseline; gap: 6px; margin: 0; }
.gl-stake.gl-trade .gl-stake-n b.gl-amount-n, .gl-stake.gl-trade .gl-mult { font: 700 28px var(--gl-face) !important; letter-spacing: -0.03em !important; line-height: 1.1 !important; color: #fff !important; }
.gl-stake.gl-trade .gl-stake-n i { font-size: 12px; }
.gl-stake.gl-trade .gl-bar, .gl-stake.gl-trade .gl-meter { width: 100% !important; max-width: none !important; margin: 0 !important; height: 32px !important; }
.gl-stake.gl-trade .gl-track { left: 0 !important; right: 0 !important; }
.gl-stake.gl-trade .gl-trade-foot { display: flex !important; justify-content: space-between !important; align-items: baseline; padding: 8px 0 10px; font-size: 13px; }
.gl-stake.gl-trade .gl-trade-foot b { font-size: 16px; }
.gl-stake.gl-trade .gl-trade-go { height: 46px; font-size: 16px; }

/* thicker bars, smaller thumbs, on the ticket and on every stake slider */
.gl-stake.gl-trade .gl-track, .gl-track { height: 12px !important; margin-top: -6px !important; border-radius: 6px !important; }
.gl-track-fill { border-radius: 6px !important; }
.gl-meter-track { height: 12px; margin-top: -6px; border-radius: 6px; }
.gl-stake.gl-trade .gl-knob, .gl-knob { width: 18px !important; height: 18px !important; left: calc(9px + (100% - 18px) * var(--pf)) !important; box-shadow: 0 1px 4px rgba(0,0,0,0.4) !important; }
.gl-meter-knob { width: 18px; height: 18px; left: calc(9px + (100% - 18px) * var(--m)); box-shadow: 0 1px 4px rgba(0,0,0,0.4); }
.gl-bar.is-drag .gl-knob, .gl-bar input[type=range]:active ~ .gl-knob, .gl-bar:active .gl-knob { transform: translate(-50%, -50%) scale(1.15); }

/* ---- news on an icon is a red badge, not a jump; icons stay inside the dock ---- */
.hud-dock-action.gl-bounce .hud-dock-icon, .hud-dock-action.gl-bounce:hover .hud-dock-icon { animation: none !important; }
.hud-dock-action.gl-bounce::before {
  content: '' !important; display: block !important; position: absolute; top: 3px; right: 5px; width: 11px; height: 11px; margin: 0;
  border-radius: 50%; background: #ff3b30; box-shadow: 0 0 0 2px rgba(11,11,15,0.95), 0 1px 4px rgba(0,0,0,0.4); animation: gl-badge-in 360ms var(--gl-spring) both; pointer-events: none; z-index: 2;
}
@keyframes gl-badge-in { from { transform: scale(0); } to { transform: scale(1); } }
.hud-dock-action:hover .hud-dock-icon { transform: scale(1.14) !important; }
.hud-dock-action:hover + .hud-dock-action .hud-dock-icon, .hud-dock-action:has(+ .hud-dock-action:hover) .hud-dock-icon { transform: none !important; }
.hud-dock-action.gl-active .hud-dock-icon { transform: none !important; }
.hud-dock-action:active .hud-dock-icon { animation: gl-squash 380ms var(--gl-spring) !important; }
@keyframes gl-squash { 0% { transform: scale(1); } 35% { transform: scale(1.12, 0.9); } 70% { transform: scale(0.96, 1.06); } 100% { transform: scale(1); } }
.hud-action-dock { overflow: visible; }

/* ---- the header card: a bigger logo, a shorter card, the whole card opens sign in ---- */
.hud-viewer { width: auto !important; min-height: 52px !important; padding: 6px 14px 6px 8px !important; gap: 10px !important; cursor: pointer; }
.hud-home { height: 40px !important; padding: 0 12px 0 6px !important; }
.hud-home img { height: 34px !important; }
.hud-viewer-avatar { width: 32px !important; height: 32px !important; }
.hud-viewer-avatar svg { width: 16px; height: 16px; }
.hud-viewer-copy { gap: 0 !important; }
.hud-viewer-copy .ar-tag, .hud-viewer-copy b { font-size: 14px !important; }
.hud-viewer-copy span, .hud-viewer-copy small { font-size: 11px !important; }
.hud-viewer:hover .hud-viewer-avatar { background: rgba(255,255,255,0.18) !important; }

/* sign in comes up as a centred frame over the stream */
.gl-store.is-signin {
  top: 50%; left: 50%; right: auto; bottom: auto; width: min(420px, calc(100vw - 24px)); height: min(600px, calc(100vh - 48px));
  transform: translate(-50%, -46%) scale(0.96);
}
.gl-store.is-signin.is-on { transform: translate(-50%, -50%) scale(1); }
body.gl-signin-on::before { content: ''; position: fixed; inset: 0; z-index: 105; background: rgba(0,0,0,0.45); animation: gl-fade-in 260ms var(--gl-out) both; }
@keyframes gl-fade-in { from { opacity: 0; } to { opacity: 1; } }
.hud-home { width: auto !important; flex: none; }
.gl-store.is-signin, .gl-store.is-signin .gl-store-frame { background: #0b0b0f !important; }
.gl-store.is-signin { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 0 1px var(--fr-line); }

/* no heart (support) button in the utilities */
.hud-utilities .gl-util { display: none !important; }

/* ================================================================== */
/* One colour for every frame: the sign in frame's solid #0b0b0f, no  */
/* blur, the same hairline and shadow everywhere.                     */
/* ================================================================== */
:root { --fr-bg: #0b0b0f; --fr-bg-2: #0b0b0f; }
.hud-viewer, .hud-wallet, .hud-channel-card, .hud-round-cue, .hud-action-dock, .hud-utilities, .ix-room-panel, .room-guide-card,
.crowd-dock > .crowd-head, .crowd-dock .crowd-poll, .crowd-dock .crowd-shares, .crowd-dock .crowd-bounty, .crowd-dock .crowd-callers, .crowd-dock .crowd-book, .crowd-dock .crowd-bank, .crowd-dock .crowd-bets, .crowd-dock .crowd-table, .crowd-refill, .crowd-table,
.gl-pop, .gl-pop.has-slider, .gl-pop.is-trade, .gl-pop.is-pm, .gl-toast, .gl-notify, .ix-room-panel.gl-chat-only, .hm-stage-side, #stage-side, .pl-card, .hm-stage-side-head, .crowd-dock .crowd-note,
.gl-top-timer, .gl-side, .gl-vote, .gl-cheer, .gl-store, .gl-store.is-signin, .gl-store-frame, .gl-store-head, .gl-emote-btn, .gl-wheel-btn {
  background: #0b0b0f !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  border-color: var(--fr-line) !important;
  box-shadow: var(--fr-shadow) !important;
}
.gl-pop::after, .gl-pop.has-slider::after { background: #0b0b0f !important; }
.gl-store-head { box-shadow: none !important; border-radius: 0 !important; }
.gl-store-frame { box-shadow: none !important; border: 0 !important; }

/* the ticket: no multiplier row, a bigger question */
.gl-trade-mult { display: none !important; }
.gl-stake.gl-trade .gl-stake-title { font-size: 19px !important; font-weight: 700; letter-spacing: -0.02em; line-height: 1.18; margin: 2px 0 6px; }
.gl-stake.gl-trade .gl-trade-foot { border-top: 0; padding-top: 6px; }

/* ================================================================== */
/* The palette from the quests card: frames in #131315 with a hairline */
/* rim, rows inset in #1c1c1f with their own rim, white pill buttons.  */
/* ================================================================== */
:root { --fr-bg: #131315; --fr-bg-2: #131315; --fr-line: #2a2a2e; --fr-row: #1c1c1f; --fr-row-line: #2e2e33; --fr-sub: #9b9b9f; --fr-shadow: 0 10px 30px rgba(0,0,0,0.45); }
.hud-viewer, .hud-wallet, .hud-channel-card, .hud-round-cue, .hud-action-dock, .hud-utilities, .ix-room-panel, .room-guide-card,
.crowd-dock > .crowd-head, .crowd-dock .crowd-poll, .crowd-dock .crowd-shares, .crowd-dock .crowd-bounty, .crowd-dock .crowd-callers, .crowd-dock .crowd-book, .crowd-dock .crowd-bank, .crowd-dock .crowd-bets, .crowd-dock .crowd-table, .crowd-refill, .crowd-table,
.gl-pop, .gl-pop.has-slider, .gl-pop.is-trade, .gl-pop.is-pm, .gl-toast, .gl-notify, .ix-room-panel.gl-chat-only, .hm-stage-side, #stage-side, .pl-card, .hm-stage-side-head, .crowd-dock .crowd-note,
.gl-top-timer, .gl-side, .gl-vote, .gl-cheer, .gl-store, .gl-store.is-signin, .gl-store-frame, .gl-store-head {
  background: #131315 !important; border: 1px solid #2a2a2e !important; box-shadow: 0 10px 30px rgba(0,0,0,0.45) !important;
}
.gl-pop::after, .gl-pop.has-slider::after { background: #131315 !important; border-color: #2a2a2e !important; }
.gl-store-head { border: 0 !important; border-bottom: 1px solid #2a2a2e !important; box-shadow: none !important; }
.gl-store-frame { border: 0 !important; box-shadow: none !important; }

/* rows inset in the frame */
.gl-row, .gl-choice, .gl-pm-row, .gl-vote-opt, .poll-option, .ia-option, .gl-seg, .gl-trade-avail, .crowd-bounty-row, .gl-side-body, .gl-timer-copy, .gl-strip-cap {
  background: #1c1c1f !important; border: 1px solid #2e2e33 !important; border-radius: 14px !important; box-shadow: none !important;
}
.gl-seg { padding: 3px !important; }
.gl-seg-pill { background: #f2f2f2 !important; box-shadow: 0 1px 3px rgba(0,0,0,0.35) !important; }
.gl-trade[data-side="no"] .gl-seg-pill { background: #f2f2f2 !important; }
.gl-seg button[aria-selected="true"] { color: #111 !important; }
.gl-seg button { color: #9b9b9f !important; }
.gl-trade-avail { padding: 10px 12px !important; margin: 0 0 10px !important; color: #9b9b9f !important; }
.gl-timer-copy { border: 0 !important; background: transparent !important; }
.gl-row:hover, .gl-choice:hover, .gl-pm-row:hover, .gl-vote-opt:hover { background: #232327 !important; }
.gl-pop .gl-dot { box-shadow: none !important; }
.gl-row small, .gl-pm-copy small, .gl-choice small, .gl-vote-foot, .gl-pm-foot, .gl-trade-lab, .gl-trade-foot, .hud-viewer-copy span, .hud-wallet-copy .hud-kicker, #hud-wallet-note, .gl-stake .gl-stake-n i, .gl-pop-kicker { color: #9b9b9f !important; }

/* white pill buttons, dark text */
.gl-trade-go, .gl-toast-cta, .gl-pm-btns button.one, .gl-strip-cta, .gl-side-cta, .hud-add, .gl-cheer button, .gl-pop .is-link .gl-dot {
  background: #f2f2f2 !important; color: #111 !important; border: 0 !important; box-shadow: 0 1px 3px rgba(0,0,0,0.3) !important;
}
.gl-trade[data-side="no"] .gl-trade-go { background: #f2f2f2 !important; color: #111 !important; }
.gl-trade-go:hover, .gl-toast-cta:hover { background: #fff !important; filter: none; }
.gl-pop.has-slider .gl-choice.tone-0, .gl-pop.has-slider .gl-choice.tone-2 { background: #1c1c1f !important; color: #fff !important; border: 1px solid #2e2e33 !important; }
.gl-pop.has-slider .gl-choice.tone-0:hover, .gl-pop.has-slider .gl-choice.tone-2:hover { background: #232327 !important; }
.gl-pm-btns button.yes { background: rgba(48,209,88,0.16) !important; color: #4cd964 !important; border: 1px solid rgba(48,209,88,0.25) !important; }
.gl-pm-btns button.no { background: rgba(255,69,58,0.14) !important; color: #ff6b61 !important; border: 1px solid rgba(255,69,58,0.25) !important; }

/* ---- your bet, on the right, until it is done ---- */
.gl-mybet {
  position: fixed; right: 26px; top: 112px; z-index: 41; width: 232px; padding: 12px 12px 12px; border-radius: 20px;
  background: #131315; border: 1px solid #2a2a2e; box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  font-family: var(--gl-face); color: #fff; opacity: 0; transform: translateX(28px) scale(0.96); pointer-events: none;
  transition: opacity 320ms var(--gl-out), transform 460ms var(--gl-spring);
}
.gl-mybet.is-on { opacity: 1; transform: none; pointer-events: auto; }
.gl-side.is-on ~ .gl-mybet, body:has(.gl-side.is-on) .gl-mybet { top: 336px; }
.gl-mybet-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.gl-mybet-k { font: 700 10px var(--gl-face); letter-spacing: 0.12em; text-transform: uppercase; color: #9b9b9f; }
.gl-mybet-clock { font: 700 13px var(--gl-face); font-variant-numeric: tabular-nums; color: #ffd60a; }
.gl-mybet.is-done .gl-mybet-clock { color: #9b9b9f; }
.gl-mybet-q { margin: 0 0 8px; font: 600 13px var(--gl-face); line-height: 1.25; letter-spacing: -0.01em; }
.gl-mybet-leg { display: grid; grid-template-columns: 1fr auto; gap: 0 8px; padding: 9px 11px; border-radius: 14px; background: #1c1c1f; border: 1px solid #2e2e33; }
.gl-mybet-leg + .gl-mybet-leg { margin-top: 6px; }
.gl-mybet-side { font: 600 12px var(--gl-face); }
.gl-mybet-leg.is-yes .gl-mybet-side { color: #4cd964; }
.gl-mybet-leg.is-no .gl-mybet-side { color: #ff6b61; }
.gl-mybet-n { font: 700 13px var(--gl-face); font-variant-numeric: tabular-nums; text-align: right; }
.gl-mybet-leg small { grid-column: 1 / -1; font: 500 11px var(--gl-face); color: #9b9b9f; }
.gl-mybet-res { margin-top: 8px; padding: 10px 12px; border-radius: 14px; text-align: center; border: 1px solid #2e2e33; background: #1c1c1f; }
.gl-mybet-res b { display: block; font: 800 18px var(--gl-face); letter-spacing: -0.02em; }
.gl-mybet-res span { display: block; font: 500 11px var(--gl-face); color: #9b9b9f; margin-top: 2px; }
.gl-mybet-res.is-won { border-color: rgba(48,209,88,0.4); }
.gl-mybet-res.is-won b { color: #4cd964; }
.gl-mybet-res.is-lost b { color: #ff6b61; }
body.gl-store-on .gl-mybet, body.gl-chat-only .gl-mybet, .hud-panel-open .gl-mybet { opacity: 0 !important; pointer-events: none !important; }
@media (max-width: 900px) { .gl-mybet { display: none; } }

/* ---- the three header frames drawn like the wallet card: 65px tall, 20px corners, the same padding ---- */
.hud-viewer { height: 65px !important; min-height: 65px !important; padding: 12px 16px 12px 12px !important; border-radius: 20px !important; gap: 12px !important; }
.hud-home { height: 41px !important; padding: 0 14px 0 4px !important; }
.hud-home img { height: 30px !important; }
.hud-viewer-avatar { width: 32px !important; height: 32px !important; background: #f2f2f2 !important; color: #111 !important; border: 0 !important; }
.hud-viewer-avatar svg { width: 16px; height: 16px; color: #111; stroke: #111; }
.hud-viewer-copy .ar-tag, .hud-viewer-copy b { font-size: 15px !important; }
.hud-viewer-copy span, .hud-viewer-copy small { font-size: 13px !important; }
.hud-viewer-copy { gap: 2px !important; }
.gl-top-timer, .gl-top-timer.is-compact, .gl-top-timer:not(.is-compact) { height: 65px !important; border-radius: 20px !important; }
.gl-top-timer.is-compact { width: 112px; }
.gl-top-timer .gl-timer-copy b { font-size: 20px; }
.gl-top-timer .gl-timer-copy small { font-size: 10px; }
.gl-top-timer:not(.is-compact) .gl-timer-copy span { font-size: 12px; color: #9b9b9f; }
