/* StrangeVision TV shell. All positions are in the original 1020x705 Flash stage pixels;
   the stage is scaled to fit the window by js/tv.js (--scale). */
@font-face { font-family: "Digital7"; src: url(../fonts/digital-7.ttf) format("truetype"); font-display: block; }
@font-face { font-family: "Morpheus"; src: url(../fonts/morpheus.ttf) format("truetype"); font-display: swap; }
@font-face { font-family: "SWIsop3"; src: url(../fonts/swisop3.ttf) format("truetype"); font-display: swap; }

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; color: #aaa; font-family: Verdana, sans-serif; overflow: hidden; }
/* the owner's junkyard photo behind the set, darkened at the edges so the TV stands out */
html { background: #1b1b1b; }
#room { background: radial-gradient(ellipse at 50% 55%, rgba(0,0,0,.15) 0%, rgba(0,0,0,.55) 70%, rgba(0,0,0,.8) 100%),
  url(../img/junkyard-bg.jpg) center 60% / cover no-repeat #1b1b1b; }
#room { position: relative; overflow: hidden; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
/* Touch screens held upright: draw the room sideways (90 deg clockwise) so turning the phone
   gives the full-size landscape TV. js/tv.js sets the room's size to the swapped viewport. */
html.rotated #room { position: fixed; top: 0; left: 100%; transform: rotate(90deg); transform-origin: 0 0; }

#stage {
  position: relative; width: 1020px; height: 705px; flex: none;
  transform: scale(var(--scale, 1)); transform-origin: center center;
  margin: calc((var(--scale, 1) - 1) * 352.5px) calc((var(--scale, 1) - 1) * 510px);
  user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
}
#stage img { position: absolute; pointer-events: none; }
#tv { left: 6.4px; top: -0.6px; width: 1008px; height: 707px; z-index: 3; }
#glass { left: 72.5px; top: 79px; width: 671px; height: 502px; z-index: 2; opacity: .55; mix-blend-mode: screen; }

/* ---------- preloader (Main.swf frame 1) ----------
   While the TV art and fonts load, only the "Aquiring signal..." panel shows, at its original place.
   Each LED column lights from the bottom; the left ones fill first (bar1 = 3.5x ... bar6 = 1x the percent). */
#stage.loading > :not(#preloader) { visibility: hidden; }
#preloader { position: absolute; inset: 0; z-index: 20; pointer-events: none; transition: opacity .4s ease-out; }
#stage:not(.loading) #preloader { opacity: 0; }
#pre-title { position: absolute; left: 0; right: 0; top: 252px; text-align: center; font: 30px/38px Morpheus, serif; color: #ddd;
  text-shadow: 2px 3px 3px #000, 0 0 2px #000; opacity: 0; transition: opacity .3s; }
#preloader.fonts #pre-title { opacity: 1; }
#pre-panel { position: absolute; left: 430px; top: 311px; width: 161px; height: 134px; box-shadow: 0 2px 8px rgba(0,0,0,.6); }
#pre-panel img { left: 0; top: 0; width: 161px; height: 134px; }
.pre-bar { position: absolute; top: 39px; width: 12px; height: 36px; --f: 0;
  background: url(../img/preloader-bars.png) var(--x) 0 / 96px 36px no-repeat; clip-path: inset(calc((1 - var(--f)) * 100%) 0 0 0); }
#pre-num { position: absolute; left: 58px; top: 101px; width: 45px; height: 21px; text-align: center;
  font: 18px/21px Digital7, monospace; color: #c41414; text-shadow: 0 0 4px rgba(255,0,0,.6); }

/* ---------- picture tube ---------- */
#screen.off { cursor: pointer; }
#screen { position: absolute; left: 58px; top: 76px; width: 692px; height: 510px; background: #000; overflow: hidden; z-index: 1; }
#content, #static, #osd, #tube-off, #scanlines { position: absolute; inset: 0; }
#content { overflow: hidden; }
#static { pointer-events: none; width: 100%; height: 100%; image-rendering: auto; filter: contrast(1.3) blur(.4px); opacity: 0; transition: opacity .08s; }
#screen.static #static { opacity: 1; }
#scanlines { pointer-events: none; background: repeating-linear-gradient(to bottom, rgba(0,0,0,.18) 0 1px, transparent 1px 3px); mix-blend-mode: multiply; }

