/* the colours of the TaalTaal portal: its blue, sky and pink, and its gradients */
:root {
  --tt-blue: #2a3e92; --tt-sky: #73d2f7; --tt-pink: #cd1165; --tt-ink: #23264a;
  /* the background of the hallway display (/display/maanweg), smaller: 1920 wide, 340 kB instead of 1.4 MB */
  --bg: url(img/valley.jpg) center / cover fixed, #6f8fb0;
  --ink: var(--tt-ink); --soft: #66708a; --line: rgba(35, 38, 74, .1); --accent: var(--tt-pink); --blue: var(--tt-blue);
  --sky: var(--tt-sky);
  --win: rgba(255, 255, 255, .66); --win-top: rgba(255, 255, 255, .8); --titlebar: linear-gradient(#88aadd, #4477aa 40%, #225566 150%);
  --bar: rgba(255, 255, 255, .62);
  --edge: rgba(35, 38, 74, .16);
  --shadow: 0 0 0 .5px var(--edge), 0 1px 0 rgba(255, 255, 255, .9) inset, 0 40px 90px -18px rgba(10, 20, 50, .6),
            0 14px 30px -10px rgba(10, 20, 50, .38), 0 3px 8px rgba(10, 20, 50, .16);
  --shadow-back: 0 0 0 .5px var(--edge), 0 26px 60px -20px rgba(10, 20, 50, .5), 0 8px 18px -8px rgba(10, 20, 50, .28);
  --sticker: linear-gradient(155deg, rgba(255, 255, 255, .78) 0%, rgba(255, 255, 255, .38) 55%, rgba(255, 255, 255, .22) 100%);
  --sticker-shadow: inset 0 0 0 1px rgba(255, 255, 255, .75), inset 0 2px 2px rgba(255, 255, 255, .9), inset 0 -6px 12px rgba(20, 40, 90, .12),
                    0 8px 18px -4px rgba(10, 20, 50, .38), 0 2px 4px rgba(10, 20, 50, .18);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: linear-gradient(rgba(8, 14, 30, .62), rgba(8, 14, 30, .62)) fixed, url(img/valley.jpg) center / cover fixed, #1a2230;
    --ink: #eef2fb; --soft: #a9b3d4; --line: rgba(255, 255, 255, .1); --accent: #f07aa6; --sky: #8adcf9;
    --win: rgba(24, 32, 60, .68); --win-top: rgba(28, 38, 72, .8); --titlebar: linear-gradient(#6f8fc4, #3a6698 40%, #1b4250 150%);
    --bar: rgba(22, 31, 76, .55);
    --edge: rgba(255, 255, 255, .14);
    --shadow: 0 0 0 .5px var(--edge), 0 1px 0 rgba(255, 255, 255, .12) inset, 0 24px 70px -20px rgba(5, 8, 30, .7),
              0 8px 20px -8px rgba(5, 8, 30, .5);
    --shadow-back: 0 0 0 .5px var(--edge), 0 12px 40px -18px rgba(5, 8, 30, .6);
    --sticker: linear-gradient(155deg, rgba(120, 140, 220, .55) 0%, rgba(60, 76, 150, .4) 55%, rgba(30, 40, 90, .35) 100%);
    --sticker-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25), inset 0 2px 2px rgba(255, 255, 255, .35), 0 8px 18px -4px rgba(0, 0, 0, .55);
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--ink); overflow: hidden;
  font: 400 14px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; }
/* the desk is the screen: on a computer it never scrolls, whatever sticks out past an edge (a window moved half off, one
   shrunk to the dock) - a page that scrolls would carry the windows away from the background */
html, body { overflow: hidden; }
.desk { position: absolute; inset: 0; overflow: hidden; }

/* behind the glass: the 3D space (see-through, so the gradient of the page is its sky), and a fine grain */
#world { position: fixed; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.8s ease; }
#world.on { opacity: 1; }
.grain {
  position: fixed; inset: -50%; z-index: 80; pointer-events: none; opacity: .04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes grain { 0%, 100% { transform: none; } 33% { transform: translate(-3%, 2%); } 66% { transform: translate(2%, -3%); } }
.vignette { position: fixed; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 45%, rgba(255, 255, 255, .12), transparent 55%, rgba(20, 40, 60, .18)); }

