/* Gambit VIP host: livestream bubble, speech comments, chat overlay and host picker. Owned by host.js.
   Visual language follows hacksaw.cc/play (reel.css + assets/interface-theme.css): solid flat surfaces,
   no hairline borders, chunky controls with a solid bottom depth shadow, bold uppercase labels.
   Buttons get the shared press-down behaviour from assets/button-feedback.{css,js} automatically. */

.gh-root,
.gh-layer {
  --gh-bg: var(--ui-bg, #111);
  --gh-panel: var(--ui-panel, #262626);
  --gh-raised: var(--ui-line, #353535);
  --gh-control: var(--ui-control, #454545);
  --gh-control-hover: var(--ui-control-hover, #555);
  --gh-depth: var(--ui-depth, #151515);
  --gh-ink: var(--ui-ink, #fff);
  --gh-muted: var(--ui-muted, #bdbdbd);
  --gh-action: var(--ui-action, #69ae55);
  --gh-action-hover: var(--ui-action-hover, #79bc64);
  --gh-action-ink: var(--ui-action-ink, #101810);
  --gh-action-depth: var(--ui-action-depth, #416e36);
  --gh-selected: var(--ui-selected, #354933);
  --gh-selected-ink: var(--ui-selected-ink, #d0f0c5);
  --gh-accent: var(--ui-accent, #6bad71);
  --gh-gold: var(--ui-gold, #f2c749);
  --gh-gold-depth: #9f8228;
  --gh-focus: var(--ui-focus, #f3c851);
  --gh-field: var(--ui-field, #121712);
  --gh-overlay: var(--ui-overlay, #0b100bcc);
  --gh-float: var(--ui-float, 0 14px 38px #0008);
  --gh-live: #e5383b;
  --gh-live-depth: #8f1f22;
  --gh-radius: var(--ui-button-radius, 8px);
  --gh-pill: var(--ui-pill-radius, 100px);
  --gh-panel-radius: var(--ui-panel-radius, 12px);
  font-family: var(--font-ui, system-ui, sans-serif);
  color: var(--gh-ink);
}
.gh-root[hidden],
.gh-picker[hidden],
.gh-picker-backdrop[hidden],
.gh-backdrop[hidden],
.gh-panel[hidden],
.gh-speech[hidden],
.gh-typing[hidden] { display: none !important; }
.gh-root :is(button, input):focus-visible,
.gh-layer :is(button, input, [tabindex="0"]):focus-visible { outline: 2px solid var(--gh-focus); outline-offset: 2px; }
.gh-root :is(button, input):focus:not(:focus-visible),
.gh-layer :is(button, input):focus:not(:focus-visible) { outline: none; }

/* Shared /play control faces */
.gh-icon-btn,
.gh-chip,
.gh-bubble-name,
.gh-speech-close,
.gh-rec,
.gh-host-card {
  border: 0;
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.gh-icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--gh-radius);
  background: var(--gh-control);
  color: var(--gh-ink);
  box-shadow: 0 4px 0 var(--gh-depth);
}
.gh-icon-btn svg { width: 22px; height: 22px; fill: currentColor; display: block; }
.gh-icon-btn:hover { background: var(--gh-control-hover); }
.gh-icon-btn[data-button-pressed] { box-shadow: 0 1px 0 var(--gh-depth); }

/* ---------- Host video stream (double-buffered) ---------- */
.gh-stream {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  /* Own stacking context: the layers' crossfade z-index must not rise above the LIVE badge etc. */
  isolation: isolate;
  background: var(--gh-bg);
}
.gh-stream-still,
.gh-stream-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--gh-focus-pos, 50% 22%);
  pointer-events: none;
  user-select: none;
}
.gh-stream-layer { opacity: 0; transition: opacity 280ms linear; }
.gh-stream-layer.is-front { opacity: 1; }
/* The poster is only a placeholder until the first decoded frame. */
.gh-stream.has-frame .gh-stream-still { visibility: hidden; }
.gh-stream--bubble { --gh-focus-pos: 50% 8%; border-radius: 50%; }
.gh-stream--panel { --gh-focus-pos: 50% 24%; }

/* ---------- Bubble ---------- */
.gh-root {
  --gh-size: 64px;
  position: fixed;
  /* Above the game, its corner buttons and desktop mini-players; hidden while the library is open.
     The lobby (9000) and modal <dialog>s still cover it. */
  z-index: 40;
  transform: translateZ(0);
  isolation: isolate;
  top: var(--gh-top, calc(56px + env(safe-area-inset-top)));
  left: var(--gh-left, max(10px, env(safe-area-inset-left)));
  display: flex;
  align-items: flex-start;
  gap: 12px;
  pointer-events: none;
}
.gh-root.is-covered { visibility: hidden; }
.gh-avatar { position: relative; display: grid; justify-items: center; flex: none; }
.gh-bubble {
  pointer-events: auto;
  position: relative;
  display: grid;
  justify-items: center;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.gh-ring {
  position: relative;
  display: block;
  width: var(--gh-size);
  height: var(--gh-size);
  border-radius: 50%;
  background: var(--gh-panel);
  /* Solid ring + solid depth, like /play controls. */
  box-shadow: 0 0 0 3px var(--gh-panel), 0 5px 0 1px var(--gh-depth);
}
.gh-bubble:hover .gh-ring { box-shadow: 0 0 0 3px var(--gh-control), 0 5px 0 1px var(--gh-depth); }
.gh-bubble:focus-visible { outline: none; }
.gh-bubble:focus-visible .gh-ring { box-shadow: 0 0 0 3px var(--gh-focus), 0 5px 0 1px var(--gh-depth); }
.gh-root.is-open .gh-ring { box-shadow: 0 0 0 3px var(--gh-action), 0 5px 0 1px var(--gh-action-depth); }
.gh-bubble[data-button-pressed] { translate: none; }
.gh-bubble[data-button-pressed] .gh-ring { transform: translateY(2px); }

.gh-live {
  position: absolute;
  top: calc(var(--gh-size) - 9px);
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px 2px 6px;
  border-radius: var(--gh-pill);
  background: var(--gh-live);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.25;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 2px 0 var(--gh-live-depth);
}
.gh-live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  animation: gh-pulse 1.4s ease-in-out infinite;
}
@keyframes gh-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}
.gh-bubble-name {
  pointer-events: auto;
  position: relative;
  margin-top: 12px;
  max-width: calc(var(--gh-size) + 32px);
  min-height: 26px;
  padding: 0 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: var(--gh-pill);
  background: var(--gh-control);
  color: var(--gh-ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: 0 3px 0 var(--gh-depth);
}
.gh-bubble-name::after { content: ""; position: absolute; inset: -8px -6px; } /* larger tap target */
.gh-bubble-name:hover { background: var(--gh-control-hover); color: var(--gh-focus); }
.gh-bubble-name[data-button-pressed] { box-shadow: 0 0 0 var(--gh-depth); }

/* Celebration: solid gold/green confetti, no glow */
.gh-burst { position: absolute; inset: 0; pointer-events: none; }
.gh-burst i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  margin: -3.5px;
  border-radius: 2px;
  background: var(--gh-gold);
  opacity: 0;
}
.gh-burst i:nth-child(3n) { background: var(--gh-action); }
.gh-burst i:nth-child(4n) { background: #fff; border-radius: 50%; }
.gh-root.is-celebrating .gh-burst i { animation: gh-spark 1100ms cubic-bezier(.2, .8, .3, 1) var(--delay, 0ms) forwards; }
.gh-root.is-celebrating .gh-ring { animation: gh-ring-pop 900ms ease; }
.gh-root.is-glow .gh-ring,
.gh-root.is-celebrating .gh-ring { box-shadow: 0 0 0 3px var(--gh-gold), 0 5px 0 1px var(--gh-gold-depth); }
@keyframes gh-spark {
  0% { opacity: 1; transform: rotate(var(--a)) translateY(0) scale(.6); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(-1 * var(--d))) scale(1) rotate(160deg); }
}
@keyframes gh-ring-pop {
  0%, 100% { transform: scale(1); }
  30% { transform: scale(1.12); }
}

/* ---------- Speech comment ---------- */
.gh-speech {
  pointer-events: auto;
  position: relative;
  margin-top: 6px;
  max-width: min(250px, calc(100vw - var(--gh-size) - 40px - env(safe-area-inset-left) - env(safe-area-inset-right)));
  padding: 10px 34px 10px 12px;
  border-radius: var(--gh-panel-radius);
  background: var(--gh-panel);
  box-shadow: 0 4px 0 var(--gh-depth);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 160ms ease, transform 200ms cubic-bezier(.22, 1, .36, 1);
}
.gh-speech.is-in { opacity: 1; transform: none; }
.gh-speech.is-celebrate { background: var(--gh-gold); color: #000; box-shadow: 0 4px 0 var(--gh-gold-depth); }
.gh-speech::before {
  content: "";
  position: absolute;
  top: 14px;
  left: -6px;
  border-style: solid;
  border-width: 6px 7px 6px 0;
  border-color: transparent var(--gh-panel) transparent transparent;
}
.gh-speech.is-celebrate::before { border-right-color: var(--gh-gold); }
.gh-speech-text {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  color: inherit;
  cursor: pointer;
}
.gh-speech-close {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 6px;
  background: var(--gh-control);
  color: var(--gh-ink);
  box-shadow: 0 2px 0 var(--gh-depth);
}
.gh-speech-close:hover { background: var(--gh-control-hover); }
.gh-speech-close svg { width: 14px; height: 14px; fill: currentColor; }
.gh-speech.is-celebrate .gh-speech-close { background: rgb(0 0 0 / 18%); color: #000; box-shadow: none; }

/* ---------- Overlay ---------- */
.gh-layer { position: relative; z-index: 45; }
.gh-backdrop {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: transparent;
  transition: background-color 220ms ease;
}
.gh-layer.is-open .gh-backdrop { background: var(--gh-overlay); }
.gh-layer[data-mode="desktop"] .gh-backdrop { display: none; }

.gh-panel {
  position: fixed;
  z-index: 46;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--gh-panel);
  box-shadow: var(--gh-float);
  outline: none;
  transition: transform 260ms cubic-bezier(.22, 1, .36, 1), opacity 180ms ease;
}
.gh-layer[data-mode="sheet"] .gh-panel {
  left: 0;
  right: 0;
  bottom: 0;
  margin-inline: auto;
  width: min(100%, 540px);
  height: min(90dvh, 780px);
  border-radius: var(--gh-panel-radius) var(--gh-panel-radius) 0 0;
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateY(100%);
}
.gh-layer[data-mode="sheet"].is-open .gh-panel { transform: none; }
/* Desktop: she docks as a full-height panel on the left; the /play layout is pushed right. */
:root { --gh-dock-w: clamp(260px, calc(22vw + 40px), 520px); --gh-dock-top: 68px; --gh-dock-gap: 20px; /* same box as home's panel (lobby.css) */ }
.gh-layer[data-mode="desktop"] .gh-panel {
  top: var(--gh-dock-top);
  left: var(--gh-dock-gap);
  width: var(--gh-dock-w);
  border-radius: var(--gh-panel-radius);
  transform: translateX(calc(-100% - 2 * var(--gh-dock-gap)));
  transition: transform 260ms cubic-bezier(.22, 1, .36, 1);
}
.gh-layer[data-mode="desktop"].is-open .gh-panel { transform: none; }
@media (min-width: 769px) and (hover: hover) and (pointer: fine) {
  #reel-layout { transition: margin-left 260ms cubic-bezier(.22, 1, .36, 1), width 260ms cubic-bezier(.22, 1, .36, 1); }
  html[data-gh-dock="open"] #reel-layout { margin-left: calc(var(--gh-dock-w) + 2 * var(--gh-dock-gap)); width: calc(100vw - var(--gh-dock-w) - 2 * var(--gh-dock-gap)); }
  /* Game top edge lines up with her panel, as when arriving from home. */
  html[data-gh-dock="open"] #reel-desktop-slots { margin-top: var(--gh-dock-top); height: calc(100% - var(--gh-dock-top) - var(--gh-dock-gap)); align-items: flex-start; }
  /* The bubble steps aside while she is docked. */
  html[data-gh-dock="open"] .gh-root { visibility: hidden; }
}

.gh-panel { background: var(--gh-bg); }
.gh-layer[data-mode="sheet"] .gh-panel { height: min(92dvh, 820px); }
/* 9:16 stream box (~520x924) capped to the viewport; the video covers it. */
.gh-layer[data-mode="desktop"] .gh-panel { height: min(calc(var(--gh-dock-w) * 16 / 9), calc(100dvh - var(--gh-dock-top) - var(--gh-dock-gap))); }

/* Livestream: video fills the panel; everything else floats over it. */
.gh-stream--panel { --gh-focus-pos: 50% 18%; z-index: 0; }
.gh-scrim { position: absolute; left: 0; right: 0; z-index: 1; pointer-events: none; }
.gh-scrim--top { top: 0; height: 120px; background: linear-gradient(rgb(0 0 0 / 45%), rgb(0 0 0 / 0)); }
.gh-scrim--bottom { bottom: 0; height: 62%; background: linear-gradient(rgb(0 0 0 / 0), rgb(0 0 0 / 30%) 40%, rgb(0 0 0 / 62%)); }

.gh-hero-top {
  position: absolute;
  z-index: 3;
  top: 10px;
  left: 12px;
  right: 10px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.gh-head { display: grid; gap: 6px; min-width: 0; padding-top: 2px; }
.gh-live--panel {
  position: static;
  transform: none;
  justify-self: start;
  font-size: 10px;
  padding: 3px 9px 3px 8px;
}
.gh-title-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.gh-title-row .gh-live--panel { flex: none; text-shadow: none; }
.gh-head-text { min-width: 0; text-shadow: 0 1px 2px #000, 0 2px 8px rgb(0 0 0 / 70%); }
.gh-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  color: #fff;
}
.gh-tagline { margin: 2px 0 0; font-size: 13px; font-weight: 700; color: rgb(255 255 255 / 85%); line-height: 1.3; }
.gh-hero-actions { display: flex; gap: 8px; align-items: center; flex: none; }
/* Change host: icon-only /play .reel-button (inherits .gh-icon-btn). */

/* Broadcaster watermark: bunny + GAMBIT wordmark (white), bunny alone on narrow screens (decorative). */
.gh-watermark {
  position: absolute;
  z-index: 2;
  top: 112px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  opacity: .65;
  pointer-events: none;
}
.gh-wm-bunny,
.gh-wm-word { display: block; background: #fff; }
.gh-wm-bunny {
  width: 18px;
  height: 18px;
  -webkit-mask: url(/gambit/assets/gambit-bunny.svg) center / contain no-repeat;
  mask: url(/gambit/assets/gambit-bunny.svg) center / contain no-repeat;
}
.gh-wm-word {
  width: 64px;
  aspect-ratio: 493.75 / 80.57; /* wordmark viewBox */
  -webkit-mask: url(/gambit/assets/gambit-wordmark.svg) left center / contain no-repeat;
  mask: url(/gambit/assets/gambit-wordmark.svg) left center / contain no-repeat;
}
.gh-kicker.gh-kicker--brand { display: inline-flex; align-items: center; gap: 8px; }
.gh-watermark--picker { position: static; opacity: 1; gap: 4px; }
.gh-watermark--picker .gh-wm-bunny { width: 14px; height: 14px; }
.gh-watermark--picker .gh-wm-word { width: 50px; }
@media (max-width: 599px) {
  .gh-wm-word { display: none; }
  .gh-watermark:not(.gh-watermark--picker) .gh-wm-bunny { width: 22px; height: 22px; }
}
.gh-kicker {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gh-accent);
}

/* Chat: livestream-style captions stacked at the bottom, fading out toward the top. */
.gh-chat {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0; /* spans the panel so the log's max-height is a share of her stream */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
}
.gh-log {
  pointer-events: auto;
  flex: 0 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 40px 14px 6px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 50%; /* phones: about half her stream; desktop dock below */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 70px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 70px);
}
.gh-layer[data-mode="desktop"] .gh-log { max-height: 57%; }
.gh-log > :first-child { margin-top: auto; }
.gh-msg {
  max-width: 92%;
  padding: 0;
  background: none;
  color: #fff;
  font-size: 14.5px;
  font-weight: 500; /* message text medium; speaker labels stay bold */
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-shadow: 0 1px 2px #000, 0 1px 1px #000, 0 2px 10px rgb(0 0 0 / 80%);
}
.gh-msg p { margin: 0; }
.gh-msg-name { font-weight: 700; text-transform: uppercase; font-size: 12px; letter-spacing: .04em; color: var(--gh-gold); margin-right: 2px; }
.gh-msg--host { align-self: flex-start; }
.gh-msg--user { align-self: flex-end; text-align: right; }
.gh-msg--user .gh-msg-name { color: var(--gh-action); }
.gh-msg--error { color: var(--ui-danger, #ffb5a5); }
.gh-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.gh-typing { display: inline-flex; gap: 4px; padding: 6px 0; }
.gh-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px #000;
  animation: gh-dot 1s ease-in-out infinite;
}
.gh-typing span:nth-child(2) { animation-delay: .15s; }
.gh-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes gh-dot {
  0%, 100% { opacity: .35; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

/* Recommended games: mini library posters (gamePoster) */
.gh-recs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; text-shadow: none; }
.gh-recs::-webkit-scrollbar { display: none; }
.gh-rec {
  flex: none;
  display: grid;
  gap: 5px;
  width: 70px;
  padding: 0;
  background: none;
  color: #fff;
  text-align: left;
}
.gh-rec-art {
  width: 100%;
  border-radius: var(--gh-radius);
  background: var(--gh-panel);
  box-shadow: 0 3px 0 var(--gh-depth);
}
.gh-rec-title {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 1px 2px #000, 0 1px 6px rgb(0 0 0 / 80%);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gh-rec:hover .gh-rec-title { color: var(--gh-focus); }
.gh-rec[data-button-pressed] .gh-rec-art { box-shadow: 0 0 0 var(--gh-depth); }

/* Compose (overlaid) */
.gh-compose { pointer-events: auto; flex: none; padding: 6px 12px 12px; }
.gh-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 12px 10px;
  scrollbar-width: none;
}
/* Sideways rows over her stream (h-scroll.js): bleed to the panel edges, fade into the scrim. */
.gh-panel .hscroll { --hscroll-fade: rgb(0 0 0 / .6); }
.gh-compose > .hscroll { margin: 0 -12px; width: auto; }
.gh-msg:has(> .hscroll) { max-width: none; align-self: stretch; }
.gh-msg > .hscroll { margin: 8px -14px 0; width: auto; }
.gh-msg > .hscroll > .gh-recs { margin-top: 0; padding-inline: 14px; }
.gh-chips::-webkit-scrollbar { display: none; }
/* Answer choices replace the quick replies and wrap so every option is visible. */
.gh-chips.has-choices { flex-wrap: nowrap; } /* choices stay one sideways-scrolling row */
.gh-chips.has-choices > .gh-chip--default { display: none; }
.gh-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 13px;
  border-radius: var(--gh-pill);
  background: var(--gh-control);
  color: var(--gh-ink);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 3px 0 var(--gh-depth);
}
.gh-chip:hover { background: var(--gh-control-hover); color: var(--gh-focus); }
.gh-chip[data-button-pressed] { box-shadow: 0 0 0 var(--gh-depth); }
.gh-form { display: flex; gap: 8px; align-items: center; }
.gh-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--gh-radius);
  background: var(--gh-panel);
  color: var(--gh-ink);
  font: inherit;
  font-size: 16px; /* prevents iOS zoom on focus */
  font-weight: 700;
  box-shadow: 0 4px 0 var(--gh-depth);
}
.gh-input::placeholder { color: var(--gh-muted); font-weight: 400; }
.gh-input:focus { outline: 2px solid var(--gh-focus); outline-offset: 0; }
/* Primary action: the green /play connect pill */
.gh-send {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0; min-width: 46px; justify-content: center;
  border: 0;
  border-radius: var(--gh-pill);
  background: var(--gh-action);
  color: var(--gh-action-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--gh-action-depth);
}
.gh-send svg { width: 17px; height: 17px; fill: currentColor; }
.gh-send:hover { background: var(--gh-action-hover); }
.gh-send[data-button-pressed] { box-shadow: 0 1px 0 var(--gh-action-depth); }

/* ---------- Host picker (library-style panel) ---------- */
.gh-picker-backdrop {
  position: fixed;
  inset: 0;
  z-index: 47;
  background: transparent;
  transition: background-color 200ms ease;
}
.gh-layer.picker-open .gh-picker-backdrop { background: var(--gh-overlay); }
.gh-picker {
  position: fixed;
  z-index: 48;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--gh-panel);
  box-shadow: var(--gh-float);
  outline: none;
  transition: transform 240ms cubic-bezier(.22, 1, .36, 1), opacity 180ms ease;
}
.gh-layer[data-picker-mode="sheet"] .gh-picker {
  left: 0;
  right: 0;
  bottom: 0;
  margin-inline: auto;
  width: min(100%, 560px);
  max-height: min(88dvh, 780px);
  border-radius: var(--gh-panel-radius) var(--gh-panel-radius) 0 0;
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateY(100%);
}
.gh-layer[data-picker-mode="sheet"].picker-open .gh-picker { transform: none; }
.gh-layer[data-picker-mode="desktop"] .gh-picker {
  top: 50%;
  left: 50%;
  width: min(760px, calc(100vw - 48px));
  max-height: min(700px, calc(100dvh - 48px));
  border-radius: var(--gh-panel-radius);
  opacity: 0;
  transform: translate(-50%, -48%);
}
.gh-layer[data-picker-mode="desktop"].picker-open .gh-picker { opacity: 1; transform: translate(-50%, -50%); }
.gh-picker-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0 12px;
  padding: 12px 12px 8px 14px;
}
.gh-picker-title {
  margin: 2px 0 0;
  font-size: 19px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gh-ink);
  text-shadow: var(--ui-heading-shadow, 0 2px #0007);
}
.gh-picker-status { margin: 0; padding: 0 14px 6px; font-size: 13px; font-weight: 700; color: var(--gh-muted); }
.gh-picker-status:empty { display: none; }
.gh-picker-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 6px 12px 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.gh-layer[data-picker-mode="desktop"] .gh-picker-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); padding: 6px 14px 18px; }
.gh-host-card {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 0 0 10px;
  border-radius: var(--gh-panel-radius);
  background: var(--gh-control);
  color: var(--gh-ink);
  text-align: left;
  overflow: hidden;
  box-shadow: 0 4px 0 var(--gh-depth);
}
.gh-host-card:hover { background: var(--gh-control-hover); }
.gh-host-card[data-button-pressed] { box-shadow: 0 1px 0 var(--gh-depth); }
.gh-host-card.is-current { background: var(--gh-selected); color: var(--gh-selected-ink); box-shadow: 0 4px 0 var(--gh-action-depth); }
.gh-host-card.is-loading { opacity: .6; cursor: progress; }
.gh-host-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  background: var(--gh-bg);
  overflow: hidden;
}
.gh-host-media img,
.gh-host-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
}
.gh-host-preview { opacity: 0; transition: opacity 160ms linear; }
.gh-host-card.is-previewing .gh-host-preview { opacity: 1; }
.gh-host-current {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 9px;
  border-radius: var(--gh-pill);
  background: var(--gh-action);
  color: var(--gh-action-ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 2px 0 var(--gh-action-depth);
}
.gh-host-name { padding: 9px 10px 0; font-size: 15px; font-weight: 700; text-transform: uppercase; }
.gh-host-tagline { padding: 0 10px; font-size: 12px; line-height: 1.3; color: var(--gh-muted); }
.gh-host-card.is-current .gh-host-tagline { color: var(--gh-selected-ink); opacity: .8; }

/* ---------- Desktop sizing ---------- */
@media (min-width: 769px) and (hover: hover) and (pointer: fine) {
  .gh-root { --gh-size: 76px; top: var(--gh-top, 64px); left: var(--gh-left, 16px); }
  .gh-speech { max-width: 280px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .gh-live i,
  .gh-typing span { animation: none; }
  .gh-speech,
  .gh-panel,
  .gh-backdrop,
  .gh-picker,
  .gh-picker-backdrop,
  .gh-stream-layer,
  .gh-host-preview,
  #reel-layout { transition: none !important; }
  .gh-speech { transform: none; }
  .gh-layer[data-mode="desktop"] .gh-panel,
  .gh-layer[data-mode="sheet"] .gh-panel,
  .gh-layer[data-picker-mode="sheet"] .gh-picker { transform: none; }
  .gh-layer[data-picker-mode="desktop"] .gh-picker { transform: translate(-50%, -50%); }
  .gh-root.is-celebrating .gh-burst i,
  .gh-root.is-celebrating .gh-ring { animation: none; }
}

/* Brain follow-up suggestion: first quick-reply chip, green like /play's selected state. */
.gh-chip.gh-chip--follow { background: var(--gh-selected); color: var(--gh-selected-ink); box-shadow: 0 3px 0 var(--gh-action-depth); }
.gh-chip.gh-chip--follow[hidden] { display: none; }

/* Unread badge on the bubble (/play count-badge style: solid, bold, depth). */
.gh-unread {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: var(--gh-pill);
  background: var(--gh-action);
  color: var(--gh-action-ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
  box-shadow: 0 2px 0 var(--gh-action-depth);
  pointer-events: none;
}
.gh-unread[hidden] { display: none; }

/* Mobile keyboard: the sheet sits above the on-screen keyboard and shrinks to the visible viewport. */
.gh-layer[data-mode="sheet"] .gh-panel {
  bottom: var(--gh-kb, 0px);
  height: min(92dvh, 820px, calc(var(--gh-vvh, 100dvh) - 8px));
}
.gh-backdrop, .gh-picker-backdrop { touch-action: none; overscroll-behavior: contain; }
.gh-panel { overscroll-behavior: contain; }

/* ---------- chat action cards (guided onboarding; also used by home chat) ---------- */
.ga-actions { display: grid; gap: 8px; margin-top: 8px; max-width: min(340px, 100%); text-shadow: none; }
.ga-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  background: rgb(32 38 33 / 92%);
  box-shadow: 0 3px 0 #161d17;
  color: #f3f6f2;
  font-weight: 500;
}
.ga-card:has(> .ga-cta:only-child) { padding: 0; background: none; box-shadow: none; }
.ga-kicker { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #f2c749; }
.ga-note { margin: 0; font-size: 12px; line-height: 1.35; color: #a5b1a8; }
.ga-error { margin: 0; font-size: 12.5px; color: var(--ui-danger, #ffb5a5); }
.ga-cta {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 100px;
  background: #69ae55;
  color: #101810;
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 3px 0 #416e36;
}
.ga-cta:hover:not(:disabled) { background: #79bc64; }
.ga-cta[data-button-pressed] { box-shadow: 0 1px 0 #416e36; }
.ga-cta:disabled { opacity: .6; cursor: default; }
.ga-cta--soft { background: #303a32; color: #f3f6f2; box-shadow: 0 3px 0 #161d17; }
.ga-cta--soft:hover:not(:disabled) { background: #3e4b40; }
.ga-sid-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ga-sid {
  flex: 1 1 auto;
  min-width: 0;
  padding: 7px 10px;
  border-radius: 8px;
  background: #0a0d0b;
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  user-select: all;
}
.ga-btn {
  flex: none;
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: #303a32;
  color: #f3f6f2;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 0 #161d17;
}
.ga-btn:hover { background: #3e4b40; }
.ga-btn[data-button-pressed] { box-shadow: 0 0 0 #161d17; }
.ga-amounts { display: flex; flex-wrap: wrap; gap: 8px; }
.ga-amount.is-suggested { background: #f2c749; color: #101810; box-shadow: 0 3px 0 #9f8228; }
.ga-game { grid-template-columns: 64px minmax(0, 1fr); align-items: center; }
.ga-game-art .game-art { border-radius: 8px; }
.ga-game-body { display: grid; gap: 8px; min-width: 0; }
.ga-game-title { margin: 0; font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ga-game .ga-cta { min-height: 36px; padding: 0 14px; font-size: 12px; }
.gh-msg:has(.ga-actions), .gh-msg--card { max-width: 100%; }

/* ---------- GAMBIT logo menu (in-game top-left; home uses the same component) ---------- */
html[data-gambit-brand] #reel-browse { display: none !important; }
.gb-brand { position: relative; }
.gb-ingame {
  position: fixed;
  z-index: 46; /* above the docked host panel so its menu opens over her stream */
  top: calc(10px + env(safe-area-inset-top));
  left: max(10px, env(safe-area-inset-left));
}
body[data-gambit-lobby="open"] .gb-ingame { display: none; }
@media (min-width: 769px) and (hover: hover) and (pointer: fine) { .gb-ingame { top: 16px; left: 20px; } }
.gb-brand-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 10px 0 10px;
  border: 0;
  border-radius: 12px;
  background: #202621;
  color: #f3f6f2;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 3px 0 #161d17;
}
.gb-brand-btn:hover { background: #2a322b; }
.gb-brand-btn[data-button-pressed] { box-shadow: 0 0 0 #161d17; }
.gb-brand-btn:focus-visible { outline: 2px solid var(--ui-focus, #f3c851); outline-offset: 2px; }
.gb-emblem {
  width: 20px; height: 20px; background: #fff;
  -webkit-mask: url(/gambit/assets/gambit-bunny.svg) center / contain no-repeat;
  mask: url(/gambit/assets/gambit-bunny.svg) center / contain no-repeat;
}
.gb-wordmark {
  width: 78px; height: 13px; background: #f3f6f2;
  -webkit-mask: url(/gambit/assets/gambit-wordmark.svg) left center / contain no-repeat;
  mask: url(/gambit/assets/gambit-wordmark.svg) left center / contain no-repeat;
}
.gb-vip { color: var(--ui-gold, #f2c749); }
.gb-caret { width: 8px; height: 8px; margin-left: 2px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: .8; }
.gb-brand-btn[aria-expanded="true"] .gb-caret { transform: translateY(2px) rotate(225deg); }
/* Phones: bunny only. */
@media (max-width: 768px), (hover: none) {
  .gb-ingame .gb-wordmark, .gb-ingame .gb-vip { display: none; }
  .gb-ingame .gb-brand-btn { min-height: 34px; padding: 0 8px; gap: 6px; }
}
@media (max-width: 599px) {
  .gb-brand .gb-wordmark { display: none; }
}
/* Menu: /play's display-menu look (solid white panel, chunky uppercase items). */
.gb-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  left: 0;
  width: 248px;
  padding: 8px;
  display: grid;
  gap: 2px;
  border-radius: 10px;
  background: #fff;
  color: #262626;
  box-shadow: 0 16px 48px #0008;
}
.gb-menu[hidden] { display: none; }
.gb-item {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #262626;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
}
.gb-item:hover, .gb-item:focus-visible { color: #30683a; background: #eef3ec; outline: none; }
.gb-ico { display: inline-grid; width: 18px; height: 18px; flex: none; opacity: .82; }
.gb-ico svg { width: 18px; height: 18px; fill: currentColor; }

/* Desktop: home's persistent host panel owns the stream and logo in-game (lobby.js). */
.gh-root.is-delegated, .gb-ingame.is-delegated { display: none !important; }
html[data-gh-dock="lobby"] #reel-layout { margin-left: var(--gh-layout-left, 0px); width: calc(100vw - var(--gh-layout-left, 0px)); }
/* The game area's top edge lines up with the host panel (just under home's 68px header); the frame
   keeps its aspect inside the remaining space (desktop-stage.js re-fits on resize). */
html[data-gh-dock="lobby"] #reel-desktop-slots { margin-top: 68px; height: calc(100% - 68px - 20px); align-items: flex-start; }

/* ---------- recommendation blocks in chat (hero / duo / trio / row / stack / grid) ---------- */
.gr-block { margin-top: 10px; text-shadow: none; max-width: min(360px, 100%); }
.gr-inner { display: flex; gap: 10px; }
.gr-card {
  position: relative;
  display: grid;
  gap: 5px;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  animation: gr-in 360ms cubic-bezier(.22, 1, .36, 1) both;
  animation-delay: calc(var(--i, 0) * 70ms);
  transition: transform 180ms ease;
}
.gr-art { border-radius: 10px; background: #0a0d0b; box-shadow: 0 4px 0 rgb(0 0 0 / .45); overflow: hidden; }
.gr-title { font-size: 12px; font-weight: 700; line-height: 1.2; text-shadow: 0 1px 2px #000, 0 1px 8px rgb(0 0 0 / .8); overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.gr-card:hover { transform: translateY(-4px); }
.gr-card:focus-visible { outline: 2px solid var(--ui-focus, #f3c851); outline-offset: 3px; border-radius: 10px; }
.gr-play {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 100px;
  background: #69ae55;
  color: #101810;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 3px 0 #416e36;
}
/* Posters in chat stay small; a tap opens the enlarged view (.gr-pop). */
.gr-block { --gr-w: 76px; }
@media (min-width: 769px) and (hover: hover) and (pointer: fine) { .gr-block { --gr-w: 88px; } }
/* hero (one game): a small poster next to its title + Play */
.gr-hero .gr-card--hero { display: grid; grid-template-columns: calc(var(--gr-w) + 10px) minmax(0, 1fr); align-items: center; column-gap: 12px; cursor: default; }
@media (min-width: 769px) and (hover: hover) and (pointer: fine) { .gr-hero .gr-card--hero { grid-template-columns: 100px minmax(0, 1fr); } }
.gr-hero .gr-card--hero:hover { transform: none; }
.gr-poster { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 10px; transition: transform 180ms ease; }
.gr-poster:hover { transform: translateY(-3px); }
.gr-poster:focus-visible { outline: 2px solid var(--ui-focus, #f3c851); outline-offset: 3px; }
.gr-hero-side { display: grid; gap: 8px; justify-items: start; min-width: 0; }
.gr-hero .gr-title { font-size: 15px; -webkit-line-clamp: 2; }
.gr-play { border: 0; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.gr-play[data-button-pressed], .gr-play:active { box-shadow: 0 1px 0 #416e36; transform: translateY(2px); }
.gr-card:not(.gr-card--hero) { cursor: zoom-in; }
/* duo / trio: posters side by side with a little pop */
.gr-duo .gr-card, .gr-trio .gr-card { flex: 0 0 auto; }
.gr-duo .gr-card { width: calc(var(--gr-w) + 12px); }
.gr-trio .gr-card { width: var(--gr-w); }
.gr-duo .gr-card:nth-child(1), .gr-trio .gr-card:nth-child(1) { --tilt: -3deg; }
.gr-duo .gr-card:nth-child(2) { --tilt: 2.5deg; }
.gr-trio .gr-card:nth-child(2) { --tilt: 1.5deg; margin-top: 8px; }
.gr-trio .gr-card:nth-child(3) { --tilt: -1.5deg; }
.gr-duo .gr-card, .gr-trio .gr-card { transform: rotate(var(--tilt, 0deg)); }
.gr-duo .gr-card:hover, .gr-trio .gr-card:hover { transform: rotate(0deg) translateY(-6px) scale(1.04); }
/* row: horizontal strip (h-scroll) */
.gr-row { max-width: none; }
.gr-row .gr-inner { overflow-x: auto; scrollbar-width: none; padding: 4px 2px 6px; }
.gr-row .gr-card { flex: 0 0 calc(var(--gr-w) - 4px); }
.gr-row .gr-title, .gr-trio .gr-title, .gr-grid .gr-title { font-size: 11px; }
.gr-block .hscroll { --hscroll-fade: rgb(0 0 0 / .55); }
/* stack: fanned, overlapping; spreads out on hover/focus (or first tap on touch) */
.gr-stack .gr-inner { position: relative; height: calc(var(--gr-w) * 1.42 + 12px); }
.gr-stack .gr-card { position: absolute; left: 0; top: 0; width: var(--gr-w); transform-origin: 50% 100%; transform: translateX(calc(var(--i) * 26px)) rotate(calc((var(--i) - 1) * 6deg)); transition: transform 260ms cubic-bezier(.22, 1, .36, 1); z-index: calc(10 - var(--i)); }
.gr-stack .gr-title { opacity: 0; transition: opacity 200ms ease; }
.gr-stack:is(:hover, :focus-within, .is-spread) .gr-card { transform: translateX(calc(var(--i) * 120px)) rotate(0deg); }
.gr-stack:is(:hover, :focus-within, .is-spread) .gr-title { opacity: 1; }
.gr-stack:is(:hover, :focus-within, .is-spread) .gr-card:hover { transform: translateX(calc(var(--i) * 120px)) translateY(-6px); }
.gr-stack:is(:hover, :focus-within, .is-spread) .gr-inner { height: calc(var(--gr-w) * 1.42 + 40px); }
/* grid: compact 2 or 3 columns */
.gr-grid { max-width: calc(var(--gr-w) * 3 + 16px); }
.gr-grid .gr-inner { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.gr-grid .gr-title { font-size: 11px; }
/* Older blocks shrink to a compact row of small posters (tap to open it again). */
.gr-block.is-compact { margin-top: 6px; }
.gr-block.is-compact .gr-inner { display: flex; position: static; height: auto; gap: 6px; flex-wrap: nowrap; overflow: hidden; padding: 0; }
.gr-block.is-compact .gr-card { position: static; flex: 0 0 40px; width: 40px; transform: none; margin: 0; animation: none; display: block; }
.gr-block.is-compact .gr-title, .gr-block.is-compact .gr-play { display: none; }
.gr-block.is-compact .gr-art { border-radius: 6px; box-shadow: 0 2px 0 rgb(0 0 0 / .45); }
.gr-block.is-compact .hscroll-btn { display: none; }
@keyframes gr-in { from { opacity: 0; transform: translateY(12px) scale(.96) rotate(var(--tilt, 0deg)); } }
@media (prefers-reduced-motion: reduce) {
  .gr-card, .gr-stack .gr-card, .gr-stack .gr-title { animation: none !important; transition: none !important; }
  .gr-duo .gr-card, .gr-trio .gr-card, .gr-duo .gr-card:hover, .gr-trio .gr-card:hover, .gr-card:hover { transform: none; margin-top: 0; }
  .gr-stack .gr-card { transform: translateX(calc(var(--i) * 26px)); }
  .gr-stack:is(:hover, :focus-within, .is-spread) .gr-card { transform: translateX(calc(var(--i) * 120px)); }
}
.gh-msg:has(.gr-block), .gl-msg:has(.gr-block) { max-width: 100%; }


/* The host picker opens above home too (home's Change Host uses it). */
body[data-gambit-lobby="open"] .gh-layer, body[data-gambit-panel="lobby"] .gh-layer { z-index: 9500; }

/* MY BALANCE stays at the exact centre of the window while the layout is pushed right. */
html[data-gh-dock="open"] #reel-layout #reel-wallet { left: calc(50vw - var(--gh-dock-w) - 2 * var(--gh-dock-gap)); }
html[data-gh-dock="lobby"] #reel-layout #reel-wallet { left: calc(50vw - var(--gh-layout-left, 0px)); }

/* ---------- Choose your host: persona cards ---------- */
.gh-layer[data-picker-mode="desktop"] .gh-picker { width: min(1120px, calc(100vw - 48px)); max-height: min(860px, calc(100dvh - 48px)); }
.gh-layer[data-picker-mode="desktop"] .gh-picker-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; padding: 8px 16px 20px; }
.gh-picker-grid { grid-template-columns: minmax(0, 1fr); }
.gh-host-card { display: grid; grid-template-rows: auto 1fr; gap: 0; padding: 0; cursor: pointer; }
.gh-host-card.is-current { cursor: default; }
.gh-host-body { display: grid; align-content: start; gap: 7px; padding: 11px 12px 12px; min-width: 0; }
.gh-host-body .gh-host-name { margin: 0; padding: 0; font-size: 17px; }
.gh-host-vibe { margin: 0; font-size: 13px; font-weight: 500; line-height: 1.35; color: var(--gh-muted); }
.gh-host-card.is-current .gh-host-vibe { color: var(--gh-selected-ink); opacity: .85; }
.gh-host-traits { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; padding: 0; list-style: none; }
.gh-host-traits li { padding: 3px 9px; border-radius: 999px; background: var(--gh-bg); color: var(--gh-ink); font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.gh-host-sample { margin: 0; font-size: 13px; font-weight: 500; font-style: italic; line-height: 1.35; color: var(--gh-ink); }
.gh-host-archetype {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ui-gold, #f2c749);
  color: #101810;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  box-shadow: 0 2px 0 #9f8228;
}
.gh-host-current { left: auto; right: 8px; }
.gh-host-cta {
  justify-self: stretch;
  min-height: 40px;
  margin-top: 4px;
  padding: 0 14px;
  border: 0;
  border-radius: 100px;
  background: var(--gh-action);
  color: var(--gh-action-ink);
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--gh-action-depth);
}
.gh-host-cta:hover:not(:disabled) { background: var(--ui-action-hover, #79bc64); }
.gh-host-cta[data-button-pressed] { box-shadow: 0 1px 0 var(--gh-action-depth); }
.gh-host-cta:disabled { background: var(--gh-bg); color: var(--gh-muted); box-shadow: none; cursor: default; }
/* Phones: one column, poster beside the details. */
.gh-layer[data-picker-mode="sheet"] .gh-host-card { grid-template-columns: 118px minmax(0, 1fr); grid-template-rows: none; }
.gh-layer[data-picker-mode="sheet"] .gh-host-media { aspect-ratio: auto; min-height: 100%; }
.gh-layer[data-picker-mode="sheet"] .gh-host-archetype { left: 6px; right: 6px; bottom: 6px; text-align: center; font-size: 9.5px; padding: 3px 4px; }
.gh-layer[data-picker-mode="sheet"] .gh-picker { width: 100%; max-height: 92dvh; }

/* Stack spreads within the chat's width (never past the video's edge). */
.gr-stack .gr-inner { container-type: inline-size; }
.gr-stack:is(:hover, :focus-within, .is-spread) .gr-card,
.gr-stack:is(:hover, :focus-within, .is-spread) .gr-card:hover {
  transform: translateX(calc(var(--i) * min(var(--gr-w) + 8px, (100cqw - var(--gr-w)) / max(1, var(--n) - 1)))) rotate(0deg);
}
@media (prefers-reduced-motion: reduce) {
  .gr-stack:is(:hover, :focus-within, .is-spread) .gr-card { transform: translateX(calc(var(--i) * min(var(--gr-w) + 8px, (100cqw - var(--gr-w)) / max(1, var(--n) - 1)))); }
}

/* Support actions: a compact row of /play buttons with icons. */
.ga-support-row { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; background: none; box-shadow: none; }
.ga-support { gap: 8px; padding: 0 14px 0 11px; text-transform: none; font-size: 13px; }
.ga-ico { display: inline-grid; width: 18px; height: 18px; flex: none; }
.ga-ico svg { width: 18px; height: 18px; fill: currentColor; }

/* Timestamps show only when a message is clicked or tapped (toggle), and messages never overflow the video. */
.gh-msg, .gl-msg { min-width: 0; overflow-wrap: anywhere; }
:is(.gh-msg, .gl-msg) > p[data-time] { cursor: pointer; }
:is(.gh-msg, .gl-msg) > p[data-time].show-time::after {
  content: attr(data-time);
  margin-left: 6px;
  font-size: 11px;
  font-weight: 500;
  color: rgb(255 255 255 / .7);
}

/* "Latest" button when the reader has scrolled up in the chat. */
.gc-latest {
  align-self: center;
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  margin: -40px 0 8px;
  padding: 0 12px 0 8px;
  border: 0;
  border-radius: 100px;
  background: #303a32;
  color: #f3f6f2;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 3px 0 #161d17;
  text-shadow: none;
  pointer-events: auto;
}
.gc-latest[hidden] { display: none; }
.gc-latest[data-button-pressed] { box-shadow: 0 0 0 #161d17; }
.gc-latest-ico { display: inline-grid; width: 18px; height: 18px; }
.gc-latest-ico svg { width: 18px; height: 18px; fill: currentColor; }
/* Equal-height persona cards; the CTA sits on the bottom edge of each card. */
.gh-picker-grid > [role="listitem"] { display: grid; }
.gh-host-body { display: flex; flex-direction: column; }
.gh-host-body .gh-host-cta { margin-top: auto; }
.gh-host-body > :nth-last-child(2) { margin-bottom: 6px; }
.gh-host-traits li::first-letter { text-transform: uppercase; }

/* Reset chip: smaller, /play gold, returns to the main suggestions. */
.gh-chips .gh-chip--reset {
  flex: none; min-height: 28px; padding: 0 10px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  background: var(--ui-gold, #f2c749); color: var(--ui-gold-ink, #000); box-shadow: 0 3px 0 #9f8228;
}
.gh-chips .gh-chip--reset:hover { background: var(--ui-gold-hover, #f3c851); }
.gh-chips .gh-chip--reset[hidden] { display: none; }

/* ---------- chat history: slim visible scrollbar, touch indicator, desktop fade ---------- */
.gh-log { scrollbar-width: thin; scrollbar-color: rgb(255 255 255 / .72) rgb(0 0 0 / .38); }
@supports selector(::-webkit-scrollbar) { .gh-log { scrollbar-width: auto; scrollbar-color: auto; } }
.gh-log::-webkit-scrollbar { width: 6px; }
.gh-log::-webkit-scrollbar-track { background: rgb(0 0 0 / .38); border-radius: 3px; margin-top: 40px; }
.gh-log::-webkit-scrollbar-thumb { background: rgb(255 255 255 / .72); border-radius: 3px; }
.gh-log::-webkit-scrollbar-thumb:hover { background: #fff; }
/* Phones / overlay scrollbars: a thin always-visible track + thumb beside the log (host.js). */
.gc-scroll-ind {
  position: absolute;
  z-index: 4;
  width: 3px;
  border-radius: 2px;
  background: rgb(0 0 0 / .38);
  pointer-events: none;
}
.gc-scroll-ind[hidden] { display: none; }
.gc-scroll-ind > i { display: block; width: 100%; border-radius: 2px; background: rgb(255 255 255 / .72); }
/* Desktop: lines dim while the pointer is away from her panel (latest stays almost full). */
:is(.gh-log, .gl-log) > * { transition: opacity 200ms ease; }
:is(.gh-log, .gl-log).gc-away > * { opacity: var(--gc-o, 1); }
@media (prefers-reduced-motion: reduce) { :is(.gh-log, .gl-log) > * { transition: none; } }
@media (hover: none), (pointer: coarse) { :is(.gh-log, .gl-log).gc-away > * { opacity: 1; } }

/* Phones: no LIVE badge on the in-game bubble (the chat card keeps it); smaller name pill. */
@media (max-width: 959px), (pointer: coarse) {
  .gh-bubble .gh-live:not(.gh-live--panel) { display: none; }
  .gh-bubble-name { margin-top: 6px; min-height: 22px; padding: 0 8px; font-size: 9px; letter-spacing: .05em; }
}

/* Change Host popup: same white box as /play's My Balance popup. */
.gh-picker {
  color-scheme: light;
  --gh-panel: #fff;
  --gh-ink: #192119;
  --gh-muted: #526056;
  --gh-control: #eff2ed;
  --gh-control-hover: #e4eae2;
  --gh-depth: #d3dcd0;
  --gh-bg: #e9eee7;
  --gh-selected: #e3f1dc;
  --gh-selected-ink: #1f3a1d;
  border: 1px solid #dfe6dc;
  box-shadow: 0 24px 80px #0009;
}
.gh-layer[data-picker-mode="desktop"] .gh-picker { border-radius: 20px; }
.gh-layer[data-picker-mode="sheet"] .gh-picker { border-radius: 20px 20px 0 0; border-bottom: 0; }
.gh-picker .gh-picker-title { text-shadow: none; }
.gh-layer.picker-open .gh-picker-backdrop { background: #030604ba; backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); cursor: pointer; }
.gh-picker .gh-host-card { box-shadow: 0 4px 0 var(--gh-depth); }
.gh-picker .gh-host-card.is-current { box-shadow: 0 4px 0 #9fd08f; }

/* Phones: the in-game chat sheet reaches up to just under the top menu (logo / MY BALANCE). */
.gh-layer[data-mode="sheet"] .gh-panel {
  height: calc(var(--gh-vvh, 100dvh) - var(--gh-topbar, calc(env(safe-area-inset-top) + 56px)));
  max-height: none;
}

/* Touch: tap her stream to semi-hide the chat log (only the latest message, at half strength). */
:is(.gh-log, .gl-log) > * { transition: opacity 220ms ease; }
:is(.gh-log, .gl-log).gc-dim > * { opacity: 0 !important; pointer-events: none; }
:is(.gh-log, .gl-log).gc-dim > :not(.gh-typing, .gl-typing):nth-last-child(1 of :not(.gh-typing, .gl-typing, [hidden])) { opacity: .5 !important; }
:is(.gh-log, .gl-log).gc-dim { scrollbar-width: none; }
@media (prefers-reduced-motion: reduce) { :is(.gh-log, .gl-log) > * { transition: none; } }

/* ---------- dissolving chat lines (createDissolver) ---------- */
:is(.gh-log, .gl-log) > .gc-dissolving { opacity: 0 !important; transition: opacity 300ms ease, height 380ms cubic-bezier(.22, 1, .36, 1), margin 380ms cubic-bezier(.22, 1, .36, 1); pointer-events: none; }
:is(.gh-log, .gl-log) > .gc-dissolving.gc-collapsing { height: 0 !important; margin-top: -7px; }
@media (prefers-reduced-motion: reduce) { :is(.gh-log, .gl-log) > .gc-dissolving { transition: none; } }

/* ---------- enlarged poster: white /play popup (My Balance / Change Host style) ---------- */
.gr-pop {
  /* Same light control faces as /play's wallet dialog (reel-button inside). */
  --reel-ink: #192119;
  --reel-muted: #526056;
  --reel-green: #397342;
  --reel-control: #eff2ed;
  --reel-control-hover: #e4eae2;
  --reel-depth: #d3dcd0;
  width: min(340px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 16px;
  border: 1px solid #dfe6dc;
  border-radius: 20px;
  background: #fff;
  color: #192119;
  color-scheme: light;
  font-family: var(--font-ui, inherit);
  box-shadow: 0 24px 80px #0009;
  overflow: auto;
}
.gr-pop[open] { display: grid; gap: 12px; animation: gr-pop-in 220ms cubic-bezier(.22, 1, .36, 1); }
.gr-pop.is-reduced[open] { animation: none; }
.gr-pop::backdrop { background: #030604ba; backdrop-filter: blur(7px); cursor: pointer; }
.gr-pop-head { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.gr-pop-title { margin: 4px 0 0; font-size: 20px; line-height: 1.15; font-weight: 700; text-transform: uppercase; }
.gr-pop-close { flex: none; display: grid; place-items: center; width: 38px; height: 38px; min-height: 38px; padding: 0; }
.gr-pop-close svg { width: 22px; height: 22px; fill: currentColor; }
.gr-pop-art { width: min(220px, 70%); justify-self: center; border-radius: 14px; overflow: hidden; box-shadow: 0 5px 0 #d3dcd0; }
.gr-pop-stats { margin: 0; text-align: center; font-size: 13px; font-weight: 700; color: #526056; }
.gr-pop-play {
  min-height: 48px;
  border: 0;
  border-radius: 100px;
  background: #69ae55;
  color: #101810;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 0 #416e36;
}
.gr-pop-play:hover { background: #74b960; }
.gr-pop-play:active { box-shadow: 0 1px 0 #416e36; transform: translateY(3px); }
.gr-pop-play:focus-visible, .gr-pop-close:focus-visible { outline: 2px solid #397342; outline-offset: 2px; }
@keyframes gr-pop-in { from { opacity: 0; transform: scale(.94); } }
@media (prefers-reduced-motion: reduce) { .gr-pop[open] { animation: none; } }

/* ---------- Settings → Logs tab (settings.js) ---------- */
.reel-set-tabs:has([data-set-tab="logs"]) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.gambit-logs-host { min-width: 0; max-width: 60%; padding: 5px 8px; border: 1px solid #e1e8de; border-radius: 9px; background: #f1f4ef; color: #192119; font: inherit; font-size: 12px; font-weight: 700; }
.gambit-logs-list { max-height: min(360px, 52dvh); }
.gambit-log-row { gap: 3px; }
.gambit-log-row .reel-set-row-top { justify-content: flex-start; }
.gambit-log-who { font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #8a6a12; }
.gambit-log-row--user .gambit-log-who { color: #246830; }
.gambit-log-text { margin: 0; font-size: 12.5px; line-height: 1.4; color: #192119; overflow-wrap: anywhere; }
.gambit-log-recs { margin: 0; font-size: 11.5px; color: #526056; }
.gambit-log-row.is-dissolved { background: #fbfcfa; }
.gambit-log-row.is-dissolved .gambit-log-text { color: #526056; }
.gambit-log-tag { padding: 1px 6px; border-radius: 6px; background: #eef1ec; color: #5c6b60; font-size: 9.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.gambit-logs-confirm { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 12px; background: #fff6f4; border: 1px solid #f1d6d0; font-size: 12.5px; font-weight: 700; color: #6d2b20; }
.gambit-logs-confirm[hidden] { display: none; }
.gambit-logs-confirm div { display: flex; gap: 6px; }
.reel-copy-btn.gambit-logs-danger { background: #c9473a; color: #fff; }

/* Stack: give the fan a real width (cards are absolutely placed) so it spreads without overlapping. */
:is(.gh-msg, .gl-msg):has(.gr-stack:not(.is-compact)) { align-self: stretch; }
.gr-stack:not(.is-compact) { width: min(100%, calc((var(--gr-w) + 8px) * var(--n))); }
.reel-copy-btn.gambit-logs-danger { border-color: #a8382d; }
#reel-set-panel-logs .reel-set-sublabel { white-space: nowrap; }

/* One background colour site-wide (matches the page and the game area). */
.gh-layer[data-mode="desktop"] .gh-panel { background: #111; }

/* Desktop: "VIP" as a tiny gold badge tucked under the GAMBIT wordmark. */
@media (min-width: 769px) and (hover: hover) {
  .gb-brand-btn { position: relative; }
  .gb-brand-btn .gb-vip {
    position: absolute;
    left: calc(50% + 4px);
    bottom: -7px;
    transform: translateX(-50%);
    padding: 1px 6px;
    border-radius: 100px;
    background: var(--ui-gold, #f2c749);
    color: #101810;
    font-size: 8px;
    line-height: 1.3;
    letter-spacing: .14em;
    box-shadow: 0 2px 0 #9f8228;
    pointer-events: none;
  }
}

/* Chat posters: always tiny thumbnails in one wrapping row (home and in-game); a click or tap opens the
   enlarged view (.gr-pop) with Play. Overrides the duo/trio/stack/row layouts above. */
.gr-block { --gr-w: 44px; margin-top: 6px; max-width: 100%; }
.gr-block:not(.gr-hero) .gr-inner { display: flex; flex-wrap: wrap; gap: 6px; position: static; height: auto; overflow: visible; padding: 0; }
.gr-block:not(.gr-hero) .gr-card,
.gr-block:not(.gr-hero) .gr-card:hover { position: static; flex: 0 0 var(--gr-w); width: var(--gr-w); margin: 0; transform: none; animation: none; }
.gr-block:not(.gr-hero) .gr-card:hover .gr-art { box-shadow: 0 2px 0 rgb(0 0 0 / .45), 0 0 0 2px rgb(255 255 255 / .5); }
.gr-block:not(.gr-hero) :is(.gr-title, .gr-play) { display: none; }
.gr-block .gr-art { border-radius: 6px; box-shadow: 0 2px 0 rgb(0 0 0 / .45); }
.gr-block .hscroll-btn { display: none; }
.gr-hero .gr-card--hero { grid-template-columns: 54px minmax(0, 1fr); column-gap: 10px; }
@media (min-width: 769px) and (hover: hover) and (pointer: fine) {
  .gr-block { --gr-w: 48px; }
  .gr-hero .gr-card--hero { grid-template-columns: 58px minmax(0, 1fr); }
}

/* Phones: a small ring counts down on a chat line before it dissolves (host.js createDissolver). */
:is(.gh-log, .gl-log) > .gc-counting { position: relative; padding-right: 22px; }
.gc-countdown {
  position: absolute; right: 0; bottom: 2px; /* the bottom stays in view when the top is pushed out */
  width: 16px; height: 16px;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgb(0 0 0 / 70%));
  animation: gc-cd-in 240ms ease both;
}
.gc-countdown svg { display: block; width: 100%; height: 100%; transform: rotate(-90deg); }
.gc-countdown circle { fill: none; stroke-width: 2.6; }
.gc-cd-track { stroke: rgb(255 255 255 / 22%); }
.gc-cd-arc { stroke: var(--ui-gold, #f3c851); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; animation: gc-cd var(--gc-cd, 9000ms) linear forwards; }
.gc-counting > :not(.gc-countdown) { transition: opacity 600ms ease; }
@keyframes gc-cd { to { stroke-dashoffset: 100; } }
@keyframes gc-cd-in { from { opacity: 0; transform: scale(.6); } }

/* Demo Play coins: the two balances at the top of My Balance (gambit-coins.js), and the invite card. */
.gc-coins-block { margin: 10px 0 4px; padding: 10px 12px; border-radius: 12px; background: rgb(0 0 0 / 5%); display: grid; gap: 6px; }
.gc-coins-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 600; }
.gc-coins-name { opacity: .75; font-weight: 500; }
.gc-coins-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 6px; border-radius: 999px; background: #ffe28a; color: #3a2a00; font-weight: 800; font-size: 13px; line-height: 1.2; }
.gc-coins-badge i { width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff6c9, #f3c851 55%, #c9961d); box-shadow: inset 0 0 0 1.5px #b8860b; }
.gc-coins-badge.is-bump { animation: gc-bump 600ms cubic-bezier(.22, 1, .36, 1); }
@keyframes gc-bump { 30% { transform: scale(1.18); } }
.gc-coins-usdc { font-variant-numeric: tabular-nums; }
.gc-coins-hint { margin: 2px 0 0; font-size: 12px; opacity: .6; }
.ga-invite .ga-invite-link { display: block; margin: 4px 0 8px; font-size: 12px; opacity: .85; overflow-wrap: anywhere; }
/* My Balance: the USDC Balance row above replaces the wallet's own "Balance: $ 0.00" row (and its card when empty). */
#reel-wallet-dialog:has(.gc-coins-block) .reel-balance-row--deposited { display: none; }
#reel-wallet-dialog:has(.gc-coins-block) .reel-balances-card:not(:has(.reel-balance-row:not([hidden]):not(.reel-balance-row--deposited))) { display: none; }
/* My Balance: a small USDC badge under REAL PLAY. */
#reel-mode-toggle .reel-mode-opt { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
#reel-mode-toggle .reel-mode-opt--real::after {
  content: "USDC"; display: block; padding: 1px 6px; border-radius: 999px;
  background: #2775ca; color: #fff; font-size: 9px; font-weight: 800; letter-spacing: .08em; line-height: 1.4;
}
/* My Balance: Deposit / Withdraw only in Real Play (or when the player opened the cashier on purpose: gambit-coins.js). */
#reel-wallet-dialog:not([data-gc-cashier]):has(#reel-mode-toggle:not([data-mode="real"])) #reel-cashier { display: none; }
/* My Balance: a bit more room above the Demo / Real Play switch. */
#reel-wallet-dialog .gc-coins-block ~ #reel-mode-toggle, #reel-wallet-dialog .gc-coins-block ~ * #reel-mode-toggle { margin-top: 10px; }

/* My Balance values: plain text, demo with a heart, USDC with the USDC mark. */
.gc-coins-val { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.gc-coins-val.is-bump { animation: gc-bump 600ms cubic-bezier(.22, 1, .36, 1); }
#reel-wallet-dialog .gc-coins-val .gc-usdc-icon { width: 17.3px; height: 17.3px; min-width: 0; flex: none; margin: 0; padding: 0; }

/* Demo Coins (i) note and the line between Demo Coins and USDC Balance. */
.gc-coins-info { display: inline-grid; place-items: center; width: 15px; height: 15px; margin-left: 6px; padding: 0; border: 1.5px solid currentColor; border-radius: 50%; background: none; color: inherit; font: italic 700 10px/1 Georgia, serif; cursor: pointer; vertical-align: 1px; opacity: .8; }
.gc-coins-info[aria-expanded="true"] { opacity: 1; background: rgb(0 0 0 / 8%); }
.gc-coins-hint[hidden] { display: none; }
.gc-coins-hint { margin: -2px 0 0; padding: 6px 8px; border-radius: 8px; background: #fff; box-shadow: 0 1px 4px rgb(0 0 0 / 12%); opacity: 1; color: #3d4a3f; }
.gc-coins-row--usdc { border-top: 1px solid rgb(0 0 0 / 12%); padding-top: 7px; }

/* Log out dropdown (Alex, 5 Dec 2026): regular-weight warning; Session ID in its own field with a full-width Copy ID below. */
#reel-disconnect-confirm #reel-disconnect-prompt { font-weight: 400; }
#reel-disconnect-confirm .reel-logout-sid-box:not([hidden]) {
  display: flex; flex-direction: column; align-items: stretch; gap: 6px;
  padding: 0; background: none; border: 0; border-radius: 0;
}
#reel-disconnect-confirm .reel-logout-sid-box code {
  display: block; text-align: center; padding: 8px 9px; border-radius: 9px;
  background: #f5f7f4; border: 1px solid #d5e0d2;
}
#reel-disconnect-confirm #reel-logout-sid-copy { width: 100%; box-sizing: border-box; justify-content: center; text-align: center; }

/* Demo Coins icon (red coin with a white heart), sized like the USDC icon. */
.gc-demo-icon { display: inline-block; width: 1em; height: 1em; flex: none; vertical-align: -0.14em; margin-right: 4px; }
#reel-wallet-dialog .gc-coins-val .gc-demo-icon { width: 17.3px; height: 17.3px; min-width: 0; margin: 0; padding: 0; }
#reel-wallet .reel-connect-label :is(.gc-demo-icon, .gc-usdc-icon) { display: inline-block; width: 1.21em; height: 1.21em; vertical-align: -0.17em; margin: 0 0 0 4px; }
.gl-balance-label :is(.gc-demo-icon, .gc-usdc-icon) { display: inline-block; width: 1.21em; height: 1.21em; vertical-align: -0.17em; margin: 0 0 0 4px; }
/* My Balance: the coin icons sit to the right of the amounts. */
#reel-wallet-dialog .gc-coins-val > svg { order: 2; }

/* Logout dropdown: a fixed layer under its button (placed by gambit-coins.js), so My Balance never scrolls for it. */
#reel-disconnect-confirm { position: fixed; right: auto; z-index: 60; max-height: none; }
/* My Balance rows: the whole row is a button; USDC opens a small menu layer. */
.gc-coins-row--demo, .gc-coins-row--usdc { cursor: pointer; border-radius: 10px; }
.gc-coins-row--demo:hover, .gc-coins-row--usdc:hover, .gc-coins-row--demo:focus-visible, .gc-coins-row--usdc:focus-visible { background: rgb(0 0 0 / 4%); outline: none; }
.gc-usdc-menu { position: fixed; z-index: 60; min-width: 190px; padding: 6px; display: grid; gap: 2px;
  background: #fff; border: 1px solid #dfe6dc; border-radius: 12px; box-shadow: 0 14px 36px rgb(0 0 0 / 22%); }
.gc-usdc-menu button { all: unset; box-sizing: border-box; display: block; width: 100%; padding: 10px 12px; border-radius: 8px;
  font: 600 14px/1.2 var(--font-ui, inherit); color: #192119; cursor: pointer; }
.gc-usdc-menu button:hover, .gc-usdc-menu button:focus-visible { background: #eff2ed; }
/* Settings: no balances above the Settings screen (Alex). */
#reel-wallet-dialog:has(#reel-wallet-settings-view:not([hidden])) .gc-coins-block { display: none; }
/* Settings > Game: Demo Play / Real Play switch with its one-line hint. */
.gambit-set-mode-wrap { display: grid; gap: 6px; margin-bottom: 12px; }
.gambit-set-mode-hint { text-align: center; font-size: 12px; opacity: .65; }
#gambit-set-mode .reel-mode-opt { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
#gambit-set-mode .reel-mode-opt--real::after {
  content: "USDC"; display: block; padding: 1px 6px; border-radius: 999px;
  background: #2775ca; color: #fff; font-size: 9px; font-weight: 800; letter-spacing: .08em; line-height: 1.4;
}
