:root {
  color-scheme: dark;
  --paper: #eeede4;
  --dim: #b3b2a6;
  --orange: #ff794d;
  --mono: "IBM Plex Mono", Consolas, "Liberation Mono", Menlo, monospace;
  font-family: "Barlow", "Helvetica Neue", Arial, sans-serif;
  color: var(--paper);
  background: #191a18;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100svh; background: radial-gradient(ellipse at 48% 15%, #36363145, transparent 65%), repeating-linear-gradient(135deg, #ffffff02 0 1px, transparent 1px 4px); }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, .glass:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.console { width: min(100% - 3rem, 62rem); margin: auto; padding: clamp(1.25rem, 4.2vh, 3rem) 0 2rem; }
.masthead, .identity, nav, .tool, .metal-bar, .controls, .action, .hardware, dialog header { display: flex; align-items: center; }
.masthead { justify-content: space-between; margin: 0 .1rem 1.4rem; gap: 1rem; }
.identity { gap: .95rem; }
h1, h2, p { margin: 0; }
h1 { font: 850 clamp(2rem, 4vw, 3rem)/.96 "Arial Black", "Helvetica Neue", Arial, sans-serif; letter-spacing: -.055em; }
.identity p { margin-top: .5rem; color: var(--dim); font: .78rem/1.2 var(--mono); }
.identity p span { color: #867e70; padding: 0 .15rem; }
.disk { width: 2.85rem; height: 2.85rem; background: var(--orange); clip-path: polygon(0 0, 77% 0, 100% 23%, 100% 100%, 0 100%); position: relative; }
.disk::before, .disk::after { content: ""; position: absolute; background: #24231f; }
.disk::before { inset: 0 24% 56% 18%; }
.disk i { position: absolute; z-index: 1; left: 51%; width: 9%; height: 30%; background: var(--orange); }
.disk::after { inset: 58% 17% 9%; background: repeating-linear-gradient(0deg, #292822 0 2px, transparent 2px 5px); border-top: 3px solid #292822; }
nav { gap: .5rem; }
.tool, .close { background: #252622; border: 1px solid #44453d; color: var(--paper); border-radius: .35rem; }
.tool { min-height: 2.6rem; min-width: 2.6rem; padding: .5rem .75rem; justify-content: center; gap: .55rem; font-size: .9rem; }
.tool:hover, .close:hover { background: #34352e; }
.tool b { font: bold .8rem/1 var(--mono); border: 1.5px solid currentColor; border-radius: 50%; width: 1rem; height: 1rem; display: grid; place-items: center; }
.expand { width: 1rem; height: 1rem; background: linear-gradient(currentColor,currentColor) top left / 6px 2px, linear-gradient(currentColor,currentColor) top left / 2px 6px, linear-gradient(currentColor,currentColor) top right / 6px 2px, linear-gradient(currentColor,currentColor) top right / 2px 6px, linear-gradient(currentColor,currentColor) bottom left / 6px 2px, linear-gradient(currentColor,currentColor) bottom left / 2px 6px, linear-gradient(currentColor,currentColor) bottom right / 6px 2px, linear-gradient(currentColor,currentColor) bottom right / 2px 6px; background-repeat: no-repeat; }
.machine { padding: 0 .8rem; border-radius: 1rem; border: 1px solid #505149; background: linear-gradient(160deg, #44463e, #373932 60%, #30322c); box-shadow: inset 0 1px 0 #68695f, inset 0 -3px 0 #242620, 0 12px 36px #0004; }
.metal-bar { min-height: 2.6rem; padding: .35rem .6rem; justify-content: space-between; font: bold .77rem/1 var(--mono); letter-spacing: .08em; }
.filename { color: #272921; background: #dad8c7; padding: .34rem .5rem .3rem; border-radius: 1px; box-shadow: 0 1px 2px #15160f44; }
.display-type { display: flex; align-items: center; gap: .55rem; color: #dcddce; font-size: .75rem; }
.display-type i { background: #929486; height: .8rem; width: 1px; }
.bezel { padding: .45rem; border-radius: .55rem; background: linear-gradient(165deg, #23251e 25%, #515348); box-shadow: 0 1px 0 #606257; }
.glass { container-type: inline-size; background: #0b0e0c; border-radius: .25rem; overflow: hidden; box-shadow: inset 0 0 2.5rem #0006; }
.screen { position: relative; margin: 0 auto; width: 80ch; height: 25lh; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; overscroll-behavior: contain; font: min(2.01cqw, 1.14rem, 2.04vh)/1.28 var(--mono); color: #eeeede; white-space: pre; tab-size: 4; }
.row { min-height: 1lh; }
.c90 {color:#969987} .c91 {color:#ff7266} .c92 {color:#89e473} .c93 {color:#fce274} .c94 {color:#93a1ff} .c95 {color:#ee86e5} .c96 {color:#7ae2dd} .c97 {color:#f0f1df}
.hardware { height: 1.55rem; justify-content: space-between; padding: 0 .16rem; }
.screw { width: .42rem; height: .42rem; border-radius: 100%; background: linear-gradient(135deg,#24261f 36%,#616359 38% 56%,#24261f 58%); box-shadow: 0 1px 0 #70716788; }
.vents { width: 4.5rem; height: .4rem; background: repeating-linear-gradient(90deg, #25271f 0 3px, #515348 3px 4px, transparent 4px 7px); }
.controls { margin-top: .9rem; min-height: 3.8rem; justify-content: space-between; gap: 1rem; border: 1px solid #3c3e35; border-radius: .5rem; background: #252621; padding: .5rem .6rem .5rem 1rem; }
#mode { color: #cecec1; font: .875rem/1.4 var(--mono); }
.action, .slots button { background: var(--orange); border: 1px solid #ff976f; color: #211b16; border-radius: .3rem; font-weight: 700; min-height: 2.55rem; justify-content: center; }
.action { padding: .55rem .9rem; gap: .8rem; }
.action:hover, .slots button:hover { background: #ff996f; }
kbd { font: .8rem/1.1 var(--mono); }
.action kbd { border: 1px solid #9d482d; padding: .15rem .23rem; border-radius: .2rem; }
.slots { display: flex; gap: .35rem; }
.slots button { width: 2.55rem; font-family: var(--mono); }
#command { flex: 1; display: flex; align-items: center; gap: .6rem; }
.prompt { color: var(--orange); font: bold 1.6rem/1 var(--mono); }
#entry { min-width: 0; width: 100%; border: 0; color: var(--paper); background: transparent; outline-offset: 0; padding: .6rem .2rem; font: 1rem/1.4 var(--mono); }
#entry::placeholder { color: #abae9f; }
dialog { max-width: min(29rem, 92vw); max-height: 85svh; padding: 1.5rem; border: 1px solid #707363; border-radius: .65rem; background: #282a24; color: var(--paper); }
dialog::backdrop { background: #090b08c9; }
dialog header { justify-content: space-between; gap: 1rem; }
dialog h2 { font-size: 1.65rem; letter-spacing: -.04em; }
.close { width: 2.3rem; height: 2.3rem; font-size: 1.45rem; }
dialog p { margin-top: 1rem; line-height: 1.5; }
dl { margin: .7rem 0 1rem; }
dl div { display: flex; gap: .65rem; align-items: baseline; padding: .25rem 0; }
dt { min-width: 3rem; } dd { margin: 0; }
dt kbd { display: inline-block; border: 1px solid #656858; border-radius: .2rem; color: #f2b79f; padding: .15rem .35rem; }
dialog small { display: block; color: var(--dim); line-height: 1.5; }
@media (max-width: 600px) {
  .console { width: calc(100% - 1.2rem); padding-top: 1.2rem; }
  .masthead { margin-bottom: 1.1rem; } .identity { gap: .65rem; }
  .disk { width: 2.15rem; height: 2.15rem; }
  .identity p { font-size: .75rem; }
  .tool { min-height: 2.75rem; min-width: 2.75rem; }
  .tool span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .machine { padding: 0 .36rem; border-radius: .7rem; }
  .metal-bar { min-height: 2.2rem; } .bezel { padding: .25rem; }
  .screen { min-height: 42svh; }
  .screen.title { width: 100%; height: max(42svh, 25lh); align-content: center; font-size: 3.52cqw; }
  /* Center the original 44-column logo independently of the DOS screen margins. */
  .title .row:nth-child(n+6):nth-child(-n+13) { width: 44ch; margin-inline: auto; text-indent: -18ch; }
  .title .row:nth-child(15), .title .row:nth-child(19), .title .row:nth-child(24) {
    white-space: normal; text-align: center; font-size: .8125rem;
  }
  .title .row:nth-child(24) { margin-inline: .65rem; text-align: left; }
  .title .row:nth-child(24) .c92 { float: right; }
  .screen:not(.title) { width: 100%; font-size: .9375rem; line-height: 1.35; height: 46svh; padding: .45rem; white-space: pre-wrap; overflow-wrap: anywhere; }
  .hardware { height: 1.2rem; }
  .controls { flex-wrap: wrap; gap: .5rem; padding: .55rem; }
  .action, .slots button { min-height: 2.75rem; }
  .slots { gap: .25rem; } .slots button { width: 2.75rem; }
  .action kbd { display: none; }
  #mode { font-size: .8rem; }
  #entry { font-size: 1rem; }
}
@media (min-width: 601px) and (max-height: 760px) {
  .console { width: min(100% - 3rem, 121vh); padding-top: 1rem; }
  .masthead { margin-bottom: .85rem; }
  .screen { font-size: min(2.01cqw, 2.2vh); }
}
