/* The live scene is the play surface; existing management remains reachable below it. */
body.scene-active {
  --scene-edge: #55716b;
  --scene-ink: #0d1b22;
  --scene-paper: #e6ede3;
  --scene-muted: #b2c5c2;
  background: #08141b;
  color: var(--scene-paper);
}

body.scene-active .app-shell {
  width: 100%;
  max-width: none;
  min-height: 100svh;
  margin: 0;
  border: 0;
  box-shadow: none;
  background: #0a151c;
}

body.scene-active .app-main { margin: 0; padding: 0; }

/* One small command bar, rather than a second illustrated page banner. */
body.scene-active .rail {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  height: 52px;
  min-height: 52px;
  padding: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: #4a6865 #0d1a20;
  background: #0c1a21f5;
  border-bottom: 1px solid #6680785c;
  backdrop-filter: blur(10px);
}

body.scene-active .rail .brand-mark {
  display: grid;
  width: 44px;
  height: 50px;
  flex: 0 0 44px;
}

body.scene-active .rail #navigation {
  display: flex;
  flex: 1 0 auto;
  width: auto;
  gap: 0;
}

body.scene-active .rail #navigation .rail-link,
body.scene-active .rail-bottom .rail-link {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  min-height: 50px;
  padding: 6px 10px;
  gap: 6px;
  flex: 1 0 auto;
  border-left-color: #46605b35;
  background-image: none;
}

body.scene-active .rail #navigation .rail-link > svg {
  width: 23px;
  height: 23px;
  padding: 3px;
}

body.scene-active .rail #navigation .rail-link small { font-size: 12px; letter-spacing: 0; }
body.scene-active .rail-bottom { display: flex; flex: 0 0 auto; width: auto; border: 0; }
body.scene-active .rail-bottom .rail-link { min-width: 60px; flex: 0 0 auto; }
body.scene-active .rail .commander-avatar { display: none; }

body.scene-active .topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  min-height: 58px;
  height: auto;
  padding: 6px 18px;
  background: #102029;
  border-bottom: 1px solid #6880783b;
}

body.scene-active .topbar::before,
body.scene-active .topbar::after { display: none; }
body.scene-active .topbar .wordmark { margin: 0; min-height: 44px; }
body.scene-active .topbar .wordmark strong { font-size: 16px; }
body.scene-active .topbar .wordmark-sub { display: none; }
body.scene-active .topbar .resources { flex: 1 1 auto; width: auto; gap: 8px 24px; }
body.scene-active .topbar .resource strong { font-size: 17px; }
body.scene-active .topbar .resource small { font-size: 10px; }
body.scene-active .topbar .topbar-end { display: flex; position: static; width: auto; max-width: none; gap: 8px; padding: 0; }
body.scene-active .topbar .prototype-tag { display: inline-flex; font-size: 9px; padding: 3px 5px; }

body.scene-active #main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 10px 14px 0;
}

body.scene-active .authority-status:not(:empty) {
  margin-bottom: 10px;
  padding: 8px 12px;
  background: #12252b;
  border: 1px solid #54746a69;
  border-radius: 0;
}

body.scene-active .authority-status strong { font-size: 12px; }
body.scene-active .authority-status p { font-size: 11px; line-height: 1.5; }
body.scene-active .authority-status :is(button, a) { min-height: 44px; }

/* The existing heading remains accessible; tabbing to its guide reveals it. */
body.scene-active .page-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
}

body.scene-active .page-heading:focus-within {
  position: relative;
  width: auto;
  height: auto;
  margin-bottom: 8px;
  overflow: visible;
  clip-path: none;
}

body.scene-active .workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

body.scene-active .workspace .primary-column { order: 0; min-width: 0; }
body.scene-active .workspace .right-column { display: none; }
body.scene-active.scene-management-open .workspace .right-column {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  order: 1;
}

/* The canvas keeps its native aspect ratio, so real hit targets stay aligned. */
body.scene-active #colony-view > .world-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  margin: 0;
  overflow: hidden;
  border: 1px solid #54746c;
  border-radius: 0;
  background: #0e2029;
  box-shadow: 0 12px 32px #0005;
}

body.scene-active #colony-view .panel-toolbar {
  grid-column: 1 / -1;
  grid-row: 1;
  display: flex;
  flex-wrap: wrap;
  min-height: 52px;
  padding: 4px 12px;
  gap: 8px 14px;
  background: #122730;
  border-bottom: 1px solid #526f6759;
}

