/* Wasteland OS — /os/ — the workstation's chrome.
   One stylesheet for the whole desktop: boot, wallpaper, icons, windows,
   taskbar, start menu, apps, the 3D core sample, the screensaver.
   House palette (dead channel + amber phosphor), house fonts (Martian Mono
   for the machine's voice, Fraunces for what a mind wrote).
   Contrast: every text token here clears WCAG AA (>=4.5:1) on the ground it
   sits on — the faintest ink used for text is --ink-faint (#7c8698, ~4.7:1). */

:root {
  --void: #06070a;
  --ground: #0a0c11;
  --ground-band: #11141c;
  --ground-hi: #161a24;
  --ink: #e7eaf2;
  --ink-soft: #98a1b4;
  --ink-faint: #7c8698;
  --rule: #20252f;
  --rule-bright: #2e3645;
  --phosphor: #ffc94a;
  --phosphor-deep: #e0a52e;
  --cyan: #58d6e0;
  --mono: "Martian Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, Cambria, serif;
  --bar-h: calc(2.6rem + env(safe-area-inset-bottom, 0px));
  --bevel-hi: rgba(255, 255, 255, 0.08);
  --bevel-lo: rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }
/* several roots (#boot, #taskbar…) set their own display, which would silently
   defeat the hidden attribute — never let that happen */
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.5;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
:focus-visible { outline: 2px solid var(--phosphor); outline-offset: 2px; border-radius: 2px; }
a { color: var(--phosphor); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.18em; }

/* ---------- no-JS fallback ---------- */
.nojs { max-width: 40rem; margin: 8vh auto; padding: 0 1.2rem; font-family: var(--serif); font-size: 1.05rem; }
.nojs h1 { font-family: var(--mono); font-size: 1.2rem; letter-spacing: 0.08em; }
.nojs ul { line-height: 2; }
.nojs .aw-wayout { margin-top: 3rem; font-family: var(--mono); font-size: 0.72rem; color: var(--ink-soft); }

/* ---------- atmosphere ---------- */
#wallpaper { position: fixed; inset: 0; z-index: 0; }
#crt {
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 8%, transparent 58%, rgba(0, 0, 0, 0.38) 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.014) 0 1px, transparent 2px 3px);
}
body[data-scanlines="off"] #crt { background: radial-gradient(120% 90% at 50% 8%, transparent 58%, rgba(0, 0, 0, 0.38) 100%); }

/* ---------- boot ---------- */
#boot {
  position: fixed; inset: 0; z-index: 200; background: var(--void);
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start;
  padding: clamp(1rem, 6vh, 4rem) clamp(1rem, 7vw, 5rem); cursor: pointer;
}
#bootlog {
  margin: 0; font-family: var(--mono); font-size: clamp(11px, 1.5vw, 13.5px);
  line-height: 1.75; color: var(--ink-soft); white-space: pre-wrap; max-width: 60rem;
}
#bootlog .ok { color: var(--phosphor); }
#bootlog .dim { color: var(--ink-faint); }
#bootlog .bright { color: var(--ink); }
#bootskip {
  position: fixed; right: 1.2rem; bottom: 1rem; font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-faint);
}
#boot .cursor { display: inline-block; width: 0.55em; height: 1em; background: var(--phosphor); vertical-align: text-bottom; animation: aw-blink 1s steps(1) infinite; }
@keyframes aw-blink { 50% { opacity: 0; } }
body.crt-off #boot, body.crt-off #desk, body.crt-off #taskbar { animation: aw-poweroff 0.45s ease-in forwards; }
@keyframes aw-poweroff { to { transform: scaleY(0.004) scaleX(0.6); filter: brightness(3); } }

