:root { color-scheme: dark; --fg: #e8e8e8; --dim: #9a9a9a; --link: #8ab4f8;
        --line: #8a8a8a; --ok: #7fcf9a; --bad: #e08b7a; --warn: #e0c07a;
        --term-bg: #1a1b26; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: #000; color: var(--fg);
       font: 16px/1.45 Georgia, "Times New Roman", serif;
       min-height: 100vh; display: flex; align-items: center;
       justify-content: center; padding: 24px; }
a { color: var(--link); }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

#intro { border: 1px solid var(--line); max-width: 640px; padding: 26px 30px 30px;
         text-align: center; }
#intro p { margin: 0 0 14px; }
#intro .by { color: #8a8a8a; font-size: 13px; letter-spacing: .14em;
             text-transform: uppercase; margin-bottom: 18px; }
#intro .by a { color: var(--link); text-decoration: none; }
#intro .by a:hover { text-decoration: underline; }
#intro p:last-of-type { margin-bottom: 22px; }
.big { display: block; width: 100%; margin: 0 0 10px; padding: 12px 18px;
       background: #000; color: var(--fg); border: 2px solid var(--fg);
       font: 400 28px/1.1 Georgia, "Times New Roman", serif; cursor: pointer; }
.big:hover { background: #1a1a1a; }
.big:disabled { color: #555; border-color: #555; cursor: default; }
.small { font-size: 14px; margin: 4px 0 0 !important; }
.link { background: none; border: 0; padding: 0; color: var(--link); font: inherit; cursor: pointer; text-decoration: underline; }
.big.quiet { font-size: 20px; border-width: 1px; color: var(--dim); border-color: var(--line); }

#bar-progress { height: 3px; background: #1e1e1e; margin: 0 0 10px; }
#fill { height: 100%; width: 0; background: var(--fg); transition: width .2s linear; }

#log { margin-top: 18px; text-align: left; max-height: 30vh; overflow: auto;
       padding-top: 14px; border-top: 1px solid #333;
       font: 13px/1.5 ui-monospace, Menlo, Consolas, monospace; }
#log:empty { display: none; }
.line { padding: 1px 0; }
.line.ok { color: var(--ok); }
.line.bad { color: var(--bad); }
.line.warn { color: var(--warn); }

body.loaded { display: block; padding: 0; }
#stage { position: fixed; inset: 0; display: flex; flex-direction: column;
         background: var(--term-bg); }
#termwrap { flex: 1 1 auto; min-height: 0; padding: 10px 0 4px 12px; overflow: hidden; }
#term { height: 100%; }
#bar { flex: 0 0 40px; display: flex; align-items: center; gap: 18px;
       padding: 0 18px; border-top: 1px solid #1e1e1e; background: #050505;
       font: 13px/1 Georgia, "Times New Roman", serif; color: #6f6f6f;
       letter-spacing: .04em; white-space: nowrap; overflow-x: auto; }
#bar .name { color: #b9b9b9; }
#diskstate { color: #5d5d5d; }
#state.ok { color: var(--ok); }
#state.bad { color: var(--bad); }
#corner { display: flex; gap: 14px; align-items: center; margin-left: auto; }
#corner button, #corner label { font: inherit; letter-spacing: inherit; background: none;
  border: 0; color: #6f6f6f; cursor: pointer; padding: 0; }
#corner button:hover { color: #d0d0d0; }
#corner select { font: inherit; background: #0b0b0b; color: #b9b9b9;
  border: 1px solid #2a2a2a; padding: 3px 6px; }
#corner a { color: #6f8fc0; text-decoration: none; }
#corner a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  body { padding: 14px; }
  #intro { padding: 20px 18px 22px; }
  .big { font-size: 22px; }
  #bar { gap: 12px; padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) { #fill { transition: none; } }
#screenwrap { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; background: #000; }
#screenwrap[hidden] { display: none; }
#screen { max-width: 100%; max-height: 100%; width: auto; height: auto; aspect-ratio: 4 / 3; outline: none; cursor: none; image-rendering: auto; }
