/* This file has been fully or partially auto-generated. */
/* Theatre map: the hub screen after the title screen (js/game/theatre.js). Every rule is scoped to #theatre so the
   names it shares with the game's own stylesheet (.screen, .pop, .deploy, .stat …) cannot leak either way.
   The shared tokens (colours, fonts, .cta, .ghost, .seg, .tog, .dialog, .overlay) come from style.css. */
#theatre{
  /* Faction UI colours, from PAL[].ui in the game */
  --fed:#5ad8f2;
  --alr:#ff5b4a;
  /* Lagrange points: a cool blue, distinct from amber (interactive) and from the Federation cyan */
  --lpoint:#7d98ff;
  position:fixed;inset:0;z-index:20;background:var(--void);overflow:hidden;touch-action:pan-y;
}
#theatre .lobby{grid-template-columns:minmax(0,1fr);}
#theatre .nav{min-width:0;}
#theatre .objs{display:flex;flex-direction:column;gap:14px;}
#theatre .nr-body{display:flex;flex-direction:column;gap:10px;}
#theatre .map-hud.tl .note{color:var(--amber);max-width:46ch;line-height:1.4;}

/* "Host a new battle" marker: the same disc as a battle, in signal cyan */
#theatre .hostmk{cursor:pointer;outline:none;}
#theatre .hostmk .disc{fill:var(--void);stroke:var(--signal);stroke-width:1.6;stroke-dasharray:4 3;transition:stroke .15s;}
#theatre .hostmk .ping{fill:none;stroke:var(--signal);stroke-width:1.2;transform-box:fill-box;transform-origin:center;animation:th-ping 3.4s ease-out infinite;}
#theatre .hostmk .ship{color:var(--signal);}
#theatre .hostmk:hover .disc,#theatre .hostmk:focus-visible .disc,#theatre .hostmk.open .disc{stroke:var(--ink);fill:#13213a;stroke-dasharray:none;}
#theatre .hostmk:focus-visible .disc{stroke-width:2.6;}
#theatre .mapwrap.dragging .hostmk{cursor:grabbing;}
#theatre .eng.host:hover{border-color:var(--signal);}
#theatre .eng.host .go{color:var(--signal);}

/* ---- Lobby layout ---- */
#theatre .lobby{display:grid;grid-template-rows:auto minmax(0,1fr);height:100vh;height:100dvh;}
#theatre .topbar{display:flex;align-items:center;gap:22px;padding:10px 16px;border-bottom:1px solid var(--line);background:var(--panel);position:relative;z-index:3;}
#theatre .tb-brand{display:flex;flex-direction:column;gap:3px;line-height:1;}
#theatre .tb-brand b{font-family:var(--f-display);font-weight:900;font-size:24px;letter-spacing:.03em;color:var(--amber);text-transform:uppercase;}
#theatre .tb-brand span{font-family:var(--f-data);font-size:10px;letter-spacing:.42em;color:var(--signal);text-transform:uppercase;}
#theatre .nav{display:flex;}
#theatre .nav button{font-family:var(--f-ui);font-weight:600;font-size:17px;letter-spacing:.12em;text-transform:uppercase;height:40px;padding:0 20px;
  background:#0d1526;border:1px solid var(--line);color:var(--dim);cursor:pointer;display:flex;align-items:center;gap:8px;}
