/* The PvE home (pve-home.js): broadcast TV, tape shelf + VCR, hero card. Scoped like broadcast-lobby.css. */
html.broadcast body #menu#menu .bc-room.is-pve>:is(.bc-tv,.bc-card-row){display:none}
html.broadcast body #menu#menu .bc-room.is-pve{grid-template-rows:minmax(0,1fr) auto auto auto}
html.broadcast body #menu#menu .pve-home{display:contents}
html.broadcast body #menu#menu .pve-home[hidden]{display:none}
/* The PvP home has no PvE modes; Endless lives on its tape. */
html.broadcast body #menu#menu .bc-room:not(.is-pve) #mode-picker [data-mode=endless]{display:none}
html.broadcast body #menu#menu .bc-room:not(.is-pve) #mode-picker>.difficulty-options:first-of-type{grid-template-columns:repeat(5,minmax(0,1fr))}

/* Entry tile on the PvP home: a big VHS tape beside GO LIVE. */
html.broadcast body #menu#menu .pve-entry{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;min-height:58px;margin:0;padding:8px 6px 9px;
  background:url('assets/ui/vhs-tape.png') center/100% 100% no-repeat;border:0;border-image:none;image-rendering:pixelated;filter:drop-shadow(3px 4px 0 #000);cursor:pointer;transition:transform .12s}
html.broadcast body #menu#menu .pve-entry span{padding:1px 10px;background:linear-gradient(#f4ecd2,#e6dab4);color:#1c1a2e;font:400 22px/1 var(--font-marker);transform:rotate(-2deg);box-shadow:1px 2px 0 #0006}
html.broadcast body #menu#menu .pve-entry small{margin-top:3px;padding:1px 6px;background:#05080cdd;color:#ffe46b;font:var(--bb-label-s);font-size:10px;letter-spacing:.08em}
html.broadcast body #menu#menu .pve-entry:hover{transform:translateY(-3px) rotate(-1deg)}

/* TV */
html.broadcast body #menu#menu .pve-tv{position:relative;width:min(1320px,100%);height:100%;min-height:0;padding:12px;border-radius:24px 24px 20px 20px;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 .pve-screen{position:relative;height:100%;overflow:hidden;border-radius:4%/7%;background:linear-gradient(90deg,#05070acc,#05070a55 45%,#05070a99),url('assets/pve/tape-room.webp') 30% 50%/cover no-repeat #05070a;image-rendering:pixelated;box-shadow:inset 0 0 0 6px #0a0a09,inset 0 0 40px #000,0 0 0 3px #000}
html.broadcast body #menu#menu .pve-vhs{position:absolute;inset:0;width:100%;height:100%;image-rendering:pixelated}
html.broadcast body #menu#menu .pve-stage{position:absolute;left:0;width:44%;top:6%;height:86%}
html.broadcast body #menu#menu .pve-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 .pve-stage #champion-facing{position:absolute;left:5%;top:44%;z-index:3}
html.broadcast body #menu#menu .pve-osd{position:absolute;top:3.5%;left:20%;z-index:3;font:var(--bb-number-xl);font-size:24px;color:#7dff6a;text-shadow:var(--bb-stroke-2),0 0 10px #7dff6a;letter-spacing:.06em}
html.broadcast body #menu#menu .pve-back{position:absolute;left:2.5%;bottom:4%;z-index:4;min-height:36px;margin:0;padding:6px 12px;background:#05080ce6;border:2px solid #3a4fd0;border-image:none;color:#dfe6ff;font:var(--bb-label-s);font-size:11px;letter-spacing:.06em;filter:none}
html.broadcast body #menu#menu .pve-back:hover{border-color:var(--bb-lime);color:var(--bb-lime)}
html.broadcast body #menu#menu .pve-panel{position:absolute;right:2%;top:3%;bottom:4%;width:min(54%,740px);z-index:4;display:flex;flex-direction:column;background:#0a1a6ef0;border:3px solid #000;box-shadow:4px 4px 0 #000}
html.broadcast body #menu#menu .pve-tabs{display:flex;background:#000}
html.broadcast body #menu#menu .pve-tabs button{flex:1;min-height:34px;margin:0;padding:6px;background:none;border:0;border-image:none;color:#9fb4ff;font:var(--bb-label-m);letter-spacing:.08em;text-transform:uppercase;filter:none}
html.broadcast body #menu#menu .pve-tabs [aria-selected=true]{color:#ffe46b;box-shadow:inset 0 -3px 0 #ffe46b}
html.broadcast body #menu#menu .pve-view{flex:1;min-height:0;overflow:auto;padding:10px 12px;display:flex;flex-direction:column;gap:8px}
html.broadcast body #menu#menu .pve-view[hidden]{display:none}
html.broadcast body #menu#menu .pve-view .build-panel{margin:0;padding:0;background:none;border:0;box-shadow:none}
html.broadcast body #menu#menu .pve-idle{margin:auto;text-align:center;font:var(--bb-display-m);color:#9fb4ff;letter-spacing:.06em;text-shadow:0 0 10px #3a4fd0}
html.broadcast body #menu#menu .pve-idle small{display:block;margin-top:6px;font:var(--bb-label-m);color:#ffe46b}
html.broadcast body #menu#menu .pve-card{display:flex;flex-direction:column;gap:6px;margin:auto 0}
html.broadcast body #menu#menu .pve-card[hidden]{display:none}
html.broadcast body #menu#menu .pve-card small{font:var(--bb-label-s);letter-spacing:.14em;color:#ffe46b}
html.broadcast body #menu#menu .pve-card h2{margin:0;font:var(--bb-display-xl);font-size:46px;line-height:.95;color:#fff;text-transform:uppercase;text-shadow:var(--bb-stroke-2),4px 4px 0 #000}
html.broadcast body #menu#menu .pve-card p{margin:0;font:var(--bb-body-m);font-size:15px;color:#eef1ff}
html.broadcast body #menu#menu .pve-play{align-self:flex-start;min-height:0;margin:8px 0 0;padding:12px 28px 14px 24px;border:0;border-image:none;background:linear-gradient(#e8122b,#9a0a1b);color:#fff;font:var(--bb-display-l);font-size:36px;letter-spacing:.06em;box-shadow:0 0 0 4px #000,0 0 0 7px #fff,0 0 0 9px #000,6px 9px 0 6px #000;text-shadow:3px 3px 0 #000;filter:none}
html.broadcast body #menu#menu .pve-play:hover{filter:brightness(1.15)}
html.broadcast body #menu#menu :is(.pve-play,.pve-tape,.pve-entry,.pve-back):focus-visible{outline:3px solid var(--bb-cyan);outline-offset:4px}
html.broadcast body #menu#menu .pve-stamp{position:absolute;left:3%;bottom:13%;z-index:3;font:var(--bb-number-m);font-size:18px;color:#fff;text-shadow:2px 2px 0 #000;letter-spacing:.08em}
html.broadcast body #menu#menu .pve-stamp b{color:#7dff6a}
html.broadcast body #menu#menu :is(.pve-stamp,.pve-tracking,.pve-toast)[hidden]{display:none}
html.broadcast body #menu#menu .pve-tracking{position:absolute;left:0;right:0;height:12%;z-index:5;pointer-events:none;background:linear-gradient(#fff0,#ffffff1e 45%,#ffffff38 50%,#ffffff1e 55%,#fff0);mix-blend-mode:screen;animation:pve-track 2.6s linear infinite}
@keyframes pve-track{from{top:105%}to{top:-15%}}
html.broadcast body #menu#menu .pve-toast{position:absolute;left:50%;top:46%;z-index:6;transform:translate(-50%,-50%);padding:10px 18px;background:#05080cee;border:3px solid #9fb4ff;font:var(--bb-display-s);color:#fff;text-align:center;letter-spacing:.04em}
html.broadcast body #menu#menu .pve-toast small{display:block;margin-top:4px;font:var(--bb-body-m);color:#ffe46b;letter-spacing:0}

/* Shelf: tapes face-out on a plank, VCR at the end. */
html.broadcast body #menu#menu .pve-shelf{--px:3px;position:relative;width:min(1320px,100%);display:flex;align-items:flex-end;justify-content:center;gap:calc(8 * var(--px));padding:18px 14px calc(17 * var(--px));overflow:hidden}
html.broadcast body #menu#menu .pve-shelf:after{content:'';position:absolute;left:0;right:0;bottom:0;height:calc(21 * var(--px));z-index:0;background:url('assets/pve/shelf.png') left top/auto calc(37 * var(--px)) repeat-x;image-rendering:pixelated;pointer-events:none}
html.broadcast body #menu#menu .pve-shelf>*{position:relative;z-index:1}
html.broadcast body #menu#menu .pve-prop{flex:none;display:block;width:calc(var(--w) * var(--px));height:calc(var(--h) * var(--px));margin-bottom:calc(-1 * var(--px));background:center/100% 100% no-repeat;image-rendering:pixelated;filter:drop-shadow(var(--px) var(--px) 0 #0008)}
html.broadcast body #menu#menu .pve-gap{flex:1 1 0;max-width:calc(60 * var(--px))}
html.broadcast body #menu#menu .pve-shelf:before{content:'TAPE SHELF · PvE';position:absolute;left:14px;top:0;z-index:1;font:var(--bb-label-s);letter-spacing:.14em;color:#ffe46b}
html.broadcast body #menu#menu .pve-tapes{display:flex;gap:calc(8 * var(--px));align-items:flex-end}
html.broadcast body #menu#menu .pve-tape{position:relative;flex:none;width:calc(88 * var(--px));height:calc(30 * var(--px));min-height:0;margin:0;padding:0;border:0;border-image:none;background:url('assets/ui/vhs-tape.png') center/100% 100% no-repeat;image-rendering:pixelated;filter:drop-shadow(3px 4px 0 #000);transition:transform .15s;cursor:pointer}
html.broadcast body #menu#menu .pve-tape:hover:not(.locked){transform:translateY(-6px) rotate(-1deg)}
html.broadcast body #menu#menu .pve-tape[aria-pressed=true]{opacity:.3}
html.broadcast body #menu#menu .pve-lbl{position:absolute;left:16%;top:18%;width:68%;height:64%;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:1px;padding:2px 4px;background:linear-gradient(#f4ecd2,#e6dab4);box-shadow:inset 0 0 0 1px #0002,1px 2px 0 #0006;transform:rotate(-1.5deg);color:#1c1a2e;text-align:center;line-height:1}
html.broadcast body #menu#menu .pve-lbl b{font:400 calc(6.2 * var(--px))/1 var(--font-marker);white-space:normal}
html.broadcast body #menu#menu .pve-lbl i{font:var(--bb-label-s);font-style:normal;font-size:11px;letter-spacing:.05em;color:#b0122e}
html.broadcast body #menu#menu .pve-sticker{position:absolute;right:-3%;top:-14%;padding:2px 6px;background:#ffe46b;color:#111;font:var(--bb-label-s);font-size:10px;letter-spacing:.04em;transform:rotate(8deg);box-shadow:2px 2px 0 #000}
html.broadcast body #menu#menu .pve-tape.locked{filter:grayscale(.6) brightness(.8) drop-shadow(3px 4px 0 #000);cursor:not-allowed}
html.broadcast body #menu#menu .pve-tape.locked .pve-sticker{background:#9fb4ff}
html.broadcast body #menu#menu .pve-how{position:absolute;left:0;right:0;top:100%;margin-top:4px;padding:2px 6px;background:#05080ce6;border:1px solid #3a4fd0;font:var(--bb-body-s);font-size:12px;line-height:1.2;color:#fff;text-align:center}
html.broadcast body #menu#menu .pve-vcr{position:relative;flex:none;width:calc(114 * var(--px));height:calc(32 * var(--px));background:url('assets/ui/vhs-vcr.png') center/100% 100% no-repeat;image-rendering:pixelated;filter:drop-shadow(3px 4px 0 #000)}
html.broadcast body #menu#menu .pve-clock{position:absolute;left:62%;top:34.5%;width:19%;height:34.5%;display:grid;place-items:center;background:#020a02;color:#7dff6a;font:var(--bb-number-m);font-size:calc(5 * var(--px));text-shadow:0 0 5px #7dff6a}
html.broadcast body #menu#menu .pve-slot{position:absolute;left:15%;top:32.5%;width:43%;height:27.5%}
.pve-flying{position:fixed;z-index:60;background:url('assets/ui/vhs-tape.png') center/100% 100% no-repeat;image-rendering:pixelated;pointer-events:none;transition:left .55s cubic-bezier(.5,0,.3,1),top .55s cubic-bezier(.5,0,.3,1),width .55s,height .55s,clip-path .3s .55s ease-in}

/* Hero card for the run. */
html.broadcast body #menu#menu .pve-heroes{width:min(1320px,100%);display:flex;align-items:flex-end;gap:10px;min-width:0}
html.broadcast body #menu#menu .pve-heroes-head{flex:none;writing-mode:vertical-rl;transform:rotate(180deg);font:var(--bb-label-s);letter-spacing:.12em;color:#ffe46b}
html.broadcast body #menu#menu .pve-strip{flex:1;min-width:0}
html.broadcast body #menu#menu .pve-strip #classes .class-card{height:74px}
html.broadcast body #menu#menu .pve-strip #classes .playstyle{display:none}
html.broadcast body #menu#menu .pve-strip #classes .sig-mini{display:none}

@media (max-width:700px),(max-height:520px) and (orientation:landscape){
  html.broadcast body #menu#menu .bc-room.is-pve{grid-template-rows:auto}
  html.broadcast body #menu#menu .pve-tv{height:auto;padding:8px}
  html.broadcast body #menu#menu .pve-screen{height:min(84dvh,660px)}
  html.broadcast body #menu#menu .pve-stage{width:100%;top:9%;height:34%}
  html.broadcast body #menu#menu .pve-osd{left:auto;right:5%;font-size:20px}
  html.broadcast body #menu#menu .pve-panel{left:2%;right:2%;width:auto;top:44%;bottom:11%}
  html.broadcast body #menu#menu .pve-card{margin:0}
  html.broadcast body #menu#menu .pve-card h2{font-size:28px}
  html.broadcast body #menu#menu .pve-card p{font-size:13px}
  html.broadcast body #menu#menu .pve-play{font-size:24px;padding:8px 18px 10px 16px}
  html.broadcast body #menu#menu .pve-back{bottom:2.5%}
  html.broadcast body #menu#menu .pve-stamp{display:none}
  html.broadcast body #menu#menu .pve-shelf{--px:2px;gap:10px;padding-left:10px;padding-right:10px}
  html.broadcast body #menu#menu .pve-vcr{flex:1 1 auto;max-width:calc(114 * var(--px));height:auto;aspect-ratio:114/32}
  html.broadcast body #menu#menu .pve-gap,html.broadcast body #menu#menu .pve-prop{display:none}
  html.broadcast body #menu#menu .pve-heroes{overflow-x:auto}
  html.broadcast body #menu#menu .pve-strip #classes{width:max-content}
  html.broadcast body #menu#menu .pve-entry{position:fixed;left:12px;bottom:14px;z-index:30;width:150px;min-height:52px}
}
/* Laptop heights: the shelf drops to 2x pixels so the TV (and the hero) keep their size. */
@media (min-width:701px) and (max-height:900px){html.broadcast body #menu#menu .pve-shelf{--px:2px}}
@media (prefers-reduced-motion:reduce){html.broadcast body #menu#menu .pve-tracking{animation:none}}

/* Guests see a fixed SIGN IN button top-right (client/account.css); desktop reserves its corner on both homes. */
@media (min-width:701px) and (min-height:521px){
  body:has(#account-signin:not([hidden])) #menu#menu .bc-room:not(.is-pve) .bc-panel{padding-top:50px}
  body:has(#account-signin:not([hidden])) #menu#menu .bc-room.is-pve .pve-panel{top:58px}
}
/* PvE off for launch (launch-scope.js): the home stays open as a teaser. A COMING SOON ribbon on the TAPES entry, a
   rubber stamp where PLAY would be, and COMING SOON on the tape sticker, the VCR and the on-screen stamp. */
html.broadcast body #menu#menu .pve-entry.pve-soon{overflow:visible}
html.broadcast body #menu#menu .pve-soon-ribbon{position:absolute;top:-9px;right:-10px;z-index:2;padding:2px 7px 1px;transform:rotate(8deg);border:2px solid #000;
  background:#ff3993;color:#fff;font:400 13px/1 var(--font-display,'Bully Bangers');letter-spacing:.06em;white-space:nowrap;text-shadow:1px 1px 0 #000;box-shadow:2px 2px 0 #000;pointer-events:none}
html.broadcast body #menu#menu .pve-soon-big{display:block;width:max-content;align-self:flex-start;margin:14px 0 0 6px;padding:6px 16px 4px;transform:rotate(-6deg);border:4px solid #ff3993;border-radius:5px;
  background:#05080ce6;color:#ff3993;font:400 34px/1 var(--font-display,'Bully Bangers');letter-spacing:.06em;text-shadow:3px 3px 0 #000;box-shadow:0 0 0 3px #000,0 0 26px #ff399366}
