:root {
  color-scheme: dark;
  --ink: #e0e5e9;
  --muted: #a3adba;
  --line: #9c7bc133;
  --ds-accent: #c5f2b1;
  --mono: "Cascadia Code", Consolas, monospace;
  --sans: "Segoe UI", Arial, sans-serif;
}
.game-library-open { position: absolute; top: max(150px,calc(env(safe-area-inset-top) + 134px)); right: max(24px,env(safe-area-inset-right)); z-index: 4; padding: 9px 16px; border: 1px solid #edc57466; border-radius: 12px; background: #20192bee; }
#game-library { width: min(920px,calc(100vw - 24px)); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 24px; background: #141923; color: var(--ink); border: 1px solid #c1a2dd66; border-radius: 20px; }
#game-library::backdrop { background: #000b; }
#game-library header { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
#game-library header h2 { margin: 0; }
#game-library header button { font-size: 24px; background: none; color: inherit; border: 0; padding: 6px 12px; }
.game-library-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.game-library-slot { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #20232e; min-width: 0; }
.game-library-slot h3 { margin-top: 0; font: bold 12px var(--mono); }
.game-library-state { min-height: 40px; overflow-wrap: anywhere; font: 10px/1.6 var(--mono); color: var(--muted); }
.game-library-slot label { display: block; font-size: 12px; }
.game-library-title { display: block; width: 100%; padding: 7px; margin: 6px 0 12px; background: #10141e; color: inherit; border: 1px solid var(--line); border-radius: 6px; }
.game-library-actions { display: grid; gap: 8px; }
.game-library-actions button, .game-library-file { padding: 8px; border: 1px solid #a791c466; border-radius: 8px; background: #2c2538; }
.game-library-file input { display: block; max-width: 100%; margin-top: 6px; font-size: 10px; }
@media (max-width: 620px) { .game-library-grid { grid-template-columns: 1fr; } #game-library { padding: 16px; } }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); font: 14px/1.6 var(--sans); background: #080c12; overflow: hidden; }
button, input, select { font: inherit; }
button { cursor: pointer; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button:disabled { cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #b2a1ed; outline-offset: 4px; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 12px; left: 12px; z-index: 20; padding: 12px; background: #17212c; }
.scene-loading { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: max(24px,env(safe-area-inset-top)) max(24px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-left)); overflow: auto; background: #080c12; text-align: center; }
.scene-loading-content { width: min(100%,520px); margin: auto; }
.scene-loading-logo { position: relative; width: min(100%,440px); margin: 0 auto 32px; }
.scene-loading-logo img { display: block; width: 100%; height: auto; filter: drop-shadow(0 0 16px #b8cfff30); }
.scene-loading #scene-loading-status { margin: 0 0 8px; color: #e0e5e9; font-size: 16px; }
#scene-loading-detail { margin: 0; color: var(--muted); }
#scene-loading-retry, #scene-loading-recover { margin: 24px auto 0; }
.scene-loading[data-failed] .scene-loading-logo::after { animation-play-state: paused; }
.desk { position: relative; width: 100%; height: 100dvh; min-height: 280px; isolation: isolate; overflow: hidden; }
#scene, #hardware-targets { position: absolute; inset: 0; }
#scene-canvas { display: block; width: 100%; height: 100%; touch-action: none; outline-offset: -5px; }
#scene-canvas:focus { outline: none; }
#scene:has(#scene-canvas:focus-visible) ~ .scene-hint { text-decoration: underline dotted; text-underline-offset: 4px; }
.desk-heading { position: absolute; top: max(28px, env(safe-area-inset-top)); left: 38px; right: 38px; display: flex; align-items: flex-start; justify-content: space-between; pointer-events: none; z-index: 3; }
.desk-brand { width: clamp(220px, 32vw, 420px); }
.desk-heading h1 { position: relative; margin: 0; line-height: 1; }
#scene[data-view="playing"] ~ .desk-heading h1 { visibility: hidden; }
.desk-heading h1 img { display: block; width: clamp(220px, 32vw, 420px); height: auto; filter: drop-shadow(0 1px 2px #080c12d9) drop-shadow(0 0 9px #dce5ef45); }
.desk-heading h1::after, .scene-loading-logo::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: url("./assets/website-logo.png") center / 100% 100% no-repeat; filter: brightness(1.7) drop-shadow(0 0 5px #f4fbff) drop-shadow(0 0 11px #cee8ffb3); mask-image: linear-gradient(90deg, transparent 42%, #000 50%, transparent 58%); mask-size: 300% 100%; mask-repeat: no-repeat; animation: website-logo-shimmer 6s linear infinite; }
.scene-loading-logo::after { animation-duration: 2s; animation-delay: -1.3s; }
#scene[data-view="playing"] ~ .desk-heading h1::after { animation-play-state: paused; }
.desk-heading h1[data-console]::after { display: none; }
.desk-heading h1[data-console] img { filter: none; }
.desk-heading h1[data-console="ds"] img { filter: drop-shadow(0 1px 2px #071a42) drop-shadow(0 0 5px #1358df) drop-shadow(0 0 14px #2498ffb3); }
@keyframes website-logo-shimmer {
  0%, 65% { mask-position: 100% 0; }
  95%, 100% { mask-position: 0% 0; }
}
#hardware-targets { pointer-events: none; }
#hardware-targets button { position: absolute; transform: translate(-50%, -50%); padding: 0; border: 0; border-radius: 20%; background: transparent; pointer-events: auto; touch-action: none; user-select: none; -webkit-user-select: none; }
#hardware-targets button:focus-visible { outline: 2px solid #f4edc1; outline-offset: 3px; }
#hardware-targets #ds-stylus { cursor: grab; }
#hardware-targets #ds-stylus[aria-pressed=true] { border: 1px solid var(--ds-accent); background: #080b35e6; color: var(--ds-accent); font: 9px var(--sans); cursor: pointer; }
.scene-hint { position: absolute; bottom: max(28px, calc(env(safe-area-inset-bottom) + 24px)); left: max(12px, env(safe-area-inset-left)); right: 12px; margin: 0; text-align: left; color: #bbc3cc; font: 9px/1.3 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; text-shadow: 0 1px 5px #000; }
.icon-dock { --dock-start: #2c2139ef; --dock-end: #14121eee; --dock-line: #c3a0ed40; --dock-ink: #cdbfe0; --dock-active: #b7a4ee20; --dock-bright: #e0d5ff; --dock-ring: #cdacff45; --dock-glow: #a763e51a; --dock-tooltip: #20192ef5; position: absolute; display: flex; align-items: center; justify-content: center; gap: 4px; padding: 6px; border: 1px solid var(--dock-line); border-radius: 18px; background: linear-gradient(150deg,var(--dock-start),var(--dock-end)); box-shadow: 0 12px 35px #0008, inset 0 1px var(--dock-ring); backdrop-filter: blur(20px); white-space: nowrap; z-index: 2; }
.desk[data-console=ds] .scene-actions { --dock-start: #171a70ef; --dock-end: #080b35ee; --dock-line: #36d9ff70; --dock-ink: #b9dfff; --dock-active: #245bff45; --dock-bright: #eaf5ff; --dock-ring: #36d9ff55; --dock-glow: #245bff35; --dock-tooltip: #080b35f5; }
.icon-dock button { position: relative; display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; padding: 10px; border: 1px solid transparent; border-radius: 12px; background: transparent; color: var(--dock-ink); transition: background .15s, box-shadow .15s; touch-action: manipulation; }
.icon-dock svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.icon-dock button:hover:not(:disabled) { box-shadow: inset 0 0 0 1px var(--dock-ring), 0 0 18px var(--dock-glow); }
.icon-dock button:hover::after, .icon-dock button:focus-visible::after { content: attr(data-tooltip); position: absolute; bottom: calc(100% + 15px); left: 50%; transform: translateX(-50%); width: max-content; max-width: 210px; white-space: normal; padding: 7px 10px; border: 1px solid var(--dock-line); border-radius: 8px; background: var(--dock-tooltip); color: var(--dock-bright); font: 11px/1.5 var(--sans); pointer-events: none; box-shadow: 0 5px 20px #0006; }
.icon-badge { position: absolute; right: 3px; bottom: 1px; color: #f0d7ff; font: 8px var(--mono); background: #20172d; border-radius: 4px; padding: 1px 3px; }
.scene-actions { bottom: max(44px, calc(env(safe-area-inset-bottom) + 28px)); left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 8px); flex-wrap: wrap; }
.lighting-actions { --dock-start: #32271bef; --dock-end: #1b1713ee; --dock-line: #edc57466; --dock-ink: #edcc83; --dock-active: #e8bc6520; --dock-bright: #fff0cf; --dock-ring: #edc57445; --dock-glow: #e8bc651a; --dock-tooltip: #292016f5; top: max(90px,calc(env(safe-area-inset-top) + 74px)); right: max(24px,env(safe-area-inset-right)); }
.lighting-label { margin: 0 4px 0 6px; font: 9px var(--mono); letter-spacing: 1px; text-transform: uppercase; }
.lighting-actions button:hover::after, .lighting-actions button:focus-visible::after { top: calc(100% + 12px); bottom: auto; right: 0; left: auto; transform: none; }
.dock-actions { display: contents; }
.movable-dock { width: max-content; max-width: calc(100% - 16px); flex-wrap: wrap; }
.movable-dock[data-moved] { left: var(--dock-x); top: var(--dock-y); right: auto; bottom: auto; transform: none; }
.scene-actions[data-collapsed] { width: max-content; }
.scene-actions[data-collapsed]:not([data-moved]) { left: max(12px, env(safe-area-inset-left)); transform: none; }
[data-dock-handle] { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.movable-dock[data-dragging] [data-dock-handle] { cursor: grabbing; }
.runtime-source[open] > .panel-logo { width: 170px; margin: -4px 0 -8px; }
.speed-menu { position: fixed; inset: auto 0 max(112px,calc(env(safe-area-inset-bottom) + 96px)); margin: 0 auto; width: min(310px,calc(100vw - 24px)); padding: 18px; border: 1px solid #b18bd84d; border-radius: 18px; color: var(--ink); background: #20192ef5; box-shadow: 0 15px 50px #0008; }
.pear-controls { position: fixed; inset: auto 0 max(112px,calc(env(safe-area-inset-bottom) + 96px)); margin: 0 auto; width: min(340px,calc(100vw - 24px)); max-height: calc(100dvh - 140px); overflow-y: auto; padding: 22px; border: 1px solid #edc57466; border-radius: 18px; color: #fff0cf; background: #292016f5; box-shadow: 0 15px 50px #0008; }
.pear-controls h2 { margin: 0 0 18px; font-size: 22px; }
.pear-controls output { float: right; font: 11px var(--mono); }
.pear-controls .volume-slider { accent-color: #efc06e; }
#pear-open { color: #edcc83; }
#axolotl-open { color: #f3aec0; }
:is(#pear-open,#axolotl-open)[data-lit] { background: #e8bc6518; }
#axolotl-controls .button-pair button[aria-pressed=true] { border-color: #f3aec0; background: #623745; color: #fff0ef; }
.speed-options { display: flex; gap: 8px; }
.speed-options button { flex: 1; min-height: 44px; border: 1px solid #9975bd55; border-radius: 10px; background: #33263f; font: 14px var(--mono); }
.speed-options button[aria-pressed=true] { border-color: #bf99ed; background: #664688; box-shadow: 0 0 18px #aa66dd26; }
.panel-logo { display: block; width: 240px; max-width: 80%; height: auto; margin: -4px 0 18px; }
.console-dock { top: max(26px, env(safe-area-inset-top)); right: max(24px,env(safe-area-inset-right)); z-index: 4; }
.console-picker { display: contents; }
.console-picker button { --picker-top: #492166ed; --picker-bottom: #190d30ed; --picker-edge: #c58aef80; --picker-accent: #e5a0ff; --picker-ink: #ede3ff; --picker-bright: #fff2ff; --picker-glow: #ab44ff40; width: auto; min-width: 44px; min-height: 44px; padding: 8px 14px; background: linear-gradient(155deg,var(--picker-top),var(--picker-bottom)); border: 1px solid var(--picker-edge); border-radius: 12px; color: var(--picker-ink); backdrop-filter: blur(12px); }
.console-picker #select-ds { --picker-top: #173c8fed; --picker-bottom: #080f40ed; --picker-edge: #51cfff80; --picker-accent: #68eaff; --picker-ink: #e6f8ff; --picker-bright: #f2fcff; --picker-glow: #2575ff40; }
.console-picker button:hover:not(:disabled) { border-color: var(--picker-accent); color: var(--picker-bright); }
.console-picker button[aria-pressed=true] { border-color: var(--picker-accent); box-shadow: inset 0 1px #ffffff26, inset 0 0 16px var(--picker-glow), 0 0 14px var(--picker-glow); color: var(--picker-bright); }
.console-picker button:focus-visible { outline-color: var(--picker-accent); }
.console-picker span { display: block; font: 7px var(--mono); letter-spacing: 1px; }
.console-picker button:disabled { opacity: .5; }
#ds-open { display: none; }
.ds-inspect-controls { position: absolute; top: max(185px, env(safe-area-inset-top)); left: 24px; z-index: 4; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; width: min(270px,calc(100vw - 24px)); padding: 12px; border: 1px solid #36d9ff70; border-radius: 14px; background: #080b35ee; box-shadow: 0 8px 25px #0006; font-size: 11px; }
.ds-inspect-controls :is(select,button) { min-width: 0; min-height: 44px; padding: 6px 9px; border: 1px solid #36d9ff55; border-radius: 9px; background: #171a70; color: #eaf5ff; }
.ds-inspect-controls button[aria-pressed=true] { border-color: var(--ds-accent); color: var(--ds-accent); }
.ds-inspect-controls label:not(.sr-only), .ds-inspect-controls input, .ds-inspect-controls p { grid-column: 1 / -1; }
.ds-inspect-controls output { float: right; }
.ds-inspect-controls input { width: 100%; height: 30px; margin: 0; accent-color: #36d9ff; }
.ds-inspect-controls p { margin: 0; color: #b9dfff; }
@media (max-width: 600px) {
  .ds-inspect-controls { top: max(108px, env(safe-area-inset-top)); left: 12px; width: calc(100vw - 24px); padding: 9px 12px; gap: 3px 10px; }
}
@media (max-height: 500px) and (min-width: 601px) {
  .ds-inspect-controls { top: 90px; left: 12px; width: 220px; }
  .scene-actions { gap: 3px; }
}
.desk[data-console=ds] #ds-open { display: grid; color: var(--ds-accent); }
.desk[data-console=ds] :is(#quick-speed,#quick-controls,#quick-autosave,#quick-save,#quick-load,#quick-slots,#quick-restart,#quick-screen-fullscreen,#tools-open) { display: none; }
.ds-runtime-source { position: fixed; top: 0; left: 0; width: 512px; height: 768px; opacity: 0; pointer-events: none; z-index: -1; }
.ds-runtime-source iframe { display: block; width: 512px; height: 768px; border: 0; }
.ds-tools { border-color: #73bac244; background: linear-gradient(155deg,#173842,#101b28 65%); }
.ds-tools .button-primary { background: #326e7a; border-color: #75b9c3; }
.ds-tools .button-primary:hover:not(:disabled) { background: #40818b; }
.ds-tools .button-secondary { background: #1d384b; border-color: #76c3d144; }
.ds-tools .text-button { color: #c9ed71; }
.ds-tools .panel-logo { max-width: 100%; width: 340px; margin-bottom: 20px; }
.ds-status { padding: 12px; border: 1px solid #73bac244; border-radius: 10px; background: #06222d; font-size: 11px; overflow-wrap: anywhere; }
.ds-status.error { border-color: #e7aa85; background: #38252d; color: #ffd2be; }
.tools-drawer > .panel-logo { margin-left: auto; margin-right: auto; }
.icon-dock button:hover:not(:disabled), .icon-dock button[aria-pressed=true] { background: var(--dock-active); color: var(--dock-bright); }
#lamp-toggle, #room-toggle { display: grid; }
#lamp-toggle[aria-pressed=true], #room-toggle[aria-pressed=true] { color: #efd6a1; background: #e8bc6518; }
.icon-dock button:disabled { opacity: .5; }
.action-divider { width: 1px; height: 17px; background: #8c9aaa45; margin: 0 4px; }
kbd { margin-left: 7px; font: 8px var(--mono); border: 1px solid #78839466; border-radius: 3px; padding: 1px 4px; color: #b7becc; }
footer { position: absolute; bottom: max(13px, env(safe-area-inset-bottom)); left: max(12px, env(safe-area-inset-left)); right: 12px; text-align: left; font-size: 9px; color: #a0a9b5; }
footer > span { margin: 0 5px; }
footer a:hover { color: #d0c0ff; text-decoration: underline; }
.runtime-source { display: block; position: fixed; inset: 0 auto auto 0; width: 720px; height: 480px; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; opacity: 0; pointer-events: none; z-index: -1; }
.runtime-source iframe { width: 720px; height: 480px; border: 0; display: block; }
#runtime-mount { height: 100%; }
.runtime-source:not([open]) > :not(#runtime-mount) { display: none; }
.runtime-source[open] { display: flex; flex-direction: column; gap: 12px; inset: 0; margin: auto; width: min(640px, calc(100vw - 24px)); height: min(680px, calc(100dvh - 24px)); padding: 20px; border: 1px solid var(--line); border-radius: 12px; opacity: 1; pointer-events: auto; z-index: auto; overflow: hidden; }
.runtime-source[open] #runtime-mount { flex: 1; min-height: 0; }
.runtime-source[open] iframe { width: 100%; height: 100%; border-radius: 5px; }
.native-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.native-header h2 { font-size: 22px; margin: 0; }
.runtime-source[open] .fineprint { margin: 0; }
#scene-error { position: absolute; top: 35%; left: 50%; transform: translateX(-50%); width: min(520px, calc(100% - 40px)); padding: 25px; background: #281d19; border: 1px solid #9c7156; border-radius: 8px; color: #f4cbaa; }
dialog { color: var(--ink); background: linear-gradient(155deg,#241a30,#14121e 60%); border: 1px solid var(--line); box-shadow: 0 15px 70px #0009; }
dialog::backdrop { background: #0009; backdrop-filter: blur(5px); }
.tools-drawer { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(440px, 100%); max-width: 100%; height: 100dvh; max-height: 100dvh; padding: 28px 30px 24px; border-width: 0 0 0 1px; overflow-y: auto; overscroll-behavior: contain; }
.drawer-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 24px; }
.eyebrow { font: 8px var(--mono); letter-spacing: 1.6px; color: #a4afbd; margin: 0 0 10px; }
.drawer-header h2, .help-dialog h2 { font-size: 23px; letter-spacing: -.8px; line-height: 1.2; margin: 0; font-weight: 650; }
.close-button { width: 32px; height: 32px; flex-shrink: 0; border: 1px solid #44505f; border-radius: 50%; background: transparent; font-size: 23px; line-height: 1; }
.close-button:hover { background: #283340; }
.drawer-section { border-top: 1px solid var(--line); padding: 22px 0; }
#native-open { margin-bottom: 22px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.section-heading h3 { font-size: 15px; letter-spacing: -.3px; margin: 0; font-weight: 650; }
.section-number { color: #9da9b7; font: 9px var(--mono); }
.small-badge { border: 1px solid #4d6148; border-radius: 3px; padding: 3px 5px; color: #c4d8a8; font: 8px var(--mono); white-space: nowrap; background: #243020; }
.small-badge.error { border-color: #875a49; color: #f0bea5; background: #33251f; }
.game-info { display: flex; align-items: center; gap: 12px; min-width: 0; margin-bottom: 18px; }
.game-info > div { min-width: 0; }
#game-monogram { display: grid; place-items: center; width: 37px; height: 42px; flex-shrink: 0; border: 1px solid #526076; border-radius: 4px 4px 7px 4px; background: #273240; font: 14px var(--mono); color: #c3ceda; box-shadow: inset 0 0 0 3px #1a232e; }
.game-info h4 { font-size: 12px; font-weight: 650; margin: 0 0 3px; overflow-wrap: anywhere; }
.game-info p { font-size: 9px; color: var(--muted); margin: 0; }
.button { width: 100%; border: 1px solid transparent; border-radius: 5px; padding: 11px 13px; font-size: 12px; font-weight: 600; display: flex; justify-content: center; align-items: center; gap: 15px; min-height: 42px; }
.button:disabled, .text-button:disabled { opacity: .4; }
.button-primary { background: #706397; color: #fff; border-color: #8d7db8; box-shadow: 0 2px 0 #332842; justify-content: space-between; }
.button-primary:hover:not(:disabled) { background: #8372b0; }
.button-secondary { background: #32253f; border-color: #a181be4d; color: #e0d3ef; }
.button-secondary:hover:not(:disabled) { background: #2b394a; }
.button-pair { display: flex; gap: 10px; margin-top: 12px; }
.button-pair > button { flex: 1; }
.text-button { border: 0; background: none; padding: 5px 0; color: #c0abea; font-size: 11px; text-align: left; }
.text-button:hover:not(:disabled) { color: #e5d7ff; text-decoration: underline; }
#demo { display: flex; width: 100%; justify-content: space-between; margin-top: 10px; }
.fineprint, .section-copy { font-size: 10px; color: #a9b4c1; line-height: 1.7; margin: 12px 0 0; }
.section-copy { font-size: 11px; margin: -4px 0 16px; }
.setting-row { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin: 0 0 16px; }
.setting-row strong, .setting-row label { display: block; font-size: 12px; font-weight: 500; }
.setting-row small { display: block; font-size: 10px; color: #a5b0bf; margin-top: 3px; }
.toggle { width: 35px; height: 20px; padding: 3px; border: 0; border-radius: 20px; background: #706994; flex-shrink: 0; }
.toggle span { display: block; width: 14px; height: 14px; border-radius: 50%; background: #fafbef; margin-left: 15px; transition: margin .15s; }
.toggle[aria-pressed=false] { background: #4a5868; }
.toggle[aria-pressed=false] span { margin-left: 0; }
.toggle:disabled { opacity: .45; }
.key-bindings { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.key-binding { display: flex; justify-content: space-between; align-items: center; min-width: 0; font-size: 11px; }
.key-binding button { font: 10px var(--mono); min-width: 66px; padding: 7px 9px; border: 1px solid #4b596a; border-bottom-width: 3px; border-radius: 4px; background: #202c3a; color: #dae2eb; }
.key-binding button.capturing { border-color: #bc9be8; background: #3f3058; color: #ecdcff; }
.key-binding button:disabled { opacity: .45; }
.volume-slider { width: 100%; accent-color: #62598b; margin: 0 0 15px; }
#volume-value { font: 10px var(--mono); color: #b1bdcb; }
.display-setting { margin-top: 22px; }
#shader, #checkpoint-slot { padding: 9px 10px; border: 1px solid #a181be66; border-radius: 8px; background: #2b2138; color: #e2d5ee; font-size: 11px; }
.drawer-footer { display: flex; justify-content: space-between; align-items: center; font-size: 10px; color: #a8b4c1; border-top: 1px solid var(--line); padding-top: 20px; }
.notice { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: linear-gradient(135deg, #ffffff18, #ffffff03), #251c327a; color: #f3edf9; border: 1px solid #dcc5ff55; border-radius: 16px; padding: 10px 12px; font-size: 11px; line-height: 1.6; box-shadow: 0 10px 28px #08051040, inset 0 1px #ffffff24; backdrop-filter: blur(18px) saturate(135%); -webkit-backdrop-filter: blur(18px) saturate(135%); pointer-events: auto; }
#notice-text { min-width: 0; max-height: min(18dvh, 112px); overflow: auto; overflow-wrap: anywhere; }
#notice-host { margin-top: 12px; width: 100%; pointer-events: none; }
#notice-host .notice button { pointer-events: auto; }
.notice.error { background: linear-gradient(135deg, #ffffff18, #ffffff03), #4225338c; color: #ffe4dc; border-color: #efb4a566; }
.notice button { flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid #dcc5ff26; border-radius: 10px; padding: 0; background: #ffffff08; font-size: 22px; color: inherit; }
#drawer-notice-host .notice { margin: 0 0 20px; }
.help-dialog { max-width: 570px; width: calc(100% - 32px); max-height: 85dvh; border-radius: 12px; padding: 35px; font-size: 12px; }
.help-dialog .close-button { position: absolute; top: 15px; right: 15px; }
.help-dialog h2 { padding-right: 20px; margin-bottom: 22px; }
.help-dialog h3 { font-size: 13px; margin: 22px 0 6px; }
.help-dialog p { color: #b3bfca; }
.help-warning { border-left: 3px solid #7f946c; background: #253026; padding: 12px 15px; margin-top: 20px; }
body.dragging #scene-canvas { outline: 4px solid #f6e5aa; outline-offset: -4px; }
.desk:fullscreen { width: 100vw; height: 100dvh; }
#screen-focus { position: fixed; inset: 0; z-index: 10; width: 100vw; height: 100dvh; min-width: 0; min-height: 0; padding: max(56px, calc(env(safe-area-inset-top) + 52px)) max(16px, env(safe-area-inset-right)) max(72px, calc(env(safe-area-inset-bottom) + 68px)) max(16px, env(safe-area-inset-left)); background: #000; display: flex; align-items: center; justify-content: center; overflow: hidden; container-type: size; }
#screen-focus-bezel { position: relative; flex: none; width: min(100cqw, calc(100cqh * 447 / 339)); aspect-ratio: 447 / 339; min-width: 0; min-height: 0; border-radius: 6.7% / 8.8%; background: linear-gradient(150deg, #242522, #090a09 18%, #111210 85%, #242522); box-shadow: inset 0 0 0 2px #4c4837, inset 0 0 0 7px #090a09, 0 0 30px #000; transform: scale(var(--screen-zoom, 1)); container-type: inline-size; }
/* Match the physical bezel's 4.47 x 3.39 surround and complete 4.05 x 2.7 LCD. */
#screen-focus-canvas { position: absolute; left: 4.69799%; top: 6.63717%; display: block; width: 90.60403%; height: auto; aspect-ratio: 3 / 2; outline-offset: -4px; }
.screen-focus-wordmark { position: absolute; bottom: 2.4%; left: 15.9%; width: 68.2%; height: auto; aspect-ratio: 1536 / 174; pointer-events: none; }
.screen-focus-zoom, .play-zoom { position: absolute; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 10px; min-height: 48px; max-width: calc(100% - 32px); padding: 8px 12px; border: 1px solid #b18bd84d; border-radius: 14px; background: linear-gradient(150deg, #2c2139ef, #14121eee); box-shadow: 0 0 24px #a763e51a; font: 11px var(--mono); }
.screen-focus-zoom input, .play-zoom input { width: min(140px, 35vw); height: 30px; margin: 0; accent-color: #bf99ed; cursor: pointer; }
.screen-focus-zoom output, .play-zoom output { min-width: 4ch; text-align: right; color: #ede2ff; }
.play-zoom { z-index: 3; }
@media (max-width: 1200px), (max-height: 500px) {
  .play-zoom { top: max(16px, env(safe-area-inset-top)); left: max(18px, env(safe-area-inset-left)); right: auto; bottom: auto; }
  .play-zoom input { width: min(140px, 28vw); }
}
#screen-focus-close { position: absolute; top: max(14px, env(safe-area-inset-top)); right: max(14px, env(safe-area-inset-right)); display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #b18bd84d; border-radius: 12px; background: #20192ed9; color: #ede2ff; }
#screen-focus-close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 600px) {
  .console-dock { top: max(20px, env(safe-area-inset-top)); right: max(12px,env(safe-area-inset-right)); gap: 4px; }
  .console-picker button { padding: 5px 9px; font-size: 11px; }
  .desk-heading { top: max(23px, env(safe-area-inset-top)); left: 18px; right: 18px; }
  .desk-heading h1 img { width: min(244px, calc(100vw - 130px)); }
  .desk-brand { width: min(244px, calc(100vw - 130px)); }
  .scene-actions { width: min(386px,calc(100vw - 4px)); max-width: calc(100vw - 4px); gap: 0; padding: 2px; }
  .scene-actions button { width: 44px; height: 44px; padding: 10px; }
  .lighting-actions { top: max(120px,calc(env(safe-area-inset-top) + 104px)); right: max(12px,env(safe-area-inset-right)); }
  #scene[data-view="playing"] ~ .lighting-actions:not([data-moved]) { top: max(84px,calc(env(safe-area-inset-top) + 68px)); }
  .lighting-label { display: none; }
  .ds-inspect-controls { top: max(188px,calc(env(safe-area-inset-top) + 172px)); }
  .action-divider { display: none; }
  .speed-menu { bottom: max(156px,calc(env(safe-area-inset-bottom) + 140px)); }
  .scene-actions kbd, #lamp-label, #room-label { display: none; }
  .tools-drawer { padding: 22px; }
}
@media (max-height: 500px) {
  .desk-heading { top: 16px; }
  .scene-actions { bottom: 16px; }
  .scene-hint { display: none; }
  footer { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .desk-heading h1::after, .scene-loading-logo::after { content: none; animation: none; }
}
