/*! Solar System Repair Co. | Source: https://orbitalforest.com */
/* Solar System Repair Co. hardware UI — option A. Decorative layers never receive input. */
:root {
  --hardware-steel: #205054;
  --hardware-edge: #47736e;
  --hardware-shadow: #07181b;
  --hardware-enamel: #e8dbc0;
  --hardware-glass: #071c20;
  --hardware-rubber: #09292c;
  --hardware-orange: #e78b3c;
  --hardware-bolt: #263b3b;
  --hardware-mint: #89edcb;
  --hardware-amber: #ffc166;
  --hardware-wear: rgba(235, 214, 175, .28);
  --hardware-face:
    radial-gradient(circle at 6% 11%, rgba(250, 221, 163, .19) 0 1px, transparent 2px) 0 0 / 47px 31px,
    radial-gradient(circle at 91% 73%, rgba(4, 19, 20, .45) 0 1px, transparent 2px) 0 0 / 61px 43px,
    linear-gradient(135deg, rgba(255, 246, 211, .13), transparent 25% 72%, rgba(0, 0, 0, .27)),
    linear-gradient(180deg, #315f60, #1a4247 43%, #102d33);
  --hardware-screen:
    linear-gradient(125deg, rgba(211, 253, 239, .075), transparent 25% 72%, rgba(82, 179, 167, .06)),
    linear-gradient(180deg, #0d3031, #071d24 78%, #06171d);
  --hardware-button:
    linear-gradient(180deg, #477076 0%, #2d555a 12%, #183c43 73%, #102d34 100%);
  --hardware-action:
    linear-gradient(180deg, #ffe0a0 0%, #f6ba5f 15%, #df8030 75%, #a85421 100%);
}

/* Two visible screws, an inner crease, and a worn enamel rim give panels depth.
   The same construction also works when the content and size change. */
#game-shell .metal-panel,
#game-shell .dialogue-panel,
#game-shell :is(.crate-panel, .ship-wash-panel, .workshop-inspector),
.game-dialog,
.expanded-map-dialog {
  border: 3px solid #8a9c87;
  border-radius: 14px;
  background: var(--hardware-face);
  color: var(--cream);
  box-shadow:
    0 2px 0 #b6a98c inset,
    0 0 0 2px #08242a inset,
    0 0 0 6px rgba(7, 24, 27, .82) inset,
    0 14px 38px rgba(0, 0, 0, .62),
    0 2px 0 #06161b;
}
#game-shell .metal-panel::before {
  position: absolute;
  inset: 5px;
  z-index: 0;
  border-radius: 9px;
  background:
    radial-gradient(circle at 11px 11px, #142a2b 0 1px, #7e8170 2px 4px, #182b2c 5px, transparent 6px) left top / 30px 30px no-repeat,
    radial-gradient(circle at calc(100% - 11px) 11px, #142a2b 0 1px, #7e8170 2px 4px, #182b2c 5px, transparent 6px) right top / 30px 30px no-repeat,
    linear-gradient(90deg, rgba(235, 221, 188, .62), transparent 30px calc(100% - 30px), rgba(235, 221, 188, .5)) top / 100% 4px no-repeat;
  content: "";
  pointer-events: none;
}
#game-shell .metal-panel::after {
  inset: 8px;
  border: 1px solid rgba(3, 21, 23, .76);
  border-radius: 6px;
  box-shadow: 0 1px rgba(244, 220, 172, .17), inset 0 1px rgba(238, 230, 204, .08);
}

/* A narrow machine rail is enough framing for exploration. */
#game-shell > .top-hud,
#game-shell > .bottom-hud {
  border-color: #a28f69;
  background:
    linear-gradient(90deg, var(--hardware-enamel) 0 8px, transparent 8px calc(100% - 8px), var(--hardware-enamel) calc(100% - 8px)),
    var(--hardware-face);
  box-shadow: inset 0 2px 0 rgba(247, 223, 176, .36), inset 0 -3px 0 #09252b, 0 3px 12px #0008;
  color: var(--cream);
}
#game-shell > .top-hud { border-bottom-width: 3px; }
#game-shell > .bottom-hud { border-top-width: 3px; }
#game-shell .brand-mark {
  border-color: #caab71;
  background: radial-gradient(circle at 35% 25%, #325b5c, #0d282d 70%);
  box-shadow: inset 0 0 0 3px #0a2429, 0 2px 0 #07181b;
  color: var(--hardware-mint);
}
#game-shell .brand-name { color: #f1e4c5; text-shadow: 0 2px 2px #07171a; }
#game-shell .scene-label { border-left-color: #c79b63; color: #a7e2cd; }
#game-shell .credit-balance,
#game-shell .connection-status {
  border: 1px solid #5e796e;
  border-radius: 6px;
  background: var(--hardware-screen);
  box-shadow: inset 0 2px 5px #0008, 0 1px 0 #8a8c6f;
  color: var(--hardware-amber);
  padding: .35rem .55rem;
}
#game-shell .connection-status { color: #d5e2cc; }
#game-shell .connection-status span,
#game-shell .terminal-bar i { border: 1px solid #405a3b; background: #ffc15e; box-shadow: 0 0 8px #ffbb58a8; }

/* Physical switches have a top highlight, a deep well and press travel. */
#game-shell :is(.button, .icon-button, .mission-control, .mission-interact-button,
  .flight-control, .terminal-exit, .mission-dialogue-close, .mission-pagination button,
  .shop-buy-button, .shop-titlebar button, .crate-action, .ship-wash-button),
:is(.game-dialog, .expanded-map-dialog) button,
#game-shell :is(.workshop-inspector, .shop-panel) button {
  border: 2px solid #869282;
  border-radius: 7px;
  background: var(--hardware-button);
  color: #f1e5cc;
  box-shadow: inset 0 2px 0 #91a69666, inset 0 -3px 0 #09292e, 0 3px 0 #071b1f, 0 5px 8px #0006;
  text-shadow: 0 1px 2px #06161b;
  cursor: pointer;
  transition: filter .12s ease, box-shadow .12s ease, transform .12s ease, border-color .12s ease;
}
#game-shell :is(.button-primary, .flight-control.thrust),
#game-shell :is(.mission-interact-button.is-active, .shop-buy-button:not(:disabled):hover),
#game-shell .terminal-actions .button-primary {
  border-color: #f0c27f;
  background: var(--hardware-action);
  color: #291b10;
  text-shadow: 0 1px #ffe4b388;
  box-shadow: inset 0 2px 0 #fff1ca99, inset 0 -3px 0 #a14d20, 0 3px 0 #452919, 0 6px 13px #0008;
}
#game-shell :is(.button, .icon-button, .mission-control, .mission-interact-button, .flight-control,
  .terminal-exit, .mission-dialogue-close, .mission-pagination button, .shop-buy-button,
  .shop-titlebar button, .crate-action, .ship-wash-button):is(:hover, :focus-visible),
