/* Sat-TV-Tycoon — luxury commercial operator theme
   Deep blacks · pure white type · restrained steel/gold accents only
   Shell hooks: st-cockpit, st-command, st-kpi*, st-zone-*, st-panel__*,
   st-ops-*, st-workspace, st-ops-desk, st-dialog__*, #st-intro / .st-intro* */
:root {
  --st-void: #000000;
  --st-space: #050505;
  --st-panel: #0c0c0c;
  --st-panel-2: #111111;
  --st-lift: #161616;
  --st-ink: #ffffff;
  --st-ink-soft: #d4d4d4;
  --st-muted: #8a8a8a;
  --st-line: rgba(255, 255, 255, .12);
  --st-line-strong: rgba(255, 255, 255, .22);
  --st-gold: #b89a5a;
  --st-gold-bright: #d4bc7a;
  --st-gold-dim: rgba(184, 154, 90, .12);
  --st-steel: #9a9a9a;
  --st-steel-bright: #e8e8e8;
  --st-warn: #b89a5a;
  --st-ok: #5f8f6e;
  --st-bad: #b85a54;
  --st-blue: #b89a5a;
  --st-blue-d: #d4bc7a;
  --st-r: 10px;
  --st-r-sm: 6px;
  --st-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 22px 48px rgba(0,0,0,.65);
  --st-shadow-soft: 0 10px 28px rgba(0,0,0,.5);
  --st-font: "IBM Plex Sans", "Segoe UI", sans-serif;
  --st-display: "Cormorant Garamond", "Times New Roman", serif;
  --st-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --st-ease: cubic-bezier(.22, .8, .28, 1);

  --bg: var(--st-space);
  --card: var(--st-panel);
  --ink: var(--st-ink);
  --muted: var(--st-muted);
  --line: var(--st-line);
  --blue: #ffffff;
  --blue-d: #ffffff;
  --ok: var(--st-ok);
  --bad: var(--st-bad);
  --amber: var(--st-warn);
  --r: var(--st-r);
}

/* —— Atmosphere: pure black field —— */
body.am-game-body {
  color: var(--st-ink);
  background:
    radial-gradient(1000px 640px at 50% -8%, rgba(255,255,255,.05), transparent 55%),
    linear-gradient(180deg, #0a0a0a 0%, var(--st-void) 55%, #000 100%);
  background-attachment: fixed;
  font-family: var(--st-font);
  font-feature-settings: "ss01" 1, "tnum" 1;
  -webkit-font-smoothing: antialiased;
}
body.am-game-body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .28;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 18%, #000 15%, transparent 72%);
}
.am-game-main,
.am-game-bar,
.am-game-footer { position: relative; z-index: 1; }

.am-game-bar {
  background: #000;
  border-bottom: 1px solid rgba(255,255,255,.14);
  color: #fff;
  box-shadow: none;
  letter-spacing: .04em;
}
.am-game-bar a { color: #fff; }
.am-game-bar__brand {
  font-family: var(--st-display);
  font-size: 1.08rem;
  letter-spacing: .06em;
  color: #fff;
}
.am-game-footer {
  background: #000;
  border-top: 1px solid var(--st-line);
  color: rgba(255,255,255,.4);
}

/* —— Cockpit —— */
.st-cockpit {
  max-width: 1480px;
  margin: 0 auto;
  padding: .85rem 1rem 1.5rem;
}
.st-cockpit .st-shell { max-width: none; margin: 0; padding: 0; }

/* —— Command HUD (finance always on top, sticky, never clipped) —— */
.st-command {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr) auto;
  gap: .65rem 1rem;
  align-items: start;
  position: sticky;
  top: 2.2rem;
  z-index: 22;
  margin: 0 0 .85rem;
  padding: .7rem .85rem .75rem;
  border: 1px solid var(--st-line);
  border-radius: 12px;
  background: #050505;
  box-shadow: 0 12px 40px rgba(0,0,0,.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: visible;
}
.st-command__brand { min-width: 0; }
.st-eyebrow,
.st-intro__eyebrow {
  margin: 0 0 .2rem;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #fff;
  opacity: .55;
}
.st-command__brand h1,
.st-brand h1 {
  margin: 0;
  font-family: var(--st-display);
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.05;
  color: #fff;
}
.st-command .st-sub,
.st-brand .st-sub {
  margin: .22rem 0 0;
  color: var(--st-muted);
  font-size: .76rem;
}
.st-hud {
  min-width: 0;
  flex: 1 1 auto;
  overflow: visible;
}
.st-command__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  justify-content: flex-end;
  align-self: center;
}