body.scene-active #colony-view .panel-toolbar h2 { font-size: 14px; font-weight: 650; }
body.scene-active #colony-view .panel-toolbar h2 .mono { font-size: 9px; color: #a6c8c4; }
body.scene-active #colony-view .world-toolbar-actions { display: flex; flex-wrap: wrap; gap: 8px; }
body.scene-active #colony-view .world-toolbar-actions > button,
body.scene-active #colony-view .simulation-controls button { min-width: 44px; min-height: 40px; }
body.scene-active #colony-view .map-zoom-button { font-size: 12px; padding: 6px 10px; }
body.scene-active #colony-view [data-scene-management] { min-height: 40px; font-size: 12px; padding: 6px 12px; border: 1px solid #6b847b; color: #d7e7dd; }

body.scene-active #colony-view .sector-switcher {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
  padding: 0;
  gap: 0;
  background: #0c1d25;
  border-bottom: 1px solid #54746c5c;
}

body.scene-active #colony-view .sector-switcher button {
  min-width: 0;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 0;
  border-right: 1px solid #54746c2b;
  font-size: 12px;
}

body.scene-active #colony-view .sector-switcher button.active { color: #c7f3df; background: #244339; border-bottom: 2px solid #8acdb3; }

body.scene-active #colony-view #world-viewport {
  grid-column: 1;
  grid-row: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-height: none;
  overflow: hidden;
  background: #11232b;
}

body.scene-active #colony-view #world-viewport:not(.is-zoomed) #world {
  display: block;
  flex: 0 0 auto;
  width: min(100%, calc(clamp(320px, calc(100svh - 300px), 760px) * 480 / 310));
  min-width: 0;
  max-width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 480 / 310;
  transform: none;
  object-fit: contain;
}

body.scene-active #colony-view #world-viewport.is-zoomed {
  display: block;
  max-height: min(68svh, 720px);
  overflow: auto;
}

body.scene-active #colony-view #world-viewport.is-zoomed #world {
  width: max(100%, 960px);
  min-width: 960px;
  max-width: none;
  height: auto;
  transform: none;
}

body.scene-active #colony-view .world-status { grid-column: 1; grid-row: 4; min-height: 34px; font-size: 10px; padding: 7px 12px; background: #0d2028; border-color: #5271655c; }
body.scene-active #colony-view #world-zoom-help { grid-column: 1; grid-row: 5; padding: 8px 12px; margin: 0; }
body.scene-active #colony-view .world-corner { border-radius: 0; font-size: 10px; }
body.scene-active #colony-view .world-hint { max-width: calc(100% - 24px); white-space: normal; text-align: center; border-radius: 0; font-size: 11px; }

/* Scene-local commands have the same authority and meaning as their original controls. */
body.scene-active #scene-hud {
  grid-column: 2;
  grid-row: 2 / 6;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  min-height: 0;
  max-height: max(520px, calc(100svh - 230px));
  padding: 16px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #607c72 #0e2028;
  background: #0e2028;
  border-left: 1px solid #66867a66;
  color: var(--scene-paper);
  font-size: 13px;
  line-height: 1.5;
}

