/* Rip Call v2: setup page, rules page, links, connection bars, pack battle. Side A = gold, side B = blue. */
:root { --sideA: var(--gold); --sideA-hi: var(--gold-hi); --sideB: #6b93ff; --sideB-hi: #a9c0ff; }
body.scroll { overflow: auto; }
.x-card { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 16px; text-align: center; background: radial-gradient(80% 80% at 50% 30%, #1d1f24, #000); }
.x-card[hidden] { display: none; }
.x-card p { margin: 0; max-width: 32ch; color: #cfc9bb; font-size: 14px; line-height: 1.4; }
.x-logo { width: 44px; height: 44px; border-radius: 12px; background: #fff; color: #000; display: grid; place-items: center; font: 800 26px var(--display); }
.x-btn { min-height: 48px; display: inline-flex; align-items: center; padding: 0 22px; border-radius: 99px; background: #fff; color: #000; font-weight: 800; font-size: 16px; text-decoration: none; }

/* ---------- connection notices ---------- */
.net-warn { margin: 0 0 8px; padding: 10px 14px; border-radius: 12px; background: rgba(255,93,93,.12); border: 1px solid rgba(255,93,93,.4); color: #ffd2d2; font-size: 14px; line-height: 1.35; }
.net-bar { padding: 10px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; }
.net-bar.ok { background: rgba(99,217,142,.1); border: 1px solid rgba(99,217,142,.35); color: #bff0cf; }
.net-bar.bad { background: rgba(255,93,93,.12); border: 1px solid rgba(255,93,93,.4); color: #ffd2d2; }
.room-chip { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; border: 1px solid #4a412f; border-radius: 99px; padding: 3px 10px; color: var(--gold); margin-left: 8px; vertical-align: middle; }
.tally-chip { font-family: var(--mono); font-size: 14px; text-transform: none; border-radius: 99px; padding: 4px 10px; background: #15161a; border: 1px solid #2f2b25; color: var(--paper); }
.join-hero .prize { color: var(--gold-hi); }
.join-hero p b { color: var(--paper); }
.fine a, .rules a, .sheet-card a { color: var(--gold); }
.lines li.void { border-left-color: #6d675c; } .lines li.void b { color: #77706a; }

/* ---------- setup + rules ---------- */
.setup { max-width: 560px; margin: 0 auto; padding: env(safe-area-inset-top,0) max(16px, env(safe-area-inset-right,0px)) 48px max(16px, env(safe-area-inset-left,0px)); display: grid; gap: 16px; }
.su-card { background: var(--panel); border: 1px solid #2c2922; border-radius: 22px; padding: 22px 20px; display: grid; gap: 16px; }
.su-card h1.title { margin: 0; font-size: 46px; line-height: .95; color: var(--paper); }
.su-card h1 em { font-style: normal; color: var(--gold-hi); }
.su-card h2 { margin: 0; font-family: var(--display); font-size: 32px; text-transform: uppercase; font-weight: 800; color: var(--paper); }
.su-card p { margin: 0; color: #bdb7a8; line-height: 1.5; }
.su-card.hero { text-align: center; }
.su-card.hero .fan { position: relative; height: 150px; }
.su-card.hero .fan img { position: absolute; left: 50%; top: 0; width: 96px; margin-left: -48px; border-radius: 8px; transform: rotate(calc(var(--i) * 12deg)) translateX(calc(var(--i) * 54px)); transform-origin: 50% 120%; box-shadow: 0 10px 30px rgba(0,0,0,.6); }
.su-what { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.su-what li { font-size: 14px; color: #bdb7a8; background: #15161a; border-radius: 99px; padding: 7px 12px; }
.su-what b { color: var(--paper); }
.su-modes .tile.row { grid-template-columns: 1fr; padding: 18px; }
.su-modes .tile.row .t-big { font-size: 30px; }
.su-modes .t-sub { white-space: normal; }
.su-f { display: grid; gap: 8px; font-weight: 700; color: var(--paper); font-size: 16px; }
.su-f input:not([type=checkbox]) { font: 500 17px var(--body); color: var(--paper); background: #15161a; border: 1px solid #3a352d; border-radius: 12px; padding: 14px; width: 100%; min-height: 50px; }
.su-f input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.su-f small { font-weight: 400; color: var(--muted); font-size: 13px; line-height: 1.4; }
.su-f .opt { font-weight: 400; color: var(--muted); font-size: 13px; margin-left: 4px; }
.su-chips { display: flex; gap: 6px; flex-wrap: wrap; min-height: 0; }
.su-chips:empty { display: none; }
.su-chip { font-family: var(--mono); font-size: 13px; padding: 5px 10px; border-radius: 99px; background: rgba(99,217,142,.12); color: #bff0cf; border: 1px solid rgba(99,217,142,.35); }
.su-err { color: #ffb4b4; background: rgba(255,93,93,.1); border-radius: 10px; padding: 10px 12px; font-size: 15px; }
.su-nav { display: flex; align-items: center; gap: 16px; }
.su-nav .big-btn { flex: 1; }
.su-nav .backbtn { align-self: center; font-size: 16px; padding: 12px 4px; min-height: 44px; text-decoration: none; }
.stepper { display: inline-flex; align-items: center; gap: 0; border: 1px solid #3a352d; border-radius: 14px; overflow: hidden; width: max-content; }
.stepper button { width: 60px; height: 56px; border: 0; background: #15161a; color: var(--paper); font-size: 28px; font-weight: 700; }
.stepper b { min-width: 72px; text-align: center; font-size: 28px; font-family: var(--display); color: var(--gold-hi); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips .chipbtn { min-height: 44px; }
.chipbtn.on { background: var(--gold); color: #1a1205; border-color: var(--gold); }
.su-check { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; color: #d8d1bf; font-size: 15px; line-height: 1.45; cursor: pointer; }
.su-check input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--gold); }
.su-check b { color: var(--paper); }
.su-step { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid #25221d; text-align: left; }
.su-step > div { display: grid; gap: 10px; min-width: 0; }
.su-step h3 { margin: 0; font-family: var(--display); font-size: 24px; text-transform: uppercase; color: var(--paper); }
.su-step.key h3 { color: var(--gold-hi); }
.su-n { width: 32px; height: 32px; border-radius: 50%; background: #1b1c20; border: 1px solid #3a352d; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 18px; color: var(--gold); }
.su-link { display: flex; gap: 8px; min-width: 0; }
.su-link input { flex: 1; min-width: 0; font: 500 14px var(--mono); color: var(--paper); background: #15161a; border: 1px solid #3a352d; border-radius: 10px; padding: 12px; }
.su-copy { flex: none; min-width: 84px; min-height: 46px; border: 0; border-radius: 10px; background: var(--gold); color: #1a1205; font-weight: 800; font-size: 15px; }
.su-copy.done { background: var(--ok); }
.su-obs { margin: 0; padding-left: 20px; color: #d8d1bf; line-height: 1.6; font-size: 15px; }
.su-obs b { color: var(--paper); }
.su-tip { background: rgba(76,125,255,.1); border: 1px solid rgba(76,125,255,.35); border-radius: 14px; padding: 14px; color: #d4defc; font-size: 15px; line-height: 1.5; }
.su-tip b { color: #fff; }
.su-step .big-btn { font-size: 22px; padding: 14px; text-align: center; text-decoration: none; display: block; }
.su-mine { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.su-mine li { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: #15161a; border-radius: 12px; padding: 12px; }
.su-mine li > div { flex: 1 1 160px; display: grid; }
.su-mine small { color: var(--muted); font-family: var(--mono); font-size: 12px; }
.su-mine .hbtn { min-height: 44px; text-decoration: none; display: inline-flex; align-items: center; }
.su-sheet { text-align: left; max-height: calc(100vh - 40px); overflow-y: auto; max-width: 560px; }
.prose h2 { font-size: 22px; margin-top: 4px; }
.prose p b { color: var(--paper); }

/* ---------- pack battle: player ---------- */
.tile.sideA { border-color: rgba(216,184,121,.35); }
.tile.sideB { border-color: rgba(107,147,255,.4); }
.tile.sideA .t-big { color: var(--sideA-hi); } .tile.sideB .t-big { color: var(--sideB-hi); }
.tile.sideA.sel { border-color: var(--sideA); background: rgba(216,184,121,.14); }
.tile.sideB.sel { border-color: var(--sideB); background: rgba(107,147,255,.16); }
.tiles.two .tile .t-big { overflow-wrap: anywhere; }
.side-row { display: grid; gap: 6px; }
.side-row + .side-row { margin-top: 10px; }
.side-h { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--display); text-transform: uppercase; font-weight: 800; font-size: 20px; }
.side-row.sideA .side-h { color: var(--sideA-hi); } .side-row.sideB .side-h { color: var(--sideB-hi); }
.side-h b { font-size: 24px; }

/* ---------- pack battle: host ---------- */
.side-pick { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.side-pick span { color: var(--muted); font-weight: 700; }
.side-pick button { min-height: 48px; padding: 10px 18px; border-radius: 12px; border: 2px solid #3a352d; background: #15161a; color: var(--paper); font-weight: 800; font-size: 17px; }
.side-pick button.sideA.on { border-color: var(--sideA); background: rgba(216,184,121,.18); color: var(--sideA-hi); }
.side-pick button.sideB.on { border-color: var(--sideB); background: rgba(107,147,255,.2); color: var(--sideB-hi); }
.slot-row { display: grid; gap: 6px; border-radius: 14px; }
.slot-row + .slot-row { margin-top: 10px; }
.slot-row.active { outline: 2px solid rgba(255,255,255,.15); outline-offset: 6px; }
.slot-h { display: flex; justify-content: space-between; font-family: var(--display); text-transform: uppercase; font-weight: 800; font-size: 20px; }
.slot-row.sideA .slot-h { color: var(--sideA-hi); } .slot-row.sideB .slot-h { color: var(--sideB-hi); }
.side-panel .go { cursor: default; }
.side-panel .go span { font-size: 26px; }

/* ---------- pack battle: overlay ---------- */
.ov-battle { display: grid; grid-template-columns: 1fr 70px 1fr; align-items: center; gap: 12px; }
.ov-side { display: grid; gap: 10px; }
.ov-side-h { display: flex; justify-content: space-between; align-items: baseline; padding: 0 6px; font-family: var(--display); text-transform: uppercase; font-weight: 800; }
.ov-side-h .nm { font-size: 44px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-side-h .bp { font-size: 52px; }
.ov-side.sideA .ov-side-h { color: var(--sideA-hi); } .ov-side.sideB .ov-side-h { color: var(--sideB-hi); }
.ov-pulls.b { gap: 10px; padding: 14px; }
.ov-side.sideB .ov-pulls.b { box-shadow: inset 0 0 0 2px rgba(107,147,255,.35); }
.ov-vs { font-family: var(--display); font-weight: 800; font-size: 54px; color: var(--paper); text-align: center; text-shadow: 0 0 30px rgba(216,184,121,.5); }
.ov-pack .tally { display: flex; align-items: baseline; gap: 12px; font-family: var(--display); text-transform: uppercase; font-weight: 800; font-size: 30px; padding: 6px 18px; border-radius: 99px; background: rgba(13,14,17,.85); border: 1px solid #2f2b25; }
.ov-pack .tally span:first-child { color: var(--sideA-hi); } .ov-pack .tally span:last-child { color: var(--sideB-hi); }
.ov-pack .tally b { font-size: 40px; color: var(--paper); }
.ov-pack .tally i { color: var(--muted); font-style: normal; }
.ov-truth { font-size: 22px; text-align: center; }
.ov-truth b { color: var(--gold); }
.ov-final .champ { font-size: 84px; color: var(--paper); margin-bottom: 24px; }

@media (max-width: 380px) {
  .su-card { padding: 18px 14px; }
  .su-card h1.title { font-size: 40px; }
  .su-link { flex-wrap: wrap; }
  .su-copy { width: 100%; }
  .side-pick button { flex: 1; }
}
.stream-tabs { flex-wrap: wrap; }

/* long names never push layouts wider (verifier: 17+ character names, 320px side panel) */
.bar .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ov-pack .tally span { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb li .nm, .ov-final .who { overflow-wrap: anywhere; }
.hh-pack { flex-wrap: wrap; }
.tally-chip { white-space: normal; overflow-wrap: anywhere; }
.side-h span, .slot-h span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.join-cta .title { overflow-wrap: anywhere; }
.join-cta > div { min-width: 0; }

.su-step h3, .su-step p, .explain, .flow span, .join-hero p, .mission .m-title, .m-sub, .side-panel .go span, .hh-t { overflow-wrap: anywhere; }
.hh, .side-panel .hh { min-width: 0; }
.hh > * { min-width: 0; }
.side-row, .side-h { min-width: 0; }
.side-h { gap: 8px; }
.lines li > span { min-width: 0; overflow-wrap: anywhere; }
.lines li > b { flex: none; }

/* overlay: extreme names never push the leaderboard or footer off the 1920x1080 stage */
.stage { grid-template-columns: minmax(0, 1fr) 520px; }
.ov-battle { grid-template-columns: minmax(0, 1fr) 70px minmax(0, 1fr); }
.ov-head, .ov-foot, .ov-pack { min-width: 0; }
.ov-pack .title, .ov-side-h .nm { min-width: 0; }
.ov-side-h { gap: 12px; }
.ov-side-h .nm { flex: 1; }
.lb li .nm { overflow-wrap: normal; }

/* ---------- marathon ---------- */
.ov-total { margin-top: auto; padding-top: 14px; border-top: 1px solid #2a2721; display: grid; gap: 6px; font-size: 20px; color: var(--paper); }
.ov-total small { font-family: var(--mono); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ov-total span { display: flex; gap: 10px; align-items: baseline; min-width: 0; }
.ov-total b { color: var(--gold-hi); font-family: var(--display); font-size: 24px; width: 24px; }
.ov-total i { margin-left: auto; font-style: normal; font-family: var(--mono); }
.ov-break { position: absolute; left: 48px; right: 604px; top: 160px; bottom: 210px; display: grid; place-content: center; text-align: center; gap: 14px; background: rgba(5,5,7,.88); border-radius: 22px; z-index: 25; border: 2px solid rgba(216,184,121,.4); }
.ov-break[hidden] { display: none; }
.ov-break .eyebrow { font-size: 22px; letter-spacing: .3em; }
.ov-break .title { font-size: 84px; color: var(--paper); max-width: 1100px; overflow-wrap: anywhere; }
.mara-zone { background: var(--panel); border: 1px solid #2c2922; border-radius: 18px; padding: 16px; display: grid; gap: 12px; }
.mz-row { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }
.mz-title { font-family: var(--display); font-size: 28px; text-transform: uppercase; color: var(--gold-hi); }
.mz-sub { color: var(--muted); font-size: 14px; }
.mz-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.mz-box { background: #121317; border-radius: 14px; padding: 14px; display: grid; gap: 10px; align-content: start; }
.mz-box h4 { margin: 0; font-family: var(--display); text-transform: uppercase; font-size: 20px; color: var(--paper); }
.mz-box label { display: grid; gap: 4px; font-size: 14px; color: #cfc9bb; }
.mz-box input:not([type=checkbox]) { font: 500 15px var(--body); color: var(--paper); background: #0b0c0f; border: 1px solid #3a352d; border-radius: 10px; padding: 10px; min-height: 44px; }
.mz-box .mz-check { display: flex; gap: 10px; align-items: center; }
.mz-box .mz-check input { width: 22px; height: 22px; accent-color: var(--gold); }
.mz-box small { color: var(--muted); }
.mz-box .hbtn { min-height: 44px; }
.mz-seg { display: inline-flex; border: 1px solid #3b362d; border-radius: 12px; overflow: hidden; }
.mz-seg button { border: 0; background: transparent; color: var(--muted); font-weight: 800; padding: 10px 16px; min-height: 44px; }
.mz-seg button.on { background: var(--gold); color: #1a1205; }
.mz-count { font-size: 15px; color: #d8d1bf; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.mz-count b { color: var(--gold-hi); font-size: 20px; }
.mz-b[hidden] { display: none; }
.side-pick[hidden] { display: none; }
.ov-board h3 #lbt { font-family: var(--display); font-size: 40px; font-weight: 800; color: var(--gold-hi); }

/* short phones hide mission subtitles; the break message and round-win prize must always show */
.mission.keepsub .m-sub { display: block !important; }
.mz-winners { background: #121317; border-radius: 14px; padding: 12px 14px; }
.mz-winners summary { cursor: pointer; font-weight: 700; color: var(--paper); min-height: 32px; display: flex; align-items: center; gap: 6px; }
.mz-winners ol { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; max-height: 260px; overflow: auto; }
.mz-winners li { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: baseline; font-size: 14px; color: #cfc9bb; }
.mz-winners li b { color: var(--gold-hi); }
.mz-winners li .w { color: var(--paper); font-weight: 700; }
.mz-winners li i { font-style: normal; font-family: var(--mono); color: var(--muted); }
.mz-winners li small { margin-left: auto; color: var(--muted); }
#mresume[hidden] { display: none; }

/* #demo?auto: viewer-experience demo for screen sharing; the host panel still runs (it drives the loop) but stays out of view */
.demo.auto .hs { height: 0; border: 0; margin: 0; overflow: hidden; }
.demo.auto { align-items: start; }
.demo.auto { grid-template-columns: minmax(0, 1fr) 400px; grid-template-areas: "head head" "ov ph" "hs hs"; max-width: 1700px; margin: 0 auto; }
.demo.auto .demo-head { grid-area: head; }
.demo.auto .ov { grid-area: ov; align-self: center; }
.demo.auto .ph { grid-area: ph; grid-row: auto; grid-column: auto; }
.demo.auto .hs { grid-area: hs; }
@media (max-width: 1100px) { .demo.auto { grid-template-columns: 1fr; grid-template-areas: "head" "ov" "ph" "hs"; } }

/* ---------- card scanner ---------- */
.scan-btn { width: max-content; }
.scan-sheet .sheet-card { text-align: left; max-width: 640px; max-height: calc(100vh - 40px); overflow-y: auto; }
.scan-help, .scan-tip { margin: 0; color: #bdb7a8; font-size: 14px; line-height: 1.45; }
.scan-tip { font-size: 13px; color: var(--muted); }
.scan-src { display: flex; flex-wrap: wrap; gap: 8px; }
.scan-src .hbtn { min-height: 44px; display: inline-flex; align-items: center; cursor: pointer; }
.scan-video, .scan-preview { width: 100%; border-radius: 12px; background: #000; max-height: 340px; object-fit: contain; }
.scan-video[hidden], .scan-preview[hidden] { display: none; }
.scan-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.scan-actions .big-btn { flex: 1; font-size: 22px; padding: 14px; }
.scan-status { margin: 0; color: #d8d1bf; font-size: 14px; }
.scan-status.bad { color: #ffb4b4; }
.scan-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.scan-list li { display: grid; grid-template-columns: 44px 1fr auto auto; gap: 10px; align-items: center; background: #15161a; border-radius: 10px; padding: 6px 8px; border: 1px solid transparent; }
.scan-list li.unsure { border-color: rgba(255,180,90,.6); }
.scan-list img { width: 44px; border-radius: 4px; }
.sc-name { display: grid; min-width: 0; }
.sc-name b { font-size: 14px; color: var(--paper); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-name small { color: var(--muted); font-size: 12px; }
.scan-list li.unsure .sc-name small { color: #ffcf8a; }
.scan-list select { background: #0b0c0f; color: var(--paper); border: 1px solid #3a352d; border-radius: 8px; min-height: 40px; padding: 0 6px; }
.sc-x { background: none; border: 1px solid #3a352d; color: var(--muted); border-radius: 8px; min-height: 40px; padding: 0 10px; }
@media (max-width: 480px) { .scan-list li { grid-template-columns: 40px 1fr; } .scan-list select, .sc-x { grid-column: 2; } }

/* ---------- chat ---------- */
.chat-fab { position: fixed; right: max(14px, env(safe-area-inset-right, 0px)); bottom: calc(96px + env(safe-area-inset-bottom, 0px)); z-index: 45; min-height: 48px; padding: 0 18px; border-radius: 99px; border: 1px solid #3b362d; background: #15161a; color: var(--paper); font-weight: 800; font-size: 16px; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.5); }
.chat-badge { min-width: 22px; height: 22px; border-radius: 11px; background: var(--blue); color: #fff; font-size: 12px; display: grid; place-items: center; padding: 0 6px; }
.chat-badge[hidden] { display: none; }
.chat-sheet .sheet-card { text-align: left; max-height: 80vh; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; gap: 10px; }
.chat-head { display: flex; justify-content: space-between; align-items: center; }
.chat-head h2 { margin: 0; }
.chat-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; min-height: 220px; max-height: 50vh; display: grid; gap: 6px; align-content: start; }
.chat-list li { font-size: 15px; line-height: 1.35; color: #d8d1bf; overflow-wrap: anywhere; }
.chat-list li b { color: var(--gold-hi); margin-right: 4px; }
.chat-list li.me b { color: #a9c0ff; }
.chat-list li.empty { color: var(--muted); }
.chat-form { display: flex; gap: 8px; }
.chat-form input { flex: 1; min-width: 0; font: 500 16px var(--body); color: var(--paper); background: #0b0c0f; border: 1px solid #3a352d; border-radius: 10px; padding: 12px; min-height: 48px; }
.chat-err { margin: 0; color: #ffb4b4; font-size: 13px; min-height: 1em; }
.ov-chat { display: grid; gap: 6px; justify-items: end; max-width: 620px; min-width: 0; }
.ov-chat[hidden] { display: none; }
.ov-chat .oc-line { font-size: 22px; color: var(--paper); background: rgba(13,14,17,.85); border-radius: 10px; padding: 6px 12px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; animation: ocIn .4s ease-out; }
.ov-chat .oc-line b { color: var(--gold-hi); margin-right: 6px; }
@keyframes ocIn { from { opacity: 0; transform: translateY(8px); } }
.stage-wrap .ov-foot:has(.ov-chat:not([hidden])) .ticker { display: none; }
.hchat ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; max-height: 320px; overflow: auto; }
.hchat li { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: #121317; border-radius: 10px; padding: 8px; }
.hchat li span { flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; color: #d8d1bf; }
.hchat li b { color: var(--gold-hi); margin-right: 4px; }
.hchat li .hbtn { min-height: 38px; padding: 6px 10px; font-size: 13px; }
.hchat li.empty { color: var(--muted); }
.me-chat { position: relative; min-height: 44px; padding: 0 12px; border-radius: 99px; border: 1px solid #3b362d; background: transparent; color: var(--paper); font-weight: 800; font-size: 14px; }
.me-chat .chat-badge { position: absolute; top: -6px; right: -6px; }
@media (max-width: 360px) { .me-bar:has(.me-chat) .me-name { display: none; } .me-chat { padding: 0 10px; } }

/* overlay layout: the footer (join link + chat) always stays inside the 1080 frame */
.stage { grid-template-rows: 110px minmax(0, 1fr) 150px; }
.ov-stage { min-height: 0; }
.ov-open + .ov-pulls { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 10px; padding: 14px; } /* guess window: one slim row of backs */
.ov-foot { min-width: 0; }
.ov-foot .join-cta { flex: none; }
.join-cta .title { white-space: nowrap; overflow-wrap: normal; }
.ov-chat { flex: 1 1 0; min-width: 0; max-width: 560px; gap: 5px; }
.ov-chat .oc-line { font-size: 19px; padding: 5px 12px; }
.ov-chat.off { display: none; }
.stage-wrap .ov-foot:has(.ov-chat.off) .ticker { display: block; }
#hchatshow { margin-top: 10px; }

/* overlay footer: the join link keeps its width, a long prize wraps instead of squeezing the chat away */
.ov-foot .join-cta { flex: 0 1 auto; max-width: 66%; min-width: 0; }
.join-cta .eyebrow { white-space: normal; line-height: 1.35; }
.ov-chat { flex: 1 1 340px; min-width: 340px; }
.scan-code { display: grid; gap: 4px; font-size: 14px; color: #d8d1bf; }
.scan-code[hidden] { display: none; }
.scan-code input { font: 500 16px var(--body); color: var(--paper); background: #0b0c0f; border: 1px solid #3a352d; border-radius: 10px; padding: 10px; min-height: 44px; }

.mg-code { display: grid; gap: 4px; font-size: 14px; color: #d8d1bf; }
.mg-code[hidden] { display: none; }
.mg-code input { font: 500 16px var(--body); color: var(--paper); background: #0b0c0f; border: 1px solid #3a352d; border-radius: 10px; padding: 10px; min-height: 44px; }

.su-card a.big-btn { text-decoration: none; }

/* audit 27 Oct: Lock in clears the bottom bar; X stream is a slim bar, not a 16:9 box */
.sticky-cta { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
html { scroll-padding-bottom: calc(150px + env(safe-area-inset-bottom, 0px)); }
.stream.x-mode { position: relative; }
.stream.x-mode .stream-frame { aspect-ratio: auto; }
.stream.x-mode .x-card { position: static; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; text-align: left; }
.stream.x-mode .x-card .x-logo { display: none; }
.stream.x-mode .x-card p { font-size: 13px; }
.stream.x-mode .x-btn { flex: none; min-height: 44px; display: inline-flex; align-items: center; }
.stream.x-mode .stream-bar, .stream.one-src .stream-tabs { display: none; }
.stream-toggle, .stream-tabs button, .me-help, .link, .fine a { min-height: 44px; }
/* phone leaderboard */
.p-board { margin-top: 18px; background: #101114; border: 1px solid #25221d; border-radius: 12px; padding: 12px 14px; }
.p-board h3 { margin: 0 0 6px; font: 600 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.p-board ol { margin: 0; padding-left: 22px; display: grid; gap: 4px; }
.p-board li > * { vertical-align: middle; }
.p-board li { display: list-item; }
.p-board li b { float: right; }
.p-board li.me { color: var(--gold-hi); font-weight: 700; }
.claim { font-family: var(--mono); font-size: 1.15em; color: var(--gold-hi); letter-spacing: .12em; font-style: normal; }
/* host: long names and inputs */
.mini-board ol { grid-template-columns: minmax(0, 1fr); }
.mini-board li { min-width: 0; }
.mini-board li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tool-row #pz, .tool-row #xb { width: min(340px, 60vw); }
.sheet-card a.big-btn { color: #fff; text-decoration: none; }
.mission.wait { text-align: left; padding: 0; color: inherit; }
.rules-page .big-btn { margin-top: 18px; display: inline-flex; text-decoration: none; }
/* overlay: the round winner holds about 10 s */
.ov-callout.show.hold { animation: calloutHold 10s cubic-bezier(.2,.9,.2,1) forwards; }
@keyframes calloutHold { 0% { opacity: 0; transform: translate(-50%,-50%) scale(1.8); } 4% { opacity: 1; transform: translate(-50%,-50%) scale(.95); } 7% { transform: translate(-50%,-50%) scale(1); } 94% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%,-50%) scale(1.04); } }
.stream.x-mode.collapsed .stream-frame { display: block; }

/* sticky Lock in needs a non-clipping parent: clip, not hidden, keeps sideways overflow out */
.phone { overflow: visible; overflow-x: clip; }
.claim-bar { margin: 8px 0; padding: 10px 12px; border-radius: 10px; background: #1d1a12; border: 1px solid var(--gold); color: var(--paper); font-size: 14px; line-height: 1.45; }

/* rip-on-stream requests */
.ask-row { margin: 14px 16px 96px; padding: 12px 14px; border: 1px dashed #3a352b; border-radius: 12px; color: var(--muted); font-size: 14px; text-align: center; }
.ask-btn { background: none; border: 0; color: var(--gold-hi); font: inherit; font-weight: 700; min-height: 44px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.hreq li.done { opacity: .5; }
.hreq li a { color: var(--gold-hi); }
.hreq li small { color: var(--muted); margin-left: 6px; }

/* auto card reader */
.scan-auto { display: grid; gap: 6px; margin-top: 10px; }
.scan-auto small { color: var(--muted); line-height: 1.4; }
.auto-scan { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 8px 0; padding: 8px 12px; border: 1px solid var(--gold); border-radius: 10px; background: #1d1a12; }
.auto-scan span { flex: 1 1 240px; }

/* ---------- banner overlay (#overlay?layout=banner): camera stays visible, the game is a bottom strip + an edge ring ---------- */
.ov-transparent, .ov-transparent body { background: transparent !important; }
.lay-banner { background: transparent; }
.lay-banner .stage { background: transparent; display: block; padding: 0; }
.lay-banner .stage::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 270px; pointer-events: none; background: linear-gradient(to top, rgba(8,8,10,.94), rgba(8,8,10,.82) 72%, rgba(8,8,10,0)); }
.lay-banner .stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 40; box-shadow: inset 0 0 0 3px rgba(216,184,121,.5), inset 0 0 46px rgba(216,184,121,.16); animation: ringGlow 5s ease-in-out infinite; }
.lay-banner .stage.golden::after { box-shadow: inset 0 0 0 7px var(--gold-hi), inset 0 0 110px rgba(255,214,120,.42); animation-duration: 1.4s; }
@keyframes ringGlow { 50% { opacity: .5; } }
@media (prefers-reduced-motion: reduce) { .lay-banner .stage::after { animation: none; } }
.lay-banner .ov-head { position: absolute; left: 30px; bottom: 28px; width: 310px; height: 200px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; z-index: 2; }
.lay-banner .ov-head .lockup img.og { width: 40px; height: 40px; }
.lay-banner .ov-head .lockup img.mw { height: 20px; }
.lay-banner .ov-head .lockup .title { font-size: 40px; margin-left: 8px; }
.lay-banner .ov-pack { flex-direction: column; align-items: flex-start; gap: 8px; }
.lay-banner .ov-pack .title { font-size: 40px; line-height: 1; }
.lay-banner .ov-pack .title small { display: block; font-size: 22px; margin-top: 6px; }
.lay-banner .ov-pack .ring { width: 62px; height: 62px; font-size: 20px; }
.lay-banner .ov-pack .golden-chip { font-size: 18px; padding: 4px 12px; }
.lay-banner .ov-pack .tally { font-size: 18px; padding: 4px 10px; } .lay-banner .ov-pack .tally b { font-size: 24px; }
.lay-banner .ov-stage { position: absolute; left: 370px; right: 530px; bottom: 28px; height: 200px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; z-index: 2; }
.lay-banner .ov-pulls { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; padding: 10px; border-radius: 14px; }
.lay-banner .ov-battle { grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr); gap: 6px; align-items: end; }
.lay-banner .ov-side { gap: 2px; }
.lay-banner .ov-side-h .nm { font-size: 20px; } .lay-banner .ov-side-h .bp { font-size: 24px; }
.lay-banner .ov-pulls.b { gap: 3px; padding: 5px; }
.lay-banner .ov-vs { font-size: 22px; }
.lay-banner .ov-open { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; height: 200px; zoom: .55; height: 364px; }
.lay-banner .ov-truth { font-size: 16px; }
.lay-banner .ov-callout { top: -230px; }
.lay-banner .ov-callout .title { font-size: 120px; }
.lay-banner .ov-board { position: absolute; right: 30px; bottom: 28px; width: 480px; height: 200px; padding: 12px 16px; gap: 4px; border-radius: 14px; z-index: 2; }
.lay-banner .ov-board::before { display: none; }
.lay-banner .ov-board h3 { font-size: 22px; margin: 0; }
.lay-banner .ov-board h3 span { font-size: 12px; }
.lay-banner .lb { gap: 4px; }
.lay-banner .lb li { grid-template-columns: 30px 1fr auto 80px; gap: 8px; padding: 4px 10px; font-size: 20px; border-radius: 8px; }
.lay-banner .lb li .rk { font-size: 22px; }
.lay-banner .lb li .dl { font-size: 13px; min-width: 36px; }
.lay-banner .lb li:nth-child(n+4), .lay-banner .ov-total { display: none; }
.lay-banner .ov-foot { position: absolute; top: 26px; right: 30px; z-index: 2; display: block; }
.lay-banner .ticker, .lay-banner .ov-chat { display: none; }
.lay-banner .join-cta { gap: 12px; padding: 8px 22px 8px 10px; border-radius: 999px; background: rgba(8,8,10,.86); box-shadow: 0 0 0 2px rgba(216,184,121,.4); }
.lay-banner .join-cta img { width: 44px !important; }
.lay-banner .join-cta .title { font-size: 32px; }
.lay-banner .join-cta .eyebrow { font-size: 12px; }
.lay-banner .ov-break { left: 370px; right: 530px; top: auto; bottom: 28px; height: 200px; z-index: 3; }
.lay-banner .ov-break .title { font-size: 44px; }
.lay-banner .ov-final { background: rgba(5,5,7,.72); }
/* banner: while guessing, the vote bars take the strip (cards come back when the pack opens) */
.lay-banner .stage.ph-open .ov-pulls { display: none; }
.lay-banner .ov-open { height: auto; }

/* banner: callouts low over the strip, the stream-over card inside the strip, room for tally + golden + ring */
.lay-banner .ov-callout { top: -40px; }
.lay-banner .ov-callout .title { font-size: 96px; }
.lay-banner .ov-final { inset: auto 530px 28px 370px; height: 200px; border-radius: 14px; background: rgba(5,5,7,.94); }
.lay-banner .ov-final .title { font-size: 40px; } .lay-banner .ov-final .who { font-size: 60px; } .lay-banner .ov-final .champ { font-size: 30px; margin-bottom: 6px; }
.lay-banner .ov-final .eyebrow { font-size: 14px !important; }
.lay-banner .ov-head .lockup .title { display: none; }
.lay-banner .ov-pack .ring { width: 52px; height: 52px; font-size: 18px; }

/* banner: no callout over the stream-over or break card; long battle names stay in the left column */
.lay-banner .stage.ph-quiet .ov-callout { display: none; }
.lay-banner .ov-pack .tally { max-width: 300px; }
.lay-banner .ov-pack .tally span { max-width: 100px; }

/* ---------- banner v2 (28 Oct): glass lower third, gold light running round the frame, starting-soon card ---------- */
@property --bn-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.lay-banner .stage::before { height: 330px; background: linear-gradient(to top, rgba(5,5,7,.55), rgba(5,5,7,0)); }
.lay-banner .stage::after { box-shadow: inset 0 0 0 2px rgba(216,184,121,.28); animation: none; }
.lay-banner .stage.golden::after { box-shadow: inset 0 0 0 4px rgba(244,220,154,.7), inset 0 0 120px rgba(255,214,120,.35); animation: ringGlow 1.4s ease-in-out infinite; }
/* the plate */
.bn-plate { position: absolute; left: 18px; right: 18px; bottom: 18px; height: 236px; border-radius: 20px; overflow: hidden; z-index: 1; pointer-events: none;
  background: radial-gradient(60% 140% at 50% 120%, rgba(216,184,121,.16), transparent 70%), linear-gradient(180deg, rgba(20,18,14,.9), rgba(6,6,8,.96));
  box-shadow: 0 0 0 1px rgba(216,184,121,.35), 0 -18px 60px rgba(0,0,0,.55), inset 0 1px 0 rgba(244,220,154,.35); }
.bn-plate::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold-hi) 50%, transparent) -60% 0/40% 100% no-repeat; animation: bnSweep 6s ease-in-out infinite; }
@keyframes bnSweep { 0% { background-position: -60% 0; } 55%, 100% { background-position: 160% 0; } }
.bn-plate i { position: absolute; bottom: -10px; width: 4px; height: 4px; border-radius: 50%; background: var(--gold-hi); box-shadow: 0 0 10px 2px rgba(244,220,154,.6); opacity: 0; animation: bnMote 9s linear infinite; }
.bn-plate i:nth-child(1) { left: 4%; } .bn-plate i:nth-child(2) { left: 12%; animation-delay: 3.1s; }
.bn-plate i:nth-child(3) { left: 21%; animation-delay: 6.2s; } .bn-plate i:nth-child(4) { left: 29%; animation-delay: 1.4s; }
.bn-plate i:nth-child(5) { left: 38%; animation-delay: 4.7s; } .bn-plate i:nth-child(6) { left: 47%; animation-delay: 7.9s; }
.bn-plate i:nth-child(7) { left: 55%; animation-delay: 2.2s; } .bn-plate i:nth-child(8) { left: 63%; animation-delay: 5.5s; }
.bn-plate i:nth-child(9) { left: 71%; animation-delay: 8.4s; } .bn-plate i:nth-child(10) { left: 80%; animation-delay: .8s; }
.bn-plate i:nth-child(11) { left: 88%; animation-delay: 3.9s; } .bn-plate i:nth-child(12) { left: 96%; animation-delay: 6.8s; }
@keyframes bnMote { 0% { transform: translate(0, 0) scale(.6); opacity: 0; } 15% { opacity: .9; } 100% { transform: translate(18px, -250px) scale(1.1); opacity: 0; } }
/* light running round the frame: two comets on a masked conic gradient */
.bn-ring { position: absolute; inset: 0; z-index: 41; pointer-events: none; }
.bn-ring b { position: absolute; inset: 0; padding: 3px;
  background: conic-gradient(from var(--bn-a), transparent 0 78%, rgba(244,220,154,.95) 88%, #fff8e2 89%, transparent 90%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  filter: drop-shadow(0 0 8px rgba(244,220,154,.9)); animation: bnSpin 14s linear infinite; }
.bn-ring b + b { animation-delay: -7s; }
@keyframes bnSpin { to { --bn-a: 360deg; } }
.lay-banner .stage.golden .bn-ring b { padding: 6px; animation-duration: 3.5s; background: conic-gradient(from var(--bn-a), transparent 0 60%, rgba(244,220,154,.95) 85%, #fff 88%, transparent 90%); }
/* corner brackets */
.bn-ring::before { content: ""; position: absolute; inset: 14px; --c: var(--gold-hi); --l: 46px;
  background: linear-gradient(var(--c) 0 0) top left/var(--l) 3px, linear-gradient(var(--c) 0 0) top left/3px var(--l),
    linear-gradient(var(--c) 0 0) top right/var(--l) 3px, linear-gradient(var(--c) 0 0) top right/3px var(--l),
    linear-gradient(var(--c) 0 0) bottom left/var(--l) 3px, linear-gradient(var(--c) 0 0) bottom left/3px var(--l),
    linear-gradient(var(--c) 0 0) bottom right/var(--l) 3px, linear-gradient(var(--c) 0 0) bottom right/3px var(--l);
  background-repeat: no-repeat; opacity: .8; filter: drop-shadow(0 0 6px rgba(244,220,154,.6)); }
/* content sits inside the plate */
.lay-banner .ov-head, .lay-banner .ov-stage, .lay-banner .ov-board { bottom: 36px; }
.lay-banner .ov-head { left: 44px; width: 300px; }
.lay-banner .ov-head .lockup img.og { width: 50px; height: 50px; }
.lay-banner .ov-head .lockup img.mw { height: 30px; }
.lay-banner .ov-pack .title { background: linear-gradient(180deg, #fff6dc, var(--gold-hi) 55%, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lay-banner .ov-pack .title small { -webkit-text-fill-color: var(--muted); }
.lay-banner .ov-stage { left: 380px; right: 540px; }
.lay-banner .ov-pulls { background: rgba(0,0,0,.35); }
.lay-banner .ov-board { right: 40px; width: 470px; background: transparent; border-radius: 0; border-left: 1px solid rgba(216,184,121,.25); padding: 6px 4px 6px 26px; }
.lay-banner .lb li { background: rgba(255,255,255,.04); }
.lay-banner .lb li:nth-child(1) { background: linear-gradient(90deg, rgba(216,184,121,.28), rgba(255,255,255,.03) 75%); }
/* waiting slots: faint card backs with a shimmer travelling along the row */
.lay-banner .card.empty .back { background: url(assets/card-back.webp) center/cover; opacity: .16; box-shadow: 0 0 0 1px var(--gold-lo); animation: bnWait 3s ease-in-out infinite; }
.lay-banner .card.empty .back::after { display: none; }
.lay-banner .ov-pulls .card:nth-child(2) .back { animation-delay: .15s; } .lay-banner .ov-pulls .card:nth-child(3) .back { animation-delay: .3s; }
.lay-banner .ov-pulls .card:nth-child(4) .back { animation-delay: .45s; } .lay-banner .ov-pulls .card:nth-child(5) .back { animation-delay: .6s; }
.lay-banner .ov-pulls .card:nth-child(6) .back { animation-delay: .75s; } .lay-banner .ov-pulls .card:nth-child(7) .back { animation-delay: .9s; }
.lay-banner .ov-pulls .card:nth-child(8) .back { animation-delay: 1.05s; } .lay-banner .ov-pulls .card:nth-child(9) .back { animation-delay: 1.2s; }
.lay-banner .ov-pulls .card:nth-child(10) .back { animation-delay: 1.35s; }
@keyframes bnWait { 50% { opacity: .34; } }
/* a card landing: lift and flash before it settles */
.lay-banner .card.in { animation: bnLand .9s cubic-bezier(.2,1.4,.4,1); }
@keyframes bnLand { 0% { transform: translateY(-26px) scale(1.18); filter: brightness(1.8) drop-shadow(0 0 22px rgba(244,220,154,.9)); } 100% { transform: none; filter: none; } }
/* join pill: one line, never spills */
.lay-banner .ov-foot { width: max-content; }
.lay-banner .join-cta { width: max-content; white-space: nowrap; padding: 10px 26px 10px 12px; background: linear-gradient(180deg, rgba(20,18,14,.92), rgba(6,6,8,.94)); box-shadow: 0 0 0 1px rgba(216,184,121,.55), 0 10px 40px rgba(0,0,0,.5); animation: bnPill 4s ease-in-out infinite; }
.lay-banner .join-cta > div { white-space: nowrap; }
@keyframes bnPill { 50% { box-shadow: 0 0 0 1px rgba(244,220,154,.9), 0 0 30px rgba(216,184,121,.35), 0 10px 40px rgba(0,0,0,.5); } }
/* starting soon: before the first state arrives and in the lobby, the plate is one big title card */
.bn-idle { position: absolute; left: 18px; right: 18px; bottom: 18px; height: 236px; z-index: 3; display: none; align-items: center; justify-content: center; gap: 70px; pointer-events: none; }
.lay-banner .stage.no-state .bn-idle, .lay-banner .stage.ph-lobby .bn-idle { display: flex; }
.lay-banner .stage.no-state :is(.ov-head, .ov-stage, .ov-board), .lay-banner .stage.ph-lobby :is(.ov-head, .ov-stage) { visibility: hidden; }
.lay-banner .stage.ph-lobby .bn-idle { right: 540px; gap: 44px; }
.bn-mid { text-align: center; }
.bn-mid .eyebrow { font-size: 16px; color: var(--gold); letter-spacing: .3em; }
.bn-mid .title { font-size: 104px; margin: 8px 0 10px; background: linear-gradient(100deg, var(--gold) 20%, #fff8e2 40%, var(--gold-hi) 50%, var(--gold) 70%) 0 0/250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: bnShine 4.5s linear infinite; filter: drop-shadow(0 4px 0 #000); }
.lay-banner .stage.ph-lobby .bn-mid .title { font-size: 84px; }
@keyframes bnShine { to { background-position: -250% 0; } }
.bn-url { font-family: var(--mono); font-size: 20px; color: var(--paper); letter-spacing: .04em; }
.bn-url b { color: var(--blue); font-weight: 600; }
.bn-fan { position: relative; width: 190px; height: 170px; flex: none; }
.bn-fan i { position: absolute; left: 50%; bottom: 0; width: 96px; aspect-ratio: 864 / 1199; margin-left: -48px; border-radius: 6%/4.3%; transform-origin: 50% 120%;
  background: url(assets/card-back.webp) center/cover; box-shadow: 0 0 0 1px var(--gold-lo), 0 8px 24px rgba(0,0,0,.6); transform: rotate(var(--r)); animation: bnFan 4s ease-in-out infinite; }
.bn-fan i:nth-child(1) { --r: -28deg; } .bn-fan i:nth-child(2) { --r: -14deg; animation-delay: .12s; } .bn-fan i:nth-child(3) { --r: 0deg; animation-delay: .24s; }
.bn-fan i:nth-child(4) { --r: 14deg; animation-delay: .36s; } .bn-fan i:nth-child(5) { --r: 28deg; animation-delay: .48s; }
.bn-fan.r i { animation-direction: reverse; }
@keyframes bnFan { 0%, 100% { transform: rotate(calc(var(--r) * .55)) translateY(4px); } 50% { transform: rotate(var(--r)) translateY(-8px); } }
.lay-banner .stage.ph-lobby .bn-fan { width: 150px; transform: scale(.85); }
@media (prefers-reduced-motion: reduce) { .bn-ring b, .bn-plate i, .bn-plate::before, .bn-fan i, .bn-mid .title, .lay-banner .join-cta, .lay-banner .card.empty .back { animation: none; } }
.lay-banner .ov-pack .title small > i:first-child { display: none; }
.ov-pack .title small > i { font-style: normal; }
/* banner v2 fixes: a break owns the strip even in the lobby; the join pill never clips the code; cheaper animations */
.lay-banner .stage.ph-quiet .bn-idle { display: none; }
.lay-banner .stage.ph-lobby.ph-quiet .ov-head { visibility: visible; }
.lay-banner .ov-foot .join-cta { max-width: none; position: relative; animation: none; }
.lay-banner .join-cta::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: 0 0 0 1px rgba(244,220,154,.9), 0 0 30px rgba(216,184,121,.35); opacity: 0; animation: bnPillA 4s ease-in-out infinite; }
@keyframes bnPillA { 50% { opacity: 1; } }
.bn-ring b { filter: none; }
@media (prefers-reduced-motion: reduce) { .lay-banner .join-cta::after { animation: none; } }
.scan-zone { display: grid; gap: 0; } .scan-zone .scan-btn { justify-self: start; }
/* banner embedded as an iframe (Restream widgets): a dark color-scheme makes Chrome paint an opaque backdrop behind the page */
html.ov-transparent { color-scheme: normal; }
/* only a card that just landed lifts and flashes; a rebuilt row (Undo, reconnect) stays still */
.lay-banner .card.in { animation: none; }
.lay-banner .card.land.in { animation: bnLand .9s cubic-bezier(.2,1.4,.4,1); }

/* scan sheet: drag a box round the camera inside a shared window; camera picker */
.scan-frame { position: relative; }
.scan-frame .scan-video { cursor: crosshair; touch-action: none; display: block; }
.scan-box { position: absolute; border: 2px solid var(--gold-hi); border-radius: 4px; box-shadow: 0 0 0 9999px rgba(0,0,0,.45); pointer-events: none; }
.scan-box[hidden] { display: none; }
.scan-frame { overflow: hidden; border-radius: 12px; }
.scan-boxbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin: 8px 0; font-size: 14px; color: var(--muted); }
.scan-boxbar[hidden], .scan-cams[hidden] { display: none; }
.scan-cams { display: flex; gap: 10px; align-items: center; margin: 8px 0; font-size: 14px; color: var(--muted); }
.scan-cams select { flex: 1; padding: 8px; border-radius: 8px; background: #15140f; color: var(--paper); border: 1px solid #333; }

/* box mode (one call per pack): the overlay shows that call's bars plus a calls-in count; the phone shows one tile */
.ov-open.one, .lay-banner .ov-open.one { grid-template-columns: 2fr 1fr; }
.picks.one { grid-template-columns: 1fr; }
.ov-shot[hidden] { display: none; }
