.nuked-emulator { max-width: 100%; margin: 1em auto; color: #333; }
.nuked-emulator [hidden] { display: none !important; }
.nuked-emulator *, .nuked-emulator *::before, .nuked-emulator *::after { box-sizing: border-box; }
.nuked-emulator .nuked-panel { max-width: 820px; margin: 0 auto 1em; padding: 20px; border: 1px solid #ddd; border-radius: 8px; background: #fff; box-shadow: 0 0 10px rgb(0 0 0 / .1); }
.nuked-emulator .nuked-status { margin: 0 0 15px; padding: 10px; background: #ffeb3b; text-align: center; font-weight: bold; }
.nuked-emulator .nuked-actions, .nuked-emulator .nuked-fields, .nuked-emulator .nuked-transport, .nuked-emulator .nuked-player-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.nuked-emulator .nuked-fields label { display: grid; flex: 1 1 240px; gap: 5px; }
.nuked-emulator button, .nuked-emulator select, .nuked-emulator input { padding: 9px 10px; border: 1px solid #ccc; border-radius: 4px; font: inherit; }
.nuked-emulator button { cursor: pointer; background: #f5f5f5; color: #333; }
.nuked-emulator button:disabled { cursor: wait; opacity: .55; }
.nuked-emulator .nuked-start { background: #4caf50; border-color: #4caf50; color: #fff; }
.nuked-emulator .nuked-panic { background: #dc3545; border-color: #dc3545; color: #fff; }
.nuked-emulator .nuked-screen { display: grid; place-items: center; width: 100%; min-height: 100px; overflow: hidden; background: #000; }
.nuked-emulator .nuked-screen canvas { display: block; width: auto; height: auto; max-width: 100%; image-rendering: pixelated; }
.nuked-emulator .nuked-screen:fullscreen { width: 100vw; height: 100vh; }
.nuked-emulator .nuked-screen:fullscreen canvas { width: 100%; height: 100%; object-fit: contain; }
.nuked-emulator .nuked-loading { opacity: 1; transition: opacity .45s ease; }
.nuked-emulator .nuked-loading.is-complete { opacity: 0; pointer-events: none; }
.nuked-emulator .nuked-loading-head, .nuked-emulator .nuked-loading-file > div { display: flex; justify-content: space-between; gap: 10px; }
.nuked-emulator .nuked-loading-files { display: grid; gap: 8px; margin-top: 10px; }
.nuked-emulator .nuked-loading-file { display: grid; gap: 3px; }
.nuked-emulator progress { width: 100%; accent-color: #4caf50; }
.nuked-emulator .nuked-player { margin-top: 1em; }
.nuked-emulator .nuked-player-head { justify-content: space-between; }
.nuked-emulator .nuked-transport { margin-top: 12px; }
.nuked-emulator .nuked-transport progress { flex: 1 1 260px; }
.nuked-emulator .nuked-note { color: #666; }
@media (max-width: 600px) { .nuked-emulator .nuked-panel { padding: 12px; } }

