/* Shared atlas layout. Desktop proportions follow Frame 8 (72.8% / 27.2%). */
.cosmic-menu {
  --menu-ink: #0b101c; --menu-paper: #f4e8d1;
  --menu-unit: min(.048828125vw, .107411386vh);
  --sidebar-width: max(240px, 27.2vw);
  --sidebar-left: max(16px, calc(42 * var(--menu-unit)));
  --sidebar-right: max(16px, calc(66 * var(--menu-unit)));
  --toolbar-height: max(44px, calc(54 * var(--menu-unit)));
  --menu-head-top: max(calc(40 * var(--menu-unit)), var(--safe-top, env(safe-area-inset-top)));
  --menu-bottom-inset: max(calc(69 * var(--menu-unit)), calc(var(--safe-bottom, env(safe-area-inset-bottom)) + 44px));
  --menu-support-y: calc(var(--menu-head-top) + var(--toolbar-height) + 12px);
  color: var(--menu-paper); background: var(--menu-ink);
}
#menu.cosmic-menu, #atlas.cosmic-menu { display: block; padding: 0; overflow: hidden; background: var(--menu-ink); }
#shell:has(#atlas.cosmic-menu:not([hidden])) { height: 100dvh; max-height: 100dvh; }
.cosmic-menu .cosmos-scene {
  position: absolute; inset: 0 var(--sidebar-width) 0 0; overflow: hidden;
  background: #102139 url('./assets/cosmos-nebula.png') center / cover no-repeat;
  isolation: isolate; touch-action: manipulation; direction: ltr;
}
.cosmos-viewport { position: absolute; inset: 0; background: inherit; transition: transform .35s ease; }
.cosmos-scene::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, #07132612, transparent 27%, transparent 73%, #06122445); }
.cosmic-menu > header {
  position: absolute; z-index: 4; top: max(calc(40 * var(--menu-unit)), var(--safe-top, env(safe-area-inset-top)));
  left: max(calc(46 * var(--menu-unit)), var(--safe-left, env(safe-area-inset-left))); right: max(var(--sidebar-right), var(--safe-right, env(safe-area-inset-right)));
  display: flex; justify-content: space-between; align-items: flex-start; pointer-events: none; direction: ltr;
}
.cosmic-menu > header > * { pointer-events: auto; }
.cosmic-menu .intro { flex: none; transform: translateY(calc(14 * var(--menu-unit))); }
.cosmic-menu h1 { margin: 0; line-height: 1; }
.space-dash-logo { display: block; width: max(154px, calc(312 * var(--menu-unit))); height: auto; }
.cosmic-menu header .eyebrow, .cosmic-menu header .tagline, .cosmic-menu .atlas-subtitle { display: none; }
.cosmic-menu .menu-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) var(--toolbar-height) minmax(0, 1fr); gap: max(10px, calc(25 * var(--menu-unit))); width: calc(var(--sidebar-width) - var(--sidebar-left) - var(--sidebar-right)); }
.cosmic-menu .menu-control, .cosmic-menu .menu-language select, .cosmic-menu .map-controls button {
  display: grid; place-items: center; width: 100%; height: var(--toolbar-height); min-height: 44px;
  padding: 0 8px; background: #ead2ac; color: #101a2b; border: 1px solid #c4ac87;
  border-radius: max(12px, calc(16 * var(--menu-unit))); box-shadow: none;
  font: 700 max(13px, calc(20 * var(--menu-unit))) 'Segoe UI', sans-serif;
  text-align: center; margin: 0; text-shadow: none; cursor: pointer;
}
.cosmic-menu .menu-language { min-width: 0; }
.cosmic-menu .menu-language select { appearance: none; -webkit-appearance: none; text-align-last: center; text-overflow: ellipsis; padding: 0 4px; font-size: max(12px, calc(20 * var(--menu-unit))); }
.cosmic-menu .menu-language option { color: #101a2b; background: #ead2ac; }
.cosmic-menu .menu-music { position: relative; font-size: max(27px, calc(37 * var(--menu-unit))); line-height: 1; }
.cosmic-menu .menu-music[aria-pressed="false"] { color: #66717c; }
.cosmic-menu .menu-control:hover, .cosmic-menu .map-controls button:hover { background: #f3debc; border-color: #fff0d4; }
.cosmic-menu :is(button, select, summary):focus-visible { outline: 2px solid #fff2cc; outline-offset: 3px; }
.cosmos-objects, .cosmos-flight-path { position: absolute; inset: 0; width: 100%; height: 100%; }
.cosmos-objects { pointer-events: none; }
.cosmos-belt-orbit { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cosmos-belt-dust { fill: none; stroke: #b29b7d; opacity: .09; }
.cosmos-belt-guide { fill: none; stroke: #c2ad8d; stroke-width: 1; stroke-dasharray: 1 9; opacity: .12; }
.cosmos-belt-hit { fill: none; stroke: transparent; pointer-events: stroke; cursor: pointer; }
.cosmos-belt-orbit use, .cosmos-belt-stone path { pointer-events: none; }
.cosmos-scene[data-selected="belt"] .cosmos-belt-orbit { filter: drop-shadow(0 0 4px #edc88a65); }
.cosmos-scene[data-selected="belt"] .cosmos-belt-guide { opacity: .35; }
.cosmos-scene[data-selected="belt"] .cosmos-belt-dust { opacity: .15; }
.cosmos-belt-orbit.is-hovered { filter: drop-shadow(0 0 7px #ffe4aa); }
.cosmos-belt-orbit.is-hovered .cosmos-belt-guide { opacity: .85; stroke: #ffe4aa; stroke-width: 2; }
.cosmos-belt-orbit.is-hovered .cosmos-belt-dust { opacity: .34; }
.cosmos-belt-orbit.is-hovered .cosmos-belt-stone { opacity: 1; }
.cosmos-body[data-body="belt"] .cosmos-body-art { opacity: 0; }
.cosmos-body[data-body="belt"]::before { display: none; }
.cosmos-body {
  position: absolute; width: var(--body-size, 80px); height: var(--body-size, 80px);
  padding: 0; margin: 0; transform: translate(-50%, -50%); border: 0 !important; border-radius: 50%;
  background: transparent !important; color: var(--menu-paper); cursor: pointer; pointer-events: auto;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.cosmos-body-art { display: block; width: 100%; height: 100%; transition: transform .65s cubic-bezier(.2,.7,.2,1), filter .4s; }
.cosmos-body svg { display: block; width: 100%; height: 100%; overflow: visible; }
.cosmos-body:hover .cosmos-body-art { transform: scale(1.06); filter: drop-shadow(0 0 7px #b7efff80); }
.cosmos-body.selected .cosmos-body-art { transform: scale(1.14); filter: drop-shadow(0 0 12px #e8c89540); }
.cosmos-body::before { content: ''; position: absolute; inset: 5%; border: 1px solid #c9e6f282; border-radius: 50%; opacity: .62; background: radial-gradient(circle, #07132100 40%, #07132178 80%); box-shadow: 0 0 0 4px #07132125; transition: opacity .2s, box-shadow .2s, border-color .2s; pointer-events: none; }
.cosmos-body:hover::before, .cosmos-body:focus-visible::before { opacity: 1; border: 2px solid #b9eeff; box-shadow: 0 0 0 4px #b9eeff20, 0 0 18px #68cfff48; }
.cosmos-body.selected::before { opacity: 1; border: 2px solid #ffe4a7; box-shadow: 0 0 0 4px #ffe4a723, 0 0 14px #e8c89545; }
.cosmos-body:focus-visible { outline: 2px solid #b9eeff; outline-offset: 3px; }
.cosmos-select-hint { position: absolute; top: 16px; right: 16px; max-width: 48%; padding: 8px 12px; border: 1px solid #bddceb55; border-radius: 20px; color: #f1e4ce; background: #071321da; font: 500 clamp(10px, 1vw, 13px)/1.35 'Segoe UI', sans-serif; text-align: center; pointer-events: none; z-index: 2; }
@media (max-width: 620px) and (orientation: portrait) { .cosmos-select-hint { top: 12px; right: 12px; max-width: 40%; padding: 6px 8px; } }
@media (max-height: 500px) and (orientation: landscape) { .cosmos-select-hint { top: 5px; right: 12px; padding: 4px 8px; } }
.cosmos-body-name { position: absolute; top: 93%; left: 50%; transform: translateX(-50%); white-space: nowrap; font: max(9px, calc(12 * var(--menu-unit))) 'Segoe UI', sans-serif; letter-spacing: .08em; color: #f3e5cddd; opacity: 0; text-shadow: 0 1px 8px #071123; transition: opacity .3s; pointer-events: none; }
.cosmos-body.selected .cosmos-body-name, .cosmos-body:hover .cosmos-body-name, .cosmos-body:focus-visible .cosmos-body-name { opacity: 1; }
.cosmos-astronaut { position: absolute; left: 0; top: 0; width: clamp(33px, 4vw, 74px); height: clamp(50px, 6vw, 111px); pointer-events: none; filter: drop-shadow(0 4px 9px #08132455); }
.cosmos-astronaut svg { display: block; width: 100%; height: 100%; }
.cosmos-flight-path { pointer-events: none; opacity: 0; transition: opacity .5s; }
.cosmos-flight-path path { fill: none; stroke: #efddbc; stroke-width: 1; stroke-dasharray: 2 7; opacity: .5; }
.cosmos-scene.is-flying .cosmos-flight-path { opacity: 1; }
.cosmos-sidebar {
  position: absolute; inset: 0 0 0 auto; width: var(--sidebar-width); display: flex; flex-direction: column;
  padding: var(--menu-support-y) max(var(--sidebar-right), var(--safe-right, env(safe-area-inset-right))) var(--menu-bottom-inset) var(--sidebar-left);
  background: #0b101c; direction: ltr; overflow: hidden;
}
.cosmos-sidebar-head { display: flex; align-items: center; padding: 0 0 max(18px, calc(30 * var(--menu-unit))); flex: none; }
.cosmos-sidebar-head h2 { width: 100%; margin: 0; font: 800 max(16px, calc(35 * var(--menu-unit))) 'Segoe UI', sans-serif; line-height: 1.1; text-transform: uppercase; color: #bfa18d; }
.cosmic-menu:is([data-menu-lang="ru"], [data-menu-lang="en"]) .cosmos-sidebar-head h2 { height: max(22px, calc(37 * var(--menu-unit))); font-size: 0; background: url('./assets/choose-world-en.svg') left center / contain no-repeat; }
.cosmic-menu[data-menu-lang="ru"] .cosmos-sidebar-head h2 { background-image: url('./assets/choose-world-ru.svg'); }
.cosmos-list { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 3px 5px; margin: 0 -5px; scrollbar-width: thin; scrollbar-color: #66728344 transparent; touch-action: pan-y; overscroll-behavior: contain; }
.cosmos-list::-webkit-scrollbar { width: 5px; }
.cosmos-list::-webkit-scrollbar-thumb { background: #66728366; border-radius: 4px; }
.cosmos-row, .cosmic-menu .level-card {
  display: flex; position: relative; align-items: center; gap: max(8px, calc(14 * var(--menu-unit))); width: 100%; min-height: max(64px, calc(90 * var(--menu-unit)));
  padding: 3px max(8px, calc(12 * var(--menu-unit))) 3px 0; border: 1px solid transparent; border-radius: 11px; margin: 0 0 2px;
  color: #d5dee4; background: transparent; cursor: pointer; text-align: left; font: inherit; direction: ltr;
}
.cosmos-row:hover, .cosmic-menu .level-card:hover { background: #efe2c909; border-color: transparent; }
.cosmos-row.selected, .cosmic-menu .level-card.selected { background: #f0ddbd0e; border-color: #e2c1a125; }
.cosmos-row.selected::after { content: '↗'; margin-left: auto; color: #eab79c; font-size: max(14px, calc(20 * var(--menu-unit))); }
.cosmos-row:focus-visible { outline-offset: -2px; }
.cosmos-row-art { display: block; width: max(52px, calc(84 * var(--menu-unit))); height: max(52px, calc(84 * var(--menu-unit))); flex: 0 0 max(52px, calc(84 * var(--menu-unit))); transition: transform .4s; }
.cosmos-row-art svg { display: block; width: 100%; height: 100%; }
.cosmos-row.selected .cosmos-row-art { transform: scale(1.12); }
.cosmos-row-copy { display: block; min-width: 0; flex: 1; }
.cosmos-world-label { display: block; width: auto; height: max(13px, calc(27 * var(--menu-unit))); max-width: 100%; object-fit: contain; object-position: left center; opacity: .66; transition: opacity .3s; }
.cosmos-row.selected .cosmos-world-label, .cosmos-row:hover .cosmos-world-label { opacity: 1; }
.cosmos-row-copy small, .cosmic-menu .level-card small { display: block; margin-top: max(5px, calc(9 * var(--menu-unit))); color: #9da9b8; font-size: max(9px, calc(12 * var(--menu-unit))); line-height: 1.3; letter-spacing: .025em; }
.cosmos-stars { color: #d0b598; letter-spacing: .08em; }
.cosmos-difficulty { --difficulty-color: #9fd9bf; display: flex; align-items: center; flex-wrap: wrap; gap: 5px; width: fit-content; max-width: 100%; margin-top: 5px; padding: 3px 6px; border: 1px solid color-mix(in srgb, var(--difficulty-color) 50%, transparent); border-radius: 5px; background: #0b101ce8; color: var(--difficulty-color); font: 700 11px/1.3 'Segoe UI', sans-serif; text-shadow: none; }
.cosmos-difficulty[data-tier="2"] { --difficulty-color: #91d4fa; }
.cosmos-difficulty[data-tier="3"] { --difficulty-color: #f1d279; }
.cosmos-difficulty[data-tier="4"] { --difficulty-color: #ffb47b; }
.cosmos-difficulty[data-tier="5"] { --difficulty-color: #ff91ac; }
.cosmos-difficulty[data-tier="6"] { --difficulty-color: #e1a1ff; }
.difficulty-bars { display: inline-flex; flex: none; align-items: flex-end; gap: 2px; height: 12px; }
.difficulty-bars i { display: block; width: 3px; height: 5px; border: 1px solid currentColor; border-radius: 1px; opacity: .3; }
.difficulty-bars i:nth-child(2) { height: 6px; }
.difficulty-bars i:nth-child(3) { height: 7px; }
.difficulty-bars i:nth-child(4) { height: 8px; }
.difficulty-bars i:nth-child(5) { height: 10px; }
.difficulty-bars i:nth-child(6) { height: 12px; }
.difficulty-bars i.is-filled { background: currentColor; opacity: 1; }
.difficulty-name { font: inherit; overflow-wrap: anywhere; }
.difficulty-rank { font: inherit; opacity: .85; white-space: nowrap; }
.cosmos-row:has(.cosmos-difficulty) { min-height: 76px; padding-top: 5px; padding-bottom: 5px; }
.cosmos-row-copy:has(.cosmos-difficulty) small { margin-top: 3px; }
.cosmos-sidebar-foot { padding: max(12px, calc(18 * var(--menu-unit))) 0 0; flex: none; display: flex; justify-content: center; }
.cosmos-mission, .cosmic-menu .map-card {
  position: absolute; z-index: 2; top: auto; left: max(calc(51 * var(--menu-unit)), var(--safe-left, env(safe-area-inset-left))); bottom: var(--menu-bottom-inset);
  width: calc(100% - var(--sidebar-width) - 102 * var(--menu-unit)); display: flex; flex-direction: column; align-items: flex-start;
  gap: 7px; padding: 0; margin: 0; border: 0; border-radius: 0; background: none; box-shadow: none;
  pointer-events: none; text-shadow: 0 2px 10px #0b162d;
}
.cosmos-mission .map-controls, .cosmic-menu .map-card .map-controls { pointer-events: auto; }
.cosmos-mission-copy { min-width: 0; max-width: 100%; pointer-events: none; }
.cosmos-mission .map-num, .cosmos-mission .mission-kicker { display: block; color: #c3d0dc; font: 500 11px/1.4 "Segoe UI", sans-serif; letter-spacing: .02em; text-transform: none; margin: 6px 0 0; text-align: left; }
.cosmos-mission-title { display: block; height: clamp(24px, 2.4vw, 30px); max-width: min(100%, 320px); width: auto; object-fit: contain; object-position: left; }
.cosmos-mission .map-feature, .cosmos-mission .mission-detail, .cosmos-mission .map-bar { display: none; }
.cosmic-menu .map-controls { display: inline-flex; align-items: center; gap: 0; width: max-content; max-width: 100%; padding: 3px; margin-top: 5px; border: 1px solid #e8d7b333; border-radius: 15px; background: #0a1525ed; box-shadow: 0 6px 18px #0003; }
.cosmic-menu .map-controls button { position: relative; flex: 0 0 44px; width: 44px; height: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: #f1e6d4; box-shadow: none; line-height: 1; transition: background-color .15s, color .15s; }
.map-controls svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cosmic-menu .map-controls [data-map-action="reset"] { margin-left: 3px; border-left: 1px solid #e8d7b32b; border-radius: 0 10px 10px 0; }
.cosmic-menu .map-controls button:hover:not(:disabled) { background: #ead2ac1a; color: #fff3d8; }
.cosmic-menu .map-controls button:active:not(:disabled) { background: #ead2ac30; }
.cosmic-menu .map-controls button:disabled { opacity: .35; cursor: default; }
.cosmic-menu .play-button, .cosmic-menu .map-fly, .cosmic-menu .atlas-play {
  display: inline-flex; align-items: center; justify-content: center; flex: none; min-width: 0; min-height: 48px;
  position: relative; left: calc(27 * var(--menu-unit)); width: 60%; height: max(48px, calc(72 * var(--menu-unit))); border-radius: max(12px, calc(17 * var(--menu-unit))); border: 2px solid #6396ae; background: #8ac5d3; color: #49465e;
  font: 900 max(18px, calc(29 * var(--menu-unit))) 'Segoe UI', sans-serif; padding: 10px 14px; box-shadow: -4px 0 0 #51869d;
  text-align: center; margin: 0; text-shadow: none;
}
.cosmic-menu .play-button b { font: inherit; }
.cosmic-menu:is([data-menu-lang="ru"], [data-menu-lang="en"]) :is(.play-button b, .atlas-play > span) { display: block; width: 100%; height: max(19px, calc(29 * var(--menu-unit))); font-size: 0; background: url('./assets/play-en.svg') center / contain no-repeat; }
.cosmic-menu[data-menu-lang="ru"] :is(.play-button b, .atlas-play > span) { background-image: url('./assets/play-ru.svg'); }
.cosmic-menu .play-button:hover, .cosmic-menu .atlas-play:hover { background: #a0d8e1; border-color: #90c1d1; }
.cosmic-menu .start-hint, .cosmic-menu #play-world { display: none; }
.cosmic-menu .menu-support { position: relative; z-index: 5; display: flex; align-items: center; gap: 10px; min-height: 44px; flex: none; margin-bottom: max(12px, calc(14 * var(--menu-unit))); color: #b6c3ce; font-size: 8px; line-height: 1.4; letter-spacing: .05em; }
.cosmic-menu .menu-support a { color: inherit; }
.cosmic-menu .menu-support .menu-utilities { flex: 1; justify-content: flex-end; min-width: 0; }
.cosmic-menu .menu-support .wallet { flex: 1; min-width: 0; max-width: 120px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cosmic-menu .menu-support .menu-notes { flex: none; }
.cosmic-menu .menu-support .menu-notes summary { display: grid; place-items: center; width: 44px; height: 44px; font-size: 0; background: #ffffff06; border: 1px solid #e6ddcd25; border-radius: 50%; }
.cosmic-menu .menu-support .menu-notes summary::before { content: '©'; font: 20px 'Segoe UI', sans-serif; color: #d4dcd9; }
.cosmic-menu details { position: relative; }
.cosmic-menu .menu-support details { position: static; }
.cosmic-menu summary { cursor: pointer; list-style: none; }
.cosmic-menu summary::-webkit-details-marker { display: none; }
.cosmic-menu .menu-utilities { display: flex; align-items: center; gap: 5px; }
.cosmic-menu .settings { display: flex; gap: 5px; flex-shrink: 0; max-width: none; }
.cosmic-menu .menu-utilities button:not(.pill):not(.skin), .cosmic-menu .settings summary, .cosmic-menu .menu-more summary { display: grid; place-items: center; width: 44px; height: 44px; min-height: 44px; padding: 0; font-size: 20px; background: #08132255; border: 1px solid #e6ddcd25; border-radius: 50%; color: #d4dcd9; box-shadow: none; }
.cosmic-menu .wallet { color: #e9c99a; font-size: 11px; border: 0; padding: 5px; background: transparent; }
.cosmic-menu .wallet::before { font-size: 12px; }
.cosmic-menu .settings .options, .cosmic-menu .menu-benefits, .cosmic-menu .menu-notes > div { position: absolute; right: 0; bottom: 52px; top: auto; width: min(285px, calc(100vw - 32px)); padding: 18px !important; margin: 0; border: 1px solid #ffffff25; border-radius: 12px; background: #111c2af7 !important; box-shadow: 0 18px 60px #0007; color: #d4dce4; backdrop-filter: blur(12px); font-size: 12px; line-height: 1.7; letter-spacing: 0; }
.cosmic-menu .menu-benefits { display: grid; gap: 9px; }
.cosmic-menu .menu-benefits .pill { width: 100%; border: 1px solid #ffffff25; border-radius: 7px; padding: 12px; background: #ffffff08; color: var(--menu-paper); font-size: 12px; }
.cosmic-menu .menu-notes > div { right: auto; left: 0; }
.cosmic-menu .menu-support :is(.options, .menu-benefits, .menu-notes > div) { top: calc(100% + 8px); bottom: auto; width: min(285px, 100%); max-height: calc(100dvh - var(--menu-bottom-inset) - var(--menu-support-y) - 64px); overflow-y: auto; }
.cosmic-menu .menu-support .skins { flex-wrap: wrap; max-width: 100%; }
.cosmic-menu #level-grid, .cosmic-menu .orbit-grid { display: block; max-width: none; width: auto; }
.cosmic-menu .layer-caption, .cosmic-menu .level-card .number, .cosmic-menu .card-note { display: none; }
body:has(#atlas.cosmic-menu:not([hidden])) #orientation-hint { display: none; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip-path: inset(50%); white-space: nowrap; border: 0 !important; }
@media (max-height: 560px) and (orientation: landscape) {
  .cosmic-menu { --menu-head-top: max(14px, var(--safe-top, env(safe-area-inset-top))); --menu-bottom-inset: max(56px, calc(var(--safe-bottom, env(safe-area-inset-bottom)) + 50px)); }
  .cosmic-menu > header { top: max(14px, var(--safe-top, env(safe-area-inset-top))); left: max(20px, var(--safe-left, env(safe-area-inset-left))); }
  .cosmic-menu .intro { transform: none; }
  .cosmos-sidebar { padding-top: var(--menu-support-y); padding-bottom: var(--menu-bottom-inset); }
  .cosmos-sidebar-head { padding-bottom: 12px; }
  .cosmos-row, .cosmic-menu .level-card { min-height: 54px; }
  .cosmos-row-art { width: 46px; height: 46px; flex-basis: 46px; }
  .cosmos-world-label { height: 13px; }
  .cosmos-sidebar-foot { padding-top: 10px; }
  .cosmic-menu .play-button, .cosmic-menu .atlas-play { left: 0; width: 80%; height: 44px; min-height: 44px; padding: 8px 12px; }
  .cosmos-mission, .cosmic-menu .map-card { left: max(20px, var(--safe-left, env(safe-area-inset-left))); bottom: var(--menu-bottom-inset); }
  .cosmos-mission-title { height: 24px; max-width: min(100%, 280px); }
  .cosmos-mission .map-num, .cosmos-mission .mission-kicker { margin-top: 5px; font-size: 10px; }
}
@media (max-width: 620px) and (orientation: portrait) {
  .cosmic-menu { --sidebar-width: 100vw; --sidebar-left: 20px; --sidebar-right: 20px; --menu-bottom-inset: max(16px, var(--safe-bottom, env(safe-area-inset-bottom))); --menu-support-y: calc(48vh + 70px); }
  .cosmic-menu > header { top: max(18px, var(--safe-top, env(safe-area-inset-top))); left: 20px; right: 20px; }
  .cosmic-menu .intro { transform: none; }
  .space-dash-logo { width: 175px; }
  .cosmic-menu .menu-toolbar { position: fixed; left: 20px; right: 20px; top: calc(48% + 12px); width: auto; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr); gap: 12px; }
  .cosmic-menu .cosmos-scene { inset: 0 0 52% 0; }
  .cosmos-sidebar { inset: 48% 0 0; width: auto; padding: 70px 20px var(--menu-bottom-inset); }
  .cosmos-sidebar-head { padding-bottom: 10px; }
  .cosmos-sidebar-head h2 { font-size: 20px; }
  .cosmic-menu:is([data-menu-lang="ru"], [data-menu-lang="en"]) .cosmos-sidebar-head h2 { height: 22px; }
  .cosmos-row, .cosmic-menu .level-card { min-height: 58px; gap: 12px; }
  .cosmos-row-art { width: 50px; height: 50px; flex-basis: 50px; }
  .cosmos-world-label { height: 15px; }
  .cosmos-mission, .cosmic-menu .map-card { left: 20px; bottom: calc(52% + 12px); width: calc(100% - 40px); gap: 5px; }
  .cosmos-mission-title { height: 22px; max-width: min(100%, 270px); }
  .cosmos-mission .map-num, .cosmos-mission .mission-kicker { margin-top: 4px; font-size: 10px; }
  .cosmic-menu .map-controls { gap: 0; }
  .cosmic-menu .map-controls { position: fixed; left: 20px; bottom: var(--menu-bottom-inset); }
  .cosmic-menu .map-controls button { width: 44px; height: 44px; }
  .cosmos-sidebar-foot { margin-left: 164px; padding-top: 10px; }
  .cosmic-menu .play-button, .cosmic-menu .atlas-play { left: 0; width: 100%; height: 44px; min-height: 44px; padding: 8px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .cosmic-menu *, .cosmic-menu *::before, .cosmic-menu *::after { transition: none !important; animation: none !important; }
}
.cosmos-scene[data-motion="reduced"] *, .cosmos-scene[data-motion="reduced"] *::before,
.cosmic-menu[data-reduced="true"] *, .cosmic-menu[data-reduced="true"] *::before,
html[data-reduced="true"] .cosmic-menu *, html[data-reduced="true"] .cosmic-menu *::before { transition: none !important; animation: none !important; }
