:root {
  color-scheme: dark;
  --page: #10131d;
  --ink: #fff3e1;
  --muted: #bec1cf;
  --line: #34394a;
  --panel: #181d2b;
  --sun: #ffb789;
  --dark: #28170f;
  --page-gutter: max(32px, calc((100% - 1232px) / 2));
  --masthead-height: 82px;
  font: 16px/1.45 system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { position: relative; margin: 0; background: var(--page); color: var(--ink); padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 2px solid #fff3e1; outline-offset: 3px; z-index: 4; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.wrap { width: min(1232px, calc(100% - 64px)); margin-inline: auto; }
.masthead { display: flex; justify-content: space-between; align-items: center; min-height: var(--masthead-height); gap: 12px; }
.wordmark { display: flex; align-items: center; gap: 14px; }
.wordmark .game-brand { font-size: clamp(1.48rem, 3vw, 2rem); font-weight: 720; letter-spacing: -.055em; }
.sub-brand { font-size: clamp(1.48rem, 3vw, 2rem); font-weight: 720; letter-spacing: -.055em; text-decoration: none; }
.brand-orbit { width: 25px; aspect-ratio: 1; background: var(--sun); border-radius: 50%; display: grid; place-items: center; color: #252131; }
.brand-orbit::after { content: ''; width: 33px; height: 11px; border: 2px solid currentColor; border-radius: 50%; transform: rotate(-35deg); }
.header-link { color: var(--muted); font-weight: 600; font-size: .88rem; text-decoration: none; padding-block: 12px; }
.header-link:hover { color: var(--sun); }
.manual-shortcut { position: absolute; top: env(safe-area-inset-top); right: calc(var(--page-gutter) + env(safe-area-inset-right)); height: var(--masthead-height); display: flex; align-items: center; }
#return-to-game { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; color: var(--sun); }
#game {
  --workshop-width: clamp(282px, 31%, 356px);
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) var(--workshop-width);
  min-height: min(700px, calc(100dvh - 106px)); overflow: hidden;
  border: 1px solid var(--line); border-radius: 20px; outline: none; isolation: isolate;
  background: #101624; --planet: #87dfd7;
}
#game[data-world='1'] { --planet: #ffac84; }
#game[data-world='2'] { --planet: #f4d293; }
.flight { min-width: 0; display: grid; grid-template-rows: 79px minmax(330px, 1fr) 76px; }
.telemetry { display: flex; align-items: center; gap: 28px; padding: 0 24px; z-index: 2; background: #151a28; border-bottom: 1px solid var(--line); }
.stat { min-width: 116px; display: flex; align-items: center; gap: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat strong { font-size: clamp(1.2rem, 2.8vw, 1.65rem); line-height: 1; letter-spacing: -.045em; }
.stat-label { display: block; color: var(--muted); font-size: .78rem; font-weight: 620; margin-bottom: 3px; }
.energy-icon, .rate-icon { display: grid; place-items: center; border: 1px solid #51423d; color: var(--sun); background: #2b2630; width: 36px; aspect-ratio: 1; border-radius: 10px; font-size: 1.25rem; }
.rate-icon { color: var(--planet); background: #222c35; border-color: #3a4855; }
.unit { color: var(--muted); font-size: .8rem; }
.pause-button { margin-left: auto; min-height: 44px; min-width: 44px; border: 1px solid #41475a; background: #202636; border-radius: 10px; padding: 0 12px; font-size: .85rem; display: flex; align-items: center; justify-content: center; gap: 7px; }
.pause-button:hover { background: #2c3548; }
.observation { position: relative; isolation: isolate; overflow: hidden; min-width: 0; touch-action: none; user-select: none; background: radial-gradient(ellipse at 58% 45%, #203447, #101624 68%); --globe-width: min(59%, 430px, max(230px, calc(100dvh - 280px))); --globe-x: 53%; --globe-y: 47%; }
.planet-target { position: absolute; z-index: 2; width: var(--globe-width); aspect-ratio: 1; border-radius: 50%; top: var(--globe-y); left: var(--globe-x); transform: translate(-50%,-50%); touch-action: none; border: 0; background: transparent; padding: 0; }
#starfield, #effects { position: absolute; inset: 0; display: block; width: 100%; height: 100%; pointer-events: none; }
#effects { z-index: 3; overflow: hidden; }
#globe { position: relative; z-index: 1; display: block; width: 100%; height: auto; border-radius: 50%; filter: drop-shadow(0 0 20px #619fa14d); pointer-events: none; }
[data-world='1'] #globe { filter: drop-shadow(0 0 21px #ce785b5e); }
[data-world='2'] #globe { filter: drop-shadow(0 0 21px #c48b4b55); }
[data-boost='true'] #globe { filter: drop-shadow(0 0 23px #ffbc73bd); }
.planet-ring { display: none; position: absolute; top: 46%; left: -21%; width: 142%; height: 31%; border: clamp(4px, .75vw, 11px) double #a88766; border-radius: 50%; transform: rotate(-15deg); box-shadow: 0 0 8px #f7c99155, inset 0 0 7px #f7c99139; pointer-events: none; }
[data-world='2'] .planet-ring { display: block; }
.planet-ring.front { z-index: 2; clip-path: inset(51% -8% -16% -8%); border-color: #dac2a0; }
.stage-glyph { position: absolute; top: 22px; left: 23px; color: #b6bfd955; pointer-events: none; }
.stage-glyph svg { stroke: currentColor; }
.tap-gain { position: absolute; transform: translate(-50%, -50%); font-size: 1.32rem; font-weight: 850; color: #fff3e1; text-shadow: 0 1px 5px #081218, 0 0 9px #081218; animation: gather .62s cubic-bezier(.16,.76,.35,1) both; }
.surge-gain { color: #aff2dc; font-size: 1.52rem; }
@keyframes gather { from { opacity: 1; translate: 0 7px; scale: .86; } 30% { scale: 1; } to { opacity: 0; translate: 0 -43px; } }
.orbit-burst { position: absolute; border: 2px solid var(--planet); border-radius: 50%; aspect-ratio: 1; translate: -50% -50%; animation: burst 1.05s ease-out both; }
.record-burst { border: 4px double var(--sun); }
@keyframes burst { from { opacity: .8; scale: .86; } to { opacity: 0; scale: 2.6; } }
.orbit-spark { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--sun); animation: spark .82s cubic-bezier(.13,.74,.3,1) both; }
@keyframes spark { from { opacity: 1; } to { translate: var(--dx) var(--dy); opacity: 0; } }
[data-motion='false'] .tap-gain { animation: none; }
.world-label { position: absolute; bottom: 25px; left: 26px; pointer-events: none; }
.world-label span { color: var(--planet); font-size: .83rem; font-weight: 650; }
.world-label h2 { font-size: clamp(1.8rem, 5vw, 3.75rem); line-height: .96; letter-spacing: -.065em; margin-top: 5px; }
.beacon-flight { display: none; position: absolute; z-index: 4; left: var(--globe-x); top: var(--globe-y); width: var(--globe-width); aspect-ratio: 1; transform: translate(-50%, -50%); color: #fff3cd; pointer-events: none; }
[data-mode='won'] .beacon-flight { display: block; }
.beacon-orbit { position: absolute; inset: 3% -29%; border: 1px solid #ffdc976e; border-radius: 50%; transform: rotate(-32deg) scaleY(.55); box-shadow: inset 0 0 12px #f4c48225, 0 0 15px #f4c48244; }
.beacon-craft { position: absolute; left: 113%; top: 20%; width: clamp(24px, 12%, 43px); aspect-ratio: 36 / 28; filter: drop-shadow(0 0 7px #ffb864); }
.beacon-craft svg { position: absolute; width: 100%; }
[data-motion='true'][data-mode='won'] .beacon-craft { animation: deploy 1s cubic-bezier(.27,.64,.33,1) both; }
@keyframes deploy {
  0% { left: 52%; top: 57%; opacity: .3; scale: .35; }
  30% { left: 77%; top: 50%; opacity: 1; scale: 1.12; }
  67% { left: 108%; top: 35%; }
  100% { left: 113%; top: 20%; scale: 1; }
}
.start-panel { position: absolute; bottom: 25px; right: 25px; z-index: 4; text-align: right; }
.start-panel p { margin-bottom: 11px; color: var(--muted); font-size: .85rem; }
.primary { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 49px; min-width: 116px; padding: 0 20px; color: var(--dark); border: 1px solid transparent; border-radius: 11px; background: var(--sun); font-weight: 780; }
.primary:hover { background: #ffd1b3; }
.primary span { font-size: .78em; }
.harvest-hint, .feedback { pointer-events: none; position: absolute; bottom: 27px; right: 23px; z-index: 3; color: #ecedf2; font-size: .87rem; text-align: right; max-width: 56%; }
.feedback { bottom: 67px; padding: 3px 6px; border-radius: 5px; background: #101624da; color: var(--planet); font-weight: 650; }
.feedback:empty { padding: 0; }
kbd { font: inherit; padding: 2px 6px; border: 1px solid #535766; border-radius: 4px; background: #202635; }
.orbit-rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border-top: 1px solid var(--line); background: var(--line); }
.world-tab { border: 0; border-top: 2px solid transparent; display: flex; text-align: left; align-items: center; justify-content: center; gap: 11px; padding: 5px; min-width: 0; min-height: 44px; background: #181d2a; }
.world-tab:hover { background: #253044; }
.world-tab[aria-current='true'] { border-top-color: var(--planet); background: #222a3b; }
.world-tab b, .world-tab small { display: block; }
.world-tab b { font-size: .92rem; }
.world-tab small { color: var(--muted); font-size: .71rem; white-space: nowrap; }
.mini-world { display: block; width: 28px; flex: 0 0 auto; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 31% 26%, #91dfd2, #427983 56%, #162536 79%); }
[data-index='1'] .mini-world { background: radial-gradient(circle at 31% 26%, #ffb68f, #a05249 56%, #382432 79%); }
[data-index='2'] .mini-world { background: radial-gradient(circle at 31% 26%, #f8d8a1, #94715a 56%, #312738 79%); }
.world-tab[aria-disabled='true'] .mini-world { filter: grayscale(.65) brightness(.78); }
.workshop { min-width: 0; display: flex; flex-direction: column; gap: 18px; border-left: 1px solid var(--line); padding: 25px 20px 20px; background: var(--panel); }
.workshop-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.workshop h2 { font-size: 1.36rem; letter-spacing: -.04em; line-height: 1.1; }
.workshop p { color: var(--muted); font-size: .82rem; margin-top: 4px; }
.purchase-size { display: grid; grid-template-columns: repeat(3, 44px); border-radius: 10px; background: #101725; box-shadow: inset 0 0 0 1px #383e50; }
.purchase-size button { min-height: 44px; padding: 0 2px; color: var(--muted); font-size: .79rem; border: 1px solid transparent; border-radius: 8px; background: transparent; }
.purchase-size button[aria-pressed='true'] { color: var(--sun); background: #322833; border-color: #9d725a; font-weight: 720; }
.energy-icon svg, .rate-icon svg, .upgrade-icon svg { width: 20px; height: 20px; }
.pause-button svg { width: 16px; height: 16px; }
.network-map { margin-top: auto; padding: 12px; border: 1px solid #3d4658; border-radius: 12px; background: #131925; }
.network-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 3px 8px; margin-bottom: 5px; }
.network-title h3 { font-size: .91rem; }
.network-title > span { color: var(--planet); font-size: .76rem; }
.network-list { margin: 0; padding: 0; list-style: none; }
.network-list li { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: start; padding: 4px 0 4px 15px; font-size: .82rem; }
.network-list li::before { content: ''; position: absolute; top: 10px; width: 6px; height: 6px; border: 1px solid #aeb8cc; border-radius: 50%; }
.network-list li::after { content: ''; position: absolute; left: 2.5px; top: 16px; height: calc(100% - 6px); border-left: 1px dashed #68758a; }
.network-list li:last-child::after { content: none; }
.network-list li[data-online='true']::before { border-color: #94e5ce; background: #94e5ce; box-shadow: 0 0 7px #94e5ce65; }
.network-list li b { grid-column: 2; grid-row: 1; color: var(--muted); font-weight: 550; }
.network-list li[data-online='true'] b { color: #a6e6d3; }
.network-list small { grid-column: 1 / -1; color: var(--muted); font-size: .73rem; }
.upgrade-list { display: grid; gap: 9px; }
.upgrade { display: grid; grid-template-columns: 39px minmax(0, 1fr) auto; gap: 2px 9px; align-items: center; width: 100%; min-height: 70px; padding: 9px; text-align: left; background: #212838; border: 1px solid #3b4357; border-radius: 11px; }
.upgrade:hover, .operation:hover { border-color: #858da0; }
.upgrade[data-ready='true'] { border-color: #b68267; background: linear-gradient(117deg, #302a35, #3e2e34); box-shadow: inset 2px 0 var(--sun); }
.upgrade-icon { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 8px; background: #131b29; color: var(--planet); }
.upgrade-copy b, .upgrade-copy small { display: block; }
.upgrade-copy b { font-size: .94rem; line-height: 1.2; }
.upgrade-copy small, .upgrade-details { color: var(--muted); font-size: .74rem; }
.upgrade-details { grid-column: 2 / -1; line-height: 1.15; }
.upgrade-price { color: var(--sun); text-align: right; font-size: .84rem; font-weight: 730; white-space: nowrap; font-variant-numeric: tabular-nums; }
.world-operation { display: grid; gap: 7px; }
.operation { min-height: 44px; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left; padding: 6px 11px; border: 1px solid #5b6275; border-radius: 9px; background: #202736; font-size: .88rem; }
.operation small { display: block; color: var(--muted); font-size: .73rem; }
.operation[data-ready='true'] { background: var(--sun); color: var(--dark); border-color: var(--sun); }
.operation[data-ready='true'] small { color: #4a2d24; }
.operation[data-surge='true'] { position: relative; border-color: #83bcae; background: #1b3238; }
.operation[data-surge='true'] small { color: #aff2dc; }
.operation[data-surge='true']::after { content: ''; position: absolute; inset: auto 8px 0; height: 2px; background: linear-gradient(90deg, #aff2dc var(--surge-fill), transparent var(--surge-fill)); pointer-events: none; }
#route-diagram { display: flex; gap: 3px; }
#route-diagram i { width: 7px; height: 17px; border-radius: 2px; background: #ffd2a9; }
#route-diagram i:nth-child(n + 3) { background: #ad7a91; }
.objective { padding: 14px 0 1px; border-top: 1px solid var(--line); }
.objective-label { display: flex; align-items: center; gap: 10px; }
.objective h3 { font-size: .95rem; line-height: 1.15; }
.objective-mark { color: var(--sun); font-size: 1.28rem; }
.objective progress { width: 100%; height: 5px; appearance: none; border: 0; border-radius: 4px; overflow: hidden; display: block; margin-top: 12px; background: #363e52; }
progress::-webkit-progress-bar { background: #363e52; }
progress::-webkit-progress-value { background: var(--sun); }
progress::-moz-progress-bar { background: var(--sun); }
.objective .launch { margin-top: 9px; }
.overlay { position: absolute; z-index: 8; inset: 0; display: grid; justify-items: center; align-items: start; padding: clamp(19px, 8vh, 68px) 12px 12px; background: #0c0f1bb3; }
.overlay-panel { width: min(100%, 410px); max-height: min(calc(100dvh - 110px), 100%); overflow: auto; padding: 24px; border: 1px solid #65718c; border-radius: 17px; text-align: center; background: #1b2233; box-shadow: 0 22px 65px #070914bb; }
.overlay-panel:focus { outline: none; }
.flight-emblem { display: none; margin: 0 auto 10px; color: var(--sun); }
[data-mode='won'] .overlay { left: auto; width: var(--workshop-width); background: #161a27; border-left: 1px solid var(--line); align-items: center; padding: 16px; }
[data-mode='won'] .overlay-panel { border-color: #9e725e; background: linear-gradient(152deg, #302735, #201f2c 60%); }
[data-mode='won'] .flight-emblem { display: block; }
[data-motion='true'][data-mode='won'] .overlay-panel { animation: result-in .43s cubic-bezier(.12,.79,.27,1) both; }
@keyframes result-in { from { opacity: .14; translate: 0 9px; } to { opacity: 1; translate: 0 0; } }
.overlay-kicker { color: var(--sun); font-size: .82rem; font-weight: 700; }
.overlay h2 { font-size: clamp(1.6rem, 5vw, 2.7rem); line-height: 1.04; letter-spacing: -.055em; margin: 5px 0 8px; }
.overlay p { color: var(--muted); margin: 0 0 15px; font-size: .9rem; }
.overlay-summary { display: flex; justify-content: center; gap: 15px; color: var(--muted); font-size: .82rem; margin-bottom: 15px; }
.overlay-summary b { color: var(--ink); }
.settings, .pause-links { margin-top: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.settings button, .pause-links button { min-height: 44px; padding: 4px 5px; background: #252e40; border: 1px solid #4f5970; border-radius: 8px; font-size: .83rem; }
.setting-state { color: var(--muted); }
.setting-state::before { content: ' · '; }
.settings button[aria-pressed='true'] .setting-state { color: #ffd0ac; }
.pause-links button { background: transparent; }
.manual { max-width: 1000px; margin-block: 72px 64px; scroll-margin-top: 20px; }
.manual-intro { display: grid; padding: 27px 0 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.manual-intro h1, .prose h1 { font-size: clamp(2.2rem, 5vw, 4.1rem); line-height: .96; letter-spacing: -.06em; }
.manual p, .prose p { color: #d3d4de; line-height: 1.65; }
.manual-intro p { font-size: clamp(1.02rem, 1.65vw, 1.21rem); max-width: 640px; }
.manual-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 65px); padding: 38px 0; }
.manual-body h2, .prose h2 { font-size: clamp(1.37rem, 3vw, 1.86rem); line-height: 1.15; letter-spacing: -.039em; margin: 0 0 15px; }
.manual-body p + p { margin-top: 14px; }
.manual-body table { width: 100%; margin-block: 14px; border-collapse: collapse; color: #d3d4de; font-size: .9rem; }
.manual-body :is(th, td) { padding: 6px; border-bottom: 1px solid var(--line); text-align: left; }
.manual-body table + p { margin-top: 14px; }
.language-nav { max-width: 1000px; display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; margin-top: 12px; color: var(--muted); font-size: .88rem; }
.language-nav a { display: inline-flex; min-height: 44px; align-items: center; text-underline-offset: .25em; }
.language-nav a[aria-current] { color: var(--sun); }
.workshop :is(h2, h3, button, small), .overlay-panel { overflow-wrap: anywhere; }
#route-diagram, .launch strong { flex: none; }
.prose { max-width: 730px; min-height: 65dvh; padding-block: 38px 65px; }
.prose h1 { margin-bottom: 25px; }
.prose h2 { margin-top: 26px; margin-bottom: 8px; }
.prose p + p { margin-top: 12px; }
.prose a { color: var(--sun); }
.site-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--line); color: var(--muted); padding-block: 16px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.site-footer a { padding-block: 10px; text-decoration: none; }
.site-footer a:hover { color: var(--sun); }
@media (max-width: 790px) {
  :root { --page-gutter: 18px; --masthead-height: 64px; }
  .wrap { width: calc(100% - 36px); }
  .flight { grid-template-rows: 67px minmax(330px, 1fr) 66px; }
  .telemetry { padding-inline: 14px; gap: 13px; }
  .stat { min-width: 83px; gap: 7px; }
  .energy-icon, .rate-icon { width: 29px; }
  .pause-word { display: none; }
  .world-tab { gap: 6px; }
  .mini-world { width: 21px; }
  .world-tab small { font-size: .65rem; }
}
@media (max-width: 660px) and (orientation: portrait) {
  :root { --page-gutter: 14px; --masthead-height: 52px; }
  .wrap { width: calc(100% - 20px); }
  .masthead { padding-inline: 4px; }
  .wordmark { gap: 10px; }
  .brand-orbit { width: 19px; }
  .brand-orbit::after { width: 26px; height: 9px; }
  #game { grid-template-columns: minmax(0, 1fr); min-height: 0; border-radius: 14px; }
  .flight { --scene-height: clamp(204px, 34dvh, 356px); grid-template-rows: 52px var(--scene-height) 49px; }
  .observation { --globe-width: min(62%, 262px, calc(var(--scene-height) - 48px)); --globe-x: 51%; --globe-y: calc((100% - 34px) / 2); }
  .stage-glyph { top: 13px; left: 11px; }
  .stage-glyph svg { width: 31px; height: 31px; }
  .world-label { display: flex; flex-direction: row-reverse; align-items: baseline; gap: 8px; bottom: 9px; left: 11px; }
  .world-label h2 { font-size: clamp(1.48rem, 5vw, 2rem); margin: 0; }
  .world-label span { font-size: .73rem; }
  .start-panel { right: 10px; bottom: 9px; }
  .start-panel p { display: none; }
  .harvest-hint, .feedback { right: 11px; }
  .harvest-hint { bottom: 10px; max-width: 49%; line-height: 1.15; font-size: .76rem; }
  [data-mode='menu'] .world-label { max-width: 56%; }
  .world-label span { line-height: 1.1; }
  .world-tab small { white-space: normal; line-height: 1.15; }
  .manual-body table { font-size: .83rem; }
  .feedback { top: 9px; bottom: auto; font-size: .78rem; max-width: 76%; }
  .workshop { gap: 7px; border-left: 0; border-top: 1px solid var(--line); padding: 5px 8px 8px; }
  .workshop h2 { font-size: 1.11rem; }
  .upgrade-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .upgrade { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; min-height: 72px; gap: 3px 4px; padding: 6px; align-content: start; }
  .upgrade-icon { display: none; }
  .upgrade-copy { grid-column: 1 / -1; }
  .upgrade-copy b { font-size: .85rem; }
  .upgrade-copy small { margin-top: 2px; min-height: 1em; font-size: .7rem; }
  .upgrade-price { grid-column: 2; grid-row: 2; font-size: .76rem; align-self: start; }
  .upgrade-details { grid-column: 1; grid-row: 2; font-size: .68rem; align-self: start; }
  .network-map { display: none; }
  .operation { padding: 4px 8px; }
  .objective { padding: 6px 0 0; }
  .objective h3 { font-size: .83rem; }
  .objective p { font-size: .72rem; margin-top: 1px; line-height: 1.23; }
  .objective-mark { display: none; }
  .objective progress { margin-top: 5px; }
  .keyboard-hint { display: none; }
  [data-mode='won'] .overlay { position: relative; grid-row: 2; inset: auto; width: auto; padding: 10px; border-left: 0; border-top: 1px solid var(--line); }
  [data-mode='won'] .overlay-panel { width: 100%; padding: 14px 10px; }
  [data-mode='won'] .flight-emblem { display: none; }
  [data-mode='won'] .overlay h2 { font-size: 1.87rem; }
  [data-mode='won'] .overlay p, [data-mode='won'] .overlay-summary { margin-bottom: 9px; }
  .manual { margin-block: 48px; }
  .manual-intro, .manual-body { grid-template-columns: 1fr; gap: 17px; }
  .manual-body { gap: 26px; }
}
@media (max-width: 660px) and (orientation: portrait), (max-height: 480px) and (orientation: landscape) {
  .workshop[data-launch='true'] .objective { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 7px; align-items: center; }
  .workshop[data-launch='true'] .objective-mark { display: none; }
  .workshop[data-launch='true'] progress { grid-row: 2; grid-column: 1 / -1; margin: 0; height: 3px; }
  .objective .launch { margin-top: 0; gap: 6px; font-size: .76rem; padding-inline: 7px; }
}
@media (max-height: 480px) and (orientation: landscape) {
  :root { --page-gutter: 11px; --masthead-height: 46px; }
  .wrap { width: calc(100% - 22px); }
  .wordmark .game-brand { font-size: 1.4rem; }
  .flight { grid-template-rows: 52px minmax(175px, 1fr) 49px; }
  .observation { --globe-width: min(47%, 173px); --globe-y: 50%; }
  .world-label { left: 13px; bottom: 13px; }
  .world-label h2 { font-size: 2.2rem; }
  .start-panel { right: 12px; bottom: 12px; }
  .start-panel p { display: none; }
  .workshop { padding: 10px; gap: 8px; }
  .network-map { display: none; }
  .objective { margin-top: auto; }
  .workshop-title p { display: none; }
  .upgrade { min-height: 51px; padding-block: 5px; }
  .objective { padding-top: 8px; }
  .workshop[data-launch='true'] .objective h3 { font-size: .83rem; }
  .workshop[data-launch='true'] .objective p { font-size: .72rem; margin-top: 1px; line-height: 1.23; }
  .overlay { padding-top: 10px; }
  .overlay-panel { max-height: calc(100dvh - 70px); padding: 14px; }
  .flight-emblem { width: 45px; height: 45px; }
  [data-mode='won'] .overlay { padding: 8px; }
  [data-mode='won'] .overlay-panel { max-height: 100%; }
  [data-mode='won'] .flight-emblem { display: none; }
  [data-mode='won'] .overlay h2 { font-size: clamp(1.48rem, 3.2vw, 2rem); }
  [data-mode='won'] .overlay p, [data-mode='won'] .overlay-summary { margin-bottom: 10px; }
}
@media (min-width: 661px) and (max-width: 1000px) and (orientation: portrait) {
  .observation { --globe-width: min(72%, 370px); }
}
@media (min-width: 1540px) {
  :root { --page-gutter: max(32px, calc((100% - 1380px) / 2)); }
  .wrap { width: min(1380px, calc(100% - 64px)); }
  #game { min-height: min(754px, calc(100dvh - 106px)); }
  .observation { --globe-width: min(65%, 515px, max(230px, calc(100dvh - 295px))); }
}
@media (min-width:701px) and (max-width:1000px){.workshop h2{overflow-wrap:normal;font-size:1rem}}