body.scene-active #scene-hud :is(h2, h3, h4, p) { margin: 0; }
body.scene-active #scene-hud button { min-height: 44px; border-radius: 1px; white-space: normal; }
body.scene-active #scene-hud button:disabled { opacity: .45; cursor: not-allowed; }
body.scene-active #scene-hud :is(button, a):focus-visible { outline: 2px solid #a2ead7; outline-offset: 3px; }
body.scene-active #scene-hud .scene-hud-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
body.scene-active #scene-hud .scene-hud-heading small { font-size: 10px; letter-spacing: .12em; color: #9cbdb7; }
body.scene-active #scene-hud .scene-hud-heading strong { font-size: 15px; }
body.scene-active #scene-hud .scene-crew-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
body.scene-active #scene-hud .scene-crew-strip button { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 5px; min-width: 0; padding: 7px 4px; color: #b7ceca; border: 1px solid #58726a52; background: #102a32; }
body.scene-active #scene-hud .scene-crew-strip button[aria-pressed="true"] { background: #27463c; border-color: #a5d7bd; color: #eff9eb; box-shadow: inset 0 -2px #a5d7bd; }
body.scene-active #scene-hud .scene-crew-strip button > span:not(.portrait) { max-width: 100%; font-size: 11px; overflow-wrap: anywhere; }
body.scene-active #scene-hud .scene-crew-strip .portrait { width: 42px; height: 43px; border-radius: 1px; }
body.scene-active #scene-hud .scene-crew-strip button:hover { background-color: #29423e; }
body.scene-active #scene-hud .scene-selected { display: flex; flex-direction: column; min-width: 0; gap: 13px; }
body.scene-active #scene-hud .scene-selected > h3 { font-size: 20px; }
body.scene-active #scene-hud .scene-vitals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
body.scene-active #scene-hud .scene-vitals > div { min-width: 0; }
body.scene-active #scene-hud .scene-vitals strong { display: block; font-size: 13px; font-variant-numeric: tabular-nums; }
body.scene-active #scene-hud .scene-vitals small { color: #aec6c0; font-size: 10px; }
body.scene-active #scene-hud :is(meter, progress) { display: block; width: 100%; height: 6px; margin-top: 5px; accent-color: #8cd9b5; }
body.scene-active #scene-hud .combat-bar { height: 5px; border-radius: 0; }
body.scene-active #scene-hud .combat-bar > span { border-radius: 0; }
body.scene-active #scene-hud :is(.scene-cargo, .scene-encounter) { padding: 10px 0; border-top: 1px solid #7a9c8f35; border-bottom: 1px solid #7a9c8f35; font-size: 12px; overflow-wrap: anywhere; }
body.scene-active #scene-hud .scene-cargo strong { font-variant-numeric: tabular-nums; color: #e5c79b; }
body.scene-active #scene-hud .scene-encounter strong { color: #f0b592; }
body.scene-active #scene-hud .scene-risk { display: grid; gap: 7px; }
body.scene-active #scene-hud .scene-risk > :is(strong, h3, h4) { font-size: 12px; color: #d8e5dc; }
body.scene-active #scene-hud .scene-strategies { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
body.scene-active #scene-hud .scene-strategies button { padding: 7px 4px; color: #bdd0cb; border: 1px solid #6d8a7e55; background: #10262e; font-size: 12px; }
body.scene-active #scene-hud .scene-strategies button[aria-pressed="true"] { background: #3d3f2b; border-color: #d2bd83; color: #f6dfab; }
body.scene-active #scene-hud .scene-risk p { font-size: 11px; color: #abc3bd; line-height: 1.6; }
body.scene-active #scene-hud .scene-actions { display: grid; gap: 7px; }
body.scene-active #scene-hud .scene-actions button { padding: 9px 12px; border: 1px solid #7c89755e; background: #153139; font-size: 13px; color: #d4e7de; }
body.scene-active #scene-hud .scene-actions [data-action="retreat"] { background: #e6b47c; border-color: #e6b47c; color: #162b30; font-weight: 750; }
body.scene-active #scene-hud [data-speed="1"] { width: 100%; border: 1px solid #9ccfbb; background: #264a3c; color: #dff7df; padding: 9px 12px; font-size: 13px; }
body.scene-active #scene-hud :is(.scene-feedback, .scene-readonly, .scene-state) { border-left: 2px solid #78b9ab; padding-left: 9px; font-size: 11px; color: #aac7c1; overflow-wrap: anywhere; }
body.scene-active #scene-hud .scene-readonly { border-color: #dfb37f; color: #d4c7ac; }
body.scene-active #scene-hud .scene-feedback strong { display: block; margin-bottom: 3px; color: #d1e6d9; font-size: 11px; }

/* Original management content is folded, not discarded or replaced. */
body.scene-active #colony-view .scene-management { margin: 12px 0; padding: 0 14px 14px; border: 1px solid #4a665d; background: #102028; }
body.scene-active #colony-view .scene-management > summary { display: flex; align-items: center; min-height: 48px; gap: 10px; cursor: pointer; font-size: 14px; font-weight: 650; color: #c5d9cb; }
body.scene-active #colony-view .scene-management > summary::before { content: "+"; color: #e4bb83; font-size: 23px; line-height: 1; }
body.scene-active #colony-view .scene-management[open] > summary::before { content: "−"; }
body.scene-active #colony-view .scene-management > summary:focus-visible { outline: 2px solid #a2ead7; outline-offset: -3px; }
body.scene-active #colony-view .scene-management .welcome-strip > div:nth-child(2)::after { display: none; }
body.scene-active #main > .footer { margin-top: 12px; padding: 12px 0; font-size: 10px; }

