@import url('bomb-detonation.css');

/* The public map, the phone's fire camera and the shot overlay use one projection. */
#arena #phone-replay canvas{width:768px;height:432px;transform:scale(2.5);transform-origin:0 0}
#arena #phone-replay canvas[data-planning-layer]{pointer-events:none;background:transparent;will-change:transform}
#arena #phone-replay .arena-history{pointer-events:none;background:transparent}
#phone-replay .arena-weather,#phone-replay .arena-ready{
  position:absolute;color:#fff1d4;background:#193f46ee;border:3px solid #83dfc7;
  border-radius:18px;box-shadow:0 5px 0 #15343a;font-weight:800
}
#phone-replay .arena-weather{right:492px;top:26px;padding:10px 18px}
#phone-replay .aw-wind-current,#phone-replay .aw-wind-current>span,#phone-replay .arena-ready{display:flex;align-items:center;gap:14px}
#phone-replay .aw-wind-current svg{width:36px;height:36px}
#phone-replay .aw-wind-current span{font-size:23px}
#phone-replay .aw-wind-current b{font-size:32px;color:#a4f6dc}
#phone-replay .arena-ready{bottom:38px;left:50%;transform:translateX(-50%);padding:12px 22px;font-size:29px;white-space:nowrap}
#phone-replay .arena-ready b{color:#a4f6dc}
#phone-replay .sr-only{position:absolute;clip-path:inset(50%);overflow:hidden;width:1px;height:1px}
#stage[data-theme=artillery] #catalog[data-kind=arena]:has(#phone-replay:not([hidden])) #catalog-rail,
#stage[data-theme=artillery] #catalog[data-kind=arena]:has(#phone-replay:not([hidden])) #catalog-pages{display:none}
/* The fixed TV effects layer fills the canvas underneath the persistent QR. */
#stage-effects>.bs-detonation{position:absolute;inset:0;width:100%;height:100%;max-width:none;max-height:none}
#stage-effects>.tv-bomb-film{animation:none;background:#080d13}
#stage-effects>.tv-bomb-parked{position:absolute;inset:0;opacity:0;pointer-events:none;will-change:opacity}
.tv-bomb-parked .bs-blast-message{display:none}
.tv-bomb-parked .tv-bomb-film-frame,[data-packed-camera] .tv-bomb-film-frame{animation:none}
.tv-bomb-parked .tv-bomb-film-frame::after,[data-packed-camera] .tv-bomb-film-frame::after{content:none}
.tv-bomb-film-frame,.tv-bomb-film-frame>video{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:fill}
.tv-bomb-film-frame{animation:tv-bomb-blast-expand 1050ms cubic-bezier(.16,.63,.36,1) both;animation-delay:var(--blast-offset)}
.tv-bomb-film-frame::after{
  content:"";position:absolute;left:50%;top:50%;width:980px;aspect-ratio:1;margin:-490px 0 0 -490px;
  border:4px solid #ffc47a;border-radius:50%;box-shadow:0 0 30px #ff8b49,inset 0 0 20px #ffb05f;
  animation:tv-bomb-blast-ring 840ms ease-out both;animation-delay:var(--blast-offset);
}
@keyframes tv-bomb-blast-expand{from{transform:scale(1.03)}to{transform:scale(1.35)}}
@keyframes tv-bomb-blast-ring{
  0%{transform:scale(.12);opacity:0}
  18%{opacity:.8}
  100%{transform:scale(1.65);opacity:0}
}
#stage-effects>.bs-detonation .bs-blast-message>strong{
  font-size:178px;line-height:.89;
}
#stage-effects>.bs-detonation .bs-blast-message>small{font-size:28px}

/* The open case puts the join code in the instrument panel. */
#stage[data-theme=bombsquad][data-scene=catalog][data-catalog-kind=authored]> :is(header,footer){visibility:hidden}
/* The report reserves this corner inside its fixed 1920 x 1080 composition.
   Keep its real QR above both surfaces for the entire detonation. */
#bomb-report-join{position:absolute;z-index:3;top:97px;right:96px;width:290px;height:128px;transform:scale(1.5);transform-origin:top right}
:is(#table-scene,#bomb-report-join)>#join-dock{
  position:static;width:100%;height:100%;display:grid;grid-template-columns:minmax(0,1fr) 122px;gap:8px;align-items:stretch;
}
:is(#table-scene,#bomb-report-join)>#join-dock :is(.join-caption,.join-scan){
  margin:0;padding:0;border:2px solid #485448;border-radius:6px;
  background:#111e19;box-shadow:inset 0 0 9px #0008;
}
:is(#table-scene,#bomb-report-join)>#join-dock .join-caption{
  place-content:center;gap:4px;color:#e4e2bd;font:800 17px/1.15 ui-monospace,Consolas,monospace;text-transform:uppercase;
}
:is(#table-scene,#bomb-report-join)>#join-dock #header-code{
  font:800 46px/1 ui-monospace,Consolas,monospace;letter-spacing:.09em;color:#93f4bd;
}
:is(#table-scene,#bomb-report-join)>#join-dock .join-scan{
  place-content:center;gap:2px;color:#eff5d9;
}
:is(#table-scene,#bomb-report-join)>#join-dock #corner-qr{
  width:100px;height:100px;border-radius:3px;background:white;
}
:is(#table-scene,#bomb-report-join)>#join-dock #scan-label{
  padding:0;font:750 14px/1.05 ui-monospace,Consolas,monospace;
}

/* Android draws the game underneath the existing public join code and remote dialog. */
html[data-native-play],html[data-native-play] body,html[data-native-play] #stage{background:transparent}
html[data-native-play] #stage>:is(#scenery,#party,#ceremony,#entry,#table-scene,#stage-effects,#bomb-report-join){display:none!important}
html[data-native-play=artillery]:not([data-native-phase=game_over]):not([data-native-lesson]) #stage>:is(header,footer){visibility:hidden}