:is(.game-dialog, .expanded-map-dialog) button:is(:hover, :focus-visible) {
  filter: brightness(1.15);
  border-color: var(--hardware-amber);
}
#game-shell :is(.button, .icon-button, .mission-control, .mission-interact-button, .flight-control,
  .terminal-exit, .mission-dialogue-close, .mission-pagination button, .shop-buy-button,
  .shop-titlebar button, .crate-action, .ship-wash-button):active,
#game-shell :is(.mission-control, .flight-control).is-active {
  transform: translateY(2px);
  box-shadow: inset 0 3px 8px #000a, 0 1px 0 #071b1f;
}
#game-shell button:disabled { cursor: default; filter: saturate(.5); }
#game-shell :is(button, input):focus-visible,
:is(.game-dialog, .expanded-map-dialog) button:focus-visible { outline: 3px solid #f8d394; outline-offset: 3px; }

/* Mission computer: a steel shell around inset glass and cartridge-like keys. */
#game-shell .mission-computer-card .mission-board,
#game-shell .mission-computer-card .mission-terminal { border-width: 4px; }
#game-shell .mission-board { padding: 1rem; }
#game-shell .mission-board-heading,
#game-shell .shop-titlebar,
#game-shell .terminal-bar,
#game-shell .dialog-titlebar,
.expanded-map-heading {
  border-bottom: 2px solid #0c2b2d;
  background: linear-gradient(180deg, rgba(12, 39, 44, .97), rgba(7, 26, 31, .96));
  box-shadow: 0 2px 0 #72938866;
  color: var(--hardware-amber);
}
#game-shell .mission-board-heading { margin: -.5rem -.5rem .7rem; padding: .55rem .6rem; border-radius: 5px 5px 0 0; }
#game-shell .mission-card {
  border: 2px solid #748879;
  border-radius: 7px;
  background: linear-gradient(180deg, #24494b, #133338);
  box-shadow: inset 0 2px 0 #8cb1a146, inset 0 -3px 0 #071e23, 0 3px 0 #092429;
  color: #f0e3c7;
}
#game-shell .mission-card:hover { background: linear-gradient(180deg, #386062, #193c40); }
#game-shell .mission-card.is-selected {
  border-color: #f5b965;
  background: linear-gradient(180deg, #3c6257, #173b3c);
  box-shadow: inset 4px 0 0 #f6aa49, inset 0 2px 0 #b2d4b276, 0 3px 0 #5b331c, 0 0 12px #f5a43a44;
}
#game-shell .mission-terminal .terminal-screen,
#game-shell .call-copy.dialogue-panel,
#game-shell .video-terminal,
#game-shell .mission-facts div {
  background: var(--hardware-screen);
  box-shadow: inset 0 3px 9px #0009, inset 0 0 0 2px #062126;
}
#game-shell .call-copy.dialogue-panel {
  border: 3px solid #0a2b31;
  border-radius: 3px 3px 10px 10px;
  padding: 18px;
  box-shadow: inset 0 3px 12px #000a, inset 0 0 0 1px #66847555;
}
#game-shell .call-copy .mission-facts div { border: 1px solid #536f68; border-radius: 5px; padding: .5rem; }
#game-shell .caller-portrait { border-color: #978968; }
#game-shell .shop-panel { border-width: 4px; }
#game-shell .shop-titlebar { padding: .8rem 1rem; }
#game-shell :is(.shop-card, .collection-card) {
  border: 2px solid #537470;
  border-radius: 8px;
  background: var(--hardware-screen);
  box-shadow: inset 0 2px 5px #0009, 0 2px 0 #08282b;
}
#game-shell .shop-wallet,
#game-shell .shop-item-badge,
#game-shell .collection-card-art {
  border: 2px solid #8a977d;
  border-radius: 7px;
  background: var(--hardware-screen);
  box-shadow: inset 0 3px 7px #0008, 0 2px 0 #12373b;
}