/* ---------- desktop ---------- */
#desk { position: fixed; inset: 0 0 var(--bar-h) 0; z-index: 1; overflow: hidden; }
#brand {
  position: absolute; right: 1.1rem; bottom: 0.8rem; z-index: 1; pointer-events: none;
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint);
}
#brand span { display: inline; }
#icons {
  position: absolute; inset: 0.9rem auto auto 0.9rem; z-index: 2;
  display: grid; grid-auto-flow: column;
  grid-template-rows: repeat(auto-fill, 5.6rem); grid-auto-columns: 5.4rem;
  gap: 0.45rem; height: calc(100% - 1.8rem);
}
.dicon {
  display: flex; flex-direction: column; align-items: center; gap: 0.42rem;
  width: 5.4rem; padding: 0.55rem 0.2rem 0.45rem; border: 1px solid transparent; border-radius: 4px;
  background: none; color: var(--ink); font-family: var(--mono); font-size: 10.5px;
  line-height: 1.25; text-align: center; cursor: pointer; user-select: none; -webkit-user-select: none;
}
.dicon:hover { background: rgba(255, 255, 255, 0.045); border-color: var(--rule); }
.dicon.sel { background: rgba(255, 201, 74, 0.09); border-color: rgba(255, 201, 74, 0.4); }
.dicon svg { width: 30px; height: 30px; display: block; }
.dicon .lbl { text-shadow: 0 1px 3px rgba(0,0,0,0.9); word-break: break-word; }

/* ---------- windows ---------- */
#windows { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.win {
  position: absolute; min-width: 260px; min-height: 160px; pointer-events: auto;
  display: flex; flex-direction: column;
  background: var(--ground);
  border: 1px solid var(--rule-bright);
  border-radius: 6px;
  box-shadow: inset 0 1px 0 var(--bevel-hi), inset 0 -1px 0 var(--bevel-lo), 0 24px 60px -24px rgba(0, 0, 0, 0.95);
  overflow: hidden;
}
.win.focused { border-color: color-mix(in srgb, var(--phosphor) 55%, var(--rule-bright)); }
.win.max { border-radius: 0; }
.tbar {
  display: flex; align-items: center; gap: 0.6rem; flex: 0 0 auto;
  padding: 0 0.35rem 0 0.75rem; height: 2rem;
  background: linear-gradient(to bottom, var(--ground-hi), var(--ground-band));
  border-bottom: 1px solid var(--rule);
  cursor: grab; user-select: none; -webkit-user-select: none; touch-action: none;
}
.win.max .tbar, body.mobile .tbar { cursor: default; }
.tbar:active { cursor: grabbing; }
.tbar .tglyph { flex: 0 0 auto; display: flex; }
.tbar .tglyph svg { width: 14px; height: 14px; }
.tbar .ttitle {
  flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 11px; letter-spacing: 0.07em; color: var(--ink);
}
.win:not(.focused) .tbar .ttitle { color: var(--ink-soft); }
.tbar .tbtns { display: flex; gap: 0.2rem; }
.tbar .tbtns button {
  width: 1.65rem; height: 1.5rem; border: 1px solid var(--rule); border-radius: 3px;
  background: var(--ground-band); color: var(--ink-soft); font-family: var(--mono);
  font-size: 11px; line-height: 1; cursor: pointer; padding: 0;
}
.tbar .tbtns button:hover { background: var(--ground-hi); color: var(--ink); border-color: var(--rule-bright); }
.tbar .tbtns .tclose:hover { background: #52222a; color: #ffd9de; border-color: #7c3540; }
.wbody { flex: 1 1 auto; position: relative; overflow: auto; background: var(--ground); }
.wbody > iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: var(--void); }
.win .rsz {
  position: absolute; right: 0; bottom: 0; width: 17px; height: 17px; cursor: nwse-resize; touch-action: none;
  background: linear-gradient(135deg, transparent 52%, var(--rule-bright) 52% 60%, transparent 60% 72%, var(--rule-bright) 72% 80%, transparent 80%);
}
.win.max .rsz, body.mobile .rsz { display: none; }
/* while dragging/resizing, don't let iframes eat pointer events */
body.wm-live iframe { pointer-events: none; }