#tube-off { background: radial-gradient(ellipse at 50% 45%, #1a1d1c 0%, #070807 70%); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .3s; }
#screen.off #tube-off { opacity: 1; }
#off-hint { font-family: Morpheus, serif; font-size: 22px; color: #6a6f6c; letter-spacing: 2px; opacity: .0; animation: hint 3s ease-in-out 1.5s infinite; }
@keyframes hint { 0%,100% { opacity: .15 } 50% { opacity: .55 } }

/* power on / off: the picture grows from a bright line, and collapses to a dot */
#screen.warming #content, #screen.warming #static { animation: tube-on .55s ease-out both; }
@keyframes tube-on {
  0%   { transform: scale(1, .004); filter: brightness(6); }
  45%  { transform: scale(1, .02);  filter: brightness(4); }
  100% { transform: scale(1, 1);    filter: brightness(1); }
}
#screen.cooling #content, #screen.cooling #static { animation: tube-off .45s ease-in both; opacity: 1; }
@keyframes tube-off {
  0%   { transform: scale(1, 1);     filter: brightness(1); }
  55%  { transform: scale(1, .006);  filter: brightness(5); }
  100% { transform: scale(0, .004);  filter: brightness(8); }
}

/* on-screen display (volume bars, channel number) */
#osd { pointer-events: none; z-index: 5; font-family: Digital7, monospace; color: #3f3; text-shadow: 0 0 6px #0f0; }
#osd .ch { position: absolute; right: 70px; top: 46px; font-size: 54px; }
#osd .vol { position: absolute; left: 60px; right: 60px; bottom: 56px; font-size: 30px; display: flex; align-items: center; gap: 14px; }
#osd .bars { display: flex; gap: 5px; }
#osd .bars i { width: 14px; height: 24px; background: #3f3; box-shadow: 0 0 6px #0f0; opacity: .2; }
#osd .bars i.on { opacity: 1; }

/* ---------- channel LED ---------- */
#led { position: absolute; left: 836px; top: 72px; width: 100px; height: 56px; z-index: 4;
  font-family: Digital7, monospace; font-size: 38px; line-height: 56px; color: #f00; text-shadow: 0 0 8px rgba(255,0,0,.8); pointer-events: none; }
#led.entry { animation: blink .8s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }

/* ---------- hotspots ---------- */
button { font: inherit; }
.hot { position: absolute; z-index: 6; background: transparent; border: 0; padding: 0; cursor: pointer; border-radius: 2px; }
.panel { width: 28px; height: 16px; }
.panel:active { background: rgba(0,0,0,.35); box-shadow: inset 0 2px 3px rgba(0,0,0,.6); }

/* STRANGELAND flap. Closed, it sits right under the channel buttons and hides both the
   readout (LED with CLOSE / RESET) and the keypad. Clicked, it slides down over the speaker
   grille and both panels show: readout at 171, keypad at 217 (stage pixels). */
#remote { position: absolute; left: 813px; top: 171px; width: 162px; height: 346px; z-index: 5; overflow: hidden; pointer-events: none; }
#keypad { left: 0; top: 46px; }
#keys { position: absolute; left: 0; right: 0; top: 46px; height: 126px; }
.key { position: absolute; width: 22px; height: 13px; padding: 0; border: 0; cursor: pointer; background: transparent; color: transparent; font-size: 1px; pointer-events: auto; }
.key:active { background: rgba(255,255,255,.35); }
#remote.closed #keypad, #remote.closed .key, #remote.closed #readout { visibility: hidden; }
#flap { position: absolute; left: 0; top: 0; width: 162px; height: 174px; z-index: 3; transition: top .6s cubic-bezier(.3,.1,.3,1); pointer-events: auto;
  box-shadow: 0 3px 4px rgba(0,0,0,.45); }
#flap img { position: static !important; display: block; }
/* slides by 'top', not a transform: a moving transform gets its own layer, which Chrome can draw at low
   resolution when the whole stage is scaled up, so the STRANGELAND lettering went soft while the flap was down */