#theatre .nav button + button{border-left:0;}
#theatre .nav button:hover:not(:disabled){color:var(--ink);}
#theatre .nav button[aria-pressed="true"]{color:var(--ink);background:#13213a;box-shadow:inset 0 -2px 0 var(--amber);}
#theatre .nav button:disabled{cursor:not-allowed;opacity:.5;}
#theatre .nav .tag{font-family:var(--f-data);font-size:9px;font-weight:600;letter-spacing:.18em;color:var(--dim);}
#theatre .tb-right{margin-left:auto;display:flex;gap:22px;align-items:center;font-family:var(--f-data);font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--dim);}
#theatre .tb-right b{display:block;font-weight:600;font-size:13px;color:var(--ink);letter-spacing:.1em;margin-top:2px;font-variant-numeric:tabular-nums;}
#theatre .tb-right .fedc{color:var(--fed);}
#theatre .main{display:grid;grid-template-columns:minmax(0,1fr) 370px;min-height:0;}
/* ---- Map ---- */
#theatre .mapwrap{position:relative;overflow:hidden;min-height:0;
  background:radial-gradient(ellipse 60% 70% at 44% 50%, #0b1427 0%, var(--void) 70%);}
#theatre .mapwrap > svg{position:absolute;inset:0;width:100%;height:100%;display:block;cursor:grab;touch-action:none;}
#theatre .mapwrap.dragging > svg{cursor:grabbing;}
#theatre .mapwrap.dragging .battle{cursor:grabbing;}
#theatre .map-hud.tr{bottom:84px;right:18px;display:flex;flex-direction:column;pointer-events:auto;background:rgba(6,10,19,.7);border:1px solid var(--line);}
#theatre .zoomctl button{width:40px;height:40px;background:transparent;border:0;border-top:1px solid var(--line);color:var(--amber);cursor:pointer;display:grid;place-items:center;padding:0;}
#theatre .zoomctl button:first-child{border-top:0;}
#theatre .zoomctl button:hover:not(:disabled){background:#13213a;}
#theatre .zoomctl button:disabled{color:var(--dim);opacity:.5;cursor:default;}
#theatre .zoomctl svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:square;}
#theatre .zoomctl output{font-family:var(--f-data);font-size:10px;letter-spacing:.06em;color:var(--steel);text-align:center;padding:3px 0;border-top:1px solid var(--line);font-variant-numeric:tabular-nums;}
#theatre .map-hud.tl .hint{color:#4f5d75;}
#theatre .mapwrap::after{content:'';position:absolute;inset:0;pointer-events:none;z-index:2;
  background:repeating-linear-gradient(180deg, rgba(255,255,255,.028) 0 1px, transparent 1px 3px),
             radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.55) 100%);}
#theatre .map-hud{position:absolute;z-index:3;pointer-events:none;}
#theatre .map-hud.tl{top:16px;left:18px;display:flex;flex-direction:column;gap:6px;}
#theatre .map-hud.tl h1{font-family:var(--f-display);font-weight:900;font-size:clamp(28px,3.2vw,40px);line-height:.9;margin:0;text-transform:uppercase;color:var(--amber);}
#theatre .map-hud.tl .sub{font-family:var(--f-data);font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--dim);}
#theatre .map-hud.bl{left:18px;bottom:16px;display:flex;flex-wrap:wrap;gap:8px 18px;font-family:var(--f-data);font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--steel);
  background:rgba(6,10,19,.7);border:1px solid var(--line);padding:8px 12px;}
