/* the live sites on the screens (sites.js) */
.tvs { position: fixed; inset: 0; z-index: 3; }
.tvs[hidden] { display: none; }
.tvs:not(.on) { pointer-events: none; }
.tvs-glass { position: fixed; overflow: hidden; background: #0d0d0c; clip-path: inset(49.6% 48% round 0); visibility: hidden; }
.tvs.on .tvs-glass { visibility: visible; }
.tvs-glass.in { clip-path: inset(0 0 round 14px / 12px); }
.tvs-vhs { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; pointer-events: none; }
.tvs-glass iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; background: #0d0d0c; }
/* the glass: scanlines and a dark rim, over the site, never in the way */
.tvs-glass::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: 14px / 12px; background: repeating-linear-gradient(#0000 0 2px, #00000012 2px 3px); box-shadow: inset 0 0 40px #0000004d, inset 0 0 3px #000; }
/* the way out: the same line as the E / Click prompt, over the set, always 20px from the top */
button.tvs-x { all: unset; box-sizing: border-box; position: fixed; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; align-items: center; gap: 8px; height: 32px; padding: 5px 10px 5px 5px; cursor: pointer; background: #141414; color: #e3e1db; font-size: 15px; letter-spacing: -.3px; line-height: 1; white-space: nowrap; }
button.tvs-x:hover, button.tvs-x:focus-visible { color: #dc3418; } body.touch button.tvs-x { height: 40px; padding: 0 14px; bottom: auto; }
body.on-scr .tvs button.tvs-x.rm-use { display: flex !important; pointer-events: auto; }

/* 26 Nov: the step back key is the world's own key (as at the TV), top right */
body.on-scr .tvs button.tvs-x.uk { all: unset; box-sizing: border-box; position: fixed; left: auto; transform: none; right: calc(30px + env(safe-area-inset-right, 0px)); top: calc(24px + env(safe-area-inset-top, 0px)); z-index: 6; display: inline-flex !important; align-items: center; gap: 12px; height: 40px; padding: 0 12px 3px; cursor: pointer; pointer-events: auto;
  background: var(--u-dk, #1b1a18); color: #e3e1db; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; box-shadow: var(--u-cap), var(--u-bezel); }
body.on-scr .tvs button.tvs-x.uk:hover, body.on-scr .tvs button.tvs-x.uk:focus-visible { background: #33312d; color: #e3e1db; }
@media (max-width: 860px) { body.on-scr .tvs button.tvs-x.uk { right: calc(20px + env(safe-area-inset-right, 0px)); top: calc(16px + env(safe-area-inset-top, 0px)); height: 44px; } }
