:root { color-scheme: dark; --ink: #d5d5d5; --dim: #888; --accent: #fff; --danger: #d77; }
* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: #000; color: var(--ink); font: 16px/1.55 "Cascadia Mono", "SFMono-Regular", Consolas, monospace; }
body::after { position: fixed; inset: 0; z-index: 5; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .9) 0 2px, transparent 2px 15px); content: ""; opacity: 0; pointer-events: none; }
body.glitching::after { animation: terminal-tear .11s steps(2, end) infinite; }
body.glitching .terminal { border-color: #fff; color: #fff; animation: terminal-collapse 1.45s steps(2, end) both; text-shadow: 7px 0 #d11, -7px 0 #1688d4; }
#glitch-dump { position: fixed; inset: 7vh 6vw; z-index: 6; margin: 0; color: #e6e6e6; font: 700 clamp(10px, 1.7vw, 18px)/1.35 "Cascadia Mono", "SFMono-Regular", Consolas, monospace; opacity: 0; pointer-events: none; text-shadow: 4px 0 #b11, -4px 0 #167dc2; white-space: pre-wrap; }
body.glitching #glitch-dump { animation: dump-stream 1.45s steps(2, end) both; }
@keyframes terminal-collapse { 0% { clip-path: inset(0); opacity: 1; } 12% { clip-path: polygon(0 0, 100% 0, 100% 10%, 0 16%, 0 27%, 100% 22%, 100% 100%, 0 100%); opacity: 1; } 25% { clip-path: polygon(0 0, 100% 0, 100% 34%, 0 28%, 0 40%, 100% 47%, 100% 100%, 0 100%); opacity: .45; } 43% { clip-path: polygon(0 0, 100% 0, 100% 57%, 0 51%, 0 68%, 100% 74%, 100% 100%, 0 100%); opacity: 1; } 58% { clip-path: inset(42% 0 42% 0); opacity: .9; } 72% { clip-path: inset(48% 0 48% 0); opacity: 1; } 100% { clip-path: inset(50% 0 50% 0); opacity: 0; } }
@keyframes terminal-tear { 0%, 100% { opacity: 0; transform: scaleY(1); } 30% { opacity: .45; transform: scaleY(1.6); } 55% { opacity: .05; transform: scaleY(.3); } 78% { opacity: .7; transform: scaleY(2.2); } }
@keyframes dump-stream { 0%, 38% { opacity: 0; clip-path: inset(100% 0 0 0); } 43% { opacity: .85; clip-path: inset(0 0 54% 0); } 51% { opacity: .1; clip-path: inset(28% 0 0 0); } 59% { opacity: 1; clip-path: inset(0 0 0 0); letter-spacing: .12em; } 72% { opacity: .7; clip-path: polygon(0 0, 100% 8%, 0 21%, 100% 34%, 0 47%, 100% 63%, 0 79%, 100% 91%, 100% 100%, 0 100%); } 100% { opacity: 0; } }
.terminal { width: min(820px, calc(100% - 32px)); min-height: calc(100vh - 64px); margin: 32px auto; padding: 24px; border: 1px solid #333; }
.output { min-height: 1.55em; padding-bottom: 10px; white-space: pre-wrap; overflow-wrap: anywhere; }.line { min-height: 1.55em; }.command { color: var(--accent); }.system { color: var(--dim); }.warning { color: var(--danger); }.file-title { color: var(--accent); font-weight: bold; }
#command-form { display: flex; gap: 10px; align-items: baseline; } #prompt { color: var(--accent); white-space: nowrap; } #command { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; caret-color: var(--accent); }
@media (max-width: 600px) { body { font-size: 14px; }.terminal { width: 100%; min-height: 100vh; margin: 0; padding: 16px; border: 0; } }