#theatre .map-hud.bl span{display:flex;align-items:center;gap:7px;}
#theatre .map-hud.bl svg{width:18px;height:18px;flex:none;}
#theatre .sw{width:14px;height:14px;display:block;flex:none;box-sizing:border-box;}
#theatre .sw.fed{background:rgba(90,216,242,.28);border:1px solid var(--fed);}
#theatre .sw.alr{background:rgba(255,91,74,.28);border:1px solid var(--alr);}
#theatre .sw.con{background:repeating-linear-gradient(45deg, rgba(90,216,242,.55) 0 3px, rgba(255,91,74,.55) 3px 6px);border:1px solid var(--steel);}
#theatre .sw.neu{border:1px dashed var(--dim);}
#theatre .map-hud.br{right:18px;bottom:16px;text-align:right;font-family:var(--f-data);font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--dim);}
#theatre .map-hud.br b{display:block;font-family:var(--f-display);font-weight:900;font-size:34px;line-height:.9;color:var(--ink);letter-spacing:.04em;}
/* SVG vector styling */
#theatre .grid line{stroke:#1a2640;stroke-width:1;}
#theatre .grid line.major{stroke:#213050;}
#theatre .helio{fill:none;stroke:#2a3a58;stroke-width:1;stroke-dasharray:2 6;}
#theatre .helio.px{stroke:#3a4c70;stroke-dasharray:1 7;}
#theatre .helio.earth{stroke:#33476b;stroke-dasharray:6 6;}
#theatre .t-au{font-family:var(--f-data);font-size:calc(10px * var(--ts, 1));letter-spacing:.08em;fill:var(--dim);}
#theatre .t-name{font-family:var(--f-ui);font-weight:600;font-size:calc(15px * var(--ts, 1));letter-spacing:.16em;text-transform:uppercase;fill:var(--steel);}
#theatre .t-name.minor{font-size:calc(12px * var(--ts, 1));fill:var(--dim);}
#theatre .t-moon{font-family:var(--f-data);font-size:calc(9.5px * var(--ts, 1));letter-spacing:.06em;fill:var(--dim);}
#theatre .t-big{font-family:var(--f-display);font-weight:900;font-size:calc(30px * var(--ts, 1));letter-spacing:.06em;fill:var(--ink);text-transform:uppercase;}
#theatre .t-lp{font-family:var(--f-display);font-weight:900;font-size:24px;fill:var(--ink);}
#theatre .t-sub.lp-name{fill:var(--ink);}
#theatre .t-sub{font-family:var(--f-data);font-size:calc(10px * var(--ts, 1));letter-spacing:.14em;fill:var(--steel);text-transform:uppercase;}
#theatre .scl .t-sub{font-size:10px;}
#theatre .t-fed{fill:var(--fed);}
#theatre .t-alr{fill:var(--alr);}
#theatre .t-con{fill:var(--ink);}
#theatre .t-neu{fill:var(--dim);}
#theatre .t-brg{font-family:var(--f-data);font-size:calc(10px * var(--ts, 1));fill:var(--dim);letter-spacing:.06em;}
#theatre .planet{fill:#08101e;stroke:var(--steel);stroke-width:1.2;}
#theatre .planet-detail{fill:none;stroke:var(--steel);stroke-width:.8;opacity:.55;}
#theatre .moon-orbit{fill:none;stroke:#2a3a58;stroke-width:.8;stroke-dasharray:1 3;}
#theatre .moon-dot{fill:var(--steel);}
#theatre .belt{fill:var(--dim);}
#theatre .sun{fill:url(#sunFill);stroke:#d9cfa8;stroke-width:1.5;opacity:.8;}
#theatre .sun-ray{stroke:#d9cfa8;stroke-width:1.2;opacity:.45;}
#theatre .ring{fill:none;stroke:#2b3d60;stroke-width:1;}
#theatre .ring.geo{stroke:#2f5068;stroke-dasharray:3 4;}
#theatre .ring.luna{stroke:#3f557c;stroke-width:1.2;}
#theatre .ring.limit{stroke:#2b3d60;stroke-dasharray:10 5;}
#theatre .spoke{stroke:#33476b;stroke-width:1;}
/* Sectors: tinted by controlling party; contested = alternating stripes of both */
#theatre .sec{stroke:none;}
#theatre .sec.fed{fill:rgba(90,216,242,.10);}
#theatre .sec.alr{fill:rgba(255,91,74,.11);}
#theatre .sec.con{fill:url(#contested);}
#theatre .sec.neu{fill:none;}
#theatre .zone{stroke-width:1;stroke-dasharray:4 4;}
#theatre .zone.fed{stroke:rgba(90,216,242,.5);}
#theatre .zone.alr{stroke:rgba(255,91,74,.55);}
#theatre .zone.con{stroke:rgba(235,240,247,.4);}
#theatre .zone.neu{fill:none;stroke:#2b3d60;}
#theatre .t-sec{font-family:var(--f-data);font-size:calc(9.5px * var(--ts, 1));letter-spacing:.14em;fill:#7f8ea8;}
#theatre .tick{stroke:#3f557c;stroke-width:1;}
#theatre .tick.major{stroke:var(--steel);}
#theatre .axis{stroke:#3f557c;stroke-width:1;stroke-dasharray:14 6 2 6;}
#theatre .tri{fill:none;stroke:#2f4366;stroke-width:1;stroke-dasharray:3 5;}
#theatre .halo-orbit{fill:none;stroke:var(--lpoint);stroke-width:.9;stroke-dasharray:2 3;opacity:.7;}
#theatre .lp-diamond{fill:var(--void);stroke:var(--lpoint);stroke-width:1.6;}
#theatre .lp-cross{stroke:var(--lpoint);stroke-width:1.2;}
#theatre .earth-shell{fill:url(#earthFill);stroke:var(--signal);stroke-width:1.8;}
#theatre .earth-wire{fill:none;stroke:var(--signal);stroke-width:.9;opacity:.65;}
#theatre .night{fill:rgba(2,4,9,.55);}
#theatre .moon-shell{fill:#0b1222;stroke:var(--steel);stroke-width:1.4;}
#theatre .moon-mare{fill:rgba(163,179,201,.16);stroke:var(--steel);stroke-width:.6;opacity:.8;}
#theatre .moon-wire{fill:none;stroke:var(--steel);stroke-width:.8;opacity:.55;}
/* Battle markers */
#theatre .battle{cursor:pointer;outline:none;}
#theatre .battle .disc{fill:var(--void);stroke:var(--amber);stroke-width:1.6;transition:stroke .15s;}
#theatre .battle .ping{fill:none;stroke:var(--amber);stroke-width:1.4;transform-box:fill-box;transform-origin:center;animation:th-ping 2.6s ease-out infinite;}
#theatre .battle.hot .ping{stroke:var(--hostile);}
#theatre .battle .swords{color:var(--amber);}
#theatre .battle .badge{fill:var(--amber);}
#theatre .battle .badge-n{font-family:var(--f-display);font-weight:900;font-size:14px;fill:#160d00;}
#theatre .battle:hover .disc,#theatre .battle:focus-visible .disc,#theatre .battle.open .disc{stroke:var(--ink);fill:#13213a;}
#theatre .battle:focus-visible .disc{stroke-width:2.6;}
@keyframes th-ping{0%{transform:scale(.7);opacity:.9}80%,100%{transform:scale(2.2);opacity:0}}
/* Engagement popup */
#theatre .pop{position:absolute;z-index:6;width:min(350px, calc(100% - 24px));background:rgba(9,15,28,.95);border:1px solid var(--amber);
  box-shadow:0 0 0 1px rgba(255,176,59,.12), 0 18px 50px rgba(0,0,0,.6);padding:14px;display:flex;flex-direction:column;gap:10px;}