/* Inventory is a removable cassette; prompts and objectives are smaller tags. */
#game-shell .mission-inventory {
  border-width: 3px;
  padding: .55rem .65rem .6rem;
  background: var(--hardware-face);
}
#game-shell .inventory-slot,
#game-shell .mission-souvenir-pocket {
  border: 2px solid #557770;
  border-radius: 6px;
  background: var(--hardware-screen);
  box-shadow: inset 0 3px 8px #0009, 0 2px 0 #09272c;
}
#game-shell .inventory-slot.has-item { border-color: #87bba4; }
#game-shell .inventory-slot.is-selected { border-color: #f1bc75; background: #24483d; }
#game-shell .mission-inventory.is-attention,
#game-shell .inventory-slot.is-attention { border-color: #f9bd6c; }
#game-shell :is(.mission-objective-ribbon, .mission-interact-prompt, .workshop-interact-prompt,
  .flight-tip, .workshop-inspector-bar, .workshop-inspector-footer, .backyard-progress) {
  border: 2px solid #6c8d7c;
  border-radius: 7px;
  background: var(--hardware-screen);
  box-shadow: inset 0 2px 7px #0008, 0 0 0 3px #214b4b, 0 4px 10px #0008;
  color: #e8e0c9;
}
#game-shell .mission-interact-prompt.is-ready,
#game-shell .workshop-interact-prompt.is-ready { border-color: #d59657; }
#game-shell .mission-interact-prompt kbd,
#game-shell .flight-tip kbd {
  border: 1px solid #edba77;
  border-radius: 4px;
  background: var(--hardware-action);
  color: #24180e;
  box-shadow: 0 2px 0 #5d331a;
}

/* Conversations are screens, not floating translucent cards. Puzzle panels retain
   their full-width mechanisms and all existing feedback/fit logic. */