/* the grounds to choose from: the valley and the beach of the hallway display, and the grey of the admin's gray theme */
html[data-ground="beach"] { --bg: url(img/beach.jpg) center / cover fixed, #7fb0d0; }
html[data-ground="grey"] { --bg: radial-gradient(circle, rgb(210, 225, 245) 0%, rgb(120, 130, 140) 130%) fixed; }
@media (prefers-color-scheme: dark) {
  html[data-ground="beach"] { --bg: linear-gradient(rgba(8, 14, 30, .62), rgba(8, 14, 30, .62)) fixed, url(img/beach.jpg) center / cover fixed, #1a2230; }
  html[data-ground="grey"] { --bg: radial-gradient(circle, rgb(62, 72, 90) 0%, rgb(22, 26, 32) 130%) fixed; }
}
/* the bar at the top: a toolbar, as a desktop has one - a gradient with fine stripes, a light top edge, a shadow under it */
.menubar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 70; height: 34px; display: flex; align-items: center; gap: 14px; padding: 0 12px;
  background: repeating-linear-gradient(rgba(255, 255, 255, .22) 0 1px, transparent 1px 3px), linear-gradient(#f6f8fc, #dde4ee 60%, #cfd8e5);
  box-shadow: inset 0 1px 0 #fff, 0 1px 0 rgba(40, 55, 90, .35), 0 6px 18px rgba(10, 20, 50, .35), 0 2px 4px rgba(10, 20, 50, .2);
  font-size: 13px; font-weight: 500; color: var(--tt-ink);
}
@media (prefers-color-scheme: dark) {
  .menubar { color: #eef2fb; background: repeating-linear-gradient(rgba(255, 255, 255, .04) 0 1px, transparent 1px 3px), linear-gradient(#3a465c, #2a3346 60%, #222a3a);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 0 rgba(0, 0, 0, .5), 0 6px 18px rgba(0, 0, 0, .5); }
}
/* the menus of the toolbar: a click opens one, the pointer moves between them while one is open, as on a desktop */
/* the menus hang from the bar itself: the open one lit the full height of the bar, its list straight under it, square at the top */
.menus { display: flex; align-self: stretch; }
.menu { position: relative; display: flex; align-items: stretch; }
.mbtn { border: 0; background: transparent; padding: 0 12px; border-radius: 0; font-size: 12.5px; font-weight: 500; color: inherit; cursor: pointer; }
.mbtn:hover { background: rgba(42, 62, 146, .1); }
.menu.open .mbtn { background: linear-gradient(#5a8ad0, #2f62a8); color: #fff; text-shadow: 0 1px 1px rgba(0, 0, 0, .25); }
.drop { position: absolute; top: 100%; left: 0; min-width: 210px; padding: 5px; border-radius: 0 0 8px 8px; display: none; flex-direction: column;
  background: rgba(250, 252, 255, .92); backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: 0 0 0 .5px rgba(20, 30, 60, .25), 0 18px 40px -10px rgba(10, 20, 50, .5), 0 4px 10px rgba(10, 20, 50, .2);
  clip-path: inset(0 -40px -60px -40px); }
.menu.open .drop { display: flex; animation: drop .16s ease-out; }
@keyframes drop { from { transform: translateY(-8px); opacity: .4; } }
.drop button { display: flex; justify-content: space-between; align-items: center; border: 0; background: transparent; text-align: left;
  padding: 5px 10px; border-radius: 6px; font-size: 13px; color: #23264a; cursor: pointer; }
.drop button:hover { background: linear-gradient(#5a8ad0, #2f62a8); color: #fff; }
.drop button small { font-size: 10px; opacity: .6; }
.drop button.on::before { content: "\2713"; position: absolute; margin-left: -9px; font-size: 10px; }
.drop .head { padding: 6px 10px 2px; font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #7c86a0; }
.drop hr { border: 0; height: 1px; margin: 4px 6px; background: rgba(35, 38, 74, .12); }
@media (prefers-color-scheme: dark) {
  .mbtn:hover { background: rgba(255, 255, 255, .1); }
  .drop { background: rgba(36, 44, 66, .92); } .drop button { color: #eef2fb; } .drop hr { background: rgba(255, 255, 255, .12); }
}
.menubar .mono { font: 600 15px Fraunces, serif; letter-spacing: -.01em; }
.menubar .mono span { color: var(--accent); }
.status { display: flex; align-items: center; gap: 8px; font: 400 11px "JetBrains Mono", ui-monospace, monospace; color: var(--soft); }
.status i { width: 6px; height: 6px; border-radius: 50%; background: #34c759; animation: beat 2s infinite; }
@keyframes beat { 0% { box-shadow: 0 0 0 0 rgba(52, 199, 89, .5); } 70%, 100% { box-shadow: 0 0 0 6px rgba(52, 199, 89, 0); } }
.status b { color: var(--ink); font-weight: 400; }
.menubar .spacer { flex: 1; }
.menubar .clock { font-size: 13px; font-variant-numeric: tabular-nums; }
.lang { display: flex; padding: 2px; border-radius: 7px; background: var(--line); position: relative; }
.lang button { position: relative; z-index: 1; font-size: 11px; font-weight: 600; letter-spacing: .04em; color: var(--soft);
  background: none; border: 0; padding: 1px 9px; border-radius: 5px; cursor: pointer; transition: color .3s; }
.lang button[aria-pressed=true] { color: var(--ink); }
.lang .knob { position: absolute; top: 2px; bottom: 2px; left: 2px; width: calc(50% - 2px); border-radius: 5px; background: var(--win-top);
  box-shadow: 0 1px 2px rgba(20, 30, 80, .2), 0 0 0 .5px var(--edge); transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
html[lang=en] .lang .knob { transform: translateX(100%); }

/* round stickers on the desk, as Kennis has them: a light disc, a little tilted; they peel up when you take one */
.sticker {
  position: absolute; z-index: 5; width: 64px; height: 64px; padding: 15px; border: 0; border-radius: 50%; cursor: grab;
  background: var(--sticker); box-shadow: var(--sticker-shadow); transform: rotate(var(--r)) scale(var(--s, 1));
  backdrop-filter: blur(10px) saturate(1.7); -webkit-backdrop-filter: blur(10px) saturate(1.7);
  transition: transform .35s cubic-bezier(.2, .9, .2, 1), box-shadow .35s, opacity .6s; touch-action: none; opacity: 0;
}
.sticker.in { opacity: 1; }
.sticker svg { position: relative; z-index: 1; width: 100%; height: 100%; display: block; overflow: visible; filter: drop-shadow(0 1px 1px rgba(10, 20, 50, .25)); }
/* the shine of the glass: a soft oval of light over the top */
.sticker::after { content: ""; position: absolute; left: 14%; right: 14%; top: 6%; height: 42%; border-radius: 50%; pointer-events: none;
  background: linear-gradient(rgba(255, 255, 255, .85), rgba(255, 255, 255, 0)); }
.sticker:hover { --s: 1.06; }
.sticker.held { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .75), inset 0 2px 2px rgba(255, 255, 255, .9), 0 18px 30px -8px rgba(10, 20, 50, .45); }
.sticker.held { --s: 1.12; cursor: grabbing; transform: rotate(calc(var(--r) * .3)) scale(var(--s)) translateY(-4px);
  transition: box-shadow .3s, transform .3s; }
.fill-accent { fill: var(--accent); } .fill-ink { fill: var(--blue); } .fill-sky { fill: var(--sky); }
.stroke-ink { fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linejoin: round; }
@media (prefers-color-scheme: dark) { .fill-ink { fill: var(--sky); } .stroke-ink { stroke: #fff; } }

/* the windows: glass with a hairline edge, a title bar with fine stripes, the controls of KDE */
.win {
  position: absolute; z-index: 10; border-radius: 12px; background: var(--win); box-shadow: var(--shadow-back);
  backdrop-filter: blur(14px) saturate(1.7); -webkit-backdrop-filter: blur(14px) saturate(1.7); overflow: hidden;
  transition: opacity .4s, transform .5s cubic-bezier(.2, .9, .2, 1), filter .4s, background .3s, box-shadow .3s;
}
.win::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3;
  background: linear-gradient(160deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 32%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45), inset 0 1px 0 rgba(255, 255, 255, .8); mix-blend-mode: soft-light; }
@media (prefers-color-scheme: dark) { .win::after { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), inset 0 1px 0 rgba(255, 255, 255, .2); } }
.win.top { background: var(--win-top); box-shadow: var(--shadow); }
/* a window pops in: from small, a little past its size and back, with a spring; going it shrinks away without one */
.win { transform-origin: 50% 60%; transition: opacity .3s, transform .6s cubic-bezier(.34, 1.56, .64, 1), filter .3s, background .3s, box-shadow .3s; }
.win.closed { opacity: 0; transform: scale(.6); filter: blur(6px); pointer-events: none;
  transition: opacity .25s, transform .3s cubic-bezier(.4, 0, 1, 1), filter .25s; }
.win.min { opacity: 0; transform: scale(.2) translateY(70vh); filter: blur(10px); pointer-events: none; }
.dragging { transition: opacity .4s, filter .4s, background .3s; }
.titlebar {
  height: 34px; display: flex; align-items: center; gap: 8px; padding: 0 6px 0 10px; cursor: default; user-select: none; touch-action: none;
  background: var(--titlebar); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 1px 0 rgba(10, 16, 50, .5); font-size: 13px; font-weight: 500;
  color: #fff; text-shadow: 1px 1px 3px #333;
}
/* the window you are working in: a pink head, in the pink of TaalTaal */
.win.top .titlebar { background: linear-gradient(#f07aa6, #d63f7a 40%, #a00d50 150%); }
.win:not(.top) .titlebar { filter: saturate(.55) brightness(1.15); color: rgba(255, 255, 255, .8); }
.titlebar .app { width: 16px; height: 16px; flex: none; color: #fff; }
.titlebar .t { flex: 1; min-width: 0; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* the controls as KDE's Breeze has them, on the right: minimize, maximize, close; a round light behind the one you point
   at, red behind close */
.ctrls { display: flex; gap: 2px; flex: none; }
.ctrls .c { width: 24px; height: 24px; border: 0; padding: 0; border-radius: 50%; background: transparent; cursor: default;
  display: grid; place-items: center; color: #fff; transition: background .15s, color .15s; }
.ctrls .c svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.win:not(.top) .ctrls .c { color: rgba(255, 255, 255, .75); }
.ctrls .c:hover { background: rgba(255, 255, 255, .18); }
.ctrls .c:active { background: rgba(255, 255, 255, .28); }
.ctrls .close:hover { background: #da4453; color: #fff; }
.ctrls .close:active { background: #b8323f; color: #fff; }
.win.max .ctrls .zoom svg path { d: path("M4 6l4 4 4-4"); }
.body { padding: 16px 22px 22px; }

/* about */
.about { width: clamp(360px, 27vw, 520px); }
.about .body { padding: 14px 18px 16px; }
.who { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; flex: none; object-fit: cover; padding: 3px;
  background: linear-gradient(140deg, var(--tt-sky), var(--tt-blue) 55%, var(--tt-pink)); box-shadow: 0 6px 16px -6px rgba(20, 30, 80, .5);
  opacity: 0; transform: scale(.6) rotate(-10deg); animation: pop .8s .35s cubic-bezier(.34, 1.56, .64, 1) forwards; }
@keyframes pop { to { opacity: 1; transform: none; } }
/* the name: a display serif, deep blue, and now and then a wave of light runs through it letter by letter, sky and pink */
.about h1 { font-family: "DM Serif Display", Georgia, serif; font-weight: 400; font-size: clamp(34px, 2.6vw, 50px); line-height: 1; letter-spacing: -.01em;
  margin: 0; cursor: default; color: var(--tt-ink); }
.about h1 .word:last-child { font-style: italic; }
.about h1 .ch { display: inline-block; opacity: 0; transform: translateY(.35em) rotate(4deg); filter: blur(10px);
  color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(110deg, #1d2c6e 0%, #1d2c6e 42%, #73d2f7 48%, #ffffff 50%, #f07aa6 53%, #1d2c6e 60%, #1d2c6e 100%);
  background-size: 500% 100%; background-position: 100% 0;
  animation: rise 1.1s cubic-bezier(.16, 1, .3, 1) forwards, shine 7s ease-in-out infinite;
  animation-delay: calc(var(--i) * 45ms + 500ms), calc(var(--i) * 70ms + 2.2s);
  transition: transform .4s cubic-bezier(.34, 1.56, .64, 1); }
/* once it has risen the letter keeps only its light, so a lift on hover can move it (a held animation would win) */
.about h1 .ch.risen { opacity: 1; transform: none; filter: none; animation: shine 7s ease-in-out infinite; animation-delay: calc(var(--i) * 70ms + .6s); }
.about h1 .ch.risen.lift { transform: translateY(-.12em); }
@keyframes shine { 0% { background-position: 100% 0; } 35%, 100% { background-position: 0% 0; } }
@media (prefers-color-scheme: dark) {
  .about h1 .ch { background-image: linear-gradient(110deg, #eef2fb 0%, #eef2fb 42%, #73d2f7 48%, #ffffff 50%, #f07aa6 53%, #eef2fb 60%, #eef2fb 100%); }
}
.about h1 .word { display: inline-block; white-space: nowrap; }
@keyframes rise { to { opacity: 1; transform: none; filter: none; } }
.say { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.play { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: 13px; background: linear-gradient(#fff, #eef2f7);
  border: 0; box-shadow: 0 0 0 .5px var(--edge), 0 1px 2px rgba(20, 30, 80, .12); border-radius: 999px; padding: 4px 14px 4px 4px;
  cursor: pointer; transition: box-shadow .3s, transform .3s; color: var(--tt-ink); }
.play:hover { transform: translateY(-1px); box-shadow: 0 0 0 .5px var(--edge), 0 6px 16px -6px rgba(42, 62, 146, .45); }
.play .disc { position: relative; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(140deg, #4d6bd1, var(--tt-blue));
  display: grid; place-items: center; }
.play .disc::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid #4d6bd1; opacity: 0; }
.play.on .disc::after { animation: ripple 1.2s ease-out infinite; }
@keyframes ripple { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(1.9); } }
.play .tri { width: 9px; height: 9px; fill: #fff; margin-left: 2px; transition: opacity .2s; }
.play .bars { position: absolute; display: flex; gap: 2px; align-items: center; height: 10px; opacity: 0; }
.play .bars i { width: 2px; height: 100%; background: #fff; border-radius: 1px; transform: scaleY(.3); }
.play.on .tri { opacity: 0; } .play.on .bars { opacity: 1; }
.play.on .bars i { animation: eq .6s ease-in-out infinite alternate; }
.play.on .bars i:nth-child(2) { animation-delay: -.2s; } .play.on .bars i:nth-child(3) { animation-delay: -.4s; }
@keyframes eq { to { transform: scaleY(1); } }
.syl { display: flex; gap: 2px; font-size: 14px; color: var(--soft); }
.syl span { position: relative; padding: 1px; transition: color .25s; }
.syl span.st { color: var(--ink); font-weight: 600; }
.syl span::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; border-radius: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.syl span.now { color: var(--accent); } .syl span.now::after { transform: scaleX(1); }
.syl .sep { color: var(--line); padding: 0 4px; } .syl .sep::after { display: none; }
.note { color: var(--soft); font-size: 12px; min-height: 1.4em; margin: -10px 0 6px; }
/* the intro comes in word by word, as a model writes */
.stream { font-size: 13.5px; line-height: 1.5; margin: 0; }
.stream .tok { opacity: 0; filter: blur(4px); }
.stream .tok.on { animation: tok .5s ease forwards; }
@keyframes tok { to { opacity: 1; filter: none; } }
.stream.writing .tok.last::after { content: "▍"; color: var(--accent); margin-left: 2px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* Sakarya 64: the screen of a home computer of the eighties, on a tube - slightly rounded, scanlines, a little glow */
.c64 { width: clamp(400px, 36vw, 900px); }
.c64 .body { padding: 0; }
.crt { position: relative; border-radius: 0; overflow: hidden; background: #000; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .4),
  0 1px 0 rgba(255, 255, 255, .6); }
.crt canvas { display: block; width: 100%; aspect-ratio: 352 / 236; image-rendering: pixelated; cursor: text; }
.crt::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: repeating-linear-gradient(rgba(0, 0, 0, .14) 0 1px, transparent 1px 3px); mix-blend-mode: multiply; }
.crt::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; border-radius: inherit;
  /* the tube's darker edge, the same on all four sides: centred, so no band shows along the bottom of a large screen */
  background: radial-gradient(farthest-corner at 50% 50%, rgba(255, 255, 255, .05), transparent 55%, rgba(0, 0, 0, .26) 100%);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, .45); }
.crt input { position: absolute; left: 0; bottom: 0; width: 100%; height: 30px; opacity: 0; font-size: 16px; border: 0; padding: 0;
  pointer-events: none; caret-color: transparent; }
.c64-hint { font-size: 11.5px; color: var(--soft); margin-top: 8px; text-align: center; }

/* the grip in the bottom right corner: three short diagonal lines, as a window manager draws them */
.grip { position: absolute; right: 0; bottom: 0; width: 16px; height: 16px; z-index: 5; cursor: nwse-resize; touch-action: none; opacity: .55;
  background: linear-gradient(135deg, transparent 0 55%, var(--soft) 55% 60%, transparent 60% 70%, var(--soft) 70% 75%, transparent 75% 85%, var(--soft) 85% 90%, transparent 90%); }
.grip:hover { opacity: 1; }
/* a window sized by hand: its content takes the room - a screen or canvas grows with it, text gets a scrollbar */
.win.sized { display: flex; flex-direction: column; }
.win.sized > .body, .win.sized > .pane:not([hidden]) { flex: 1; min-height: 0; overflow: auto; }
.win.sized.c64 .body { display: flex; overflow: hidden; }
.win.sized.c64 .crt { flex: 1; min-height: 0; display: flex; }
.win.sized.c64 .crt canvas { width: 100%; height: 100%; aspect-ratio: auto; }
.win.sized.pixel .strip canvas { width: auto; max-width: 100%; max-height: calc(100% - 4px); margin: 0 auto; }
.win.sized.object { --pad: min(60vh, 360px); }
@media (max-width: 760px) { .grip { display: none; } .win.sized { height: auto !important; } }

/* a window made as large as the desk (the green light), and back */
.win.max { border-radius: 0; z-index: 75 !important; box-shadow: none; }
/* full screen: no head of its own - the way out is in the bar at the top */
.win.max > .titlebar, .win.max > .grip { display: none; }
.win.max.c64 .body { height: 100%; }
.win.max.object canvas.model, .win.max .pane { max-height: 100%; }
/* in the bar while a window is full screen: the way out */
.menubar .unmax { display: none; align-items: center; gap: 6px; border: 0; border-radius: 6px; padding: 3px 10px; cursor: pointer; font-size: 12.5px; font-weight: 600;
  color: #fff; background: linear-gradient(#f07aa6, #cd1165); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
.menubar .unmax svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
body.has-max .menubar .unmax { display: inline-flex; }
.win.sizing { transition: left .45s cubic-bezier(.2, .9, .2, 1), top .45s cubic-bezier(.2, .9, .2, 1), width .45s cubic-bezier(.2, .9, .2, 1),
  height .45s cubic-bezier(.2, .9, .2, 1), opacity .3s, transform .6s, background .3s, box-shadow .3s; }
.win.max > .body, .win.max > canvas { overflow: auto; }
.win.max.c64 .body { height: 100%; display: flex; flex-direction: column; }
.win.max.c64 .crt { flex: 1; min-height: 0; display: flex; }
.win.max.c64 .crt canvas { width: 100%; height: 100%; aspect-ratio: auto; }
.win.max.object canvas.model { height: calc(100vh - 380px); }
.win.max.object canvas.km { height: calc(100vh - 360px); }
.win.max.object { --pad: min(55vh, 420px); }
.win.max.pixel .strip canvas { flex: none; width: auto; height: calc(100vh - 330px); margin: 0 auto; }

/* training: three things a model does, in tabs - reading a digit you draw, learning a shape from noise, finding groups */
/* the pad decides the height of every tab, and is tall enough for the ten bars of the digits: no jump between tabs */
.object { --pad: clamp(190px, 13vw, 320px); width: calc(var(--pad) + 190px); }
.pane.read { height: calc(var(--pad) + 24px); box-sizing: border-box; align-items: flex-start; }
.tabs { display: flex; gap: 2px; margin: 10px 12px 0; padding: 2px; border-radius: 8px; background: var(--line); }
.tabs button { flex: 1; border: 0; padding: 4px 0; white-space: nowrap; border-radius: 6px; background: transparent; font-size: 12px; font-weight: 500;
  color: var(--soft); cursor: pointer; transition: background .2s, color .2s; }
.tabs button[aria-selected=true] { background: var(--win-top); color: var(--ink); box-shadow: 0 1px 2px rgba(20, 30, 80, .18), 0 0 0 .5px var(--edge); }
.pane[hidden] { display: none !important; }
.pane.read { display: flex; gap: 12px; padding: 12px; }
.pad-wrap { position: relative; flex: none; }
.pad { width: var(--pad); height: var(--pad); display: block; border-radius: 8px; background: #11182b; cursor: crosshair; touch-action: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 1px 0 rgba(255, 255, 255, .5); }
/* the invitation on the pad: you can draw here yourself; gone as soon as you do */
.try { position: absolute; left: 50%; bottom: 10px; translate: -50% 0; display: flex; align-items: center; gap: 5px; white-space: nowrap;
  padding: 4px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; color: #fff; pointer-events: none;
  background: linear-gradient(120deg, var(--tt-pink), #e0427f); box-shadow: 0 4px 12px -4px rgba(205, 17, 101, .7);
  animation: invite 2.4s ease-in-out infinite; transition: opacity .3s; }
.try svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linejoin: round; }
@keyframes invite { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.pane.read.mine .try { opacity: 0; }
.pane.read.mine .wipe, .pane.read:not(.mine) .wipe { bottom: auto; top: 6px; }
.wipe { position: absolute; right: 6px; bottom: 6px; border: 0; border-radius: 6px; padding: 2px 8px; font-size: 11px; color: #cfe8ff;
  background: rgba(255, 255, 255, .1); cursor: pointer; }
.wipe:hover { background: rgba(255, 255, 255, .2); }
.guess { flex: 1; min-width: 0; }
.guess .top { display: flex; align-items: baseline; gap: 8px; height: 40px; }
.guess .big { font: 600 34px/1 Fraunces, serif; color: var(--accent); min-width: 22px; transition: transform .25s cubic-bezier(.34, 1.56, .64, 1); }
.guess .big.bump { transform: scale(1.25); }
.guess .conf { font: 400 11px "JetBrains Mono", monospace; color: var(--soft); }
.bars { display: grid; gap: 2px; margin-top: 4px; }
.bars .row { display: grid; grid-template-columns: 14px 1fr 30px; align-items: center; gap: 6px; font: 400 10px/1 "JetBrains Mono", monospace; color: var(--soft); }
.bars .bar { height: 7px; border-radius: 4px; background: var(--line); overflow: hidden; }
.bars .bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--tt-sky), var(--tt-blue));
  transition: width .25s ease; }
.bars .row.best { color: var(--ink); }
.bars .row { cursor: pointer; border-radius: 4px; }
.bars .row:hover { background: rgba(205, 17, 101, .1); color: var(--ink); }
.pane.read.taught .guess .big { animation: taught .9s ease; }
@keyframes taught { 30% { transform: scale(1.3); color: #34a853; } }
.shape-ico { display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.guess .big .shape-ico { stroke-width: 2.2; color: var(--accent); }
.bars .row.best .bar i { background: linear-gradient(90deg, #f07aa6, var(--tt-pink)); }
.object canvas.model { width: 100%; height: 210px; display: block; cursor: grab; touch-action: none; }
.object canvas.model:active { cursor: grabbing; }
.object canvas.km { width: calc(100% - 24px); height: 190px; display: block; margin: 12px 12px 6px; border-radius: 8px; background: rgba(255, 255, 255, .45);
  cursor: copy; box-shadow: inset 0 0 0 .5px var(--edge); }
@media (prefers-color-scheme: dark) { .object canvas.km { background: rgba(0, 0, 0, .2); } }
.train { padding: 0 16px 14px; }
.nums { display: flex; gap: 14px; font: 400 11px "JetBrains Mono", ui-monospace, monospace; color: var(--soft); }
.nums b { color: var(--ink); font-weight: 400; }
.nums .phase { margin-left: auto; color: var(--accent); }
.spark { width: 100%; height: 38px; display: block; margin-top: 6px; }

/* pixel: a nod to Glitter Graphics */
.pixel { width: clamp(220px, 15vw, 360px); }
.pixel .body { padding: 8px 10px 10px; }
/* the pixels on an opaque white sheet, not on glass */
.win.pixel, .win.pixel.top { background: rgba(255, 255, 255, .94); }
/* the training a little more solid than glass */
.win.object { background: rgba(255, 255, 255, .84); }
.win.object.top { background: rgba(255, 255, 255, .92); }
@media (prefers-color-scheme: dark) { .win.pixel, .win.pixel.top { background: rgba(36, 44, 66, .96); } .win.object, .win.object.top { background: rgba(30, 38, 62, .9); } }
.strip { display: flex; overflow: hidden; border-radius: 4px; background: #b9c2d0; cursor: grab; box-shadow: inset 0 0 0 1px rgba(60, 70, 90, .35);
  scrollbar-width: none; outline: none; }
.strip::-webkit-scrollbar { display: none; }
.strip canvas { flex: 0 0 100%; width: 100%; aspect-ratio: 20 / 16; display: block; }
/* the board lies a little sunk into the window: a shadow inside its edge, over the canvas */
.strip { position: relative; }
.strip::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 2px 6px rgba(20, 30, 50, .4), inset 0 0 0 1px rgba(20, 30, 50, .25); }
.swatches { display: flex; gap: 4px; justify-content: center; margin-top: 8px; }
.swatches button { width: 18px; height: 18px; border: 0; padding: 0; border-radius: 3px; cursor: pointer; background: var(--c);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .6), inset -1px -1px 0 rgba(0, 0, 0, .3); }
.swatches button[aria-pressed=true] { outline: 2px solid var(--ink); outline-offset: 1px; }
.swatches .rub { background: #d6dce6; display: grid; place-items: center; }
.swatches .rub svg { width: 12px; height: 12px; fill: none; stroke: #23264a; stroke-width: 1.6; }
.strip { cursor: crosshair !important; }
.pager { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.pager button { width: 24px; height: 24px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer;
  display: grid; place-items: center; }
.pager button:hover { background: var(--line); }
.pager svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dots { display: flex; gap: 5px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: background .3s, transform .3s; cursor: pointer; }
.dots i.on { background: var(--accent); transform: scale(1.25); }
.gg { display: flex; flex-direction: column; margin-top: 12px; color: var(--soft); text-decoration: none; font-size: 12px; }
.gg b { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 600; font-size: 13px; transition: color .3s; }
.gg:hover b { color: var(--accent); }
.gg svg, .links svg { width: 10px; height: 10px; stroke: currentColor; fill: none; stroke-width: 1.6; }

/* about has two tabs, over each other in one place, so the window keeps its size between them */
.about .body { display: grid; }
.about-tabs { margin: 0 0 12px; grid-area: 1 / 1; }
.apane { grid-area: 2 / 1; }
.apane[hidden] { display: block; visibility: hidden; }
.apane.links { width: auto; align-self: start; }
.links .lk { display: inline-flex; align-items: center; gap: 12px; }
.links .ico { width: 24px; height: 24px; flex: none; }
.links .ico.tt { border-radius: 0; }
.links .ico.moz { border-radius: 5px; box-shadow: 0 0 0 .5px rgba(17, 17, 102, .25), 0 1px 2px rgba(10, 20, 50, .15); }
.links a > svg:last-child { width: 10px; height: 10px; }

/* the object: a model under studio light, to turn and look at */
.model { width: clamp(320px, 24vw, 600px); }
.model .body { padding: 0; }
.stage { position: relative; }
/* the bar while a model comes in */
.loadbar { position: absolute; left: 20%; right: 20%; top: 50%; height: 6px; margin-top: -3px; border-radius: 3px; background: rgba(35, 38, 74, .18);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .2); overflow: hidden; }
.loadbar[hidden] { display: none; }
.loadbar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--tt-sky), var(--tt-blue)); transition: width .25s ease; }
.stage .credit { position: absolute; right: 8px; bottom: 6px; margin: 0; font-size: 10px; color: rgba(255, 255, 255, .8); text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.viewer3d { display: block; width: 100%; aspect-ratio: 16 / 10; cursor: grab; touch-action: none;
  background: radial-gradient(circle, rgb(210, 225, 245) 0%, rgb(120, 130, 140) 130%); }
.viewer3d:active { cursor: grabbing; }
/* everything under the stage in the colour of the toolbar */
.model .body { background: repeating-linear-gradient(rgba(255, 255, 255, .22) 0 1px, transparent 1px 3px), linear-gradient(#f6f8fc, #dde4ee 60%, #cfd8e5); }
.model-bar { display: flex; align-items: center; gap: 4px; padding: 5px 6px; box-shadow: inset 0 1px 0 rgba(40, 55, 90, .25); }
@media (prefers-color-scheme: dark) { .model .body { background: linear-gradient(#3a465c, #2a3346 60%, #222a3a); } }
.model-bar button { width: 26px; height: 26px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.model-bar button:hover { background: var(--line); }
.model-bar svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.model-text { flex: 1; min-width: 0; text-align: center; line-height: 1.25; }
/* a height of their own before the first model is named, so the window does not grow after the desk was laid out */
.model-name { display: block; min-height: 1.25em; font: 600 12.5px Inter, sans-serif; }
.model-say { display: block; min-height: 1.3em; font: italic 400 12.5px/1.3 Fraunces, Georgia, serif; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win.max.model .viewer3d, .win.sized.model .viewer3d { aspect-ratio: auto; height: calc(100vh - 300px); }
.win.sized.model .viewer3d { height: calc(100% - 44px); }

/* links */
.links { width: clamp(230px, 16vw, 300px); }
.links .body { padding: 6px 16px 10px; }
.links a { display: flex; align-items: center; justify-content: space-between; padding: 10px 4px; color: var(--ink); text-decoration: none;
  border-top: .5px solid var(--edge); transition: color .3s, padding .4s cubic-bezier(.2, .8, .2, 1); font-weight: 500; }
.links a:first-child { border-top: 0; }
.links a:hover { color: var(--accent); padding-left: 10px; }

/* a phone on the desk, at work: a chat in several languages, someone typing, a model translating in between */
.phone { position: absolute; z-index: 6; width: 150px; height: 304px; padding: 7px; border-radius: 28px; cursor: grab; touch-action: none;
  background: linear-gradient(145deg, #3b4252, #12151c 60%, #2a2f3a); opacity: 0;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .14), 0 30px 60px -16px rgba(10, 20, 50, .65), 0 10px 20px -8px rgba(10, 20, 50, .4);
  transform: rotate(var(--r, -6deg)) scale(var(--s, 1)); transition: transform .4s cubic-bezier(.2, .9, .2, 1), box-shadow .4s, opacity .8s; }
.phone.in { opacity: 1; }
.phone:hover { --s: 1.03; }
.phone.held { --s: 1.07; --r: -2deg; cursor: grabbing; }
.phone .screen { position: relative; height: 100%; border-radius: 22px; overflow: hidden; display: flex; flex-direction: column;
  background: linear-gradient(170deg, #eef4ff, #dfe8f7); }
.phone .notch { position: absolute; top: 6px; left: 50%; width: 46px; height: 13px; margin-left: -23px; border-radius: 8px; background: #0d1016; z-index: 2; }
.phone .pbar { display: flex; justify-content: space-between; padding: 6px 14px 0; height: 24px; font: 600 9px -apple-system, Inter, sans-serif; color: #23264a; }
.phone .head { display: flex; align-items: center; gap: 6px; padding: 6px 10px; font: 600 10px Inter, sans-serif; color: #23264a;
  border-bottom: .5px solid rgba(35, 38, 74, .12); }
.phone .head i { width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(140deg, #8adcf9, #2a3e92); }
.phone .head small { display: block; font-weight: 400; color: #34a853; font-size: 8px; }
.phone .chat { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 5px; padding: 8px; overflow: hidden; }
.phone .msg { max-width: 82%; padding: 5px 8px; border-radius: 11px; font: 400 9.5px/1.3 Inter, sans-serif; color: #23264a; background: #fff;
  box-shadow: 0 1px 1px rgba(20, 30, 80, .1); align-self: flex-start; animation: msg .45s cubic-bezier(.34, 1.56, .64, 1) both;
  transform-origin: left bottom; }
.phone .msg.me { align-self: flex-end; color: #fff; background: linear-gradient(140deg, #4d6bd1, #2a3e92); transform-origin: right bottom; }
.phone .msg.ai { align-self: center; max-width: 92%; font-size: 8.5px; color: #cd1165; background: #fde8f0; border-radius: 8px; }
.phone .msg.ai::before { content: "\2726  "; }
.phone .typing { display: flex; gap: 3px; padding: 7px 9px; }
.phone .typing b { width: 4px; height: 4px; border-radius: 50%; background: #8890a8; animation: dot 1s infinite; }
.phone .typing b:nth-child(2) { animation-delay: .15s; } .phone .typing b:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-3px); opacity: 1; } }
@keyframes msg { from { opacity: 0; transform: scale(.6) translateY(8px); } }
.phone .home { height: 14px; display: grid; place-items: center; }
.phone .home::after { content: ""; width: 40px; height: 3px; border-radius: 2px; background: #23264a; opacity: .5; }

/* widgets on the desk, as Konfabulator had them: things, not windows - a clock with a metal rim under glass, a calendar to
   tear a page off; picked up and put down elsewhere */
.widget { position: absolute; z-index: 6; cursor: grab; touch-action: none; user-select: none; opacity: 0;
  transform: rotate(var(--r, 0deg)) scale(var(--s, 1)); transition: transform .4s cubic-bezier(.2, .9, .2, 1), filter .4s, opacity .8s;
  filter: drop-shadow(0 18px 22px rgba(10, 20, 50, .45)) drop-shadow(0 4px 6px rgba(10, 20, 50, .3)); }
.widget.in { opacity: 1; }
.widget[hidden], .sticker[hidden] { display: none; }
.widget:hover { --s: 1.03; }
.widget.held { --s: 1.07; cursor: grabbing; filter: drop-shadow(0 30px 34px rgba(10, 20, 50, .5)) drop-shadow(0 6px 8px rgba(10, 20, 50, .3)); }
.clock { width: clamp(140px, 11vw, 190px); }
.clock svg { display: block; width: 100%; height: auto; }
/* the clock of the clock exercise on /oefenen: its classic face */
.clock .tick { stroke: #9aa3b5; stroke-width: 1; }
.clock .tick.big { stroke: #2b3f93; stroke-width: 2.5; stroke-linecap: round; }
.clock text { font: bold 15px Arial, sans-serif; fill: #2b3f93; text-anchor: middle; }
.clock .hand { stroke: #22304f; stroke-linecap: round; }
.clock .h { stroke-width: 7; }
.clock .m { stroke-width: 4.5; stroke: #2b3f93; }
.clock .s { stroke-width: 1.4; stroke: #c70765; }
.clock .pin { fill: #c70765; stroke: #fff; stroke-width: 1.5; }
.calendar { width: clamp(108px, 8vw, 140px); padding-top: 14px; border-radius: 10px; text-align: center; overflow: visible;
  background: linear-gradient(#fff, #f3f5f9); box-shadow: inset 0 -3px 0 #dde3ec, inset 0 -5px 0 #fff, inset 0 -7px 0 #d6dce6; }
.calendar .rings { position: absolute; top: -7px; left: 0; right: 0; display: flex; justify-content: space-around; padding: 0 22%; z-index: 2; }
.calendar .rings i { width: 7px; height: 20px; border-radius: 4px; background: linear-gradient(90deg, #6d7686, #f2f4f8 45%, #8a93a3); box-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.cal-month { margin-top: -14px; padding: 16px 0 6px; border-radius: 10px 10px 0 0; color: #fff; font: 700 12px Inter, sans-serif; letter-spacing: .14em;
  text-transform: uppercase; background: linear-gradient(#f07aa6, #cd1165); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .15); text-shadow: 0 1px 1px rgba(0, 0, 0, .25); }
.cal-day { font: 600 clamp(48px, 3.8vw, 66px)/1.1 Fraunces, serif; color: #23264a; padding-top: 6px; }
.cal-week { font: 500 12px Inter, sans-serif; color: #66708a; padding: 0 0 16px; text-transform: lowercase; }
.calendar:hover .cal-day { text-shadow: 0 1px 0 #fff; }
.proef { margin: 0; padding: 0 12px 9px; font-size: 10.5px; color: var(--soft); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* the dock, as Backgrounds Archive has it: a shelf of blue glass seen from a little above, the icons standing upright on it
   with their reflection in the glass, swelling under the pointer (--swell, from how near it is); the icons in the portal's
   gradients */
.dock {
  position: fixed; left: 50%; bottom: 10px; z-index: 70; display: flex; align-items: flex-end; gap: 14px;
  height: 84px; padding: 0 30px 24px; translate: -50% 0; perspective: 520px;
}
.dock::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 7px; height: 62px; z-index: -1; transform-origin: 50% 100%;
  transform: rotateX(64deg); border: 1px solid rgba(255, 255, 255, .8); border-radius: 14px;
  background: linear-gradient(rgba(236, 240, 246, .42), rgba(150, 160, 176, .62));
  -webkit-backdrop-filter: blur(10px) saturate(1.3); backdrop-filter: blur(10px) saturate(1.3);
  box-shadow: 0 0 0 1px rgba(60, 70, 90, .35), 0 18px 30px -8px rgba(10, 20, 40, .55), inset 0 2px 0 rgba(255, 255, 255, .8),
              inset 0 -10px 22px rgba(70, 80, 100, .3);
}
.dock::after {
  content: ""; position: absolute; left: 2px; right: 2px; bottom: 0; height: 8px; z-index: -1; border-radius: 0 0 10px 10px;
  background: linear-gradient(rgba(190, 198, 210, .9), rgba(110, 120, 136, .9)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 6px 14px -4px rgba(10, 20, 40, .55);
}
.dock button {
  --swell: 1; position: relative; width: calc(50px * var(--swell)); height: calc(50px * var(--swell)); border: 0; padding: 0;
  background: none; cursor: pointer; transition: width .12s ease-out, height .12s ease-out;
  -webkit-box-reflect: below 0 linear-gradient(transparent 62%, rgba(255, 255, 255, .3));
}
.dock glig-icon { display: block; width: 100%; height: 100%; filter: drop-shadow(0 4px 3px rgba(4, 20, 80, .45)); }
.dock button::after { content: ""; position: absolute; left: 50%; bottom: -15px; width: 9px; height: 4px; translate: -50% 0; border-radius: 50%;
  background: #bff0ff; box-shadow: 0 0 8px 2px var(--tt-sky); opacity: 0; transition: opacity .3s; }
.dock button.open::after, .dock .seen.on::after { opacity: 1; }
.dock button .tip { position: absolute; left: 50%; bottom: calc(100% + 12px); translate: -50% 4px; white-space: nowrap; padding: 3px 10px;
  border-radius: 8px; background: var(--win-top); color: var(--ink); font-size: 12px; font-weight: 600;
  box-shadow: 0 0 0 .5px var(--edge), 0 8px 18px -8px rgba(8, 16, 40, .5); opacity: 0; pointer-events: none; transition: opacity .12s, translate .12s; }
.dock button:hover .tip, .dock button:focus-visible .tip { opacity: 1; translate: -50% 0; }
.dock button:focus-visible { outline: 3px solid var(--tt-sky); outline-offset: 3px; }
/* the grounds on the shelf, as Backgrounds Archive has where you have been: after a thin line of light, three small
   photographs in a white frame; the one in use lit underneath */
.dock .gap { width: 1px; height: 44px; margin: 0 2px 3px; background: linear-gradient(transparent, rgba(255, 255, 255, .75) 30%, rgba(255, 255, 255, .75) 70%, transparent); }
.dock .seen { padding: calc(3px * var(--swell)) calc(3px * var(--swell)) calc(8px * var(--swell)); border-radius: 3px; background: #fff;
  box-shadow: 0 1px 2px rgba(10, 20, 50, .4), 0 6px 10px -4px rgba(10, 20, 50, .45); width: calc(42px * var(--swell)); height: calc(46px * var(--swell)); }
.dock .seen img, .dock .seen i { display: block; width: 100%; height: 100%; object-fit: cover; }
.dock .seen i { background: radial-gradient(circle, rgb(210, 225, 245) 0%, rgb(120, 130, 140) 130%); }
.dock .seen:nth-of-type(odd) { rotate: -3deg; } .dock .seen:nth-of-type(even) { rotate: 3deg; }

/* the screensaver: after half a minute of nothing the desk steps back, the camera drifts into the network and a large clock
   comes up; anything you do brings the desk back */
.saver { position: fixed; inset: 0; z-index: 75; display: grid; place-content: center; text-align: center; pointer-events: none; opacity: 0;
  transition: opacity 1.4s ease; color: #fff; text-shadow: 0 4px 30px rgba(10, 20, 50, .45); }
.saver b { font: 300 clamp(80px, 14vw, 220px)/1 Fraunces, serif; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.saver span { font: 500 clamp(14px, 1.3vw, 20px) Inter, sans-serif; letter-spacing: .3em; text-transform: uppercase; opacity: .85; margin-top: 10px; }
body.saving .saver { opacity: 1; }
body.saving .win, body.saving .sticker, body.saving .widget, body.saving .dock, body.saving .menubar {
  opacity: 0 !important; filter: blur(6px); pointer-events: none; transition: opacity 1.2s ease, filter 1.2s ease, transform 1.2s ease; }
body.saving .win { transform: scale(.95); }

[data-l] { transition: opacity .3s, filter .3s; }
[data-l].away { opacity: 0; filter: blur(6px); }

/* a phone: no desktop, the windows one under the other, the stickers in a row */
@media (max-width: 760px) {
  body { overflow: auto; }
  html, body { overflow: auto; }
  .desk { position: relative; inset: auto; overflow: visible; z-index: 10; padding: 44px 12px 96px; display: flex; flex-direction: column; gap: 14px; }
  .win { position: relative !important; left: auto !important; top: auto !important; width: auto !important; }
  .win.closed, .win.min { display: none; }
  .win.viewer { position: fixed !important; left: 10px !important; right: 10px; top: 44px !important; z-index: 60; }
  .about h1 { font-size: 44px; }
  .status .more { display: none; }
  .menus .menu:nth-child(3) { display: none; }
  .stickers { display: flex; justify-content: center; gap: 14px; order: 2; padding: 4px 0; }
  .widget { display: none; }
  .sticker { position: relative !important; left: auto !important; top: auto !important; cursor: pointer; }
  .about { order: 1; } .model { order: 7; } .c64 { order: 3; } .object { order: 4; } .pixel { order: 5; } .links { order: 6; }
  .dock { gap: 8px; height: 74px; padding: 0 14px 22px; }
  .dock button { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .about h1 .ch, .stream .tok { animation: none; opacity: 1; transform: none; filter: none; background-position: 0 0; }
  .grain, .status i { animation: none; }
  .win, .sticker, .dock button { transition: none; }
}

/* ?c67: from the very first paint only the bar and the computer, as large as the screen - the desk is not even drawn */
html.c67 body { background: #867ade; }
html.c67 .desk > :not(#w-c64), html.c67 .dock, html.c67 #world, html.c67 .vignette { display: none !important; }
html.c67 #w-c64 { left: 0 !important; top: 34px !important; width: 100vw !important; height: calc(100vh - 34px) !important; z-index: 75 !important;
  opacity: 1 !important; transform: none !important; filter: none !important; border-radius: 0; box-shadow: none; transition: none !important; }
html.c67 #w-c64 > .titlebar, html.c67 #w-c64 > .grip { display: none; }
html.c67 #w-c64 .body { height: 100%; display: flex; flex-direction: column; }
html.c67 #w-c64 .crt { flex: 1; min-height: 0; display: flex; background: #867ade; }
html.c67 #w-c64 .crt canvas { width: 100%; height: 100%; aspect-ratio: auto; }