#theatre .pop-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;}
#theatre .pop-head h3{font-family:var(--f-display);font-weight:900;font-size:30px;line-height:.9;margin:4px 0 0;text-transform:uppercase;color:var(--amber);}
#theatre .pop-x{background:transparent;border:1px solid var(--line);color:var(--steel);width:32px;height:32px;cursor:pointer;font-family:var(--f-data);flex:none;}
#theatre .pop-x:hover{border-color:var(--steel);color:var(--ink);}
#theatre .eng{text-align:left;background:#0d1526;border:1px solid var(--line);padding:10px 12px;cursor:pointer;display:flex;flex-direction:column;gap:6px;width:100%;}
#theatre .eng:hover{border-color:var(--amber);}
#theatre .eng-top{display:flex;justify-content:space-between;align-items:baseline;gap:8px;}
#theatre .eng .n{font-weight:700;font-size:18px;letter-spacing:.06em;text-transform:uppercase;}
#theatre .eng .go{font-family:var(--f-data);font-size:11px;font-weight:600;letter-spacing:.16em;color:var(--amber);white-space:nowrap;}
#theatre .eng .m{font-family:var(--f-data);font-size:11px;color:var(--dim);letter-spacing:.06em;text-transform:uppercase;display:flex;flex-wrap:wrap;gap:4px 12px;}
#theatre .eng .m b{color:var(--steel);font-weight:600;}
#theatre .eng .m .hot{color:var(--hostile);}
#theatre .balance{display:flex;height:4px;gap:2px;}
#theatre .balance i{background:var(--fed);}
#theatre .balance s{background:var(--alr);flex:1;}
#theatre .pop-list{display:flex;flex-direction:column;gap:6px;max-height:min(52vh, 420px);overflow-y:auto;}
/* ---- Sidebar ---- */
#theatre .side{border-left:1px solid var(--line);background:var(--panel);overflow-y:auto;display:flex;flex-direction:column;}
#theatre .side-inner{padding:18px 18px 0;display:flex;flex-direction:column;gap:14px;}
#theatre .side-title{font-family:var(--f-display);font-weight:900;font-size:44px;line-height:.9;margin:0;text-transform:uppercase;color:var(--amber);}
#theatre .obj{border:1px solid var(--line);background:rgba(6,10,19,.5);padding:12px 14px;display:flex;flex-direction:column;gap:9px;}
#theatre .obj.primary{border-color:#3a4c70;box-shadow:inset 3px 0 0 var(--amber);}
#theatre .obj-head{display:flex;justify-content:space-between;align-items:center;gap:8px;font-family:var(--f-data);font-size:10px;letter-spacing:.2em;text-transform:uppercase;color:var(--signal);}
#theatre .obj-head .r{color:var(--dim);letter-spacing:.1em;}
#theatre .obj-head .r b{color:var(--ink);font-weight:600;}
#theatre .obj-title{font-weight:700;font-size:21px;letter-spacing:.06em;text-transform:uppercase;line-height:1.05;}
#theatre .obj p{margin:0;font-size:15px;line-height:1.3;color:var(--steel);}
#theatre .cd{font-family:var(--f-data);font-variant-numeric:tabular-nums;}
#theatre .timer{display:flex;justify-content:space-between;align-items:baseline;border-top:1px solid var(--line);padding-top:8px;font-family:var(--f-data);font-size:10px;letter-spacing:.18em;text-transform:uppercase;color:var(--dim);}
#theatre .timer .cd{font-size:22px;font-weight:600;color:var(--ink);letter-spacing:.04em;}
#theatre .timer .cd.soon{color:var(--amber);}
#theatre .tug{display:flex;height:8px;gap:2px;}
#theatre .tug i{background:var(--fed);transition:width .6s;}
#theatre .tug s{background:var(--alr);flex:1;}
#theatre .tug-l{display:flex;justify-content:space-between;font-family:var(--f-data);font-size:11px;letter-spacing:.12em;text-transform:uppercase;}
#theatre .tug-l .f{color:var(--fed);}
#theatre .tug-l .a{color:var(--alr);}
#theatre .checks{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;}
#theatre .checks li{display:grid;grid-template-columns:18px minmax(0,1fr);gap:10px;align-items:start;border-top:1px solid var(--line);padding:9px 0;}
#theatre .checks li:first-child{border-top:0;padding-top:2px;}
#theatre .box{width:16px;height:16px;border:1px solid var(--steel);margin-top:2px;position:relative;box-sizing:border-box;}
#theatre .done .box{border-color:var(--signal);background:rgba(90,216,242,.12);}
#theatre .done .box::after{content:'✓';position:absolute;inset:-3px 0 0 1px;font-size:14px;line-height:16px;color:var(--signal);font-family:var(--f-data);}
#theatre .ct{font-size:16px;line-height:1.2;}
#theatre .done .ct{color:var(--dim);text-decoration:line-through;text-decoration-color:rgba(102,117,142,.7);}
#theatre .rw{font-family:var(--f-data);font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:var(--amber);margin-top:3px;}
#theatre .done .rw{color:var(--dim);}
#theatre .mini{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;margin-top:6px;font-family:var(--f-data);font-size:11px;color:var(--steel);font-variant-numeric:tabular-nums;}
#theatre .phases{display:grid;grid-template-columns:repeat(5,1fr);gap:3px;}
#theatre .phases span{height:10px;background:#18223a;position:relative;overflow:hidden;}
#theatre .phases span.full{background:var(--amber);}
#theatre .phases span.part i{position:absolute;inset:0 auto 0 0;background:var(--amber);opacity:.55;}
#theatre .phase-l{display:grid;grid-template-columns:repeat(5,1fr);gap:3px;font-family:var(--f-data);font-size:9.5px;letter-spacing:.1em;color:var(--dim);text-transform:uppercase;}
#theatre .phase-l .now{color:var(--amber);}
#theatre .evt-row{display:flex;justify-content:space-between;align-items:center;gap:10px;}
#theatre .live{color:var(--hostile);}
#theatre .live::before{content:'● ';}
#theatre .deploy{position:sticky;bottom:0;margin-top:auto;padding:16px 18px 18px;display:flex;flex-direction:column;gap:10px;
  background:linear-gradient(180deg, rgba(9,15,28,0) 0%, rgba(9,15,28,.97) 22%);}
