/* "What you missed" and the war replay (js/war-missed.js, Gage 11-03), as a film (build 119: "no battle labels ... just the front
   lines pushing, the occasional arrows and explosions ... more cinematic, go at angles"). While it plays the room's plates, header,
   dock and keys step aside; letterbox bars hold the day, the event of the moment, a progress bar, From day 1 and Skip.
   Every class here is scoped to the film's own elements (.wm-banner, .wm-lb): .wm-bar and friends also name parts of the battle card. */
.wr.wm-cine { background: #0e1d29; }
.wr.wm-cine .wr-stage { transform-origin: 50% 56%; cursor: default; }
.wr.wm-cine .wr-top, .wr.wm-cine .wr-dock, .wr.wm-cine .wr-key, .wr.wm-cine .wr-lab, .wr.wm-cine .wr-pins, .wr.wm-cine .wr-card, .wr.wm-cine .wr-cine,
.wr.wm-cine .wk-panel, .wr.wm-cine .wk-pop, .wr.wm-cine .wr-aimbar { opacity: 0; pointer-events: none; transition: opacity .4s; }

/* the letterbox: two black bars that slide in */
.wm-lb { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.wm-lb i { position: absolute; left: 0; right: 0; height: calc(var(--safe-t, 0px) + 74px); background: linear-gradient(#000 0 82%, #0000); animation: wm-lb-in .6s cubic-bezier(.2,.8,.2,1) both; }
.wm-lb i.t { top: 0; }
.wm-lb i.b { bottom: 0; height: calc(var(--safe-b, 0px) + 86px); background: linear-gradient(#0000, #000 18%); animation-name: wm-lb-in-b; }
@keyframes wm-lb-in { from { transform: translateY(-100%); } }
@keyframes wm-lb-in-b { from { transform: translateY(100%); } }

.wm-banner { position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.wm-banner .wm-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-areas: "rec title all skip" "day day all skip"; align-items: center; gap: 2px 10px; padding: calc(var(--safe-t, 0px) + 10px) 14px 0; animation: wm-fade .6s .2s both; }
.wm-banner .wm-foot { display: grid; gap: 8px; padding: 0 18px calc(var(--safe-b, 0px) + 16px); animation: wm-fade .6s .3s both; }
@keyframes wm-fade { from { opacity: 0; } }
.wm-banner .wm-rec { grid-area: rec; display: inline-flex; align-items: center; gap: 6px; padding: 2px 7px; font: 400 12px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: #fff; background: #b3221f; }
.wm-banner .wm-rec i { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: wm-blink 1s steps(2) infinite; }
@keyframes wm-blink { 50% { opacity: .2; } }
.wm-banner.replay .wm-rec { background: #1f6fb3; }
.wm-banner .wm-title { grid-area: title; overflow: hidden; font: 400 13px/1 var(--display); letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; text-overflow: ellipsis; color: #d6b25e; }
.wm-banner .wm-day { grid-area: day; font: 400 30px/1 var(--display); letter-spacing: .05em; text-transform: uppercase; color: #fff; text-shadow: 2px 2px 0 #000; font-variant-numeric: tabular-nums; }
.wm-banner .wm-skip, .wm-banner .wm-all { pointer-events: auto; align-self: center; min-height: 44px; padding: 0 14px; font: 400 17px var(--display); letter-spacing: .08em; text-transform: uppercase; color: #f4e4ce; background: #1a1611e6; border: 1px solid #8a7254; box-shadow: 2px 3px 0 #000; cursor: pointer; }
.wm-banner .wm-skip { grid-area: skip; }
.wm-banner .wm-all { grid-area: all; color: #ffe08a; border-color: #c79a3f; font-size: 15px; }
.wm-banner .wm-skip:active, .wm-banner .wm-all:active { transform: translate(1px, 2px); box-shadow: 1px 1px 0 #000; }
.wm-banner .wm-bar { display: block; height: 4px; background: #ffffff1f; }
.wm-banner .wm-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #c79a3f, #ffe08a); box-shadow: 0 0 8px #ffd36e88; transition: width .6s ease-out; }
.wm-banner .wm-tick { min-height: 20px; margin: 0; overflow: hidden; font: 400 19px/1.1 var(--display); letter-spacing: .06em; text-align: center; text-transform: uppercase; white-space: nowrap; text-overflow: ellipsis; color: #f2e6cc; text-shadow: 2px 2px 0 #000; }
.wm-banner .wm-tick.in { animation: wm-tick .5s ease-out; }
@keyframes wm-tick { from { opacity: 0; transform: translateY(6px); letter-spacing: .2em; } }
.wm-banner.done .wm-day { color: #7cf08a; }
.wm-banner.done .wm-rec { background: #2f7a33; }
.wm-banner.done .wm-rec i { animation: none; }
@media (max-width: 360px) { .wm-banner .wm-day { font-size: 25px; } .wm-banner .wm-skip, .wm-banner .wm-all { padding: 0 10px; font-size: 15px; } .wm-banner .wm-tick { font-size: 16px; } }
@media (max-height: 640px) { .wm-banner .wm-day { font-size: 24px; } .wm-lb i.t { height: calc(var(--safe-t, 0px) + 62px); } .wm-lb i.b { height: calc(var(--safe-b, 0px) + 70px); } }
/* calm: stills (no slide, no blink) */
.wr.wm-calm .wm-lb i, .wr.wm-calm .wm-banner .wm-top, .wr.wm-calm .wm-banner .wm-foot, .wr.wm-calm .wm-banner .wm-tick.in { animation: none; }
.wr.wm-calm .wm-banner .wm-rec i { animation: none; }
@media (prefers-reduced-motion: reduce) { .wm-lb i, .wm-banner .wm-top, .wm-banner .wm-foot, .wm-banner .wm-tick.in, .wm-banner .wm-rec i { animation: none; } .wm-banner .wm-bar i { transition: none; } }

/* the dock's Replay button: a film strip glyph, the same plate as Command and Vote */
.wd-replay .glyph, .wd-replay .glyph svg { width: 26px; height: 26px; }
.wd-replay .glyph svg { fill: none; stroke: #ffe08a; stroke-width: 1.6; }
.wd-replay .glyph svg .f { fill: #ffe08a; stroke: none; }
.wr-dock:has(> .wd-b:nth-child(5)) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
/* a sheet opened during the film sits on top: the bars step aside */
.wr-sheet:not([hidden]) ~ .wm-banner { visibility: hidden; }
