/* Game surfaces share the existing EduNet brand and leave the workshop intact. */
body:has(.game3d) { overflow: hidden; background: #090f17; }
.game3d { --ink: #e3ecea; --muted: #91a4ae; --line: #29363f; --lime: #c8f26d; display: grid; grid-template-columns: minmax(0,1fr) 348px; grid-template-rows: 68px minmax(0,1fr); width: 100%; height: 100dvh; min-height: 0; overflow: hidden; background: #090f17; color: var(--ink); font-family: "Segoe UI",sans-serif; }
.game3d *, .game3d *::before, .game3d *::after { box-sizing: border-box; }
.game3d button, .game3d a, .game3d summary, .game3d input { -webkit-tap-highlight-color: transparent; }
.game3d button { font-family: inherit; cursor: pointer; }
.game3d button:disabled { cursor: default; opacity: .42; }
.game3d button:focus-visible, .game3d a:focus-visible, .game3d summary:focus-visible, .game3d input:focus-visible, .lab-scene:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.game3d [hidden] { display: none !important; }
.game-topbar { position: relative; z-index: 6; grid-column: 1/-1; display: flex; align-items: center; gap: 28px; min-width: 0; padding: 0 24px; border-bottom: 1px solid #29343b; background: #101920; }
.game-brand { display: flex; align-items: center; gap: 15px; flex-shrink: 0; }
.game-brand > a { display: flex; align-items: center; gap: 9px; color: #f1f5ee; text-decoration: none; }
.game-brand strong { font-size: 18px; letter-spacing: -.5px; }
.game-brand .brand-mark { width: 31px; height: 31px; border-radius: 10px; font-size: 24px; }
.game-edition { padding-left: 14px; border-left: 1px solid #33413f; color: #8b9d9d; font-family: monospace; font-size: 10px; letter-spacing: 1.4px; }
.game-top-mission { display: grid; gap: 4px; min-width: 0; margin-right: auto; }
.game-top-mission > span, .hud-progress > span { color: #829a9d; font-family: monospace; font-size: 9px; font-weight: 600; letter-spacing: 1.4px; }
.game-top-mission strong { color: #d4e5dc; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hud-progress { display: grid; grid-template-columns: auto auto; align-items: center; gap: 5px 12px; width: 163px; }
.hud-progress strong { color: var(--lime); font-family: monospace; font-size: 12px; text-align: right; }
.game3d .hud-progress .progress-track { grid-column: 1/-1; height: 3px; margin: 0; background: #2c3c3d; }
.game3d .progress-fill { background: var(--lime); }
.game-preview-badge { color: var(--muted); font-size: 11px; }
.game-menu { position: relative; }
.game-menu > summary { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; min-width: 44px; padding-inline: 14px; border: 1px solid #35434a; border-radius: 7px; color: #d6e0dd; font-size: 12px; cursor: pointer; list-style: none; }
.game-menu > summary::-webkit-details-marker { display: none; }
.game-menu nav { position: absolute; top: calc(100% + 10px); right: 0; display: grid; width: 190px; padding: 7px; border: 1px solid #40504c; border-radius: 10px; background: #18242c; box-shadow: 0 16px 40px #0008; }
.game-menu nav a, .game-menu nav button { display: flex; align-items: center; min-height: 44px; padding: 10px 12px; border: 0; border-radius: 5px; background: transparent; color: #e0ebe7; text-align: left; text-decoration: none; font-size: 13px; }
.game-menu nav a:hover, .game-menu nav button:hover { background: #2c3e43; }
.game-world { position: relative; display: grid; min-width: 0; min-height: 0; overflow: hidden; background: radial-gradient(ellipse at 50% 38%,#1c2b34 0,#101b26 45%,#090f17 85%); }
.lab-scene { position: absolute; inset: 0; z-index: 1; overflow: hidden; touch-action: none; }
.lab-scene > canvas { display: block; width: 100%; height: 100%; }
.world-topline { position: absolute; top: 23px; left: 27px; right: 25px; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; pointer-events: none; }
.world-kicker { color: #81969f; font-family: monospace; font-size: 10px; letter-spacing: 2px; }
.world-topline h1 { margin: 4px 0 0; color: #edf5eb; font-size: 24px; font-weight: 600; letter-spacing: -.5px; }
.scene-state { display: inline-flex; align-items: center; gap: 7px; margin-top: 3px; padding: 6px 9px; border: 1px solid #40544c; border-radius: 4px; background: #101d20d9; color: #b6cebc; font-family: monospace; font-size: 10px; }
.scene-state::before { width: 5px; height: 5px; border-radius: 50%; background: var(--lime); content: ""; box-shadow: 0 0 10px #a6ef6580; }
.world-stations { position: absolute; z-index: 3; top: 157px; left: 14px; width: 113px; pointer-events: none; }
.game3d .experiment-switcher { margin: 0; }
.game3d .experiment-tabs { display: flex; flex-direction: column; gap: 5px; border: 0; padding: 0; background: transparent; }
.game3d .experiment-tab { display: flex; align-items: center; justify-content: flex-start; gap: 7px; flex: 0 1 auto; min-width: 0; min-height: 44px; padding: 8px 10px; border: 1px solid #36474c; border-radius: 5px; background: #111d27d9; color: #9caeb5; pointer-events: auto; box-shadow: none; }
.game3d .experiment-tab[aria-selected="true"] { border-color: #8ab95a; background: #263a31ec; color: #d1f4a0; }
.game3d .experiment-number { color: #799398; font-family: monospace; font-size: 10px; }
.game3d .experiment-tab strong { font-size: 11px; font-weight: 500; }
.game3d .experiment-tab small, .game3d .experiment-tab > svg, .game3d .experiment-tabs-hint { display: none; }
.game-custom-label { display: inline-block; padding: 9px 12px; border-left: 2px solid var(--lime); background: #16252bd9; color: #aec7be; font-size: 12px; }
.world-controls { position: absolute; z-index: 3; left: 24px; right: 24px; bottom: 22px; padding: 12px 13px; border: 1px solid #32434a; border-radius: 10px; background: #0f1922e8; backdrop-filter: blur(12px); }
.scene-navigation-status { margin: 0 0 10px; color: #a1b8b5; font-size: 11px; line-height: 1.5; }
.world-control-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.keyboard-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; color: #6c818a; font-size: 10px; }
.keyboard-legend > span { flex-basis: 100%; }
.game3d kbd { color: #b4c9c4; font-family: monospace; font-size: 10px; font-weight: 500; }
.world-control-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.game-button, .game-icon-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 8px 11px; border: 1px solid #415750; border-radius: 5px; background: #23352f; color: #d3e7dc; font-size: 11px; font-weight: 600; }
.game-button:hover, .game-icon-button:hover { border-color: #a5d26e; background: #30483b; }
.game-button.accent { border-color: #b4db70; background: #c8f26d; color: #1b2e22; }
.game-button.accent kbd { color: #3a4d28; }
.camera-actions { display: flex; gap: 5px; }
.game-icon-button { width: 44px; padding: 0; font-size: 23px; }
.mobile-dpad { display: none; }
.lab-terminal { position: relative; z-index: 4; display: flex; flex-direction: column; min-width: 0; min-height: 0; border-left: 1px solid #344249; background: #151f28; box-shadow: -16px 0 35px #0002; }
.terminal-heading { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; min-height: 76px; padding: 16px 19px; border-bottom: 1px solid var(--line); }
.terminal-indicator { flex: 0 0 7px; width: 7px; height: 7px; border-radius: 2px; background: var(--lime); box-shadow: 0 0 12px #b6ed5655; }
.terminal-heading > div { min-width: 0; }
.terminal-heading > div > span { display: block; color: #82979e; font-family: monospace; font-size: 8px; letter-spacing: 1.5px; }
.terminal-heading strong { display: block; margin-top: 5px; font-size: 14px; font-weight: 600; }
.terminal-grade { flex: 0 0 auto; margin-left: auto; padding: 4px 6px; border: 1px solid #42504b; border-radius: 3px; color: #9cafaa; font-family: monospace; font-size: 9px; }
.terminal-tabs { display: flex; gap: 20px; flex: 0 0 auto; min-height: 49px; padding: 0 19px; border-bottom: 1px solid var(--line); }
.terminal-tabs > button { position: relative; min-height: 48px; padding: 0 2px; border: 0; background: transparent; color: #8e9fa8; font-size: 12px; }
.terminal-tabs > button[aria-selected="true"] { color: var(--lime); }
.terminal-tabs > button[aria-selected="true"]::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--lime); content: ""; }
.terminal-tabs > button span { margin-left: 5px; color: #6c828d; font-family: monospace; font-size: 10px; }
.terminal-scroll { min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #4b605c transparent; }
.terminal-scroll > section { padding: 20px 19px 28px; }
.game3d .mission-card { margin: 0 0 20px; padding: 0; border: 0; border-radius: 0; background: transparent; }
.game3d .section-kicker { color: #9abf80; font-family: monospace; font-size: 9px; letter-spacing: 1.3px; }
.game3d .mission-heading { gap: 8px; }
.game3d .pill { min-width: 0; padding: 4px 6px; border: 1px solid #40534c; border-radius: 3px; background: #20332b; color: #b7d2a8; font-family: monospace; font-size: 9px; white-space: nowrap; }
.game3d .mission-card h2 { margin: 14px 0 8px; color: #f0f4e9; font-size: 19px; line-height: 1.3; letter-spacing: -.4px; }
.game3d .mission-goal, .custom-game-goal { margin: 0; color: #becdc8; font-size: 13px; line-height: 1.65; }
.game3d .mission-steps { display: flex; gap: 4px; margin: 12px 0 0; }
.game3d .mission-steps li { flex-direction: row; align-items: center; flex: 1; gap: 5px; height: 22px; padding: 0; }
.game3d .mission-steps li > span:first-child { flex-basis: 19px; min-height: 19px; width: 19px; height: 19px; border-color: #3c504d; color: #738b89; font-family: monospace; font-size: 9px; }
.game3d .mission-steps li > span:last-child { display: none; }
.game3d .mission-steps li::after { flex: 1; height: 1px; background: #3b504a; content: ""; }
.game3d .mission-steps li:last-child::after { background: transparent; }
.game3d .mission-steps li.current > span:first-child { border-color: #b2d968; background: #3d562a; color: #d1f197; }
.game3d .mission-steps li.done > span:first-child { border-color: #628b50; background: #426438; color: #dcf0c7; }
.game3d .helper { color: #849b9c; font-size: 10px; line-height: 1.6; }
.game3d .mission-card > .helper { margin-top: 8px; }
.terminal-section-label { display: flex; justify-content: space-between; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); color: #738c97; font-family: monospace; font-size: 8px; letter-spacing: 1.6px; }
.terminal-section-label > span:last-child { color: #8eae71; font-size: 7px; }
.game3d .simulation-controls { display: grid; gap: 12px; padding: 12px 0; }
.game3d .range-field { display: block; margin: 0; }
.game3d .range-label { align-items: center; margin-bottom: 2px; color: #aebfbd; font-size: 11px; }
.game3d .range-label strong { min-width: 0; padding: 0; border: 0; background: transparent; color: #d4ebbb; font-size: 13px; font-weight: 500; }
.game3d input[type="range"] { width: 100%; height: 24px; min-height: 24px; margin: 1px 0 4px; border: 0; background: transparent; accent-color: #c8f26d; cursor: pointer; -webkit-appearance: none; appearance: none; }
.game3d input[type="range"]::-webkit-slider-runnable-track { height: 4px; border: 0; border-radius: 3px; background: #3a5756; }
.game3d input[type="range"]::-webkit-slider-thumb { width: 18px; height: 18px; margin-top: -7px; border: 3px solid #233b35; border-radius: 50%; background: #c8f26d; box-shadow: 0 0 0 1px #90b77f,0 0 10px #b4ed6533; -webkit-appearance: none; appearance: none; }
.game3d input[type="range"]::-moz-range-track { height: 4px; border: 0; border-radius: 3px; background: #3a5756; }
.game3d input[type="range"]::-moz-range-thumb { width: 13px; height: 13px; border: 3px solid #233b35; border-radius: 50%; background: #c8f26d; box-shadow: 0 0 0 1px #90b77f; }
.game3d .number-field { display: flex; align-items: center; gap: 7px; margin-top: -3px; color: #728b93; font-size: 9px; }
.number-field > input { width: 85px; min-height: 32px; margin-left: auto; padding: 3px 7px; border: 1px solid #394d50; border-radius: 4px; background: #0e1921; color: #d5e8dd; font-size: 12px; }
.number-field > small { flex: 0 0 25px; font-size: 9px; }
.game3d .readout-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; margin: 0 0 14px; padding: 0; border: 0; }
.game3d .readout { min-width: 0; padding: 10px; border: 1px solid #314540; border-radius: 4px; background: #10251e; }
.game3d .readout > span { display: block; min-height: 13px; margin-bottom: 4px; color: #749c86; font-size: 9px; }
.game3d .readout strong { display: block; color: #d1f0bb; font-family: monospace; font-size: 18px; line-height: 1.2; }
.game3d .readout small { color: #8eaa91; font-size: 10px; }
.game3d .readout:last-child:nth-child(odd) { grid-column: 1/-1; }
.game3d .readout:last-child:nth-child(odd) strong { font-size: 14px; }
.game3d .motion-actions { flex-wrap: nowrap; gap: 5px; margin: 0 0 9px; }
.game3d .button { justify-content: center; min-height: 44px; min-width: 0; padding: 9px 11px; border: 1px solid #41544f; border-radius: 5px; background: #233a2f; color: #c9e3ce; box-shadow: none; font-size: 11px; line-height: 1.35; text-decoration: none; }
.game3d .button-primary { border-color: #bfdc7c; background: var(--lime); color: #20301f; }
.game3d .button-secondary { background: #263a34; color: #d1e4d7; }
.game3d .button-ghost { background: transparent; color: #9cb2a8; }
.game3d .motion-actions .button { flex: 1; padding-inline: 6px; }
.game3d .motion-status { margin: 0 0 7px; color: #98b8a3; font-size: 10px; font-weight: 400; line-height: 1.5; }
.game3d .motion-clock-note { margin: 0 0 11px; font-size: 9px; }
.game3d .motion-result { margin: 10px 0; padding: 12px; border: 1px solid #64854d; border-radius: 5px; background: #243d28; }
.game3d .motion-result h3 { margin: 6px 0; color: #ddf5b5; font-size: 15px; letter-spacing: 0; }
.game3d .motion-result p { color: #b3d59d; font-family: monospace; font-size: 11px; }
.game3d .motion-previous { margin: 10px 0; border-color: #61746a; color: #94a89e; font-size: 10px; line-height: 1.5; }
.model-details { margin: 11px 0 0; color: #738e95; }
.model-details summary { display: flex; align-items: center; min-height: 44px; font-size: 10px; cursor: pointer; }
.model-details summary::after { margin-left: auto; content: "+"; font-family: monospace; }
.model-details[open] summary::after { content: "−"; }
.game3d .mission-review { margin: 18px 0 0; padding: 0; border: 0; background: transparent; }
.game3d .mission-feedback { padding: 12px; border: 1px solid #33494b; border-radius: 5px; background: #101c24; }
.game3d .mission-feedback p { margin: 0 0 5px; color: #99b0b4; font-size: 11px; line-height: 1.6; }
.game3d .mission-feedback p:last-child { margin-bottom: 0; }
.game3d .mission-feedback > strong { margin-bottom: 7px; color: #f0e8c4; font-size: 13px; }
.game3d .mission-success { border-color: #71944e; background: #233b2a; }
.game3d .mission-success > strong { color: #cff28d; }
.game3d .mission-success p { color: #b5c9a1; }
.game3d .mission-retry { border-color: #886b35; background: #302a1d; }
.game3d .mission-feedback .mission-hint { margin-top: 8px; padding: 7px 8px; border-left-color: #9a7944; background: #443a25; color: #d1bb85; }
.game3d .mission-actions { flex-direction: column; gap: 7px; margin-top: 13px; }
.game3d .mission-actions .button { width: 100%; }
.game3d .mission-review > .helper { font-size: 9px; }
.game3d .mission-complete > p { color: #b5c9a1; font-size: 12px; }
.game3d .mission-results { gap: 9px; margin-top: 14px; }
.game3d .mission-results li { padding-top: 10px; border-top-color: #365041; }
.game3d .mission-results strong { color: #c4dda7; font-size: 12px; }
.game3d .mission-results p { color: #a1b4a1; font-size: 11px; }
.game3d .mission-results small { color: #6b8b7b; font-size: 9px; }
.terminal-session-note, .quiz-note { margin: 18px 0 0; color: #70878f; font-size: 9px; line-height: 1.65; }
.quiz-note { margin: 0 0 15px; color: #98aeb2; font-size: 11px; }
.game3d .question-card, .game3d .result-card { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.game3d .question-counter { color: #9baea7; font-family: monospace; font-size: 9px; }
.game3d .question-card h2 { margin: 18px 0; color: #dce7df; font-size: 16px; line-height: 1.5; letter-spacing: -.2px; }
.game3d .question-card .progress-track, .game3d .result-card .progress-track { margin-top: 14px; height: 3px; background: #30463e; }
.game3d .choices { gap: 8px; }
.game3d .choice { min-height: 48px; padding: 11px; border: 1px solid #3b5153; border-radius: 6px; background: #172a31; color: #c5d8d6; font-size: 12px; line-height: 1.4; }
.game3d .choice > span { color: #8caf9a; background: #203b34; }
.game3d .choice.correct { border-color: #8db45c; background: #2b462e; color: #d5efbf; }
.game3d .choice.wrong { border-color: #a47664; background: #49312a; color: #e7c8a4; }
.game3d .feedback { padding: 12px; border: 1px solid #42694c; background: #233b2c; color: #b9d3a7; font-size: 12px; line-height: 1.6; }
.game3d .feedback-wrong { border-color: #7a6340; background: #3b3324; color: #cdbb91; }
.game3d .result-card h2 { color: var(--lime); }
.game3d .result-card > p { color: #a5bbb3; font-size: 13px; line-height: 1.6; }
.game3d .result-symbol { color: #c8f26d; background: #2e4932; }
.scene-fallback { position: absolute; z-index: 2; top: 48%; left: 50%; width: min(380px,80%); transform: translate(-50%,-50%); text-align: center; }
.fallback-symbol { color: #698d81; font-size: 64px; }
.scene-fallback h2 { margin: 7px 0; color: #d4e6d9; font-size: 21px; }
.scene-fallback p { margin-bottom: 19px; color: #849ba4; font-size: 13px; line-height: 1.7; }
@media (max-width: 1120px) {
  .game3d { grid-template-columns: minmax(0,1fr) 332px; }
  .game-topbar { gap: 17px; padding-inline: 17px; }
  .game-edition { display: none; }
  .keyboard-legend { display: none; }
  .world-controls { left: 17px; right: 17px; }
  .world-control-row { gap: 7px; }
  .world-control-actions { margin-left: 0; }
  .camera-actions { margin-left: auto; }
}
@media (pointer: coarse) {
  .game3d input[type="range"] { min-height: 44px; height: 44px; }
  .mobile-dpad { display: grid; grid-template-columns: repeat(4,44px); gap: 4px; }
  .mobile-dpad > button { width: 44px; height: 44px; border: 1px solid #4b655e; border-radius: 5px; background: #273d36; color: #c7e2cc; font-size: 20px; touch-action: none; user-select: none; }
  .mobile-dpad > button:active { background: #719149; color: #f4ffdf; }
  .keyboard-legend { display: none; }
}
@media (min-width: 761px) and (max-height: 600px) {
  .world-topline { display: none; }
  .world-stations { top: 12px; left: 12px; right: 12px; width: auto; }
  .game3d .experiment-tabs { flex-direction: row; gap: 4px; }
  .game3d .experiment-tab { flex: 1; justify-content: center; padding-inline: 5px; }
  .game3d .experiment-number { display: none; }
  .game3d .experiment-tab strong { font-size: 9px; }
}
@media (max-width: 760px) {
  .game3d { grid-template-columns: minmax(0,1fr); grid-template-rows: 58px minmax(360px,1fr) minmax(0,min(39dvh,calc(100dvh - 418px))); height: 100dvh; min-height: 0; }
  .game-topbar { gap: 12px; padding: 0 12px; }
  .game-brand strong { font-size: 16px; }
  .game-brand .brand-mark { width: 27px; height: 27px; font-size: 22px; }
  .game-top-mission { display: none; }
  .game-topbar #mission-course-progress { margin-left: auto; }
  .hud-progress { width: 125px; gap: 5px 7px; }
  .hud-progress > span { font-size: 7px; letter-spacing: .8px; }
  .hud-progress strong { font-size: 10px; }
  .game-menu > summary { padding: 0 11px; }
  .game-menu > summary > span { display: none; }
  .game-world { grid-column: 1; }
  .world-topline { top: 13px; left: 14px; right: 13px; }
  .world-topline h1 { font-size: 18px; }
  .world-kicker { font-size: 8px; letter-spacing: 1.5px; }
  .scene-state { font-size: 8px; padding: 5px 7px; }
  .world-stations { top: 68px; left: 12px; right: 12px; width: auto; }
  .game3d .experiment-tabs { flex-direction: row; flex-wrap: nowrap; gap: 4px; }
  .game3d .experiment-tab { flex: 1; justify-content: center; gap: 3px; padding: 6px 4px; min-height: 44px; }
  .game3d input[type="range"] { min-height: 44px; height: 44px; }
  .game3d .experiment-tab strong { font-size: 9px; }
  .game3d .experiment-number { display: none; }
  .world-controls { left: 9px; right: 9px; bottom: 8px; padding: 7px 8px; border-radius: 7px; }
  .scene-navigation-status { margin-bottom: 6px; font-size: 9px; min-height: 14px; }
  .world-control-row { justify-content: space-between; gap: 5px; }
  .world-control-actions { gap: 4px; }
  .game-button { padding: 7px; min-height: 44px; font-size: 9px; }
  .game-button > kbd { display: none; }
  .camera-actions { gap: 3px; margin-left: 0; }
  .game-icon-button { width: 44px; min-height: 44px; font-size: 21px; }
  .mobile-dpad { display: grid; grid-template-columns: repeat(4,44px); flex: 0 0 100%; justify-content: center; gap: 6px; order: 3; }
  .mobile-dpad > button { width: 44px; height: 44px; border: 1px solid #455b56; border-radius: 5px; background: #22382f; color: #c5dfcb; font-size: 19px; touch-action: none; user-select: none; }
  .lab-terminal { grid-column: 1; min-height: 0; border-top: 1px solid #526247; border-left: 0; border-radius: 14px 14px 0 0; box-shadow: 0 -8px 25px #0004; }
  .terminal-heading { min-height: 52px; padding: 9px 15px; }
  .terminal-heading > div > span { font-size: 7px; }
  .terminal-heading strong { margin-top: 3px; font-size: 12px; }
  .terminal-tabs { min-height: 44px; padding-inline: 15px; }
  .terminal-tabs > button { min-height: 44px; font-size: 11px; }
  .terminal-scroll > section { padding: 14px 16px 24px; }
  .game3d .mission-card h2 { margin-top: 10px; font-size: 18px; }
  .game3d .mission-goal { font-size: 13px; }
  .game3d .simulation-controls { gap: 13px; }
  .number-field > input { min-height: 44px; }
  .game3d .range-label { font-size: 12px; }
  .scene-fallback { top: 49%; }
  .fallback-symbol { font-size: 30px; }
  .scene-fallback h2 { font-size: 16px; }
  .scene-fallback p { margin: 8px 0; font-size: 11px; }
}
@media (max-width: 760px) and (max-height: 570px) {
  .terminal-heading { display: none; }
  .terminal-tabs, .terminal-tabs > button { min-height: 44px; }
}
@media (max-width: 760px) and (max-height: 460px) {
  .game3d { grid-template-columns: minmax(0,1fr) minmax(235px,42%); grid-template-rows: 58px minmax(0,1fr); }
  .lab-terminal { grid-column: 2; grid-row: 2; border-radius: 0; border-top: 0; border-left: 1px solid #526247; }
  .world-controls { padding: 5px; }
  .world-control-actions .game-button { font-size: 0; width: 44px; padding: 0; }
  .world-control-actions .game-button:first-child::after { content: "⌖"; font-size: 20px; }
  .world-control-actions .game-button:last-child::after { content: "E"; font-size: 16px; }
  .world-topline { left: 9px; }
  .world-topline .scene-state { display: none; }
  .world-stations { left: 7px; right: 7px; }
  .game3d .experiment-tab strong { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .game3d *, .game3d *::before, .game3d *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