/* KPI strip — finance cells first via order; high-contrast B/W */
.st-kpi-strip,
.st-status.st-kpi-strip,
.st-command .st-status {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  align-items: stretch;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  overflow: visible;
  max-height: none;
}
.st-command .st-status > span,
.st-command .st-kpi {
  white-space: normal;
}
.st-kpi {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .12rem;
  min-width: 4.4rem;
  padding: .38rem .5rem;
  border: 1px solid var(--st-line);
  border-radius: var(--st-r-sm);
  background: #000;
  color: #fff;
  transition: border-color .2s var(--st-ease), background .2s var(--st-ease);
  order: 40;
}
.st-kpi:hover {
  border-color: rgba(255,255,255,.32);
  background: #0a0a0a;
}
.st-kpi__label {
  font-size: .56rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #9a9a9a;
  line-height: 1.2;
}
.st-kpi__value {
  font-family: var(--st-mono);
  font-size: .86rem;
  font-weight: 600;
  color: #fff !important;
  letter-spacing: -.01em;
  line-height: 1.2;
}
.st-kpi__value.st-neg,
.st-kpi .st-neg {
  color: #fff !important;
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.st-kpi__value.st-pos,
.st-kpi .st-pos { color: #fff !important; }

/* Financial priority row — Budget · Schulden · Kredit · Ausblick stay first & larger */
.st-kpi--money { order: 1; }
.st-kpi--debt { order: 2; }
.st-kpi--credit { order: 3; }
.st-kpi--outlook { order: 4; }
.st-kpi--year { order: 10; }
.st-kpi--company { order: 11; }
.st-kpi--fleet { order: 20; }
.st-kpi--tps { order: 21; }
.st-kpi--senders { order: 22; }
.st-kpi--money,
.st-kpi--debt,
.st-kpi--credit,
.st-kpi--outlook {
  min-width: 6.2rem;
  padding: .48rem .62rem;
  border-color: rgba(255,255,255,.28);
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.st-kpi--money .st-kpi__label,
.st-kpi--debt .st-kpi__label,
.st-kpi--credit .st-kpi__label,
.st-kpi--outlook .st-kpi__label {
  color: #c8c8c8;
}
.st-kpi--money .st-kpi__value,
.st-kpi--debt .st-kpi__value,
.st-kpi--credit .st-kpi__value,
.st-kpi--outlook .st-kpi__value {
  font-size: .95rem;
  color: #fff !important;
}
.st-kpi--money {
  border-color: #fff;
  background: #0a0a0a;
}
.st-kpi--money .st-kpi__value {
  font-size: 1.02rem;
  font-weight: 700;
}
.st-kpi--year .st-kpi__value { color: #fff !important; }
.st-kpi--company .st-kpi__value {
  font-family: var(--st-font);
  font-size: .8rem;
  color: #fff !important;
}
.st-kpi--credit small,
.st-kpi small {
  color: #9a9a9a;
  font-family: var(--st-mono);
  font-size: .62rem;
  font-weight: 500;
}
.st-kpi-meta,
.st-status > .st-meta,
.st-meta.st-kpi-meta {
  flex-basis: 100%;
  order: 90;
  margin: .2rem 0 0;
  padding: .28rem .35rem 0;
  color: #8a8a8a;
  font-size: .7rem;
  border-top: 1px solid var(--st-line);
}
/* Override legacy board.css blue KPI ink */
.st-command .st-status b,
.st-command .st-kpi b,
.st-topbar .st-status b {
  color: #fff;
}

/* Ops deck */
.st-ops-deck.st-grid,
.st-ops-deck {
  display: grid;
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr) minmax(300px, 380px);
  gap: .85rem;
  align-items: start;
}
.st-ops-rail,
.st-workspace,
.st-ops-desk {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  min-width: 0;
}

.st-zone-head {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  padding: .1rem .05rem .4rem;
  border-bottom: 1px solid var(--st-line);
}
.st-zone-title,
.st-workspace-title {
  margin: 0;
  font-family: var(--st-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: .03em;
  color: #fff;
}
.st-zone-sub {
  margin: 0;
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8a8a8a;
}

/* Panels */
.st-panel,
.st-card.st-panel,
.st-cockpit .st-card {
  background: #0c0c0c;
  border: 1px solid var(--st-line);
  border-radius: 12px;
  box-shadow: var(--st-shadow-soft);
  padding: 0;
  overflow: hidden;
  transition: border-color .25s var(--st-ease);
}
.st-panel:hover,
.st-card.st-panel:hover {
  border-color: rgba(255,255,255,.22);
}
.st-panel__head {
  display: flex;
  flex-direction: column;
  gap: .12rem;
  padding: .7rem .85rem .55rem;
  border-bottom: 1px solid var(--st-line);
  background: #000;
}
.st-panel__title {
  margin: 0;
  font-size: .94rem;
  font-weight: 650;
  letter-spacing: .02em;
  color: #fff;
}
.st-panel__sub {
  margin: 0;
  font-size: .7rem;
  color: #8a8a8a;
  line-height: 1.35;
}
.st-panel__body {
  padding: .7rem .85rem .85rem;
  display: block;
  color: #d4d4d4;
}
.st-panel--workspace { min-height: 18rem; }
.st-workspace-body { padding-top: .75rem; }

.st-fold.st-panel > summary {
  display: flex;
  flex-direction: column;
  gap: .12rem;
  padding: .7rem .85rem;
  list-style: none;
  cursor: pointer;
  font-weight: 650;
  border-bottom: 1px solid transparent;
  transition: background .2s var(--st-ease);
}
.st-fold.st-panel > summary::-webkit-details-marker { display: none; }
.st-fold.st-panel > summary::before {
  content: "";
  display: inline-block;
  width: .42rem;
  height: .42rem;
  margin-right: .45rem;
  border-right: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: rotate(-45deg);
  vertical-align: .1rem;
  transition: transform .2s var(--st-ease);
  opacity: .7;
}
.st-fold.st-panel[open] > summary {
  border-bottom-color: var(--st-line);
  background: #000;
}
.st-fold.st-panel[open] > summary::before {
  transform: rotate(45deg);
}
.st-fold.st-panel > summary .st-panel__title {
  display: inline;
  font-size: .92rem;
  color: #fff;
}
.st-fold.st-panel > summary .st-panel__sub {
  display: block;
  margin-left: .95rem;
  font-weight: 500;
}
.st-fold.st-panel > :not(summary) { padding: 0; }
.st-fold.st-panel .st-panel__body { padding: .65rem .85rem .85rem; }

/* Desk tabs — monochrome pills */
.st-desk-tabs,
.st-ops-desk .st-tabs {
  display: flex;
  gap: .2rem;
  padding: .22rem;
  border: 1px solid var(--st-line);
  border-radius: 999px;
  background: #000;
}
.st-desk-tabs .st-tab,
.st-ops-desk .st-tab {
  flex: 1;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #8a8a8a;
  font: inherit;
  font-size: .78rem;
  font-weight: 600;
  padding: .42rem .35rem;
  cursor: pointer;
  transition: color .2s var(--st-ease), background .2s var(--st-ease);
}
.st-desk-tabs .st-tab:hover,
.st-ops-desk .st-tab:hover { color: #fff; }
.st-desk-tabs .st-tab.on,
.st-ops-desk .st-tab.on {
  background: #fff;
  color: #000;
  box-shadow: none;
}

.st-desk-block + .st-desk-block {
  margin-top: .85rem;
  padding-top: .75rem;
  border-top: 1px solid var(--st-line);
}

/* Buttons — white primary, ghost outline */
.st-btn,
button.st-btn {
  border: 1px solid transparent;
  border-radius: 8px;
  background: #fff;
  color: #000;
  font-family: var(--st-font);
  font-weight: 700;
  padding: .55rem .85rem;
  cursor: pointer;
  font-size: .84rem;
  letter-spacing: .02em;
  box-shadow: none;
  transition: transform .15s var(--st-ease), background .15s var(--st-ease), color .15s var(--st-ease);
}
.st-btn:hover:not(:disabled),
button.st-btn:hover:not(:disabled) {
  background: #e8e8e8;
  transform: translateY(-1px);
}
.st-btn:active:not(:disabled) { transform: translateY(0); }
.st-btn:disabled {
  background: #2a2a2a;
  color: #777;
  cursor: not-allowed;
}
.st-btn.st-poor { background: #2a2a2a; color: #aaa; }
.st-btn-primary,
.st-actions .st-btn#btn-year {
  padding: .65rem 1.15rem;
  font-size: .9rem;
  background: #fff;
  color: #000;
}
.st-btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.28);
}
.st-btn-ghost:hover:not(:disabled) {
  border-color: #fff;
  background: rgba(255,255,255,.06);
}
.st-btn-small {
  padding: .28rem .5rem;
  font-size: .72rem;
  background: #fff;
  color: #000;
}
.st-btn-bad {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.4);
}

/* Rows */
.st-bus, .st-sat, .st-tp, .st-pool-item, .st-op, .st-offer {
  background: #111;
  border-color: var(--st-line);
  color: #fff;
  transition: border-color .2s var(--st-ease), background .2s var(--st-ease);
}
.st-bus:hover, .st-sat:hover, .st-op:hover {
  border-color: rgba(255,255,255,.35);
}
.st-bus.on, .st-sat.on, .st-pool-item.on {
  border-color: #fff;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}
.st-chip {
  border-color: var(--st-line);
  background: #000;
  color: #d4d4d4;
}
.st-chip.on {
  background: #fff;
  border-color: #fff;
  color: #000;
}
.st-pool button {
  border-color: var(--st-line);
  background: #111;
  color: #d4d4d4;
}
.st-pool button.on {
  background: #fff;
  border-color: #fff;
  color: #000;
}
.st-pool .st-pool-item button.st-quick {
  background: #fff;
  color: #000;
}

.st-cockpit select,
.st-cockpit input[type="text"],
.st-cockpit input[type="search"],
.st-cockpit input.st-num,
.st-bus-tools input[type="search"],
.st-pool-tools input[type="search"] {
  border: 1px solid var(--st-line);
  border-radius: 8px;
  background: #000;
  color: #fff;
  font: inherit;
}
.st-cockpit select:focus,
.st-cockpit input:focus {
  outline: none;
  border-color: #fff;
  box-shadow: 0 0 0 2px rgba(255,255,255,.12);
}
.st-quote, .st-toolbar, .st-fleet-sum, .st-pool-audio {
  background: #000;
  border: 1px solid var(--st-line);
  color: #d4d4d4;
}
.st-hint { color: #8a8a8a; }
.st-sub-title { color: #fff; }
.st-tag { color: #8a8a8a; }
.st-bus span, .st-meta, .st-sat small { color: #8a8a8a; }

.st-meter, .st-cap-bar { background: rgba(255,255,255,.1); }
.st-meter span, .st-cap-bar span { background: #fff; }
.st-meter.warn span, .st-cap-bar.warn span { background: #b89a5a; }
.st-meter.bad span, .st-cap-bar.bad span { background: #888; }
.st-badge { background: rgba(255,255,255,.08); color: #aaa; }
.st-bird { background: #fff; color: #000; }
.st-rival { background: #111; border-color: var(--st-line); }
.st-mode { color: #fff; background: rgba(255,255,255,.08); }
.st-svc { background: rgba(255,255,255,.08); color: #fff; }
.st-bouquet { background: rgba(255,255,255,.08); color: #fff; }
.st-order-count { background: rgba(255,255,255,.1); color: #fff; }
.st-sat-pending { background: #0a0a0a; }
.st-order-ordered .st-order-badge { background: rgba(255,255,255,.1); color: #ddd; }
.st-order-build .st-order-badge { background: rgba(184,154,90,.2); color: #d4bc7a; }
.st-order-ready .st-order-badge { background: rgba(255,255,255,.14); color: #fff; }
.st-tp.st-tp-suggest,
.st-sat.st-sat-suggest {
  background: #000;
  box-shadow: inset 0 0 0 1px #fff;
  border-color: #fff;
}
.st-tp.st-off { background: #0a0a0a; }
.st-tp-actions { border-top-color: var(--st-line); }
.st-pip { background: rgba(255,255,255,.15); }
.st-pip.on { background: #fff; }
.st-keys dt {
  background: #000;
  border-color: var(--st-line);
  color: #fff;
  font-family: var(--st-mono);
}
.st-years th, .st-years td { border-bottom-color: var(--st-line); color: #fff; }
.st-years th { color: #8a8a8a; }
.st-orbit, .st-rnd, #log div { border-bottom-color: var(--st-line); }
.st-sat-img { background: #111; }
.st-sat-img.st-sat-img-miss,
span.st-sat-img-miss {
  background: linear-gradient(145deg, #1a1a1a, #0a0a0a 55%, #151515);
  box-shadow: inset 0 0 0 1px var(--st-line);
}

/* Dialogs */
.st-dialog,
.st-end {
  background: rgba(0, 0, 0, .78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.st-dialog-box,
.st-end-box {
  background: #0c0c0c;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 14px;
  box-shadow: var(--st-shadow);
  color: #fff;
  padding: 0;
  overflow: hidden;
}
.st-dialog__head {
  padding: .95rem 1.15rem .7rem;
  border-bottom: 1px solid var(--st-line);
  background: #000;
}
.st-dialog__head h2 {
  margin: 0;
  font-family: var(--st-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: #fff;
}
.st-dialog__body { padding: .9rem 1.15rem 1.05rem; color: #d4d4d4; }
.st-dialog__foot {
  padding: .75rem 1.15rem 1rem;
  border-top: 1px solid var(--st-line);
  background: #000;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.st-secret-tab.on {
  background: #fff;
  color: #000;
}

.st-toast {
  background: #0c0c0c;
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  box-shadow: var(--st-shadow);
}
.st-toast.success { background: #0c0c0c; border-color: #fff; }
.st-toast.error { background: #0c0c0c; border-color: #888; }

.st-cockpit .st-topbar.st-command {
  top: 2.2rem;
  z-index: 22;
  background: #050505;
  overflow: visible;
}

@keyframes st-kpi-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.st-kpi { animation: st-kpi-in .35s var(--st-ease) both; }
.st-kpi:nth-child(2) { animation-delay: .03s; }
.st-kpi:nth-child(3) { animation-delay: .06s; }
.st-kpi:nth-child(4) { animation-delay: .09s; }
.st-kpi:nth-child(5) { animation-delay: .12s; }
.st-kpi:nth-child(6) { animation-delay: .15s; }
.st-panel,
.st-card.st-panel { animation: st-kpi-in .4s var(--st-ease) both; }

.mp-bar {
  background: #0c0c0c;
  border-color: var(--st-line);
  color: #fff;
}
.mp-chip { background: rgba(255,255,255,.06); }
.mp-chip.is-ready { background: rgba(255,255,255,.14); }
.mp-code { background: #000; color: #fff; }

/* =================================================================
   INTRO — #st-intro / .st-intro* luxury B/W splash (IDs preserved)
   Full-bleed black field · display type · sat strip · CSS/JS motion
   ================================================================= */
.st-intro {
  background: #000;
  color: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.st-intro.st-intro--leaving {
  transition: opacity .55s var(--st-ease), filter .55s var(--st-ease), transform .55s var(--st-ease);
  filter: blur(4px);
  transform: scale(1.015);
}
body.st-intro-open .am-game-main > .st-cockpit {
  filter: blur(3px) saturate(.55) brightness(.55);
  transition: filter .5s var(--st-ease);
}

.st-intro__backdrop { opacity: 1; }
.st-intro__stars[data-anim="stars"] {
  opacity: .9;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff, transparent),
    radial-gradient(1px 1px at 28% 42%, rgba(255,255,255,.7), transparent),
    radial-gradient(1.5px 1.5px at 48% 22%, #fff, transparent),
    radial-gradient(1px 1px at 62% 58%, rgba(255,255,255,.55), transparent),
    radial-gradient(1px 1px at 78% 30%, #fff, transparent),
    radial-gradient(1px 1px at 88% 72%, rgba(255,255,255,.5), transparent),
    radial-gradient(1.5px 1.5px at 18% 78%, rgba(255,255,255,.65), transparent),
    radial-gradient(1px 1px at 40% 88%, #fff, transparent),
    radial-gradient(1px 1px at 55% 12%, rgba(255,255,255,.45), transparent),
    radial-gradient(1.5px 1.5px at 72% 48%, rgba(255,255,255,.6), transparent);
  animation: st-intro-drift 42s linear infinite;
}
.st-intro__earth[data-anim="earth"] {
  inset: auto 0 -18% 0;
  height: 58%;
  background:
    radial-gradient(ellipse 120% 90% at 50% 100%, rgba(255,255,255,.14) 0%, rgba(255,255,255,.04) 38%, transparent 68%),
    radial-gradient(ellipse 70% 40% at 50% 92%, rgba(180,180,180,.12), transparent 70%);
  filter: blur(.4px);
  animation: st-intro-earth 14s ease-in-out infinite alternate;
  opacity: .85;
}
.st-intro__orbit[data-anim="orbit"] {
  border-color: rgba(255,255,255,.12);
  box-shadow: inset 0 0 48px rgba(255,255,255,.025);
}
.st-intro__orbit--b[data-anim="orbit"] {
  border-color: rgba(255,255,255,.07);
  border-style: dashed;
}
.st-intro__glow[data-anim="glow"] {
  background: radial-gradient(ellipse at 50% 38%, rgba(255,255,255,.09), transparent 64%);
  animation: st-intro-pulse 6s ease-in-out infinite;
}
.st-intro__veil[data-anim="veil"] {
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.55) 0%, transparent 28%, transparent 62%, rgba(0,0,0,.72) 100%),
    radial-gradient(ellipse 70% 55% at 50% 42%, transparent 20%, rgba(0,0,0,.45) 100%);
  pointer-events: none;
}

/* No card: open stage on void */
.st-intro__stage {
  width: min(820px, 100%);
  gap: 1.75rem;
  padding: 1.1rem .9rem 1.25rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--st-ease), transform .7s var(--st-ease);
}
.st-intro.st-intro--ready .st-intro__stage {
  opacity: 1;
  transform: translateY(0);
}

.st-intro__copy {
  display: grid;
  gap: .45rem;
  justify-items: center;
}
.st-intro__eyebrow {
  opacity: 0;
  letter-spacing: .28em;
  animation: st-intro-fade-up .65s var(--st-ease) .08s both;
}
.st-intro.st-intro--ready .st-intro__eyebrow { opacity: 1; }
.st-intro__title {
  margin: 0;
  font-family: var(--st-display);
  font-size: clamp(2.55rem, 7vw, 4.1rem);
  font-weight: 600;
  letter-spacing: .18em;
  line-height: .98;
  color: #fff;
  text-shadow: none;
  text-transform: none;
  animation: st-intro-title .95s var(--st-ease) .14s both;
}
.st-intro__rule {
  width: 3.2rem;
  height: 1px;
  margin: .15rem 0 .1rem;
  background: #fff;
  opacity: 0;
  transform: scaleX(.35);
  transform-origin: center;
  animation: st-intro-rule .7s var(--st-ease) .32s both;
}
.st-intro__tag {
  margin: 0;
  max-width: 26rem;
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  animation: st-intro-fade-up .7s var(--st-ease) .36s both;
}

.st-intro__fleet {
  gap: .85rem 1rem;
  min-height: 8rem;
  padding: .35rem 0 .15rem;
  border-top: 1px solid rgba(255,255,255,.1);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.st-intro__sat {
  width: 7.25rem;
  opacity: 0;
  transform: translateY(12px);
  animation: st-intro-sat-in .7s var(--st-ease) both, st-intro-float 5.2s ease-in-out infinite;
}
.st-intro__sat[data-intro-slot="0"] { animation-delay: .42s, 0s; }
.st-intro__sat[data-intro-slot="1"] { animation-delay: .52s, .35s; }
.st-intro__sat[data-intro-slot="2"] { animation-delay: .62s, .7s; }
.st-intro__sat[data-intro-slot="3"] { animation-delay: .72s, 1.05s; }
.st-intro__sat[data-intro-slot="4"] { animation-delay: .82s, 1.4s; }
.st-intro__sat[data-intro-slot="5"] { animation-delay: .92s, 1.75s; }

.st-intro__frame {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.18);
  background: #0a0a0a;
  box-shadow: 0 16px 36px rgba(0,0,0,.55);
}
.st-intro__img,
.st-intro__sat .st-sat-img {
  width: 7.25rem;
  height: 5.1rem;
  object-fit: cover;
  border: 0;
  border-radius: 0;
  background: #0a0a0a;
  box-shadow: none;
  filter: grayscale(1) contrast(1.12) brightness(.92);
  transform: scale(1.04);
  transition:
    transform 1.1s var(--st-ease),
    filter .45s var(--st-ease),
    opacity .35s var(--st-ease);
}
.st-intro__sat.is-lit .st-intro__img,
.st-intro__sat.is-lit .st-sat-img,
.st-intro__sat:hover .st-intro__img,
.st-intro__sat:hover .st-sat-img {
  filter: grayscale(.35) contrast(1.15) brightness(1.02);
  transform: scale(1.1);
}
.st-intro__sat.is-lit .st-intro__frame,
.st-intro__sat:hover .st-intro__frame {
  border-color: #fff;
}
.st-intro__caption {
  margin: .4rem 0 0;
  font-size: .58rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.42);
}

.st-intro__actions {
  gap: .65rem;
  animation: st-intro-fade-up .7s var(--st-ease) .55s both;
}
.st-intro__actions .st-btn-primary,
#st-intro-start {
  min-width: 11.5rem;
  background: #fff;
  color: #000;
  border-color: #fff;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .72rem;
  font-weight: 700;
  padding: .78rem 1.35rem;
  border-radius: 0;
}
.st-intro__actions .st-btn-primary:hover,
#st-intro-start:hover {
  background: #eaeaea;
}
#st-intro-skip {
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .68rem;
  color: rgba(255,255,255,.78);
  border-color: rgba(255,255,255,.28);
  border-radius: 0;
  background: transparent;
}
#st-intro-skip:hover {
  border-color: #fff;
  color: #fff;
}

@keyframes st-intro-fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes st-intro-title {
  from { opacity: 0; letter-spacing: .38em; transform: translateY(14px); }
  to { opacity: 1; letter-spacing: .18em; transform: translateY(0); }
}
@keyframes st-intro-rule {
  from { opacity: 0; transform: scaleX(.2); }
  to { opacity: .85; transform: scaleX(1); }
}
@keyframes st-intro-sat-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes st-intro-earth {
  from { transform: translate3d(0, 2%, 0) scale(1); }
  to { transform: translate3d(0, -1%, 0) scale(1.03); }
}

@media (max-width: 1200px) {
  .st-command {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand actions"
      "hud hud";
  }
  .st-command__brand { grid-area: brand; }
  .st-hud { grid-area: hud; }
  .st-command__actions {
    grid-area: actions;
    justify-content: flex-end;
    align-self: start;
  }
  .st-ops-deck.st-grid,
  .st-ops-deck {
    grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  }
  .st-ops-desk { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .st-cockpit { padding: .55rem .65rem 1rem; }
  .st-ops-deck.st-grid,
  .st-ops-deck { grid-template-columns: 1fr; }
  /* Keep finance HUD sticky on mobile — do not drop to static */
  .st-command {
    position: sticky;
    top: 2.15rem;
    z-index: 22;
  }
  .st-kpi { min-width: 4rem; }
  .st-kpi--money,
  .st-kpi--debt,
  .st-kpi--credit,
  .st-kpi--outlook { min-width: 5.4rem; }
  .st-command__brand h1 { font-size: 1.35rem; }
  .st-intro__sat { width: 5.4rem; }
  .st-intro__img,
  .st-intro__sat .st-sat-img { width: 5.4rem; height: 3.85rem; }
  .st-intro__title { letter-spacing: .12em; font-size: clamp(2.1rem, 9vw, 3rem); }
  .st-intro__fleet { gap: .55rem; }
}
@media (prefers-reduced-motion: reduce) {
  .st-kpi, .st-panel, .st-card.st-panel,
  .st-intro__stage, .st-intro__eyebrow, .st-intro__title,
  .st-intro__tag, .st-intro__actions, .st-intro__rule, .st-intro__sat { animation: none; }
  .st-intro.st-intro--ready .st-intro__stage { opacity: 1; transform: none; }
  .st-intro__sat { opacity: 1; transform: none; }
  .st-btn, .st-bus, .st-sat, .st-tab { transition: none; }
  .st-intro__stars,
  .st-intro__orbit,
  .st-intro__glow,
  .st-intro__earth,
  .st-intro__sat { animation: none !important; }
  .st-intro__img,
  .st-intro__sat .st-sat-img { transform: none; }
}

/* —— Hell / Dunkel COMPLETE PASS (visuals owns theme.css; gameplay sets data-st-theme)
   Expensive B/W only — no cream/purple. Finance KPIs stay black capsules (FINHUD append wins). —— */
html[data-st-theme="dark"],
html:not([data-st-theme]) {
  color-scheme: dark;
}

html[data-st-theme="light"] {
  color-scheme: light;
  --st-void: #f0f0f0;
  --st-space: #f5f5f5;
  --st-panel: #ffffff;
  --st-panel-2: #f2f2f2;
  --st-lift: #ebebeb;
  --st-ink: #000000;
  --st-ink-soft: #1a1a1a;
  --st-muted: #5c5c5c;
  --st-line: rgba(0, 0, 0, .12);
  --st-line-strong: rgba(0, 0, 0, .22);
  --st-gold: #4a4a4a;
  --st-gold-bright: #111111;
  --st-gold-dim: rgba(0, 0, 0, .06);
  --st-steel: #4a4a4a;
  --st-steel-bright: #111111;
  --st-warn: #4a4a4a;
  --st-ok: #1f1f1f;
  --st-bad: #111111;
  --st-blue: #111111;
  --st-blue-d: #000000;
  --st-shadow: 0 1px 0 rgba(255,255,255,.85) inset, 0 14px 32px rgba(0,0,0,.08);
  --st-shadow-soft: 0 8px 20px rgba(0,0,0,.06);
  --bg: var(--st-space);
  --card: var(--st-panel);
  --ink: var(--st-ink);
  --muted: var(--st-muted);
  --line: var(--st-line);
  --blue: #000000;
  --blue-d: #000000;
  --ok: #1f1f1f;
  --bad: #111111;
  --amber: #4a4a4a;
  --r: var(--st-r);
}

/* Atmosphere */
html[data-st-theme="light"] body.am-game-body {
  color: #000;
  background:
    radial-gradient(1100px 700px at 50% -10%, rgba(0,0,0,.045), transparent 58%),
    linear-gradient(180deg, #ffffff 0%, #f4f4f4 48%, #ececec 100%);
}
html[data-st-theme="light"] body.am-game-body::before {
  opacity: .2;
  background-image:
    linear-gradient(rgba(0,0,0,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.045) 1px, transparent 1px);
}
html[data-st-theme="light"] .am-game-bar {
  background: #000;
  border-bottom: 1px solid rgba(255,255,255,.16);
  color: #fff;
  box-shadow: none;
}
html[data-st-theme="light"] .am-game-bar a,
html[data-st-theme="light"] .am-game-bar__brand { color: #fff; }
html[data-st-theme="light"] .am-game-footer {
  background: #000;
  border-top: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.45);
}

/* Command HUD — sticky finance stays on top */
html[data-st-theme="light"] .st-command,
html[data-st-theme="light"] .st-cockpit .st-topbar.st-command {
  background: #fff;
  border: 1px solid rgba(0,0,0,.16);
  box-shadow: 0 12px 28px rgba(0,0,0,.08);
  color: #000;
  overflow: visible;
}
html[data-st-theme="light"] .st-command__brand h1,
html[data-st-theme="light"] .st-brand h1,
html[data-st-theme="light"] .st-zone-title,
html[data-st-theme="light"] .st-workspace-title,
html[data-st-theme="light"] .st-panel__title,
html[data-st-theme="light"] .st-sub-title,
html[data-st-theme="light"] .st-dialog__head h2,
html[data-st-theme="light"] .st-fold.st-panel > summary .st-panel__title {
  color: #000;
}
html[data-st-theme="light"] .st-eyebrow,
html[data-st-theme="light"] .st-command__brand .st-eyebrow,
html[data-st-theme="light"] .st-intro__eyebrow {
  color: #000;
  opacity: .55;
}
html[data-st-theme="light"] .st-command .st-sub,
html[data-st-theme="light"] .st-brand .st-sub,
html[data-st-theme="light"] .st-zone-sub,
html[data-st-theme="light"] .st-panel__sub,
html[data-st-theme="light"] .st-hint,
html[data-st-theme="light"] .st-tag,
html[data-st-theme="light"] .st-bus span,
html[data-st-theme="light"] .st-meta,
html[data-st-theme="light"] .st-sat small,
html[data-st-theme="light"] .st-pool-pick small,
html[data-st-theme="light"] .st-freq,
html[data-st-theme="light"] .st-feed-ask,
html[data-st-theme="light"] .st-multifeed {
  color: #5c5c5c;
}

/* Ops KPI cells (finance capsules owned by FINHUD append) */
html[data-st-theme="light"] .st-hud {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  overflow: visible;
}
html[data-st-theme="light"] .st-kpi-strip--finance {
  order: 0;
  padding-bottom: .2rem;
  border-bottom: 1px solid rgba(0,0,0,.14);
}
html[data-st-theme="light"] .st-kpi-strip--ops { order: 1; opacity: .95; }
html[data-st-theme="light"] .st-kpi-strip--ops .st-kpi {
  background: #fff;
  border: 1px solid rgba(0,0,0,.16);
  color: #000;
  box-shadow: none;
}
html[data-st-theme="light"] .st-kpi-strip--ops .st-kpi:hover {
  border-color: rgba(0,0,0,.35);
  background: #fafafa;
}
html[data-st-theme="light"] .st-kpi-strip--ops .st-kpi__label,
html[data-st-theme="light"] .st-kpi-strip--ops .st-kpi small,
html[data-st-theme="light"] .st-kpi-meta {
  color: #5c5c5c;
  border-top-color: rgba(0,0,0,.12);
}
html[data-st-theme="light"] .st-kpi-strip--ops .st-kpi__value,
html[data-st-theme="light"] .st-kpi-strip--ops .st-kpi__value.st-neg,
html[data-st-theme="light"] .st-kpi-strip--ops .st-kpi__value.st-pos,
html[data-st-theme="light"] .st-kpi-strip--ops .st-kpi .st-neg,
html[data-st-theme="light"] .st-kpi-strip--ops .st-kpi .st-pos {
  color: #000 !important;
}
html[data-st-theme="light"] .st-command .st-status b,
html[data-st-theme="light"] .st-topbar .st-status b {
  color: inherit;
}

/* Panels / cards / dialogs */
html[data-st-theme="light"] .st-panel,
html[data-st-theme="light"] .st-card,
html[data-st-theme="light"] .st-card.st-panel,
html[data-st-theme="light"] .st-cockpit .st-card,
html[data-st-theme="light"] .st-dialog-box,
html[data-st-theme="light"] .st-end-box {
  background: #fff;
  border: 1px solid rgba(0,0,0,.12);
  color: #000;
  box-shadow: 0 8px 20px rgba(0,0,0,.05);
}
html[data-st-theme="light"] .st-panel:hover,
html[data-st-theme="light"] .st-card.st-panel:hover {
  border-color: rgba(0,0,0,.22);
}
html[data-st-theme="light"] .st-panel__head,
html[data-st-theme="light"] .st-dialog__head,
html[data-st-theme="light"] .st-dialog__foot,
html[data-st-theme="light"] .st-fold.st-panel[open] > summary {
  background: #f6f6f6;
  border-color: rgba(0,0,0,.1);
}
html[data-st-theme="light"] .st-panel__body,
html[data-st-theme="light"] .st-dialog__body,
html[data-st-theme="light"] .st-workspace-body {
  color: #1a1a1a;
}
html[data-st-theme="light"] .st-fold.st-panel > summary::before {
  border-right-color: #000;
  border-bottom-color: #000;
  opacity: .65;
}
html[data-st-theme="light"] .st-zone-head {
  border-bottom-color: rgba(0,0,0,.12);
}
html[data-st-theme="light"] .st-desk-block + .st-desk-block {
  border-top-color: rgba(0,0,0,.12);
}

/* Tabs */
html[data-st-theme="light"] .st-desk-tabs,
html[data-st-theme="light"] .st-ops-desk .st-tabs,
html[data-st-theme="light"] .st-tabs {
  background: #efefef;
  border: 1px solid rgba(0,0,0,.12);
}
html[data-st-theme="light"] .st-desk-tabs .st-tab,
html[data-st-theme="light"] .st-ops-desk .st-tab,
html[data-st-theme="light"] .st-tab {
  color: #5c5c5c;
  background: transparent;
}
html[data-st-theme="light"] .st-desk-tabs .st-tab.on,
html[data-st-theme="light"] .st-ops-desk .st-tab.on,
html[data-st-theme="light"] .st-tab.on {
  background: #000;
  color: #fff;
  box-shadow: none;
}

/* Buttons */
html[data-st-theme="light"] .st-btn,
html[data-st-theme="light"] button.st-btn,
html[data-st-theme="light"] .st-btn-primary,
html[data-st-theme="light"] .st-actions .st-btn#btn-year,
html[data-st-theme="light"] .st-btn-small,
html[data-st-theme="light"] .st-pool .st-pool-item button.st-quick {
  background: #000;
  color: #fff;
  border-color: #000;
  box-shadow: none;
}
html[data-st-theme="light"] .st-btn:hover:not(:disabled),
html[data-st-theme="light"] button.st-btn:hover:not(:disabled) {
  background: #222;
  filter: none;
}
html[data-st-theme="light"] .st-btn:disabled,
html[data-st-theme="light"] .st-btn.st-poor {
  background: #d0d0d0;
  color: #666;
  border-color: #d0d0d0;
}
html[data-st-theme="light"] .st-btn-ghost,
html[data-st-theme="light"] #btn-theme {
  background: transparent;
  color: #000;
  border: 1px solid rgba(0,0,0,.28);
}
html[data-st-theme="light"] .st-btn-ghost:hover:not(:disabled),
html[data-st-theme="light"] #btn-theme:hover:not(:disabled) {
  border-color: #000;
  background: rgba(0,0,0,.04);
}
html[data-st-theme="light"] .st-btn-bad {
  background: transparent;
  color: #000;
  border-color: rgba(0,0,0,.4);
}

/* Lists / interactive rows */
html[data-st-theme="light"] .st-bus,
html[data-st-theme="light"] .st-sat,
html[data-st-theme="light"] .st-tp,
html[data-st-theme="light"] .st-pool-item,
html[data-st-theme="light"] .st-op,
html[data-st-theme="light"] .st-offer,
html[data-st-theme="light"] .st-loan,
html[data-st-theme="light"] .st-loan-offer,
html[data-st-theme="light"] .st-rnd {
  background: #fff;
  border-color: rgba(0,0,0,.12);
  color: #000;
}
html[data-st-theme="light"] .st-bus:hover,
html[data-st-theme="light"] .st-sat:hover,
html[data-st-theme="light"] .st-op:hover {
  border-color: rgba(0,0,0,.35);
}
html[data-st-theme="light"] .st-bus.on,
html[data-st-theme="light"] .st-sat.on,
html[data-st-theme="light"] .st-pool-item.on,
html[data-st-theme="light"] .st-tp.st-tp-suggest,
html[data-st-theme="light"] .st-sat.st-sat-suggest {
  border-color: #000;
  background: #f5f5f5;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.12);
}
html[data-st-theme="light"] .st-tp.st-off,
html[data-st-theme="light"] .st-sat-pending {
  background: #f7f7f7;
}
html[data-st-theme="light"] .st-chip,
html[data-st-theme="light"] .st-pool button,
html[data-st-theme="light"] .st-preset-chip {
  background: #fff;
  border-color: rgba(0,0,0,.14);
  color: #1a1a1a;
}
html[data-st-theme="light"] .st-chip.on,
html[data-st-theme="light"] .st-pool button.on {
  background: #000;
  border-color: #000;
  color: #fff;
}
html[data-st-theme="light"] .st-order-group { border-left-color: #bbb; }
html[data-st-theme="light"] .st-order-group-build { border-left-color: #666; }
html[data-st-theme="light"] .st-order-group-ready { border-left-color: #000; }
html[data-st-theme="light"] .st-order-count,
html[data-st-theme="light"] .st-order-ordered .st-order-badge {
  background: rgba(0,0,0,.08);
  color: #111;
}
html[data-st-theme="light"] .st-order-build .st-order-badge {
  background: rgba(0,0,0,.1);
  color: #111;
}
html[data-st-theme="light"] .st-order-ready .st-order-badge {
  background: #000;
  color: #fff;
}
html[data-st-theme="light"] .st-orders,
html[data-st-theme="light"] .st-orders-fleet,
html[data-st-theme="light"] .st-tp-actions,
html[data-st-theme="light"] .st-orbit,
html[data-st-theme="light"] .st-rnd,
html[data-st-theme="light"] #log div {
  border-color: rgba(0,0,0,.1);
}

/* Forms */
html[data-st-theme="light"] .st-cockpit select,
html[data-st-theme="light"] .st-cockpit input[type="text"],
html[data-st-theme="light"] .st-cockpit input[type="search"],
html[data-st-theme="light"] .st-cockpit input[type="range"],
html[data-st-theme="light"] .st-cockpit input.st-num,
html[data-st-theme="light"] .st-bus-tools input[type="search"],
html[data-st-theme="light"] .st-pool-tools input[type="search"],
html[data-st-theme="light"] select,
html[data-st-theme="light"] input[type="text"],
html[data-st-theme="light"] input[type="search"] {
  background: #fff;
  border: 1px solid rgba(0,0,0,.16);
  color: #000;
}
html[data-st-theme="light"] .st-cockpit select:focus,
html[data-st-theme="light"] .st-cockpit input:focus {
  border-color: #000;
  box-shadow: 0 0 0 2px rgba(0,0,0,.1);
}
html[data-st-theme="light"] .st-quote,
html[data-st-theme="light"] .st-toolbar,
html[data-st-theme="light"] .st-fleet-sum,
html[data-st-theme="light"] .st-pool-audio,
html[data-st-theme="light"] .st-import {
  background: #f5f5f5;
  border-color: rgba(0,0,0,.1);
  color: #1a1a1a;
}

/* Meters / badges / status */
html[data-st-theme="light"] .st-meter,
html[data-st-theme="light"] .st-cap-bar { background: rgba(0,0,0,.1); }
html[data-st-theme="light"] .st-meter span,
html[data-st-theme="light"] .st-cap-bar span,
html[data-st-theme="light"] .st-pip.on { background: #000; }
html[data-st-theme="light"] .st-pip { background: rgba(0,0,0,.15); }
html[data-st-theme="light"] .st-bird {
  background: #000;
  color: #fff;
}
html[data-st-theme="light"] .st-rival {
  background: #fff;
  border-color: rgba(0,0,0,.14);
}
html[data-st-theme="light"] .st-mode,
html[data-st-theme="light"] .st-svc,
html[data-st-theme="light"] .st-bouquet,
html[data-st-theme="light"] .st-badge,
html[data-st-theme="light"] .st-tp-use,
html[data-st-theme="light"] .st-contract {
  background: rgba(0,0,0,.07);
  color: #111;
}
html[data-st-theme="light"] .st-badge-off { background: rgba(0,0,0,.1); color: #000; }
html[data-st-theme="light"] .st-badge-pay,
html[data-st-theme="light"] .st-badge-dsr,
html[data-st-theme="light"] .st-badge-isp,
html[data-st-theme="light"] .st-badge-mcpc,
html[data-st-theme="light"] .st-badge-scpc {
  background: rgba(0,0,0,.08);
  color: #111;
}
html[data-st-theme="light"] .st-sat-img,
html[data-st-theme="light"] .st-sat-img.st-sat-img-miss,
html[data-st-theme="light"] span.st-sat-img-miss {
  background: #e8e8e8;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.1);
}
html[data-st-theme="light"] .st-rename-btn { color: #5c5c5c; }
html[data-st-theme="light"] .st-rename-btn:hover,
html[data-st-theme="light"] .st-rename-btn:focus-visible {
  color: #000;
  background: rgba(0,0,0,.06);
}
html[data-st-theme="light"] .st-years th,
html[data-st-theme="light"] .st-years td {
  color: #000;
  border-bottom-color: rgba(0,0,0,.1);
}
html[data-st-theme="light"] .st-years th { color: #5c5c5c; }
html[data-st-theme="light"] .st-years .st-neg,
html[data-st-theme="light"] .st-neg { color: #000; }
html[data-st-theme="light"] .st-years .st-pos,
html[data-st-theme="light"] .st-pos { color: #000; }
html[data-st-theme="light"] .st-keys dt {
  background: #f5f5f5;
  border-color: rgba(0,0,0,.14);
  color: #000;
}
html[data-st-theme="light"] .st-keys dd { color: #1a1a1a; }
html[data-st-theme="light"] .st-secret-tab.on {
  background: #000;
  color: #fff;
}
html[data-st-theme="light"] .st-secret-tabs,
html[data-st-theme="light"] .st-secret-row { color: #1a1a1a; }
html[data-st-theme="light"] .st-loan b,
html[data-st-theme="light"] .st-loan-offer b,
html[data-st-theme="light"] .st-fleet-sum b { color: #000; }
html[data-st-theme="light"] .st-loan-bad b,
html[data-st-theme="light"] .st-loan-refuse,
html[data-st-theme="light"] .st-dbs-line { color: #222; }
html[data-st-theme="light"] .st-dbs {
  background: #000;
  color: #fff;
}
html[data-st-theme="light"] .st-tp.st-tp-over {
  box-shadow: inset 0 0 0 2px #000;
  background: #f0f0f0;
}
html[data-st-theme="light"] body.st-dragging .st-tp:not(.st-tp-suggest) { opacity: .5; }

/* Overlays */
html[data-st-theme="light"] .st-dialog,
html[data-st-theme="light"] .st-end {
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(10px);
}
html[data-st-theme="light"] .st-toast {
  background: #fff;
  border: 1px solid rgba(0,0,0,.2);
  color: #000;
}
html[data-st-theme="light"] .st-toast.success,
html[data-st-theme="light"] .st-toast.error {
  background: #fff;
  border-color: #000;
}

/* Multiparty */
html[data-st-theme="light"] .mp-bar,
html[data-st-theme="light"] .mp-box {
  background: #fff;
  border-color: rgba(0,0,0,.12);
  color: #000;
}
html[data-st-theme="light"] .mp-chip { background: rgba(0,0,0,.06); }
html[data-st-theme="light"] .mp-chip.is-ready { background: rgba(0,0,0,.12); }
html[data-st-theme="light"] .mp-code {
  background: #f5f5f5;
  color: #000;
}
html[data-st-theme="light"] .mp-players li { border-bottom-color: rgba(0,0,0,.1); }
html[data-st-theme="light"] .mp-wait,
html[data-st-theme="light"] .mp-players .mp-tag,
html[data-st-theme="light"] .mp-box label { color: #5c5c5c; }

/* Intro stays cinematic black in Hell (expensive splash; not washed paper) */
html[data-st-theme="light"] .st-intro {
  background:
    radial-gradient(ellipse 80% 50% at 50% 18%, rgba(255,255,255,.08), transparent 58%),
    #000;
  color: #fff;
}
html[data-st-theme="light"] .st-intro__stage {
  background: linear-gradient(180deg, rgba(20,20,20,.78) 0%, rgba(0,0,0,.92) 100%);
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 28px 70px rgba(0,0,0,.45);
  color: #fff;
}
html[data-st-theme="light"] .st-intro__title,
html[data-st-theme="light"] .st-intro__eyebrow { color: #fff; }
html[data-st-theme="light"] .st-intro__tag,
html[data-st-theme="light"] .st-intro__caption { color: rgba(255,255,255,.55); }
html[data-st-theme="light"] .st-intro__orbit[data-anim="orbit"] {
  border-color: rgba(255,255,255,.14);
}
html[data-st-theme="light"] .st-intro__glow[data-anim="glow"] {
  background: radial-gradient(ellipse at 50% 42%, rgba(255,255,255,.1), transparent 62%);
}
html[data-st-theme="light"] .st-intro__img,
html[data-st-theme="light"] .st-intro__sat .st-sat-img {
  border-color: rgba(255,255,255,.22);
  background: #111;
}
html[data-st-theme="light"] #st-intro-start {
  background: #fff;
  color: #000;
  border-color: #fff;
}
html[data-st-theme="light"] #st-intro-skip {
  color: #fff;
  border-color: rgba(255,255,255,.3);
}
html[data-st-theme="light"] body.st-intro-open .am-game-main > .st-cockpit {
  filter: blur(2px) saturate(.85);
}

/* Theme toggle — polish only; gameplay owns markup/behavior */
#btn-theme {
  min-width: 5.5rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .72rem;
  font-weight: 700;
}
html[data-st-theme="light"] #btn-theme {
  color: #000;
  border-color: rgba(0,0,0,.28);
}

/* FINHUD */
/* Finance HUD agent may append a small contrast block below this marker. Do not remove. */


/* =================================================================
   FINHUD stamp:20271123finhud04 — APPEND-ONLY integrity (finance agent)
   Money · debt · credit · outlook stay top-visible in Hell + Dunkel.
   Do not expand into a full theme rewrite; visuals owns theme.css body.
   ================================================================= */
.st-command .st-hud {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  min-width: 0;
  overflow: visible;
}
.st-command .st-kpi-strip--finance { order: 0; }
.st-command .st-kpi-strip--ops { order: 1; }
.st-command .st-kpi-strip--legacy[hidden] { display: none !important; }

/* High-contrast finance capsules — win over light-theme .st-kpi washes */
.st-command .st-kpi-strip--finance .st-kpi--money,
.st-command .st-kpi-strip--finance .st-kpi--debt,
.st-command .st-kpi-strip--finance .st-kpi--credit,
.st-command .st-kpi-strip--finance .st-kpi--outlook,
html[data-st-theme="light"] .st-command .st-kpi-strip--finance .st-kpi--money,
html[data-st-theme="light"] .st-command .st-kpi-strip--finance .st-kpi--debt,
html[data-st-theme="light"] .st-command .st-kpi-strip--finance .st-kpi--credit,
html[data-st-theme="light"] .st-command .st-kpi-strip--finance .st-kpi--outlook,
html[data-st-theme="dark"] .st-command .st-kpi-strip--finance .st-kpi--money,
html[data-st-theme="dark"] .st-command .st-kpi-strip--finance .st-kpi--debt,
html[data-st-theme="dark"] .st-command .st-kpi-strip--finance .st-kpi--credit,
html[data-st-theme="dark"] .st-command .st-kpi-strip--finance .st-kpi--outlook {
  background: #000 !important;
  border-color: rgba(255,255,255,.32) !important;
  color: #fff !important;
}
html[data-st-theme="light"] .st-command .st-kpi-strip--finance .st-kpi--money,
html[data-st-theme="dark"] .st-command .st-kpi-strip--finance .st-kpi--money,
.st-command .st-kpi-strip--finance .st-kpi--money {
  background: #0a0a0a !important;
  border-color: #fff !important;
}
.st-command .st-kpi-strip--finance .st-kpi--money .st-kpi__value,
.st-command .st-kpi-strip--finance .st-kpi--debt .st-kpi__value,
.st-command .st-kpi-strip--finance .st-kpi--credit .st-kpi__value,
.st-command .st-kpi-strip--finance .st-kpi--outlook .st-kpi__value,
html[data-st-theme="light"] .st-command .st-kpi-strip--finance .st-kpi--money .st-kpi__value,
html[data-st-theme="light"] .st-command .st-kpi-strip--finance .st-kpi--debt .st-kpi__value,
html[data-st-theme="light"] .st-command .st-kpi-strip--finance .st-kpi--credit .st-kpi__value,
html[data-st-theme="light"] .st-command .st-kpi-strip--finance .st-kpi--outlook .st-kpi__value {
  color: #fff !important;
}
.st-command .st-kpi-strip--finance .st-kpi--money .st-kpi__label,
.st-command .st-kpi-strip--finance .st-kpi--debt .st-kpi__label,
.st-command .st-kpi-strip--finance .st-kpi--credit .st-kpi__label,
.st-command .st-kpi-strip--finance .st-kpi--outlook .st-kpi__label,
.st-command .st-kpi-strip--finance .st-kpi--credit small {
  color: #9a9a9a !important;
}


/* =================================================================
   FINHUD stamp:20271123finhud05 — APPEND-ONLY after light02
   Re-pin money/debt/credit/outlook high-contrast at true EOF.
   Wins over later light-mode .st-neg/.st-pos ink washes.
   ================================================================= */
.st-command .st-hud { display: flex; flex-direction: column; gap: .4rem; min-width: 0; overflow: visible; }
.st-command .st-kpi-strip--finance { order: 0; }
.st-command .st-kpi-strip--ops { order: 1; }
.st-command .st-kpi-strip--legacy[hidden] { display: none !important; }

html[data-st-theme="light"] .st-command .st-kpi-strip--finance .st-kpi--money,
html[data-st-theme="light"] .st-command .st-kpi-strip--finance .st-kpi--debt,
html[data-st-theme="light"] .st-command .st-kpi-strip--finance .st-kpi--credit,
html[data-st-theme="light"] .st-command .st-kpi-strip--finance .st-kpi--outlook,
html[data-st-theme="dark"] .st-command .st-kpi-strip--finance .st-kpi--money,
html[data-st-theme="dark"] .st-command .st-kpi-strip--finance .st-kpi--debt,
html[data-st-theme="dark"] .st-command .st-kpi-strip--finance .st-kpi--credit,
html[data-st-theme="dark"] .st-command .st-kpi-strip--finance .st-kpi--outlook,
.st-command .st-kpi-strip--finance .st-kpi--money,
.st-command .st-kpi-strip--finance .st-kpi--debt,
.st-command .st-kpi-strip--finance .st-kpi--credit,
.st-command .st-kpi-strip--finance .st-kpi--outlook {
  background: #000 !important;
  border-color: rgba(255,255,255,.32) !important;
  color: #fff !important;
}
html[data-st-theme="light"] .st-command .st-kpi-strip--finance .st-kpi--money,
html[data-st-theme="dark"] .st-command .st-kpi-strip--finance .st-kpi--money,
.st-command .st-kpi-strip--finance .st-kpi--money {
  background: #0a0a0a !important;
  border-color: #fff !important;
}
html[data-st-theme="light"] .st-command .st-kpi-strip--finance .st-kpi--money .st-kpi__value,
html[data-st-theme="light"] .st-command .st-kpi-strip--finance .st-kpi--debt .st-kpi__value,
html[data-st-theme="light"] .st-command .st-kpi-strip--finance .st-kpi--credit .st-kpi__value,
html[data-st-theme="light"] .st-command .st-kpi-strip--finance .st-kpi--outlook .st-kpi__value,
html[data-st-theme="light"] .st-command .st-kpi-strip--finance .st-kpi--money .st-kpi__value.st-neg,
html[data-st-theme="light"] .st-command .st-kpi-strip--finance .st-kpi--debt .st-kpi__value.st-neg,
html[data-st-theme="light"] .st-command .st-kpi-strip--finance .st-kpi--credit .st-kpi__value.st-neg,
html[data-st-theme="light"] .st-command .st-kpi-strip--finance .st-kpi--outlook .st-kpi__value.st-neg,
html[data-st-theme="light"] .st-command .st-kpi-strip--finance .st-kpi--money .st-kpi__value.st-pos,
html[data-st-theme="light"] .st-command .st-kpi-strip--finance .st-kpi--debt .st-kpi__value.st-pos,
html[data-st-theme="light"] .st-command .st-kpi-strip--finance .st-kpi--credit .st-kpi__value.st-pos,
html[data-st-theme="light"] .st-command .st-kpi-strip--finance .st-kpi--outlook .st-kpi__value.st-pos,
.st-command .st-kpi-strip--finance .st-kpi--money .st-kpi__value,
.st-command .st-kpi-strip--finance .st-kpi--debt .st-kpi__value,
.st-command .st-kpi-strip--finance .st-kpi--credit .st-kpi__value,
.st-command .st-kpi-strip--finance .st-kpi--outlook .st-kpi__value {
  color: #fff !important;
}
html[data-st-theme="light"] .st-command .st-kpi-strip--finance .st-kpi--money .st-kpi__label,
html[data-st-theme="light"] .st-command .st-kpi-strip--finance .st-kpi--debt .st-kpi__label,
html[data-st-theme="light"] .st-command .st-kpi-strip--finance .st-kpi--credit .st-kpi__label,
html[data-st-theme="light"] .st-command .st-kpi-strip--finance .st-kpi--outlook .st-kpi__label,
.st-command .st-kpi-strip--finance .st-kpi--money .st-kpi__label,
.st-command .st-kpi-strip--finance .st-kpi--debt .st-kpi__label,
.st-command .st-kpi-strip--finance .st-kpi--credit .st-kpi__label,
.st-command .st-kpi-strip--finance .st-kpi--outlook .st-kpi__label,
.st-command .st-kpi-strip--finance .st-kpi--credit small {
  color: #9a9a9a !important;
}
/* Biz desk folds — all Geschäftsbereiche blocks */
.st-biz-fold {
  border: 1px solid var(--st-line);
  border-radius: 10px;
  background: var(--st-panel, var(--card));
  margin: 0 0 .65rem;
  overflow: hidden;
}
.st-biz-fold__sum {
  cursor: pointer;
  list-style: none;
  padding: .65rem .8rem;
  font-weight: 650;
  color: var(--st-ink, var(--ink));
  border-bottom: 1px solid transparent;
  display: flex;
  align-items: center;
  gap: .45rem;
  user-select: none;
}
.st-biz-fold__sum::before {
  content: '▸';
  display: inline-block;
  transition: transform .15s ease;
  color: var(--st-muted, #888);
  flex: 0 0 auto;
}
.st-biz-fold[open] > .st-biz-fold__sum::before {
  transform: rotate(90deg);
}
.st-biz-fold__sum::-webkit-details-marker { display: none; }
.st-biz-fold__sum::marker { content: ''; }
.st-biz-fold[open] > .st-biz-fold__sum {
  border-bottom-color: var(--st-line);
}
.st-biz-fold__body { padding: .7rem .8rem .85rem; }
.st-desk-block[data-block] > .st-biz-fold { margin-top: 0; }
.st-playout-ladder {
  margin: .55rem 0 0;
  padding-left: 1.1rem;
}
.st-playout-ladder li { margin: .2rem 0; }
