/* Dead Web Diver prototype.
   Layers, back to front: room still > screen spill > dust > tube > bezel > screen (desktop, then glass). */
:root {
  --putty: #d6cfbd;
  --putty-hi: #f6f1e4;
  --putty-lo: #8d8571;
  --putty-deep: #474233;
  --ink: #17150f;
  --water-1: #0b2a3a;
  --water-2: #1d6a70;
  --tether: #ffd23f;
  --phosphor: #8ff5d4;
  --warn: #c8402c;
  --glow: 120, 215, 255;
  --ui: Tahoma, Verdana, Geneva, "DejaVu Sans", sans-serif;
  --readout: "VT323", "Lucida Console", monospace;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; background: #05060a; overflow: hidden; }
body { font: 11px/1.35 var(--ui); color: var(--ink); }
button { font: inherit; color: inherit; }

/* ---------- the room ---------- */
#stage {
  position: fixed; left: 0; top: 0; width: 2000px; height: 848px;
  transform-origin: 0 0; transition: transform 1.15s cubic-bezier(.6,.02,.2,1), filter 1.15s;
}
#room { position: absolute; inset: 0; width: 2000px; height: 848px; display: block; user-select: none; -webkit-user-drag: none; }
body.seated #room { filter: blur(1.6px) brightness(.72); transition: filter 1.15s; }
#room { transition: filter 1.15s; }

/* light the screen throws on the desk and shelves. Its job: tie the live screen to the still. */
#spill {
  position: absolute; left: 700px; top: 150px; width: 810px; height: 640px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(var(--glow), .34), rgba(var(--glow), .10) 45%, transparent 72%);
  mix-blend-mode: screen; opacity: var(--spill, .8);
}
#dust { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; }

#tube { position: absolute; left: 948px; top: 284px; width: 314px; height: 250px; background: #020304; border-radius: 9px; }
#bezel {
  position: absolute; left: 926px; top: 262px; width: 358px; height: 306px; border-radius: 12px 12px 16px 16px;
  background: linear-gradient(180deg, #e2dccb, #cfc8b4 60%, #b9b29d);
  box-shadow: inset 0 0 0 1.5px #f1ecdd, inset 0 -6px 10px rgba(0,0,0,.18), 0 8px 26px rgba(0,0,0,.55);
  opacity: 0; transition: opacity .7s .35s; pointer-events: none;
  /* the hole the tube shows through */
  -webkit-mask: linear-gradient(#000 0 0), linear-gradient(#000 0 0);
  -webkit-mask-size: 100% 100%, 314px 250px; -webkit-mask-position: 0 0, 22px 22px; -webkit-mask-repeat: no-repeat;
  -webkit-mask-composite: xor; mask-composite: exclude;
}
body.seated #bezel { opacity: 1; }

#screen { position: absolute; left: 957px; top: 297px; width: 296px; height: 222px; overflow: hidden; border-radius: 5px; background: #000; }
#screen::after { /* the tube's own soft edge, so the picture never meets the plastic with a hard line */
  content: ""; position: absolute; inset: 0; border-radius: 5px; pointer-events: none;
  box-shadow: inset 0 0 9px 2px rgba(0,0,0,.85);
}

/* ---------- the glass ---------- */
#glass { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
#glass i { position: absolute; inset: 0; display: block; }
#glass .scan {
  background-image: linear-gradient(rgba(0,0,0,0) 50%, rgba(0,0,0,.2) 50%);
  background-size: 100% var(--scan, 1px); opacity: 0; transition: opacity .5s;
}
#glass .mask {
  background-image: linear-gradient(90deg, rgba(255,40,40,.10) 33.3%, rgba(40,255,90,.08) 33.3% 66.6%, rgba(60,90,255,.12) 66.6%);
  background-size: var(--triad, 1px) 100%; mix-blend-mode: screen; opacity: 0; transition: opacity .5s;
}
body.seated #glass .scan, body.seated #glass .mask { opacity: 1; }
#glass .vig { background: radial-gradient(ellipse at center, transparent 58%, rgba(0,0,0,.38) 100%); }
#glass .refl {
  background:
    radial-gradient(ellipse 55% 34% at 18% 6%, rgba(255,214,150,.13), transparent 70%),
    linear-gradient(118deg, rgba(255,255,255,.07) 0 18%, transparent 34%);
}
body.glass-off #glass { display: none; }
@keyframes flicker { 0%, 100% { opacity: 1; } 48% { opacity: .975; } 52% { opacity: .99; } }
#glass { animation: flicker 5.3s steps(12) infinite; }
@keyframes wobble {
  0% { transform: none; filter: none; }
  12% { transform: translate(1.4%, -1%) skewX(2.2deg) scale(1.03); filter: hue-rotate(70deg) saturate(2.4); }
  30% { transform: translate(-1.1%, .8%) skewX(-1.6deg) scale(.985); filter: hue-rotate(-50deg) saturate(1.9); }
  55% { transform: translate(.5%, -.4%) skewX(.7deg); filter: hue-rotate(20deg) saturate(1.3); }
  100% { transform: none; filter: none; }
}
#desktop.degauss #wallpaper, #desktop.degauss .win:not(#win-view), #desktop.degauss #taskbar, #desktop.degauss .icon { animation: wobble .9s ease-out; }

