/* The broadcast lobby (broadcast-lobby.js): a CRT set on a bar wall, channels on the screen, presets on the side.
   Scoped to html.broadcast with doubled ids so it outranks the older lobby layers it rearranges. */
html.broadcast body #menu#menu{position:fixed;inset:0;padding:0;margin:0;overflow:hidden;max-width:none;
  background:radial-gradient(ellipse 60% 50% at 50% 40%,#2a1c30 0,transparent 70%),repeating-linear-gradient(0deg,#00000040 0 2px,transparent 2px 38px),repeating-linear-gradient(90deg,#00000030 0 2px,transparent 2px 76px),linear-gradient(#1a1416,#0c0a0b)}
html.broadcast body #menu#menu>.lobby{max-width:none;width:100%;height:100%;margin:0;padding:0;background:none;border:0;box-shadow:none}
html.broadcast body #menu#menu>.lobby>:not(.bc-room){display:none!important}
html.broadcast body #menu#menu .bc-room{position:relative;height:100%;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto auto;justify-items:center;gap:8px;padding:14px 16px 6px;color:var(--bb-text)}
html.broadcast body #menu#menu .bc-logo{position:absolute;left:10px;top:4px;z-index:4;width:118px;height:auto;transform:rotate(-7deg);filter:drop-shadow(3px 4px 0 #000)}

/* The set. */
html.broadcast body #menu#menu .bc-tv{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 168px;gap:18px;width:min(1320px,100%);height:100%;min-height:0;padding:20px;border-radius:32px 32px 26px 26px;
  background:linear-gradient(145deg,#4a443a,#2a2620 45%,#1b1814);box-shadow:inset 0 2px 0 #6c6455,inset 0 -6px 0 #0d0b09,0 30px 60px #000c,0 0 0 4px #0b0a08}
html.broadcast body #menu#menu .bc-screen{position:relative;min-height:0;overflow:hidden;border-radius:4%/7%;background:#05070a;box-shadow:inset 0 0 0 6px #0a0a09,inset 0 0 40px #000,0 0 0 3px #000}
html.broadcast body #menu#menu .bc-feed{position:absolute;inset:0}
html.broadcast body #menu#menu .bc-set{position:absolute;inset:-2%;filter:saturate(.7) brightness(.62);background:linear-gradient(180deg,#0c110dbb,#0c110d66 40%,#0c110de8 90%),url('assets/radioactive-junkyard-stage.webp') center 30%/cover;background:linear-gradient(180deg,#0c110dbb,#0c110d66 40%,#0c110de8 90%),image-set(url('assets/radioactive-junkyard-stage.avif') type('image/avif'),url('assets/radioactive-junkyard-stage.webp') type('image/webp')) center 30%/cover}
html.broadcast body #menu#menu .bc-beam{position:absolute;top:-5%;width:24%;height:88%;background:linear-gradient(#fff3c400,#fff3c422 60%,#fff3c430);clip-path:polygon(44% 0,56% 0,100% 100%,0 100%);mix-blend-mode:screen;transform-origin:50% 0;animation:bc-sweep 9s ease-in-out infinite alternate}
html.broadcast body #menu#menu .bc-beam.l{left:10%;transform:rotate(14deg)}
html.broadcast body #menu#menu .bc-beam.r{left:30%;transform:rotate(-14deg);animation-delay:-4s}
@keyframes bc-sweep{to{rotate:-8deg}}
html.broadcast body #menu#menu .bc-plinth{position:absolute;left:27%;top:80%;width:min(30%,420px);aspect-ratio:5/1;transform:translate(-50%,-50%);border-radius:50%;
  background:radial-gradient(ellipse at 50% 40%,#5a4a1a 0,#2a2210 55%,#0c0a06 72%,transparent 74%);box-shadow:0 0 0 3px #05080c,0 0 0 6px #ffe46b66,0 0 70px #ffe46b33}
html.broadcast body #menu#menu .bc-stage{position:absolute;left:0;width:54%;top:3%;height:84%}
html.broadcast body #menu#menu .bc-stage #champion-preview{position:absolute;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;border:0;background:none;image-rendering:pixelated}
html.broadcast body #menu#menu .bc-stage #champion-facing{position:absolute;left:4%;top:44%;z-index:3}
html.broadcast body #menu#menu .bc-crowd{position:absolute;left:-2%;right:-2%;bottom:0;height:20%;pointer-events:none;background:
  radial-gradient(circle at 50% 38%,#05070a 0 13px,transparent 14px) 22px 6px/54px 100% repeat-x,radial-gradient(ellipse 26px 30px at 50% 100%,#05070a 0 98%,transparent) 22px 0/54px 70% repeat-x,
  radial-gradient(circle at 50% 30%,#0a0d10 0 12px,transparent 13px) 0 0/48px 100% repeat-x,radial-gradient(ellipse 24px 30px at 50% 100%,#0a0d10 0 98%,transparent) 0 -8px/48px 62% repeat-x,
  linear-gradient(transparent 62%,#05070a 62%);animation:bc-bob 1.2s ease-in-out infinite alternate}
@keyframes bc-bob{to{transform:translateY(4px)}}

/* Broadcast graphics. */
html.broadcast body #menu#menu .bc-bug{position:absolute;top:3.5%;left:2.5%;z-index:3;display:flex;gap:6px;align-items:center}
html.broadcast body #menu#menu .bc-live{padding:3px 8px;background:#e8122b;color:#fff;font:var(--bb-label-m);letter-spacing:.1em;box-shadow:2px 2px 0 #000}
html.broadcast body #menu#menu .bc-live:before{content:'● ';animation:bc-blink 1s steps(2) infinite}
@keyframes bc-blink{50%{opacity:0}}
html.broadcast body #menu#menu .bc-station{padding:2px 8px;background:#ffe46b;color:#111;font:var(--bb-display-s);font-size:20px;letter-spacing:.04em;transform:skewX(-10deg);box-shadow:2px 2px 0 #000}
html.broadcast body #menu#menu .bc-osd{position:absolute;top:3%;left:47%;z-index:3;font:var(--bb-number-xl);font-size:36px;color:#7dff6a;text-shadow:0 0 6px #7dff6a,0 0 2px #fff;letter-spacing:.06em;pointer-events:none}
html.broadcast body #menu#menu .bc-sponsor{position:absolute;top:11%;left:2.5%;z-index:3;margin:0;padding:6px 10px;background:#000000b0;border:2px solid #ffe46b;font:var(--bb-label-s);letter-spacing:.06em;color:#ffe46b;max-width:260px;pointer-events:none}
html.broadcast body #menu#menu .bc-sponsor b{display:block;color:#fff;font:var(--bb-display-s);font-size:17px;letter-spacing:.03em}
html.broadcast body #menu#menu .bc-chyron{position:absolute;left:3%;bottom:14%;z-index:3;display:flex;flex-direction:column;align-items:flex-start;pointer-events:none}
html.broadcast body #menu#menu .bc-tag{padding:3px 22px 3px 14px;background:#ffe46b;color:#111;font:var(--bb-label-m);letter-spacing:.1em;text-transform:uppercase;clip-path:polygon(0 0,100% 0,92% 100%,0 100%)}
html.broadcast body #menu#menu .bc-name{padding:4px 40px 6px 16px;background:linear-gradient(#1b2bd8,#0b1690);color:#fff;font:var(--bb-display-xl);font-size:52px;letter-spacing:.03em;text-transform:uppercase;text-shadow:3px 3px 0 #000;clip-path:polygon(0 0,100% 0,95% 100%,0 100%);border-top:3px solid #6ad1ff}
html.broadcast body #menu#menu .bc-facts{display:flex;font:var(--bb-label-m);font-size:12px;letter-spacing:.06em;text-transform:uppercase}
html.broadcast body #menu#menu .bc-facts>span{display:flex;align-items:center;gap:5px;padding:4px 12px;background:#2a2a2a;color:#ddd;clip-path:polygon(4% 0,100% 0,96% 100%,0 100%)}
html.broadcast body #menu#menu .bc-facts .bc-play{background:#05080c;color:var(--bb-lime)}
html.broadcast body #menu#menu .bc-facts .bc-glow{background:#111;color:#c8ff3c}

/* Channels: the right half of the screen, TV Guide navy, scrolling inside. */
html.broadcast body #menu#menu .bc-channels{position:absolute;right:2%;top:4%;bottom:11.5%;width:min(50%,640px);z-index:4}
html.broadcast body #menu#menu .bc-channel{height:100%;display:flex;flex-direction:column;background:#0a1a6ef0;border:3px solid #000;box-shadow:4px 4px 0 #000}
html.broadcast body #menu#menu .bc-channel[hidden]{display:none}
html.broadcast body #menu#menu .bc-channel-head{flex:none;display:flex;gap:10px;align-items:baseline;padding:6px 10px;background:#000;color:#ffe46b;font:var(--bb-label-m);letter-spacing:.08em;text-transform:uppercase}
html.broadcast body #menu#menu .bc-channel-head b{font:var(--bb-number-m);color:#7dff6a}
html.broadcast body #menu#menu .bc-channel-body{flex:1;min-height:0;overflow:auto;padding:12px;display:flex;flex-direction:column;gap:12px;scrollbar-color:#3a4fd0 transparent}
html.broadcast body #menu#menu .bc-channel-body>*{margin:0;max-width:none;width:auto}
html.broadcast body #menu#menu .bc-channel-body :is(.build-panel,.launch-bottom,.account-panel){background:none;border:0;box-shadow:none;padding:0}
html.broadcast body #menu#menu .bc-channel-body .play-actions{position:static;display:flex;flex-wrap:wrap;gap:8px;padding:0;background:none;border:0;box-shadow:none;z-index:auto}
html.broadcast body #menu#menu .bc-channel-body #start{display:none}
html.broadcast body #menu#menu .bc-guest{margin:0;padding:8px 10px;background:#06104a;border:2px dashed #3a4fd0;font:var(--bb-body-s);color:#dfe6ff}
html.broadcast body #menu#menu .account-panel~.bc-guest{display:none}
html.broadcast body #menu#menu .bc-ticker{position:absolute;left:2.5%;right:2.5%;bottom:3%;z-index:4;display:flex;height:34px;background:#000;border-top:3px solid #e8122b;overflow:hidden}
html.broadcast body #menu#menu .bc-ticker b{flex:none;display:grid;place-items:center;padding:0 12px;background:#e8122b;color:#fff;font:var(--bb-display-s);font-size:17px;letter-spacing:.04em}
html.broadcast body #menu#menu .bc-ticker div{flex:1;overflow:hidden;white-space:nowrap}
html.broadcast body #menu#menu .bc-ticker p{display:inline-block;margin:0;padding:8px 0 0 100%;font:var(--bb-label-m);letter-spacing:.06em;color:#ffe46b;animation:bc-crawl 46s linear infinite}
@keyframes bc-crawl{to{transform:translateX(-100%)}}
/* CRT glass: scanlines, a rolling band, glare; never catches clicks. */
html.broadcast body #menu#menu .bc-crt{position:absolute;inset:0;z-index:6;pointer-events:none;background:repeating-linear-gradient(#0000 0 2px,#00000030 2px 3px),radial-gradient(ellipse 80% 75% at 50% 50%,transparent 62%,#0009 100%)}
html.broadcast body #menu#menu .bc-crt:before{content:'';position:absolute;left:0;right:0;height:14%;background:linear-gradient(#ffffff00,#ffffff0b,#ffffff00);animation:bc-roll 7s linear infinite}
@keyframes bc-roll{from{top:-15%}to{top:110%}}
html.broadcast body #menu#menu .bc-static{position:absolute;inset:0;z-index:7;width:100%;height:100%;opacity:0;image-rendering:pixelated;pointer-events:none}
html.broadcast body #menu#menu .bc-static.on{animation:bc-fuzz .35s steps(1) 1}
@keyframes bc-fuzz{0%{opacity:1}80%{opacity:.85}100%{opacity:0}}

/* Control panel: grille, presets, knobs, GO LIVE. */
html.broadcast body #menu#menu .bc-panel{display:flex;flex-direction:column;gap:10px;min-height:0}
html.broadcast body #menu#menu .bc-grille{flex:none;height:56px;border-radius:8px;background:radial-gradient(circle,#0b0a08 0 2px,transparent 2.5px) 0 0/8px 8px,#2c2822;box-shadow:inset 0 2px 4px #000}
html.broadcast body #menu#menu .bc-presets{display:grid;gap:6px}
html.broadcast body #menu#menu .bc-preset{display:grid;grid-template-columns:44px 1fr;align-items:center;gap:8px;min-height:0;margin:0;padding:5px 8px 5px 5px;background:linear-gradient(#3a352c,#211e19);border:2px solid #0b0a08;border-radius:6px;border-image:none;box-shadow:inset 0 1px 0 #6c6455,0 3px 0 #0b0a08;text-align:left;filter:none;transform:none;cursor:pointer}
html.broadcast body #menu#menu .bc-preset i{display:grid;place-items:center;height:30px;background:#0d1a0b;border:2px solid #000;font:var(--bb-number-m);font-style:normal;color:#3d7a32}
html.broadcast body #menu#menu .bc-preset span{font:var(--bb-label-m);letter-spacing:.06em;text-transform:uppercase;color:#cfc6b2;text-shadow:none}
html.broadcast body #menu#menu .bc-preset:hover{background:linear-gradient(#4a443a,#2a2620)}
html.broadcast body #menu#menu .bc-preset[aria-pressed=true]{transform:translateY(2px);box-shadow:inset 0 1px 0 #6c6455,0 1px 0 #0b0a08}
html.broadcast body #menu#menu .bc-preset[aria-pressed=true] i{color:#7dff6a;text-shadow:0 0 6px #7dff6a}
html.broadcast body #menu#menu .bc-preset[aria-pressed=true] span{color:#fff}
html.broadcast body #menu#menu .bc-preset.bc-shop span{color:#ffe46b}
html.broadcast body #menu#menu .bc-preset:disabled{opacity:.45;cursor:default}
html.broadcast body #menu#menu .bc-preset:focus-visible,html.broadcast body #menu#menu .bc-knob:focus-visible,html.broadcast body #menu#menu .bc-go:focus-visible{outline:3px solid var(--bb-cyan);outline-offset:2px}
html.broadcast body #menu#menu .bc-knobs{display:flex;justify-content:space-between;gap:6px}
html.broadcast body #menu#menu .bc-knob{display:grid;place-items:center;width:44px;height:44px;min-height:0;margin:0;padding:0;border-radius:50%;border:3px solid #0b0a08;background:radial-gradient(circle at 40% 35%,#6c6455,#2a2620 70%);box-shadow:0 3px 0 #0b0a08;color:#e8e0cc;font:var(--bb-display-s);font-size:20px;text-decoration:none;filter:none;border-image:none}
html.broadcast body #menu#menu .bc-knob.bc-discord{background:radial-gradient(circle at 40% 35%,#7b83ff,#3b41a0 70%);color:#fff}
html.broadcast body #menu#menu .bc-golive{margin-top:auto;display:flex;flex-direction:column;align-items:center;gap:8px}
html.broadcast body #menu#menu .bc-go{width:132px;height:132px;min-height:0;margin:0;padding:0;border-radius:50%;border:0;border-image:none;background:radial-gradient(circle at 40% 32%,#f2ff8a,#ceff24 38%,#6f9a00 72%,#3a5200);
  box-shadow:0 0 0 8px #111,0 0 0 12px #ffe46b,0 0 0 14px #111,0 10px 0 6px #000,0 0 40px #ceff2466;font:var(--bb-display-m);font-size:30px;line-height:.95;color:#1a2400;letter-spacing:.04em;text-shadow:0 2px 0 #ffffff88;filter:none;transition:transform .08s;cursor:pointer}
html.broadcast body #menu#menu .bc-go:hover{transform:scale(1.04)}
html.broadcast body #menu#menu .bc-go.is-loading{font-size:20px;filter:saturate(.4);animation:bc-blink 1s steps(2) infinite}
html.broadcast body #menu#menu .bc-go-hint{max-width:160px;font:var(--bb-body-s);font-size:11px;line-height:1.3;color:#cfc6b2;text-align:center}
html.broadcast body #menu#menu .bc-go:active{transform:translateY(6px)}
html.broadcast body #menu#menu .bc-go-note{margin-top:10px;font:var(--bb-label-s);letter-spacing:.06em;color:#ffe46b;text-transform:uppercase;text-align:center}

/* Under the set: team switch and tonight's card (the hero grid). */
html.broadcast body #menu#menu .bc-card-row{display:flex;gap:12px;align-items:flex-end;width:min(1320px,100%);min-width:0}
html.broadcast body #menu#menu .bc-teams .factions{display:flex;flex-direction:column;gap:6px;margin:0}
html.broadcast body #menu#menu .bc-teams .factions>button{min-height:0;padding:6px 12px;font-size:12px}
html.broadcast body #menu#menu .bc-teams .factions>button small{display:none}
html.broadcast body #menu#menu .bc-strip{flex:1;min-width:0}
html.broadcast body #menu#menu .bc-strip #classes{margin:0;flex-wrap:nowrap}
html.broadcast body #menu#menu .bc-strip #classes .hero-slot{max-width:86px}
html.broadcast body #menu#menu .bc-strip #classes .class-card strong{font-size:10px}
html.broadcast body #menu#menu .bc-room>.lobby-footer{display:flex;justify-content:center;gap:12px;margin:0;padding:0;font:var(--bb-label-s);font-size:10px;color:#8a8170;background:none;border:0}
html.broadcast body #menu#menu .bc-room>.lobby-footer>span:last-child{display:none}

/* Settings and How-to dialogs. */
html.broadcast body #menu#menu .bc-dialog{width:min(720px,calc(100vw - 24px));max-height:min(86dvh,760px);padding:0;background:#0d1210;color:var(--bb-text);border:3px solid #000;box-shadow:0 0 0 2px var(--bb-line),0 30px 80px #000c}
html.broadcast body #menu#menu .bc-dialog[open]{display:flex;flex-direction:column}
html.broadcast body #menu#menu .bc-dialog::backdrop{background:#05080ccc}
html.broadcast body #menu#menu .bc-dialog>header{display:flex;justify-content:space-between;align-items:center;padding:10px 14px;background:#000;color:#ffe46b;font:var(--bb-display-s);letter-spacing:.06em}
html.broadcast body #menu#menu .bc-dialog>header button{width:36px;height:36px;min-height:0;padding:0;background:#e8122b;color:#fff;border:2px solid #000;border-image:none}
html.broadcast body #menu#menu .bc-dialog-body{overflow:auto;padding:14px;display:flex;flex-direction:column;gap:12px}
html.broadcast body #menu#menu .bc-howto h3{margin:0 0 6px;font:var(--bb-display-s);color:var(--bb-lime)}
html.broadcast body #menu#menu .bc-howto ul{margin:0;padding-left:18px;font:var(--bb-body-m);color:var(--bb-text-soft)}
html.broadcast body #menu#menu .bc-howto li{margin:4px 0}
html.broadcast body #menu#menu .bc-howto b{color:var(--bb-text)}

/* Short screens: tighter chrome. */
@media (max-height:780px) and (min-width:701px){
  /* The logo stays on laptops (art audit #11): smaller, tucked in the TV's corner, the LIVE bug moves over for it. */
  html.broadcast body #menu#menu .bc-logo{width:136px;left:22px;top:12px;z-index:30;transform:rotate(-5deg)}
  html.broadcast body #menu#menu .bc-room:not(.is-pve) .bc-sponsor{top:96px}
  html.broadcast body #menu#menu .bc-room.is-pve .bc-logo{display:none}
  html.broadcast body #menu#menu .bc-room:not(.is-pve) .bc-bug{left:170px}
  html.broadcast body #menu#menu .bc-tv{padding:14px;gap:14px}
  html.broadcast body #menu#menu .bc-grille{display:none}
  html.broadcast body #menu#menu .bc-go{width:112px;height:112px;font-size:26px}
  html.broadcast body #menu#menu .bc-name{font-size:42px}
}

/* Phones: the page scrolls; the screen shows the contestant; channels play below the set; GO LIVE floats. */
@media (max-width:700px),(max-height:520px) and (orientation:landscape){
  html.broadcast body #menu#menu{overflow-y:auto;-webkit-overflow-scrolling:touch}
  html.broadcast body #menu#menu .bc-room{height:auto;min-height:100%;grid-template-rows:auto;padding:8px 8px 104px;gap:10px}
  html.broadcast body #menu#menu .bc-logo{width:74px;left:6px;top:2px}
  html.broadcast body #menu#menu .bc-tv{grid-template-columns:1fr;padding:10px;gap:10px;border-radius:20px;height:auto}
  html.broadcast body #menu#menu .bc-screen{height:min(56dvh,440px)}
  html.broadcast body #menu#menu .bc-stage{left:0;width:100%;top:16%;height:68%}
  html.broadcast body #menu#menu .bc-plinth{left:50%;width:70%}
  html.broadcast body #menu#menu .bc-beam{width:46%}html.broadcast body #menu#menu .bc-beam.l{left:2%}html.broadcast body #menu#menu .bc-beam.r{left:52%}
  html.broadcast body #menu#menu .bc-osd{left:auto;right:5%;font-size:26px}
  html.broadcast body #menu#menu .bc-sponsor{top:11%;max-width:190px;padding:3px 7px}
  html.broadcast body #menu#menu .bc-sponsor b{font-size:13px}
  html.broadcast body #menu#menu .bc-chyron{bottom:15%}
  html.broadcast body #menu#menu .bc-name{font-size:32px;padding:2px 24px 4px 10px}
  html.broadcast body #menu#menu .bc-facts{font-size:9.5px}html.broadcast body #menu#menu .bc-facts>span{padding:3px 7px}
  html.broadcast body #menu#menu .bc-ticker{height:28px}html.broadcast body #menu#menu .bc-ticker b{font-size:14px}html.broadcast body #menu#menu .bc-ticker p{padding-top:6px;font-size:11px}
  html.broadcast body #menu#menu .bc-panel{display:grid;grid-template-columns:1fr auto;align-items:center}
  html.broadcast body #menu#menu .bc-grille{display:none}
  html.broadcast body #menu#menu .bc-presets{grid-column:1/-1;grid-template-columns:repeat(3,minmax(0,1fr))}
  /* Number over the name, so WARDROBE fits at 375 px. */
  html.broadcast body #menu#menu .bc-preset{grid-template-columns:1fr;justify-items:center;gap:2px;padding:4px 2px 5px}
  html.broadcast body #menu#menu .bc-preset i{width:100%;height:20px;font-size:13px}
  html.broadcast body #menu#menu .bc-preset span{font-size:10px;letter-spacing:.03em}
  html.broadcast body #menu#menu .bc-knobs{grid-column:1/-1;justify-content:flex-start}
  html.broadcast body #menu#menu .bc-golive{position:fixed;right:12px;bottom:12px;z-index:30;margin:0}
  html.broadcast body #menu#menu .bc-go{width:84px;height:84px;font-size:20px;box-shadow:0 0 0 5px #111,0 0 0 8px #ffe46b,0 0 0 10px #111,0 6px 0 4px #000,0 0 30px #ceff2466}
  html.broadcast body #menu#menu .bc-go-note{display:none}
  html.broadcast body #menu#menu .bc-go-hint{display:none}
  html.broadcast body #menu#menu .bc-card-row{flex-direction:column;align-items:stretch;gap:8px;width:100%}
  html.broadcast body #menu#menu .bc-teams .factions{flex-direction:row}
  html.broadcast body #menu#menu .bc-strip #classes{flex-wrap:wrap}
  html.broadcast body #menu#menu .bc-strip #classes .hero-slot{max-width:none}
  /* Channels move under the set on phones (broadcast-lobby.js). */
  html.broadcast body #menu#menu .bc-room>.bc-channels{position:static;width:100%}
  html.broadcast body #menu#menu .bc-room>.bc-channels .bc-channel{height:auto}
  html.broadcast body #menu#menu .bc-room>.bc-channels .bc-channel-body{overflow:visible}
}
/* Phone landscape: a wide, short screen with the contestant; presets in one row. */
@media (max-height:520px) and (orientation:landscape){
  html.broadcast body #menu#menu .bc-screen{height:82dvh}
  html.broadcast body #menu#menu .bc-stage{left:0;width:52%;top:6%;height:80%}
  html.broadcast body #menu#menu .bc-plinth{left:26%;width:34%}
  html.broadcast body #menu#menu .bc-sponsor{display:none}
  html.broadcast body #menu#menu .bc-chyron{left:auto;right:4%;bottom:20%}
  html.broadcast body #menu#menu .bc-presets{grid-template-columns:repeat(6,minmax(0,1fr))}
  html.broadcast body #menu#menu .bc-golive{right:max(12px,env(safe-area-inset-right))}
}
@media (prefers-reduced-motion:reduce){html.broadcast body #menu#menu :is(.bc-beam,.bc-crowd,.bc-crt:before,.bc-ticker p,.bc-live:before){animation:none}}

/* Compact loadout (lobby-loadout.js): equipped row, icon grid beside one detail panel; fits CH 03 without scrolling. */
html body #menu#menu :is(#ability-picker,#ultimate-picker){display:flex;flex-direction:column;gap:8px;min-width:0;margin:0;padding:0;background:none;border:0;box-shadow:none}
html body #menu#menu .ld-mastery{margin:0;display:flex;align-items:center;gap:8px;font:var(--bb-label-s);letter-spacing:.08em;color:#ffe46b}
html body #menu#menu .ld-mastery span{color:#b9c3ff;letter-spacing:.02em;text-transform:none;font:var(--bb-body-s)}
html body #menu#menu .ld-bar{flex:1;max-width:160px;height:6px;background:#000;border:1px solid #3a4fd0}
html body #menu#menu .ld-bar b{display:block;height:100%;background:var(--bb-lime)}
html body #menu#menu .ld-equipped{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
html body #menu#menu .ld-slot{position:relative;display:flex;flex-direction:column;align-items:center;gap:2px;min-height:0;margin:0;padding:6px 4px 5px;background:#06104a;border:2px solid #000;border-image:none;box-shadow:inset 0 0 0 2px #3a4fd0;filter:none;transform:none;cursor:pointer;color:#fff}
html body #menu#menu .ld-slot .spell-icon{width:38px;height:38px;margin:0}
html body #menu#menu [data-channel=loadout] .ld-detail{min-height:0;overflow:auto}
html body #menu#menu .ld-slot span{max-width:100%;font:var(--bb-label-s);font-size:10px;letter-spacing:.02em;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body #menu#menu :is(.ld-slot,.ld-tile).is-focus{outline:2px solid #ffe46b;outline-offset:1px}
html body #menu#menu .ld-main{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:8px;min-height:0}
/* CH 03 fits its screen: the build rows stay put and the ability grid and its detail scroll inside what is left. */
html body #menu#menu [data-channel=loadout] :is(.build-panel,#ability-picker){height:100%;min-height:0}
html body #menu#menu [data-channel=loadout] .ld-main{flex:1 1 0}
html body #menu#menu .ld-tile{position:relative;display:flex;flex-direction:column;align-items:center;gap:1px;min-height:0;margin:0;padding:5px 3px 4px;background:#0b1a74;border:2px solid #000;border-image:none;box-shadow:none;filter:none;transform:none;cursor:pointer;color:#fff}
html body #menu#menu .ld-tile .spell-icon{width:34px;height:34px;margin:0}
html body #menu#menu .ld-tile b{max-width:100%;font:var(--bb-label-s);font-size:9.5px;letter-spacing:.02em;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body #menu#menu .ld-tile small{font:var(--bb-label-s);font-size:8.5px;color:#9fb4ff;letter-spacing:.04em;text-transform:uppercase}
html body #menu#menu .ld-tile[aria-pressed=true]{background:#132a10;box-shadow:inset 0 0 0 2px var(--bb-lime)}
html body #menu#menu .ld-tile.locked{opacity:.6}
html body #menu#menu .ld-tile:hover{background:#1528a8}
html body #menu#menu .ld-lockicon{position:absolute;top:2px;right:3px;font:var(--bb-label-s);font-size:7px;font-style:normal;color:#ffe46b}
html body #menu#menu .ld-detail{display:flex;flex-direction:column;gap:5px;min-height:0;padding:8px;background:#05092e;border:2px solid #000;box-shadow:inset 0 0 0 2px #3a4fd0;color:#dfe6ff}
html body #menu#menu .ld-detail p{margin:0;font:var(--bb-body-s);line-height:1.35}
html body #menu#menu .ld-detail-head{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:8px;align-items:center}
html body #menu#menu .ld-detail-head .spell-icon{width:40px;height:40px;flex:none;margin:0}
html body #menu#menu .ld-detail-head div{display:flex;flex-direction:column;min-width:0;flex:1}
html body #menu#menu .ld-detail-head b{font:var(--bb-display-s);font-size:17px;letter-spacing:.03em;text-transform:uppercase;color:#fff}
html body #menu#menu .ld-detail-head span{font:var(--bb-label-s);font-size:9.5px;letter-spacing:.06em;color:#ffe46b}
html body #menu#menu .ld-detail-head strong{grid-column:1/-1;margin-top:3px;font:var(--bb-number-m);font-size:15px;color:var(--bb-lime)}
html body #menu#menu .ld-reach{color:#9fb4ff!important}
html body #menu#menu .ld-reach b{color:#c8ff3c;font-weight:600}
html body #menu#menu .ld-lock{color:#ffe46b!important}
html body #menu#menu .ld-stage{display:block;flex:1;min-height:64px;position:relative}
html body #menu#menu .ld-stage canvas{position:absolute;inset:0;width:100%;height:100%}
html body #menu#menu .ld-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto minmax(0,1fr);gap:8px;align-items:center}
html body #menu#menu .ld-row-label{font:var(--bb-label-s);letter-spacing:.08em;text-transform:uppercase;color:#ffe46b}
html body #menu#menu .ld-ults{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
html body #menu#menu .ld-ulttile[aria-pressed=true]{background:#2a0e1c;box-shadow:inset 0 0 0 2px var(--bb-magenta)}
@media (max-width:700px){
  html body #menu#menu .ld-main{grid-template-columns:1fr}
  html body #menu#menu .ld-slot .spell-icon{width:36px;height:36px}
  html body #menu#menu .ld-row{grid-template-columns:auto 1fr}
}

/* CH 01 Play, compact (no scrolling at 1366x768): chip rows with inline labels, four maps in a row, one room row. */
html.broadcast body #menu#menu [data-channel=play] .bc-channel-body{gap:8px;padding:10px}
html.broadcast body #menu#menu [data-channel=play] #mode-picker{display:grid;grid-template-columns:96px minmax(0,1fr);gap:6px 8px;align-items:center;margin:0;padding:0;background:none;border:0;box-shadow:none}
html.broadcast body #menu#menu [data-channel=play] #mode-picker>h2,html.broadcast body #menu#menu [data-channel=play] #mode-picker>*>h2{margin:0;font:var(--bb-label-s);font-size:11px;letter-spacing:.08em;color:#ffe46b;text-transform:uppercase;text-shadow:none}
html.broadcast body #menu#menu [data-channel=play] #mode-picker :is(.difficulty-options,#map-picker,.map-options){margin:0}
html.broadcast body #menu#menu [data-channel=play] .difficulty-options{display:flex;flex-wrap:wrap;gap:4px}
html.broadcast body #menu#menu [data-channel=play] .difficulty-options>button{min-height:30px;padding:4px 10px 5px;font-size:11px;letter-spacing:.03em}
html.broadcast body #menu#menu [data-channel=play] #map-picker{display:contents}
html.broadcast body #menu#menu [data-channel=play] .map-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
html.broadcast body #menu#menu [data-channel=play] .map-options>button{min-height:0;padding:3px}
html.broadcast body #menu#menu [data-channel=play] .map-options img{height:44px;width:100%;object-fit:cover}
html.broadcast body #menu#menu [data-channel=play] .map-options b{font-size:9px;padding:2px 0}
html.broadcast body #menu#menu [data-channel=play] :is(#map-help,.map-help){display:none}
html.broadcast body #menu#menu [data-channel=play] .launch-bottom{display:flex;flex-direction:column;gap:6px;margin:0}
html.broadcast body #menu#menu [data-channel=play] .multiplayer-box{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:6px;align-items:center;margin:0;padding:0;background:none;border:0;box-shadow:none}
html.broadcast body #menu#menu [data-channel=play] .multiplayer-box>label{display:none}
html.broadcast body #menu#menu [data-channel=play] #player-name{min-height:34px;padding:4px 8px}
html.broadcast body #menu#menu [data-channel=play] .multiplayer-box>button{min-height:34px;padding:5px 12px 6px;font-size:11px;width:auto;margin:0}
html.broadcast body #menu#menu [data-channel=play] #room-help{grid-column:1/-1;margin:0;font:var(--bb-body-s);font-size:11px;line-height:1.3;color:#b9c3ff;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
html.broadcast body #menu#menu [data-channel=play] .play-actions>button{min-height:34px;padding:5px 12px 6px;font-size:11px;width:auto;margin:0}
html.broadcast body #menu#menu [data-channel=play] #match-settings>summary{min-height:34px;padding:5px 12px;font-size:11px}
/* CH 02 / CH 03: a little tighter so both fit at 768 px tall. */
html.broadcast body #menu#menu [data-channel=loadout] .bc-channel-body{gap:8px;padding:10px}
html.broadcast body #menu#menu [data-channel=play] .bc-channel-body .multiplayer-box{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;flex-direction:row}
html.broadcast body #menu#menu [data-channel=play] .bc-channel-body .multiplayer-box>#player-name{grid-area:1/1;width:100%}
html.broadcast body #menu#menu [data-channel=play] .bc-channel-body .multiplayer-box>#find-public{grid-area:1/2;display:inline-flex}
html.broadcast body #menu#menu [data-channel=play] .bc-channel{position:relative}
html.broadcast body #menu#menu [data-channel=play] .bc-channel-body>.map-link{position:absolute;top:3px;right:6px;min-height:26px;padding:3px 10px;font-size:10px;z-index:2}
html body #menu#menu .ld-detail .ld-stage{overflow:hidden;flex:1 1 72px;min-height:clamp(72px,calc(100vh - 696px),170px)}
html body #menu#menu .ld-detail .ld-stage .ability-stage{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;margin:0!important}
html.broadcast body #menu#menu [data-channel=loadout] .bc-channel-body{gap:6px;padding:8px 10px}

/* ---- Tonight's card (hero strip): real portraits, big names, readable tag, signature icons. ---- */
html.broadcast body #menu#menu .bc-strip #classes{gap:10px;align-items:flex-end}
html.broadcast body #menu#menu .bc-strip #classes .hero-grid{gap:5px}
html.broadcast body #menu#menu .bc-strip #classes .hero-slot{max-width:none;gap:3px}
html.broadcast body #menu#menu .bc-strip #classes .class-card{position:relative;display:block;width:100%;height:92px;aspect-ratio:auto;min-height:0;padding:0;overflow:hidden;
  background:radial-gradient(ellipse 70% 60% at 50% 90%,color-mix(in srgb,var(--bb-lime) 10%,transparent),transparent 70%),#0d1210;border:2px solid #000;border-image:none;box-shadow:inset 0 0 0 1px #ffffff14;filter:none;transform:none}
html.broadcast body #menu#menu .bc-strip #classes .class-card>.spell-icon{display:none}
html.broadcast body #menu#menu .bc-strip #classes .hero-portrait{position:absolute;left:0;right:0;top:0;bottom:22px;width:100%;height:calc(100% - 22px);image-rendering:pixelated}
html.broadcast body #menu#menu .bc-strip #classes .class-card strong{position:absolute;left:0;right:0;bottom:0;margin:0;padding:3px 2px 2px;background:#000c;border:0;color:#fff;
  font:var(--bb-display-s);font-size:15px;line-height:1;letter-spacing:.02em;text-transform:uppercase;text-shadow:2px 2px 0 #000;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.broadcast body #menu#menu .bc-strip #classes .class-card[aria-pressed=true]{box-shadow:inset 0 0 0 3px var(--bb-lime),0 0 18px color-mix(in srgb,var(--bb-lime) 45%,transparent);transform:translateY(-4px)}
html.broadcast body #menu#menu .bc-strip #classes .class-card[aria-pressed=true] strong{color:var(--bb-lime)}
html.broadcast body #menu#menu .bc-strip #classes .class-card[aria-pressed=true]:after{display:none}
html.broadcast body #menu#menu .bc-strip #classes .class-card:hover{box-shadow:inset 0 0 0 2px var(--bb-lime)}
html.broadcast body #menu#menu .bc-strip #classes .playstyle{font:var(--bb-label-s);font-size:11px;line-height:1.15;letter-spacing:.02em;color:#dfe6ff;text-align:center;min-height:2.3em}
html.broadcast body #menu#menu .bc-strip #classes .sig-mini{display:flex;justify-content:center;gap:3px;height:18px;opacity:0;transition:opacity .12s}
html.broadcast body #menu#menu .bc-strip #classes .hero-slot:is(:hover,:focus-within,:has([aria-pressed=true])) .sig-mini{opacity:1}
html.broadcast body #menu#menu .sig-mini i{display:grid;place-items:center;width:18px;height:18px;border:1px solid #000;background:#000}
html.broadcast body #menu#menu .sig-mini .spell-icon{width:16px;height:16px;margin:0;filter:none}
html.broadcast body #menu#menu .sig-mini .sig-ultimate{box-shadow:inset 0 0 0 1px var(--bb-magenta)}
html.broadcast body #menu#menu .sig-mini .sig-movement{box-shadow:inset 0 0 0 1px var(--bb-cyan)}
html.broadcast body #menu#menu .sig-mini .sig-signature{color:#ffe46b;box-shadow:inset 0 0 0 1px #ffe46b}
@media (max-width:700px),(max-height:520px) and (orientation:landscape){
  html.broadcast body #menu#menu .bc-strip{overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:4px}
  html.broadcast body #menu#menu .bc-strip #classes{flex-wrap:nowrap;width:max-content}
  html.broadcast body #menu#menu .bc-strip #classes .hero-grid{flex:0 0 auto;max-width:none;grid-template-columns:repeat(var(--count),86px)}
  html.broadcast body #menu#menu .bc-strip #classes .sig-mini{opacity:1}
}

/* The team switch lives on CH 01 now, readable. */
html.broadcast body #menu#menu [data-channel=play] .factions{display:flex;gap:6px;margin:0}
html.broadcast body #menu#menu [data-channel=play] .factions>button{flex:1;min-height:36px;padding:5px 10px;font-size:13px}
html.broadcast body #menu#menu [data-channel=play] .factions>button small{display:none}

/* Signature row (hero-signature.js): ULTIMATE · MOVEMENT · SIGNATURE, top of CH 02 and CH 03. */
html body #menu#menu .sig-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
html body #menu#menu .sig-tile{display:grid;grid-template-columns:auto minmax(0,1fr);gap:7px;align-items:center;min-height:0;margin:0;padding:6px 8px;text-align:left;cursor:pointer;
  background:linear-gradient(135deg,var(--sig-bg),#05092e 80%);border:2px solid #000;border-image:none;box-shadow:inset 0 0 0 2px var(--sig);color:#fff;filter:none;transform:none}
html body #menu#menu .sig-tile:hover{box-shadow:inset 0 0 0 3px var(--sig)}
html body #menu#menu .sig-ultimate{--sig:#ff3993;--sig-bg:#3a0d25}
html body #menu#menu .sig-movement{--sig:#75eced;--sig-bg:#0d3236}
html body #menu#menu .sig-signature{--sig:#ffe46b;--sig-bg:#3a3010}
html body #menu#menu .sig-art .spell-icon{width:40px;height:40px;margin:0;filter:none;color:var(--sig)}
html body #menu#menu .sig-text{display:flex;flex-direction:column;min-width:0}
html body #menu#menu .sig-text small{font:var(--bb-label-s);font-size:10px;letter-spacing:.12em;color:var(--sig);text-transform:uppercase}
html body #menu#menu .sig-text b{font:var(--bb-display-s);font-size:16px;line-height:1.05;letter-spacing:.03em;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body #menu#menu .sig-text em{font:var(--bb-label-s);font-size:9.5px;font-style:normal;color:#b9c3ff;letter-spacing:.04em;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body #menu#menu .sig-line{display:none}
html body #menu#menu #ultimate-picker .ld-row{grid-template-columns:auto minmax(0,1fr)}
html body #menu#menu .ld-equipped{grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width:700px){html body #menu#menu .sig-row{grid-template-columns:1fr}}
html.broadcast body #menu#menu [data-channel=loadout] #ultimate-picker{display:none}
html body #menu#menu .ld-ult-pick{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;margin-top:auto}
html.broadcast body #menu#menu [data-channel=loadout] .sig-art .spell-icon{width:34px;height:34px}

/* ---- CH 01 readability: one button system (primary / secondary / chip), 14 px+ copy, AA contrast on the navy panel. ---- */
html.broadcast body #menu#menu [data-channel=play] #room-help{display:none}
html.broadcast body #menu#menu [data-channel=play] .bc-room-line{grid-column:1/-1;margin:0;font:var(--bb-body-m);font-size:14px;line-height:1.3;color:#eef1ff}
html.broadcast body #menu#menu [data-channel=play] .bc-channel-body .multiplayer-box>button{min-height:42px;padding:6px 16px 8px 18px;font:var(--bb-label-m);font-size:13px;letter-spacing:.05em;white-space:nowrap;text-shadow:var(--bb-stamp)}
html.broadcast body #menu#menu [data-channel=play] .bc-channel-body .multiplayer-box>#find-public{--art:url('assets/ui/plate-lime-normal.png');--art-hover:url('assets/ui/plate-lime-hover.png');--art-down:url('assets/ui/plate-lime-pressed.png');--label:var(--bb-lime);color:var(--bb-lime)}
html.broadcast body #menu#menu .bc-private-actions>:is(#create-room,#join-room){--art:url('assets/ui/plate-steel-normal.png');--art-hover:url('assets/ui/plate-steel-hover.png');--art-down:url('assets/ui/plate-steel-pressed.png');--label:#eef1dc;color:#eef1dc}
html.broadcast body #menu#menu [data-channel=play] #player-name{min-height:42px;font-size:14px}
html.broadcast body #menu#menu [data-channel=play] #mode-picker>h2,html.broadcast body #menu#menu [data-channel=play] #mode-picker>*>h2{font-size:12px;color:#ffe46b}
html.broadcast body #menu#menu [data-channel=play] .difficulty-options>button{min-height:32px;font-size:13px}
html.broadcast body #menu#menu [data-channel=play] .map-options b{font-size:11px}
html.broadcast body #menu#menu [data-channel=play] .factions>button{font:var(--bb-label-m);font-size:14px;letter-spacing:.05em}
html.broadcast body #menu#menu [data-channel=play] .play-actions>button,html.broadcast body #menu#menu [data-channel=play] #match-settings>summary{min-height:38px;font-size:12px}
html.broadcast body #menu#menu .bc-guest{font-size:14px}
@media (max-width:700px){
  html.broadcast body #menu#menu [data-channel=play] .bc-channel-body .multiplayer-box{grid-template-columns:1fr 1fr!important}
  html.broadcast body #menu#menu [data-channel=play] .bc-channel-body .multiplayer-box>#player-name{grid-area:1/1/2/3}
  html.broadcast body #menu#menu [data-channel=play] .bc-channel-body .multiplayer-box>#find-public{grid-area:2/1}
  html.broadcast body #menu#menu [data-channel=play] .bc-channel-body .multiplayer-box>button{min-height:44px;font-size:12px;padding:6px 8px}
  html.broadcast body #menu#menu [data-channel=play] .bc-room-line{font-size:15px}
  html.broadcast body #menu#menu [data-channel=play] .difficulty-options>button{min-height:44px}
}
html.broadcast body #menu#menu [data-channel=play] .bc-you{display:grid;grid-template-columns:minmax(220px,1.1fr) minmax(0,1.6fr);gap:6px;align-items:center}
html.broadcast body #menu#menu [data-channel=play] .bc-you #player-name{width:100%;min-width:0;min-height:40px;padding:6px 10px;font:var(--bb-body-m);font-size:15px;letter-spacing:.02em;background:#05092e;border:2px solid #3a4fd0;color:#fff}
html.broadcast body #menu#menu [data-channel=play] .bc-you #player-name::placeholder{color:#9fb4ff}
html.broadcast body #menu#menu [data-channel=play] .bc-channel-body .multiplayer-box{grid-template-columns:1fr 1fr!important}
html.broadcast body #menu#menu [data-channel=play] .bc-channel-body .multiplayer-box>#find-public{grid-area:1/1}
@media (max-width:700px){html.broadcast body #menu#menu [data-channel=play] .bc-you{grid-template-columns:1fr}html.broadcast body #menu#menu [data-channel=play] .bc-you #player-name{font-size:16px;min-height:44px}}
html.broadcast body #menu#menu [data-channel=play] .bc-you .factions>button{font-size:12px;letter-spacing:.02em;white-space:nowrap;padding:5px 8px}
html.broadcast body #menu#menu .bc-strip #classes .hero-grid{flex:1 1 0;max-width:calc(var(--count) * 112px)}

/* CH 03: a bigger detail panel so long-range previews read (about 45% of the channel, 160 px+ stage at 1366x768).
   The 4 abilities sit in one row above it to keep zero scroll. */
html.broadcast body #menu#menu [data-channel=loadout] .ld-main{grid-template-columns:minmax(0,.95fr) minmax(0,1.15fr);flex:1;min-height:0}
html.broadcast body #menu#menu [data-channel=loadout] .ld-tile{padding:3px 2px}
html.broadcast body #menu#menu [data-channel=loadout] .ld-tile .spell-icon{width:28px;height:28px}
html.broadcast body #menu#menu [data-channel=loadout] .ld-mastery{display:none}
html.broadcast body #menu#menu [data-channel=loadout] .bc-channel-body{display:flex;flex-direction:column}
html.broadcast body #menu#menu [data-channel=loadout] #ability-picker{flex:1;min-height:0}
html.broadcast body #menu#menu [data-channel=loadout] .ld-detail{min-height:0}
html.broadcast body #menu#menu [data-channel=loadout] .ld-detail p{font-size:12px}
html.broadcast body #menu#menu .ld-detail .ld-stage{flex:1 1 160px;min-height:160px}
html.broadcast body #menu#menu [data-channel=loadout] .sig-tile{padding:4px 6px}
html.broadcast body #menu#menu [data-channel=loadout] .ld-detail{padding:6px;gap:3px}
html.broadcast body #menu#menu [data-channel=loadout] .bc-channel-body{gap:5px;padding:6px 8px}

/* Bigger TV (Mike, bully-348): thinner bezel and margins, a shorter hero strip, the screen fills the rest, and the
   CH 03 preview grows with the extra height. */
@media (min-width:701px) and (min-height:521px){
  html.broadcast body #menu#menu .bc-room{padding:6px 10px 2px;gap:4px}
  html.broadcast body #menu#menu .bc-tv{width:min(1480px,100%);padding:10px 12px;gap:12px;border-radius:24px 24px 20px 20px}
  html.broadcast body #menu#menu .bc-tv:after{display:none}
  html.broadcast body #menu#menu .bc-grille{display:none}
  html.broadcast body #menu#menu .bc-card-row{width:min(1480px,100%)}
  html.broadcast body #menu#menu .bc-strip #classes .class-card{height:80px}
  html.broadcast body #menu#menu .bc-strip #classes .playstyle{min-height:0;font-size:10.5px}
  /* The signature icons float on hover, so nothing around the strip moves (Mike, Nov 2: the row used to push the strip
     taller on every hover and the whole TV resized as the mouse swept along it). They sit in a chip just above the
     card, clear of the selected card's lift, so they never cover the hero. */
  html.broadcast body #menu#menu .bc-strip #classes .hero-slot{position:relative}
  html.broadcast body #menu#menu .bc-strip #classes .sig-mini{display:none;position:absolute;bottom:calc(100% + 6px);left:50%;z-index:6;padding:2px;background:#05080ce6;box-shadow:0 0 0 2px #000,2px 2px 0 2px #000;transform:translateX(-50%)}
  html.broadcast body #menu#menu .bc-strip #classes .hero-slot:is(:hover,:focus-within) .sig-mini{display:flex}
  html.broadcast body #menu#menu .bc-channels{top:3%;bottom:10%;width:min(54%,760px)}
  html.broadcast body #menu#menu .ld-detail .ld-stage{flex:1 1 150px;min-height:clamp(150px,calc(100vh - 580px),300px)}
  html.broadcast body #menu#menu .bc-chyron .bc-facts>span:nth-child(3){display:none}
}

/* No truncated names (Mike): ability names wrap to two lines at a slightly smaller size instead of ellipsizing. */
html body #menu#menu :is(.ld-tile,.ld-slot) :is(b,span){white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;line-height:1.05;text-align:center}
html body #menu#menu .ld-kit .ld-slot span{overflow-wrap:normal;word-break:normal}
html.broadcast body #menu#menu [data-channel=loadout] .ld-tile b{font-size:9px;letter-spacing:0;min-height:2.1em;display:flex;align-items:center;justify-content:center}
html body #menu#menu .sig-text :is(b,em){white-space:normal;overflow:visible;text-overflow:clip}
html.broadcast body #menu#menu .bc-strip #classes .class-card strong{white-space:normal;overflow:visible;text-overflow:clip;font-size:14px}


/* Modes as tiles: Banner Bash (Capture Points, Capture the Flag) and Arena (Duel 1v1, Arena 2v2, Arena 3v3). */
html.broadcast body #menu#menu [data-channel=play] #mode-picker>.difficulty-options:first-of-type{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px}
html.broadcast body #menu#menu [data-channel=play] [data-mode]{position:relative;display:flex;flex-direction:column;justify-content:flex-end;min-height:44px;padding:13px 4px 4px;font:var(--bb-label-m);font-size:12px;line-height:1.05;letter-spacing:.02em;white-space:normal;text-align:center}
html.broadcast body #menu#menu [data-channel=play] [data-mode]:before{position:absolute;top:3px;left:0;right:0;font:var(--bb-label-s);font-size:8.5px;letter-spacing:.14em;color:#ffe46b}
html.broadcast body #menu#menu [data-channel=play] :is([data-mode=warsong],[data-mode=points]):before{content:'BANNER BASH · 8v8'}
html.broadcast body #menu#menu [data-channel=play] [data-mode^=arena]:before{content:'ARENA';color:#ff79b6}
html.broadcast body #menu#menu [data-channel=play] [data-mode][aria-pressed=true]{box-shadow:0 0 0 2px var(--bb-lime)}
html.broadcast body #menu#menu [data-channel=play] [data-mode]{min-height:52px;padding:17px 4px 6px;justify-content:center}
html.broadcast body #menu#menu [data-channel=play] [data-mode]:before{top:6px;font-size:8px}
html.broadcast body #menu#menu [data-channel=play] :is([data-mode=warsong],[data-mode=points]):before{content:'8v8 BASH'}
html.broadcast body #menu#menu [data-channel=play] [data-mode]:before{content:none!important}
html.broadcast body #menu#menu [data-channel=play] #mode-picker [data-mode]{min-height:38px!important;height:auto!important;padding:5px 6px 6px!important;font-size:12px!important;white-space:normal!important;line-height:1.05}
@media (min-width:701px) and (max-height:800px){
  html.broadcast body #menu#menu [data-channel=play] .bc-channel-body{gap:5px;padding:7px 10px}
  html.broadcast body #menu#menu [data-channel=play] #mode-picker{gap:4px 8px}
  html.broadcast body #menu#menu [data-channel=play] .map-options img{height:38px}
}

/* Public play, in three short lines under the room buttons (Mike: first come first served, rotation, bots, auto teams). */
html.broadcast body #menu#menu [data-channel=play] .bc-public-info{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:1px 12px;margin:0;padding:5px 9px;list-style:none;background:#06104a;border:2px solid #3a4fd0;
  font:var(--bb-body-s);font-size:12.5px;line-height:1.25;color:#eef1ff}
html.broadcast body #menu#menu [data-channel=play] .bc-public-info li:first-child{grid-column:1/-1}
html.broadcast body #menu#menu [data-channel=play] .bc-public-info b{margin-right:6px;padding:0 5px;background:var(--bb-lime);color:#111;font:var(--bb-label-s);font-size:10.5px;letter-spacing:.06em;text-transform:uppercase}
html.broadcast body #menu#menu [data-channel=play] .bc-room-line{font-size:12.5px;color:#b9c3ff}
@media (max-width:700px){html.broadcast body #menu#menu [data-channel=play] .bc-public-info{grid-template-columns:1fr;font-size:14px}}
html.broadcast body #menu#menu [data-channel=play] .bc-you{grid-template-columns:minmax(200px,1fr) auto}
html.broadcast body #menu#menu [data-channel=play] .bc-you .play-actions{display:flex;gap:6px;justify-content:flex-end;flex-wrap:nowrap}
html.broadcast body #menu#menu [data-channel=play] .bc-you .play-actions>button,html.broadcast body #menu#menu [data-channel=play] .bc-you #match-settings>summary{min-height:38px;font-size:11px;white-space:nowrap}
@media (max-width:700px){html.broadcast body #menu#menu [data-channel=play] .bc-you{grid-template-columns:1fr}html.broadcast body #menu#menu [data-channel=play] .bc-you .play-actions{flex-wrap:wrap;justify-content:flex-start}}
html.broadcast body #menu#menu [data-channel=play] .bc-you{grid-template-columns:minmax(150px,1fr) auto}
html.broadcast body #menu#menu [data-channel=play] .bc-you #enter-training{padding:5px 10px 6px 12px;font-size:10px;letter-spacing:.02em}
html.broadcast body #menu#menu [data-channel=play] .bc-public-info{padding:3px 8px}
@media (max-width:700px){
  html.broadcast body #menu#menu [data-channel=play] #mode-picker{grid-template-columns:minmax(0,1fr)}
  html.broadcast body #menu#menu [data-channel=play] .bc-channel-body .multiplayer-box{grid-template-columns:minmax(0,1fr)!important}
  html.broadcast body #menu#menu [data-channel=play] .bc-channel-body .multiplayer-box>#find-public{grid-area:1/1}
  html.broadcast body #menu#menu [data-channel=play] .bc-channel-body .multiplayer-box>button{width:100%;white-space:normal}
  html.broadcast body #menu#menu [data-channel=play] .bc-public-info,html.broadcast body #menu#menu [data-channel=play] .bc-public-info li{min-width:0;overflow-wrap:anywhere}
  html.broadcast body #menu#menu [data-channel=play] :is(.launch-bottom,.multiplayer-box,.bc-channel-body){min-width:0;max-width:100%}
  html.broadcast body #menu#menu [data-channel=play] .map-options b{font-size:10px;overflow-wrap:anywhere}
}
html body #menu#menu .map-options>button.wrong-mode{opacity:.4;filter:grayscale(.7);cursor:not-allowed}

/* The den (Mike: the flat gutters need a world). The TV sits in a wasteland trailer den: a PixelLab scene scaled crisp
   to the full height (art/lobby). Each half is pinned to its own screen edge, so the props frame the TV at any aspect
   and the seam hides behind it. Up to 2:1 a 512x288 scene with the props packed at the edges; wider, the 688x288 one.
   Two glow layers (lamp flicker, window pulse) sit on top in scene pixels (--u). */
@media (min-width:701px){
  html.broadcast.bc-den body #menu#menu{--den:url('assets/lobby-den-169.webp');--u:calc(100vh / 288);--lx:18;--ly:162;--wx:12;--wy:90;--ww:34;--wh:110}
  html.broadcast.bc-den body #menu#menu>.lobby{position:relative;z-index:1}
  html.broadcast.bc-den body #menu#menu::before,html.broadcast.bc-den body #menu#menu::after{content:'';position:absolute;top:0;bottom:0;width:50%;z-index:0;pointer-events:none;
    background:var(--den) no-repeat;background-size:auto 100%;image-rendering:pixelated;filter:brightness(.68) saturate(1.1);animation:bc-den-in .6s ease-out both}
  html.broadcast.bc-den body #menu#menu::before{left:0;background-position:left bottom}
  html.broadcast.bc-den body #menu#menu::after{right:0;background-position:right bottom}
  html.broadcast.bc-den body #menu#menu>.lobby::before,html.broadcast.bc-den body #menu#menu>.lobby::after{content:'';display:block;position:absolute;z-index:-1;pointer-events:none;border:0;border-radius:50%;mix-blend-mode:screen}
  html.broadcast.bc-den body #menu#menu>.lobby::before{left:calc((var(--lx) - 30) * var(--u));top:calc((var(--ly) - 40) * var(--u));width:calc(60 * var(--u));height:calc(80 * var(--u));background:radial-gradient(closest-side,#ff3dd666,#ff3dd600);animation:bc-den-lamp 3.2s steps(1) infinite}
  html.broadcast.bc-den body #menu#menu>.lobby::after{left:calc((var(--wx) - var(--ww) * .8) * var(--u));top:calc((var(--wy) - var(--wh) * .8) * var(--u));width:calc(var(--ww) * 1.6 * var(--u));height:calc(var(--wh) * 1.6 * var(--u));background:radial-gradient(closest-side,#9cff2e40,#9cff2e00);animation:bc-den-pulse 4s ease-in-out infinite alternate}
  @keyframes bc-den-in{from{opacity:0}to{opacity:1}}
  @keyframes bc-den-lamp{0%,100%{opacity:1}31%{opacity:.7}33%{opacity:1}72%{opacity:.82}74%{opacity:1}}
  @keyframes bc-den-pulse{from{opacity:.45}to{opacity:1}}
}
@media (min-width:701px) and (min-aspect-ratio:2/1){
  html.broadcast.bc-den body #menu#menu{--den:url('assets/lobby-den.webp');--lx:35;--ly:162;--wx:60;--wy:90;--ww:100;--wh:135}
}
@media (prefers-reduced-motion:reduce){html.broadcast.bc-den body #menu#menu>.lobby::before,html.broadcast.bc-den body #menu#menu>.lobby::after{animation:none}}
/* Match settings opens under its button so the button can close it again (popover-close.js adds the ✕, Esc and
   click-outside). */
html.broadcast body #menu#menu [data-channel=play] #match-settings>.briefing{top:calc(100% + 6px);bottom:auto;right:auto;left:50%;transform:translateX(-50%);width:min(420px,calc(100vw - 32px));max-height:min(70vh,calc(100dvh - 180px));padding-top:34px}
html body #menu#menu #match-settings .popover-close{position:absolute;top:6px;right:8px;z-index:2;display:grid;place-items:center;width:28px;height:28px;min-height:0;margin:0;padding:0;font:700 15px/1 var(--bb-font-body,sans-serif);color:#eef1dc;background:#0c110d;border:2px solid #4d5a3a;border-image:none;border-radius:4px;box-shadow:none;filter:none;cursor:pointer}
html body #menu#menu #match-settings .popover-close:hover,html body #menu#menu #match-settings .popover-close:focus-visible{border-color:var(--bb-cyan,#75eced);outline:none}
/* PRIVATE MATCH (broadcast-lobby.js): last on the side, magenta until you're in a room, then lime with the seat count. */
html.broadcast body #menu#menu .bc-preset.bc-side i{color:#ff5ad7;font-size:15px;letter-spacing:.04em}
html.broadcast body #menu#menu .bc-preset.bc-side span{color:#ffd2f4}
html.broadcast body #menu#menu .bc-preset.bc-side.is-live{border-color:#7dff6a;box-shadow:0 0 0 1px #7dff6a,0 0 12px #7dff6a88,inset 0 1px 0 #6c6455}
html.broadcast body #menu#menu .bc-preset.bc-side.is-live i{color:#7dff6a;text-shadow:0 0 6px #7dff6a;font-size:13px;letter-spacing:0}
html.broadcast body #menu#menu .bc-preset.bc-side.is-live span{color:#fff}
html.broadcast body #menu#menu [data-channel=private] .bc-channel-body{display:flex;flex-direction:column;gap:10px}
html.broadcast body #menu#menu :is(.bc-private-intro,.bc-private-mode,.bc-private-status){margin:0;font:var(--bb-body-m);font-size:14px;line-height:1.35;color:#eef1ff}
html.broadcast body #menu#menu .bc-private-mode{color:#ffe46b}
html.broadcast body #menu#menu .bc-private-status:empty{display:none}
html.broadcast body #menu#menu .bc-private-actions{display:flex;flex-wrap:wrap;gap:8px}
html.broadcast body #menu#menu .bc-private-actions>button{min-height:44px;padding:6px 18px 8px 20px;font:var(--bb-label-m);font-size:13px;letter-spacing:.05em;white-space:nowrap;text-shadow:var(--bb-stamp)}
/* In a room (or looking at an invite) the room panel is the whole channel. */
body.in-room #menu#menu [data-channel=private] :is(.bc-private-intro,.bc-private-mode,.bc-private-actions,.bc-private-status){display:none}
html.broadcast body #menu#menu [data-channel=private] #private-lobby{margin:0}
/* The room owner's mode and map chips (room-lobby.js): the picked one ringed like CH 01's mode picker. */
html.broadcast body #menu#menu #room-settings [aria-pressed=true]{box-shadow:0 0 0 2px var(--bb-lime)}
/* FRIENDS dialog: its header already says FRIENDS, so the list's own title goes. */
html.broadcast body #menu#menu #bc-friends .account-friends>.account-methods-title:first-child{display:none}
/* The live room chip rides in PRIVATE MATCH's header while the lobby is up (broadcast-lobby.js), not over the logo. */
html.broadcast body #menu#menu .bc-channel-head>#online-status{position:static;transform:none;align-self:center;max-width:none;margin:0 0 0 auto;padding:3px 9px;font:var(--bb-body-s);font-size:12px;letter-spacing:.02em;text-transform:none;white-space:nowrap}
html.broadcast body #menu#menu .bc-channel-head>#online-status+.bc-sheet-x{margin-left:0}
