:root {
  --hud-ink: #f6f1e7;
  --hud-bg: rgba(20, 22, 20, 0.52);
  --hud-line: rgba(255, 255, 255, 0.16);
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #1b1d1a; font: 14px/1.5 var(--mono); }
canvas#gl { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ------------------------------------------------ HUD over the photo */
.hud { position: fixed; z-index: 3; color: var(--hud-ink); }
.top { inset: 0 0 auto 0; display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; pointer-events: none; }
.top > * { pointer-events: auto; }
.name, .menu {
  background: var(--hud-bg);
  backdrop-filter: blur(10px) saturate(1.3);
  -webkit-backdrop-filter: blur(10px) saturate(1.3);
  border: 1px solid var(--hud-line);
  border-radius: 4px;
  padding: 7px 12px;
}
.name { font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; font-size: 12px; }
.menu { display: flex; gap: 20px; }
.menu a { color: rgba(246, 241, 231, 0.75); text-decoration: none; letter-spacing: 0.16em; font-size: 11px; }
.menu a:hover, .menu a[aria-current="page"] { color: #fff; }
.menu a[aria-current="page"]::before { content: "▶ "; }

.ctl { inset: auto 0 0 0; display: flex; justify-content: space-between; align-items: center; padding: 14px 24px; font-size: 11px; letter-spacing: 0.1em; pointer-events: none; }
.ctl > * { pointer-events: auto; }
.hint { background: var(--hud-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--hud-line); border-radius: 4px; padding: 6px 10px; }
.btns { display: flex; gap: 8px; }
.chip {
  font-size: 11px; letter-spacing: 0.14em; padding: 7px 12px; color: var(--hud-ink); text-decoration: none;
  background: var(--hud-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--hud-line); border-radius: 4px;
}
.chip:hover { border-color: rgba(255, 255, 255, 0.45); }
#sound::before {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; vertical-align: 1px;
  background: #9be27a; box-shadow: 0 0 6px rgba(155, 226, 122, 0.8);
}
#sound[aria-pressed="false"] { color: rgba(246, 241, 231, 0.7); }
#sound[aria-pressed="false"]::before { background: transparent; box-shadow: inset 0 0 0 1px rgba(246, 241, 231, 0.6); }
.at-screen, #unzoom, .at-desk-phone { display: none; }
.zoomed .at-screen, .zoomed #unzoom { display: inline-block; }
.zoomed .at-desk { display: none; }
/* the iPod chip stands in for the iPod where it's out of shot (scene.js sets .ipod-away) or there's no pointer to find it with */
#ipod-btn { display: none; }
.ipod-away #ipod-btn { display: inline-block; }
@media (max-width: 700px), (pointer: coarse) { #ipod-btn { display: inline-block; } }
.zoomed #ipod-btn { display: none; }

#loading { position: fixed; inset: 0; z-index: 9; display: grid; place-items: center; background: #1b1d1a; color: #d8d2c4; letter-spacing: 0.14em; font-size: 12px; transition: opacity 0.8s; }
.ready #loading { opacity: 0; pointer-events: none; }
.fallback { color: #eee; padding: 80px 24px; }

/* ------------------------------------------------ the page on the monitor */
.screen {
  position: fixed; left: 0; top: 0; z-index: 2;
  transform-origin: 0 0;
  border-radius: 18px;
  overflow: hidden;
  background: #0d0f10;
  pointer-events: none;           /* at the desk it's part of the picture */
  font: 16px/1.5 Verdana, Tahoma, "DejaVu Sans", sans-serif;
  color: #1c1c1c;
  -webkit-font-smoothing: antialiased;
}
.zoomed .screen { pointer-events: auto; }
.screen [hidden] { display: none !important; }

.win {
  position: absolute; inset: 10px 10px 44px 10px;
  display: flex; flex-direction: column;
  background: #d4d0c8;
  border: 2px solid; border-color: #fff #404040 #404040 #fff;
}
.titlebar {
  display: flex; justify-content: space-between; align-items: center;
  height: 30px; padding: 0 6px 0 10px;
  background: linear-gradient(90deg, #0a246a, #3a6ea5 60%, #a6caf0);
  color: #fff; font-weight: bold; font-size: 15px;
}
.tb { display: flex; gap: 3px; }
.tb button {
  width: 22px; height: 20px; display: grid; place-items: center; font-size: 12px; line-height: 1;
  background: #d4d0c8; color: #000; border: 1px solid; border-color: #fff #404040 #404040 #fff;
}
.tb button:active { border-color: #404040 #fff #fff #404040; }
.menubar { display: flex; gap: 2px; padding: 2px 4px; font-size: 14px; border-bottom: 1px solid #a0a0a0; }
.menubar button { padding: 2px 8px; font-size: 14px; border: 1px solid transparent; }
.menubar button:hover { border-color: #fff #808080 #808080 #fff; }
.menubar button:active { border-color: #808080 #fff #fff #808080; }
.toolbar { display: flex; align-items: center; gap: 8px; padding: 6px 8px; font-size: 14px; border-bottom: 1px solid #a0a0a0; }
.toolbar button { padding: 3px 10px; border: 1px solid; border-color: #fff #404040 #404040 #fff; background: #d4d0c8; font-size: 14px; }
.toolbar button:active { border-color: #404040 #fff #fff #404040; }
.toolbar label { flex: 1; display: flex; align-items: center; gap: 8px; color: #333; }
.addr { flex: 1; height: 31px; background: #fff; padding: 3px 8px; border: 2px solid; border-color: #808080 #fff #fff #808080; font-size: 14px; line-height: 21px; color: #000; white-space: nowrap; overflow: hidden; }
.addr.typing::after { content: ""; display: inline-block; width: 1px; height: 15px; margin-left: 1px; vertical-align: -2px; background: #000; }

.page { flex: 1; overflow-y: auto; background: #fbfaf6; outline: none; position: relative; }
.page::-webkit-scrollbar { width: 18px; background: #e4e1da; }
.page::-webkit-scrollbar-thumb { background: #d4d0c8; border: 2px solid; border-color: #fff #404040 #404040 #fff; }
.status { display: flex; justify-content: space-between; padding: 3px 10px; font-size: 13px; color: #333; border-top: 1px solid #fff; }

.taskbar {
  position: absolute; left: 10px; right: 10px; bottom: 6px; height: 34px; z-index: 40;
  display: flex; align-items: center; gap: 4px; padding: 3px;
  background: #d4d0c8; border-top: 2px solid #fff; font-size: 14px;
}
.taskbar button { font-size: 14px; }
.taskbar .start { flex: none; height: 26px; font-weight: bold; padding: 0 12px; border: 2px solid; border-color: #fff #404040 #404040 #fff; }
.taskbar .start[aria-expanded="true"] { border-color: #404040 #fff #fff #404040; background: #e8e6e0; }
.task-sep { flex: none; width: 2px; height: 22px; margin: 0 2px; border-left: 1px solid #808080; border-right: 1px solid #fff; }
.task-ql { flex: none; width: 28px; height: 24px; font-size: 17px; line-height: 1; color: #0a246a; border: 1px solid transparent; }
.task-ql:hover { border-color: #fff #808080 #808080 #fff; }
.task-ql:active { border-color: #808080 #fff #fff #808080; }
.taskbar .task {
  flex: 0 1 220px; min-width: 60px; height: 26px; padding: 0 10px; text-align: left;
  border: 2px solid; border-color: #fff #404040 #404040 #fff;
}
.taskbar .task span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.taskbar .task-on { border-color: #404040 #fff #fff #404040; background: #e8e6e0; font-weight: bold; }
.win button:focus-visible, .taskbar button:focus-visible, .dlg button:focus-visible { outline: 1px dotted #000; outline-offset: -4px; }

/* the tray: a note while music plays, the speaker (click to mute), the clock */
.tray {
  flex: none; margin-left: auto; height: 26px; display: flex; align-items: center; gap: 6px; padding: 0 2px 0 8px;
  border: 1px solid; border-color: #808080 #fff #fff #808080;
}
.tray-note { font-size: 16px; line-height: 1; color: #0a246a; }
.tray-vol { position: relative; width: 20px; height: 20px; }
.tray-vol::before {
  content: ""; position: absolute; left: 2px; top: 5px; width: 9px; height: 10px; background: #1c1c1c;
  clip-path: polygon(0 30%, 40% 30%, 100% 0, 100% 100%, 40% 70%, 0 70%);
}
.tray-vol::after {
  content: ""; position: absolute; left: 8px; top: 5px; width: 8px; height: 10px;
  border-right: 2px solid #1c1c1c; border-radius: 50%;
}
.tray-vol[aria-pressed="false"]::after {
  left: 9px; top: 7px; width: 10px; height: 10px; border: 2px solid #d01a10;
  background: linear-gradient(45deg, transparent 42%, #d01a10 42% 58%, transparent 58%);
}
.taskbar .clock { padding: 0 8px; }

/* the balloon tip that points down at the tray */
.tray-balloon {
  position: absolute; right: 18px; bottom: 50px; z-index: 55; width: 320px;
  padding: 9px 30px 11px 12px; cursor: pointer;
  background: #ffffe1; color: #000; border: 1px solid #000; border-radius: 8px;
  font-size: 14px; line-height: 1.35; box-shadow: 2px 3px 6px rgba(0, 0, 0, 0.3);
}
.tray-balloon b { display: block; margin-bottom: 3px; }
.tray-balloon::before, .tray-balloon::after { content: ""; position: absolute; top: 100%; border-style: solid; border-color: transparent; }
.tray-balloon::before { right: 86px; border-width: 14px 0 0 14px; border-top-color: #000; }
.tray-balloon::after { right: 87px; margin-top: -1px; border-width: 12px 0 0 12px; border-top-color: #ffffe1; }
.tray-x {
  position: absolute; right: 6px; top: 6px; width: 18px; height: 16px; display: grid; place-items: center;
  font-size: 12px; line-height: 1; border: 1px solid transparent;
}
.tray-x:hover { border-color: #fff #808080 #808080 #fff; }
.tray-pop { animation: tray-pop 0.18s ease-out; }
@keyframes tray-pop { from { opacity: 0; transform: translateY(6px); } }

/* the Start menu */
.sm-menu {
  position: absolute; left: 12px; bottom: 40px; z-index: 60; min-width: 250px; display: flex;
  background: #d4d0c8; border: 2px solid; border-color: #fff #404040 #404040 #fff;
  box-shadow: 1px 1px 0 #000, 3px 4px 10px rgba(0, 0, 0, 0.3);
}
/* the banner follows the items' height: its label sits out of flow, anchored bottom-left, sized to fit */
.sm-side { flex: none; width: 32px; position: relative; overflow: hidden; background: linear-gradient(0deg, #0a246a, #3a6ea5 70%, #a6caf0); }
.sm-side span {
  position: absolute; bottom: 6px; left: 50%; margin-left: -6px;
  writing-mode: vertical-rl; transform: rotate(180deg); color: #fff; font: bold 12px/1 Verdana, Tahoma, sans-serif; letter-spacing: 0; white-space: nowrap;
}
.sm-items { flex: 1; display: flex; flex-direction: column; padding: 2px; }
.sm-item { display: flex; align-items: center; gap: 12px; padding: 7px 20px 7px 8px; font-size: 15px; text-align: left; color: #000; }
.sm-item:hover, .sm-item:focus-visible { background: #0a246a; color: #fff; outline: none; }
.sm-sep { height: 2px; margin: 4px 2px; border-top: 1px solid #808080; border-bottom: 1px solid #fff; }
.sm-ico { position: relative; flex: none; width: 26px; height: 26px; font-style: normal; }
.sm-ico-web { border-radius: 50%; background: radial-gradient(circle at 35% 30%, #bfe3ff, #2f7fd8 55%, #0d3f8f); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.3); }
.sm-ico-web::before { content: ""; position: absolute; inset: 3px 8px; border: 2px solid rgba(255, 255, 255, 0.7); border-radius: 50%; }
.sm-ico-web::after { content: ""; position: absolute; left: 3px; right: 3px; top: 12px; height: 2px; background: rgba(255, 255, 255, 0.7); }
.sm-ico-amp { border-radius: 4px; background: linear-gradient(#3b3d53, #1f2030); box-shadow: inset 0 0 0 1px #6f7291; }
.sm-ico-amp::after { content: "♫"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 16px; line-height: 1; color: #1ee81e; }
.sm-ico-exit::before { content: ""; position: absolute; inset: 3px; border: 3px solid #b3261e; border-top-color: transparent; border-radius: 50%; }
.sm-ico-exit::after { content: ""; position: absolute; left: 11px; top: 1px; width: 4px; height: 12px; background: #b3261e; box-shadow: 0 0 0 2px #d4d0c8; }
.sm-item:hover .sm-ico-exit::after, .sm-item:focus-visible .sm-ico-exit::after { box-shadow: 0 0 0 2px #0a246a; }

/* dialogs: modal over the whole desktop, in the middle of it */
.dlg-layer { position: absolute; inset: 0; z-index: 50; display: grid; place-items: center; }
.dlg {
  width: 440px; background: #d4d0c8; border: 2px solid; border-color: #fff #404040 #404040 #fff;
  box-shadow: 1px 1px 0 #000, 4px 6px 16px rgba(0, 0, 0, 0.35);
}
.dlg-title {
  height: 28px; display: flex; align-items: center; justify-content: space-between; padding: 0 4px 0 8px;
  background: linear-gradient(90deg, #0a246a, #a6caf0); color: #fff; font-weight: bold; font-size: 14px;
}
.dlg-flash .dlg-title { animation: dlg-flash 0.3s steps(1, end) 2; }
@keyframes dlg-flash { 50% { background: linear-gradient(90deg, #808080, #c0c0c0); } }
.dlg-x {
  width: 22px; height: 20px; display: grid; place-items: center; font-size: 12px; line-height: 1;
  background: #d4d0c8; color: #000; border: 1px solid; border-color: #fff #404040 #404040 #fff;
}
.dlg-x:active { border-color: #404040 #fff #fff #404040; }
.dlg-body { display: flex; align-items: flex-start; gap: 16px; padding: 20px 20px 8px; }
.dlg-body p { margin: 6px 0 0; font-size: 15px; line-height: 1.45; }
.dlg-btns { display: flex; justify-content: center; padding: 10px 0 16px; }
.dlg-ok {
  min-width: 92px; height: 28px; padding: 0 12px; font-size: 14px; background: #d4d0c8;
  border: 1px solid; border-color: #fff #404040 #404040 #fff; box-shadow: 0 0 0 1px #000;
}
.dlg-ok:active { border-color: #404040 #fff #fff #404040; }
.dlg-ico { position: relative; flex: none; width: 36px; height: 36px; font-style: normal; }
.dlg-ico-stop { border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff7a6a, #d0140a 60%, #8a0a04); box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.35); }
.dlg-ico-stop::before, .dlg-ico-stop::after { content: ""; position: absolute; left: 8px; right: 8px; top: 50%; height: 4px; margin-top: -2px; background: #fff; }
.dlg-ico-stop::before { transform: rotate(45deg); }
.dlg-ico-stop::after { transform: rotate(-45deg); }
.dlg-ico-warn { background: linear-gradient(#ffe45c, #f0b400); clip-path: polygon(50% 2%, 100% 96%, 0 96%); }
.dlg-ico-warn::after { content: "!"; position: absolute; left: 0; right: 0; top: 11px; text-align: center; font: bold 20px/1 Arial, Helvetica, sans-serif; color: #000; }
.dlg-ico-info { border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #dfe6f5 70%, #9aa9c9); box-shadow: inset 0 0 0 1px #50618a; }
.dlg-ico-info::after { content: "i"; position: absolute; inset: 0; display: grid; place-items: center; font: bold 22px/1 Georgia, "Times New Roman", serif; color: #1a3cc8; }

/* intro: the one already on the monitor in the photo */
.page-intro { display: grid; place-items: center; background: radial-gradient(ellipse at 40% 40%, #f4f6f7, #cfd6da); }
.intro { display: grid; justify-items: center; gap: 22px; }
.enter {
  font: bold 46px/1 Arial, Helvetica, sans-serif; letter-spacing: 0.02em; color: #1d1d1d;
  padding: 12px 34px; border-radius: 8px;
  background: linear-gradient(#f2f2f2, #b9bec2); border: 2px solid #5c6166;
  box-shadow: inset 0 1px 0 #fff, 0 2px 4px rgba(0, 0, 0, 0.25);
}
.enter:hover { background: linear-gradient(#fff, #cdd3d7); }
.bar { width: 340px; height: 20px; border: 2px solid #666; background: #fff; padding: 2px; }
.bar i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(90deg, #1b2f8f 0 12px, transparent 12px 15px); transition: width 0.12s linear; }
.skip { font: bold 16px Arial, sans-serif; color: #222; text-decoration: none; }
.skip:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  .tray-pop, .dlg-flash .dlg-title { animation: none; }
}

/* MVH.com fills the page with its own background */
.page-mvh { background: #e5ecf3; }

/* two windows on one desktop: the browser rises over Winamp only while it has focus */
.front-browser .win { z-index: 35; }
.win-inactive .titlebar { background: linear-gradient(90deg, #808080, #b5b5b5); color: #d4d0c8; }

/* the Alt+Tab switcher: a grey slab with one icon per running window */
.alt-tab {
  position: absolute; left: 50%; top: 42%; z-index: 70; transform: translate(-50%, -50%);
  min-width: 300px; padding: 14px 18px 12px;
  background: #d4d0c8; border: 2px solid; border-color: #fff #404040 #404040 #fff;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35);
  font-size: 15px; text-align: center;
}
.alt-tab[hidden] { display: none; }
.alt-tab-icons { display: flex; justify-content: center; gap: 14px; margin-bottom: 10px; }
.alt-tab-ico { position: relative; width: 52px; height: 52px; border: 2px solid transparent; }
.alt-tab-cur { border-color: #0a246a; background: rgba(10, 36, 106, 0.12); }
.alt-tab-ico::before { content: ""; position: absolute; inset: 7px; }
.alt-tab-browser::before { border-radius: 50%; background: radial-gradient(circle at 34% 30%, #bfe3ff, #2f7fd8 55%, #0a3f8c); box-shadow: inset 0 0 0 2px #0a3f8c; }
.alt-tab-browser::after { content: "e"; position: absolute; inset: 0; display: grid; place-items: center; font: bold italic 26px/1 Georgia, serif; color: #fff; text-shadow: 0 1px 0 #0a3f8c; }
.alt-tab-winamp::before { border-radius: 3px; background: linear-gradient(#3b3d52, #1c1d2a); box-shadow: inset 0 0 0 2px #0e0f18; }
.alt-tab-winamp::after { content: "⚡"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 24px; color: #f3c93a; }
.alt-tab-name { padding: 3px 6px; border: 1px solid; border-color: #808080 #fff #fff #808080; background: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* the tube: scanlines, falloff at the glass edge, window glare */
.fx {
  position: absolute; inset: 0; z-index: 100; pointer-events: none; border-radius: inherit;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.04) 28%, transparent 42%),
    linear-gradient(180deg, transparent 34%, rgba(255, 255, 255, 0.07) 36%, transparent 40%, transparent 62%, rgba(255, 255, 255, 0.06) 64%, transparent 68%),
    repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at 50% 50%, transparent 58%, rgba(0, 0, 0, 0.32) 100%);
  box-shadow: inset 0 0 28px 6px rgba(0, 0, 0, 0.55);
}

@media (max-width: 700px) {
  .top { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 14px; }
  .menu { gap: 14px; }
  .ctl { flex-wrap: wrap; gap: 8px; padding: 12px 14px; }
  .btns { margin-left: auto; }
  /* no hover and no keys on a phone: a short hint that points at the chips */
  .at-desk { display: none; }
  .at-desk-phone { display: inline; }
  .zoomed .hint { display: none; }
}