/* ---------- the desktop ---------- */
#desktop {
  position: absolute; left: 0; top: 0; width: 1024px; height: 768px; transform-origin: 0 0;
  transform: scale(var(--fit, .289)); overflow: hidden; cursor: default; user-select: none;
  text-shadow: 0 0 .6px rgba(0,0,0,.25);
}
#wallpaper {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 40% at 62% -6%, rgba(120,230,220,.30), transparent 70%),
    repeating-linear-gradient(104deg, rgba(160,240,230,.045) 0 22px, transparent 22px 61px),
    linear-gradient(180deg, #0c4a55 0%, #07303b 38%, #041a24 72%, #020d14 100%);
}
#wallpaper::after { /* ordered dither, the way a 256-color desktop faked a gradient */
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: conic-gradient(rgba(0,0,0,.22) 25%, transparent 0 50%, rgba(0,0,0,.22) 0 75%, transparent 0);
  background-size: 2px 2px;
}
#mascot { position: absolute; left: 6px; bottom: 34px; width: 190px; height: auto; pointer-events: none; filter: drop-shadow(0 0 14px rgba(63,183,180,.45)); animation: bob 7s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-7px) rotate(1.5deg); } }
#desktop[data-res="640"] #mascot { width: 140px; }
#desktop[data-res="640"] #wordmark { left: 150px; }
#wordmark { position: absolute; left: 200px; bottom: 52px; text-align: left; color: rgba(143,245,212,.20); font: 54px/0.82 var(--readout); letter-spacing: 1px; pointer-events: none; }
#wordmark small { display: block; font-size: 22px; line-height: 1.2; color: rgba(143,245,212,.30); }
#desktop[data-res="640"] #wordmark { font-size: 46px; }
#desktop[data-res="640"] #wallpaper::after { opacity: .9; background-size: 2px 2px; }