#game-shell .dialogue-panel {
  border: 4px solid #9ca48c;
  border-radius: 13px;
  background:
    linear-gradient(135deg, #e4d5b7 0 16px, transparent 16px calc(100% - 16px), #d8c7aa calc(100% - 16px)) top / 100% 18px no-repeat,
    var(--hardware-face);
  box-shadow: 0 2px 0 #e9d7ad inset, 0 0 0 5px #09282d inset, 0 18px 50px #000b;
}
#game-shell :is(.dialogue-console, .backyard-activity-panel).dialogue-panel {
  width: min(860px, calc(100% - 24px));
}
#game-shell :is(.dialogue-console, .backyard-activity-panel).is-conversation-mode {
  top: auto;
  bottom: clamp(8px, 2vh, 20px);
  transform: translateX(-50%) scale(var(--panel-fit, 1));
  transform-origin: bottom center;
}
#game-shell .dialogue-panel .dialogue-portrait {
  border: 4px solid #879788;
  border-radius: 8px;
  background: var(--hardware-screen);
  box-shadow: 0 0 0 3px #09252b, inset 0 3px 12px #000b, 0 3px 0 #b9ab89;
}
#game-shell .dialogue-panel :is(.dialogue-line, .call-line, .backyard-activity-copy, #question-prompt) {
  padding: .5rem .7rem;
  border: 1px solid #436762;
  border-radius: 5px;
  background: var(--hardware-screen);
  box-shadow: inset 0 3px 8px #0009;
  color: #ecf5de;
}
#game-shell .dialogue-panel .dialogue-line:empty { display: none; }
#game-shell .dialogue-panel :is(.dialogue-choice-button, .answer-button, .backyard-activity-button, .next-button):not(.is-correct, .is-wrong) {
  border: 2px solid #7e9b89;
  border-radius: 7px;
  background: var(--hardware-button);
  box-shadow: inset 0 2px 0 #a3c3ae55, inset 0 -3px 0 #09282d, 0 3px 0 #061d22;
  color: #f2e8d0;
  text-shadow: 0 1px 2px #0009;
}
#game-shell .dialogue-panel :is(.dialogue-choice-button, .answer-button, .backyard-activity-button):not(.is-correct, .is-wrong):is(:hover, :focus-visible) { border-color: #ffc779; background: linear-gradient(#4b6e68, #224347); }
#game-shell .dialogue-panel .button-primary { background: var(--hardware-action); color: #291b10; }
#game-shell .dialogue-panel.is-puzzle-success { border-color: #baff9d; }

/* Flight uses compact bolt-on instruments, retaining the existing layout and
   real speed/route values rather than the illustration's example scale. */
#game-shell :is(.flight-readout, .flight-meters, .system-map, .flight-emergency) { border-width: 3px; }
#game-shell .flight-readout { padding: .75rem 1rem; }
#game-shell .flight-meters { padding: .75rem .85rem; }
#game-shell .flight-data-grid div,
#game-shell .flight-meters .meter,
#game-shell #system-map-canvas,
#game-shell .cockpit-portrait-window {
  border: 2px solid #557b74;
  border-radius: 5px;
  background: var(--hardware-screen);
  box-shadow: inset 0 3px 8px #000b, 0 1px 0 #afaa82;
}
#game-shell .flight-data-grid div { padding: .24rem .38rem; }
#game-shell .flight-data-grid div:nth-child(3) { position: relative; min-height: 58px; padding-right: 53px; }
#game-shell .flight-data-grid div:nth-child(3)::before {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 40px;
  height: 40px;
  border: 3px solid #9a9a7d;
  border-radius: 50%;
  background: conic-gradient(from 230deg, #73d8b2, #e6b057 55%, #d16f3f 72%, transparent 72% 100%), #102a2d;
  box-shadow: 0 0 0 3px #062025, inset 0 0 0 5px #0c292d, inset 0 3px 7px #0009;
  content: "";
  pointer-events: none;
}
#game-shell .flight-data-grid div:nth-child(3)::after {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 2px;
  height: 15px;
  border-radius: 2px;
  background: #f9e4b4;
  box-shadow: 0 0 2px #000;
  content: "";
  transform: translateY(-12px) rotate(var(--speed-angle, -130deg));
  transform-origin: 50% 12px;
  pointer-events: none;
}
#game-shell .flight-data-grid div:nth-child(3) strong { white-space: normal; font-size: .72rem; }
#game-shell .flight-meters .meter { height: 12px; border-radius: 4px; }
#game-shell .flight-meters .meter i { border-radius: 2px; box-shadow: inset 0 1px #fff5, 0 0 8px currentColor; }
#game-shell .outer-cruise-indicator {
  border: 2px solid #b7793a;
  border-radius: 6px;
  background: linear-gradient(#f3bb67, #cc752f);
  color: #301e12;
  box-shadow: inset 0 2px #ffe7a988, 0 2px 0 #482918;
  text-shadow: none;
  font-weight: 900;
}
#game-shell.is-outer-cruise .flight-readout { border-color: #e7b470; }
#game-shell .cockpit-portrait {
  border: 3px solid #939c83;
  border-radius: 8px;
  background: var(--hardware-face);
  box-shadow: inset 0 0 0 2px #08282d, 0 4px 0 #071b20, 0 9px 17px #0009;
}
#game-shell .cockpit-portrait figcaption { color: #f0e4c7; }
#game-shell .flight-control { border-radius: 8px; }

