/* The end of every shot is a complete illustration. All controls stay live throughout. */
.frontier-screening[open] {position:fixed;inset:0;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:clamp(8px,3vh,28px);width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:16px;border:0;border-radius:0;background:#0b1021;color:#fff0d8;overflow:auto}
.frontier-screening::backdrop {background:#0b1021}
.frontier-screening h2 {font-family:var(--display);margin:0;text-align:center}
.frontier-screening .frontier-film {align-self:center;width:min(100%,960px,175vh);border:0}
.frontier-screening .frontier-film .ff-screen {width:100%;max-height:57vh}
.frontier-screening figcaption {padding:12px;text-align:center;font-size:clamp(1rem,3vw,1.4rem)}
.frontier-screening button {min-height:44px}
.mission-card.frontier-card {grid-template-columns:minmax(0,1.12fr) minmax(0,1fr)}
.frontier-film {align-self:stretch;display:grid;align-content:center;min-width:0;margin:0;background:#171c35;color:#f9dfb5;border-right:1px solid #82768c}
.frontier-film .ff-screen {display:block;width:100%;height:auto;background:linear-gradient(178deg,var(--sky) 8%,var(--ridge) 68%,var(--horizon));overflow:hidden}
.frontier-film figcaption {margin:0;padding:7px 12px 9px;border-top:1px solid #6d687d;color:#fff0d8;font:600 clamp(.78rem,1.8vw,.93rem)/1.35 var(--body,system-ui)}
.frontier-film .ff-beast-frame {display:none}
body:has(.leviathan-lair.is-ready) .ff-beast-fallback {display:none}
body:has(.leviathan-lair.is-ready) .ff-beast-frame {display:block}
.ff-beast-pose {width:100%;height:100%;background:var(--leviathan-prowl) left top / 3200% 100% no-repeat}
.frontier-film[data-cut="lost"] .ff-beast-pose {background-image:var(--leviathan-charge)}

@media (max-width:540px) {
  .mission-card.frontier-card {grid-template-columns:1fr;min-height:0}
  .frontier-film {border-right:0;border-bottom:1px solid #82768c}
  .frontier-film .ff-screen {max-height:100px}
  .frontier-film figcaption {padding:5px 10px}
}
@media (prefers-reduced-motion:no-preference) {
  .frontier-film .ff-move {transform-box:fill-box;transform-origin:center;animation:ff-travel 1.65s cubic-bezier(.26,.08,.2,1) var(--delay,0ms) both}
  .frontier-film .ff-trace {stroke-dasharray:1;animation:ff-transmit 1.1s .15s ease-out both}
  .frontier-film .ff-rings {transform-box:fill-box;transform-origin:center;animation:ff-ripple 1.3s .35s ease-out both}
  @keyframes ff-travel {
    from {transform:translate(var(--dx),var(--dy)) rotate(var(--turn)) scale(var(--zoom))}
    to {transform:none}
  }
  @keyframes ff-transmit {from {stroke-dashoffset:1;opacity:.1} to {stroke-dashoffset:0;opacity:1}}
  @keyframes ff-ripple {from {transform:scale(.16);opacity:.1} 68% {opacity:.95} to {transform:scale(1);opacity:.8}}
}
