/* The Commander's Legacy trailer (js/legacy-trailer.js): full screen over everything, field-journal red, black and brass.
   The words are placed here; their opacity and scale come from the film's clock (LegacyTrailer.titles). */
.ltr { position: fixed; inset: 0; z-index: 10060; background: #050405; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; cursor: pointer;
  --brass: #e2bd6e; --plat: #e9edf0; --crim: #c4233a; transition: opacity .4s ease; }
.ltr.out { opacity: 0; pointer-events: none; }
body.ltr-on { overflow: hidden; }
.ltr canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ltr-vig { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 120% 90% at 50% 46%, rgba(0,0,0,0) 52%, rgba(0,0,0,.55) 100%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, rgba(0,0,0,0) 1px 3px); }
/* letterbox for the 3D shots */
.ltr-bars::before, .ltr-bars::after { content: ''; position: absolute; left: 0; right: 0; height: 0; background: #030203; transition: height .35s ease; z-index: 1; }
.ltr-bars::before { top: 0; } .ltr-bars::after { bottom: 0; }
.ltr.bars .ltr-bars::before, .ltr.bars .ltr-bars::after { height: 6.5vh; }
.ltr-t { position: absolute; left: 50%; transform: translate(-50%, 0); transform-origin: 50% 50%; text-align: center; pointer-events: none; opacity: 0; visibility: hidden; z-index: 2;
  font-family: var(--display); text-transform: uppercase; color: var(--plat); white-space: nowrap; will-change: opacity, transform; }
.ltr-t small { display: block; font-size: clamp(11px, 3.1vw, 15px); letter-spacing: .32em; color: var(--brass); margin-bottom: 6px; text-shadow: 0 1px 6px rgba(0,0,0,.8); }
.ltr-t b { display: block; font-weight: 400; text-shadow: 0 2px 14px rgba(0,0,0,.85), 0 0 2px rgba(0,0,0,.9); }
.ltr-mark { top: 44%; }
.ltr-mark b { font-size: clamp(30px, 10vw, 72px); letter-spacing: .34em; padding-left: .34em; color: var(--brass);
  border-top: 1px solid rgba(226,189,110,.55); border-bottom: 1px solid rgba(226,189,110,.55); padding-top: .12em; padding-bottom: .04em; }
.ltr-nation { top: max(8vh, calc(env(safe-area-inset-top) + 56px)); }
.ltr-nation b { font-size: clamp(24px, 7.6vw, 56px); letter-spacing: .08em; max-width: 92vw; white-space: normal; line-height: .95; }
.ltr-tag { bottom: calc(6.5vh + 22px + env(safe-area-inset-bottom)); text-align: left; padding-left: 14px; border-left: 3px solid var(--crim); left: 8vw; transform-origin: 0 50%; }
.ltr-tag small { margin-bottom: 2px; }
.ltr-tag b { font-size: clamp(26px, 8.4vw, 60px); letter-spacing: .06em; line-height: .92; }
.ltr-title { top: max(11vh, calc(env(safe-area-inset-top) + 64px)); width: 94vw; white-space: normal; }
.ltr-title small { letter-spacing: .5em; padding-left: .5em; }
.ltr-title b { font-size: clamp(34px, 12.6vw, 112px); line-height: .88; letter-spacing: .03em;
  background: linear-gradient(180deg, #fbfcfd 0%, #dfe5ea 46%, #9eabb6 54%, #eef2f4 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 10px rgba(0,0,0,.85)); text-shadow: none; }
.ltr-title b::after { content: ''; display: block; width: 46%; height: 3px; margin: .16em auto 0; background: linear-gradient(90deg, rgba(196,35,58,0), var(--crim), rgba(196,35,58,0)); }
.ltr-gold { display: inline-block; margin-top: 14px; opacity: 0; visibility: hidden; font-size: clamp(13px, 3.8vw, 20px); letter-spacing: .34em; padding: 6px 12px 5px calc(12px + .34em);
  color: #2a1c06; background: linear-gradient(180deg, #ffe9a8, #d9a648 55%, #f6d488); border: 1px solid #7a5a1c; box-shadow: 0 0 24px rgba(240,190,90,.55); }
.ltr-end { bottom: calc(10vh + env(safe-area-inset-bottom)); width: 92vw; white-space: normal; }
.ltr-end ul { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; }
.ltr-end li { font-size: clamp(14px, 4.2vw, 22px); letter-spacing: .14em; color: var(--plat); text-shadow: 0 1px 8px rgba(0,0,0,.9); }
.ltr-end li + li::before { content: ''; display: inline-block; width: 5px; height: 5px; margin: 0 .7em .22em; background: var(--brass); transform: rotate(45deg); }
.ltr-end em { display: block; font-style: normal; font-size: clamp(12px, 3.4vw, 16px); letter-spacing: .24em; color: var(--brass); }
.ltr-skip { position: absolute; z-index: 3; top: calc(env(safe-area-inset-top) + 12px); right: calc(env(safe-area-inset-right) + 12px); min-height: 40px; padding: 0 16px;
  font: 400 15px/1 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--plat); background: rgba(10,8,8,.55); border: 1px solid rgba(226,189,110,.6); border-radius: 20px; }
.ltr-prog { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.08); }
.ltr-prog i { display: block; height: 100%; background: linear-gradient(90deg, var(--crim), var(--brass)); transform-origin: 0 50%; transform: scaleX(0); }
@media (prefers-reduced-motion: reduce) { .ltr-bars::before, .ltr-bars::after { transition: none; } }
/* The Legacy sheet's replay button (js/legacy-showroom.js) */
.legacy-showroom .lg-trailer { display: inline-flex; align-items: center; gap: 5px; margin: 0 0 0 10px; min-height: 32px; padding: 0 12px 0 8px; vertical-align: middle;
  font: 400 13px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: #f4ecd6; background: linear-gradient(180deg, #8f1b2b, #5d0f1b);
  border: 1px solid #e2bd6e; border-radius: 16px; box-shadow: 0 0 12px rgba(196,35,58,.35); cursor: pointer; }
.legacy-showroom .lg-trailer svg { width: 14px; height: 14px; color: #e2bd6e; }