/* Minigames inherit the casing, while their painted board/canvas stays intact. */
#game-shell :is(.crate-panel, .ship-wash-panel) { border-width: 4px; padding: clamp(10px, 2vw, 20px); }
#game-shell :is(.crate-header, .ship-wash-header) {
  width: 100%;
  border-bottom: 2px solid #6b8e81;
  padding-bottom: .55rem;
  color: #f3e5c8;
}
#game-shell :is(.crate-rack, .ship-wash-canvas, .beach-fishing-visual) {
  border-color: #8d9f82;
  background-color: #0b2a2e;
  box-shadow: inset 0 4px 15px #000b, 0 2px 0 #6d7e6c;
}
#game-shell :is(.crate-action, .ship-wash-button) { min-height: 44px; }
#game-shell :is(.crate-guide, .ship-wash-guide) { color: #e4dcc4; }

/* The report is still paper. A printer mouth behind its top edge gives it a
   place in the same workshop hardware family without coating the receipt. */
#game-shell .debrief-panel.printer-paper {
  border: 0;
  border-radius: 0;
  background: #f0ecdf;
  color: #171713;
  box-shadow: 0 -10px 0 #143b3f, 0 -14px 0 #8b9c86, 0 -18px 0 #123034,
    0 14px 35px #0009;
}
#game-shell .printer-paper::before,
#game-shell .printer-paper::after { box-shadow: none; }
#game-shell .printer-paper .button { border-radius: 2px; background: #f0ecdf; color: #171713; box-shadow: 0 2px 0 #6d6b61; text-shadow: none; }
#game-shell .printer-paper .button-primary { background: #202521; color: #fff6df; }