/* app toolbar (browser-style strip under the titlebar) */
.wtool {
  display: flex; align-items: center; gap: 0.45rem; padding: 0.35rem 0.55rem;
  border-bottom: 1px solid var(--rule); background: var(--ground-band); flex: 0 0 auto;
  font-size: 11px;
}
.wtool .addr {
  flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--ink-soft); background: var(--ground); border: 1px solid var(--rule);
  border-radius: 3px; padding: 0.28rem 0.5rem;
}
.wtool button, .wtool a.btn {
  flex: 0 0 auto; border: 1px solid var(--rule); border-radius: 3px; background: var(--ground);
  color: var(--ink-soft); font-family: var(--mono); font-size: 10.5px; padding: 0.28rem 0.55rem;
  cursor: pointer; text-decoration: none;
}
.wtool button:hover, .wtool a.btn:hover { color: var(--ink); border-color: var(--rule-bright); text-decoration: none; }

/* ---------- taskbar ---------- */
#taskbar {
  position: fixed; left: 0; right: 0; bottom: 0; height: var(--bar-h); z-index: 100;
  display: flex; align-items: stretch; gap: 0.4rem;
  padding: 0.3rem 0.45rem calc(0.3rem + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--ground-band) 92%, transparent);
  border-top: 1px solid var(--rule-bright);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
#startbtn {
  flex: 0 0 auto; display: flex; align-items: center; padding: 0 0.75rem;
  background: var(--ground-hi); color: var(--phosphor); border: 1px solid var(--rule-bright);
  border-radius: 4px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em;
  cursor: pointer;
}
#startbtn:hover, #startbtn[aria-expanded="true"] { border-color: var(--phosphor-deep); background: #1b2029; }
#tasks { flex: 1 1 auto; display: flex; gap: 0.3rem; overflow-x: auto; scrollbar-width: none; }
#tasks::-webkit-scrollbar { display: none; }
.taskbtn {
  flex: 0 1 11rem; min-width: 5.5rem; display: flex; align-items: center; gap: 0.4rem;
  padding: 0 0.6rem; background: var(--ground); border: 1px solid var(--rule); border-radius: 4px;
  color: var(--ink-soft); font-family: var(--mono); font-size: 10.5px; cursor: pointer;
  overflow: hidden; white-space: nowrap;
}
.taskbtn svg { width: 12px; height: 12px; flex: 0 0 auto; }
.taskbtn span { overflow: hidden; text-overflow: ellipsis; }
.taskbtn.on { color: var(--ink); border-color: color-mix(in srgb, var(--phosphor) 45%, var(--rule)); background: var(--ground-hi); }
/* minimized: dimmer but still AA (never dim label text below 4.5:1 with opacity) */
.taskbtn.mind { color: var(--ink-faint); border-style: dashed; }
.taskbtn.mind svg { opacity: 0.6; }
#tray { flex: 0 0 auto; display: flex; align-items: center; gap: 0.55rem; padding-right: 0.2rem; }
#layerchip {
  background: none; border: 1px solid var(--rule); border-radius: 3px; color: var(--ink-soft);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; padding: 0.25rem 0.5rem; cursor: pointer;
}
#layerchip:hover { color: var(--phosphor); border-color: var(--rule-bright); }
#clock { font-size: 11px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* ---------- start menu ---------- */
#startmenu {
  position: fixed; left: 0.45rem; bottom: calc(var(--bar-h) + 0.35rem); z-index: 120;
  width: min(21rem, calc(100vw - 0.9rem)); max-height: min(75vh, 34rem); overflow-y: auto;
  background: color-mix(in srgb, var(--ground) 96%, transparent);
  border: 1px solid var(--rule-bright); border-radius: 6px;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.95);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  padding: 0.6rem;
}
#startmenu .sm-h {
  font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint);
  padding: 0.55rem 0.5rem 0.3rem;
}
#startmenu .sm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.25rem; }
#startmenu button.sm-i, #startmenu a.sm-i {
  display: flex; align-items: center; gap: 0.55rem; width: 100%; text-align: left;
  padding: 0.42rem 0.5rem; background: none; border: 1px solid transparent; border-radius: 4px;
  color: var(--ink-soft); font-family: var(--mono); font-size: 11.5px; cursor: pointer; text-decoration: none;
}
#startmenu .sm-i:hover { background: var(--ground-hi); color: var(--ink); border-color: var(--rule); text-decoration: none; }
#startmenu .sm-i svg { width: 15px; height: 15px; flex: 0 0 auto; }
#startmenu .sm-row { display: flex; gap: 0.25rem; }
#startmenu .sm-row .sm-i { justify-content: center; }

