* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { width: 100%; height: 100dvh; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #000; }
body { margin: 0; width: 414px; height: 896px; overflow: hidden; position: relative; flex-shrink: 0; transform-origin: center; background: #000; color: #fff; font-family: "Courier New", monospace; -webkit-font-smoothing: none; font-smooth: never; image-rendering: pixelated; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.terminal-shell { position: relative; width: 414px; height: 896px; padding: 16px; overflow-x: hidden; overflow-y: auto; }
.boot-log { min-height: 18rem; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.35; font-size: clamp(.72rem, 3.2vw, 1rem); }
.artwork-stage { position: absolute; top: 50%; left: 50%; width: calc(100% - 32px); aspect-ratio: 1 / 1; height: auto; margin: 0; transform: translate(-50%, -50%); background: #000; overflow: hidden; }
.artwork-stage { cursor: default; }
.artwork-mode, .artwork-mode .terminal-shell { overflow: hidden; }
.artwork-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; opacity: 0; background: #000; object-fit: contain; object-position: center; image-rendering: -moz-crisp-edges; image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges; image-rendering: pixelated; transition: opacity .08s linear; }
.artwork-frame.active { opacity: 1; }
.artwork-stage.can-enter { cursor: pointer; }
.terminal-button { max-width: 100%; border: 1px solid #fff; border-radius: 0; background: #000; color: #fff; padding: .7rem .75rem; text-transform: uppercase; overflow-wrap: anywhere; }
.terminal-button:hover, .terminal-button:focus { background: #fff; color: #000; outline: 0; }
.archive-header, .viewer-header { display: flex; justify-content: space-between; gap: .75rem; align-items: center; border-bottom: 1px solid #fff; padding-bottom: .75rem; }
.archive-navigation { display: flex; gap: .4rem; flex-shrink: 0; }
.eyebrow { letter-spacing: .12em; font-size: .75rem; }
h1 { font-size: clamp(1.2rem, 4vw, 2rem); margin: .25rem 0; }
.terminal-status { min-height: 1.5rem; }
.archive-list { border: 1px solid #fff; }
.archive-exit { width: 100%; margin-top: .75rem; }
.archive-row { display: flex; justify-content: space-between; gap: .75rem; align-items: flex-start; min-width: 0; padding: .8rem .65rem; border-bottom: 1px solid #fff; }
.archive-row:last-child { border-bottom: 0; }
.archive-row button { min-width: 0; max-width: 100%; border: 0; background: transparent; color: #fff; text-align: left; padding: 0; overflow-wrap: anywhere; }
.archive-row button:hover, .archive-row button:focus, .archive-row button.active { background: #fff; color: #000; text-decoration: none; outline: 0; }
.archive-entry { display: block; width: 100%; }
.archive-meta { max-width: 45%; font-size: .75rem; text-align: right; overflow-wrap: anywhere; }
.viewer { position: fixed; inset: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); z-index: 10; background: #000; border: 1px solid #fff; padding: .65rem; overflow: auto; }
.viewer-body { min-height: 55svh; display: grid; place-items: center; padding: .75rem 0; }
.viewer-body img, .viewer-body video { max-width: 100%; max-height: 70vh; border: 1px solid #fff; }
.video-player-shell { width: 100%; max-width: 100%; border: 1px solid #fff; background: #000; padding: .65rem; }
.video-player-title { margin-bottom: .5rem; overflow-wrap: anywhere; text-align: left; }
.video-player { display: block; width: 100%; max-height: 60svh; background: #000; border: 1px solid #fff; }
.video-controls { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto auto; gap: .35rem; align-items: center; margin-top: .5rem; }
.video-fullscreen { border: 1px solid #fff; background: #000; color: #fff; min-height: 2.25rem; padding: .25rem .45rem; font: inherit; font-size: .7rem; }
.video-fullscreen:hover, .video-fullscreen:focus { background: #fff; color: #000; outline: 0; }
.viewer-body audio { width: min(100%, 700px); }
.viewer-body pre { width: 100%; white-space: pre-wrap; text-align: left; border: 1px solid #fff; padding: 1rem; overflow: auto; }
.download-link { border: 1px solid #fff; color: #fff; padding: .5rem .75rem; text-decoration: none; margin-top: 1rem; }
.audio-dock { position: relative; z-index: 5; width: 100%; border: 1px solid #fff; background: #000; padding: .65rem; margin: .75rem 0; }
.audio-dock-heading { display: flex; justify-content: space-between; gap: .75rem; align-items: center; min-width: 0; margin-bottom: .5rem; }
.audio-dock-heading span { overflow-wrap: anywhere; text-align: left; }
.audio-close, .audio-play, .audio-mute { border: 0; background: #000; color: #fff; padding: .25rem; min-width: 2.25rem; min-height: 2.25rem; font: inherit; }
.audio-close { border: 1px solid #fff; line-height: 1; }
.audio-play { font-size: 1.35rem; }
.audio-mute { border: 1px solid #fff; width: 2.25rem; height: 2.25rem; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.speaker-icon { display: block; width: .85rem; height: .8rem; flex: 0 0 auto; background: #fff; clip-path: polygon(0 32%, 30% 32%, 100% 0, 100% 100%, 30% 68%, 0 68%); }
.audio-close:hover, .audio-close:focus, .audio-play:hover, .audio-play:focus, .audio-mute:hover, .audio-mute:focus { background: #fff; color: #000; outline: 0; }
.audio-controls { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: .35rem; align-items: center; }
.audio-controls input { accent-color: #fff; min-width: 0; }
.audio-progress { width: 100%; }
.audio-volume-panel { border-top: 1px solid #fff; margin-top: .5rem; padding-top: .45rem; }
.audio-volume { display: block; width: 100%; }
.audio-status { display: block; font-size: .7rem; margin-top: .35rem; text-align: right; }
.audio-player-hidden { display: none; }
.archive-row { flex-direction: column; }
.archive-meta { max-width: 100%; text-align: left; }
.audio-dock { max-width: 100%; }
@media (max-width: 360px) {
  .audio-controls { grid-template-columns: auto auto minmax(0, 1fr) auto; }
}