@media (max-width: 1150px) {
  body.scene-active .rail #navigation .rail-link { min-width: 70px; padding-inline: 7px; }
  body.scene-active #colony-view > .world-panel { grid-template-columns: minmax(0, 1fr) 278px; }
  body.scene-active #scene-hud { padding: 13px; }
  body.scene-active .topbar .topbar-end :is(.arena-global-inbox, #save-button) { min-width: 40px; }
}

@media (max-width: 850px) {
  body.scene-active .topbar { gap: 6px 14px; padding: 5px 12px; }
  body.scene-active .topbar .wordmark { display: none; }
  body.scene-active .topbar .resources { gap: 8px 14px; }
  body.scene-active #main { padding: 8px 10px 0; }
  body.scene-active #colony-view > .world-panel { grid-template-columns: minmax(0, 1fr) 254px; }
  body.scene-active #scene-hud { padding: 11px; font-size: 12px; }
  body.scene-active #colony-view .panel-toolbar h2 { font-size: 12px; }
  body.scene-active #colony-view .sector-switcher button { font-size: 10px; padding-inline: 5px; }
  body.scene-active.scene-management-open .workspace .right-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 650px) {
  body.scene-active .rail { height: 48px; min-height: 48px; }
  body.scene-active .rail .brand-mark { width: 36px; flex-basis: 36px; height: 46px; }
  body.scene-active .rail #navigation .rail-link { min-width: 70px; min-height: 46px; padding: 5px 7px; }
  body.scene-active .rail #navigation .rail-link > svg { width: 21px; height: 21px; padding: 2px; }
  body.scene-active .rail-bottom .rail-link { min-height: 46px; min-width: 58px; }
  body.scene-active .topbar { min-height: 54px; padding: 4px 10px; gap: 4px 8px; flex-wrap: wrap; }
  body.scene-active .topbar .resources { flex-wrap: nowrap; gap: 9px; }
  body.scene-active .topbar .resource { gap: 4px; }
  body.scene-active .topbar .resource strong { font-size: 14px; }
  body.scene-active .topbar .resource small { font-size: 8px; }
  body.scene-active .topbar .resource > span svg { width: 16px; height: 16px; }
  body.scene-active .topbar .resource-plus { min-width: 28px; width: 28px; height: 44px; margin: 0; }
  body.scene-active .topbar .people-resource { display: none; }
  body.scene-active .topbar .topbar-end { flex: 0 0 auto; gap: 4px; }
  body.scene-active .topbar .topbar-end .arena-global-inbox { min-width: 44px; min-height: 44px; }
  body.scene-active #main { padding: 6px 6px 0; }
  body.scene-active .authority-status:not(:empty) { gap: 6px; padding: 8px; margin-bottom: 6px; }
  body.scene-active .authority-status > div:first-child { flex-basis: 100%; gap: 7px; }
  body.scene-active .authority-status p { font-size: 10px; }
  body.scene-active .authority-status .authority-actions { gap: 5px; flex-basis: auto; }
  body.scene-active .authority-status :is(button, a) { font-size: 10px; padding: 7px 10px; }
  body.scene-active #colony-view > .world-panel { display: flex; flex-direction: column; }
  body.scene-active #colony-view .panel-toolbar { min-height: 46px; gap: 5px; padding: 3px 7px; }
  body.scene-active #colony-view .panel-toolbar h2 { font-size: 11px; gap: 5px; }
  body.scene-active #colony-view .panel-toolbar h2 .mono { display: none; }
  body.scene-active #colony-view .world-toolbar-actions { gap: 4px; }
  body.scene-active #colony-view .world-toolbar-actions > button,
  body.scene-active #colony-view .simulation-controls button { min-width: 40px; min-height: 44px; }
  body.scene-active #colony-view .map-zoom-button { font-size: 10px; padding-inline: 7px; }
  body.scene-active #colony-view [data-scene-management] { font-size: 10px; padding-inline: 8px; }
  body.scene-active #colony-view .sector-switcher { width: 100%; }
  body.scene-active #colony-view .sector-switcher button { font-size: 9px; min-height: 44px; padding-inline: 3px; }
  body.scene-active #colony-view #world-viewport { width: 100%; }
  body.scene-active #colony-view #world-viewport:not(.is-zoomed) #world { width: 100%; }
  body.scene-active #colony-view .world-status { min-height: 30px; font-size: 9px; gap: 8px; padding: 6px 8px; }
  body.scene-active #colony-view .world-status > div:nth-child(2) { display: none; }
  body.scene-active #colony-view .world-corner { top: 8px; right: 8px; font-size: 8px; }
  body.scene-active #scene-hud { width: 100%; max-height: none; overflow: visible; border-left: 0; border-top: 1px solid #66867a66; padding: 12px; gap: 12px; }
  body.scene-active #scene-hud .scene-crew-strip { gap: 6px; }
  body.scene-active #scene-hud .scene-crew-strip button { flex-direction: row; justify-content: flex-start; padding: 6px; gap: 6px; }
  body.scene-active #scene-hud .scene-crew-strip .portrait { width: 30px; height: 36px; }
  body.scene-active #scene-hud .scene-crew-strip button > span:not(.portrait) { font-size: 10px; }
  body.scene-active #scene-hud .scene-vitals { gap: 14px; }
  body.scene-active #scene-hud .scene-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.scene-active #scene-hud .scene-actions button { padding-inline: 7px; }
  body.scene-active #scene-hud .scene-mission { padding: 10px; }
  body.scene-active #scene-hud .scene-mission-actions button { min-height: 44px; }
  body.scene-active.scene-management-open .workspace .right-column { display: flex; flex-direction: column; }
  body.scene-active #colony-view .scene-management { padding-inline: 10px; }
}

@media (max-width: 370px) {
  body.scene-active .topbar .resource strong { font-size: 13px; }
  body.scene-active .topbar .resource-plus { min-width: 24px; width: 24px; }
  body.scene-active #colony-view .panel-toolbar { justify-content: center; }
  body.scene-active #colony-view .world-toolbar-actions { margin-left: auto; margin-right: auto; }
  body.scene-active #scene-hud { padding: 10px; }
  body.scene-active #scene-hud .scene-crew-strip button { padding: 5px 4px; flex-direction: column; }
  body.scene-active #scene-hud .scene-crew-strip .portrait { width: 34px; height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  body.scene-active #scene-hud *,
  body.scene-active #scene-hud *::before,
  body.scene-active #scene-hud *::after { animation: none !important; transition: none !important; }
}

/* Step three: make real combat and return records read as game feedback. */
body.scene-active #scene-hud .scene-encounter {
  position: relative;
  padding: 12px;
  background: linear-gradient(90deg, #3a2525, #182c32);
  border: 1px solid #be866f8c;
  box-shadow: inset 3px 0 #db9a7b, 0 0 18px #d58e6d1c;
}

body.scene-active #scene-hud .scene-encounter::before {
  content: "LIVE CONTACT";
  display: block;
  margin-bottom: 5px;
  color: #f1b58e;
  font-size: 9px;
  letter-spacing: .16em;
}