#remote.open #flap { top: 172px; }
#btn-flap { inset: 0; width: 100%; height: 100%; z-index: 1; }
#remote.open #btn-flap { cursor: default; }
/* letter hotspots: each box is centred on its letter in img/flap.png (positions in flap pixels) */
/* STRANGELAND on the flap: crisp Morpheus letters filled with the flap's own brushed metal (lifted a little,
   like raised lettering), with a thin dark edge so the word stands out. Each letter carries its own piece of the
   flap picture (--x = minus its left edge) clipped to its shape. Browsers that can't clip a background to text
   get plain silver letters instead, so the word never disappears. */
#flap-word { position: absolute; left: 0; top: 13px; width: 162px; height: 20px; z-index: 1; pointer-events: none;
  filter: drop-shadow(0 0 .5px rgba(0,0,0,.95)) drop-shadow(1px 1px .8px rgba(0,0,0,.7)); }
#flap-word span { position: absolute; top: 0; width: 20px; text-align: center; font: 21px/20px Morpheus, serif; color: #a9a5a6; }   /* left = letter centre - 10 */
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  #flap-word span { background: linear-gradient(rgba(255,255,255,.28), rgba(255,255,255,.12)), url(../img/flap.png?v=2) var(--x) -13px / 162px 174px no-repeat;
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
}
#letters { position: absolute; left: 0; top: 12px; width: 162px; height: 22px; z-index: 2; }
.letter { position: absolute; top: 0; height: 22px; padding: 0; border: 0; background: transparent; cursor: pointer; border-radius: 2px; }
.letter:hover { background: rgba(255,255,255,.12); }
.letter:active { background: rgba(255,0,0,.35); }

/* the readout: red digital letters, green on a match */
#readout { position: absolute; left: 0; top: 0; width: 161px; height: 44px; z-index: 1; pointer-events: auto; }
#readout img { left: 0; top: 0; }
#readout-text { position: absolute; left: 22px; top: 8px; width: 115px; height: 29px; overflow: hidden; white-space: nowrap;
  font-family: Digital7, monospace; font-size: 24px; line-height: 29px; letter-spacing: 1px; text-transform: uppercase;
  color: #f00; text-shadow: 0 0 6px rgba(255,0,0,.8); }
#readout-text::after { content: "_"; animation: blink 1s steps(2, start) infinite; }
#readout-close { left: 2px; top: 5px; width: 13px; height: 35px; }
#readout-reset { left: 146px; top: 5px; width: 13px; height: 35px; }
#readout-close:active, #readout-reset:active { background: rgba(255,255,255,.3); }
#readout.match #readout-text { color: #3f3; text-shadow: 0 0 8px #0f0; }

/* hidden channels: the panel buttons are replaced by a GO BACK switch */
#go-back { position: absolute; left: 815px; top: 147px; width: 158px; height: 18px; z-index: 7; display: none; cursor: pointer;
  border: 1px solid #400; border-radius: 2px; background: linear-gradient(#3a0000, #120000); color: #f33;
  font: 13px/16px Digital7, monospace; letter-spacing: 3px; text-shadow: 0 0 5px #f00; }
#stage.hidden-channel #go-back { display: block; }
#stage.hidden-channel #led { font-size: 24px; letter-spacing: 1px; text-transform: uppercase; }
/* 80s set: GO BACK is the channel readout itself (owner, 2026-11-20; the bar under it covered the CH/VOL/MUTE
   buttons). The readout takes turns showing the hidden word and GO BACK; clicking it returns. */
#stage:not(.skin-tv2) #go-back { left: 836px; top: 72px; width: 100px; height: 56px; border: 0; background: transparent;
  color: transparent; text-shadow: none; font-size: 1px; }
#stage.hidden-channel #led.back { font-size: 21px; letter-spacing: 0; }

/* ---------- power button ---------- */
#power { position: absolute; left: 902px; top: 636px; width: 88px; height: 18px; z-index: 6; cursor: pointer;
  display: flex; align-items: center; gap: 6px; padding: 0 8px; border-radius: 3px;
  border: 1px solid #555; background: linear-gradient(#e8e8e8, #a9a9a9); box-shadow: 0 1px 2px rgba(0,0,0,.6);
  font: bold 9px/1 Verdana, sans-serif; letter-spacing: 1px; color: #333; }