/* ---------- generic app body helpers ---------- */
.pad { padding: 1rem 1.1rem; }
.app-note {
  font-size: 10.5px; color: var(--ink-faint); border-top: 1px solid var(--rule);
  padding: 0.5rem 0.75rem; flex: 0 0 auto; background: var(--ground-band);
}

/* ---------- Files ---------- */
.files { display: flex; height: 100%; min-height: 0; }
.files .ftree {
  flex: 0 0 12.5rem; overflow-y: auto; border-right: 1px solid var(--rule);
  background: var(--ground-band); padding: 0.5rem 0.35rem;
}
.files .ftree button {
  display: flex; align-items: center; gap: 0.5rem; width: 100%; text-align: left;
  padding: 0.34rem 0.5rem; background: none; border: 1px solid transparent; border-radius: 3px;
  color: var(--ink-soft); font-family: var(--mono); font-size: 11px; cursor: pointer;
}
.files .ftree button:hover { color: var(--ink); background: var(--ground-hi); }
.files .ftree button.on { color: var(--ink); background: var(--ground-hi); border-color: var(--rule-bright); }
.files .ftree .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--seam, var(--ink-faint)); box-shadow: 0 0 6px var(--seam, transparent); flex: 0 0 auto; }
.files .ftree .cnt { margin-left: auto; color: var(--ink-faint); font-size: 9.5px; }
.files .fmain { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
.files .fhead { display: flex; align-items: center; gap: 0.6rem; padding: 0.45rem 0.7rem; border-bottom: 1px solid var(--rule); flex: 0 0 auto; }
.files .fhead .crumb { font-size: 11px; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files .fhead input {
  margin-left: auto; width: min(13rem, 45%); background: var(--ground-band); border: 1px solid var(--rule);
  border-radius: 3px; color: var(--ink); font-family: var(--mono); font-size: 11px; padding: 0.3rem 0.5rem;
}
.files .flist { flex: 1 1 auto; overflow-y: auto; padding: 0.35rem 0.45rem; }
.frow {
  display: flex; align-items: baseline; gap: 0.65rem; width: 100%; text-align: left;
  padding: 0.4rem 0.55rem; background: none; border: 0; border-bottom: 1px solid color-mix(in srgb, var(--rule) 60%, transparent);
  color: var(--ink-soft); cursor: pointer; font-family: var(--mono);
}
.frow:hover { background: var(--ground-band); color: var(--ink); }
.frow .ford { font-size: 9.5px; color: var(--ink-faint); flex: 0 0 2.2rem; }
.frow .fdot { width: 7px; height: 7px; border-radius: 50%; background: var(--seam, var(--ink-faint)); flex: 0 0 auto; align-self: center; }
.frow .fname { font-family: var(--serif); font-size: 14.5px; color: var(--ink); flex: 1 1 auto; min-width: 0; }
.frow .fdate { font-size: 9.5px; color: var(--ink-faint); flex: 0 0 auto; }
.files .fstatus { border-top: 1px solid var(--rule); padding: 0.4rem 0.7rem; font-size: 10px; color: var(--ink-faint); flex: 0 0 auto; }

/* ---------- Mail ---------- */
.mail { display: flex; height: 100%; min-height: 0; }
.mail .mlist { flex: 0 0 15rem; overflow-y: auto; border-right: 1px solid var(--rule); background: var(--ground-band); }
.mail .mrow {
  display: block; width: 100%; text-align: left; padding: 0.55rem 0.7rem;
  background: none; border: 0; border-bottom: 1px solid var(--rule); cursor: pointer; font-family: var(--mono);
}
.mail .mrow:hover, .mail .mrow.on { background: var(--ground-hi); }
.mail .mrow .mfrom { font-size: 11.5px; color: var(--ink); display: block; }
.mail .mrow .msub { font-size: 10px; color: var(--ink-soft); display: block; margin-top: 0.15rem; }
.mail .mrow .mdate { font-size: 9px; color: var(--ink-faint); display: block; margin-top: 0.2rem; }
.mail .mread { flex: 1 1 auto; overflow-y: auto; min-width: 0; display: flex; flex-direction: column; }
.mail .mhead { padding: 0.8rem 1rem 0.6rem; border-bottom: 1px solid var(--rule); }
.mail .mhead .h1 { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); }
.mail .mhead .h2 { font-size: 10.5px; color: var(--ink-faint); margin-top: 0.3rem; }
.mail .mbody { padding: 0.4rem 1rem 1.2rem; }
.mail .qa { margin: 1rem 0; }
.mail .qa .q { font-size: 10.5px; letter-spacing: 0.06em; color: var(--phosphor); margin-bottom: 0.35rem; }
.mail .qa .a { font-family: var(--serif); font-size: 14.5px; line-height: 1.6; color: var(--ink); white-space: pre-wrap; }

/* ---------- About / README / plain docs ---------- */
.doc { font-family: var(--serif); font-size: 15px; line-height: 1.62; max-width: 38rem; }
.doc h1 { font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--phosphor); margin: 0 0 0.9rem; }
.doc h2 { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); margin: 1.4rem 0 0.4rem; }
.doc p { margin: 0.5rem 0; color: var(--ink-soft); }
.doc b, .doc strong { color: var(--ink); font-weight: 500; }
.doc table { border-collapse: collapse; font-family: var(--mono); font-size: 11px; margin: 0.5rem 0; width: 100%; }
.doc td { border-top: 1px solid var(--rule); padding: 0.38rem 0.6rem 0.38rem 0; color: var(--ink-soft); vertical-align: top; }
.doc td:first-child { color: var(--ink-faint); white-space: nowrap; padding-right: 1.2rem; }
.doc .sdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 0.45rem; vertical-align: baseline; }
.doc kbd {
  font-family: var(--mono); font-size: 10px; border: 1px solid var(--rule-bright); border-bottom-width: 2px;
  border-radius: 3px; padding: 0.08rem 0.35rem; color: var(--ink); background: var(--ground-band);
}

