/* "MS Sans Serif", a pixel copy of the Windows 95 system font: FontStruction by "lou",
   https://fontstruct.com/fontstructions/show/1384746, CC BY-SA 3.0 (via 98.css by Jordan Scales, MIT) */
@font-face { font-family: "MS Sans Serif 95"; src: url(assets/fonts/ms-sans-serif.woff2) format("woff2"); font-weight: 400; }
/* DSEG7 Classic, a seven-segment calculator face: DSEG by keshikan, SIL OFL 1.1 (assets/fonts/DSEG-LICENSE.txt) */
@font-face { font-family: "DSEG7"; src: url(assets/fonts/dseg7-classic.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "MS Sans Serif 95"; src: url(assets/fonts/ms-sans-serif-bold.woff2) format("woff2"); font-weight: 700; }

/* tek-95 — a Windows 95 shaped desktop, built for phones first (Instagram's in-app browser) */

:root {
  --vh: 100dvh;
  --bar: 44px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --face: #c0c0c0;
  --hi: #ffffff;
  --lo: #808080;
  --dk: #000000;
  --desk: #12002b;
  --navy: #2a0080;
  --acid: #c6ff00;
  --sel: #3ad6e8;   /* selection: the turquoise of the chrome and the logo */
  --pink: #ff00d4;
  --uv: #7a00ff;
  --cyan: #00e5ff;
  --title: linear-gradient(90deg, #ff00d4, #7a00ff 55%, #00b8ff);
  --title-off: linear-gradient(90deg, #808080, #b5b5b5);
  --font: "MS Sans Serif 95", Tahoma, Verdana, sans-serif;
  --mono: "VT323", "Lucida Console", "Courier New", ui-monospace, monospace;
  --display: "Press Start 2P", "MS Sans Serif 95", monospace;
  color-scheme: light;
}

* { box-sizing: border-box; font-variant-ligatures: none; font-feature-settings: "liga" 0, "clig" 0, "calt" 0, "dlig" 0; }
html, body {
  margin: 0; height: var(--vh); overflow: hidden;
  background: var(--desk);
  font: 14px/1.3 var(--font);
  color: #000;
  -webkit-text-size-adjust: 100%;
  font-variant-ligatures: none; font-feature-settings: "liga" 0, "clig" 0;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}
button, input { font: inherit; color: inherit; font-variant-ligatures: none; }
[hidden] { display: none !important; }

/* bevels */
.btn3d, .win, #taskbar, #startmenu, .sm-sub, .tray, .bevel-out {
  box-shadow: inset -1px -1px var(--dk), inset 1px 1px var(--hi), inset -2px -2px var(--lo), inset 2px 2px #dfdfdf;
}
.bevel-in {
  box-shadow: inset -1px -1px var(--hi), inset 1px 1px var(--lo), inset -2px -2px #dfdfdf, inset 2px 2px var(--dk);
}
.btn3d {
  background: var(--face); border: 0; padding: 4px 10px; min-height: 30px; cursor: pointer;
  touch-action: manipulation;
}
.btn3d:active, .btn3d.down {
  box-shadow: inset -1px -1px var(--hi), inset 1px 1px var(--dk), inset -2px -2px #dfdfdf, inset 2px 2px var(--lo);
  padding: 5px 9px 3px 11px;
}
.btn3d:focus-visible { outline: 1px dotted #000; outline-offset: -5px; }

/* ---------- desktop ---------- */
#desktop {
  position: fixed; left: 0; right: 0; top: 0;
  bottom: calc(var(--bar) + var(--safe-b));
  overflow: hidden;
  background:
    var(--smiley) 24px 20px / 96px 96px repeat,
    radial-gradient(60% 45% at 10% 90%, rgba(255,0,212,.55), transparent 70%),
    radial-gradient(55% 40% at 95% 10%, rgba(0,229,255,.40), transparent 70%),
    radial-gradient(45% 35% at 80% 75%, rgba(198,255,0,.22), transparent 70%),
    radial-gradient(70% 50% at 30% 20%, rgba(122,0,255,.45), transparent 70%),
    var(--desk);
  background-repeat: repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
  background-position: calc(24px + var(--px, 0) * -.25px) calc(20px + var(--py, 0) * -.25px), 0 0, 0 0, 0 0, 0 0, 0 0;   /* parallax: under a pixel */
}
#brand {                         /* the logo on the wallpaper, set like the Windows 98 one (ITC Franklin Gothic Book / Heavy) */
  --s: min(14vw, 110px);
  position: absolute; left: 50%; top: 64%; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: calc(var(--s) * .12);
  padding: calc(var(--s) * .3) calc(var(--s) * .4);
  pointer-events: none; white-space: nowrap; color: #000; background: #fff; z-index: 1;   /* above the scanlines */
  box-shadow: 6px 6px 0 rgba(0,0,0,.35);
}
#brand .flag { height: calc(var(--s) * 1.5); width: auto; flex: none; }
#brand .words { display: flex; flex-direction: column; font-family: "Libre Franklin", "Franklin Gothic", "ITC Franklin Gothic", Arial, sans-serif; }
#brand .pre { font-weight: 300; font-size: calc(var(--s) * .34); line-height: 1; letter-spacing: -.01em; margin-bottom: -.06em; }
#brand .name { font-weight: 900; font-size: var(--s); line-height: .86; letter-spacing: -.035em; }
#brand .num { font-weight: 300; letter-spacing: -.02em; margin-left: .03em; }
#brand .ed { font-weight: 300; font-size: calc(var(--s) * .24); line-height: 1; align-self: flex-end; margin-top: .4em; }
#desktop::after {                /* CRT scanlines */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.06) 0 1px, transparent 1px 3px);
}