.icon {
  position: absolute; width: 78px; padding: 4px 2px; border: 1px dotted transparent; background: none; text-align: center;
  color: #eaf7f5; text-shadow: 1px 1px 0 #02141a; display: grid; justify-items: center; gap: 4px; cursor: pointer;
}
.icon:hover .glyph { transform: translateY(-2px); filter: drop-shadow(0 3px 0 rgba(0,0,0,.45)); }
.icon:focus-visible { border-color: var(--tether); outline: none; background: rgba(13,43,58,.7); }
.glyph { width: 34px; height: 34px; display: block; transition: transform .12s; image-rendering: pixelated; }
.g-diver { background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 17 17' shape-rendering='crispEdges'%3E%3Cpath fill='%23ffd23f' d='M8 0h1v3H8z'/%3E%3Cpath fill='%23b98a2e' d='M5 3h7v1h2v2h1v6h-1v2h-2v1H5v-1H3v-2H2V6h1V4h2z'/%3E%3Cpath fill='%23e9c45c' d='M5 4h7v1h1v1H4V5h1z'/%3E%3Cpath fill='%2306191c' d='M6 6h5v1h1v4h-1v1H6v-1H5V7h1z'/%3E%3Cpath fill='%238ff5d4' d='M6 7h2v1H6zM6 8h1v1H6z'/%3E%3Cpath fill='%235d4312' d='M3 15h11v2H3z'/%3E%3C/svg%3E"); }
.g-player { background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 17 17' shape-rendering='crispEdges'%3E%3Cpath fill='%23171c22' d='M1 3h15v11H1z'/%3E%3Cpath fill='%238ff5d4' d='M3 10h1v2H3zM5 7h1v5H5zM7 9h1v3H7zM9 5h1v7H9zM11 8h1v4h-1zM13 10h1v2h-1z'/%3E%3Cpath fill='%23d6cfbd' d='M1 2h15v1H1zM1 14h15v1H1z'/%3E%3C/svg%3E"); }
.g-note { background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 17 17' shape-rendering='crispEdges'%3E%3Cpath fill='%23f6f1e4' d='M3 1h8v3h3v12H3z'/%3E%3Cpath fill='%238d8571' d='M11 1l3 3h-3zM5 6h7v1H5zM5 8h7v1H5zM5 10h7v1H5zM5 12h4v1H5z'/%3E%3C/svg%3E"); }
.g-port { background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 17 17' shape-rendering='crispEdges'%3E%3Cpath fill='%23b98a2e' d='M5 1h7v2h2v2h2v7h-2v2h-2v2H5v-2H3v-2H1V5h2V3h2z'/%3E%3Cpath fill='%230c4a55' d='M6 4h5v1h2v2h1v3h-1v2h-2v1H6v-1H4v-2H3V7h1V5h2z'/%3E%3Cpath fill='%238ff5d4' d='M6 6h2v1H6zM5 7h1v2H5z'/%3E%3C/svg%3E"); }

/* windows: putty plastic with a lit top-left edge. Raised things light from the lamp side. */
.win {
  position: absolute; background: var(--putty); padding: 3px;
  box-shadow: inset 1px 1px 0 var(--putty-hi), inset -1px -1px 0 var(--putty-deep), inset 2px 2px 0 #e7e1d1, inset -2px -2px 0 var(--putty-lo), 3px 4px 0 rgba(0,0,0,.35);
}
.win[hidden], .modal[hidden] { display: none; }
.bar { display: flex; align-items: center; gap: 6px; height: 22px; padding: 0 3px 0 5px; color: #b9c7c6; background: linear-gradient(90deg, #4e5a5c, #7b8687); cursor: grab; }
.win.front .bar, .modal .bar { color: #eefaf8; background: linear-gradient(90deg, var(--water-1), var(--water-2)); }
.bar.warn { background: linear-gradient(90deg, #6d1c12, var(--warn)); }
.bar h2 { margin: 0; font: bold 11px var(--ui); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: .2px; }
.bar-ico { width: 16px; height: 16px; image-rendering: pixelated; }
.x, .btn, .start {
  background: var(--putty); border: 0; cursor: pointer; padding: 3px 10px; min-height: 23px;
  box-shadow: inset 1px 1px 0 var(--putty-hi), inset -1px -1px 0 var(--putty-deep), inset -2px -2px 0 var(--putty-lo);
}
.x { width: 18px; min-height: 16px; height: 16px; padding: 0; line-height: 14px; font-weight: bold; }
.btn:active, .x:active, .start:active, .btn[aria-pressed="true"] { box-shadow: inset 1px 1px 0 var(--putty-deep), inset -1px -1px 0 var(--putty-hi), inset 2px 2px 0 var(--putty-lo); padding: 4px 9px 2px 11px; }
.x:active { padding: 1px 0 0 1px; }
.btn:hover, .start:hover { background: #e2dccb; }
.btn:focus-visible, .x:focus-visible, .start:focus-visible, .gauge:focus-visible, input:focus-visible { outline: 1px dotted var(--ink); outline-offset: -4px; }
.btn.primary { font-weight: bold; box-shadow: 0 0 0 1px var(--ink), inset 1px 1px 0 var(--putty-hi), inset -1px -1px 0 var(--putty-deep), inset -2px -2px 0 var(--putty-lo); }
a.btn { text-decoration: none; color: inherit; display: inline-flex; align-items: center; }
.body { padding: 8px; }
.row { display: flex; align-items: center; gap: 6px; }
.row.end { justify-content: flex-end; margin-top: 10px; }
.hint { color: #575140; margin: 0; }

/* Dead Web Diver window */
.diver { display: flex; gap: 10px; }
.gauge { width: 58px; display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: ns-resize; }
.gauge-label { font: 15px/1 var(--readout); color: #3a3628; }
.gauge-track {
  position: relative; flex: 1; width: 44px; min-height: 250px;
  background: linear-gradient(180deg, #3fb7b4 0%, #17727c 22%, #0a3f4c 55%, #031720 100%);
  box-shadow: inset 1px 1px 0 var(--putty-deep), inset -1px -1px 0 var(--putty-hi), inset 0 0 12px rgba(0,0,0,.6);
}
.gauge-track::before { /* one tick per year */
  content: ""; position: absolute; inset: 0 0 0 auto; width: 9px;
  background: repeating-linear-gradient(180deg, rgba(234,247,245,.75) 0 1px, transparent 1px calc(100% / 7));
}
.tether { position: absolute; left: 21px; top: 0; width: 2px; height: 50%; background: var(--tether); box-shadow: 0 0 5px rgba(255,210,63,.8); transition: height .5s cubic-bezier(.3,.8,.3,1); }
.gauge-diver { position: absolute; left: 9px; top: 50%; width: 26px; height: 26px; margin-top: -4px; transition: top .5s cubic-bezier(.3,.8,.3,1); filter: drop-shadow(0 0 5px rgba(143,245,212,.55)); }
.gauge-diver span { display: block; width: 26px; height: 26px; image-rendering: pixelated; }
.diver-main { flex: 1; min-width: 0; display: grid; gap: 8px; }
.readout { display: flex; gap: 6px; }
.readout > div { flex: 1; background: #06191c; padding: 4px 8px 3px; box-shadow: inset 1px 1px 0 var(--putty-deep), inset -1px -1px 0 var(--putty-hi); display: flex; justify-content: space-between; align-items: baseline; }
.readout .k { color: #4f9c8a; font: 15px/1 var(--readout); }
.readout .v { color: var(--phosphor); font: 22px/1 var(--readout); text-shadow: 0 0 6px rgba(143,245,212,.75); }
.list-wrap { height: 176px; overflow-y: auto; background: #fbf8ef; box-shadow: inset 1px 1px 0 var(--putty-deep), inset -1px -1px 0 var(--putty-hi), inset 2px 2px 0 var(--putty-lo); }
.finds { width: 100%; border-collapse: collapse; }
.finds th { position: sticky; top: 0; text-align: left; font-weight: normal; background: var(--putty); padding: 3px 6px; box-shadow: inset -1px -1px 0 var(--putty-lo), inset 1px 1px 0 var(--putty-hi); }
.finds td { padding: 3px 6px; white-space: nowrap; }
.finds tbody tr { cursor: pointer; }
.finds tbody tr:hover { background: #e6f1ee; }
.finds tbody tr[aria-selected="true"] { background: var(--water-1); color: #eefaf8; }
.finds tbody tr:focus-visible { outline: 1px dotted var(--tether); outline-offset: -2px; }
.meter { display: inline-flex; gap: 2px; vertical-align: -1px; }
.meter i { width: 4px; height: 10px; background: #b9b29d; }
.meter i.on { background: #1f9c6b; box-shadow: 0 0 3px rgba(31,156,107,.7); }
tr[aria-selected="true"] .meter i.on { background: var(--phosphor); }
.check { border-top: 1px solid var(--putty-lo); box-shadow: 0 1px 0 var(--putty-hi) inset; padding-top: 8px; display: grid; gap: 4px; }
.check input { flex: 1; min-width: 0; font: 11px var(--ui); padding: 4px 5px; border: 0; background: #fbf8ef; box-shadow: inset 1px 1px 0 var(--putty-deep), inset -1px -1px 0 var(--putty-hi), inset 2px 2px 0 var(--putty-lo); }

/* the viewer */
#win-view { display: flex; flex-direction: column; }
#win-view[hidden] { display: none; }
.toolbar { display: flex; gap: 4px; align-items: center; padding: 4px 2px; }
.addr { flex: 1; min-width: 0; background: #fbf8ef; padding: 4px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: inset 1px 1px 0 var(--putty-deep), inset -1px -1px 0 var(--putty-hi); user-select: text; }
.addr b { color: #0c4a55; }
.viewport { flex: 1; min-height: 0; background: #fff; box-shadow: inset 1px 1px 0 var(--putty-deep), inset -1px -1px 0 var(--putty-hi); padding: 2px; }
#frame { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.status { display: flex; justify-content: space-between; gap: 10px; padding: 3px 4px 1px; color: #3a3628; }

/* the player */
.player { display: grid; gap: 6px; }
#viz { width: 100%; height: 96px; background: #030809; display: block; box-shadow: inset 1px 1px 0 var(--putty-deep), inset -1px -1px 0 var(--putty-hi); image-rendering: pixelated; }
.note p { margin: 0 0 8px; font: 12px/1.45 "Courier New", monospace; }
.note { background: #fbf8ef; margin: 2px; box-shadow: inset 1px 1px 0 var(--putty-deep); user-select: text; }

/* dialogs */
.modal { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(2,13,20,.35); z-index: 40; }
.modal .win { position: static; width: 330px; }
.dial p { margin: 2px 0 8px; }
.bar-track { height: 18px; background: #fbf8ef; padding: 2px; box-shadow: inset 1px 1px 0 var(--putty-deep), inset -1px -1px 0 var(--putty-hi); }
.bar-fill { height: 100%; width: 0; background: repeating-linear-gradient(90deg, var(--water-1) 0 9px, transparent 9px 11px); transition: width .4s linear; }

/* taskbar */
#taskbar { position: absolute; left: 0; right: 0; bottom: 0; height: 30px; background: var(--putty); display: flex; align-items: center; gap: 4px; padding: 3px; box-shadow: inset 0 1px 0 var(--putty-hi), inset 0 2px 0 #e7e1d1; z-index: 30; }
.start { font-weight: bold; display: flex; align-items: center; gap: 5px; padding: 2px 9px 2px 5px; }
.start span { width: 16px; height: 16px; image-rendering: pixelated; }
#tasks { flex: 1; display: flex; gap: 3px; min-width: 0; }
#tasks .btn { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.tray { display: flex; gap: 8px; padding: 4px 8px; box-shadow: inset 1px 1px 0 var(--putty-lo), inset -1px -1px 0 var(--putty-hi); }
#tray-depth { color: #0c4a55; font-weight: bold; }
#modeflash { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; z-index: 60; }
#modeflash.on { opacity: 1; }

/* ---------- monitor buttons and the way in ---------- */
#chin { position: fixed; display: flex; gap: 10px; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .5s .5s; z-index: 10; }
body.seated #chin { opacity: 1; pointer-events: auto; }
#chin button {
  font: 13px var(--ui); color: #4b4638; padding: 7px 16px; border: 0; border-radius: 3px; cursor: pointer;
  background: linear-gradient(180deg, #ddd6c4, #c2bba6); box-shadow: 0 1px 0 #f4efe2 inset, 0 -1px 0 #9d957f inset, 0 1px 2px rgba(0,0,0,.4);
}
#chin button:hover { color: #17150f; }
#chin button:active { transform: translateY(1px); box-shadow: 0 1px 0 #9d957f inset; }
#chin button:focus-visible, #sit:focus-visible { outline: 2px solid var(--tether); outline-offset: 2px; }
.led { width: 8px; height: 8px; border-radius: 50%; background: #54e36b; box-shadow: 0 0 8px 2px rgba(84,227,107,.7); }
.led.busy { background: #ffb63f; box-shadow: 0 0 8px 2px rgba(255,182,63,.8); }
#sit { position: fixed; background: none; border: 0; cursor: pointer; z-index: 9; border-radius: 8px; }
body.seated #sit { display: none; }

@media (prefers-reduced-motion: reduce) {
  #stage, #room, #bezel, #chin, .tether, .gauge-diver, .bar-fill { transition: none; }
  #glass, #mascot { animation: none; }
  #desktop.degauss * { animation: none !important; }
  #dust { display: none; }
}

/* big displays: fixed-pixel controls grow with the window so they stay usable on a 4K screen */
#chin { gap: max(10px, 1vh); }
#chin button { font-size: max(13px, 1.25vh); padding: max(7px, .6vh) max(16px, 1.4vh); }
.led { width: max(8px, .8vh); height: max(8px, .8vh); }

/* ---------- the TV in the other room (room sound). A real YouTube player, kept visible and at least 200 px: YouTube's rule. ---------- */
#tvset { --tvw: 240px; position: fixed; left: 12px; top: 60%; z-index: 8; width: var(--tvw); padding: calc(var(--tvw) * .045) calc(var(--tvw) * .045) 0;
  border-radius: calc(var(--tvw) * .06) calc(var(--tvw) * .06) calc(var(--tvw) * .035) calc(var(--tvw) * .035);
  background: linear-gradient(180deg, #2b2824, #191714 70%, #100f0d);
  box-shadow: inset 0 1px 0 #4a453d, inset 0 -4px 8px rgba(0,0,0,.6), 0 14px 30px rgba(0,0,0,.7);
  transition: left 1.15s cubic-bezier(.6,.02,.2,1), top 1.15s cubic-bezier(.6,.02,.2,1), width 1.15s cubic-bezier(.6,.02,.2,1), box-shadow .8s; }
#tvset[hidden] { display: none; }
/* the light a TV throws into a dark room */
#tvset.playing { box-shadow: inset 0 1px 0 #4a453d, inset 0 -4px 8px rgba(0,0,0,.6), 0 14px 30px rgba(0,0,0,.7), 0 0 70px 12px rgba(120,150,255,.20), 0 0 160px 50px rgba(120,150,255,.09); }
#tvset .tv-tube { width: 100%; aspect-ratio: 1.04; border-radius: 9% / 11%; overflow: hidden; background: #050607; box-shadow: inset 0 0 0 2px #0a0908; }
#tvset iframe { display: block; width: 100% !important; height: 100% !important; border: 0; }
#tvset .tv-panel { display: flex; align-items: center; gap: calc(var(--tvw) * .03); height: calc(var(--tvw) * .11); padding: 0 calc(var(--tvw) * .02); }
#tvset .tv-panel i { flex: 1; height: 34%; border-radius: 2px; background: repeating-linear-gradient(90deg, #0b0a09 0 2px, #2a2723 2px 4px); }
#tvset .tv-panel i:first-child { flex: 2.2; }
#tvset button { width: calc(var(--tvw) * .07); height: calc(var(--tvw) * .07); border-radius: 50%; border: 0; cursor: pointer; background: radial-gradient(circle at 35% 30%, #6b655a, #25221e 70%); box-shadow: 0 1px 0 #000, inset 0 1px 0 #8a8377; }
#tvset.playing button { box-shadow: 0 1px 0 #000, inset 0 1px 0 #8a8377, 0 0 8px 1px rgba(255,80,60,.8); }
#tvset button:focus-visible { outline: 2px solid var(--tether); outline-offset: 2px; }
body.film #tvset { display: none; }
@media (prefers-reduced-motion: reduce) { #tvset { transition: none; } }

/* ---------- phones ---------- */
.gauge, .bar { touch-action: none; }
#turn { display: none; position: fixed; inset: 0; z-index: 50; place-items: center; padding: 24px; background: rgba(2,10,14,.86); }
#turn .win { position: static; width: min(320px, 100%); font-size: 14px; }
#turn .body p { margin: 4px 0 14px; line-height: 1.45; }
#turn .turn-ico { width: 46px; height: 78px; margin: 0 auto 8px; border: 3px solid var(--water-1); border-radius: 8px; animation: turnit 2.4s ease-in-out infinite; }
@keyframes turnit { 0%, 30% { transform: rotate(0); } 60%, 100% { transform: rotate(-90deg); } }
@media (orientation: portrait) and (max-width: 700px) { #turn { display: grid; } }
@media (prefers-reduced-motion: reduce) { #turn .turn-ico { animation: none; transform: rotate(-90deg); } }
/* a phone on its side: the monitor fills the height, so its buttons move to the right edge */
/* under the TV, in the left column, so they never sit on the screen */
body.compact #chin { left: max(12px, env(safe-area-inset-left)); right: auto; top: auto; bottom: 8px; transform: none; flex-direction: row; flex-wrap: wrap; justify-content: flex-start; gap: 6px; max-width: 236px; }
body.compact #chin button { font-size: 12px; padding: 8px 9px; }
body.compact .led { display: none; }
body.compact #bezel { opacity: 0; }
body.compact .btn, body.compact .x { min-height: 26px; }

/* a page open on a phone: drop the window's title and status rows so the page gets the room */
body.compact #win-view > .bar, body.compact #win-view > .status { display: none; }
body.compact #taskbar { height: 26px; }
#stage, #chin, #tvset { -webkit-tap-highlight-color: transparent; }

/* ---------- Lean in / Lean back: the two biggest buttons on the page (Chris, 2026-11-26) ---------- */
#lean-in, #chin #btn-back {
  font: bold max(20px, 2.7vh)/1 var(--ui); letter-spacing: .02em; color: #1a1503; cursor: pointer; border: 0; border-radius: 999px;
  padding: max(15px, 1.9vh) max(36px, 4.6vh);
  background: linear-gradient(180deg, #ffe27a, #ffd23f 45%, #e9b41a);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.65), inset 0 -3px 0 rgba(120,84,0,.45), 0 4px 0 #8a6606, 0 10px 22px rgba(0,0,0,.55), 0 0 34px rgba(255,210,63,.45);
  transition: transform .12s ease, box-shadow .12s ease;
}
#lean-in:hover, #chin #btn-back:hover { color: #1a1503; transform: translateY(-2px); box-shadow: inset 0 2px 0 rgba(255,255,255,.65), inset 0 -3px 0 rgba(120,84,0,.45), 0 6px 0 #8a6606, 0 14px 26px rgba(0,0,0,.55), 0 0 48px rgba(255,210,63,.7); }
#lean-in:active, #chin #btn-back:active { transform: translateY(3px); box-shadow: inset 0 2px 0 rgba(255,255,255,.5), inset 0 -2px 0 rgba(120,84,0,.45), 0 1px 0 #8a6606, 0 4px 10px rgba(0,0,0,.5); }
#lean-in:focus-visible, #chin #btn-back:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
#lean-in { position: fixed; z-index: 11; transform: translate(-50%, -50%); animation: leanpulse 2.8s ease-in-out infinite; }
#lean-in:hover { transform: translate(-50%, calc(-50% - 2px)); }
#lean-in:active { transform: translate(-50%, calc(-50% + 3px)); }
@keyframes leanpulse { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.12) drop-shadow(0 0 14px rgba(255,210,63,.55)); } }
body.seated #lean-in, body.film #lean-in { display: none; }
#chin .chin-gap { width: max(6px, 1vh); }
body.compact #lean-in { font-size: 16px; padding: 12px 26px; }
body.compact #chin #btn-back { font-size: 14px; padding: 10px 18px; flex-basis: 100%; }
body.compact #chin .chin-gap { display: none; }
@media (prefers-reduced-motion: reduce) { #lean-in { animation: none; } }

/* ---------- full screen invitation ---------- */
#full-btn {
  position: fixed; z-index: 13; top: max(12px, 1.6vh); right: max(12px, 1.6vh); display: flex; align-items: center; gap: .55em; cursor: pointer;
  font: bold max(14px, 1.7vh)/1 var(--ui); color: #17150f; border: 0; border-radius: 999px; padding: max(10px, 1.2vh) max(16px, 2vh);
  background: linear-gradient(180deg, #ece6d6, #d6cfbd 50%, #b9b29d);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.7), inset 0 -3px 0 rgba(70,64,48,.4), 0 3px 0 #5c5645, 0 8px 18px rgba(0,0,0,.55);
  transition: transform .12s ease, box-shadow .12s ease;
}
#full-btn[hidden], #full-tip[hidden], #full-help[hidden] { display: none; }
#full-btn i { width: 1.05em; height: 1.05em; background:
  linear-gradient(#17150f 0 0) 0 0 / 40% 2px no-repeat, linear-gradient(#17150f 0 0) 0 0 / 2px 40% no-repeat,
  linear-gradient(#17150f 0 0) 100% 0 / 40% 2px no-repeat, linear-gradient(#17150f 0 0) 100% 0 / 2px 40% no-repeat,
  linear-gradient(#17150f 0 0) 0 100% / 40% 2px no-repeat, linear-gradient(#17150f 0 0) 0 100% / 2px 40% no-repeat,
  linear-gradient(#17150f 0 0) 100% 100% / 40% 2px no-repeat, linear-gradient(#17150f 0 0) 100% 100% / 2px 40% no-repeat; transition: transform .15s ease; }
#full-btn:hover { transform: translateY(-2px); box-shadow: inset 0 2px 0 rgba(255,255,255,.7), inset 0 -3px 0 rgba(70,64,48,.4), 0 5px 0 #5c5645, 0 12px 22px rgba(0,0,0,.55); }
#full-btn:hover i { transform: scale(1.25); }                    /* the corners spread, like the window is about to */
#full-btn:active { transform: translateY(2px); box-shadow: inset 0 2px 0 rgba(255,255,255,.5), 0 1px 0 #5c5645; }
#full-btn[aria-pressed="true"] i { transform: scale(.75); }
#full-btn:focus-visible, #full-tip:focus-visible { outline: 3px solid var(--tether); outline-offset: 3px; }
/* the invitation: a note pointing at the button for the first few seconds */
#full-tip {
  position: fixed; z-index: 13; top: calc(max(12px, 1.6vh) + max(44px, 5.4vh)); right: max(12px, 1.6vh); max-width: min(300px, 70vw); text-align: left; cursor: pointer;
  font: max(13px, 1.5vh)/1.35 var(--ui); color: #17150f; background: #fff3a8; border: 0; padding: max(10px, 1.2vh) max(12px, 1.5vh);
  box-shadow: 3px 4px 0 rgba(0,0,0,.35), 0 10px 22px rgba(0,0,0,.45); transform: rotate(1.2deg); animation: tipin .5s .9s both;
}
#full-tip::before { content: ""; position: absolute; top: -9px; right: max(26px, 4vh); border: 9px solid transparent; border-top: 0; border-bottom-color: #fff3a8; }
@keyframes tipin { from { opacity: 0; transform: translateY(-8px) rotate(1.2deg); } to { opacity: 1; transform: rotate(1.2deg); } }
#full-help { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(2,10,14,.7); }
#full-help .win { position: static; width: min(340px, 100%); font-size: 14px; }
#full-help p { margin: 4px 0 6px; line-height: 1.45; }
body.film #full-btn, body.film #full-tip { display: none; }
body.compact #full-btn { top: 6px; right: 6px; font-size: 12px; padding: 8px 12px; }
body.compact #full-tip { top: 44px; right: 6px; font-size: 12px; }
@media (prefers-reduced-motion: reduce) { #full-tip { animation: none; } }

/* Full screen button, second look: dark tube glass with a phosphor edge, the cool partner to the yellow Lean buttons */
#full-btn {
  gap: .7em; color: #eafff8; letter-spacing: .03em; padding: max(11px, 1.35vh) max(18px, 2.3vh) max(11px, 1.35vh) max(15px, 1.9vh);
  background:
    radial-gradient(120% 90% at 30% 0%, rgba(143,245,212,.30), transparent 55%),
    linear-gradient(180deg, #17606b, #0b3a45 48%, #06242c);
  border: 2px solid #6fecd9;
  text-shadow: 0 0 10px rgba(143,245,212,.85);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -8px 14px rgba(0,0,0,.45), 0 0 0 1px #03161b, 0 4px 0 #03161b, 0 10px 22px rgba(0,0,0,.6), 0 0 26px rgba(63,220,200,.45);
}
#full-btn i { width: 1.15em; height: 1.15em; filter: drop-shadow(0 0 4px rgba(143,245,212,.9)); background:
  linear-gradient(#8ff5d4 0 0) 0 0 / 42% 2.5px no-repeat, linear-gradient(#8ff5d4 0 0) 0 0 / 2.5px 42% no-repeat,
  linear-gradient(#8ff5d4 0 0) 100% 0 / 42% 2.5px no-repeat, linear-gradient(#8ff5d4 0 0) 100% 0 / 2.5px 42% no-repeat,
  linear-gradient(#8ff5d4 0 0) 0 100% / 42% 2.5px no-repeat, linear-gradient(#8ff5d4 0 0) 0 100% / 2.5px 42% no-repeat,
  linear-gradient(#8ff5d4 0 0) 100% 100% / 42% 2.5px no-repeat, linear-gradient(#8ff5d4 0 0) 100% 100% / 2.5px 42% no-repeat; }
#full-btn::after { /* a slow sweep of light across the glass, like a tube warming up */
  content: ""; position: absolute; inset: 2px; border-radius: 999px; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(234,255,248,.28) 50%, transparent 62%) no-repeat; background-size: 260% 100%; background-position: 130% 0;
  animation: fullsweep 5.5s ease-in-out infinite;
}
@keyframes fullsweep { 0%, 62% { background-position: 130% 0; } 100% { background-position: -60% 0; } }
#full-btn:hover { color: #fff; transform: translateY(-2px); border-color: #b6fff0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -8px 14px rgba(0,0,0,.4), 0 0 0 1px #03161b, 0 6px 0 #03161b, 0 14px 26px rgba(0,0,0,.6), 0 0 44px rgba(63,220,200,.8); }
#full-btn:active { transform: translateY(3px); box-shadow: inset 0 3px 8px rgba(0,0,0,.6), 0 0 0 1px #03161b, 0 1px 0 #03161b, 0 0 18px rgba(63,220,200,.5); }
#full-btn[aria-pressed="true"] { background: linear-gradient(180deg, #0b3a45, #06242c); }
@media (prefers-reduced-motion: reduce) { #full-btn::after { animation: none; } }

/* Lean in / Lean back, same family as Full screen: tube glass with a phosphor edge. Still the biggest buttons on the page. */
#lean-in, #chin #btn-back {
  color: #eafff8; letter-spacing: .03em; text-shadow: 0 0 12px rgba(143,245,212,.9);
  background:
    radial-gradient(120% 90% at 30% 0%, rgba(143,245,212,.32), transparent 55%),
    linear-gradient(180deg, #17606b, #0b3a45 48%, #06242c);
  border: 2px solid #6fecd9;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -10px 16px rgba(0,0,0,.45), 0 0 0 1px #03161b, 0 5px 0 #03161b, 0 12px 26px rgba(0,0,0,.6), 0 0 34px rgba(63,220,200,.55);
}
#chin #btn-back { position: relative; }
#lean-in::after, #chin #btn-back::after {
  content: ""; position: absolute; inset: 2px; border-radius: 999px; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(234,255,248,.28) 50%, transparent 62%) no-repeat; background-size: 260% 100%; background-position: 130% 0;
  animation: fullsweep 5.5s ease-in-out infinite;
}
#lean-in:hover, #chin #btn-back:hover { color: #fff; border-color: #b6fff0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -10px 16px rgba(0,0,0,.4), 0 0 0 1px #03161b, 0 7px 0 #03161b, 0 16px 30px rgba(0,0,0,.6), 0 0 54px rgba(63,220,200,.85); }
#lean-in:active, #chin #btn-back:active { box-shadow: inset 0 3px 10px rgba(0,0,0,.6), 0 0 0 1px #03161b, 0 1px 0 #03161b, 0 0 20px rgba(63,220,200,.5); }
@keyframes leanpulse { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.14) drop-shadow(0 0 16px rgba(63,220,200,.6)); } }
@media (prefers-reduced-motion: reduce) { #lean-in::after, #chin #btn-back::after { animation: none; } }

/* the camera eases only during a lean or when the TV arrives (body.moving). Resizes and phone toolbars snap, so nothing swims. */
#stage, #room, #tvset { transition: none; }
#tvset { transition: box-shadow .8s; }
body.moving #stage { transition: transform 1.15s cubic-bezier(.6,.02,.2,1); }
body.moving #room { transition: filter 1.15s; }
body.moving #tvset { transition: left 1.15s cubic-bezier(.6,.02,.2,1), top 1.15s cubic-bezier(.6,.02,.2,1), width 1.15s cubic-bezier(.6,.02,.2,1), box-shadow .8s; }
@media (prefers-reduced-motion: reduce) { body.moving #stage, body.moving #room, body.moving #tvset { transition: none; } }
/* pinch to zoom stays allowed, but the page itself never scrolls or bounces under it */
html, body { overscroll-behavior: none; touch-action: manipulation; }
.list-wrap { touch-action: pan-y pinch-zoom; }

/* ---------- when something breaks, say so in character; plus the ?debug=1 tap log ---------- */
#oops { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(2,10,14,.6); }
#oops[hidden], #dbg[hidden] { display: none; }
#oops .win { position: static; width: min(380px, 100%); font-size: 13px; }
#oops pre { margin: 6px 0; padding: 6px; background: #fbf8ef; white-space: pre-wrap; word-break: break-word; font: 12px/1.4 "Courier New", monospace; user-select: text; box-shadow: inset 1px 1px 0 var(--putty-deep); }
#dbg { position: fixed; left: 0; right: 0; top: 0; z-index: 95; pointer-events: none; padding: 4px 8px; background: rgba(255,243,168,.92); color: #17150f; font: 11px/1.3 "Courier New", monospace; white-space: pre-wrap; }
/* phones on their side: keep every control off the monitor screen */
body.compact #full-btn { top: 6px; right: 6px; padding: 9px; gap: 0; }
body.compact #full-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
body.compact #full-tip { display: none; }
body.compact #chin { flex-direction: column; align-items: stretch; flex-wrap: nowrap; max-width: 112px; gap: 5px; left: max(6px, env(safe-area-inset-left)); bottom: 6px; }
body.compact #chin #btn-back { font-size: 13px; padding: 10px 6px; flex-basis: auto; }
body.compact #chin button { font-size: 11px; padding: 7px 4px; }

@media (hover: none) {
  .btn:hover, .start:hover { background: var(--putty); }
  .icon:hover .glyph { transform: none; filter: none; }
  .finds tbody tr:hover { background: none; }
  .finds tbody tr[aria-selected="true"]:hover { background: var(--water-1); }
}

/* ---------- phones inside Y2KSPACE (html.lite): the room, still, with one way in ---------- */
#lite { display: none; }
html.lite body > *:not(#lite):not(script) { display: none !important; }
/* the house draws its room name, dots and bottom bar over the lower half, so the card keeps to the upper half */
html.lite #lite { display: grid; position: fixed; inset: 0; place-items: start center; padding: max(6px, 2vh) 96px 0; background: #05060a url(../img/room-wide-placeholder.jpg) 55% 48% / cover no-repeat; }
/* a slim strip, not a sign: the room is the picture, so the label stays out of its way (Chris, 2026-11-27: "the label covers most of the screen") */
.lite-card { display: flex; align-items: center; gap: 10px; max-width: 100%; padding: 6px 8px 6px 10px; border: 1px solid #6fecd9; border-radius: 999px;
  color: #eafff8; background: rgba(2,14,18,.82); box-shadow: 0 6px 18px rgba(0,0,0,.6), 0 0 18px rgba(63,220,200,.3); backdrop-filter: blur(3px); }
.lite-card > img { width: 34px; height: 34px; object-fit: contain; flex: none; filter: drop-shadow(0 0 6px rgba(63,220,200,.6)); }
.lite-card > div { display: grid; min-width: 0; text-align: left; }
.lite-card strong { font: 20px/1 var(--readout); letter-spacing: .05em; text-shadow: 0 0 10px rgba(143,245,212,.8); white-space: nowrap; }
.lite-card span { font: 11px/1.2 var(--ui); color: rgba(214,247,240,.85); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#lite-go { flex: none; font: bold 15px/1 var(--ui); color: #02100c; cursor: pointer; border: 0; border-radius: 999px; padding: 11px 18px; min-height: 40px; background: #8ff5d4; box-shadow: 0 3px 0 #0c3a30, 0 0 18px rgba(143,245,212,.5); touch-action: manipulation; }
#lite-go:active { transform: translateY(2px); box-shadow: 0 1px 0 #0c3a30; }
#lite-burn { flex: none; display: flex; align-items: center; gap: 5px; font: bold 13px/1 var(--ui); color: #2a1206; text-decoration: none; border-radius: 999px; padding: 4px 13px 4px 5px; min-height: 40px; background: linear-gradient(180deg, #ffd23f, #f08a24); box-shadow: 0 3px 0 #7a3a08, 0 0 16px rgba(240,138,36,.5); touch-action: manipulation; }
#lite-burn img { width: 30px; height: 30px; object-fit: contain; }
#lite-go:focus-visible, #lite-burn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
/* the TV in the other room, in the still room phones see inside the house: on the left, where the living room is */
#lite-tv { display: none; position: absolute; left: max(64px, 8%); top: 50%; width: 216px; height: 222px; margin-top: -100px; padding: 8px 8px 14px; background: linear-gradient(180deg, #3b4744, #171d1b); border-radius: 12px; box-shadow: inset 0 1px 0 #55625e, 0 10px 24px rgba(0,0,0,.7), 0 0 30px rgba(120,215,255,.18); }
html.lite #lite-tv.on { display: block; }
#lite-tv-screen { position: relative; width: 200px; height: 200px; background: #000; border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 2px #050706; }
#lite-tv-screen iframe, #lite-tv-screen > div { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
html.lite #lite.zoom #lite-tv { display: none; }
/* "Start diving" from the room: the camera pushes in to the monitor's glass before the Diver opens (Chris, 2026-11-27:
   "a transition from outside of the screen into the screen so that you can at least see the environment first") */
html.lite #lite { transform-origin: 55% 48%; transition: transform .9s cubic-bezier(.6,.02,.2,1), filter .9s ease; }
html.lite #lite.zoom { transform: scale(4.2); filter: brightness(.25); }
html.lite #lite.zoom .lite-card { opacity: 0; transition: opacity .18s; }
/* "Burn a CD" from the room: the monitor's desktop fills the phone with one icon on it, the icon is picked, the burner opens */
#lite-desk { position: fixed; inset: 0; z-index: 5; display: grid; place-items: center; opacity: 0; transform: scale(.22); transform-origin: 55% 52%; transition: opacity .35s ease, transform .55s cubic-bezier(.3,.9,.3,1);
  background: radial-gradient(ellipse at 50% 40%, #1d6a70, #06202c 75%); }
#lite-desk[hidden] { display: none; }
#lite-desk.up { opacity: 1; transform: none; }
#lite-desk::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(rgba(0,0,0,0) 50%, rgba(0,0,0,.18) 50%) 0 0 / 100% 3px; }
.ld-icon { display: grid; justify-items: center; gap: 6px; padding: 10px 14px 8px; border: 1px dotted transparent; color: #eaf7f5; font: 15px var(--ui); text-shadow: 1px 1px 0 #02141a; transition: transform .3s ease; }
.ld-icon img { width: 96px; height: 96px; object-fit: contain; filter: drop-shadow(0 4px 0 rgba(0,0,0,.4)); }
#lite-desk.picked .ld-icon { border-color: #ffd23f; background: rgba(13,43,58,.8); box-shadow: 0 0 26px rgba(255,210,63,.55); }
#lite-desk.picked .ld-icon span { background: #0b2a3a; color: #fff; padding: 1px 6px; }
#lite-desk.open .ld-icon { transform: scale(1.5); } #lite-desk.open { opacity: 0; transition: opacity .32s ease .05s; }
.ld-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 30px; background: var(--putty); box-shadow: inset 0 1px 0 var(--putty-hi); font-style: normal; display: flex; align-items: center; padding: 3px; }
.ld-bar b { font: bold 12px var(--ui); color: var(--ink); padding: 4px 12px; box-shadow: inset 1px 1px 0 var(--putty-hi), inset -1px -1px 0 var(--putty-deep), inset -2px -2px 0 var(--putty-lo); }
@media (max-width: 640px) { .lite-card > div span { display: none; } html.lite #lite { padding-inline: 60px; } }

/* ---------- the guide: the pixel diver from the logo, talking you through it ---------- */
.guide { display: flex; align-items: center; gap: 9px; padding: 6px 8px 6px 6px; background: #06191c; box-shadow: inset 1px 1px 0 var(--putty-deep), inset -1px -1px 0 var(--putty-hi); min-height: 44px; }
.guide img { width: 36px; height: 36px; flex: none; image-rendering: pixelated; cursor: pointer; filter: drop-shadow(0 0 5px rgba(93,176,174,.6)); }
.guide img:hover { transform: translateY(-1px); }
.guide p { margin: 0; font: 17px/1.15 var(--readout); color: var(--phosphor); text-shadow: 0 0 6px rgba(143,245,212,.55); min-height: 1.15em; }
.guide p::after { content: ""; display: inline-block; width: .5em; height: .8em; margin-left: .15em; vertical-align: -.06em; background: var(--phosphor); animation: caret 1s steps(2) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.status .st-l { display: flex; align-items: center; gap: 5px; min-width: 0; } #st-pix { width: 16px; height: 16px; image-rendering: pixelated; flex: none; }
/* the logo in the room: his brand, top left, in the logo's own teal and brass */
#brand { position: fixed; z-index: 11; left: max(14px, 1.8vh); top: max(12px, 1.6vh); display: flex; align-items: center; gap: max(10px, 1.2vh); pointer-events: none; transition: opacity .5s; }
#brand img { width: max(74px, 10vh); height: auto; filter: drop-shadow(0 0 14px rgba(56,139,143,.7)); }
#brand span { font: max(30px, 4.2vh)/.86 var(--readout); letter-spacing: .04em; text-transform: uppercase; color: #f1e8d2; text-shadow: 0 0 14px rgba(93,176,174,.85), 2px 2px 0 #061833; }
#brand span::first-line { color: #f4c77a; }
body.seated #brand, body.film #brand { opacity: 0; }
html.lite #brand { display: none; }
@media (prefers-reduced-motion: reduce) { .guide p::after { animation: none; } }

/* Flash finds get a small tag; "Flash only" narrows the list to them */
.tag { display: inline-block; margin-left: 7px; padding: 0 5px 1px; font-size: 10px; letter-spacing: .04em; text-transform: uppercase; color: #061833; background: #f4c77a; box-shadow: inset 0 0 0 1px #8a5a1c; vertical-align: 1px; }
tr[aria-selected="true"] .tag { background: #f4c77a; color: #061833; }
.tick { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; cursor: pointer; }
.tick input { margin: 0; accent-color: #0b2a3a; }

/* the way to the rest of the house (standalone only), and what steps aside when the Diver runs inside Y2KSPACE */
a.icon { text-decoration: none; }
.g-tv { background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 17 17' shape-rendering='crispEdges'%3E%3Cpath fill='%23061833' d='M4 0h1v1h1v1h1v1h3V2h1V1h1V0h1v1h-1v1h-1v1h5v11H1V3h5V2H5V1H4z'/%3E%3Cpath fill='%235db0ae' d='M3 5h9v7H3z'/%3E%3Cpath fill='%23bff0e6' d='M4 6h3v1H4zM4 7h1v1H4z'/%3E%3Cpath fill='%23d9953f' d='M13 5h2v2h-2zM13 8h2v1h-2zM13 10h2v1h-2z'/%3E%3Cpath fill='%23061833' d='M3 14h3v2H3zM11 14h3v2h-3z'/%3E%3C/svg%3E"); }
.note .house-note a, .note .list-note a { color: #0c4a55; }
body.inroom #brand, body.inroom #ico-y2k, body.inroom .house-note { display: none; }
