:root { color-scheme: dark; font-family: "Segoe UI", Arial, sans-serif; color: #e8f3f5; background: #0a2029; }
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.6; }
header, main, footer { width: min(1120px, calc(100% - 64px)); margin: auto; }
header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 18px 0; border-bottom: 1px solid #35515b; }
.brand { font: bold 25px Consolas, monospace; text-decoration: none; color: white; }
.brand span { color: #61ddd0; }
.badge { color: #61ddd0; font: 12px Consolas, monospace; letter-spacing: .08em; border: 1px solid #42626e; padding: 6px 10px; }
main { padding: 22px 0 8px; }
h1 { font-size: clamp(1.65rem, 3.5vw, 2.6rem); line-height: 1.15; letter-spacing: -.035em; margin: 0 0 8px; }
.intro, .hint, footer { color: #b1c9d1; }
.intro { margin: 0 0 22px; }
.demo-layout { display: grid; grid-template-columns: minmax(0, 1fr) 240px; align-items: start; column-gap: 24px; }
.machine-toolbar, .machine { grid-column: 1; min-width: 0; }
.embedded header, .embedded h1, .embedded .intro, .embedded footer { display: none; }
.embedded main { width: calc(100% - 32px); padding: 16px 0 0; }
.embedded .screen { max-height: max(240px, calc(100svh - 152px)); min-height: 0; }
.setup-panel { grid-column: 2; grid-row: 2; border: 1px solid #355a67; background: #102d38; padding: 20px; }
.setup-panel h2 { font-size: 1.15rem; line-height: 1.3; margin: 8px 0 18px; }
.setup-specs { margin: 0; font-size: .85rem; }
.setup-specs div + div { margin-top: 13px; }
.setup-specs dt { color: #93b2bd; font-size: .75rem; }
.setup-specs dd { margin: 2px 0 0; }
.setup-panel p { color: #b1c9d1; font-size: .8rem; margin: 20px 0 0; }
.setup-panel .setup-offline { padding-top: 16px; border-top: 1px solid #355a67; color: #8fe3d9; }
.controls, .notes { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.download-link { display: inline-flex; align-items: center; min-height: 44px; font-size: .85rem; text-underline-offset: 3px; }
button { min-height: 44px; border: 1px solid #5d7985; background: #244550; color: #f4fbfd; font: 600 .95rem "Segoe UI", sans-serif; padding: 10px 16px; cursor: pointer; }
button:hover:not(:disabled) { background: #365f6c; }
button:disabled { opacity: .45; cursor: default; }
button.primary { background: #61ddd0; color: #0a2029; }
button.primary:hover:not(:disabled) { background: #83eee3; }
#status { margin: 10px 0; min-height: 26px; font-size: .9rem; }
.screen { background: #040a0e; border: 1px solid #486570; width: 100%; aspect-ratio: 4 / 3; max-height: 720px; display: grid; place-items: center; overflow: hidden; }
.screen iframe { width: 100%; height: 100%; border: 0; }
#emulator-mount { width: 100%; height: 100%; display: grid; place-items: center; min-height: 0; }
#emulator-mount[aria-busy="true"] iframe { pointer-events: none; }
.screen:fullscreen { aspect-ratio: auto; width: 100vw; height: 100vh; max-height: none; }
.placeholder { padding: 24px; color: #99b4be; text-align: center; }
.hint { font-size: .82rem; margin: 10px 0; }
.touch-hint { display: none; }
@media (any-pointer: coarse) { .touch-hint { display: block; } .desktop-hint { display: none; } }
a { color: #61ddd0; }
:focus-visible { outline: 3px solid #edb956; outline-offset: 3px; }
footer { font-size: .8rem; padding: 0 0 22px; }
.notes-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
button.text-button { padding: 0; min-height: 34px; background: none; border: 0; color: #61ddd0; font-size: .82rem; text-decoration: underline; text-underline-offset: 3px; }
button.text-button:hover:not(:disabled) { background: none; color: #a3f5eb; }
dialog { width: min(600px, calc(100vw - 32px)); max-height: calc(100svh - 32px); padding: 26px 30px; margin: auto; border: 1px solid #527c87; border-top: 3px solid #61ddd0; background: #102d38; color: #e8f3f5; box-shadow: 0 20px 100px #0009; overflow-y: auto; }
dialog::backdrop { background: #020e16b8; }
.guide-heading, .guide-actions, .guide-loading-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.eyebrow { font: 12px Consolas, monospace; color: #61ddd0; letter-spacing: .12em; }
button.icon-button { font: 25px/1 Arial, sans-serif; min-width: 36px; min-height: 36px; padding: 4px; background: transparent; border-color: transparent; color: #a5c2cd; }
.guide-page { margin: 4px 0 12px; color: #9dbbc6; font-size: .8rem; }
.guide-panel h2 { font-size: clamp(1.4rem, 3.8vw, 1.9rem); line-height: 1.18; letter-spacing: -.025em; margin: 0 0 16px; }
.guide-panel p { color: #c4d8df; margin: 0 0 14px; }
.guide-panel strong { color: #f0fafa; }
.guide-panel .guide-aside { font-size: .85rem; color: #8fe3d9; }
.guide-keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 20px 0; }
.guide-keys span { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font-size: .76rem; color: #abc9d3; }
kbd { display: inline-grid; place-items: center; width: 38px; height: 36px; font: bold 18px Consolas, monospace; color: #b4f7ee; border: 1px solid #56868f; border-bottom: 3px solid #56868f; background: #173d49; border-radius: 4px; }
.guide-tips { padding-left: 22px; color: #c4d8df; margin: 0 0 18px; }
.guide-tips li { margin: 6px 0; }
.guide-loading { margin-top: 20px; border: 1px solid #355a67; background: #0a222d; padding: 14px 16px; }
.guide-loading-heading { justify-content: flex-start; font-size: .88rem; }
.loading-light { width: 8px; height: 8px; border-radius: 50%; background: #efc476; box-shadow: 0 0 0 4px #efc47614; flex: 0 0 auto; }
.guide-loading.is-ready .loading-light { background: #61ddd0; box-shadow: 0 0 0 4px #61ddd01a; }
.guide-loading.is-error .loading-light { background: #f99c86; }
.load-stages { list-style: none; display: flex; gap: 8px; padding: 0; margin: 16px 0 8px; }
.load-stages li { flex: 1; padding-top: 7px; border-top: 3px solid #35525c; color: #90afbb; font-size: .76rem; }
.load-stages li.is-current { border-color: #efc476; color: #f3dca9; }
.load-stages li.is-done { border-color: #61ddd0; color: #96e9df; }
#guide-status { margin: 0; color: #b5cdd6; font-size: .8rem; min-height: 2.6em; }
.guide-preference { display: flex; align-items: center; gap: 9px; margin: 18px 0; font-size: .8rem; color: #b5cdd6; cursor: pointer; }
.guide-preference input { width: 17px; height: 17px; accent-color: #61ddd0; flex-shrink: 0; }
.guide-actions { padding-top: 2px; }
#guide-back:disabled { visibility: hidden; }
@media (max-width: 560px) { dialog { padding: 18px 20px; } .guide-panel p, .guide-tips { font-size: .9rem; } .guide-loading { padding: 12px; } .guide-preference { font-size: .75rem; } .guide-actions button { padding: 10px 13px; } }
@media (min-width: 760px) and (min-height: 650px) { .screen { max-height: min(720px, calc(100svh - 360px)); min-height: 320px; } }
@media (max-width: 900px) { .demo-layout { grid-template-columns: minmax(0, 1fr); } .setup-panel { grid-column: 1; grid-row: auto; margin-top: 18px; } .setup-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } .setup-specs div + div { margin-top: 0; } }
@media (max-width: 560px) { header, main, footer { width: calc(100% - 32px); } .badge { font-size: 10px; } .notes { gap: 0; } }