#icons {
  list-style: none; margin: 0; padding: 12px 8px;
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 4px;
  align-content: start;
}
.icon {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  width: 100%; padding: 4px 2px; border: 0; background: none; cursor: pointer;
  touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.icon .pic { width: var(--ico, 48px); height: var(--ico, 48px); display: grid; place-items: center; }
.icon .pic img, .icon .pic svg { width: var(--ico, 48px); height: var(--ico, 48px); image-rendering: pixelated; }
.icon .pic img.photo { image-rendering: auto; border-radius: 6px; }
.icon .label {
  color: #fff; font: 11px/1.25 "MS Sans Serif 95", Tahoma, sans-serif; text-align: center; padding: 1px 2px;   /* the Windows 95 system face; a pixel font, sharp at 11px */
  -webkit-font-smoothing: none; font-smooth: never;
  text-shadow: 1px 1px 0 #000; overflow-wrap: anywhere; max-width: 92px;
}
.icon.sel .label { background: var(--sel); color: #000; outline: 1px dotted #000; text-shadow: none; }
.icon.sel .pic { filter: drop-shadow(0 0 6px var(--pink)) drop-shadow(0 0 2px var(--cyan)); }
.icon:focus-visible { outline: none; }
.icon:focus-visible .label { outline: 1px dotted #fff; }

#icons li { position: relative; }
#icons { grid-template-columns: repeat(5, 1fr); grid-auto-rows: 92px; gap: 6px 0; padding: 8px 4px; }   /* fixed cells: icons snap to them */
#icons .icon .label {             /* long names get two lines; the selected icon shows its whole name, like Windows */
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 11px;
}
#icons .icon.sel .label { -webkit-line-clamp: unset; position: relative; z-index: 3; }
#icons .icon { touch-action: none; }            /* desktop icons can be dragged with a finger too */
#icons li.dragging { z-index: 5; opacity: .75; }
#icons .pic.bounce { transform-origin: 50% 100%; translate: 0 -3.125%; will-change: transform; }   /* -1/32: the other icons' art ends one pixel row above the bottom of their 32x32 box, this one reaches it: lifted by that row so all stand on one line */   /* an icon that bounces (ViceBounce) is pinned at its lowest point */

@media (min-width: 700px) and (pointer: fine) {
  #icons { grid-template-columns: none; grid-auto-flow: column; grid-template-rows: repeat(auto-fill, 92px); width: max-content; height: 100%; gap: 6px 8px; }
  .icon { width: 96px; }
}

/* ---------- windows ---------- */
#windows { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.win {
  position: absolute; display: flex; flex-direction: column;
  background: var(--face); padding: 3px; pointer-events: auto;
  min-width: 220px; min-height: 140px;
  animation: pop .14s steps(3);
}
@keyframes pop { from { transform: scale(.9); opacity: .4; } }
.win.max { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; }
.titlebar {
  display: flex; align-items: center; gap: 4px; height: 26px; padding: 0 2px 0 4px;
  background: var(--title-off); color: #ddd; font-weight: bold; flex: none;
  touch-action: none; -webkit-user-select: none; user-select: none;
}
.win.active .titlebar { background: var(--title); color: #fff; }
.titlebar .ico { width: 16px; height: 16px; flex: none; image-rendering: pixelated; }
.titlebar .ttl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.titlebar .tb {
  width: 26px; height: 22px; min-height: 0; padding: 0; display: grid; place-items: center;
}
.titlebar .tb:active { padding: 2px 0 0 2px; }
.titlebar .glyph { width: 18px; height: 18px; }
@media (pointer: coarse) { .titlebar { height: 32px; } .titlebar .tb { width: 32px; height: 26px; } }
.titlebar .tb.close { margin-left: 2px; }
.win-body { flex: 1; min-height: 0; margin-top: 3px; display: flex; flex-direction: column; overflow: hidden; }
.grip {
  position: absolute; right: 2px; bottom: 2px; width: 14px; height: 14px; cursor: nwse-resize; touch-action: none;
  background: linear-gradient(135deg, transparent 50%, var(--lo) 50% 57%, transparent 57% 70%, var(--lo) 70% 77%, transparent 77%);
}
.win.max .grip { display: none; }

.menubar { display: flex; gap: 2px; padding: 1px 0 3px; flex: none; }
.menubar span { padding: 1px 6px; }
.menubar span::first-letter { text-decoration: underline; }

.pane { flex: 1; min-height: 0; overflow: auto; background: #fff; -webkit-overflow-scrolling: touch; }
.statusbar { display: flex; gap: 3px; margin-top: 3px; flex: none; font-size: 12px; }
.statusbar > * { padding: 2px 6px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.statusbar > :last-child { flex: none; }

/* notepad */
.notepad {
  margin: 0; padding: 10px 12px; font: 21px/1.15 var(--mono); white-space: pre-wrap; word-break: break-word;
  -webkit-user-select: text; user-select: text;
}
.notepad a { color: #c000a8; }

/* explorer */
.addr { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; flex: none; font-size: 14px; }   /* the label and the path in one size */
.addr .field { flex: 1; background: #fff; padding: 4px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.folder-view { list-style: none; margin: 0; padding: 10px 6px; display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px 2px; align-content: start; }
.folder-view .label { color: #000; text-shadow: .5px 0 0 rgba(0,0,0,.55); }   /* regular, thickened half a pixel: between thin and bold */
.folder-view .icon.sel .label { color: #000; }   /* dark on the turquoise highlight, readable */
.empty { padding: 16px; color: var(--lo); }

/* app frame */
.frame-wrap { position: relative; flex: 1; min-height: 0; background: #000; }
.frame-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #111; }
.loading {
  position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 10px;
  color: #c0c0c0; font: 14px var(--mono); background: #000;
}
.progress { box-sizing: content-box; width: 198px; height: 16px; padding: 3px; background: var(--face); }   /* the Windows 95 bar: whole blocks that fill the track exactly, 20 x 8px + 19 gaps of 2px = 198px */
.progress .pbar { display: grid; grid-template-columns: repeat(20, 8px); gap: 0 2px; height: 100%; }
.progress .pbar b { background: transparent; }
.progress .pbar b.on { background: var(--title) calc(-1 * var(--o, 0px)) 0 / 198px 100% no-repeat; box-shadow: inset 1px 1px rgba(255,255,255,.4), inset -1px -1px rgba(0,0,0,.35); }   /* each block shows its own slice of the title-bar gradient (pink, violet, blue), so the filled part reads as one gradient bar */


/* project page */
.page { padding: 14px 16px 20px; font: 14px/1.5 var(--font); max-width: 640px; }
.page h1 { font-size: 22px; margin: 12px 0 2px; }
.page .lead { font-weight: bold; margin: 0 0 10px; }
.page ul { padding-left: 20px; }
.page .muted { color: #555; font-size: 12px; }
.page .shot { display: block; width: 100%; height: auto; border: 2px solid #000; background: #101413; }
.page .row { display: flex; gap: 8px; flex-wrap: wrap; }
.page .row.social { margin: 0 0 16px; }
.page a.btn.vc { gap: 8px; padding: 4px 14px 4px 8px; font-weight: bold; }
.page a.btn.vc svg.px { width: 16px; height: 16px; flex: none; image-rendering: pixelated; }
.page button.btn { font: inherit; border: 0; cursor: pointer; display: inline-flex; align-items: center; min-height: 32px; padding: 4px 14px; color: #000; background: var(--face);
  box-shadow: inset -1px -1px var(--dk), inset 1px 1px var(--hi), inset -2px -2px var(--lo), inset 2px 2px #dfdfdf; }
.page button.btn:disabled { color: #808080; text-shadow: 1px 1px #fff; cursor: default; }
.page button.btn:not(:disabled):active { box-shadow: inset 1px 1px var(--dk), inset -1px -1px var(--hi); }
.page .coin { position: relative; margin: 18px 0 18px; padding: 14px 10px 10px; border: 2px groove #fff; box-shadow: inset 1px 1px #808080, 1px 1px #808080; }   /* a quiet group box, the Windows 95 way: an etched frame with a small label */
.page .coin-h { position: absolute; top: -10px; left: 8px; margin: 0; padding: 0 6px; background: #fff; font: bold 13px/1.2 var(--font); color: #000; }
.page .live { display: inline-flex; align-items: center; gap: 4px; margin-right: 6px; padding: 0 5px 0 4px; background: #000; color: #fff; border: 1px solid #f00; font: bold 11px/15px var(--font); letter-spacing: 1px; vertical-align: 1px; animation: live-blink 1.1s steps(1, end) infinite; }
.page .live i { width: 6px; height: 6px; border-radius: 50%; background: #f00; }
@keyframes live-blink { 0%, 100% { opacity: 1; box-shadow: 0 0 0 1px #f00; } 50% { opacity: .25; box-shadow: none; } }
@media (prefers-reduced-motion: reduce) { .page .live { animation: none; } }
.page .coin-h .when { font-weight: normal; color: #666; }
.page .coin-body { padding: 0; }
.page .coin-h .muted { font: 12px var(--font); }
.page .ca-label .when { color: #666; }
.page a.pump { position: absolute; top: -12px; right: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 1px 7px; border: 1px solid #000; background: #fff; color: #000; text-decoration: none; font: bold 13px/1.2 var(--font); white-space: nowrap; }
.page a.pump i { width: 9px; height: 9px; box-sizing: border-box; border-radius: 50%; background: #2fd36b; border: 1px solid #000; }
.page a.pump:hover, .page a.pump:focus-visible { background: var(--title); color: #fff; outline: 0; }
.page .ca-row { display: flex; gap: 8px; align-items: stretch; margin: 0 0 12px; }
.page .ca { flex: 1; min-width: 0; padding: 8px 10px; background: #fff; font: 15px/1.35 var(--font); overflow-wrap: anywhere; user-select: all;
  box-shadow: inset -1px -1px var(--hi), inset 1px 1px var(--lo), inset -2px -2px #dfdfdf, inset 2px 2px var(--dk); }
.page .ca.pending { color: #777; font-family: var(--font); user-select: none; }
.page .warn { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; background: #ffffe1; border: 1px solid #000; box-shadow: 2px 2px 0 rgba(0,0,0,.25); }
.page .warn p { margin: 0; font-size: 13px; line-height: 1.45; }
.page .warn-i { flex: none; width: 22px; height: 22px; display: grid; place-items: center; background: #ffcc00; border: 2px solid #000; font: bold 15px/1 var(--font); }
.page a.btn.vc:hover, .page a.btn.vc:focus-visible { background: var(--title); color: #fff; outline: 0; }   /* the pink, violet and blue of the title bar */
.page a.btn, .btn-link {
  display: inline-flex; align-items: center; min-height: 32px; padding: 4px 14px; color: #000; text-decoration: none; background: var(--face);
  box-shadow: inset -1px -1px var(--dk), inset 1px 1px var(--hi), inset -2px -2px var(--lo), inset 2px 2px #dfdfdf;
}

/* image viewer */
.viewer { flex: 1; min-height: 0; display: grid; place-items: center; background: #808080; overflow: auto; padding: 8px; }
.viewer img { max-width: 100%; max-height: 100%; image-rendering: auto; }

/* audio */
.player { padding: 16px; display: grid; gap: 12px; background: var(--face); }
.player audio { width: 100%; }

/* terminal */
.term {
  flex: 1; min-height: 0; overflow: auto; background: #07000f; color: #d8c8ff; padding: 8px 10px;
  font: 20px/1.15 var(--mono); white-space: pre-wrap; word-break: break-word; cursor: text;
}
.term .in { display: flex; }
.term input {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: #fff; padding: 0; margin: 0;
  font: inherit; caret-color: var(--acid); /* 16px: iOS does not zoom into the field */
}
.term .ok { color: var(--acid); }
.term .err { color: var(--pink); }

/* ---------- taskbar ---------- */
#taskbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  height: calc(var(--bar) + var(--safe-b)); padding: 5px 4px calc(5px + var(--safe-b));
  display: flex; gap: 4px; align-items: stretch; background: var(--face);
  box-shadow: inset 0 1px #dfdfdf, inset 0 2px var(--hi);
}
#startbtn { display: flex; align-items: center; gap: 5px; font-weight: bold; padding: 0 8px; flex: none; }
.logo { width: 20px; height: 20px; flex: none; }
.logo img { width: 100%; height: 100%; display: block; }
#tasks { flex: 1; min-width: 0; display: flex; gap: 3px; overflow-x: auto; scrollbar-width: none; }
#tasks::-webkit-scrollbar { display: none; }
.task {
  flex: 0 1 150px; min-width: 40px; display: flex; align-items: center; gap: 5px; padding: 0 6px; text-align: left;
  white-space: nowrap; overflow: hidden;
}
.task.down { background: repeating-conic-gradient(#c0c0c0 0 25%, #fff 0 50%) 0 0 / 2px 2px; font-weight: bold; }
.task .ico { width: 16px; height: 16px; flex: none; image-rendering: pixelated; }
.task span { overflow: hidden; text-overflow: ellipsis; }
#tray {
  flex: none; display: flex; align-items: center; gap: 6px; padding: 0 8px;
  box-shadow: inset -1px -1px var(--hi), inset 1px 1px var(--lo);
  font-size: 12px;
}
.tray-btn { background: none; border: 0; padding: 0; width: 20px; height: 20px; cursor: pointer; display: grid; place-items: center; }
.tray-btn svg, .tray-btn img { width: 16px; height: 16px; image-rendering: pixelated; }

/* start menu */
#startmenu {
  position: fixed; left: 2px; z-index: 1001;
  bottom: calc(var(--bar) + var(--safe-b) - 2px);
  display: flex; background: var(--face); padding: 3px; min-width: 230px; max-width: calc(100vw - 4px);
  max-height: calc(var(--vh) - var(--bar) - var(--safe-b) - 8px);
}
.sm-side {
  width: 28px; flex: none; background: linear-gradient(0deg, #ff00d4, #7a00ff 60%, #00b8ff); color: #ffd6f6;
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px;
}
.sm-side span { writing-mode: vertical-rl; transform: rotate(180deg); font: 15px/1 var(--display); }
.sm-side b { color: #fff; }   /* the 95: white, no glow */
#sm-list { list-style: none; margin: 0; padding: 0; flex: 1; overflow-y: auto; }
#sm-list button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 12px 6px 6px; min-height: 40px;
  border: 0; background: none; text-align: left; cursor: pointer; font-size: 14px;
}
#sm-list button:hover, #sm-list button:focus-visible { background: var(--uv); color: #fff; outline: 0; }
#sm-list .ico { width: 32px; height: 32px; flex: none; image-rendering: pixelated; }
#sm-list hr { border: 0; margin: 3px 2px; border-top: 1px solid var(--lo); border-bottom: 1px solid var(--hi); }
/* folders in the Start menu unfold to the side, as many levels deep as the folders go, without the menu closing.
   A submenu is position: fixed (placed by os.js beside its folder) because the list scrolls and would clip it. */
#sm-list li { position: relative; }
#sm-list .sm-arrow { margin-left: auto; width: 0; height: 0; border: solid transparent; border-width: 5px 0 5px 6px; border-left-color: currentColor; flex: none; }
.sm-sub { display: none; position: fixed; z-index: 1002; list-style: none; margin: 0; padding: 3px; min-width: 220px; max-width: calc(100vw - 4px); background: var(--face); }
.sm-folder.open > .sm-sub { display: block; }
.sm-folder.open > button { background: var(--uv); color: #fff; }
.sm-sub button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 12px 6px 6px; min-height: 40px; border: 0; background: none; text-align: left; cursor: pointer; font-size: 14px; }
.sm-sub button:hover, .sm-sub button:focus-visible { background: var(--uv); color: #fff; outline: 0; }
.sm-sub .ico { width: 32px; height: 32px; flex: none; image-rendering: pixelated; }
.sm-sub .sm-arrow { margin-left: auto; width: 0; height: 0; border: solid transparent; border-width: 5px 0 5px 6px; border-left-color: currentColor; flex: none; }

/* a small note above the taskbar (Link copied) */
.toast { position: fixed; z-index: 9000; right: 8px; bottom: calc(var(--bar) + var(--safe-b) + 6px); background: #ffffe1; color: #000; border: 1px solid #000; padding: 4px 8px; font: 13px/1.3 var(--font); box-shadow: 2px 2px 0 rgba(0,0,0,.35); pointer-events: none; }

/* ---------- boot / shutdown ---------- */
#boot, .shutdown {
  position: fixed; inset: 0; z-index: 5000; background: #000; color: #c0c0c0;
  padding: max(16px, env(safe-area-inset-top)) 16px 16px;
}
#boot pre { margin: 0; font: clamp(15px, 4.2vw, 22px)/1.2 var(--mono); white-space: pre-wrap; color: #e8e8e8; text-shadow: 0 0 4px rgba(255,255,255,.35); }   /* white DOS text */
#boot.gone { display: none; }
.shutdown { display: grid; place-items: center; text-align: center; color: var(--pink); font: 18px/1.6 var(--display); cursor: pointer; }
.shutdown small { display: block; margin-top: 18px; font: 20px var(--mono); color: var(--acid); }

/* dialog (BSOD easter egg) */
.bsod {
  position: fixed; inset: 0; z-index: 5000; background: #0000aa; color: #fff; display: grid; place-items: center; padding: 20px;
  font: 21px/1.2 var(--mono); cursor: pointer;
}
.bsod div { max-width: 560px; }
.bsod b { background: #aaa; color: #0000aa; padding: 0 6px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
}

/* icons inside menus, title bars and task buttons fill their box */
.ico { display: inline-grid; place-items: center; }
.ico img, .ico svg { width: 100%; height: 100%; display: block; }
img.px { image-rendering: pixelated; }
.ico img.photo { border-radius: 2px; }

/* a preview picture (cover art, video still) with its service's logo in the corner */
.thumb { position: relative; display: inline-block; width: 100%; height: 100%; }
.icon .pic .thumb { width: var(--ico, 48px); height: var(--ico, 48px); }
.thumb img.photo { width: 100% !important; height: 100% !important; display: block; object-fit: cover; border: 1px solid #000; border-radius: 0 !important; box-shadow: 1px 1px 0 rgba(0,0,0,.5); }
.thumb.stack img.photo { box-shadow: 4px -4px 0 -1px #c0c0c0, 4px -4px 0 0 #000, 8px -8px 0 -1px #808080, 8px -8px 0 0 #000 !important; }   /* a playlist: a pile of covers */
.thumb .badge { position: absolute; right: -3px; bottom: -3px; width: var(--badge, 22px) !important; height: var(--badge, 22px) !important; image-rendering: pixelated; }

/* the dotted frame that stands in for a window while it moves, sizes, opens or minimizes */
.ghost {
  position: fixed; z-index: 4000; pointer-events: none; padding: 3px;
  background: repeating-conic-gradient(#fff 0 25%, transparent 0 50%) 0 0 / 2px 2px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  mix-blend-mode: difference;
}
.page h1 { font: 18px/1.3 var(--display); color: #000; }
::selection { background: var(--pink); color: #fff; }

/* ---------- CDJ-3000 player (cdj.js): a skinned window, Winamp style ---------- */
.win.skinned { background: transparent; padding: 0; min-width: 0; min-height: 0; box-shadow: none; border: 0; }
.win.skinned > .titlebar, .win.skinned > .grip { display: none; }
.win.skinned .skin-body { padding: 0; background: transparent; overflow: visible; }
.cdj {
  position: relative; width: 100%; container-type: inline-size; outline: none;
  -webkit-user-select: none; user-select: none; touch-action: none; -webkit-touch-callout: none;
  --cf: "Pixelify Sans", Tahoma, sans-serif;   /* the system's pixel face, not a smooth one */
}
.cdj > * { position: absolute; }
.cdj-body {
  border-radius: 5% / 3.6%;
  background: radial-gradient(120% 60% at 30% 10%, #2c2e33, #16171a 55%, #0c0d0f);
  box-shadow: inset 0 0 0 .3cqw #000, inset 0 .3cqw .2cqw rgba(255,255,255,.08), 0 2cqw 5cqw rgba(0,0,0,.7);
}
.cdj-screen { border-radius: .4cqw; background: #05070b; box-shadow: 0 0 0 .35cqw #000; cursor: pointer; image-rendering: pixelated; }
.cdj-usb { border-radius: .6cqw; background: linear-gradient(#0c0d0f, #1c1d20); box-shadow: inset 0 0 0 .2cqw #000; display: grid; place-items: center; color: #24b8c9; font: 700 2.2cqw var(--cf); }
.cdj-usb i { position: absolute; left: 12%; top: 18%; width: 1cqw; height: 1cqw; border-radius: 50%; background: #24cde0; box-shadow: 0 0 1cqw #24cde0; }

.cdj-btn {
  border: 0; padding: 0; margin: 0; border-radius: .7cqw; cursor: pointer; touch-action: none;
  background: linear-gradient(#7d828a 0%, #4b4f56 42%, #2b2e33 54%, #3c4046 78%, #6a6f77 100%);   /* polished, catching light like the chrome around it */
  box-shadow: inset 0 .2cqw 0 rgba(255,255,255,.45), inset 0 -.15cqw 0 rgba(255,255,255,.12), inset 0 0 0 .15cqw #000, 0 .3cqw .5cqw rgba(0,0,0,.8);
  color: #d4d8df; font: 700 1.75cqw/1 var(--cf); letter-spacing: 0; text-align: center;
  display: grid; place-items: center; -webkit-tap-highlight-color: transparent;
}
.cdj-btn.round { border-radius: 50%; }
.cdj-btn.down { transform: translateY(.2cqw); filter: brightness(.8); }
.cdj-btn.vert span { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 1.75cqw; }
.cdj-btn.nav { font-size: 1.6cqw; }
.cdj-btn .nav-ico { width: 52%; fill: currentColor; }   /* drawn, so a phone never turns the arrows into emoji */
.cdj-btn.pad span { font-size: 2.6cqw; }
.cdj-btn.on { color: #ffd2a8; box-shadow: inset 0 0 0 .22cqw #ff8a1e, inset 0 .18cqw 0 rgba(255,255,255,.13), 0 0 1.2cqw rgba(255,138,30,.55); }
.cdj-btn.del.down { color: #ff6b5a; }
.cdj-btn.cue, .cdj-btn.play {          /* the CDJ-3000's: a flat spun-metal disc, a thin light ring around it */
  --ring: color-mix(in srgb, var(--lit) 25%, #070707);
  background: var(--ring); box-shadow: 0 0 0 .2cqw #000;
  color: #eceef0; font: 600 1.9cqw var(--cf); letter-spacing: .05em; isolation: isolate; }
.cdj-btn.cue::before, .cdj-btn.play::before {   /* the disc: flat, finely grooved like a CD, two light sectors */
  content: ""; position: absolute; inset: 1.15cqw; border-radius: 50%; z-index: -1;
  background:
    repeating-radial-gradient(circle, rgba(255,255,255,.05) 0 .08cqw, rgba(0,0,0,.07) .08cqw .16cqw),
    conic-gradient(from 135deg, #a3a8ae, #4a4d52 40deg, #26282b 90deg, #4a4d52 140deg, #a3a8ae 180deg, #4a4d52 220deg, #26282b 270deg, #4a4d52 320deg, #a3a8ae);
  box-shadow: 0 0 0 .18cqw #b4b8be, 0 0 0 .5cqw #0b0b0c; }
.cdj-btn.cue span, .cdj-btn.play svg { position: relative; }
.cdj-btn.cue { --lit: #ffa320; }
.cdj-btn.play { --lit: #2cff5e; }
.cdj-btn.play svg { width: 34%; fill: currentColor; }
.cdj-btn.cue.down, .cdj-btn.play.down { transform: none; }
.cdj-btn.cue.down::before, .cdj-btn.play.down::before { filter: brightness(.85); }
.cdj-btn.cue.on, .cdj-btn.play.on { --ring: var(--lit); box-shadow: 0 0 0 .2cqw #000, 0 0 1.4cqw var(--lit); }
.cdj-btn.cue.blink, .cdj-btn.play.blink { animation: cdjRing .9s steps(1) infinite; }
@keyframes cdjRing { 0% { --ring: var(--lit); box-shadow: 0 0 0 .2cqw #000, 0 0 1.4cqw var(--lit); } 50% { --ring: color-mix(in srgb, var(--lit) 25%, #070707); box-shadow: 0 0 0 .2cqw #000; } }
.cdj-btn.pad { background: linear-gradient(#2a2c30, #141518); align-content: end; padding-bottom: .6cqw; }
.cdj-btn.pad i { position: absolute; left: 12%; right: 12%; top: 10%; height: 14%; border-radius: .4cqw; background: color-mix(in srgb, var(--led) 18%, #000); }
.cdj-btn.pad.set i { background: var(--led); box-shadow: 0 0 1.4cqw var(--led); }
.cdj-btn.pad.set { color: #fff; }

.cdj-jog { border-radius: 50%; cursor: grab; touch-action: none; }
.cdj-jog > * { position: absolute; border-radius: 50%; }
.jog-rim { inset: 0; background:
  repeating-conic-gradient(from 0deg, rgba(0,0,0,.35) 0 1.2deg, transparent 1.2deg 6deg),
  conic-gradient(from 20deg, #868b93, #eef1f5, #6a6f77, #d2d7de, #7a7f87, #f3f5f8, #868b93);
  box-shadow: inset 0 0 0 .3cqw #000, 0 .8cqw 2cqw rgba(0,0,0,.8); }
.jog-ring { inset: 6.5%; background: #000; box-shadow: 0 0 0 .3cqw #2a2c30; }   /* no coloured LED ring, just a dark steel edge */
.jog-top { inset: 8%; background:
  conic-gradient(from 210deg, rgba(255,255,255,.07), transparent 20%, rgba(255,255,255,.05) 50%, transparent 70%, rgba(255,255,255,.07)),
  repeating-radial-gradient(circle, #1b1c1f 0 .22cqw, #101113 .22cqw .44cqw);
  box-shadow: inset 0 0 0 .25cqw #000; }
.jog-mark { left: calc(50% - .35cqw); top: 1.5%; width: .7cqw; height: 9%; border-radius: .3cqw; background: #e8ecf2; }
.cdj-jog.touch .jog-top { filter: brightness(1.35); }
.jog-disp { inset: 31%; width: 38%; height: 38%; box-shadow: 0 0 0 .5cqw #000, 0 0 0 .8cqw #3a3d42; }
.cdj-knob { border-radius: 50%; cursor: ns-resize; touch-action: none;
  background: radial-gradient(circle at 40% 35%, #44474c, #151618 70%); box-shadow: inset 0 0 0 .25cqw #000, 0 .4cqw .8cqw rgba(0,0,0,.8); }
.cdj-knob i { position: absolute; left: calc(50% - .25cqw); top: 10%; width: .5cqw; height: 30%; background: #cfd4db; border-radius: .2cqw; transform-origin: 50% 133%; transform: rotate(var(--rot, 0deg)); }
.cdj-tempo { cursor: ns-resize; touch-action: none; }
.cdj-tempo .slot { position: absolute; inset: 1% 38%; border-radius: .6cqw; background: #050608; box-shadow: inset 0 0 0 .2cqw #000; }
.cdj-tempo::before { content: ""; position: absolute; inset: 2% 6%; background: repeating-linear-gradient(transparent 0 calc(10% - 1px), rgba(255,255,255,.25) calc(10% - 1px) 10%); -webkit-mask: linear-gradient(90deg, #000 22%, transparent 22% 78%, #000 78%); mask: linear-gradient(90deg, #000 22%, transparent 22% 78%, #000 78%); }
.cdj-tempo .cap { position: absolute; left: -8%; width: 116%; height: 6.5%; top: 50%; transform: translateY(-50%); border-radius: .5cqw;
  background: linear-gradient(#eef1f5, #9aa0a8 45%, #5d636b 55%, #c7ccd3); box-shadow: 0 .4cqw .7cqw rgba(0,0,0,.8), inset 0 0 0 .15cqw #000; }
.cdj-tempo .cap::after { content: ""; position: absolute; left: 10%; right: 10%; top: calc(50% - .15cqw); height: .3cqw; background: #000; }
.cdj-exo { left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; filter: drop-shadow(0 1.2cqw 1.5cqw rgba(0,0,0,.65)); }
.cdj-win { z-index: 4; border-radius: 50%; }   /* under the chrome, which frames them */
.cdj-win::after { content: ""; position: absolute; inset: -60%; border-radius: 50%; }   /* a finger-sized target; the chrome above lets taps through */
.cdj-win svg { width: 62%; fill: #c9cdd5; stroke: #c9cdd5; }

/* the copies a window leaves behind while it moves (os.js drag) */
.win.trail { pointer-events: none; animation: none; transition: opacity .45s linear; contain: layout paint; }
.win.trail.fade { opacity: 0; }
.win.trail *, .win.trail *::before, .win.trail *::after { animation: none !important; }
.frame-stub { flex: 1; background: #000; }

/* ---------- WMP 8 in liquid chrome (wmp.js): a skinned window for the YouTube sets ---------- */
.wmp { position: relative; width: 100%; container-type: inline-size; -webkit-user-select: none; user-select: none; }
.wmp > * { position: absolute; }
.wmp-frame { left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; filter: drop-shadow(0 1cqw 1.4cqw rgba(0,0,0,.6)); }
.wmp-video { background: #000; overflow: hidden; z-index: 1; }
.wmp-slot { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }   /* the whole picture, not zoomed in */   /* bigger than the window: YouTube's title, channel and logo fall outside */
.wmp-slot iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wmp-video { cursor: pointer; }
.wmp-cover { position: absolute; inset: 0; background: #000 center / cover no-repeat; opacity: 0; transition: opacity .3s; pointer-events: none; }
.wmp-video.idle .wmp-cover { opacity: 1; }
.wmp-info { z-index: 1; background: linear-gradient(#0e0b1a, #040308); color: #c9c2ea; font: 1.7cqw/1.15 "VT323", monospace; padding: .6cqw 1.6cqw .7cqw 1.2cqw; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.wmp-viz { position: absolute; left: 4%; top: 7%; width: 92%; height: 30%; }
.wmp-np { color: #8f86b8; font-size: 1.45cqw; }
.wmp-title { color: #f1eeff; font-size: 1.9cqw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wmp-time { color: #8f86b8; font-size: 1.45cqw; }
.wmp-list { z-index: 1; margin: 0; padding: .4cqw; list-style: none; overflow: auto; background: linear-gradient(#0e0b1a, #040308); font: 1.65cqw/1.2 "VT323", monospace; color: #d9d3f5; }
.wmp-list li { display: flex; align-items: center; gap: .6cqw; padding: .35cqw .9cqw; margin: 0 -.4cqw; cursor: pointer; }   /* rows run edge to edge */
.wmp-list li:hover { background: rgba(36,205,224,.12); }
.wmp-list li.on { background: rgba(36,205,224,.24); color: #fff; }   /* flat, see-through */
.wmp-list img { width: 3.2cqw; height: 1.8cqw; object-fit: cover; border-radius: .15cqw; flex: none; }
.wmp-list span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wmp-list em { font-style: normal; color: #8f86b8; font-size: 1.45cqw; }
.wmp-slider { z-index: 4; cursor: pointer; touch-action: none; --v: 0; }
.wmp-slider i { position: absolute; left: 1%; top: 22%; bottom: 22%; width: calc((98% - 1.6cqw) * var(--v) + .8cqw); border-radius: 1cqw;
  background: url(assets/img/wmp/fill.webp?v=2) center / 100% 100%; box-shadow: 0 0 .8cqw rgba(36,205,224,.4); }   /* a rod of cyan mercury */
.wmp-slider b { position: absolute; top: 50%; left: calc((100% - 2.6cqw) * var(--v)); width: 2.6cqw; height: 2.6cqw; margin-top: -1.3cqw; border-radius: 50%;
  background: url(assets/img/wmp/k_btn.webp?v=4) center / contain no-repeat; filter: drop-shadow(0 .2cqw .3cqw rgba(0,0,0,.7)) drop-shadow(0 0 .5cqw rgba(36,205,224,.45)); }   /* a mercury drop */
.wmp-zone { z-index: 4; border: 0; padding: 0; background: transparent; cursor: pointer; border-radius: 50%; -webkit-tap-highlight-color: transparent; }
.wmp-zone.wbtn, .wmp-zone.full { border-radius: 1cqw; }
.wmp-zone:active { background: rgba(36,205,224,.18); }
.wmp-zone.play span { position: absolute; inset: 0; filter: drop-shadow(0 0 .35cqw rgba(60,222,240,.9)); }   /* just the sign, on the picture's own glass */
.wmp-zone.play span::before { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-38%, -50%);
  border-style: solid; border-width: 1.05cqw 0 1.05cqw 1.75cqw; border-color: transparent transparent transparent #eef6ff; }
.wmp-zone.play.playing span::before { transform: translate(-50%, -50%); width: 1.65cqw; height: 2cqw; border: 0;
  background: linear-gradient(90deg, #eef6ff 0 34%, transparent 34% 66%, #eef6ff 66%); }
.wmp-zone.mute.on { box-shadow: 0 0 0 .3cqw rgba(255,80,80,.8), 0 0 1.2cqw rgba(255,80,80,.7); }

/* the corners of a skinned player: pull to scale it (os.js scaleBy) */
.skin-corner { position: absolute; width: 34px; height: 34px; z-index: 10; touch-action: none; }
.skin-corner.nw { left: -6px; top: -6px; cursor: nwse-resize; }
.skin-corner.ne { right: -6px; top: -6px; cursor: nesw-resize; }
.skin-corner.sw { left: -6px; bottom: -6px; cursor: nesw-resize; }
.skin-corner.se { right: -6px; bottom: -6px; cursor: nwse-resize; }

/* the hourglass (os.js busy) */
.hourglass { position: fixed; left: 0; top: 0; z-index: 9000; pointer-events: none; }
.hourglass svg { width: 13px; height: 21px; display: block; transform-origin: 50% 50%; }   /* one screen pixel per cursor pixel, like the real one */
html.busy, html.busy * { cursor: none !important; }
/* copies of a moving player skip the heavy chrome shadow */
.win.trail .cdj-exo, .win.trail .wmp-frame { filter: none; }

/* WMP on a phone (wmp.js PHONE): big chrome buttons, the playlist in a drawer that slides up over the video */
.wmp.phone .wmp-slot { left: 0; top: 0; width: 100%; height: 100%; }   /* the whole picture, not zoomed in */
.wmp-drawer { z-index: 2; overflow: hidden; pointer-events: none; }
.wmp-sheet { position: absolute; inset: 0; transform: translateY(101%); transition: transform .25s steps(5); background: #040308; }
.wmp-drawer.open .wmp-sheet { transform: none; pointer-events: auto; }
.wmp.phone .wmp-viz { display: none; }
.wmp.phone .wmp-info { position: absolute; justify-content: center; left: 0; right: 0; top: 0; height: 22%; font-size: 3cqw; padding: .8cqw 3cqw; border-bottom: .3cqw solid #9d96bf; }
.wmp.phone .wmp-np { display: none; }
.wmp.phone .wmp-time { font-size: 3.4cqw; }
.wmp.phone .wmp-title { font-size: 4.4cqw; }
.wmp.phone .wmp-list { position: absolute; left: 0; right: 0; top: 22%; bottom: 0; font-size: 4.4cqw; padding: .6cqw 1cqw; }
.wmp.phone .wmp-list li { padding: .7cqw 1.5cqw; gap: 2.5cqw; border-radius: 1cqw; }
.wmp.phone .wmp-list img { width: 8.5cqw; height: 4.8cqw; }
.wmp.phone .wmp-list em { font-size: 3.6cqw; }
.wmp.phone .wmp-slider b { width: 6cqw; height: 6cqw; margin-top: -3cqw; left: calc((100% - 6cqw) * var(--v)); }
.wmp.phone .wmp-slider i { width: calc((98% - 4cqw) * var(--v) + 2cqw); border-radius: 3cqw; }
.wmp.phone .wmp-zone.play span::before { border-width: 3.2cqw 0 3.2cqw 5.3cqw; }
.wmp.phone .wmp-zone.play.playing span::before { width: 5cqw; height: 6cqw; }
.wmp-zone.wbtn::after, .wmp-zone.full::after { content: ""; position: absolute; inset: -70% 0; }   /* a finger-sized target around the small window buttons */

/* ---------- Winamp 2 in liquid chrome (winamp.js): the SoundCloud mixes ---------- */
.wa { position: relative; width: 100%; container-type: inline-size; -webkit-user-select: none; user-select: none; }
.wa-main { position: relative; width: 100%; }
.wa-main > * { position: absolute; }
.wa-frame { left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; filter: drop-shadow(0 1cqw 1.2cqw rgba(0,0,0,.6)); }
.wa-base { z-index: 0; background: #0a0a0a; }
.wa-display { z-index: 1; background: #000; overflow: hidden; }
.wa-time { position: absolute; left: 9%; top: calc(10% + .78cqw); font: 2.27cqw/1 "DSEG7", "VT323", monospace; color: #ff8c1a; text-shadow: 0 0 .6cqw #ff6a00; letter-spacing: .08em; isolation: isolate; }
.wa-time::before { content: attr(data-g); position: absolute; left: 0; top: 0; z-index: -1; color: #ff8c1a; opacity: .09; text-shadow: none; }   /* the unlit segments, as on an LCD */
.wa-state { position: absolute; left: 4.6%; top: calc(10% + .8cqw); width: 1.17cqw; height: 2.11cqw; background: center / 100% 100% no-repeat; image-rendering: pixelated; filter: drop-shadow(0 0 .5cqw #ff6a00); }   /* pixel signs, like the LCD digits */
.wa-state.play { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 9' shape-rendering='crispEdges' fill='%23ff8c1a'%3E%3Cpath d='M0 0h1v9H0zM1 1h1v7H1zM2 2h1v5H2zM3 3h1v3H3zM4 4h1v1H4z'/%3E%3C/svg%3E"); }
.wa-state.pause { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 9' shape-rendering='crispEdges' fill='%23ff8c1a'%3E%3Cpath d='M0 0h2v9H0zM3 0h2v9H3z'/%3E%3C/svg%3E"); }
.wa-state.stop { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 9' shape-rendering='crispEdges' fill='%23ff8c1a'%3E%3Cpath d='M0 2h5v5H0z'/%3E%3C/svg%3E"); }
.wa-viz { position: absolute; left: 4%; right: 4%; bottom: 6%; width: 92%; height: 40%; }
.wa-title { z-index: 1; background: #000; overflow: hidden; display: flex; align-items: center; }
.wa-title span { white-space: pre; font: 2.8cqw/1 "VT323", monospace; color: #ff8c1a; padding-left: 1cqw; will-change: transform; }
.wa-num { z-index: 1; background: #000; display: flex; align-items: center; justify-content: center; gap: .6cqw; font: 2.5cqw/1 "VT323", monospace; color: #ff8c1a; }
.wa-num small { font-size: .7em; color: #9a9a9a; }
.wa-slider { z-index: 4; cursor: pointer; touch-action: none; --v: 0; background: #050505; border-radius: 2cqw; box-shadow: inset 0 0 0 .25cqw #333; }
.wa-slider i { position: absolute; left: 1%; top: 28%; bottom: 28%; width: calc((98% - 1.6cqw) * var(--v) + .8cqw); border-radius: 1cqw; background: url(assets/img/winamp/fill-chrome.webp) center / 100% 100%; }   /* a chrome rod, to go with the chrome ball */
.wa-slider b { position: absolute; top: 50%; left: calc((100% - 2.4cqw) * var(--v)); width: 2.4cqw; height: 2.4cqw; margin-top: -1.2cqw; border-radius: 50%;
  background: url(assets/img/winamp/knob.webp?v=2) center / contain no-repeat; filter: drop-shadow(0 .2cqw .3cqw rgba(0,0,0,.75)); }   /* a mirror-chrome ball, like the frame */
.wa-zone { z-index: 4; border: 0; padding: 0; background: transparent; cursor: pointer; border-radius: 50%; -webkit-tap-highlight-color: transparent; }
.wa-zone:active { background: rgba(255,255,255,.18); }
.wa-zone.t::after { content: ""; position: absolute; inset: -45% 0; }          /* taller targets for a finger */
.wa-zone.wbtn { border-radius: 1cqw; }
.wa-zone.wbtn::after { content: ""; position: absolute; inset: -80% 0; }
.wa-pl { position: relative; width: 100%; margin-top: -6%; }
.wa-pl > * { position: absolute; }
.wa-pl-list { z-index: 1; margin: 0; padding: .5cqw 0; list-style: none; overflow: auto; background: #000; font-family: "VT323", monospace; }
.wa-pl-list li { display: flex; gap: 1cqw; padding: 0 1.4cqw; height: 3.9cqw; align-items: center; font-size: 2.4cqw; color: #ff8c1a; cursor: pointer; }
.wa-pl-list li span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-pl-list li em { font-style: normal; }
.wa-pl-list li.on { color: #fff3e0; background: #5a2600; }
.wa.phone .wa-pl-list li { height: 3.9cqw; font-size: 3cqw; }
.wa-pl-name small { font-size: .8em; letter-spacing: .08em; color: #9a9a9a; margin-left: .8em; }   /* on the same baseline as TEKAMP */
.wa-pl-total { font-size: 2.4cqw !important; }
.wa-pl-name, .wa-pl-total { z-index: 1; background: #000; display: flex; align-items: center; justify-content: center; font: 3cqw/1 "VT323", monospace; color: #ff8c1a; letter-spacing: .2em; }
.wa-pl-total { letter-spacing: .05em; }
.wa-wave { z-index: 4; cursor: pointer; touch-action: none; border-radius: 2cqw; }
.wa-link { z-index: 1; display: flex; align-items: center; justify-content: center; font: 2.6cqw/1 "VT323", monospace; letter-spacing: .12em; color: #ff8a3c; background: #0a0a0a; text-decoration: none; }
.wa-hidden { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.wa-hidden iframe { width: 300px; height: 200px; border: 0; }
.win.trail .wa-frame { filter: none; }

/* phone WMP: the transport of a CDJ-3000, after Pioneer's photos: spun-metal discs (radially brushed, two light sectors),
   the small search buttons with orange arrows in a black bezel, PLAY/PAUSE inside a thick LED ring */
.wmp-zone.cdj { display: grid; place-items: center; color: #3fdef0; border-radius: 50%;   /* turquoise, like the frame's own glows */
  background:
    radial-gradient(circle, transparent 52%, rgba(0,0,0,.4) 100%),
    repeating-radial-gradient(circle, rgba(255,255,255,.05) 0 .18cqw, rgba(0,0,0,.07) .18cqw .36cqw),
    conic-gradient(from 135deg, #cfd3d8, #585c61 45deg, #2a2c2f 90deg, #6b6f74 140deg, #d8dce0 180deg, #5b5f64 225deg, #2a2c2f 270deg, #6b6f74 320deg, #cfd3d8);
  box-shadow: 0 0 0 1cqw #0a0a0b, 0 0 0 1.3cqw #2b2c2f, 0 .8cqw 1.6cqw rgba(0,0,0,.75); }
.wmp-zone.cdj svg { width: 44%; fill: currentColor; filter: drop-shadow(0 .15cqw .2cqw rgba(0,0,0,.6)) drop-shadow(0 0 .8cqw rgba(36,205,224,.6)); }
.wmp-zone.cdj:active { filter: brightness(.82); }
.wmp-zone.cdj.play { --lit: #24cde0; --ring: color-mix(in srgb, var(--lit) 30%, #0a0a0a); color: #f4f4f4; scale: .92;
  box-shadow: 0 0 0 .5cqw #050505, 0 0 0 1.3cqw var(--ring), 0 0 0 1.7cqw #050505, 0 .8cqw 1.6cqw rgba(0,0,0,.75); }   /* a thin LED ring, as on the deck */
.wmp-zone.cdj.play.playing { --ring: var(--lit);
  box-shadow: 0 0 0 .5cqw #050505, 0 0 0 1.3cqw var(--ring), 0 0 0 1.7cqw #050505, 0 0 4cqw color-mix(in srgb, var(--lit) 60%, transparent); }
.wmp-zone.cdj.play svg { width: 38%; filter: drop-shadow(0 .15cqw .25cqw rgba(0,0,0,.7)); }
.wmp-zone.cdj.play::before { content: none; }

/* the players are hardware: no text selection or callout from taps and long presses (iOS selects on double tap / hold) */
.win.skinned, .win.skinned * { -webkit-user-select: none !important; user-select: none !important; -webkit-touch-callout: none; }

html.inapp { --safe-b: 0px; }   /* see the script in index.html */

/* WMP loader: the chrome TEK-95 sign turning in 3D while a set loads */
.wmp-load { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; pointer-events: none;
  background: radial-gradient(closest-side, rgba(0,0,0,.55), rgba(0,0,0,.88)); opacity: 0; transition: opacity .35s; perspective: 60cqw; }
.wmp-video.loading .wmp-load { opacity: 1; }
.wmp-video.fading .wmp-load { opacity: 0; transition: opacity .6s; }
.wmp-video.fading.slow .wmp-load { transition: opacity 5s cubic-bezier(.4, 0, .7, 1); }   /* melts away over 5 s after a set starts */
.wmp-sign { position: relative; width: 70%; aspect-ratio: 1200 / 476; transform-style: preserve-3d; }   /* turned by wmp.js */
.wmp-sign[data-side=front] i.b, .wmp-sign[data-side=back] i.f { visibility: hidden; }   /* only the face that points at us */
.wmp-sign i { position: absolute; inset: 0; background: center / 100% 100% no-repeat; transform: translateZ(calc((var(--i) - 5.5) * .13cqw)); }   /* plain boxes with a background, not <img>: WebKit ignores backface-visibility on images */
.wmp-sign i.b { transform: translateZ(-.72cqw) rotateY(180deg); }   /* the back face is turned round, so it reads right from behind too */
.wmp-load::after { content: ""; position: absolute; left: 50%; top: 50%; width: 60%; height: 40%; translate: -50% -50%; background: radial-gradient(closest-side, rgba(36,205,224,.28), transparent); pointer-events: none; z-index: -1; }   /* the sign's glow, behind it */

/* big WMP: "Now Playing" and the time share one line, the title runs under them */
.wmp:not(.phone) .wmp-info { display: grid; grid-template-columns: 1fr auto; align-content: end; column-gap: 1cqw; }
.wmp:not(.phone) .wmp-np { grid-area: 1 / 1; }
.wmp:not(.phone) .wmp-time { grid-area: 1 / 2; text-align: right; }
.wmp:not(.phone) .wmp-title { grid-area: 2 / 1 / 3 / 3; }
.wmp:not(.phone) .wmp-viz { top: 6%; height: 33%; }   /* clear of the text under it */

/* WMP full screen: YouTube's own player, controls and all */
.wmp-slot.native { pointer-events: auto; background: #000; }
.wmp-slot.native:fullscreen, .wmp-slot.native:-webkit-full-screen { position: fixed; inset: 0; width: 100%; height: 100%; }

.wmp.phone .wmp-slider.seek { background: #050308; border-radius: 3cqw; }   /* the groove is solid, the desktop does not show through */

/* MS Sans Serif sits high in its line box: drop taskbar text a pixel so it centres on the icons */
/* taskbar: every icon centred on the smiley's centre line, all the text 3px below its neutral position */
#startbtn { padding-top: 5px; } #startbtn .logo { margin-top: -5px; }
.task span:not(.ico) { position: relative; top: 1px; }
#clock { position: relative; top: 3px; }
.task .ico { transform: translateY(.4px); }
.tray-btn svg, .tray-btn img { transform: translateY(-.1px); }

/* WMP full screen on a phone: a layer over everything, the player turned sideways when the phone is upright */
.wmp-pfull { position: fixed; inset: 0; z-index: 9000; background: #000; overflow: hidden; }
.wmp-pfull-in { position: absolute; inset: 0; }
.wmp-pfull-slot, .wmp-pfull-slot iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (orientation: portrait) {
  .wmp-pfull-in { inset: auto; left: 100%; top: 0; width: 100dvh; height: 100dvw; transform-origin: top left; transform: rotate(90deg); }
}
.wmp-pfull-x { position: absolute; right: calc(10px + env(safe-area-inset-right, 0px)); top: calc(10px + env(safe-area-inset-top, 0px)); width: 44px; height: 44px; z-index: 2;
  border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font: 20px/1 var(--font); }

/* a desktop is not a web page: no double-tap or pinch zoom (touch-action is the intersection down the tree, so html and body cover everything) */
html, body { touch-action: manipulation; -webkit-text-size-adjust: 100%; }

/* in Instagram's browser the page ends above the home-indicator strip, which the app paints white: the taskbar's colour runs on into it */
html.inapp #taskbar { box-shadow: inset 0 1px #dfdfdf, inset 0 2px var(--hi), 0 160px 0 var(--face); }
html.inapp, html.inapp body { background-color: var(--face); }

/* the blue screen of Windows 95: 80x25 VGA text, grey on blue, the title in inverse */
.shutdown.bsod { background: #0000aa; color: #aaaaaa; display: block; place-items: unset; text-align: left; font: clamp(17px, 4.6vw, 26px)/1.25 "VT323", "Lucida Console", monospace;
  padding: max(24px, env(safe-area-inset-top)) clamp(16px, 6vw, 60px) 24px; overflow: auto; }
.bsod-in { max-width: 80ch; margin: 0 auto; padding-top: clamp(8px, 6vh, 56px); }
.bsod p { margin: 0 0 1.25em; }
.bsod-title { text-align: center; }
.bsod-title span { background: #aaaaaa; color: #0000aa; padding: 0 .6em; }
.bsod-li { padding-left: 0; }
.bsod-go { text-align: center; margin-top: 2em; }
.bsod-go i { display: inline-block; width: .55em; height: .12em; background: #aaaaaa; vertical-align: baseline; animation: bsodBlink 1s steps(1) infinite; }
@keyframes bsodBlink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .bsod-go i { animation: none; } }