body.scene-active #scene-hud .scene-feedback {
  padding: 10px 12px;
  background: #182d31;
  border: 1px solid #7da99b66;
  animation: scene-feedback-in .35s ease-out both;
}

body.scene-active #scene-hud .scene-feedback p { color: #d8ebe0; }

body.scene-active #scene-hud .scene-mission {
  --mission-accent: #e9b57c;
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--mission-accent) 50%, #69837b);
  border-left: 3px solid var(--mission-accent);
  background: linear-gradient(150deg, #1b3036, #102229 70%);
  box-shadow: inset 0 1px #ffffff0c;
}
body.scene-active #scene-hud .scene-mission-beta { --mission-accent: #8bd9ef; }
body.scene-active #scene-hud .scene-mission-gamma { --mission-accent: #c4b2eb; }
body.scene-active #scene-hud .scene-mission-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
body.scene-active #scene-hud .scene-mission-head small { display: block; color: var(--mission-accent); font-size: 9px; letter-spacing: .12em; }
body.scene-active #scene-hud .scene-mission-head h3 { margin-top: 3px; font-size: 15px; color: #eef3e9; }
body.scene-active #scene-hud .scene-mission-head > span { padding: 4px 6px; border: 1px solid color-mix(in srgb, var(--mission-accent) 55%, transparent); color: var(--mission-accent); font-size: 9px; white-space: nowrap; }
body.scene-active #scene-hud .scene-mission-copy { color: #c3d6d1; font-size: 11px; line-height: 1.6; }
body.scene-active #scene-hud .scene-mission-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
body.scene-active #scene-hud .scene-mission-steps span { display: grid; gap: 3px; padding: 6px 5px; border-top: 2px solid #5c726d; color: #829b96; font-size: 9px; }
body.scene-active #scene-hud .scene-mission-steps span b { color: #748e88; font-size: 9px; letter-spacing: .08em; }
body.scene-active #scene-hud .scene-mission-steps span.active { border-color: var(--mission-accent); color: #dce9df; background: #ffffff08; }
body.scene-active #scene-hud .scene-mission-steps span.active b { color: var(--mission-accent); }
body.scene-active #scene-hud .scene-mission-steps span.done { border-color: #86c9ad; color: #b9dec8; }
body.scene-active #scene-hud .scene-mission-steps span.done b { color: #86c9ad; }
body.scene-active #scene-hud .scene-mission-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
body.scene-active #scene-hud .scene-mission-grid > div { min-width: 0; padding-top: 6px; border-top: 1px solid #7b9d9230; }
body.scene-active #scene-hud .scene-mission-grid small { display: block; color: #8eaaa5; font-size: 9px; }
body.scene-active #scene-hud .scene-mission-grid strong { display: block; margin-top: 2px; color: #e5ece0; font-size: 11px; overflow-wrap: anywhere; }
body.scene-active #scene-hud .scene-mission-reward { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; align-items: baseline; padding: 8px 0 1px; border-top: 1px solid #7b9d9230; }
body.scene-active #scene-hud .scene-mission-reward span { color: #8eaaa5; font-size: 9px; }
body.scene-active #scene-hud .scene-mission-reward strong { color: #f0d39b; font-size: 11px; }
body.scene-active #scene-hud .scene-mission-reward em { grid-column: 2; color: var(--mission-accent); font-size: 9px; font-style: normal; }
body.scene-active #scene-hud .scene-mission-actions { display: grid; grid-template-columns: 1.15fr .85fr; gap: 6px; }
body.scene-active #scene-hud .scene-mission-actions button { min-height: 42px; padding: 7px 8px; border: 1px solid color-mix(in srgb, var(--mission-accent) 60%, #6d8a7e); background: #1c3b3e; color: #e9f0e7; font-size: 11px; }
body.scene-active #scene-hud .scene-mission-actions button:first-child { background: color-mix(in srgb, var(--mission-accent) 18%, #173139); }
body.scene-active #scene-hud .scene-mission-actions button:disabled { opacity: .52; cursor: default; }
body.scene-active #scene-hud .scene-mission-actions button[data-zone-plan] { background: color-mix(in srgb, var(--mission-accent) 24%, #173139); font-weight: 700; }
body.scene-active #scene-hud .scene-mission-tuning { opacity: .82; }
body.scene-active #scene-hud .scene-mission-tuning button { min-height: 34px; background: #10292f; font-size: 10px; }
body.scene-active #scene-hud .scene-mission-note { color: #9db8b2; font-size: 10px; line-height: 1.5; }