/* Remaining overlays: maps, settings, status and title-card instruments. */
.game-dialog,
.expanded-map-dialog { border-width: 4px; background: var(--hardware-face); }
.game-dialog .dialog-body,
.expanded-map-dialog #expanded-map-canvas,
.game-dialog .control-help {
  border: 2px solid #698d7b;
  border-radius: 7px;
  background: var(--hardware-screen);
  box-shadow: inset 0 4px 12px #0009;
}
.game-dialog .dialog-body { margin: .5rem; }
.game-dialog .setting-row { border-color: #4e7166; }
.game-dialog .setting-row select {
  flex: none;
  width: 148px;
  max-width: 50%;
  min-height: 44px;
  padding: 8px 10px;
  border: 2px solid #9e9877;
  border-radius: 5px;
  background: #102d32;
  color: #fff0d0;
  color-scheme: dark;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
  box-shadow: inset 0 3px 8px #0008, 0 2px 0 #7e8e78;
}
.game-dialog .setting-row select:focus-visible { outline: 3px solid #f8d394; outline-offset: 3px; }
/* Keep the controls full size as settings grow, including short phone screens. */
#settings-dialog {
  width: min(560px, calc(100vw - 24px));
  height: min(640px, calc(100dvh - 24px));
  overflow: hidden;
}
#settings-dialog form { height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
#settings-dialog .dialog-body { min-height: 0; overflow: auto; overscroll-behavior: contain; }
#settings-dialog .dialog-titlebar button { width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
#settings-dialog .settings-footer { padding: 0 20px 12px; }
#settings-dialog .dialog-close { min-height: 44px; margin-top: 0; }
@media (max-width: 600px) {
  #settings-dialog .dialog-body { padding: 12px; }
  #settings-dialog .setting-row { gap: 12px; }
  #settings-dialog .settings-footer { padding: 0 16px 8px; }
}
.game-dialog .setting-row input[type="checkbox"] {
  position: relative;
  flex: none;
  appearance: none;
  width: 52px;
  height: 30px;
  margin: 0;
  border: 2px solid #9e9877;
  border-radius: 6px;
  background: linear-gradient(180deg, #17383d, #091f26);
  box-shadow: inset 0 3px 8px #000b, 0 2px 0 #7e8e78;
  cursor: pointer;
}
.game-dialog .setting-row input[type="checkbox"]::before {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 22px;
  border: 1px solid #d0baa0;
  border-radius: 3px;
  background: linear-gradient(#f2e4c9, #a6ac95);
  box-shadow: 1px 2px 2px #0007;
  content: "";
  transition: transform .14s ease;
}
.game-dialog .setting-row input[type="checkbox"]:checked {
  border-color: #f1b968;
  background: linear-gradient(#996030, #d99040);
}
.game-dialog .setting-row input[type="checkbox"]:checked::before { transform: translateX(23px); }
.game-dialog .setting-row input[type="checkbox"]:focus-visible { outline: 3px solid #f8d394; outline-offset: 3px; }
.expanded-map-dialog { padding: 18px; }
.expanded-map-heading { padding: .25rem .5rem .6rem; }
.expanded-map-dialog .map-system-tabs button[aria-pressed="true"] { border-color: #f3b86e; background: #30534d; box-shadow: inset 0 -3px #0b2c2e, 0 0 0 2px #ad7f4366; }
.toast {
  border: 2px solid #a7a184;
  border-radius: 8px;
  background: var(--hardware-screen);
  box-shadow: 0 0 0 4px #1d4949, 0 8px 18px #000a;
}
.mission-launch-card .launch-loading-track { border: 2px solid #b7a37e; border-radius: 5px; background: #0b282d; box-shadow: inset 0 2px 5px #000b, 0 0 0 3px #255456; }
.mission-launch-card .launch-loading-fill { background: linear-gradient(#f9d38b, #d47731); box-shadow: 0 0 8px #f8ad5988; }
.mission-launch-card .launch-caption {
  right: auto;
  width: max-content;
  max-width: 86%;
  padding: clamp(12px, 2vw, 24px);
  border: 3px solid #a4a184;
  border-radius: 10px;
  background: var(--hardware-screen);
  box-shadow: inset 0 0 0 4px #21494a, inset 0 3px 8px #0009, 0 11px 35px #000b;
  text-shadow: 0 2px 5px #000;
}
.mission-launch-card .launch-caption h1 { margin: 5px 0; }

/* Machine faces keep their individual puzzle mechanics and gain shared metal,
   glass and inset controls. */
#game-shell :is(.concept-board, .supply-math-puzzle, .pressure-puzzle, .packing-puzzle, .signal-puzzle,
  .easy-repair-puzzle, .mission-math-puzzle) {
  border-color: #9aa78b;
  border-width: 3px;
  background: var(--hardware-face);
  box-shadow: inset 0 0 0 4px #0b2b30, inset 0 0 0 6px #8a9a7b66, 0 8px 20px #0009;
}
#game-shell :is(.concept-machine-header, .math-machine-header, .signal-board, .pressure-gauge,
  .math-number-rail, .math-panel-plan, .tea-machine, .packing-board) {
  border-color: #77978a;
  background-color: #0a2930;
  box-shadow: inset 0 3px 10px #0009, 0 2px 0 #092329;
}
#game-shell :is(.concept-board, .supply-math-puzzle, .pressure-puzzle, .packing-puzzle,
  .signal-puzzle, .easy-repair-puzzle, .mission-math-puzzle) button:not(:disabled, .is-correct, .is-wrong, .is-selected) {
  box-shadow: inset 0 2px 0 #e5f6df26, inset 0 -3px 0 #071e23, 0 2px 0 #0a252a;
}
#game-shell :is(.concept-board, .supply-math-puzzle, .pressure-puzzle, .packing-puzzle,
  .signal-puzzle, .easy-repair-puzzle, .mission-math-puzzle) button:active { transform: translateY(1px); }

@media (max-width: 700px) {
  #game-shell .metal-panel::before { opacity: .55; }
  #game-shell .mission-board { padding: .6rem; }
  #game-shell .dialogue-panel { border-width: 3px; }
  #game-shell .flight-meters { padding: .55rem .6rem; }
  .expanded-map-dialog { padding: 10px; }
  #game-shell .flight-data-grid div:nth-child(3) { min-height: 0; padding-right: .38rem; }
  #game-shell .flight-data-grid div:nth-child(3)::before,
  #game-shell .flight-data-grid div:nth-child(3)::after { content: none; }
}
@media (max-height: 500px) and (orientation: landscape) {
  #game-shell :is(.dialogue-console, .backyard-activity-panel).is-conversation-mode { bottom: 4px; }
  #game-shell :is(.crate-panel, .ship-wash-panel) { padding: 8px; }
  #game-shell .mission-inventory { border-width: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  #game-shell :is(button, .metal-panel) { transition: none; }
}