/* ---------- Games folder ---------- */
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr)); gap: 0.6rem; padding: 0.9rem; }
.gamecard {
  display: flex; flex-direction: column; gap: 0.35rem; text-align: left; padding: 0.75rem 0.8rem;
  background: var(--ground-band); border: 1px solid var(--rule); border-radius: 5px; cursor: pointer;
  color: var(--ink-soft); font-family: var(--mono);
}
.gamecard:hover { border-color: var(--rule-bright); background: var(--ground-hi); }
.gamecard .gname { font-family: var(--serif); font-size: 1.05rem; color: var(--ink); }
.gamecard .ghook { font-size: 10.5px; line-height: 1.45; }
.gamecard .gkind { font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); }

/* ---------- Recycle bin ---------- */
.bin .binrow { display: flex; gap: 0.8rem; padding: 0.8rem 0.2rem; border-bottom: 1px solid var(--rule); align-items: flex-start; }
.bin .binrow svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 0.15rem; }
.bin .bint { font-family: var(--serif); font-size: 15px; color: var(--ink); }
.bin .binn { font-size: 11px; color: var(--ink-soft); line-height: 1.5; margin-top: 0.2rem; font-family: var(--mono); }

/* ---------- Settings ---------- */
.set .srow { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.6rem 0.2rem; border-bottom: 1px solid var(--rule); font-size: 11.5px; color: var(--ink-soft); }
.set select, .set button.tog {
  background: var(--ground-band); color: var(--ink); border: 1px solid var(--rule-bright); border-radius: 3px;
  font-family: var(--mono); font-size: 11px; padding: 0.3rem 0.55rem; cursor: pointer;
}