body.scene-active .scene-zone-brief { display: grid; gap: 14px; color: #d9e6df; }
body.scene-active .scene-zone-brief h3 { margin: 0; font-size: 24px; color: #f0f0dc; }
body.scene-active .scene-zone-brief-lead { margin: 0; max-width: 62ch; font-size: 15px; line-height: 1.7; color: #d3e3dc; }
body.scene-active .scene-zone-brief-risk { padding: 12px 14px; border-left: 3px solid #e3ad80; background: #2b2926; }
body.scene-active .scene-zone-brief-risk strong { display: block; margin-bottom: 5px; color: #efc38e; font-size: 12px; letter-spacing: .08em; }
body.scene-active .scene-zone-brief-risk p { margin: 0; color: #d6d1c2; line-height: 1.6; }
body.scene-active .scene-zone-brief ul { display: grid; gap: 8px; margin: 0; padding-left: 20px; color: #bcd1ca; line-height: 1.6; }

body.scene-active #scene-hud .scene-actions .scene-primary-action:not(:disabled) {
  box-shadow: 0 0 0 1px #f1c18f55, 0 0 18px #e4a36f22;
}

body.scene-active #scene-hud .scene-actions .scene-primary-action:not(:disabled):hover {
  background: #ffd09b;
  transform: translateY(-1px);
}

@keyframes scene-feedback-in {
  from { opacity: .2; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  body.scene-active #scene-hud .scene-feedback { animation: none; }
  body.scene-active #scene-hud .scene-actions .scene-primary-action:not(:disabled):hover { transform: none; }
}