#theatre .deploy .seg button{flex:1;}
#theatre .deploy .cta{width:100%;text-align:left;display:flex;justify-content:space-between;align-items:center;}
#theatre .deploy .cta.searching{background:#13213a;color:var(--amber);box-shadow:inset 0 0 0 1px var(--amber);}
/* Custom skirmishes: the secondary button above Quick deploy, and its dialog */
#theatre .deploy .mbtn{width:100%;font-size:20px;padding:9px 30px 7px;}
#theatre .deploy .mbtn small{font-family:var(--f-data);font-size:11px;font-weight:600;letter-spacing:.14em;color:var(--dim);}
#theatre #thCustomDlg .dialog{max-width:620px;}
#theatre .cs-part{display:flex;flex-direction:column;gap:10px;border-top:1px solid var(--line);padding-top:14px;}
#theatre .cs-part .mbtn{align-self:flex-start;font-size:22px;}
#theatre .cs-part .joinrow .cta{font-size:26px;}
#theatre .deploy .cta small{font-family:var(--f-data);font-size:13px;font-weight:600;letter-spacing:.12em;}
/* ---- Newsreel ---- */
#theatre .overlay{transition:opacity .25s ease;}
#theatre .overlay.fading{opacity:0;}
#theatre #reel{z-index:30;cursor:pointer;background:rgba(2,4,9,.86);}
#theatre #reel .dialog,#theatre #story .dialog{background:rgba(9,15,28,.97);}
#theatre #story{background:rgba(2,4,9,.8);}
#theatre .newsreel{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:24px;align-items:stretch;}
@media (max-width:860px){
#theatre .newsreel{grid-template-columns:1fr;}
}
#theatre .screen{position:relative;aspect-ratio:16/9;background:#020409;border:1px solid var(--line);overflow:hidden;align-self:start;}
#theatre .screen .tint{position:absolute;inset:0;background:radial-gradient(ellipse at 50% 45%, rgba(163,179,201,.16) 0%, rgba(2,4,9,0) 65%);}
#theatre .screen::after{content:'';position:absolute;inset:0;pointer-events:none;
  background:repeating-linear-gradient(180deg, rgba(255,255,255,.05) 0 1px, transparent 1px 3px),
             radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,.75) 100%);
  animation:th-flicker 3s steps(12) infinite;}
