/*
 * STARZ / ORBITAL SALVAGE
 * Shared presentation layer for all public web_preview HTML. Loaded last by
 * the parent so existing controls, mechanics, game art and route semantics
 * remain owned by their original files.
 */
:root {
  --starz-void: #0a0d10;
  --starz-hull: #11171b;
  --starz-panel: #171d21;
  --starz-panel-raised: #20272b;
  --starz-steel: #aeb8bd;
  --starz-dust: #77838a;
  --starz-line: rgba(177, 190, 196, .17);
  --starz-red: #c7353e;
  --starz-red-hot: #e34a4e;
  --starz-red-muted: #7d252d;
  --starz-paper: #e5e4dc;
  --starz-scene: url("/media/orbit-outpost-wide.webp");
}

html { scroll-behavior: smooth; }
body[data-starz-page] {
  --starz-page-accent: var(--starz-red);
  color: var(--starz-paper);
  background-color: var(--starz-void);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body[data-starz-page] :is(h1, h2, h3, h4, .brand-word, .game-row-title) {
  font-family: "Orbitron", "Arial Narrow", sans-serif;
  letter-spacing: -.035em;
}
body[data-starz-page] :is(.eyebrow, .label, .game-row-title small, .game-row-position, .game-tile-number, .game-tile-action, .game-row-hint, .meta-mono, .detail-eyebrow, .detail-number, .detail-tag) {
  font-family: "JetBrains Mono", ui-monospace, monospace;
}
body[data-starz-page] :is(a, button, input, select, textarea) {
  -webkit-tap-highlight-color: transparent;
}
body[data-starz-page] :is(a, button, input, select, textarea):focus-visible {
  outline: 2px solid #e35a5e;
  outline-offset: 3px;
}

/* Default game hub: a real, stationary outpost horizon replaces the old
   violet blur. The existing star/texture treatment is left intact elsewhere. */
body.maso-arcade:not([class*="panel-"]):not([class*="bg-"]):not([class*="backdrop-"]) {
  --arc-ink: #ecebe4;
  --arc-muted: #a6afb2;
  --arc-dim: #7c888d;
  --arc-cyan: #d7d9d2;
  --arc-pink: #e35a5e;
  --arc-line: rgba(177, 190, 196, .2);
  --arc-panel: #151b1f;
  --arc-display: "Orbitron", "Arial Narrow", sans-serif;
  --arc-body: "Trebuchet MS", "Segoe UI", sans-serif;
  --arc-mono: "JetBrains Mono", ui-monospace, monospace;
  color: var(--starz-paper);
  background:
    radial-gradient(ellipse at 81% 16%, rgba(142, 42, 45, .16), transparent 37rem),
    linear-gradient(180deg, #0a0d10, #0d1114 64%, #0a0d10);
}
body.maso-arcade:not([class*="panel-"]):not([class*="bg-"]):not([class*="backdrop-"]) > .aurora {
  background:
    linear-gradient(90deg, rgba(9, 12, 15, .95) 0%, rgba(9, 12, 15, .52) 53%, rgba(9, 12, 15, .18) 100%),
    var(--starz-scene) right 9% / min(94vw, 1320px) auto no-repeat,
    radial-gradient(ellipse at 80% 24%, #54232644, transparent 48%),
    #0a0d10;
}
body.maso-arcade:not([class*="panel-"]):not([class*="bg-"]):not([class*="backdrop-"]) > .aurora::before,
body.maso-arcade:not([class*="panel-"]):not([class*="bg-"]):not([class*="backdrop-"]) > .aurora::after {
  content: none;
}
.maso-arcade:not([class*="panel-"]) .grid-overlay {
  opacity: .42;
  background-image:
    linear-gradient(rgba(190, 199, 201, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(190, 199, 201, .045) 1px, transparent 1px);
  mask-image: linear-gradient(180deg, #000, transparent 76%);
}
.maso-arcade:not([class*="panel-"]) :is(.nav, .topbar) {
  background: rgba(10, 13, 16, .94);
  border-bottom: 1px solid rgba(198, 205, 204, .2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  backdrop-filter: blur(14px);
}
.maso-arcade:not([class*="panel-"]) .announce {
  color: #eee9e0;
  background: linear-gradient(90deg, #641c23, #a82d35 48%, #641c23);
  border-bottom: 1px solid #df555955;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: .72rem;
  letter-spacing: .025em;
}
.maso-arcade:not([class*="panel-"]) :is(.brand, .nav-links a, .nav-report, .nav-back, .nav-toggle) {
  color: #d9dbd5;
}
.maso-arcade:not([class*="panel-"]) .brand {
  text-shadow: 0 1px 0 #000, 0 0 16px #a9373c22;
}
.maso-arcade:not([class*="panel-"]) .brand:not(:has(.starz-brand-mark))::before {
  content: "";
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  background: url("/media/starz-badge-small.webp") center / contain no-repeat;
  filter: drop-shadow(0 2px 5px #000);
}
.maso-arcade:not([class*="panel-"]) .brand .diamond { display: none; }
.maso-arcade:not([class*="panel-"]) .brand-sub { color: #899499; }
.maso-arcade:not([class*="panel-"]) :is(.nav-links a, .nav-report, .nav-back):hover { color: #f07879; }
.maso-arcade:not([class*="panel-"]) :is(.btn-primary, .btn-ghost, .nav-toggle, .game-row-controls button) {
  border-color: #ac4248;
  background: linear-gradient(145deg, #292a2a, #181b1c);
  color: #eee9e0;
  box-shadow: inset 0 1px rgba(255,255,255,.09), 0 5px 14px rgba(0,0,0,.22);
}
.maso-arcade:not([class*="panel-"]) .btn-primary {
  background: linear-gradient(130deg, #c4363e, #85232b);
  border-color: #e35a5e;
}
.maso-arcade:not([class*="panel-"]) :is(.btn-primary, .btn-ghost, .game-row-controls button) {
  transition: transform .18s ease, border-color .18s ease, background-color .18s ease;
}
.maso-arcade:not([class*="panel-"]) :is(.btn-primary, .btn-ghost, .game-row-controls button):not(:disabled):hover {
  transform: translateY(-2px);
  border-color: #ed7375;
}
.maso-arcade:not([class*="panel-"]) :is(.eyebrow, .hero-copy .eyebrow) { color: #d86b6c; }
.maso-arcade:not([class*="panel-"]) :is(.grad-text, .hero-copy > h1 .grad-text) {
  background: none;
  color: #d34a50;
  -webkit-text-fill-color: #d34a50;
  text-shadow: 2px 2px 0 #4c1a20;
}
.maso-arcade:not([class*="panel-"]) .hero {
  background:
    linear-gradient(90deg, #0a0d10 2%, rgba(10,13,16,.97) 31%, rgba(10,13,16,.69) 57%, rgba(10,13,16,.12) 100%),
    var(--starz-scene) right 47% / min(83vw, 1250px) auto no-repeat;
  border-bottom: 1px solid rgba(198,205,204,.16);
}
.maso-arcade:not([class*="panel-"]) .hero-grid {
  /* On the game lobby this is the content grid, NOT a decorative overlay. */
  opacity: 1;
  background: none;
  mask-image: none;
}
.maso-arcade:not([class*="panel-"]) .hero-copy > h1 {
  text-shadow: 0 3px 0 #050607, 0 12px 30px #0009;
}
.maso-arcade:not([class*="panel-"]) .hero-copy > .lead { color: #c0c6c5; }
.maso-arcade:not([class*="panel-"]) .section-head h2,
.maso-arcade:not([class*="panel-"]) .section-title h2 { color: #deded7; }
.maso-arcade:not([class*="panel-"]) :is(.card, .hub-card, .inv-login, .inv-section, .dev-section, .upd-card) {
  color: var(--starz-paper);
  border-color: var(--starz-line);
  background:
    linear-gradient(145deg, rgba(255,255,255,.035), transparent 38%),
    linear-gradient(145deg, #1a2023, #101518 76%);
  border-radius: 5px;
  box-shadow: inset 0 1px rgba(255,255,255,.055), 0 18px 38px rgba(0,0,0,.2);
}
.maso-arcade:not([class*="panel-"]) :is(.card, .hub-card, .inv-section, .upd-card) {
  border-top-color: rgba(217, 77, 81, .45);
}
.maso-arcade:not([class*="panel-"]) .card:hover {
  border-color: #b54a4f;
  box-shadow: inset 0 1px #ffffff12, 0 18px 42px #0007;
}
.maso-arcade:not([class*="panel-"]) :is(.stat, .stats, .game-screen-balances, .console-balance-card, .console-top) {
  border-color: var(--starz-line);
  background-color: rgba(19, 25, 28, .88);
}
.maso-arcade:not([class*="panel-"]) :is(.live-dot, .win-pulse) {
  background: #e34a4e;
  box-shadow: 0 0 10px #e34a4e66;
}
.maso-arcade:not([class*="panel-"]) .footer {
  color: #899398;
  border-color: var(--starz-line);
}

/* A salvaged games registry, not an arcade carpet. Carousel geometry, snap
   points and all JS hooks stay with game-lobby.css and game-lobby.js. */
.maso-arcade:not([class*="panel-"]) .game-lobby {
  position: relative;
  padding: clamp(20px, 4vw, 42px) clamp(12px, 2.2vw, 26px);
  border: 1px solid rgba(181, 191, 193, .17);
  border-left: 3px solid #9e343a;
  background:
    linear-gradient(90deg, rgba(11,15,18,.96), rgba(14,18,20,.83)),
    var(--starz-scene) center 47% / cover no-repeat;
  box-shadow: inset 0 1px rgba(255,255,255,.05), 0 22px 55px #0004;
}
.maso-arcade:not([class*="panel-"]) .game-row { margin-bottom: clamp(28px, 5vw, 52px); }
.maso-arcade:not([class*="panel-"]) .game-row-head {
  border-bottom: 1px solid rgba(188, 198, 198, .16);
  margin: 0 12px 8px;
}
.maso-arcade:not([class*="panel-"]) .game-row-title {
  color: #deded7;
  text-shadow: 0 2px 0 #000;
}
.maso-arcade:not([class*="panel-"]) .game-row-title small {
  color: #d45a5d;
  letter-spacing: .13em;
}
.maso-arcade:not([class*="panel-"]) .game-row-controls button {
  border-radius: 3px;
  background: linear-gradient(145deg, #272d30, #111619);
}
.maso-arcade:not([class*="panel-"]) .game-row-position { color: #b5bfbe; }
.maso-arcade:not([class*="panel-"]) .game-row-viewport {
  padding: 16px 0 23px;
  scrollbar-color: #7f3338 transparent;
}
.maso-arcade:not([class*="panel-"]) .game-tile {
  border: 1px solid rgba(176,188,191,.24);
  border-radius: 4px;
  color: #e8e6de;
  background: linear-gradient(150deg, #22292c, #101518 72%);
  box-shadow: 0 16px 32px #0007, inset 0 1px #ffffff0c;
  transform: scale(.9);
  opacity: .75;
}
.maso-arcade:not([class*="panel-"]) .game-tile.is-center {
  border-color: #c45054;
  box-shadow: 0 21px 42px #0009, inset 0 2px #cf474d, inset 0 1px #ffffff18;
  transform: scale(1);
  opacity: 1;
}
.maso-arcade:not([class*="panel-"]) .game-tile-art {
  background:
    linear-gradient(180deg, rgba(9,12,14,.04), rgba(9,12,14,.55)),
    var(--starz-scene) 75% 48% / cover no-repeat,
    #171d20;
  border-bottom-color: rgba(185,194,195,.18);
}
.maso-arcade:not([class*="panel-"]) .game-tile-art::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 18px;
  background: repeating-linear-gradient(135deg, #a9363c 0 8px, #272b2c 8px 16px);
  opacity: .55;
  mask-image: linear-gradient(90deg, transparent, #000 15% 85%, transparent);
}
.maso-arcade:not([class*="panel-"]) .game-tile-art svg { color: #d5d5cc; filter: drop-shadow(0 4px 8px #0009); }
.maso-arcade:not([class*="panel-"]) .game-tile:nth-child(even) .game-tile-art svg { color: #d26a6d; }
.maso-arcade:not([class*="panel-"]) .game-tile-number { color: #c4c8c4; }
.maso-arcade:not([class*="panel-"]) .game-tile h3 { color: #f0eee7; }
.maso-arcade:not([class*="panel-"]) .game-tile p { color: #a5afaf; }
.maso-arcade:not([class*="panel-"]) .game-tile-action { color: #e06a6d; border-top-color: var(--starz-line); }
.maso-arcade:not([class*="panel-"]) .game-row-hint { color: #8b9699; }

/* Individual game pages keep their canvas, SVG, reels, boards and probability
   model untouched; this is only the bolted-on cabinet housing around them. */
.maso-arcade:not([class*="panel-"]) .game-screen {
  position: relative;
  max-width: 1120px;
  padding-top: clamp(25px, 5vw, 54px);
  isolation: isolate;
}
.maso-arcade:not([class*="panel-"]) .game-screen::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 -5vw auto;
  height: clamp(220px, 33vw, 390px);
  background:
    linear-gradient(180deg, rgba(10,13,16,.18), #0a0d10 94%),
    var(--starz-scene) center 40% / cover no-repeat;
  opacity: .42;
  pointer-events: none;
}
.maso-arcade:not([class*="panel-"]) .game-screen-heading {
  padding: 0 0 15px;
  border-bottom: 1px solid var(--starz-line);
}
.maso-arcade:not([class*="panel-"]) .game-screen-heading h1::before {
  content: "STARZ / ORBITAL OPERATIONS";
  display: block;
  margin-bottom: 10px;
  color: #cd7779;
  font: 500 .6rem/1.5 "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: .14em;
}
.maso-arcade:not([class*="panel-"]) .game-screen-heading a,
.maso-arcade:not([class*="panel-"]) .game-screen-note a { color: #e16a6d; }
.maso-arcade:not([class*="panel-"]) .game-screen-heading h1 {
  color: #e9e8e0;
  text-shadow: 0 3px #000, 0 10px 25px #0008;
}
.maso-arcade:not([class*="panel-"]) .game-screen-balances {
  border: 1px solid var(--starz-line);
  border-left: 3px solid #a83238;
  border-radius: 3px;
  background: linear-gradient(110deg, #1b2225, #111619);
  color: #c7cecc;
}
.maso-arcade:not([class*="panel-"]) .game-screen .cards > .card {
  border: 1px solid rgba(184,194,195,.22);
  border-radius: 4px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.035), transparent 35%),
    linear-gradient(160deg, #1a2124, #0e1316 78%);
  box-shadow: 0 24px 60px #0007, inset 0 1px #ffffff0b;
}
.maso-arcade:not([class*="panel-"]) .game-screen .card > h3 { color: #eeece4; }
.maso-arcade:not([class*="panel-"]) .game-screen .card .tag-badge {
  color: #ece8df;
  border: 1px solid #9d3a40;
  border-radius: 2px;
  background: #552329;
  font-family: "JetBrains Mono", ui-monospace, monospace;
}
.maso-arcade:not([class*="panel-"]) .game-screen .slot-machine,
.maso-arcade:not([class*="panel-"]) .game-screen :is(.pack-stage, .plinko-stage, .kit-plinko-stage) {
  border-color: rgba(184,194,195,.22);
  background-color: #101619;
}
.maso-arcade:not([class*="panel-"]) .game-screen .slot-machine {
  background: linear-gradient(135deg, #333a3c, #151b1f 45%, #242c2e);
  border: 1px solid #75808366;
  box-shadow: inset 0 1px #c5cecc44, inset 0 -3px #0008, 0 12px 30px #0005;
}
.maso-arcade:not([class*="panel-"]) .game-screen .slot-machine .reel {
  background: linear-gradient(180deg, #080c0f, #1a2227 52%, #080c0f);
  border-color: #7b898b55;
}

/* Store landing + item detail. Keep its existing animated star texture and
   shooting-star effect; the new outpost only occupies existing art windows. */
body.has-store-atmosphere {
  --bg: #0a0d10;
  --panel: #151b1f;
  --panel2: #20272b;
  --text: #e5e4dc;
  --silver: #b7c0c2;
  --muted: #899397;
  --red: #c7353e;
  --red-bright: #e34a4e;
  --line: rgba(177,190,196,.17);
  background-color: #0a0d10;
}
body.has-store-atmosphere .topbar {
  background: rgba(10,13,16,.94);
  border-bottom-color: rgba(190,200,201,.2);
}
body.has-store-atmosphere .hero {
  background:
    linear-gradient(90deg, #0a0d10 0%, rgba(10,13,16,.96) 31%, rgba(10,13,16,.53) 63%, rgba(10,13,16,.08)),
    var(--starz-scene) right 47% / min(83vw, 1250px) auto no-repeat,
    #0a0d10;
}
body.has-store-atmosphere .hero:after {
  background: linear-gradient(90deg, #0a0d10 0%, rgba(10,13,16,.92) 35%, rgba(10,13,16,.35) 75%, transparent);
}
body.has-store-atmosphere .hero-art {
  filter: drop-shadow(0 25px 42px #000a);
}
body.has-store-atmosphere .hero h1 {
  /* The wider orbital typeface must still fit beside the existing badge. */
  font-size: clamp(2.2rem, 5.3vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -.055em;
}
body.has-store-atmosphere .orbit-one { border-left-color: #d2474b; }
body.has-store-atmosphere .orbit-two { border-top-color: #d2474b77; }
body.has-store-atmosphere .hero h1 span {
  color: #dd5559;
  -webkit-text-stroke: 0;
  text-shadow: 2px 3px 0 #45191d;
}
body.has-store-atmosphere .section-kicker,
body.has-store-atmosphere .eyebrow { color: #d45b5e; }
body.has-store-atmosphere .search-wrap input,
body.has-store-atmosphere .state-panel {
  background-color: #12181b;
  border-color: var(--starz-line);
}
body.has-store-atmosphere .product-card {
  border-radius: 3px;
  border-color: rgba(190,200,201,.2);
  background: linear-gradient(145deg, #1a2124, #101518 68%);
  box-shadow: inset 0 1px #ffffff0a;
}
body.has-store-atmosphere .product-card:hover {
  border-color: #b94349;
  box-shadow: 0 18px 40px #0007;
}
body.has-store-atmosphere :is(.button-primary, .state-action) {
  background: linear-gradient(120deg, #c7353e, #84242b);
  border-color: #df5458;
}
body.has-store-atmosphere .button-quiet,
body.has-store-atmosphere .button-outline {
  border-color: rgba(190,200,201,.3);
}
body.has-store-atmosphere .detail-visual {
  background:
    linear-gradient(180deg, rgba(10,13,16,.22), rgba(10,13,16,.86)),
    var(--starz-scene) 65% center / cover no-repeat;
  border-color: rgba(190,200,201,.21);
}
body.has-store-atmosphere .detail-copy h1 { color: #e8e7df; }
body.has-store-atmosphere .detail-eyebrow,
body.has-store-atmosphere .back-link span,
body.has-store-atmosphere .detail-price { color: #df6265; }
body.has-store-atmosphere .checkout-note {
  background: #161c1f;
  border-left-color: #c7353e;
}
body.has-store-atmosphere .community-band {
  border-color: rgba(190,200,201,.2);
  background:
    linear-gradient(90deg, rgba(14,18,21,.97), rgba(14,18,21,.8)),
    var(--starz-scene) center 56% / cover no-repeat;
}
body.has-store-atmosphere .community-band:after { border-color: #d5d9d222; }
body.has-store-atmosphere .site-footer { border-top-color: var(--starz-line); }

/* Shared secondary surfaces: player console, account, legal, event pages and
   supporting screens use the same steel/red material without touching logic. */
body[data-starz-page] :is(.inv-tabs, .inv-card-hero, .locker-command, .collection-page-summary, .market-subnav, .chat-gate-card, .legal-wrap, .events-hero, .events-section-head, .maintenance-notice-inner) {
  border-color: var(--starz-line);
}
body[data-starz-page] :is(.inv-card-hero, .locker-command, .inv-section, .collection-page-summary span, .market-subnav, .legal-wrap, .chat-gate-card, .maintenance-notice-inner) {
  background-color: rgba(19,25,28,.93);
}
body[data-starz-page] :is(.inv-tab.active, .market-subnav a.active) {
  color: #f0e9df;
  border-color: #b4484c;
  background: #59252a;
}
body[data-starz-page] :is(.inv-tab, .market-subnav a) { color: #bbc3c3; }
body[data-starz-page] :is(.inv-section a, .legal-wrap a, .locker-heading a) { color: #e17476; }

/* The space-survival set pieces keep their bespoke Rust illustrations. STARZ
   metalwork surrounds them: a dim orbital silhouette, worn steel rails and
   warning-red instruments instead of a second competing animated backdrop. */
body[data-starz-page]:not(.maso-arcade):not(.has-store-atmosphere) {
  background-color: #0a0d10;
  color: #e5e4dc;
}
body[data-starz-page]:not(.maso-arcade):not(.has-store-atmosphere) :is(
  .bunker-nav, .derby-nav, .gg-nav, .rg-nav, .sr-nav, .global-derby-rust > header.nav
) {
  background: rgba(10,13,16,.94);
  border-bottom: 1px solid rgba(190,200,201,.2);
  box-shadow: 0 8px 24px #0005;
  backdrop-filter: blur(12px);
}
body[data-starz-page]:not(.maso-arcade):not(.has-store-atmosphere) :is(
  .bunker-brand, .derby-nav .brand, .gg-brand, .rg-brand, .sr-brand, .global-derby-rust .brand
) {
  color: #e5e4dc;
  font-family: "Orbitron", "Arial Narrow", sans-serif;
}
body[data-starz-page]:not(.maso-arcade):not(.has-store-atmosphere) :is(
  .bunker-brand, .gg-brand, .rg-brand, .sr-brand
)::before {
  content: "";
  display: inline-block;
  width: 30px;
  height: 30px;
  margin-right: 10px;
  vertical-align: middle;
  background: url("/media/starz-badge-small.webp") center / contain no-repeat;
}
body[data-starz-page]:not(.maso-arcade):not(.has-store-atmosphere) :is(
  .bunker-nav, .derby-nav, .gg-nav, .rg-nav, .sr-nav, .global-derby-rust
) :is(a:hover, button:hover) { color: #ed777a; }
body[data-starz-page]:not(.maso-arcade):not(.has-store-atmosphere) :is(
  .bunker-main, .shell, .gg-main, .rg-main, .sr-main, .global-derby-rust > main
) {
  --starz-hardware-line: rgba(183,193,194,.19);
}
body[data-starz-page="bunker"] .bunker-heading,
body[data-starz-page="derby"] .intro,
body[data-starz-page="garage"] .gg-heading,
body[data-starz-page="shooting-range"] .rg-heading,
body[data-starz-page="satchel"] .sr-heading,
body[data-starz-page="global-derby"] .hero,
body[data-starz-page="derby-hub"] main > header {
  position: relative;
  background:
    linear-gradient(90deg, rgba(10,13,16,.96), rgba(10,13,16,.79) 48%, rgba(10,13,16,.42)),
    var(--starz-scene) right 48% / min(76vw, 1050px) auto no-repeat;
  border-bottom: 1px solid rgba(190,200,201,.15);
}
body[data-starz-page="bunker"] .bunker-heading,
body[data-starz-page="derby"] .intro,
body[data-starz-page="garage"] .gg-heading,
body[data-starz-page="shooting-range"] .rg-heading,
body[data-starz-page="satchel"] .sr-heading,
body[data-starz-page="global-derby"] .hero { overflow: hidden; }
body[data-starz-page="bunker"] .bunker-heading :is(h1, .heading-note),
body[data-starz-page="derby"] .intro :is(h1, .intro-copy),
body[data-starz-page="garage"] .gg-heading :is(h1, .gg-heading-copy),
body[data-starz-page="shooting-range"] .rg-heading :is(h1, .rg-heading-copy),
body[data-starz-page="satchel"] .sr-heading :is(h1, .sr-deck),
body[data-starz-page="global-derby"] .hero :is(h1, p) {
  text-shadow: 0 2px 12px #000b;
}
body[data-starz-page="bunker"] :is(.scene-shell, .bunker-door, .bunker-room),
body[data-starz-page="derby"] :is(.track-panel, .bet-panel, .notice),
body[data-starz-page="garage"] :is(.gg-room-shell, .gg-access, .gg-status),
body[data-starz-page="shooting-range"] :is(.rg-operation, .rg-testing),
body[data-starz-page="satchel"] :is(.sr-operation, .sr-field),
body[data-starz-page="global-derby"] :is(.panel, .live-pit, .race-desk, .standby-desk) {
  border-color: rgba(185,195,195,.2);
  box-shadow: inset 0 1px rgba(255,255,255,.04), 0 18px 40px #0005;
}
body[data-starz-page]:not(.maso-arcade):not(.has-store-atmosphere) :is(
  .eyebrow, .gg-kicker, .rg-eyebrow, .sr-eyebrow,
  .section-label, .scene-topline, .panel-head, .rg-topline, .sr-topline
) { color: #d66b6e; }
body[data-starz-page]:not(.maso-arcade):not(.has-store-atmosphere) :is(
  .primary, .gg-primary, .rg-enter-bay, .sr-primary, .outline-button, .gg-button
) {
  border-color: #a54146;
}
body[data-starz-page="bunker"] .bunker-heading h1 span,
body[data-starz-page="derby"] .intro h1 span,
body[data-starz-page="garage"] .gg-heading h1 span,
body[data-starz-page="shooting-range"] .rg-heading h1 span,
body[data-starz-page="satchel"] .sr-heading h1 span,
body[data-starz-page="global-derby"] .hero h1 span {
  color: #d34a50;
}
body[data-starz-page="derby-hub"] :is(.derby-choice, .mode-card, .door-card),
body[data-starz-page="bunker"] :is(.bunker-access, .blackmarket-panel),
body[data-starz-page="shooting-range"] :is(.rg-testing, .rg-operation),
body[data-starz-page="satchel"] .sr-operation {
  border-color: rgba(185,195,195,.2);
}

@media (max-width: 767px) {
  body.maso-arcade:not([class*="panel-"]) > .aurora {
    background:
      linear-gradient(180deg, rgba(9,12,15,.55), #0a0d10 70%),
      var(--starz-scene) 68% 0 / auto 390px no-repeat,
      #0a0d10;
  }
  .maso-arcade:not([class*="panel-"]) .hero {
    background:
      linear-gradient(180deg, rgba(10,13,16,.58), #0a0d10 83%),
      var(--starz-scene) 70% 0 / auto 410px no-repeat;
  }
  .maso-arcade:not([class*="panel-"]) .game-lobby {
    margin-inline: -3vw;
    padding: 20px 8px;
    background-position: 66% center;
  }
  .maso-arcade:not([class*="panel-"]) .game-row-head { margin-inline: 5px; }
  .maso-arcade:not([class*="panel-"]) .game-tile {
    transform: scale(.96);
    opacity: .84;
  }
  .maso-arcade:not([class*="panel-"]) .game-screen::before {
    inset-inline: -12px;
    height: 260px;
    background-position: 64% 42%;
    opacity: .3;
  }
  body.has-store-atmosphere .hero {
    background:
      linear-gradient(180deg, rgba(10,13,16,.47), #0a0d10 88%),
      var(--starz-scene) 71% 2% / auto 430px no-repeat,
      #0a0d10;
  }
  body.has-store-atmosphere .hero:after {
    background: linear-gradient(180deg, transparent, #0a0d10 90%);
  }
  body.has-store-atmosphere .detail-visual {
    min-height: 300px;
    background-position: 64% center;
  }
  body[data-starz-page]:not(.maso-arcade):not(.has-store-atmosphere) :is(
    .bunker-heading, .intro, .gg-heading, .rg-heading, .sr-heading, .global-derby-rust .hero
  ) {
    background-position: 69% center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .maso-arcade:not([class*="panel-"]) :is(.btn-primary, .btn-ghost, .game-row-controls button, .game-tile),
  body.has-store-atmosphere :is(.button, .product-card, .badge-frame),
  body[data-starz-page]:not(.maso-arcade):not(.has-store-atmosphere) :is(.primary, .gg-button, .rg-enter-bay) {
    transition: none !important;
  }
}

/* Individual playfields: each is a different piece of salvaged orbital
   hardware. These backgrounds sit beneath real reels, boards and controls. */
body.maso-arcade[data-starz-page="slots"] .game-screen .slot-machine {
  position: relative; isolation: isolate; overflow: hidden; border: 1px solid #8c4847;
  background:
    radial-gradient(ellipse at 80% 15%, #a7474b 0 2%, #732e37 2.2% 8%, transparent 8.3%),
    radial-gradient(ellipse at 79% 15%, #d8d0c522 0 1px, transparent 2px),
    radial-gradient(ellipse at 10% 12%, #d9d5cc 0 1px, transparent 2px),
    radial-gradient(ellipse at 30% 24%, #e3ddd0 0 1px, transparent 2px),
    radial-gradient(ellipse at 56% 8%, #e3ddd0 0 1px, transparent 2px),
    linear-gradient(180deg,#0a0d12 0 56%,#29282e 56% 63%,#111418 63%);
  box-shadow: inset 0 -18px 22px #07090c;
}
body.maso-arcade[data-starz-page="slots"] .game-screen .slot-machine::after {
  content:""; position:absolute; z-index:-1; inset:auto 0 0; height:31%;
  background:linear-gradient(164deg,transparent 0 31%,#656067 32% 35%,#28292f 36% 100%);
  clip-path:polygon(0 30%,18% 19%,32% 45%,51% 17%,70% 35%,86% 9%,100% 25%,100% 100%,0 100%);
  pointer-events:none;
}
body.maso-arcade[data-starz-page="spinner"] .game-screen .spinner-viewport {
  border-radius:3px; border-color:#97504b; padding-block:18px;
  background:
    radial-gradient(circle at 50% 50%,#282b30 0 22%,#bd5148 22.5% 23%,transparent 23.5%),
    radial-gradient(ellipse at 50% 50%,transparent 0 38%,#8c4644 38.3% 39%,transparent 39.5%),
    radial-gradient(circle at 16% 24%,#e6e0d6 0 1px,transparent 2px),
    radial-gradient(circle at 82% 72%,#e6e0d6 0 1px,transparent 2px),
    linear-gradient(180deg,#080b10,#22242a 52%,#0a0d11);
}
body.maso-arcade[data-starz-page="spinner"] .game-screen .spinner-viewport::before { background:#d95d4b; box-shadow:none; }
body.maso-arcade[data-starz-page="packs"] .game-screen .pack-stage {
  aspect-ratio:1.38 / 1; max-height:250px; box-sizing:border-box;
  padding:clamp(12px,2.8vw,22px); border-radius:4px; border-color:#a25047;
  background-color:#0a0d13;
  box-shadow:inset 0 0 0 5px #27282e, inset 0 0 0 7px #8b4540, 0 10px 24px #0008;
  background:
    radial-gradient(circle at 8% 12%,#e7e2dc 0 1px,transparent 2px),
    radial-gradient(circle at 91% 17%,#e7e2dc 0 1px,transparent 2px),
    radial-gradient(circle at 7% 87%,#e7e2dc 0 1px,transparent 2px),
    radial-gradient(circle at 93% 82%,#e7e2dc 0 1px,transparent 2px),
    radial-gradient(ellipse at 50% 115%,transparent 0 31%,#a84942 31.5% 32.2%,transparent 33%),
    radial-gradient(ellipse at 50% 50%,transparent 0 44%,#817578 44.5% 45.2%,transparent 46%),
    linear-gradient(180deg,#090c12,#25252d 72%,#111419);
}
body.maso-arcade[data-starz-page="packs"] .game-screen .pack-stage::before {
  inset:0; opacity:1; filter:none; pointer-events:none;
  background:
    radial-gradient(circle at 12% 22%,#e1dcd4 0 1px,transparent 2px),
    radial-gradient(circle at 88% 75%,#e1dcd4 0 1px,transparent 2px),
    radial-gradient(ellipse at 50% 50%,transparent 0 38%,#d6c5bf33 38.5% 39%,transparent 39.5%),
    linear-gradient(180deg,#090c12,#171a20);
}
body.maso-arcade[data-starz-page="packs"] .game-screen #packGif {
  position:relative; z-index:1; width:100%; height:100%; object-fit:contain;
}
body.maso-arcade[data-starz-page="packs"] .game-screen .pack-reveal {
  z-index:2; inset:0; padding:12px; box-sizing:border-box;
}
@media (max-width: 600px) {
  body.maso-arcade[data-starz-page="packs"] .game-screen .pack-stage {
    height:190px; min-height:160px; max-height:190px; aspect-ratio:auto;
    padding:10px; margin-bottom:10px;
  }
  body.maso-arcade[data-starz-page="packs"] .game-screen .pack-reveal {
    gap:3px; align-content:center; overflow:auto; overscroll-behavior:contain;
  }
  body.maso-arcade[data-starz-page="packs"] .game-screen .pack-reveal .kit-win-img {
    width:auto; max-width:min(58vw,210px); max-height:82px; object-fit:contain;
  }
  body.maso-arcade[data-starz-page="packs"] .game-screen .pack-reveal .pulled { font-size:1.16rem; }
  body.maso-arcade[data-starz-page="packs"] .game-screen .pack-reveal .sub { font-size:.72rem; }
}

/* Dome and Recycler / original SVG artwork carries the scene; align its
   frame and readouts to the spaceworks rather than repainting game content. */
body[data-starz-page="recycler"] #recyclerStage {
  --arc-cyan:#d8c9bf; --arc-pink:#d94e43; --arc-muted:#aaa4a3; --arc-line:#c5b7b32c;
  background:#0b0e13;
}
body[data-starz-page="recycler"] #recyclerStage .recycler-pockets { background:#111419; }
body[data-starz-page="recycler"] #recyclerStage .recycler-pocket { background:#22252a; border-color:#645054; border-bottom-color:#a74740; }
body[data-starz-page="recycler"] #recyclerStage .recycler-pocket[data-hot="true"] { background:#592b30; border-color:#d65a4d; }
body[data-starz-page="recycler"] #recyclerStage .recycler-state::before { background:#df5a47; }
body[data-starz-page="kit-plinko"] #kitPlinkoCard .kit-plinko-stage[data-kit-sorter] {
  border-color:#8d4644; border-radius:3px; background:#0b0e13;
}
body[data-starz-page="kit-plinko"] #kitPlinkoCard .kit-sorter {
  --ks-cyan:#d5d0c6; --ks-pink:#df604c; --ks-paper:#ebe4dd;
}
body[data-starz-page="kit-plinko"] #kitPlinkoCard .sorter-header,
body[data-starz-page="kit-plinko"] #kitPlinkoCard .sorter-state { border-color:#594347; background:#17191e; }
body[data-starz-page="kit-plinko"] #kitPlinkoCard .sorter-bay { border-color:#5b5253; border-top-color:#a44943; background:#24252a; }
body[data-starz-page="kit-plinko"] #kitPlinkoCard .sorter-bay[data-hot="true"] { background:#552b2e; border-color:#db6957; }

/* The claw is a vacuum-sealed cargo pod; the glass stays transparent around
   the moving prizes and the existing cable / claw controls. */
body[data-starz-page="claw"] .cab-glass {
  background:
    radial-gradient(ellipse at 75% 24%,#b34a4b 0 3%,#76353c 3.4% 8%,transparent 8.5%),
    radial-gradient(circle at 14% 16%,#eee8df 0 1px,transparent 2px),
    radial-gradient(circle at 86% 60%,#eee8df 0 1px,transparent 2px),
    linear-gradient(180deg,#080b10 0 61%,#575257 61.5%,#26272d 65%,#171a20);
  box-shadow:inset 0 0 60px #05070b;
}
body[data-starz-page="claw"] .cabinet { background:linear-gradient(#39363a,#222329 45%,#12151a); border-color:#784744; }
body[data-starz-page="smash"] .yard {
  border-radius:3px; border-color:#8f4941;
  background:
    radial-gradient(circle at 74% 17%,#b5a6a5 0 5%,#74676e 5.4% 10%,transparent 10.5%),
    radial-gradient(circle at 16% 21%,#eee8df 0 1px,transparent 2px),
    radial-gradient(circle at 83% 45%,#eee8df 0 1px,transparent 2px),
    linear-gradient(165deg,transparent 0 58%,#68656a 58.5% 60%,#34353b 60.5%),
    linear-gradient(180deg,#090c12,#191b21 62%,#25252b);
}
body[data-starz-page="smash"] .yard-floor { background:linear-gradient(180deg,#3c3b41,#22242a); }

/* Crate vault: an airlock reveal chamber. Reward art and the live chest video
   remain on top; this is only the window beyond the reveal. */
body[data-starz-page="crates"] .reveal-stage {
  background:
    radial-gradient(circle at 50% 33%,#a94342 0 2%,#552d37 2.5% 8%,transparent 8.5%),
    radial-gradient(circle at 10% 20%,#e1ddd5 0 1px,transparent 2px),
    radial-gradient(circle at 88% 28%,#e1ddd5 0 1px,transparent 2px),
    radial-gradient(ellipse at 50% 110%,#636067 0 20%,#26272e 21% 33%,transparent 34%),
    linear-gradient(180deg,#080b11,#181a20 70%,#27272d);
}
body[data-starz-page="nuke-run"] .board-frame { background:#28272c; border:1px solid #8e4641; box-shadow:8px 8px 0 #08090b; }
body[data-starz-page="nuke-run"] .board {
  background:
    radial-gradient(circle at 16% 20%,#ddd9d2 0 1px,transparent 2px),
    radial-gradient(circle at 77% 13%,#ddd9d2 0 1px,transparent 2px),
    radial-gradient(ellipse at 51% 48%,#564f54 0 7%,transparent 7.5%),
    repeating-linear-gradient(31deg,transparent 0 42px,#8d494322 43px 45px),
    linear-gradient(160deg,#171a20,#34333a);
  border-color:#9a4944;
}
body[data-starz-page="nuke-run"] .space { background:linear-gradient(145deg,#737177,#44454c); color:#f0e9e2; border-color:#9e9a98; }
body[data-starz-page="nuke-run"] .space.rare { background:#9f483f; }
body[data-starz-page="nuke-run"] .board-center { background:#16191e; border-color:#9a4a43; outline-color:#36373d; }
body[data-starz-page="nuke-run"] .reactor { border-color:#d95b47; }
body[data-starz-page="nuke-run"] .reactor:before,
body[data-starz-page="nuke-run"] .reactor:after,
body[data-starz-page="nuke-run"] .reactor i { border-color:#d95b47; }
body[data-starz-page="nuke-run"] .reactor:after { background:#d95b47; }
body[data-starz-page="nuke-run"] .fallout { opacity:.33; background:radial-gradient(ellipse at 50% 40%,#a43e3722,transparent 52%),repeating-linear-gradient(0deg,#d7d1c608 0 1px,transparent 1px 5px); }

/* A moon-side pusher: visible surface horizons sit behind decorative tokens. */
body[data-starz-page="pusher"] .glass-window {
  background:
    radial-gradient(circle at 79% 22%,#c7b9b9 0 6%,#776973 6.4% 10%,transparent 10.5%),
    radial-gradient(circle at 15% 18%,#e4dfd7 0 1px,transparent 2px),
    radial-gradient(circle at 41% 11%,#e4dfd7 0 1px,transparent 2px),
    linear-gradient(172deg,transparent 0 55%,#6a666d 55.5% 57%,#302f35 57.5% 100%),
    linear-gradient(180deg,#090c12,#1c1e24 65%,#101318);
}
body[data-starz-page="pusher"] .machine { border-color:#914845; background:linear-gradient(140deg,#34353a,#171a20 67%); }

/* Bunker/event destinations: eight distinct moon-side operation theatres. */
body[data-starz-page="satchel"] .sr-field {
  --sr-texture:none; --sr-relief:none; --sr-spill:none;
  background:
    radial-gradient(circle at 84% 14%,#b5a7a6 0 5%,#625963 5.3% 9%,transparent 9.5%),
    radial-gradient(circle at 16% 15%,#e3ddd5 0 1px,transparent 2px),
    radial-gradient(circle at 74% 26%,#e3ddd5 0 1px,transparent 2px),
    linear-gradient(165deg,transparent 0 56%,#7e7779 56.5% 59%,#44434a 59.5%),
    linear-gradient(180deg,#080b11,#25262d);
}
body[data-starz-page="satchel"] .sr-legacy-shell { display:block !important; }
body[data-starz-page="satchel"] .sr-base-art { visibility:hidden !important; }
body[data-starz-page="satchel"] .sr-field::after { background:linear-gradient(0deg,#101216ed,transparent 34%,transparent 68%,#090b10aa); }
body[data-starz-page="shooting-range"] .rg-field { background:#090c12; box-shadow:0 0 0 1px #8b4843; }
body[data-starz-page="shooting-range"] #rgSceneImage {
  /* Keep the renderer's image node and cycle state intact, but reveal the
     moon-range SVG underneath instead of painting an opaque Earth photo. */
  display:none !important;
}
body[data-starz-page="garage"] .gg-viewport {
  background:
    radial-gradient(circle at 82% 16%,#a94a45 0 3%,#663941 3.4% 8%,transparent 8.5%),
    radial-gradient(circle at 11% 14%,#dedbd4 0 1px,transparent 2px),
    linear-gradient(165deg,transparent 0 73%,#666269 73.5% 75%,#292b31 75.5%),
    #090c12;
}
body[data-starz-page="derby"] .track-stage {
  background:
    radial-gradient(circle at 78% 17%,#a49399 0 4%,#51464f 4.4% 8%,transparent 8.5%),
    radial-gradient(circle at 12% 20%,#e7e2dc 0 1px,transparent 2px),
    repeating-linear-gradient(4deg,transparent 0 13px,#c7b9b20a 14px 15px),
    linear-gradient(180deg,#0a0d13 0 44%,#5d5359 44.5% 47%,#27292f 47.5%);
}
body[data-starz-page="derby"] .race-lanes { background-color:#303138; }
body.assault-race-page[data-starz-page] .canvas-wrap { background:#090c12; border-bottom-color:#a34c443d; }
body[data-starz-page="outpost"] .op-scene {
  border-color:#8f46442e;
  background:
    radial-gradient(circle at 80% 18%,#a99ca0 0 3.5%,#5a525d 4% 7%,transparent 7.5%),
    radial-gradient(circle at 14% 17%,#dedbd5 0 1px,transparent 2px),
    #090c12;
}
body[data-starz-page="outpost"] .op-scene :is(.dA,.dB) { fill:#0c1016; }
body[data-starz-page="outpost"] .op-scene :is(.mA,.mB,.mC,.cA,.cB,.cC) { fill:#4b4c52; }
body[data-starz-page="outpost"] .op-scene :is(.rA,.rB,.rC) { fill:#873b37; }
body[data-starz-page="outpost"] .op-scene :is(.wA,.wB) { fill:#554442; }
body[data-starz-page="outpost"] .op-scene :is(.gA,.gB,.sc-bulb) { fill:#d98256; }
body[data-starz-page="outpost"] .op-scene :is(.vA,.vB,.vC) { fill:#3b4341; }
body[data-starz-page="outpost"] .op-scene .sc-hill-far { fill:#282a31; }
body[data-starz-page="outpost"] .op-scene .sc-hill-near { fill:#1d2026; }
body[data-starz-page="outpost"] .op-scene .sc-dirt { fill:#24252b; }
body[data-starz-page="outpost"] .op-scene .sc-pad { fill:#48474d; }
body[data-starz-page="outpost"] .op-scene .sc-shade { fill:#a04a42; }
body[data-starz-page="garage"] .gg-room-shell,
body[data-starz-page="garage"] .gg-room-top,
body[data-starz-page="garage"] .gg-inspection,
body[data-starz-page="garage"] .gg-room-bottom { border-color:#8a46423b; }
body[data-starz-page="garage"] .gg-room-empty { color:#d9d3cf; text-shadow:0 2px 6px #08090c; }
body[data-starz-page="garage"] .gg-room-empty b { color:#d7d0ca; }
body[data-starz-page="claw"] .cab-glass::after { background:linear-gradient(112deg,transparent 42%,#fff1 50%,transparent 58%); }
body[data-starz-page="claw"] .cab-marquee { text-shadow:0 1px 8px #6d282c; background:linear-gradient(90deg,#6e282d,#373439 52%,#6e282d); border-color:#97504b; }
body[data-starz-page="smash"] .crate-mark { color:#d7cbc1; }
@media (prefers-reduced-motion: reduce) {
  body[data-starz-page="outpost"] .op-scene .sc-stars rect { animation:none !important; }
}
