/* The Campaign finale's presentation (docs/CAMPAIGN-FINALE.md): the War Room in a nuclear winter (js/fx-campaign.js
   toggles .winter) and the Finisher show (js/finisher-show.js, .fs). Motion stops under calm and reduced motion. */

/* ---------- nuclear winter: a cold haze at the edges of the War Room ---------- */
.wr.winter .wr-stage::after { background: radial-gradient(ellipse at 50% 54%, transparent 46%, rgba(150, 166, 180, .26) 78%, rgba(22, 30, 38, .7) 100%); }

/* ---------- the Finisher ---------- */
.fs { position: fixed; inset: 0; z-index: 90; background: #06080a; color: #f2eee6; font-family: var(--display); overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.fs-stage, .fs-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.fs-top { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 10px; padding: calc(env(safe-area-inset-top, 0px) + 10px) 12px 10px; background: linear-gradient(#000c, #0000); }
.fs-live { padding: 3px 7px 2px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #fff; background: #b5232a; border: 1.5px solid #ff6a5c; }
.fs-live.replay { background: #2a2420; border-color: #9a8f80; }
.fs:not(.calm) .fs-live:not(.replay) { animation: fs-blink 1.6s steps(2) infinite; }
.fs-title { flex: 1; min-width: 0; line-height: 1; }
.fs-title small { display: block; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--fs-tint, #ffd36e); }
.fs-title b { display: block; margin-top: 3px; font-size: 19px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fs-clock { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #e8d39f; white-space: nowrap; }
.fs-x { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; background: #120c08cc; border: 1.5px solid #6b5f50; color: #f2eee6; cursor: pointer; }
.fs-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.fs-alert { position: absolute; left: 0; right: 0; top: calc(env(safe-area-inset-top, 0px) + 62px); overflow: hidden; white-space: nowrap; background: #b5232ad9; border-block: 1px solid #ff6a5c; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; line-height: 22px; }
.fs-alert[hidden] { display: none; }
.fs-alert span { display: inline-block; padding-left: 100%; }
.fs:not(.calm) .fs-alert span { animation: fs-tick 16s linear infinite; }
.fs.calm .fs-alert span { padding-left: 12px; }
.fs-center { position: absolute; left: 0; right: 0; top: 34%; text-align: center; pointer-events: none; text-shadow: 0 2px 0 #000, 0 0 18px #000c; }
.fs-center small { display: block; font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: var(--fs-tint, #ffd36e); }
.fs-center b { display: block; margin-top: 6px; font-size: clamp(38px, 12vw, 76px); font-weight: 400; letter-spacing: .06em; text-transform: uppercase; }
.fs-cap { position: absolute; left: 16px; right: 16px; bottom: calc(env(safe-area-inset-bottom, 0px) + 74px); margin: 0 auto; max-width: 560px; padding: 9px 12px; font: 400 14px/1.35 var(--display); letter-spacing: .04em; text-align: center; background: #0d0b09d9; border: 1.5px solid #3a3229; }
.fs-cap[hidden], .fs-cap:empty { display: none; }
.fs-foot { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 10px 12px calc(env(safe-area-inset-bottom, 0px) + 12px); background: linear-gradient(#0000, #000c); }
.fs-prog { flex: 1; height: 6px; background: #2a2420; border: 1px solid #4a4036; }
.fs-prog i { display: block; height: 100%; width: 0; background: var(--fs-tint, #ffd36e); }
.fs-skip, .fs-again { min-width: 76px; height: 40px; padding: 0 14px; font: 400 15px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: #f2eee6; background: #120c08cc; border: 1.5px solid #6b5f50; cursor: pointer; }
.fs-skip[hidden], .fs-again[hidden] { display: none; }
.fs-again { color: #120c08; background: #e8d39f; border-color: #fff4d0; }
.fs-flag { position: absolute; left: 50%; top: 18%; width: 132px; height: 190px; transform: translateX(-50%); pointer-events: none; }
.fs-flag[hidden] { display: none; }
.fs-pole { position: absolute; left: 0; bottom: 0; width: 5px; height: 100%; background: linear-gradient(90deg, #8a7a62, #f2ebda 45%, #6b5f50); border: 1px solid #0d0b09; }
.fs-cloth { position: absolute; left: 5px; top: 100%; width: 118px; height: 72px; transform-origin: 0 50%; transition: top 2.2s cubic-bezier(.2, .8, .2, 1); filter: drop-shadow(2px 3px 0 #000a); }
.fs-cloth svg { width: 100%; height: 100%; display: block; }
.fs-flag.up .fs-cloth { top: 4px; }
.fs:not(.calm) .fs-flag.up .fs-cloth { animation: fs-wave 2.4s ease-in-out infinite alternate; }
.fs.calm .fs-cloth { transition: none; }
.fs-credits { position: absolute; left: 0; right: 0; top: 72px; bottom: 74px; overflow: hidden; text-align: center; pointer-events: none; mask-image: linear-gradient(#0000, #000 12%, #000 88%, #0000); -webkit-mask-image: linear-gradient(#0000, #000 12%, #000 88%, #0000); }
.fs-credits[hidden] { display: none; }
.fs-roll { padding: 20px 16px; }
.fs-credits.roll .fs-roll { animation: fs-roll 24s linear both; }
.fs-roll small { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: #9a8f80; }
.fs-roll h2 { margin: 6px 0 2px; font-size: 34px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; }
.fs-roll h3 { margin: 22px 0 6px; font-size: 14px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; color: var(--fs-tint, #ffd36e); }
.fs-roll p { margin: 4px 0; font-size: 15px; letter-spacing: .06em; color: #e8d39f; }
.fs-roll ul { margin: 0; padding: 0; list-style: none; font-size: 17px; line-height: 1.5; letter-spacing: .05em; text-transform: uppercase; }
.fs-roll .fs-tally { margin-top: 22px; color: #f2eee6; }
.fs[data-ch='after'] .fs-cap, .fs[data-ch='credits'] .fs-cap { bottom: calc(env(safe-area-inset-bottom, 0px) + 74px); }
/* css/first-setup.css (loaded later) styles its own .fs-top and .fs-foot: inside the Finisher (.fs) its header stays on top and its footer at the
   bottom (it had moved the Skip bar up under the header and drawn a red rule under the title) */
.fs > .fs-top { position: absolute; justify-content: flex-start; border-bottom: 0; padding: calc(env(safe-area-inset-top, 0px) + 10px) 12px 10px; }
.fs > .fs-top::after { content: none; }
.fs > .fs-foot { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 10px 12px calc(env(safe-area-inset-bottom, 0px) + 12px); background: linear-gradient(#0000, #000c); }
/* the Nuclear Barrage's control room covers the stage (js/finisher-nuke.js draws it); its countdown digits are big but short-lived */
.fs[data-ch='silos'] .fs-center b, .fs[data-ch='launch'] .fs-center b { font-size: clamp(54px, 18vw, 110px); color: #ff6a5c; }
@keyframes fs-blink { 50% { opacity: .45; } }
@keyframes fs-tick { to { transform: translateX(-100%); } }
@keyframes fs-wave { from { transform: skewY(-3deg) scaleX(.97); } to { transform: skewY(3deg) scaleX(1); } }
@keyframes fs-roll { from { transform: translateY(70%); } to { transform: translateY(-100%); } }
@media (prefers-reduced-motion: reduce) { .fs *, .fs *::before, .fs *::after { animation: none !important; transition: none !important; } .fs-alert span { padding-left: 12px; } .fs-flag.up .fs-cloth { top: 4px; } }
@media (orientation: landscape) and (max-height: 500px) { .fs-center { top: 26%; } .fs-flag { top: 8%; height: 150px; } .fs-credits { top: 60px; bottom: 64px; } .fs-cap { bottom: calc(env(safe-area-inset-bottom, 0px) + 62px); } }