@keyframes th-flicker{0%,100%{opacity:1}45%{opacity:.82}50%{opacity:.95}72%{opacity:.86}}
@property --sweep{syntax:'<angle>';inherits:false;initial-value:0deg;}
#theatre .leader{position:absolute;inset:0;display:grid;place-items:center;}
#theatre .leader::before,#theatre .leader::after{content:'';position:absolute;background:rgba(235,240,247,.35);}
#theatre .leader::before{left:0;right:0;top:50%;height:1px;}
#theatre .leader::after{top:0;bottom:0;left:50%;width:1px;}
#theatre .leader-ring{width:44%;aspect-ratio:1;border-radius:50%;position:relative;display:grid;place-items:center;
  border:2px solid rgba(235,240,247,.6);box-shadow:0 0 0 10px rgba(2,4,9,.6), 0 0 0 11px rgba(235,240,247,.3);
  background:conic-gradient(rgba(255,176,59,.30) var(--sweep), rgba(255,176,59,0) 0);animation:th-sweep 1s linear infinite;}
@keyframes th-sweep{from{--sweep:0deg}to{--sweep:360deg}}
#theatre .leader-n{font-family:var(--f-display);font-weight:900;font-size:clamp(56px,9vw,120px);line-height:1;color:var(--ink);position:relative;z-index:1;text-shadow:0 0 18px rgba(235,240,247,.35);}
#theatre .screen .hud{position:absolute;z-index:2;font-family:var(--f-data);font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--steel);}
#theatre .screen .hud.tl{top:10px;left:12px;}
#theatre .screen .hud.tl .rec{color:var(--hostile);}
#theatre .screen .hud.tr{top:10px;right:12px;color:var(--signal);}
#theatre .screen .hud.b{bottom:10px;left:0;right:0;text-align:center;color:var(--dim);letter-spacing:.3em;}
#theatre .nr-text{display:flex;flex-direction:column;gap:14px;min-width:0;}
#theatre .nr-text h2{font-size:clamp(40px,5vw,60px)!important;}
#theatre .nr-meta{font-family:var(--f-data);font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--dim);border-top:1px solid var(--line);padding-top:10px;display:flex;flex-wrap:wrap;gap:4px 16px;}
#theatre .continue{margin-top:auto;align-self:flex-end;display:flex;align-items:center;gap:12px;font-family:var(--f-display);font-weight:700;font-size:28px;
  letter-spacing:.1em;text-transform:uppercase;color:var(--amber);background:transparent;border:0;padding:8px 0 0;cursor:pointer;animation:th-breathe 2.2s ease-in-out infinite;}
