@font-face {
    font-family: "Barlow Semi Condensed";
    src: url("fonts/barlow-semi-condensed-500.woff2") format("woff2");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: "Barlow Semi Condensed";
    src: url("fonts/barlow-semi-condensed-600.woff2") format("woff2");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: "Barlow Semi Condensed";
    src: url("fonts/barlow-semi-condensed-700.woff2") format("woff2");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}
:root {
    color-scheme: dark;
    font: 100%/1.3 system-ui, sans-serif;
    color: #261e17;
    background: radial-gradient(ellipse at top, #3c3831, #181614 70%);
    --marking-font: "Barlow Semi Condensed", "Arial Narrow", system-ui, sans-serif;
    --ink: #261e17;
    --panel-light: #f2dec0;
    --viewport-height: 100dvh;
    --play-margin: 8px;
    --play-top: calc(var(--play-margin) + env(safe-area-inset-top, 0px));
    --play-right: calc(var(--play-margin) + env(safe-area-inset-right, 0px));
    --play-bottom: calc(var(--play-margin) + env(safe-area-inset-bottom, 0px));
    --play-left: calc(var(--play-margin) + env(safe-area-inset-left, 0px));
    --deck-gap: clamp(5px, calc(var(--viewport-height) * .012), 7px);
    --readout-height: clamp(50px, calc(var(--viewport-height) * .108), 58px);
    --key-height: clamp(44px, calc(var(--viewport-height) * .10), 57px);
    --drum-rail: 10px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { overflow: hidden; overscroll-behavior: none; }
body {
    margin: 0;
    height: min(100dvh, var(--viewport-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--play-top) var(--play-right) var(--play-bottom) var(--play-left);
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid #156789; outline-offset: 2px; }
.instrument {
    position: relative;
    isolation: isolate;
    width: min(100%, 540px);
    height: min(100%, calc((100vw - var(--play-left) - var(--play-right)) * 1.61 + 28px), 900px);
    padding: 25px 17px 19px;
    display: grid;
    min-width: 0;
    grid-template: "title" auto "station" auto "deck" minmax(0, 1fr) / minmax(0, 1fr);
    gap: 8px;
    border-radius: 18px;
}
.instrument::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(#baad8e, #baad8e) center / calc(100% - 24px) calc(100% - 24px) no-repeat;
    border: 1px solid #514437;
    border-image: url("../art/observatory-chassis-v3.png") 14% 18% fill / 55px 39px stretch;
    box-shadow: 0 14px 27px #0706049c;
    pointer-events: none;
}
.instrument-header {
    grid-area: title;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) clamp(46px, 16vw, 74px) 44px;
    align-items: center;
    gap: 3px;
}
.title { min-width: 0; font-family: var(--marking-font); margin-left: 2px; }
.title-line { display: grid; gap: 2px; }
.title-brand {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    width: fit-content;
    font: 700 .625rem/1 system-ui, sans-serif;
    text-transform: uppercase;
    white-space: nowrap;
    color: #32281d;
}
.title-brand i {
    width: 10px;
    height: 10px;
    flex: none;
    background: linear-gradient(145deg, #f6d478, #dc9e18);
    box-shadow: inset 0 0 0 1px #78501d73;
}
h1, h2, p { margin: 0; }
h1 {
    font-size: clamp(1.375rem, 6.6vw, 1.75rem);
    font-weight: 700;
    line-height: .98;
    letter-spacing: .027em;
    text-transform: uppercase;
    color: #221a13;
    text-shadow: 0 1px #f4e5c49e;
}
.title p { font-size: .875rem; font-weight: 500; margin-top: 2px; line-height: 1.1; }
.observatory-stencil {
    display: block;
    width: 100%;
    height: 50px;
    object-fit: contain;
    opacity: .82;
    mix-blend-mode: multiply;
}
.back, .manual {
    display: grid;
    place-items: center;
    min-height: 44px;
    position: relative;
    isolation: isolate;
    border: 0;
    background: transparent;
    color: var(--ink);
    text-decoration: none;
    font: 700 1rem/1 var(--marking-font);
}
.back { font-family: system-ui, sans-serif; font-size: 1.4rem; }
.back::before, .manual::before {
    content: "";
    position: absolute;
    inset: 11px;
    z-index: -1;
    border: 1px solid #5e4c3a72;
    border-radius: 4px;
    background: #57452e14;
    box-shadow: inset 0 1px 2px #64513a85, 0 1px #fff0cf99;
}
.back:active::before, .manual:active::before { background: #57452e38; }
.station {
    grid-area: station;
    display: flex;
    justify-content: space-between;
    gap: 7px;
    align-items: center;
    padding: 2px 3px 2px 6px;
    font: 600 .75rem/1.15 var(--marking-font);
    text-transform: uppercase;
    letter-spacing: .07em;
}
.station-name { display: flex; align-items: center; gap: 6px; color: #4e4231; }
#level-label {
    margin-left: auto;
    padding: 3px 8px;
    white-space: nowrap;
    border: 1px solid #67513b;
    border-radius: 3px;
    background: linear-gradient(155deg, #dfc591, #be9d6a);
    box-shadow: inset 0 0 0 1px #f6deb29c, 0 2px 2px #46342154;
}
.pilot-light {
    position: relative;
    width: 25px;
    height: 12px;
    flex: none;
    border: 1px solid #39281e;
    border-radius: 5px;
    background:
        radial-gradient(ellipse at 72% 54%, #b67c2f, #7f4a18 16%, transparent 36%),
        linear-gradient(#5e482f, #302216 55%, #20150e);
    box-shadow: 0 0 0 1px #9f825f, inset 0 1px 1px #fff2ca66;
    pointer-events: none;
}
.pilot-light::after {
    position: absolute;
    content: "";
    inset: 1px 2px;
    border-radius: 4px;
    opacity: 0;
    background: linear-gradient(90deg, #ac571f, #ffbc56 42%, #ffeeac 72%, #cb6d18);
    box-shadow: 0 0 7px 2px #ffa340a6;
}
.pilot-spark {
    position: absolute;
    z-index: 1;
    right: -2px;
    top: 3px;
    width: 13px;
    height: 2px;
    border-radius: 50%;
    opacity: 0;
    background: linear-gradient(90deg, #ffb63e, #fff3be 62%, #ffcc5800);
    box-shadow: 0 0 3px #ffca63, 4px -2px 2px -1px #ffe2a0;
    transform-origin: left;
}
.instrument.idle .pilot-light::after { animation: relay-glow 4.6s linear infinite; }
.instrument.idle .pilot-spark { animation: relay-spark 4.6s linear infinite; }
@keyframes relay-glow {
    0%, 16%, 100% { opacity: 0; }
    3.5% { opacity: 1; }
    7% { opacity: .68; }
}
@keyframes relay-spark {
    0%, 1% { opacity: 0; transform: translateX(-5px) rotate(-12deg) scaleX(.3); }
    3.5% { opacity: .95; transform: translate(1px, -1px) rotate(-17deg) scaleX(1); }
    8%, 100% { opacity: 0; transform: translate(5px, -4px) rotate(-22deg) scaleX(.45); }
}
.assembly { grid-area: deck; container-type: size; min-width: 0; min-height: 0; }
.deck {
    --deck-fixed: calc(var(--readout-height) + var(--key-height) + 2 * var(--deck-gap));
    display: grid;
    grid-template: "board" min(100cqi, max(0px, 100cqb - var(--deck-fixed)))
        "readout" auto "actions" auto / minmax(0, 1fr);
    gap: var(--deck-gap);
}
.play-area {
    grid-area: board;
    position: relative;
    min-width: 0;
    min-height: 0;
    display: grid;
    place-items: center;
    container-type: size;
}
.board-frame {
    position: relative;
    width: var(--board-side, min(100cqi, 100cqb));
    height: var(--board-side, auto);
    aspect-ratio: 1;
    padding: 7px;
    border: 4px solid #6b5a4c;
    border-top-color: #94806a;
    border-bottom-color: #3f352b;
    background:
        radial-gradient(circle at 3px 3px, #c2ad90 0 1px, #5d4c3b 1.5px 2.7px, transparent 3px) top left / 6px 6px,
        radial-gradient(circle at 3px 3px, #b6a185 0 1px, #554435 1.5px 2.7px, transparent 3px) top right / 6px 6px,
        radial-gradient(circle at 3px 3px, #b6a185 0 1px, #554435 1.5px 2.7px, transparent 3px) bottom left / 6px 6px,
        radial-gradient(circle at 3px 3px, #99836a 0 1px, #473a2c 1.5px 2.7px, transparent 3px) bottom right / 6px 6px,
        linear-gradient(145deg, #4d4135, #28221c);
    background-repeat: no-repeat;
    border-radius: 9px;
    box-shadow: 0 3px 5px #2f2319a0, inset 0 0 0 1px #18130faa, 0 0 0 1px #3c3127;
}
.board-frame[inert] { visibility: hidden; }
.fit-notice {
    position: absolute;
    max-width: 27ch;
    text-align: center;
    padding: 8px;
    color: var(--ink);
    font-size: .9rem;
    font-weight: 700;
}
.board { display: grid; gap: clamp(3px, .95vw, 5px); grid-template: repeat(var(--size, 4), 1fr) / repeat(var(--size, 4), 1fr); width: 100%; height: 100%; }
.lamp {
    position: relative;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border: 1px solid #231a13;
    border-top-color: #8d7962;
    border-left-color: #6d5945;
    border-radius: 12%;
    background:
        radial-gradient(circle at 3px 3px, #c0a98b 0 .6px, #5c4732 1px 1.8px, transparent 2.2px) top left / 6px 6px,
        radial-gradient(circle at 3px 3px, #b19a7b 0 .6px, #513d2a 1px 1.8px, transparent 2.2px) bottom right / 6px 6px,
        linear-gradient(145deg, #6f5d4a, #30251b 78%);
    background-repeat: no-repeat;
    box-shadow: 0 1px 1px #160e0ab3;
    touch-action: manipulation;
}
.lamp::before, .lamp::after {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: 9%;
    pointer-events: none;
}
.lamp::before {
    background: #6a645d url("../art/observatory-lamp-glass.jpg") center / 100% 100%;
    box-shadow: inset 0 1px 2px #f0e2ca6e, inset 0 -2px 3px #100c09aa, 0 0 0 1px #241a11;
}
.lamp::after {
    opacity: 0;
    background: #d29147 url("../art/observatory-lamp-lit.jpg") center / 100% 100%;
    box-shadow: inset 0 1px 2px #ffefb838, inset 0 -2px 3px #7936135c, 0 0 5px #ffba5138;
    transition: opacity 85ms ease-out;
}
.lamp.repaired { border-top-color: #98806a; border-left-color: #856b54; }
.lamp.repaired::before, .lamp.repaired::after { filter: brightness(1.15) saturate(.7); transform: scaleX(-1); }
.lamp.lit::after { opacity: 1; }
.lamp:active:not(:disabled) { transform: scale(.975); }
.lamp:disabled { cursor: default; }
.lamp:focus-visible, .lamp.hinted { outline: 2px solid #fff9db; outline-offset: -4px; }
.lamp.hinted { outline: 3px dashed #ffeb94; outline-offset: -2px; z-index: 1; }
.lamp.tutorial-target {
    box-shadow: 0 0 9px #ffe2a689;
    z-index: 1;
}
.lamp.tutorial-target::after {
    outline: 3px solid #fff4c2;
    outline-offset: -3px;
    box-shadow: inset 0 0 0 4px #68411e;
}
.instrument.module-online .pilot-light::after { opacity: 1; }
.restoration {
    position: absolute;
    inset: 7px;
    z-index: 3;
    overflow: hidden;
    border-radius: 4px;
    background: #0d171a;
}
.repair-photo, .first-light {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.repair-art {
    position: relative;
    width: 222%;
    aspect-ratio: 4 / 5;
    background: url("../city/ruined.jpg") 0 0 / 100% 100%;
}
.repair-art.restored { background-image: url("../city/thriving.jpg?v=warm-materials"); }
.repair-art .observatory-piece {
    position: absolute;
    inset: 0;
    background: url("../city/restored.jpg") 0 0 / 100% 100%;
    clip-path: var(--area);
    opacity: var(--strength, 0);
    transition: opacity .45s ease-out;
}
.repair-marker {
    position: absolute;
    z-index: 1;
    outline: 1px solid #fff4b4;
    outline-offset: 2px;
    border-radius: 3px;
    box-shadow: 0 0 0 4px #251a13b8, 0 0 13px 4px #ffd06c8c;
    pointer-events: none;
}
.first-light { object-fit: cover; }
.repair-views {
    position: absolute;
    inset: auto 0 0;
    display: flex;
    justify-content: center;
    gap: 5px;
    padding: 5px 4px;
    background: linear-gradient(transparent, #161311d9);
}
.repair-views button {
    min-width: 44px;
    min-height: 44px;
    padding: 0 8px;
    border: 1px solid #a98c62;
    border-radius: 3px;
    background: #29251eef;
    color: #fff0ce;
    font: 600 .85rem/1 var(--marking-font);
}
.repair-views button[aria-pressed="true"] {
    background: #f5ca7c;
    color: #211a0f;
}
.instrument.module-online .deck .key {
    font-size: clamp(.82rem, 4.1vmin, 1.075rem);
}
.readout {
    grid-area: readout;
    min-height: var(--readout-height);
    display: grid;
    align-items: center;
    border: 3px solid #786654;
    border-top-color: #b1a087;
    border-bottom-color: #47392c;
    border-radius: 6px;
    background:
        radial-gradient(circle at 50% 50%, #ab977f 0 1px, #514334 1.5px 2.5px, transparent 3px) left center / 9px 9px,
        radial-gradient(circle at 50% 50%, #ab977f 0 1px, #514334 1.5px 2.5px, transparent 3px) right center / 9px 9px,
        linear-gradient(145deg, #493d31, #25201b);
    background-repeat: no-repeat;
    box-shadow: inset 0 0 0 1px #1e1712, 0 2px 2px #493a2b83;
    color: var(--panel-light);
}
.stats, .result, .tutorial {
    min-width: 0;
    padding: clamp(2px, calc((var(--viewport-height) - 460px) / 25), 4px) 12px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
}
.tutorial {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 9px;
    font: 600 .95rem/1.15 var(--marking-font);
}
.tutorial span {
    padding: 2px 5px;
    border: 1px solid #a27f53;
    border-radius: 3px;
    color: #ffe3a8;
    background: #2a2118;
    font-size: .875rem;
    font-variant-numeric: tabular-nums;
}
.gauge { display: grid; line-height: 1; justify-items: center; gap: 4px; min-width: 0; }
.gauge + .gauge { border-left: 1px solid #e5cda641; }
.result-detail span { font: 500 .8125rem/1.15 var(--marking-font); }
.stats span { font: 600 .75rem/1 var(--marking-font); text-transform: uppercase; letter-spacing: .06em; }
.drum {
    position: relative;
    width: min(81%, 76px);
    height: clamp(22px, calc(var(--viewport-height) * .05), 27px);
    display: grid;
    place-items: center;
    overflow: hidden;
    isolation: isolate;
    padding-inline: calc(var(--drum-rail) + 1px);
    border: 1px solid #0c0907;
    border-radius: 4px;
    background:
        linear-gradient(#170e0aa6 0%, transparent 32% 65%, #150e0abf 100%),
        repeating-linear-gradient(#7a664e 0 1px, #48392d 1px 3px, #251c15 3px 4px);
    box-shadow: 0 1px #b3987355, 0 0 2px #130d09;
}
.drum::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0 var(--drum-rail);
    background: linear-gradient(#a58b64, #e8d2a4 28%, #ecd7ad 60%, #a38a64);
    border-inline: 1px solid #665038;
    box-shadow: 1px 0 2px #1e150f, -1px 0 2px #1e150f;
}
.drum strong { color: #2c2117; font: 600 1.3rem/1 var(--marking-font); font-variant-numeric: tabular-nums; }
.result { display: flex; justify-content: space-between; gap: 5px; }
.result-detail { min-width: 0; display: grid; gap: 2px; line-height: 1.1; }
.result-detail strong { font: 700 1.05rem/1.05 var(--marking-font); }
.result-detail strong:focus { outline: none; }
.rating { display: flex; gap: 5px; }
.rating i {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 2px solid #967f5d;
    border-bottom-color: #4c3c2c;
    background: radial-gradient(circle at 40% 36%, #695844, #2b211a 80%);
    box-shadow: 0 1px 2px #120d0a;
}
.rating i.earned {
    background: radial-gradient(circle at 40% 36%, #f5d294, #de9d42 47%, #a35620 85%);
    box-shadow: 0 0 4px #ffb64e32, 0 1px 2px #120d0a;
}
.controls { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.deck > .controls {
    grid-area: actions;
    width: 94%;
    justify-self: center;
    gap: clamp(10px, 4vw, 20px);
}
.key {
    position: relative;
    isolation: isolate;
    min-height: 44px;
    border: 2px solid #584637;
    border-radius: 7px;
    padding: 4px 6px;
    background: linear-gradient(145deg, #9e8d76, #574635 86%);
    color: var(--ink);
    font-weight: 800;
    text-transform: uppercase;
    font-size: .82rem;
    letter-spacing: .045em;
    box-shadow: inset 0 1px 1px #d6c19dce, inset 0 -2px 1px #28211880, 0 2px 2px #4134279a;
    touch-action: manipulation;
}
.deck .key {
    min-height: var(--key-height);
    border: 1px solid #65513f;
    background: #bec0a5 url("../art/observatory-key-v3.jpg") center / 100% 100%;
    box-shadow: 0 2px 2px #21160db0;
    text-shadow: 0 1px #fff0c27a;
    font: 600 clamp(1rem, 4.8vw, 1.125rem)/1.05 var(--marking-font);
    letter-spacing: .035em;
}
.key::before {
    position: absolute;
    content: "";
    z-index: -1;
    inset: 3px 5px 5px;
    border-radius: 3px;
    background: linear-gradient(#eedcbe, #d5ba90 91%, #ae8c60);
    box-shadow: inset 0 1px 2px #fff9dfce, inset 0 -2px 2px #836b49a0, 0 2px 0 #2f2115;
}
.key-primary::before { background: linear-gradient(#ffcf61, #efa415 86%, #be7409); }
.key:active::before { transform: translateY(2px); box-shadow: inset 0 1px 3px #553c24a0; }
.deck .key::before {
    inset: 14% 8% 16%;
    transform: none;
    box-shadow: none;
    background: var(--key-tint, linear-gradient(transparent, transparent)),
        url("../art/observatory-key-v3.jpg") center / 119% 143%;
    background-blend-mode: multiply;
}
.deck .key-primary { --key-tint: linear-gradient(#ffd16c, #f5ab21); }
.deck .key > span:first-child { display: inline-block; }
.deck .key:active::before, .deck .key:active > span:first-child { transform: translateY(2px); }
.deck .key:active::before { filter: brightness(.91); }
.key:disabled { cursor: default; opacity: .65; }
.deck .has-hints {
    padding-bottom: 14px;
    background-color: #423022;
    background-position: center top;
    background-size: 100% calc(100% - 10px);
    background-repeat: no-repeat;
}
.deck .has-hints::before { bottom: calc(16% + 7px); }
.deck .has-hints:disabled { opacity: 1; }
.deck .has-hints:disabled::before { filter: saturate(.68) brightness(.88); }
.hint-lights {
    position: absolute;
    inset: auto 0 2px;
    display: flex;
    justify-content: center;
    gap: 5px;
    pointer-events: none;
}
.hint-lights i {
    width: 7px;
    height: 7px;
    border: 1px solid #977751;
    border-radius: 50%;
    background: #2b1d13;
    box-shadow: inset 0 1px #150c08;
}
.hint-lights .available {
    background: radial-gradient(circle at 42% 34%, #fff0b4, #e9a943 48%, #a55b1f 85%);
    box-shadow: 0 0 4px #ffaa3c73;
}
.screen-reader { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
dialog {
    width: min(352px, calc(100% - var(--play-left) - var(--play-right)));
    max-height: calc(var(--viewport-height) - var(--play-top) - var(--play-bottom));
    inset: var(--play-top) var(--play-right) var(--play-bottom) var(--play-left);
    overflow: hidden;
    border: 3px solid #645144;
    border-radius: 10px;
    background: #dbc9a5;
    color: var(--ink);
    padding: 14px;
}
dialog::backdrop { background: #140e0ac2; }
.dialog-body { display: grid; gap: 10px; }
.dialog-body h2 { font-size: 1.25rem; }
.dialog-body p { font-size: .875rem; }
.dialog-body form .key { width: 100%; }
.rule-example { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; }
.rule-cross { width: 62px; aspect-ratio: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.rule-cross i { border-radius: 2px; background: #6d6258; }
.rule-cross i:is(:nth-child(2), :nth-child(4), :nth-child(5), :nth-child(6), :nth-child(8)) { background: #dc971d; }
@media (max-height: 590px) { .instrument { padding-block: 21px 15px; gap: 6px; } }
@media (orientation: portrait) and (max-height: 530px) {
    :root { --deck-gap: 4px; }
    .instrument { padding-block: 16px 9px; gap: 4px; }
    .station { padding-block: 0; }
    .observatory-stencil { height: 40px; }
}
@media (max-width: 360px) {
    :root { --drum-rail: 8px; }
    .instrument { padding-inline: 13px; }
    .instrument::before { border-image-width: 44px 30px; }
    .board-frame { border-width: 3px; padding: 5px; }
    .instrument-header { grid-template-columns: 44px minmax(0, 1fr) 47px 44px; gap: 2px; }
}
@media (orientation: landscape) and (max-height: 550px) {
    .assembly, .deck { display: contents; }
    .instrument-header { grid-template-columns: 44px minmax(0, 1fr) 48px 44px; }
    .title-line h1 { font-size: 1.32rem; }
    .instrument {
        width: min(100%, 760px);
        height: 100%;
        grid-template: "board title" auto "board station" auto "board ." minmax(0, 1fr)
            "board readout" auto "board actions" auto / minmax(0, 1.5fr) minmax(0, 1fr);
        column-gap: 12px;
    }
}
@media (orientation: landscape) and (max-width: 670px) and (max-height: 550px) {
    :root { --drum-rail: 6px; }
    .instrument-header { grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 0; }
    .observatory-stencil { display: none; }
    .stats, .result { padding-inline: 8px; }
    .deck .key { font-size: .94rem; }
}
@media (max-height: 330px) {
    dialog { padding: 9px; }
    .dialog-body { gap: 6px; }
}
@media (max-height: 550px), (max-width: 360px) {
    .dense-board .board-frame { padding: 2px; border-width: 2px; }
    .dense-board .board { gap: 1px; }
    .dense-board .restoration { inset: 3px; }
}
@media (orientation: portrait) and (max-height: 620px) {
    .instrument.dense-board {
        --deck-gap: 3px;
        --readout-height: 43px;
        --key-height: 44px;
        padding-block: 14px 7px;
        gap: 3px;
    }
    .dense-board .observatory-stencil { height: 39px; }
    .dense-board .gauge { gap: 2px; }
    .dense-board .drum { height: 21px; }
}
@media (orientation: landscape) and (max-height: 390px) {
    .instrument.dense-board { padding-block: 10px; }
}
@media (orientation: portrait) and (max-height: 620px), (orientation: landscape) and (max-height: 390px) {
    .dense-board .title-line { display: flex; align-items: center; gap: 4px; }
    .dense-board .title-brand > span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .instrument.idle .pilot-light::after, .instrument.idle .pilot-spark { animation: none; }
    .lamp::after, .repair-art .observatory-piece { transition: none; }
}
