/* $BOUNTY — watch page: streaming layout (rail · player · chat), Vice palette */
:root {
  --top-h: 54px;
  --rail-w: 248px;
  --chat-w: 344px;
  --panel: #120a20;
  --panel-2: #1a1029;
  --panel-3: #241636;
  --hair: rgba(255, 220, 240, 0.08);
}

body.watch { background: #0a0512; height: 100vh; overflow: hidden; }
body.watch::after { opacity: 0.05; }

/* ---------- top bar ---------- */
.top {
  position: relative; z-index: 20;
  height: var(--top-h);
  display: flex; align-items: center; gap: 22px;
  padding: 0 16px;
  background: var(--panel);
  border-bottom: 1px solid var(--hair);
  box-shadow: 0 1px 0 #000;
}
.top__brand { font-size: 30px; flex: none; }
.top__nav { display: flex; gap: 2px; }
.top__nav a {
  display: inline-flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 12px; border-radius: 4px;
  font: 700 17px/1 var(--f-ui); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2);
  transition: background var(--t-fast), color var(--t-fast);
}
.top__nav a:hover { background: var(--panel-3); color: #fff; }
.top__nav a.on { color: #fff; box-shadow: inset 0 -3px 0 var(--pink); border-radius: 4px 4px 0 0; }
.top__search {
  flex: 1; max-width: 380px; margin: 0 auto;
  display: flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 12px; border-radius: 6px;
  background: #07030d; box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--text-3);
  transition: box-shadow var(--t-fast);
}
.top__search:focus-within { box-shadow: inset 0 0 0 2px var(--pink); }
.top__search svg { width: 15px; height: 15px; flex: none; }
.top__search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: #fff; font: 500 14px var(--f-body); }
.top__right { display: flex; align-items: center; gap: 12px; flex: none; }

.resp { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 4px; background: var(--panel-3); font: 700 15px/1 var(--f-mono); color: var(--sun); }
.resp--sm { height: 26px; font-size: 13px; background: none; padding: 0; }
.resp__ico {
  width: 14px; height: 14px; flex: none; background: var(--sun);
  clip-path: polygon(50% 0, 63% 33%, 100% 36%, 72% 59%, 81% 96%, 50% 76%, 19% 96%, 28% 59%, 0 36%, 37% 33%);
}

/* ---------- shell ---------- */
.shell {
  display: grid;
  grid-template-columns: var(--rail-w) minmax(0, 1fr) var(--chat-w);
  height: calc(100vh - var(--top-h));
}
.shell.folded { --rail-w: 58px; }

/* ---------- rail ---------- */
.rail { background: var(--panel); border-right: 1px solid var(--hair); overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; }
.rail__h { display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 10px 0 14px; }
.rail__h--2 { margin-top: 10px; border-top: 1px solid var(--hair); }
.rail__fold { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 4px; background: none; color: var(--text-2); }
.rail__fold:hover { background: var(--panel-3); color: #fff; }
.rail__fold svg { width: 15px; height: 15px; transition: transform var(--t-med) var(--ease-out); }
.folded .rail__fold svg { transform: rotate(180deg); }
.rail__list { list-style: none; margin: 0; padding: 0 6px; }
.ch {
  position: relative;
  display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px;
  width: 100%; padding: 6px 8px; border: 0; border-radius: 6px;
  background: none; text-align: left;
  transition: background var(--t-fast);
}
.ch:hover { background: var(--panel-3); }
.ch.on { background: var(--panel-2); box-shadow: inset 3px 0 0 var(--pink); }
.ch__name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 14px/1.2 var(--f-body); color: #fff; }
.ch__sub { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 12.5px/1.3 var(--f-body); color: var(--text-3); }
.ch__v { display: inline-flex; align-items: center; gap: 5px; font: 600 12.5px/1 var(--f-mono); color: var(--text-2); }
.ch__v::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.ch__r { font: 700 13px/1 var(--f-mono); color: var(--cash); }
.folded .rail__h .label, .folded .ch__txt, .folded .ch__v, .folded .ch__r, .folded .rail__h--2 { display: none; }
.folded .rail__h { justify-content: center; padding: 0; }
.folded .ch { grid-template-columns: 30px; justify-content: center; padding: 6px 0; }

.av { position: relative; display: block; width: 30px; height: 30px; border-radius: 50%; flex: none; border: 2px solid #000; }
.av--live { box-shadow: 0 0 0 2px var(--pink); }

/* ---------- stage ---------- */
.stage { overflow-y: auto; scrollbar-width: thin; }
.player { position: relative; aspect-ratio: 16 / 9; max-height: calc(100vh - var(--top-h) - 120px); width: 100%; margin: 0 auto; overflow: hidden; background: #000; container-type: inline-size; }
.player__scene { position: absolute; inset: -3%; animation: drift 38s var(--ease-lock) infinite alternate; }
.player__scene svg { width: 100%; height: 100%; }
.player__scene .sun { animation: sunpulse 6s ease-in-out infinite; transform-origin: 800px 470px; }
@keyframes drift { 0% { transform: scale(1) translate(0, 0); } 100% { transform: scale(1.06) translate(-1.5%, 1%); } }
@keyframes sunpulse { 50% { opacity: 0.86; } }
.player__vig { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(0,0,0,.55)), repeating-linear-gradient(0deg, rgba(0,0,0,.08) 0 1px, transparent 1px 3px); }
.player.swap .player__scene { animation: swapin 700ms var(--ease-out); }
@keyframes swapin { 0% { filter: brightness(2.4) saturate(0); transform: scale(1.08); } 100% { filter: none; } }

/* overlay = what the streamer's browser source draws */
.ovl { position: absolute; z-index: 2; }
.ovl--stars { top: 3.4cqw; right: 3cqw; }
.ovl--stars .stars i { width: 3cqw; height: 3cqw; min-width: 18px; min-height: 18px; }
.ovl--cash { top: 7.4cqw; right: 3cqw; font-size: max(22px, 4.2cqw); }
.ovl--card {
  left: 2.4cqw; bottom: 2.4cqw;
  width: max(220px, 27cqw);
  padding: 1.1cqw 1.3cqw 1.2cqw;
  background: rgba(0,0,0,.78);
  border-left: 4px solid var(--pink);
  box-shadow: 4px 4px 0 #000;
}
.ovl__top { display: flex; justify-content: space-between; align-items: center; font: 700 max(11px, 1.1cqw)/1 var(--f-ui); letter-spacing: 0.12em; text-transform: uppercase; }
.ovl__id { color: var(--sun); }
.ovl__tick { padding: 3px 5px; background: var(--pink); color: #fff; }
.ovl__title { margin: 0.7cqw 0 0.6cqw; font: 900 max(17px, 2.3cqw)/0.95 var(--f-gta); color: #fff; -webkit-text-stroke: 0.04em #000; paint-order: stroke fill; }
.ovl__row { display: flex; justify-content: space-between; align-items: flex-end; }
.ovl__timer { font: 700 max(16px, 2cqw)/1 var(--f-mono); color: #fff; }
.ovl__reward { text-align: right; }
.ovl__reward small { display: block; font: 700 max(9px, 0.9cqw)/1 var(--f-ui); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.ovl__reward b { font: 900 max(18px, 2.4cqw)/1 var(--f-gta); color: var(--cash); -webkit-text-stroke: 0.04em #000; paint-order: stroke fill; }
.ovl__bar { height: 4px; margin-top: 0.8cqw; background: rgba(255,255,255,.15); }
.ovl__bar i { display: block; height: 100%; width: 0; background: var(--vice); transition: width 1s linear; }
.ovl--obj { left: 50%; bottom: 16cqw; transform: translateX(-50%); width: 80%; text-align: center; font-size: max(14px, 1.9cqw); opacity: 0; transition: opacity 500ms; }
.ovl--obj.on { opacity: 1; }

.pbadge { position: absolute; z-index: 3; top: 12px; left: 12px; display: flex; align-items: center; gap: 6px; font: 700 13px/1 var(--f-ui); letter-spacing: 0.06em; text-transform: uppercase; }
.pbadge > span { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border-radius: 3px; background: rgba(0,0,0,.65); color: #fff; }
.pbadge__live { background: var(--red) !important; }
.pctl {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 4px; padding: 30px 10px 8px;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
  opacity: 0; transform: translateY(6px);
  transition: opacity var(--t-med), transform var(--t-med) var(--ease-out);
}
.player:hover .pctl, .player:focus-within .pctl { opacity: 1; transform: none; }
.pctl button { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 4px; background: none; color: #fff; }
.pctl button:hover { background: rgba(255,255,255,.14); }
.pctl svg { width: 20px; height: 20px; }
.pctl__sp { flex: 1; }
.pctl__q { font: 600 12px/1 var(--f-mono); color: var(--text-2); margin-right: 6px; }
.shell.theatre { grid-template-columns: 0 minmax(0, 1fr) var(--chat-w); }
.shell.theatre .rail { visibility: hidden; }
.shell.theatre .player { max-height: calc(100vh - var(--top-h)); }

/* ---------- channel row ---------- */
.chan { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 16px 20px 14px; }
.chan__av .av { width: 64px; height: 64px; border-width: 3px; box-shadow: 0 0 0 3px var(--pink); }
.chan__av { position: relative; }
.chan__av::after { content: "Live"; position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%); padding: 2px 5px; border-radius: 3px; background: var(--red); font: 700 11px/1 var(--f-ui); letter-spacing: 0.1em; text-transform: uppercase; color: #fff; }
.chan__name { display: inline-flex; align-items: center; gap: 8px; color: #fff; transition: color var(--t-fast); }
.chan__name h1 { margin: 0; font: 700 20px/1.2 var(--f-body); }
.chan__name svg { width: 17px; height: 17px; flex: none; }
.chan__name:hover { color: var(--sun); }
.chan__name:hover h1 { text-decoration: underline; text-underline-offset: 3px; }
.chan__title { margin: 4px 0 8px; font: 600 15px/1.35 var(--f-body); color: var(--text); }
.chan__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 11px; background: var(--panel-3); font: 600 12px/1 var(--f-body); color: var(--text-2); }
.tag--b { background: rgba(255,46,136,.16); color: #ff8cbf; }
.tag--c { background: rgba(107,227,107,.13); color: var(--cash); }
.chan__side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.chan__btns { display: flex; gap: 10px; }
.chan__btns .btn { gap: 6px; }
#followBtn.on { --bg: var(--panel-3); --fg: #fff; }
.chan__meta { display: flex; gap: 14px; font: 600 14px/1 var(--f-mono); color: var(--text-2); }
.chan__v { display: inline-flex; align-items: center; gap: 5px; color: #ff6b6b; }

/* ---------- below ---------- */
.below { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; padding: 6px 20px 40px; }
.brief { padding: 18px 20px; border-radius: 6px; background: var(--panel); border: 1px solid var(--hair); }
.brief__h { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.brief h2 { margin: 10px 0 8px; font-size: 34px; }
.brief p { margin: 0 0 14px; color: var(--text-2); }
.brief dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0; background: var(--hair); }
.brief dl > div { padding: 10px 12px; background: var(--panel); }
.brief dt { font: 600 12px/1 var(--f-ui); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.brief dd { margin: 6px 0 0; font: 700 18px/1 var(--f-mono); }
.brief dd.g { color: var(--cash); }
.brief__proof { margin-top: 12px; font: 500 13.5px/1.45 var(--f-body); color: var(--text-3); }
.brief__proof b { color: var(--text-2); }
.others .label { display: block; margin-bottom: 10px; }
.others__row { display: grid; gap: 10px; }
.mini { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 12px; align-items: center; padding: 0; border: 0; background: none; text-align: left; border-radius: 6px; }
.mini__thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 4px; background: #140834; transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med); }
.mini__thumb svg { width: 100%; height: 100%; }
.mini__thumb span { position: absolute; left: 5px; top: 5px; padding: 2px 5px; border-radius: 2px; background: var(--red); font: 700 10px/1 var(--f-ui); letter-spacing: 0.1em; text-transform: uppercase; }
.mini:hover .mini__thumb { transform: translate(-3px, -3px); box-shadow: 3px 3px 0 var(--pink); }
.mini b { display: block; font: 600 14px/1.3 var(--f-body); }
.mini small { display: block; font: 500 12.5px/1.35 var(--f-body); color: var(--text-3); }
.others__empty { padding: 16px; border-radius: 6px; border: 1px dashed var(--line-2); color: var(--text-3); font-size: 14px; }

/* ---------- chat ---------- */
.chat { display: flex; flex-direction: column; min-height: 0; background: var(--panel); border-left: 1px solid var(--hair); }
.chat__h { display: flex; justify-content: space-between; align-items: center; height: 44px; padding: 0 14px; border-bottom: 1px solid var(--hair); flex: none; }
.chat__mode { font: 500 12px/1 var(--f-body); color: var(--text-3); }

.pred { flex: none; margin: 10px; padding: 12px; border-radius: 6px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--hair); }
.pred__head { display: flex; justify-content: space-between; align-items: center; }
.pred__tag { padding: 3px 6px; border-radius: 3px; background: var(--sun); color: #000; font: 700 12px/1 var(--f-ui); letter-spacing: 0.1em; text-transform: uppercase; }
.pred__time { font: 700 13px/1 var(--f-mono); color: var(--text-2); }
.pred__q { margin: 10px 0 10px; font: 700 15px/1.3 var(--f-body); }
.pred__bars { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pred__opt {
  display: grid; gap: 4px; justify-items: start;
  padding: 10px; border: 0; border-radius: 4px; text-align: left;
  background: rgba(0,0,0,.35); box-shadow: inset 0 0 0 1px var(--line-2);
  transition: box-shadow var(--t-fast), transform var(--t-fast);
}
.pred__opt:hover:not(:disabled) { transform: translateY(-1px); }
.pred__opt--yes:hover:not(:disabled), .pred__opt--yes.pick { box-shadow: inset 0 0 0 2px var(--sun); }
.pred__opt--no:hover:not(:disabled), .pred__opt--no.pick { box-shadow: inset 0 0 0 2px var(--red); }
.pred__opt:disabled { cursor: default; opacity: 0.75; }
.pred__opt.pick { opacity: 1; }
.pred__pct { font: 700 22px/1 var(--f-mono); }
.pred__opt--yes .pred__pct { color: var(--sun); }
.pred__opt--no .pred__pct { color: #ff6b6b; }
.pred__lab { font-size: 22px; }
.pred__opt--no .pred__lab { color: #ff6b6b; }
.pred__pts { display: inline-flex; align-items: center; gap: 4px; font: 600 12px/1 var(--f-mono); color: var(--text-3); }
.pred__pts .resp__ico { width: 11px; height: 11px; }
.pred__split { height: 6px; margin-top: 10px; border-radius: 3px; background: var(--red); overflow: hidden; }
.pred__split i { display: block; height: 100%; width: 50%; background: var(--sun); transition: width 600ms var(--ease-out); }
.pred__amt { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.pred__chips { display: flex; gap: 4px; flex: 1; }
.pred__chips button { flex: 1; height: 30px; border: 0; border-radius: 4px; background: rgba(0,0,0,.35); font: 700 13px/1 var(--f-mono); color: var(--text-2); }
.pred__chips button.on { background: var(--sun); color: #000; }
.pred__mine { margin-top: 10px; font: 600 13px/1.4 var(--f-body); color: var(--text-2); }
.pred__mine b { color: var(--sun); }
.pred__fine { margin: 8px 0 0; font: 500 11.5px/1.4 var(--f-body); color: var(--text-3); }
.pred.locked .pred__tag { background: var(--panel-3); color: var(--text-2); }

.chat__log { flex: 1; min-height: 0; overflow-y: auto; list-style: none; margin: 0; padding: 6px 0 10px; scrollbar-width: thin; }
.msg { padding: 4px 14px; font: 500 14px/1.5 var(--f-body); color: var(--text); overflow-wrap: anywhere; animation: msgin 260ms var(--ease-out); }
@keyframes msgin { from { opacity: 0; transform: translateY(6px); } }
.msg:hover { background: rgba(255,255,255,.04); }
.msg__u { font-weight: 700; }
.msg__b { display: inline-grid; place-items: center; width: 17px; height: 17px; margin-right: 4px; vertical-align: -3px; border-radius: 3px; font: 800 10px/1 var(--f-ui); color: #000; }
.msg__b--h { background: var(--sun); }
.msg__b--hunt { background: var(--pink); color: #fff; }
.msg__b--mod { background: var(--teal); }
.msg__b svg { width: 11px; height: 11px; }
.msg--sys { margin: 6px 10px; padding: 8px 10px; border-radius: 4px; background: rgba(255,46,136,.1); box-shadow: inset 3px 0 0 var(--pink); font-size: 13px; color: var(--text-2); }
.msg--sys b { color: #fff; }
.msg--sys.cash { background: rgba(107,227,107,.08); box-shadow: inset 3px 0 0 var(--cash); }
.msg--sys.sun { background: rgba(255,210,63,.08); box-shadow: inset 3px 0 0 var(--sun); }
.msg .emo { display: inline-block; padding: 0 4px; border-radius: 3px; background: rgba(255,255,255,.08); font: 900 13px/1.4 var(--f-gta); color: var(--sun); -webkit-text-stroke: 0.5px #000; letter-spacing: 0.03em; }
.msg .emo.r { color: #ff6b6b; }
.chat__more { flex: none; margin: -40px auto 6px; position: relative; z-index: 2; height: 30px; padding: 0 12px; border: 0; border-radius: 15px; background: rgba(0,0,0,.85); font: 600 13px var(--f-body); color: #fff; }
.chat__in { flex: none; padding: 10px; border-top: 1px solid var(--hair); }
.chat__in input { width: 100%; height: 40px; padding: 0 12px; border: 0; border-radius: 6px; background: #07030d; box-shadow: inset 0 0 0 1px var(--line-2); color: #fff; font: 500 14px var(--f-body); outline: 0; transition: box-shadow var(--t-fast); }
.chat__in input:focus { box-shadow: inset 0 0 0 2px var(--pink); }
.chat__row { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }

/* toast (same as app) */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 100; transform: translate(-50%, calc(100% + 60px)); visibility: hidden; max-width: calc(100vw - 32px); padding: 12px 16px; background: rgba(0,0,0,.9); color: #fff; font: 600 17px/1.3 var(--f-ui); transition: transform var(--t-med) var(--ease-out), visibility 0s linear var(--t-med); }
.toast.on { transform: translate(-50%, 0); visibility: visible; transition: transform var(--t-med) var(--ease-out), visibility 0s; }
.passed--wasted .passed__title { color: #ff4040; }

/* ---------- responsive ---------- */
@media (max-width: 1280px) {
  .shell { --rail-w: 58px; }
  .rail__h .label, .ch__txt, .ch__v, .ch__r, .rail__h--2, .rail__fold { display: none; }
  .rail__h { justify-content: center; padding: 0; height: 14px; }
  .ch { grid-template-columns: 30px; justify-content: center; padding: 6px 0; }
  .below { grid-template-columns: 1fr; }
}
@media (max-width: 1000px) {
  body.watch { height: auto; overflow: auto; }
  .top { gap: 12px; }
  .top__nav, .top__search { display: none; }
  .top__right { margin-left: auto; }
  .shell { display: flex; flex-direction: column; height: auto; }
  .stage { overflow: visible; order: 1; }
  .player { max-height: none; }
  .rail { order: 2; border: 0; border-top: 1px solid var(--hair); overflow-x: auto; }
  .rail__h { display: none; }
  .rail__list { display: flex; gap: 4px; padding: 8px; }
  #railEnding { display: none; }
  .ch { flex: none; }
  .chat { order: 3; height: 640px; border: 0; border-top: 1px solid var(--hair); }
  .chan { grid-template-columns: auto minmax(0, 1fr); padding: 14px 16px; }
  .chan__side { grid-column: 1 / -1; flex-direction: row-reverse; justify-content: space-between; align-items: center; }
  .below { padding: 4px 16px 24px; }
}
@media (max-width: 560px) {
  .top__right .preview-pill, #wallet { display: none; }
  .chan__av .av { width: 48px; height: 48px; }
  .brief dl > div { padding: 10px; }
  .brief dd { font-size: 16px; }
  .mini { grid-template-columns: 112px minmax(0, 1fr); }
}

/* wallet balance + currency toggle */
.bal { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 4px; background: var(--panel-3); font: 600 13px/1 var(--f-ui); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); }
.bal b { font: 700 14px/1 var(--f-mono); color: var(--cash); letter-spacing: 0; }
.bal i { width: 1px; height: 14px; margin: 0 4px; background: var(--line-2); }
.bal[hidden] { display: none; }
.cur { display: inline-flex; margin-left: auto; margin-right: 10px; padding: 2px; border-radius: 4px; background: rgba(0,0,0,.4); }
.cur button { height: 22px; padding: 0 8px; border: 0; border-radius: 3px; background: none; font: 700 12px/1 var(--f-ui); letter-spacing: 0.08em; color: var(--text-3); transition: background var(--t-fast), color var(--t-fast); }
.cur button.on { background: var(--pink); color: #fff; }
.chat__who { font: 500 12px/1.3 var(--f-body); color: var(--text-3); }
@media (max-width: 1280px) { .bal { display: none; } }

/* multiplier odds */
.pred__x { font: 700 24px/1 var(--f-mono); }
.pred__opt--yes .pred__x { color: var(--sun); }
.pred__opt--no .pred__x { color: #ff6b6b; }
.pred__lab small { margin-left: 4px; font: 600 13px/1 var(--f-mono); color: var(--text-3); -webkit-text-stroke: 0; text-shadow: none; }
.pred__mine .btn { margin-top: 8px; }

/* top caller crown in chat */
.msg__b--crown { background: var(--sun); color: #000; font-size: 12px; }

/* brag card modal */
.cardm { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; background: rgba(5,2,10,.78); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.cardm[hidden] { display: none; }
.cardm__box { width: min(720px, 100%); padding: 16px; background: var(--panel); border: 2px solid #000; box-shadow: 8px 8px 0 #000; animation: cardin 420ms var(--ease-out); }
@keyframes cardin { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.cardm__h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.cardm__x { width: 32px; height: 32px; border: 0; border-radius: 4px; background: var(--panel-3); color: #fff; font-size: 20px; line-height: 1; }
.cardm canvas { display: block; width: 100%; height: auto; border: 2px solid #000; }
.cardm__btns { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.cardm__btns .btn { gap: 6px; }
.cardm__fine { margin: 10px 0 0; font: 500 12.5px/1.4 var(--f-body); color: var(--text-3); }

/* per-side pot cap */
.pred__cap { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.cap__row { display: grid; gap: 4px; font: 600 11.5px/1.2 var(--f-mono); color: var(--text-3); }
.cap__row b { color: var(--text-2); font-weight: 700; }
.cap__bar { height: 4px; border-radius: 2px; background: rgba(255,255,255,.1); overflow: hidden; }
.cap__bar i { display: block; height: 100%; transition: width 600ms var(--ease-out); }
.cap__row--yes .cap__bar i { background: var(--sun); }
.cap__row--no .cap__bar i { background: #ff6b6b; }
.cap__row.full b { color: #ff6b6b; }
.pred__opt.full .pred__x::after { content: " full"; font-size: 12px; color: var(--text-3); }
.pred__pts { white-space: nowrap; }

/* calls off: hunter already had a called run on this bounty in the last 24h */
.pred.off .pred__bars, .pred.off .pred__split, .pred.off .pred__cap, .pred.off .pred__amt, .pred.off .pred__mine, .pred.off .pred__fine { display: none; }
.pred.off .pred__tag { background: var(--panel-3); color: var(--text-2); }
.pred__off { padding: 12px; border-radius: 4px; background: rgba(0,0,0,.35); box-shadow: inset 3px 0 0 var(--text-3); font: 500 13.5px/1.45 var(--f-body); color: var(--text-2); }
.pred__off b { color: #fff; }
.pred__off .num { font-family: var(--f-mono); color: var(--sun); font-weight: 700; }

/* live runs: real player + platform chat */
.player__embed { position: absolute; inset: 3%; width: 94%; height: 94%; border: 0; }
.player.is-real .player__scene { inset: 0; animation: none; }
.player.is-real .player__embed { inset: 0; width: 100%; height: 100%; }
.player.is-real .player__vig, .player.is-real .ovl--cash, .player.is-real .pctl, .player.is-real .ovl--obj { display: none; }
.player.is-real .ovl { pointer-events: none; }
.player.is-real .ovl--card { bottom: 64px; }
.av--img { object-fit: cover; }
.chan__av .av--img { width: 64px; height: 64px; border: 3px solid #000; box-shadow: 0 0 0 3px var(--pink); border-radius: 50%; }
.chat__embed { flex: 1; min-height: 0; display: flex; }
.chat__embed[hidden] { display: none; }
.chat__embed iframe { flex: 1; width: 100%; border: 0; }
.chat__out { margin: auto; padding: 20px; text-align: center; display: grid; gap: 12px; justify-items: center; color: var(--text-2); }
.chat__out p { margin: 0; }
.chat__log[hidden], .chat__in[hidden] { display: none; }
.watch-empty { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; text-align: center; padding: 20px; background: rgba(5,2,10,.72); }
.watch-empty h2 { margin: 0 0 10px; font-size: clamp(36px, 6cqw, 72px); }
.watch-empty p { margin: 0 0 16px; color: var(--text-2); }

.preview-pill[hidden] { display: none; }

/* stars ride in the bounty card on real streams */
.ovl__stars { display: none; }
.player.is-real .ovl--stars { display: none; }
.player.is-real .ovl__stars { display: inline-flex; }
.player.is-real .ovl__stars i { width: 13px; height: 13px; }
.ovl__top { gap: 8px; }

/* demo banner when nobody is live */
.demo { position: absolute; z-index: 4; top: 12px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; max-width: calc(100% - 24px); padding: 8px 10px 8px 12px; background: rgba(0,0,0,.82); border: 2px solid var(--sun); box-shadow: 4px 4px 0 #000; font: 600 14px/1.2 var(--f-body); color: var(--text-2); }
.demo[hidden] { display: none; }
.demo b { padding: 3px 6px; background: var(--sun); color: #000; font: 700 12px/1 var(--f-ui); letter-spacing: .1em; text-transform: uppercase; }
.demo a { padding: 5px 9px; background: var(--pink); color: #fff; font: 700 13px/1 var(--f-ui); letter-spacing: .08em; text-transform: uppercase; }
#predGo:disabled { opacity: .55; cursor: not-allowed; }
.demo { flex-wrap: nowrap; white-space: nowrap; }
@media (max-width: 900px) { .demo { flex-wrap: wrap; white-space: normal; } }
.pred__amt[hidden], .pred__mine[hidden], .pred__cap[hidden] { display: none; }

/* ended run in the player */
.run-over { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; text-align: center; padding: 20px; background: rgba(5,2,10,.66); }
.run-over h2 { margin: 6px 0 10px; font-size: clamp(40px, 7cqw, 84px); }
.run-over p { margin: 0; color: var(--text-2); max-width: 420px; }
#recentH[hidden] { display: none; }

/* connected wallet chip */
.txw { position: relative; }
.txw[hidden] { display: none; }
#txwBtn { gap: 8px; font-family: var(--f-mono); letter-spacing: 0; text-transform: none; }
.txw__menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 190px; display: grid; padding: 6px; background: var(--panel-2); border: 2px solid #000; box-shadow: 5px 5px 0 #000; }
.txw__menu[hidden] { display: none; }
.txw__menu button { padding: 10px 12px; border: 0; background: none; color: #fff; text-align: left; font: 600 14px var(--f-body); border-radius: 4px; }
.txw__menu button:hover, .txw__menu button:focus-visible { background: var(--panel-3); outline: 0; }
.txw__menu button[data-tw="disconnect"] { color: #ff6b6b; }

/* winnings waiting */
.claimbar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 10px 0; padding: 10px 12px; background: rgba(107,227,107,.12); border: 2px solid var(--cash); border-radius: 6px; font: 500 13.5px/1.35 var(--f-body); color: var(--text-2); animation: msgin 300ms var(--ease-out); }
.claimbar[hidden] { display: none; }
.claimbar b { color: var(--cash); font-family: var(--f-mono); }

[hidden]{display:none!important}