#theatre .continue svg{width:22px;height:30px;}
#theatre .continue .btnL{animation:th-click 1.1s steps(1) infinite;}
@keyframes th-breathe{0%,100%{opacity:1}50%{opacity:.62}}
@keyframes th-click{0%{fill:var(--amber)}50%{fill:transparent}}
/* ---- Story archive ---- */
#theatre .story-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;}
#theatre .story-grid{display:grid;grid-template-columns:repeat(auto-fill, minmax(230px, 1fr));gap:10px;}
#theatre .sitem{text-align:left;background:var(--panel);border:1px solid var(--line);padding:0 0 12px;cursor:pointer;display:flex;flex-direction:column;gap:6px;min-width:0;}
#theatre .sitem:hover:not(:disabled){border-color:var(--steel);}
#theatre .sitem:disabled{cursor:not-allowed;opacity:.55;}
#theatre .thumb{position:relative;aspect-ratio:16/9;background:#03060d;overflow:hidden;border-bottom:1px solid var(--line);}
#theatre .thumb::after{content:'';position:absolute;inset:0;background:repeating-linear-gradient(180deg, rgba(255,255,255,.05) 0 1px, transparent 1px 3px);}
#theatre .thumb .code{position:absolute;left:10px;bottom:8px;font-family:var(--f-display);font-weight:900;font-size:34px;line-height:.9;color:var(--amber);z-index:1;}
#theatre .thumb .play{position:absolute;right:10px;bottom:10px;width:30px;height:30px;border:1px solid var(--steel);display:grid;place-items:center;z-index:1;color:var(--ink);font-size:11px;}
#theatre .thumb.newsreel-t{background:radial-gradient(circle at 68% 40%, rgba(90,216,242,.22) 0 18%, transparent 19%), linear-gradient(160deg,#06142e,#020409 70%);}
#theatre .thumb.briefing-t{background:linear-gradient(90deg, transparent 49.5%, rgba(255,176,59,.35) 50%, transparent 50.5%), linear-gradient(0deg, transparent 49.5%, rgba(255,176,59,.35) 50%, transparent 50.5%), linear-gradient(160deg,#141a10,#020409 70%);}
#theatre .thumb.intercept-t{background:repeating-linear-gradient(90deg, rgba(255,91,74,.18) 0 2px, transparent 2px 9px), linear-gradient(160deg,#2a0d0a,#020409 70%);}
#theatre .thumb.locked-t{background:repeating-linear-gradient(135deg, #0d1526 0 8px, #0a101d 8px 16px);}
#theatre .sitem .ty{font-family:var(--f-data);font-size:10px;letter-spacing:.2em;text-transform:uppercase;color:var(--signal);padding:4px 12px 0;}
#theatre .sitem .ty.ty-intercept{color:var(--hostile);}
#theatre .sitem .ty.ty-briefing{color:var(--amber);}
#theatre .sitem .nm{font-weight:700;font-size:18px;letter-spacing:.06em;text-transform:uppercase;padding:0 12px;line-height:1.1;}
#theatre .sitem .dt{font-family:var(--f-data);font-size:11px;color:var(--dim);padding:0 12px;letter-spacing:.06em;}
#theatre .toast{position:fixed;left:50%;bottom:28px;transform:translateX(-50%);z-index:50;background:rgba(9,15,28,.96);border:1px solid var(--signal);
  padding:12px 18px;font-family:var(--f-data);font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--ink);max-width:calc(100% - 32px);}
#theatre .toast b{color:var(--signal);}
@media (max-width:1100px){
#theatre .tb-right .hide-m{display:none;}
}
@media (max-width:980px){
#theatre{overflow:auto;}
#theatre .lobby{height:auto;min-height:100vh;}
#theatre .main{grid-template-columns:1fr;}
#theatre .mapwrap{height:min(105vw, 76vh);min-height:380px;}
#theatre .side{border-left:0;border-top:1px solid var(--line);overflow:visible;}
#theatre .topbar{flex-wrap:wrap;gap:12px;}
#theatre .tb-right{margin-left:0;}
}
@media (max-width:700px){
#theatre .mapwrap{height:min(140vw, 84vh);}
#theatre .mapwrap > svg{top:96px;bottom:78px;height:auto;}
#theatre .map-hud.br{display:none;}
#theatre .map-hud.bl{right:18px;font-size:10px;}
#theatre .map-hud.tl h1{font-size:26px;}
#theatre .nav{max-width:100%;overflow-x:auto;}
#theatre .nav button{padding:0 14px;flex:none;}
}
@media (prefers-reduced-motion: reduce){
#theatre .battle .ping,#theatre .leader-ring,#theatre .continue,#theatre .continue .btnL,#theatre .screen::after{animation:none;}
}
@media (prefers-reduced-motion: reduce){#theatre .hostmk .ping{animation:none;}}
