/* «Контейнеры» — main screen. Style «Склад»: concrete, hazard yellow, big money.
   The game stage is a fixed 1920×1080 canvas scaled to the window. */
:root {
  --bg: #141618; --bg2: #1d2023; --panel: #23272b; --line: #343a40; --fg: #eef0f1; --muted: #8f99a3;
  --yellow: #f2b705; --orange: #d9480f; --green: #3ccf6e; --red: #ff5a4f; --steel: #6d7a86;
  --f-head: "Russo One", "Arial Black", sans-serif; --f-body: "Manrope", "Segoe UI", sans-serif; --f-num: "JetBrains Mono", Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--fg); font-family: var(--f-body); overflow: hidden; }
body[data-page="setup"] { overflow: auto; }
button { font: inherit; color: inherit; cursor: pointer; }
.muted { color: var(--muted); }
.hazard { background: repeating-linear-gradient(-45deg, var(--yellow) 0 22px, #111 22px 44px); }
body[data-page="setup"] .stage, body[data-page="setup"] .toolbar { display: none; }
body[data-page="stage"] .setup { display: none; }
body.idle { cursor: none; }
.money { font-family: var(--f-num); font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.plus { color: var(--green); }
.minus { color: var(--red); }

/* ---------- setup ---------- */
.setup { max-width: 1100px; margin: 0 auto; padding: 28px 22px 140px; display: grid; gap: 36px; }
.setup-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.setup-head .back { color: var(--muted); text-decoration: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; }
.logo { font-family: var(--f-head); font-size: 54px; line-height: 1; letter-spacing: .02em; margin-right: auto; }
.logo small { display: block; font-family: var(--f-body); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); margin-top: 6px; }
.strip { height: 14px; border-radius: 3px; }
.setup h2 { font-family: var(--f-head); font-weight: 400; font-size: 26px; margin: 0 0 8px; }
.setup p { margin: 0 0 12px; max-width: 70ch; line-height: 1.5; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.choice { text-align: left; border: 2px solid var(--line); background: var(--bg2); border-radius: 10px; padding: 16px 18px; display: grid; gap: 6px; }
.choice b { font-size: 19px; }
.choice small { color: var(--muted); line-height: 1.4; }
.choice.on { border-color: var(--yellow); box-shadow: 0 0 0 2px var(--yellow); }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { min-width: 64px; padding: 12px 16px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg2); font-family: var(--f-num); font-weight: 700; }
.pill.on { background: var(--yellow); color: #111; border-color: var(--yellow); }
.toggle { display: flex; align-items: center; gap: 12px; background: none; border: 0; padding: 6px 0; font-size: 17px; text-align: left; }
.toggle i { width: 46px; height: 26px; border-radius: 99px; background: var(--line); position: relative; flex: none; }
.toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--fg); transition: transform .2s; }
.toggle.on i { background: var(--yellow); }
.toggle.on i::after { transform: translateX(20px); background: #111; }
.setup-foot { position: fixed; left: 0; right: 0; bottom: 0; padding: 16px 24px; background: linear-gradient(transparent, var(--bg) 30%); display: flex; justify-content: flex-end; align-items: center; gap: 16px; flex-wrap: wrap; }
.setup-foot .error { color: var(--red); margin-right: auto; }
.primary { background: var(--yellow); color: #111; border: 0; border-radius: 10px; padding: 16px 30px; font-family: var(--f-head); font-size: 20px; letter-spacing: .02em; }
.primary:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- stage ---------- */
.stage { position: fixed; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; overflow: hidden; background: radial-gradient(120% 90% at 50% 0%, #22262a 0%, var(--bg) 60%);
  display: grid; grid-template-rows: 110px minmax(0, 1fr) 150px; padding: 26px 56px 24px; gap: 18px; }
.stage::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px; background: repeating-linear-gradient(-45deg, var(--yellow) 0 22px, #111 22px 44px); }
.top { display: flex; align-items: center; gap: 28px; min-width: 0; }
.brand { font-family: var(--f-head); font-size: 34px; letter-spacing: .03em; }
.brand small { display: block; font-family: var(--f-body); font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); }
.counter { font-family: var(--f-num); font-weight: 800; font-size: 24px; color: var(--muted); }
.title { flex: 1; min-width: 0; text-align: center; font-family: var(--f-head); font-size: 40px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.title small { display: block; font-family: var(--f-body); font-size: 18px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.timer { min-width: 150px; text-align: right; font-family: var(--f-num); font-weight: 800; font-size: 60px; }
.timer.low { color: var(--red); }
.main { min-height: 0; position: relative; }
.main.enter > * { animation: rise .5s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- lobby ---------- */
.lobby { height: 100%; display: grid; grid-template-columns: 640px 1fr; gap: 60px; }
.join { background: var(--panel); border-radius: 18px; padding: 34px; display: grid; gap: 18px; align-content: center; justify-items: center; text-align: center; }
.qr-box { background: #fff; padding: 12px; border-radius: 10px; width: 380px; }
.qr-box svg { width: 100%; display: block; }
.join .url { font-family: var(--f-num); font-weight: 700; font-size: 28px; }
.join .code { font-family: var(--f-num); font-weight: 800; font-size: 96px; color: var(--yellow); letter-spacing: .12em; line-height: 1; }
.seats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-content: start; }
.seat { background: var(--panel); border-radius: 16px; padding: 22px 26px; border: 3px solid transparent; min-height: 170px; display: grid; gap: 6px; align-content: start; }
.seat.empty { border: 3px dashed var(--line); background: none; color: var(--muted); }
.seat .name { font-family: var(--f-head); font-size: 34px; }
.seat .members { font-size: 22px; color: var(--muted); }
.seat .kind { font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); }
.seat .ready { color: var(--green); font-weight: 800; }
.lobby-side { display: grid; grid-template-rows: auto auto 1fr auto; gap: 18px; min-height: 0; }
.lobby-side h2 { margin: 0; font-family: var(--f-head); font-weight: 400; font-size: 48px; }
.lobby-side .rules { font-size: 22px; line-height: 1.45; color: var(--muted); }
.countdown { font-family: var(--f-head); font-size: 50px; color: var(--yellow); }
.rec { color: var(--muted); font-size: 18px; }
.rec::first-letter { color: var(--red); }

/* ---------- layouts: the lobby, and the show (people on the sides, container in the middle) ---------- */
.top { grid-area: top; } .main { grid-area: main; } .foot { grid-area: foot; } .info { grid-area: info; min-height: 0; }
.side-col.left { grid-area: left; } .side-col.right { grid-area: right; }
.stage:not([data-layout="show"]) .side-col, .stage:not([data-layout="show"]) .info { display: none; }
.stage[data-layout="lobby"] { grid-template-areas: "top" "main" "foot"; }
.stage[data-layout="show"] { grid-template-columns: 375px minmax(0, 1fr) 375px; grid-template-rows: 84px minmax(0, 1fr) 112px;
  grid-template-areas: "left top right" "left main right" "left info right"; padding: 18px 14px 14px; gap: 14px; }
.stage[data-layout="show"] .foot { display: none; }
.stage[data-layout="show"] .top { position: relative; gap: 20px; }
.where { flex: 1; min-width: 0; }
.top:has(.cam.host) .where { max-width: calc(50% - 175px); }
.where small { display: block; font-size: 16px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.where b { display: block; font-family: var(--f-head); font-weight: 400; font-size: 38px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage[data-layout="show"] .brand { font-size: 26px; text-align: right; }
.stage[data-layout="show"] .timer { min-width: 110px; }

/* ---------- participants: camera frames and money ---------- */
.side-col { display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.place { flex: 0 0 calc(50% - 7px); display: flex; flex-direction: column; justify-content: flex-start; gap: 6px; min-height: 0; }
.cams { display: flex; flex-direction: column; gap: 6px; flex: none; min-height: 0; }
.cam { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; border: 3px solid #2a2f34;
  background: radial-gradient(80% 90% at 50% 40%, #1f2327, #0d0f11); flex: none; }
.cam .initial { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-head); font-size: 96px; color: #2c3238; }
.cam .who { position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px); background: rgba(0, 0, 0, .65); padding: 4px 10px; border-radius: 6px; font-size: 19px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cam.talk { border-color: var(--green); box-shadow: 0 0 0 3px rgba(60, 207, 110, .35); }
.cam.away .who { color: var(--red); }
.cam.host { position: absolute; left: 50%; top: -4px; transform: translateX(-50%); width: 320px; z-index: 8; }
.bar { background: #0d0f11; border-radius: 10px; padding: 8px 14px 10px; border: 3px solid #2a2f34; transition: border-color .3s, box-shadow .3s; }
.bar .row1 { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.bar .team { font-family: var(--f-head); font-size: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar .bid { color: var(--yellow); font-size: 24px; }
.bar .row2 { display: flex; align-items: baseline; gap: 10px; font-size: 27px; }
.bar .row2 i { font-style: normal; color: var(--muted); }
.place.leading .bar, .place.leading .cam { border-color: var(--yellow); }
.place.leading .bar { box-shadow: 0 0 28px rgba(242, 183, 5, .35); }
.place.owner .bar, .place.owner .cam { border-color: var(--green); }

/* ---------- the yard and the container, drawn ---------- */
.yard { position: absolute; inset: 0; border-radius: 16px; overflow: hidden;
  --wall: #22262a; --ground: #2e3134; --frame: #3a3f45; --door: #8d969e; --door-dark: #6c757d; --in: #4b5156; --in2: #3d4247; --floor: #55595c; --light: rgba(255, 220, 160, .18);
  background: var(--wall); }
.yard::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 13%; background: var(--ground); box-shadow: 0 -2px 0 rgba(0, 0, 0, .35); }
.yard::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 55%, var(--light), transparent 70%); pointer-events: none; }
.t-customs { --wall: linear-gradient(#78b0e6, #d4e7f8 34%, transparent 34%), linear-gradient(transparent 34%, #33557f 34% 47%, #8f3a2e 47% 60%, #2d5d4c 60% 74%, transparent 74%), #9fa3a3;
  --ground: linear-gradient(#a5a8a6, #8a8e8c); --frame: #f2b705; --door: #f2b705; --door-dark: #c99600; --in: #c3c7ca; --in2: #a6abaf; --floor: #8e9192; --light: rgba(255, 255, 255, .08); }
.t-garage { --wall: repeating-linear-gradient(0deg, #6a3828 0 30px, #47261b 30px 33px); --ground: linear-gradient(#36383a, #26282a); --frame: #39443a; --door: #5b6b59; --door-dark: #414d40; --in: #3b3a36; --in2: #2f2e2b; --floor: #4a4843; }
.t-blogger { --wall: radial-gradient(40% 50% at 15% 30%, rgba(214, 58, 249, .35), transparent 70%), radial-gradient(40% 50% at 85% 30%, rgba(58, 214, 249, .3), transparent 70%), #17141f;
  --ground: #1f1c27; --frame: #383d46; --door: #a9afb7; --door-dark: #80868e; --in: #2a2733; --in2: #221f2a; --floor: #34313b; --light: rgba(214, 58, 249, .12); }
.t-grandma { --wall: radial-gradient(50% 60% at 50% 20%, rgba(255, 190, 110, .25), transparent 70%), #3a2d22; --ground: #2b2119; --frame: #51463d; --door: #b39b7c; --door-dark: #8d775b; --in: #4d3d2f; --in2: #3f3226; --floor: #5d4835; }
.t-restaurant { --wall: repeating-linear-gradient(0deg, #d3d8da 0 40px, #b8bec1 40px 42px), #d3d8da; --ground: #6e7376; --frame: #757c81; --door: #c8cdd0; --door-dark: #9aa1a6; --in: #646b6f; --in2: #575d61; --floor: #7f8588; --light: rgba(255, 255, 255, .05); }
.t-startup { --wall: linear-gradient(90deg, transparent 0 24%, rgba(255, 255, 255, .5) 24% 25%, transparent 25% 75%, rgba(255, 255, 255, .5) 75% 76%, transparent 76%), linear-gradient(#e7edf3, #c9d3dd); --ground: #8d96a0; --frame: #2c333d; --door: #e3e8ec; --door-dark: #b5bdc6; --in: #c0c8d0; --in2: #aab3bd; --floor: #9aa3ad; --light: rgba(255, 255, 255, .05); }

.unit { position: absolute; left: 50%; bottom: 7%; width: 80%; height: 82%; transform: translateX(-50%); z-index: 2; }
.swing .unit { border: 20px solid var(--frame); border-radius: 4px; box-shadow: 0 30px 50px rgba(0, 0, 0, .45); }
.roller .unit { border: 28px solid var(--frame); border-top-width: 48px; overflow: hidden; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .3), 0 20px 40px rgba(0, 0, 0, .4); }
.inside { position: absolute; inset: 0; overflow: hidden; background: var(--in2); }
.inside i { position: absolute; inset: 0; }
.inside .w-top { background: var(--in2); filter: brightness(.6); clip-path: polygon(0 0, 100% 0, 78% 16%, 22% 16%); }
.inside .w-left { background: repeating-linear-gradient(90deg, var(--in) 0 16px, var(--in2) 16px 24px); clip-path: polygon(0 0, 22% 16%, 22% 66%, 0 100%); filter: brightness(.85); }
.inside .w-right { background: repeating-linear-gradient(90deg, var(--in) 0 16px, var(--in2) 16px 24px); clip-path: polygon(100% 0, 78% 16%, 78% 66%, 100% 100%); filter: brightness(.85); }
.inside .w-back { inset: 16% 22% 34% 22%; background: repeating-linear-gradient(90deg, var(--in) 0 22px, var(--in2) 22px 30px); filter: brightness(.55); }
.inside .w-floor { background: linear-gradient(color-mix(in srgb, var(--floor) 60%, #000), var(--floor)); clip-path: polygon(22% 66%, 78% 66%, 100% 100%, 0 100%); }
.inside::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 140px rgba(0, 0, 0, .75); pointer-events: none; z-index: 1; }

/* what stands inside: unknown things at the back, the visible ones in front */
.back-row { position: absolute; left: 20%; right: 20%; bottom: 31%; height: 34%; display: flex; align-items: flex-end; justify-content: center; z-index: 2; }
.prop { flex: none; margin: 0 -1%; box-shadow: 0 10px 18px rgba(0, 0, 0, .5); filter: brightness(.8); }
.prop.box { width: 17%; height: 52%; border-radius: 3px; background: linear-gradient(90deg, transparent 44%, rgba(255, 240, 200, .35) 44% 56%, transparent 56%), linear-gradient(#c49558, #9d723f); }
.prop.box.tall { height: 82%; }
.prop.box.wide { width: 26%; height: 40%; }
.prop.tarp { width: 25%; height: 72%; border-radius: 48% 52% 6px 6px / 70% 70% 6px 6px; background: radial-gradient(60% 50% at 40% 30%, #74879a, #46566a); }
.prop.tarp.low { height: 46%; width: 30%; }
.prop.crate { width: 18%; height: 60%; background: repeating-linear-gradient(0deg, #8a6a3e 0 16px, #6b4f2c 16px 19px); border: 5px solid #5a4124; }
.prop.crate.tall { height: 88%; }
.prop.bag { width: 13%; height: 40%; border-radius: 42% 42% 18% 18%; background: radial-gradient(60% 50% at 40% 30%, #3b3b3b, #1b1b1b); }
.front-row { position: absolute; left: 5%; right: 5%; bottom: 3%; height: 42%; display: flex; align-items: flex-end; justify-content: center; gap: 2%; z-index: 3; }
.thing { position: relative; flex: 0 1 30%; height: 100%; display: flex; align-items: flex-end; justify-content: center; min-width: 0; }
.tag { width: 100%; height: 62%; display: grid; place-items: center; border-radius: 4px; padding: 6%;
  background: linear-gradient(90deg, transparent 46%, rgba(255, 240, 200, .4) 46% 54%, transparent 54%), linear-gradient(#cfa064, #a77a43); box-shadow: 0 14px 22px rgba(0, 0, 0, .55); }
.tag span { background: #f4f1e8; color: #1c1c1c; font-weight: 800; font-size: 22px; line-height: 1.15; text-align: center; padding: 8px 12px; border-radius: 3px; transform: rotate(-2deg); box-shadow: 0 2px 4px rgba(0, 0, 0, .3); max-width: 100%; overflow-wrap: anywhere; }
.thing img, .pop .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: bottom; filter: drop-shadow(0 14px 16px rgba(0, 0, 0, .6)); }
.thing.art .tag, .pic.art .tag { display: none; }

/* doors: two swinging leaves, or a roller shutter */
.leaf { position: absolute; top: 0; bottom: 0; width: 50%; z-index: 4; background: repeating-linear-gradient(90deg, var(--door) 0 34px, var(--door-dark) 34px 42px); border: 8px solid var(--door-dark); }
.leaf::before { content: ""; position: absolute; top: 3%; bottom: 3%; left: 28%; width: 10px; border-radius: 5px; background: #4b4f53; box-shadow: 70px 0 #4b4f53; }
.leaf.l { left: 0; transform-origin: left center; }
.leaf.r { right: 0; transform-origin: right center; }
.unit.open .leaf.l { transform: perspective(1600px) rotateY(-110deg); }
.unit.open .leaf.r { transform: perspective(1600px) rotateY(110deg); }
.unit.opening .leaf.l { animation: swing-l 2s .5s cubic-bezier(.6, .05, .3, 1) both; }
.unit.opening .leaf.r { animation: swing-r 2s .5s cubic-bezier(.6, .05, .3, 1) both; }
@keyframes swing-l { from { transform: perspective(1600px) rotateY(0); } to { transform: perspective(1600px) rotateY(-110deg); } }
@keyframes swing-r { from { transform: perspective(1600px) rotateY(0); } to { transform: perspective(1600px) rotateY(110deg); } }
.shutter { position: absolute; inset: 0; z-index: 4; background: repeating-linear-gradient(180deg, var(--door) 0 22px, var(--door-dark) 22px 26px); box-shadow: inset 0 -12px 0 var(--door-dark); }
.unit.open .shutter { transform: translateY(-93%); }
.unit.opening .shutter { animation: roll 2s .5s cubic-bezier(.5, 0, .3, 1) both; }
@keyframes roll { from { transform: none; } to { transform: translateY(-93%); } }
.face { position: absolute; inset: 0; z-index: 5; display: grid; align-content: center; justify-items: center; gap: 34px; padding: 6%; text-align: center; pointer-events: none; }
.plate { font-family: var(--f-head); font-size: 50px; color: #2b2f33; padding: 10px 34px; border-radius: 8px; border: 3px solid #6b7177;
  background: linear-gradient(#e2e5e7, #9aa0a6); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .6), 0 8px 16px rgba(0, 0, 0, .5); }
.story { margin: 0; max-width: 88%; font-size: 30px; line-height: 1.4; font-weight: 600; background: rgba(13, 15, 17, .82); padding: 18px 26px; border-radius: 12px; }
.unit.open .face { display: none; }
.unit.opening .face { animation: fade-out .5s both; }
@keyframes fade-out { to { opacity: 0; } }

/* the item just taken out */
.pop { position: absolute; left: 50%; bottom: 5%; width: 84%; transform: translateX(-50%); z-index: 6; display: grid; grid-template-columns: 260px minmax(0, 1fr) auto; gap: 26px; align-items: center;
  background: rgba(14, 16, 18, .94); border: 3px solid #2f353b; border-radius: 18px; padding: 18px 28px; box-shadow: 0 30px 60px rgba(0, 0, 0, .6); animation: pop-in .55s cubic-bezier(.2, 1.3, .4, 1) both; }
@keyframes pop-in { from { transform: translateX(-50%) translateY(60px) scale(.85); opacity: 0; } to { transform: translateX(-50%); opacity: 1; } }
.pop .pic { position: relative; height: 220px; display: flex; align-items: flex-end; }
.pop .pic .tag { height: 80%; }
.pop .name { font-family: var(--f-head); font-size: 40px; line-height: 1.1; }
.pop .note { font-size: 23px; color: var(--muted); margin-top: 6px; }
.pop .value { font-size: 62px; }
.pop.jackpot { border-color: var(--yellow); box-shadow: 0 0 60px rgba(242, 183, 5, .5); }
.pop.jackpot .value { color: var(--yellow); }
.pop.disposal, .pop.stolen { border-color: var(--red); }
.special { display: inline-block; font-size: 17px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; padding: 5px 12px; border-radius: 6px; margin-bottom: 8px; }
.special.fake { background: var(--steel); }
.special.safe { background: #444; color: var(--yellow); }
.special.jackpot { background: var(--yellow); color: #111; }
.special.disposal { background: var(--red); }
.special.stolen { background: #1f4ea8; }
.banner { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%) rotate(-4deg); z-index: 6; font-family: var(--f-head); font-size: 120px; padding: 22px 60px; background: var(--yellow); color: #111; box-shadow: 0 30px 60px rgba(0,0,0,.6); white-space: nowrap; animation: stamp .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.banner.missed { background: var(--steel); color: #fff; font-size: 80px; }
@keyframes stamp { from { transform: translate(-50%, -50%) rotate(-4deg) scale(2); opacity: 0; } to { transform: translate(-50%, -50%) rotate(-4deg) scale(1); opacity: 1; } }
.verdict { position: absolute; inset: 0; z-index: 6; display: grid; align-content: center; justify-items: center; gap: 16px; text-align: center; background: rgba(10, 11, 12, .74); animation: rise .5s both; }
.verdict .who { font-family: var(--f-head); font-size: 54px; }
.verdict .big { font-size: 120px; line-height: 1; }
.verdict .label { font-size: 26px; margin: 0; }
.verdict .sub { font-size: 30px; color: var(--muted); }

/* the strip under the container */
.strip { height: 100%; display: flex; align-items: center; gap: 22px; background: var(--panel); border-radius: 16px; padding: 0 28px; font-size: 26px; min-width: 0; }
.strip .label { margin: 0; }
.strip .grow { flex: 1; min-width: 0; }
.strip .push { margin-right: auto; min-width: 140px; }
.strip .muted.grow { font-size: 22px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.strip .start { font-size: 44px; }
.strip .price { font-size: 72px; line-height: 1; color: var(--yellow); }
.strip .leader { font-family: var(--f-head); font-size: 36px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.strip .leader small { display: block; font-family: var(--f-body); font-size: 18px; color: var(--muted); }
.strip .total { font-size: 42px; }
.going { font-family: var(--f-head); font-size: 56px; color: var(--orange); min-width: 190px; text-align: right; }

/* table and final, in the middle */
.board { position: absolute; inset: 0; display: grid; align-content: center; gap: 12px; padding: 30px 40px; border-radius: 16px; background: var(--bg2); animation: rise .5s both; }
.board > .muted { font-size: 20px; margin: 6px 0 0; }
.trow { display: grid; grid-template-columns: 54px minmax(0, 1fr) 200px 200px 230px; gap: 14px; align-items: center; background: var(--panel); border-radius: 12px; padding: 14px 20px; font-size: 24px; }
.trow.head { background: none; padding-top: 0; padding-bottom: 0; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.trow.head span:nth-child(n+3) { text-align: right; }
.trow .place-no { font-family: var(--f-head); font-size: 36px; color: var(--yellow); }
.trow .name { font-family: var(--f-head); font-size: 28px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trow .name small { display: block; font-family: var(--f-body); font-size: 17px; color: var(--muted); }
.trow .money { font-size: 26px; text-align: right; }
.trow .net { font-size: 32px; }
.trow.first { outline: 3px solid var(--yellow); }
.winner { font-family: var(--f-head); font-size: 76px; color: var(--yellow); line-height: 1; margin-bottom: 10px; }
.panel { background: var(--panel); border-radius: 16px; padding: 20px 24px; }
.label { font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); margin: 0 0 8px; font-weight: 800; }
.awards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; }
.awards .panel { font-size: 22px; }

.pause { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; background: rgba(10, 11, 12, .78); }
.pause:empty { display: none; }
.pause div { text-align: center; font-size: 30px; }
.pause b { display: block; font-family: var(--f-head); font-size: 150px; color: var(--yellow); }

/* host controls, outside the stage */
.toolbar { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 50; display: flex; gap: 6px; padding: 8px; border-radius: 14px; background: rgba(10,12,12,.88); flex-wrap: wrap; justify-content: center; max-width: calc(100vw - 20px); transition: opacity .3s; }
body.idle .toolbar { opacity: 0; pointer-events: none; }
.toolbar button { border: 0; border-radius: 9px; background: rgba(255,255,255,.08); color: #f3f3f0; padding: 10px 14px; font: 600 14px system-ui, sans-serif; }
.toolbar button.primary { background: var(--yellow); color: #111; font-family: system-ui, sans-serif; font-size: 14px; padding: 10px 14px; }
.status { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 70; background: var(--red); color: #fff; padding: 8px 16px; border-radius: 99px; font: 600 14px system-ui; display: none; }
.status.on { display: block; }
.toast { position: fixed; top: 12px; right: 12px; z-index: 70; background: rgba(15,15,15,.92); color: #fff; padding: 12px 16px; border-radius: 10px; font: 500 15px system-ui; opacity: 0; transition: opacity .3s; pointer-events: none; }
.toast.on { opacity: 1; }

/* ---------- camera frames: all on the left, or hidden ---------- */
.stage[data-layout="show"][data-cams="one"] { grid-template-columns: 620px minmax(0, 1fr); grid-template-areas: "left top" "left main" "left info"; }
.stage[data-cams="one"] .side-col.right { display: none; }
.stage[data-cams="one"] .place { flex: 0 0 calc(25% - 10.5px); }
.stage[data-cams="one"] .cams { flex-direction: row; align-items: flex-end; justify-content: flex-start; }
.stage[data-cams="one"] .side-col .cam { width: calc(50% - 3px); }
.stage[data-cams="one"] .bar { display: flex; align-items: baseline; gap: 16px; padding: 8px 14px; }
.stage[data-cams="one"] .bar .row1 { flex: 1; min-width: 0; }
.stage[data-layout="show"][data-cams="off"] { grid-template-columns: minmax(0, 1fr); grid-template-rows: 84px minmax(0, 1fr) 112px 96px; grid-template-areas: "top" "main" "info" "foot"; }
.stage[data-cams="off"] .side-col { display: none; }
.stage[data-layout="show"][data-cams="off"] .foot { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stage[data-cams="off"] .foot .bar { height: 100%; }
.stage[data-cams="off"] .unit { max-width: 1300px; }

/* a live camera in its frame */
.cam video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.cam.live .initial { display: none; }
.cam .who { z-index: 1; }

/* the note under the «Общий экран» checkbox */
.toggle-note { margin: -4px 0 10px 58px !important; font-size: 14px; }
.choice:disabled { opacity: .45; cursor: not-allowed; }