/* ---------- Core sample (3D) ---------- */
.core { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(140% 100% at 50% 0%, #0d1017, var(--void) 75%); touch-action: none; }
.core .stage { position: absolute; inset: 0; perspective: 640px; perspective-origin: 50% 38%; }
.core .slab {
  /* centred: width is min(30rem,76%), so the margin must be the LESS negative
     of the two halves — max(), not min() (min() clipped slabs off narrow stages) */
  position: absolute; left: 50%; top: 40%; width: min(30rem, 76%); margin-left: max(-15rem, -38%);
  padding: 0.5rem 0.9rem; border: 1px solid color-mix(in srgb, var(--seam, #888) 55%, var(--rule));
  border-radius: 4px; background: color-mix(in srgb, var(--ground-band) 88%, var(--seam, transparent));
  transform-style: preserve-3d; will-change: transform, opacity; cursor: pointer;
}
.core .slab .st { font-family: var(--serif); font-size: 15px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* slab microtext sits on a seam-tinted panel — --ink-faint measures 4.0–4.3:1
   there, so it takes the brighter soft ink to hold the AA floor */
.core .slab .sm { font-size: 9px; color: var(--ink-soft); letter-spacing: 0.08em; margin-top: 0.12rem; display: flex; gap: 0.6rem; }
.core .slab.cur { box-shadow: 0 0 26px -6px var(--seam, var(--phosphor)); }
.core .hud {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 0.7rem 1rem 0.8rem; z-index: 3;
  background: linear-gradient(to top, rgba(4,5,8,0.92), transparent);
  display: flex; align-items: flex-end; gap: 1rem; pointer-events: none;
}
.core .hud .cur-t { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); }
.core .hud .cur-d { font-size: 10.5px; color: var(--ink-soft); line-height: 1.45; max-width: 34rem; }
.core .hud .cur-m { font-size: 9.5px; color: var(--ink-faint); letter-spacing: 0.1em; margin-top: 0.25rem; }
.core .hud .open { pointer-events: auto; }
.core .depth {
  position: absolute; right: 0.9rem; top: 0.8rem; bottom: 3.6rem; width: 3px; border-radius: 2px;
  background: var(--rule); z-index: 3;
}
.core .depth i { position: absolute; left: -2px; width: 7px; height: 7px; border-radius: 50%; background: var(--phosphor); box-shadow: 0 0 8px var(--phosphor); }
.core .chint { position: absolute; top: 0.8rem; left: 1rem; font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); z-index: 3; }

/* ---------- screensaver ---------- */
#saver { position: fixed; inset: 0; z-index: 300; background: var(--void); cursor: none; }

/* ---------- mobile ---------- */
@media (max-width: 720px) {
  #icons { grid-template-rows: repeat(auto-fill, 5.4rem); grid-auto-columns: 25vw; gap: 0.3rem; inset: 0.55rem auto auto 0.55rem; }
  .dicon { width: 25vw; font-size: 10px; }
  #brand span { display: none; }
  .win { border-radius: 0; }
  .files .ftree { flex-basis: 9.5rem; }
  .mail { flex-direction: column; }
  .mail .mlist { flex: 0 0 34%; border-right: 0; border-bottom: 1px solid var(--rule); }
  #startmenu .sm-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  #boot .cursor { animation: none; }
  body.crt-off #boot, body.crt-off #desk, body.crt-off #taskbar { animation: none; opacity: 0; }
}