#power:active { background: linear-gradient(#a9a9a9, #d4d4d4); box-shadow: inset 0 1px 2px rgba(0,0,0,.6); }
#power .lamp { width: 7px; height: 7px; border-radius: 50%; background: #600; box-shadow: inset 0 0 2px #000; }
#power[aria-pressed="false"] .lamp { background: #e00; box-shadow: 0 0 6px 2px rgba(255,0,0,.8); animation: lamp 1.6s ease-in-out infinite; }
#power[aria-pressed="true"] .lamp { background: #2e2; box-shadow: 0 0 6px 2px rgba(0,255,0,.7); }
@keyframes lamp { 50% { opacity: .35; } }

/* ---------- channel modules (positions set in js/tv.js from the original layout) ---------- */
#content > *, .m-text > *, .m-guide > *, .m-gallery > * { position: absolute; }
.m-video, .m-image { object-fit: fill; background: #000; }
.m-caption { text-align: center; font-family: Morpheus, serif; font-size: 24px; line-height: 34px; color: #ccc;
  white-space: nowrap; overflow: hidden; z-index: 3; pointer-events: none; text-shadow: 0 0 3px #000, 0 0 2px #000; }
.m-text { inset: 0; background: #000; }
.text-body { font-family: Morpheus, serif; font-size: 19px; line-height: 23px; color: #ccc; white-space: pre-line; overflow: hidden; }

/* channel guide */
.m-guide { inset: 0; background: #000; }
.guide-card { position: absolute; }
.guide-date { font-family: SWIsop3, Verdana, sans-serif; font-size: 30px; line-height: 39px; color: #fff; text-align: center; white-space: nowrap; }
.guide-window { overflow: hidden; }
.guide-list { position: absolute; left: 0; top: 0; width: 100%; will-change: transform; }
.guide-line { display: block; width: 100%; height: 29px; line-height: 29px !important; padding: 0 2px; border: 0; background: transparent; text-align: left; cursor: pointer;
  font-family: SWIsop3, Verdana, sans-serif; font-size: 20px; line-height: 26px; color: #ccc; white-space: nowrap; overflow: hidden; }
.guide-line:hover, .guide-line:focus-visible { color: #fff; background: rgba(255,255,255,.12); outline: none; }
.guide-line:disabled { cursor: default; }

/* gallery: contact sheet on the screen */
.m-gallery { inset: 0; background: #111; }
.gal-grid { display: grid; gap: 8px; }
.gal-thumb { box-sizing: border-box; width: 100%; height: 100%; min-width: 0; min-height: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 3px; border: 1px solid #333; background: #000; cursor: zoom-in; }
#stage .gal-thumb img { position: static; display: block; max-width: 100%; max-height: 100%; min-width: 0; min-height: 0; object-fit: contain; animation: fade-in .5s ease-out; transition: transform .15s, filter .15s; filter: brightness(.85); }
.gal-thumb:hover, .gal-thumb:focus-visible { border-color: #999; }
#stage .gal-thumb:hover img, #stage .gal-thumb:focus-visible img { filter: none; transform: scale(1.05); }

/* the picture opened big, over the whole page (lives in #room, outside the TV) */
.lightbox { position: absolute; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.95); opacity: 0; transition: opacity .25s; cursor: zoom-out; }
.lightbox.open { opacity: 1; }
.lb-fig { margin: 0; display: flex; flex-direction: column; align-items: center; cursor: zoom-out; }
.lb-pic { display: block; background: #000; box-shadow: 0 0 0 1px #444, 0 10px 40px rgba(0,0,0,.8); cursor: pointer; }
.lb-pic.in { animation: fade-in .3s ease-out; }
.lb-cap { margin-top: 12px; max-width: min(46em, 84vw); text-align: center; cursor: default; }
.lb-title { font-family: Morpheus, serif; font-size: 26px; line-height: 32px; color: #ddd; }
.lb-desc { font: 14px/20px Verdana, sans-serif; color: #aaa; margin-top: 2px; }
.lb-count { font: 11px/18px Verdana, sans-serif; color: #666; letter-spacing: 1px; margin-top: 4px; }
.lightbox button { position: absolute; border: 0; background: transparent; color: #888; cursor: pointer; font-family: Verdana, sans-serif; line-height: 1;
  transition: color .15s; outline: none; }
.lightbox button:hover, .lightbox button:focus-visible { color: #fff; }
.lb-close { top: 12px; right: 18px; font-size: 44px; padding: 4px 10px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); font-size: 80px; padding: 20px 16px; }
.lb-prev { left: 1vw; }
.lb-next { right: 1vw; }
@keyframes fade-in { from { opacity: 0; } }

#osd .word { position: absolute; left: 60px; top: 46px; font-size: 40px; letter-spacing: 3px; text-transform: uppercase; color: #f33; text-shadow: 0 0 6px #f00; }
#osd .word.match { color: #3f3; text-shadow: 0 0 6px #0f0; }

/* ---------- easter egg: zombies (only on the channel guide) ---------- */
.zombie-spot { position: absolute; z-index: 4; display: none; padding: 0; border: 0; background: transparent; cursor: pointer;
  opacity: 0; transition: opacity .5s ease-out; }
.zombie-spot img { position: static !important; display: block; width: 100%; height: 100%; }
.zombie-spot:hover, .zombie-spot:focus-visible { opacity: .55; outline: none; }
#stage.on-guide .zombie-spot { display: block; }
#stage.zombie-guide-open .zombie-spot { display: none; }
#zombie { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
#zombie img { position: absolute; }
/* zombieEgg_mc: picture at stage (77.5, 69.7), fading out over 24 frames at 29 fps */
.zombie-flash { left: 19.5px; top: -6.3px; width: 665px; height: 550px; animation: zombie-fade .83s linear both; }
@keyframes zombie-fade { from { opacity: 1; } to { opacity: 0; } }
/* the zombie attack guide stays until clicked; it dims while the pointer is over it */
#zombie .zombie-guide { left: 18.7px; top: -44.1px; width: 666px; height: 550px; pointer-events: auto; cursor: pointer; animation: fade-in .3s ease-out; }
#zombie .zombie-guide:hover { opacity: .3; }

/* ---------- easter egg: skin switcher on the bottom bezel ----------
   The skin art has a small dark window at stage x 59.5-139.5, y 637.5-651.5 (bevelled right edge at 136-139.5).
   1. closed: a silver cover (cut from the bezel art) hides it
   2. hover: the cover pulls back to the window's edge, showing the hint "377, 610, 987," only
   3. click the numbers: the window grows to the right (same dark glass) and takes the answer */
#skin-egg { position: absolute; left: 59.5px; top: 637.5px; width: 114px; height: 14px; z-index: 6; transition: opacity 1.2s, visibility 0s; }
#skin-hint { position: absolute; left: 0; top: 0; width: 77px; height: 14px; padding-right: 1px; overflow: hidden; white-space: nowrap;
  display: flex; justify-content: flex-end; font: 10px/14px Arial, sans-serif; letter-spacing: .2px; color: #999; cursor: text; outline: none; }
#skin-input { position: absolute; left: 76px; top: 0; width: 38px; height: 14px; margin: 0; padding: 0 3px 0 2px; border: 0; border-radius: 0; outline: none;
  font: 10px/14px Arial, sans-serif; letter-spacing: .2px; color: #bbb; caret-color: #bbb;
  /* the window's own glass: lighter top line, dark body, light lower bevel, bevelled right end */
  background: linear-gradient(to left, rgba(150,150,155,.55) 0, rgba(60,60,64,.6) 3px, transparent 4px),
              linear-gradient(to bottom, #353438 0, #353438 1px, #28282a 1px, #232527 5px, #1b1f20 12px, #6e6e73 13px, #6e6e73 14px);
  clip-path: inset(0 100% 0 0); transition: clip-path .35s ease-out; }
#stage #skin-egg.typing #skin-input { clip-path: inset(0 0 0 0); }
#skin-cover { position: absolute; left: -4px; top: -2px; width: 120px; height: 18px; padding: 0; border: 0; border-radius: 0; cursor: default;
  background: url(../img/tv-default.png) -173.6px -636.1px / 1008px 707px no-repeat;
  filter: brightness(.95); clip-path: inset(0 0 0 0); transition: clip-path .45s ease-in-out; }
#skin-cover:focus-visible { outline: none; }
/* hover (or a tap on a touch screen): pull back as far as the window's right edge */
#skin-egg:hover #skin-cover, #skin-egg.peek #skin-cover, #skin-egg:focus-within #skin-cover { clip-path: inset(0 0 0 84px); }
/* answering: the cover goes all the way */
#skin-egg.typing #skin-cover { clip-path: inset(0 0 0 100%); pointer-events: none; }

/* ---------- second skin (tv2) ---------- */
#tv2 { position: absolute; inset: 0; z-index: 3; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 1.2s ease-in-out, visibility 0s 1.2s; }
#tv2-img { left: 6.4px; top: -0.6px; width: 1008px; height: 707px; }
#tv2-dial { left: 838.9px; top: 72.4px; width: 100px; height: 100px; transform-origin: 50.5px 50.5px; transition: transform .25s ease-out; }
#tv2 .hot, #tv2 .knob, #tv2 .letter2 { pointer-events: auto; }
.dial-half { left: 838.9px; top: 72.4px; width: 100px; height: 100px; border-radius: 50%; }
#tv2-ch-up { clip-path: polygon(100% 0, 100% 100%, 0 100%); }      /* lower right: channel up */
#tv2-ch-down { clip-path: polygon(0 0, 100% 0, 0 100%); }          /* upper left: channel down */
.dial-half:active { background: rgba(0,0,0,.12); }
.knob { position: absolute; z-index: 6; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; --a: 0deg; touch-action: none; }
.knob i { position: absolute; left: 12.6px; top: 19.6px; width: 2.8px; height: 7px; background: #111; transform-origin: 50% -5.6px; transform: rotate(var(--a)); transition: transform .15s; }
#tv2-vol { left: 917.9px; top: 251.6px; }
#tv2-vol i { left: 12.3px; top: 1.6px; width: 3.4px; height: 9.3px; transform-origin: 50% 12.4px; transition: transform .12s ease-out; }
#tv2-vol { cursor: ew-resize; }
#tv2-mute { left: 918.4px; top: 314.4px; }
#tv2-invert { left: 918.4px; top: 380.4px; }
#tv2-revert { left: 866px; top: 447px; width: 45px; height: 18px; }
#tv2-revert:active { background: rgba(255,255,255,.2); }
.letter2 { position: absolute; top: 207px; height: 17px; z-index: 6; padding: 0; border: 0; background: transparent; cursor: pointer; border-radius: 2px; }
.letter2:hover { background: rgba(255,255,255,.18); }
.letter2:active { background: rgba(255,0,0,.35); }

/* 60s power switch (tv2): amber pilot lamp, black rocker like the "revert skin" switch, grey label */
#tv2-power { position: absolute; left: 836px; top: 594px; width: 140px; height: 22px; z-index: 6; padding: 0; border: 0; background: transparent;
  cursor: pointer; pointer-events: auto; display: flex; align-items: center; }
#tv2-power .pilot { width: 10px; height: 10px; margin-right: 20px; border-radius: 50%; border: 1px solid #777;
  background: radial-gradient(circle at 35% 35%, #8a6a3a, #4a3012 70%); box-shadow: inset 0 1px 2px rgba(0,0,0,.6); }
#tv2-power[aria-pressed="true"] .pilot { background: radial-gradient(circle at 35% 35%, #fff2c0, #ffae2a 45%, #c0560a 80%);
  box-shadow: 0 0 6px 2px rgba(255,170,40,.75); }
#tv2-power .rocker { position: relative; width: 45px; height: 18px; border-radius: 2px; background: #161616; box-shadow: 0 1px 1px rgba(255,255,255,.6), inset 0 0 1px #000; }
#tv2-power .rocker i { position: absolute; left: 4px; right: 4px; top: 4px; bottom: 4px; border-radius: 1px;
  background: linear-gradient(#4a4c4c, #2a2c2c 55%, #1a1b1b); transition: background .1s; }
#tv2-power[aria-pressed="true"] .rocker i { background: linear-gradient(#1a1b1b, #2a2c2c 45%, #5a5d5d); }
#tv2-power:active .rocker i { filter: brightness(.8); }
#tv2-power .label { margin-left: 9px; font: 11px/1 Arial, Helvetica, sans-serif; color: #555; letter-spacing: .2px; }

/* switching: the old set fades out while the new one fades in (2% per frame in the original) */
#tv, #led, .panel, #remote, #skin-egg, #power { transition: opacity 1.2s ease-in-out, visibility 0s; }
#stage.skin-tv2 #tv2 { opacity: 1; visibility: visible; transition: opacity 1.2s ease-in-out, visibility 0s; }
#stage.skin-tv2 #tv, #stage.skin-tv2 #led, #stage.skin-tv2 .panel, #stage.skin-tv2 #remote, #stage.skin-tv2 #skin-egg, #stage.skin-tv2 #power {
  opacity: 0; visibility: hidden; transition: opacity 1.2s ease-in-out, visibility 0s 1.2s; }
#stage.skin-tv2 #go-back { left: 827px; top: 229px; width: 122px; }
/* tv2 invert knob: the original laid an "invert" blend over the picture */
#stage.inverted #content, #stage.inverted #static, #stage.inverted #zombie { filter: invert(1); }

/* ---------- page around the TV ---------- */
#footer { flex: none; text-align: center; font-size: 11px; line-height: 1.5; color: #aaa; margin-top: 4px; text-shadow: 0 1px 2px #000, 0 0 4px #000; }
#footer p { margin: 0; }
#footer a { color: #ddd; }
/* short screens (phones in landscape): one small line between the TV's feet, so the set can use the full height */
#footer.compact { position: absolute; left: 0; right: 0; bottom: 1px; margin: 0; font-size: 9px; line-height: 12px; z-index: 10; }
#footer.compact p { display: inline; }
#footer.compact p + p::before { content: " \00b7 "; }
#footer.compact .keys-help { display: none; }
#footer .keys-help { color: #777; }
@media (pointer: coarse) {
  #footer .keys-help { display: none; }
  /* finger-size hit areas: grow each control into the gaps around it (the art stays the same size) */
  .panel::after, .key::after, .letter::after, .letter2::after, #power::after, #tv2-power::after, #tv2-revert::after,
  .knob::after, #readout-close::after, #readout-reset::after { content: ""; position: absolute; }
  .panel::after { inset: -12px -2px -10px; }
  .key::after { inset: -6px -8px; }
  .letter::after, .letter2::after { inset: -10px 0; }
  #power::after { inset: -14px -10px -12px -12px; }
  #tv2-power::after { inset: -10px -4px; }
  #tv2-revert::after { inset: -12px -8px; }
  .knob::after { inset: -12px; border-radius: 50%; }
  #readout-close::after, #readout-reset::after { inset: -4px -6px; }
  /* the skin switcher's cover and window clip their own children, so the bigger target hangs off #skin-egg */
  #skin-egg::before { content: ""; position: absolute; inset: -10px -6px -8px; }
}
/* ---------- accessibility ---------- */
/* no focus outline anywhere on the set (owner, 2026-11-20); guide lines, gallery thumbs and zombies still light up */
#stage :focus, #stage :focus-visible { outline: none; }
/* read by screen readers only (channel changes, power, volume) */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.noscript { position: fixed; top: 8px; left: 0; right: 0; text-align: center; color: #fff; }
@media (prefers-reduced-motion: reduce) {
  .lightbox, #stage .gal-thumb img { transition: none; }
  .lb-pic.in, #stage .gal-thumb img { animation: none; }
  #preloader { transition: none; }
  #screen.warming #content, #screen.warming #static, #screen.cooling #content, #screen.cooling #static { animation: none; }
  #flap { transition: none; }
  #tv2, #tv, #led, .panel, #remote, #skin-egg, #stage.skin-tv2 #tv2 { transition: none !important; }
  .zombie-flash { animation-duration: 1.5s; }
  /* no blinking: the readouts and the POWER lamp hold still, the "push POWER" hint just shows */
  #led.entry, #readout-text::after, #power[aria-pressed="false"] .lamp { animation: none; }
  #off-hint { animation: none; opacity: .8; }
  #static, #tube-off, #pre-title, .zombie-spot, #skin-cover, #skin-input, #tv2-dial, .knob i, #tv2-vol i { transition: none; }
  .gal-thumb img, #zombie .zombie-guide { animation: none; }
}
