/*
 * The market bar (market-bar.js): one look wherever a round is played, over
 * the picture on a watch page and at the top of the Kick companion.
 * Its game and casino skins are in skins.css.
 */
.mb { position: absolute; left: 50%; bottom: 76px; z-index: 6; transform: translate(-50%, 12px); width: min(460px, calc(100% - 24px)); padding: 12px 14px; border-radius: 18px; background: rgba(30, 30, 36, .9); backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), inset 0 0 0 1px rgba(255,255,255,.06), 0 12px 32px rgba(0,0,0,.45); color: #fff; font-family: var(--gl-face, var(--face, system-ui)); opacity: 0; pointer-events: none; transition: opacity .3s, transform .4s cubic-bezier(.2,.8,.2,1); }
.mb.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.mb.is-in { animation: mb-in .36s cubic-bezier(.34,1.56,.64,1); }
@keyframes mb-in { from { transform: translate(-50%, 8px) scale(.98); } to { transform: translate(-50%, 0) scale(1); } }
.mb-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mb-k { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #7ee2a8; }
.mb-k i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(126,226,168,.18); }
.mb[data-state="locked"] .mb-k { color: #ffd60a; } .mb[data-state="locked"] .mb-k i { box-shadow: 0 0 0 3px rgba(255,214,10,.18); }
.mb[data-state="voided"] .mb-k { color: rgba(255,255,255,.6); }
.mb-clock { font-size: 11px; font-weight: 600; color: rgba(255,255,255,.72); font-variant-numeric: tabular-nums; }
.mb-q { margin: 4px 0 8px; font-size: 15px; font-weight: 650; line-height: 1.25; letter-spacing: -.01em; }
.mb-odds { height: 4px; border-radius: 2px; background: rgba(255,138,147,.35); overflow: hidden; margin-bottom: 8px; }
.mb-odds i { display: block; height: 100%; background: rgb(126,226,168); transition: width .4s; }
.mb-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mb-side { display: grid; grid-template-columns: 1fr auto; row-gap: 2px; min-height: 54px; padding: 8px 10px; text-align: left; border-radius: 12px; border: 1px solid transparent; background: rgba(255,255,255,.08); color: #fff; font: inherit; cursor: pointer; transition: filter .15s, transform .1s, opacity .2s; }
.mb-side:hover:not(:disabled) { filter: brightness(1.15); }
.mb-side.is-tap { animation: gl-squash .38s cubic-bezier(.34,1.56,.64,1); }
.mb-side:disabled { cursor: default; opacity: .6; }
.mb-side.is-yes { background: rgba(126,226,168,.14); border-color: rgba(126,226,168,.3); }
.mb-side.is-yes .mb-l, .mb-side.is-yes .mb-p { color: rgb(126,226,168); }
.mb-side.is-no { background: rgba(255,138,147,.13); border-color: rgba(255,138,147,.28); }
.mb-side.is-no .mb-l, .mb-side.is-no .mb-p { color: rgb(255,138,147); }
.mb-side.is-held { box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); }
.mb-side.is-won, .mb-side.is-won:disabled { opacity: 1; box-shadow: 0 0 0 2px rgb(126,226,168); }
.mb-side.is-no.is-won { box-shadow: 0 0 0 2px rgb(255,138,147); }
.mb-side.is-lost:disabled { opacity: .3; }
.mb-l { font-weight: 800; font-size: 13px; letter-spacing: .04em; }
.mb-p { font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }
.mb-c { grid-column: 1 / -1; font-size: 10.5px; color: rgba(255,255,255,.7); }
.mb-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.mb-chips { display: flex; gap: 4px; }
.mb-chips[hidden] { display: none; }
.mb-chip { padding: 4px 10px; border: 0; border-radius: 999px; background: rgba(255,255,255,.1); color: rgba(255,255,255,.75); font: 700 11px var(--gl-face, inherit); cursor: pointer; }
.mb-chip.is-on { background: #fff; color: #000; }
.mb-mine { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.mb-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; }
.mb-row b { font-weight: 650; }
.mb-row em { font-style: normal; font-size: 11px; color: rgba(255,255,255,.65); }
.mb-row em.is-won { color: rgb(126,226,168); font-weight: 700; }
.mb-out { padding: 5px 11px; border: 0; border-radius: 999px; background: #fff; color: #000; font: 700 11px var(--gl-face, inherit); cursor: pointer; white-space: nowrap; }
.mb-wait { display: none; align-items: baseline; gap: 10px; }
.mb-wait b { font-size: 13px; } .mb-wait span { font-size: 11px; color: rgba(255,255,255,.6); }
.mb[data-state="waiting"] > :not(.mb-wait) { display: none; }
.mb[data-state="waiting"] .mb-wait { display: flex; }
.mb[data-state="waiting"] { padding: 10px 14px; width: auto; }
.mb[data-state="settled"] .mb-chips, .mb[data-state="locked"] .mb-chips, .mb[data-state="voided"] .mb-chips { display: none; }
@media (max-width: 700px) { .mb { bottom: 60px; padding: 10px 12px; width: calc(100% - 16px); } .mb-q { font-size: 13.5px; } .mb-side { min-height: 48px; } }

/* The Kick companion has no picture to sit on: the bar leads the page instead. */
.mb.is-static { position: relative; left: auto; bottom: auto; transform: none; width: 100%; max-width: 520px; margin: 0 auto 14px; }
.mb.is-static.is-on { transform: none; }


/* "Play the same game on <casino>": a quiet row under the round, the casino's door, not ours. */
.mb-cta { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 10px; padding: 9px 12px; border-radius: 12px; background: rgba(255, 255, 255, .06); color: #fff; text-decoration: none; font-size: 12px; }
.mb-cta b { font-weight: 700; }
.mb-cta span { font-size: 10.5px; opacity: .6; }
.mb-cta:hover, .mb-cta:focus-visible { background: rgba(255, 255, 255, .12); }
.mb-cta[hidden] { display: none; }

/* The IRL replay keeps its demo vote at the bottom of the picture, so the real
   rounds an operator opens from the phone desk ride at the top instead: the bet
   bar, then a live vote or dare (irl-live-rounds.js), one stack. */
.irl-live-stack { position: absolute; top: 112px; left: 50%; z-index: 8; transform: translateX(-50%); width: min(460px, calc(100% - 24px)); display: grid; gap: 8px; pointer-events: none; }
.irl-live-stack > * { pointer-events: auto; }
.irl-live-stack .mb.is-static { margin: 0; max-width: none; }
.irl-live-stack .mb.is-static:not(.is-on) { display: none; }
/* On a phone the bet bar elsewhere becomes a sheet pinned under the video
   (replay-mobile.css). The IRL stage is the whole screen, so here the stack
   stays on the picture, under the N3ON label, and scrolls if a bet, a vote
   and a dare are all open at once. */
@media (max-width: 900px) {
  .irl-live-stack { top: 112px; width: calc(100% - 16px); max-height: 50vh; overflow-y: auto; gap: 6px; z-index: 12; }
  .player-frame .irl-live-stack .mb, .player-frame .irl-live-stack .mb.is-on { position: relative; left: auto; right: auto; bottom: auto; top: auto; width: auto; border-radius: 16px; padding: 10px 12px; z-index: auto; }
  .irl-live-stack .ilr-card { padding: 10px 12px; border-radius: 16px; }
  .irl-live-stack .ilr-q { font-size: 14px; margin: 3px 0 6px; }
  .irl-live-stack .ilr-opt { min-height: 38px; }
}

.ilr[hidden] { display: none; }
.ilr { display: grid; gap: 8px; }
.ilr-card { padding: 12px 14px; border-radius: 18px; background: rgba(30, 30, 36, .9); backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), inset 0 0 0 1px rgba(255,255,255,.06), 0 12px 32px rgba(0,0,0,.45); color: #fff; font-family: var(--gl-face, var(--face, system-ui)); animation: ilr-in .36s cubic-bezier(.34,1.56,.64,1); }
@keyframes ilr-in { from { transform: translateY(8px) scale(.98); opacity: .6; } to { transform: none; opacity: 1; } }
.ilr-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ilr-k { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #7ee2a8; }
.ilr-k i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(126,226,168,.18); }
.ilr-card[data-kind="dare"] .ilr-k { color: #ffd60a; }
.ilr-clock { font-size: 11px; font-weight: 600; color: rgba(255,255,255,.72); font-variant-numeric: tabular-nums; }
.ilr-q { margin: 4px 0 8px; font-size: 15px; font-weight: 650; line-height: 1.25; letter-spacing: -.01em; }
.ilr-opts { display: grid; gap: 6px; }
.ilr-opt { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; padding: 0 12px; overflow: hidden; border: 0; border-radius: 11px; background: rgba(255,255,255,.08); color: #fff; font: 600 13px var(--gl-face, var(--face, system-ui)); text-align: left; cursor: pointer; }
.ilr-opt:disabled { cursor: default; }
.ilr-opt i { position: absolute; inset: 0 auto 0 0; background: rgba(126,226,168,.22); transition: width .4s; }
.ilr-opt b, .ilr-opt em { position: relative; font-style: normal; }
.ilr-opt em { font-variant-numeric: tabular-nums; color: rgba(255,255,255,.72); }
.ilr-opt.is-mine { box-shadow: inset 0 0 0 1.5px #7ee2a8; }
.ilr-opt.is-won { background: rgba(126,226,168,.16); }
.ilr-card[data-kind="dare"] .ilr-opt.is-mine { box-shadow: inset 0 0 0 1.5px #ffd60a; }
.ilr-card[data-kind="dare"] .ilr-opt.is-won { background: rgba(255,214,10,.14); }
.ilr-sub, .ilr-mine { margin-top: 8px; font-size: 12px; color: rgba(255,255,255,.72); }
.ilr-mine { color: #ffd60a; }
.ilr-go { width: 100%; min-height: 42px; margin-top: 10px; border: 0; border-radius: 12px; background: #ffd60a; color: #1a1400; font: 700 14px var(--gl-face, var(--face, system-ui)); cursor: pointer; }
.ilr-go:disabled { opacity: .45; cursor: default; }
.ilr-note { margin: 0; padding: 8px 12px; border-radius: 12px; background: rgba(30,30,36,.9); color: #fff; font-size: 12px; }
@media (prefers-reduced-motion: reduce) { .ilr-card { animation: none; } }

/* While a real round runs, the demo card steps aside; it returns when nothing real is open. */
.irl-preview-page:has(.irl-live-stack .ilr-card, .irl-live-stack .mb.is-on) .irl-poll,
.irl-preview-page:has(.irl-live-stack .ilr-card, .irl-live-stack .mb.is-on) .irl-peek { display: none !important; }
.irl-live-stack { z-index: 30; max-height: calc(100% - 190px); overflow-y: auto; overscroll-behavior: contain; overflow-anchor: none; scrollbar-width: none; }
/* The glass layer's own vote card would draw the same real vote a second time over the stack. */
.irl-preview-page .gl-vote { display: none !important; }
/* Over bright daylight footage the glass read as faded; the IRL cards are more solid. */
/* The blur over the YouTube player rendered the cards faded and clipped, so here they are solid. */
.irl-live-stack .mb, .irl-live-stack .ilr-card { background: rgba(18, 18, 24, .96); backdrop-filter: none; -webkit-backdrop-filter: none; }
/* One round at a time: a called or voided bet steps aside when the next round opens. */
.irl-live-stack.has-live .mb[data-state="settled"], .irl-live-stack.has-live .mb[data-state="voided"] { display: none; }
