/* TL3RDS STAGE 1.2.0 — the shared way every arcade game is shown (see tl3rds-stage.js) */

/* the strip: the same buttons, the same words, the same place, on every game */
.tl3s-strip { position: absolute; z-index: 2147483001; display: flex; gap: 6px; align-items: center; justify-content: flex-end;
  pointer-events: none; font-family: "Barlow Condensed", "Arial Narrow", Impact, "Helvetica Neue", Arial, sans-serif; }
.tl3s-strip .tl3s-btn { pointer-events: auto; display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px;
  border-radius: 999px; border: 1px solid rgba(255,255,255,.18) !important; background: rgba(10,12,18,.82) !important; color: #e9ecf1 !important;
  font: 700 12px/1 "Barlow Condensed", "Arial Narrow", Impact, "Helvetica Neue", Arial, sans-serif !important; letter-spacing: .14em; text-transform: uppercase;
  cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); margin: 0 !important; min-height: 0 !important; width: auto !important; }
.tl3s-strip .tl3s-btn:hover { background: rgba(26,30,40,.92) !important; border-color: rgba(255,255,255,.34) !important; }
.tl3s-strip .tl3s-btn[aria-pressed="true"] { border-color: var(--tl3s-accent, #4FE3FF) !important; box-shadow: 0 0 0 1px var(--tl3s-accent, #4FE3FF), 0 6px 18px rgba(0,0,0,.45); }
.tl3s-strip .tl3s-btn[hidden] { display: none !important; }
.tl3s-strip .tl3s-x { padding: 0 10px; font-size: 14px !important; }
.tl3s-strip .tl3s-ico { width: 12px; height: 12px; border: 2px solid currentColor; border-radius: 2px; box-sizing: border-box; display: inline-block; }
.tl3s-strip .tl3s-full .tl3s-ico { border-style: dashed; }
.tl3s-strip .tl3s-machine .tl3s-ico { border-radius: 4px 4px 1px 1px; border-bottom-width: 4px; }
.tl3s-strip .tl3s-split .tl3s-ico { background: linear-gradient(90deg, currentColor 0 45%, transparent 45% 55%, currentColor 55%); border: 0; height: 12px; border-radius: 1px; }
.tl3s-strip .tl3s-x .tl3s-ico { display: none; }
.tl3s-strip .tl3s-room .tl3s-ico { border-radius: 3px 3px 0 0; border-bottom-width: 3px; }
@media (max-width: 720px), (hover: none) and (pointer: coarse) {
  .tl3s-strip .tl3s-btn { height: 36px; padding: 0 14px; font-size: 13px !important; }
}

/* on the page: the strip sits over the game's top-right corner */
[data-tl3-stage].tl3-staged { position: relative; }
/* 1.1.3: on the page the strip's height stays inside the game (it used to climb over the room and the site's layers) */
[data-tl3-stage].tl3-staged:not(.tl3-full) { isolation: isolate; z-index: 0; }
[data-tl3-stage].tl3-staged:not(.tl3-full) > .tl3s-strip { top: 10px; right: 10px; }
[data-tl3-stage].tl3-staged:not(.tl3-full) > .tl3s-marquee,
[data-tl3-stage].tl3-staged:not(.tl3-full) > .tl3s-panel { display: none; }

/* full screen: the root becomes the dark room, the frame is laid out at its design width and scaled to fit */
html.tl3s-lock, html.tl3s-lock body { overflow: hidden !important; }
[data-tl3-stage].tl3-full { position: fixed !important; inset: 0 !important; z-index: 2147483000 !important; width: auto !important; height: auto !important;
  max-width: none !important; margin: 0 !important; padding: 0 !important; border-radius: 0 !important; box-shadow: none !important; overflow: hidden !important;
  background: #050408 !important; display: block !important; transform: none !important; }
[data-tl3-stage].tl3-full:fullscreen { background: #050408 !important; }
[data-tl3-stage].tl3-full { background-image: var(--tl3s-backdrop, none) !important; background-size: cover !important; background-position: center !important; }
[data-tl3-stage].tl3-full > [data-tl3-frame], [data-tl3-stage].tl3-full > .tl3s-frame-default {
  position: absolute !important; left: calc(var(--tl3s-box-left, 0px) + var(--tl3s-side, 0px) * var(--tl3s-k, 1)) !important;
  top: calc(var(--tl3s-box-top, 0px) + var(--tl3s-marq, 0px) * var(--tl3s-k, 1)) !important;
  width: var(--tl3s-frame-w, 960px) !important; height: auto !important; min-height: 0 !important; max-width: none !important; margin: 0 !important;
  transform-origin: 0 0 !important; transform: scale(var(--tl3s-k, 1)) !important; }
[data-tl3-stage].tl3-full > .tl3s-strip { top: var(--tl3s-strip-top, 0px); left: 0; right: 0; height: 40px; padding: 4px 12px 0; box-sizing: border-box; }
@media (max-width: 720px), (hover: none) and (pointer: coarse) {
  [data-tl3-stage].tl3-full > .tl3s-strip { height: 44px; justify-content: center; padding: 4px 8px 0; }
}

/* the machine: a marquee over the screen, a bezel at the sides, a panel under — drawn in design pixels and scaled with the game */
[data-tl3-stage].tl3-full.tl3-machine::before { content: ""; position: absolute; left: var(--tl3s-box-left, 0px); top: var(--tl3s-box-top, 0px);
  width: var(--tl3s-box-w, 0px); height: var(--tl3s-box-h, 0px); border-radius: calc(18px * var(--tl3s-k, 1));
  background: linear-gradient(180deg, #171a22, #0b0d12 30%, #0b0d12 70%, #15171d); box-shadow: 0 0 0 calc(2px * var(--tl3s-k, 1)) rgba(255,255,255,.08), 0 calc(30px * var(--tl3s-k, 1)) calc(80px * var(--tl3s-k, 1)) rgba(0,0,0,.65), inset 0 0 0 calc(1px * var(--tl3s-k, 1)) rgba(255,255,255,.04); }
[data-tl3-stage].tl3-full.tl3-machine::after { content: ""; position: absolute; pointer-events: none;
  left: calc(var(--tl3s-box-left, 0px) + var(--tl3s-side, 0px) * var(--tl3s-k, 1) - 3px); top: calc(var(--tl3s-box-top, 0px) + var(--tl3s-marq, 0px) * var(--tl3s-k, 1) - 3px);
  width: calc(var(--tl3s-frame-w, 0px) * var(--tl3s-k, 1) + 6px); height: calc(var(--tl3s-frame-h, 0px) * var(--tl3s-k, 1) + 6px);
  border-radius: calc(8px * var(--tl3s-k, 1)); box-shadow: inset 0 0 calc(24px * var(--tl3s-k, 1)) rgba(0,0,0,.7), 0 0 0 3px #05060a, 0 0 calc(18px * var(--tl3s-k, 1)) color-mix(in srgb, var(--tl3s-accent, #4FE3FF) 35%, transparent); }
.tl3s-marquee, .tl3s-panel { display: none; position: absolute; z-index: 1; box-sizing: border-box; align-items: center; justify-content: center; gap: 14px; pointer-events: none;
  font-family: "Barlow Condensed", "Arial Narrow", Impact, "Helvetica Neue", Arial, sans-serif; text-transform: uppercase; letter-spacing: .22em; color: #e9ecf1; transform-origin: 0 0; }
[data-tl3-stage].tl3-full.tl3-machine > .tl3s-marquee { display: flex; left: var(--tl3s-box-left, 0px); top: var(--tl3s-box-top, 0px);
  width: calc(var(--tl3s-frame-w, 0px) + var(--tl3s-side, 0px) * 2); height: var(--tl3s-marq, 64px); transform: scale(var(--tl3s-k, 1));
  font-size: 26px; font-weight: 800; font-style: italic; color: var(--tl3s-accent, #4FE3FF); text-shadow: 0 0 18px var(--tl3s-accent, #4FE3FF), 0 2px 0 rgba(0,0,0,.8);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,0) 60%); border-bottom: 1px solid rgba(255,255,255,.08); }
[data-tl3-stage].tl3-full.tl3-machine > .tl3s-panel { display: flex; left: var(--tl3s-box-left, 0px);
  top: calc(var(--tl3s-box-top, 0px) + (var(--tl3s-marq, 0px) + var(--tl3s-frame-h, 0px)) * var(--tl3s-k, 1));
  width: calc(var(--tl3s-frame-w, 0px) + var(--tl3s-side, 0px) * 2); height: var(--tl3s-panelh, 44px); transform: scale(var(--tl3s-k, 1));
  font-size: 11px; font-weight: 700; color: #8d95a5; background: linear-gradient(180deg, #0b0d12, #15171d); }
.tl3s-marq-lamp { width: 10px; height: 10px; border-radius: 50%; background: var(--tl3s-accent, #4FE3FF); box-shadow: 0 0 12px var(--tl3s-accent, #4FE3FF); display: inline-block; animation: tl3s-lamp 2.4s ease-in-out infinite; }
.tl3s-marq-lamp:last-child { animation-delay: 1.2s; }
.tl3s-coin { width: 26px; height: 8px; border-radius: 4px; background: #05060a; box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 0 0 1px rgba(255,255,255,.06); display: inline-block; }
@keyframes tl3s-lamp { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .tl3s-marq-lamp { animation: none; } }

/* the page under a full-screen game never shows (and never scrolls behind it) */
html[data-tl3-cab] .tl3s-page-dim { display: none; }

/* 1.1.0 — phones: the game covers the site while you play; the pad in its own dock; one corner button */
[data-tl3-stage].tl3-full.tl3s-phoneplay { z-index: 2147483500 !important; }
[data-tl3-stage].tl3s-phoneplay > .tl3s-strip { display: none !important; }
.tl3s-gone { display: none !important; }
.tl3s-dock { display: none; }
[data-tl3-stage].tl3s-phoneplay > .tl3s-dock { display: flex; position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; justify-content: center; align-items: center;
  padding: 4px 10px calc(6px + env(safe-area-inset-bottom)); box-sizing: border-box; background: linear-gradient(180deg, rgba(5,4,8,0), rgba(5,4,8,.85) 30%); }
[data-tl3-stage].tl3s-phoneplay > .tl3s-dock > .tl3pad { margin: 0 !important; }
.tl3s-chip { display: none; }
[data-tl3-stage].tl3s-phoneplay > .tl3s-chip { display: block; position: absolute; z-index: 30; top: calc(1px + env(safe-area-inset-top)); right: 8px; }

.tl3s-chip-btn { width: 34px !important; height: 34px !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important; border-radius: 50% !important;
  border: 1px solid rgba(255,255,255,.22) !important; background: rgba(10,12,18,.62) !important; display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  box-shadow: 0 4px 14px rgba(0,0,0,.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); cursor: pointer; }
.tl3s-chip-btn span { display: block; width: 16px; height: 2px; border-radius: 2px; background: #e9ecf1; }
.tl3s-sheet { position: absolute; top: 46px; right: 0; min-width: 200px; display: flex; flex-direction: column; gap: 4px; padding: 6px; border-radius: 14px;
  background: rgba(10,12,18,.96); border: 1px solid rgba(255,255,255,.16); box-shadow: 0 18px 40px rgba(0,0,0,.6); }
.tl3s-sheet[hidden] { display: none !important; }
.tl3s-sheet button { all: unset; box-sizing: border-box; display: block; width: 100%; padding: 12px 14px; border-radius: 10px; color: #e9ecf1; cursor: pointer;
  font: 700 14px/1.1 "Barlow Condensed", "Arial Narrow", Impact, "Helvetica Neue", Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.tl3s-sheet button:active, .tl3s-sheet button:hover { background: rgba(255,255,255,.08); }
/* the pad fits the screen's height (a short Safari screen gets a slightly smaller pad, the app a full one) */
.tl3s-dock .tl3pad--s { --tl3pad-size: min(124px, 16vh); }
.tl3s-dock .tl3pad--m { --tl3pad-size: min(160px, 20vh); }
.tl3s-dock .tl3pad--l { --tl3pad-size: min(210px, 26vh, 60vw); }
/* 1.1.1: the pad only while a run is on (games that say so); title and results screens get the whole screen */
[data-tl3-stage].tl3s-phoneplay.tl3s-playaware:not(.tl3s-inplay) > .tl3s-dock { display: none !important; }
/* 1.1.1: the game's Controls button sits in the dead space at the dock's right edge, small, never its own row */
[data-tl3-stage] .tl3s-dock > .tl3s-dock-ctl { position: absolute !important; right: 10px !important; bottom: calc(10px + env(safe-area-inset-bottom)) !important; left: auto !important; top: auto !important;
  margin: 0 !important; min-height: 32px !important; height: 32px !important; width: auto !important; padding: 0 10px !important; font-size: 11px !important; letter-spacing: .12em; z-index: 2; }
[data-tl3-stage] .tl3s-dock:has(.tl3pad--hand-right) > .tl3s-dock-ctl { right: auto !important; left: 10px !important; }

/* 1.1.2 — Sound in the game menu (phones): Room + games · Games only · All off, and the game's level */
.tl3s-snd { padding: 6px 6px 8px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 4px; }
.tl3s-snd-h { font: 700 11px/1 "Barlow Condensed", "Arial Narrow", Impact, Arial, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: #9aa3b2; margin: 4px 4px 8px; }
.tl3s-snd-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.tl3s-sheet .tl3s-snd-row button { padding: 10px 4px !important; text-align: center; font-size: 12px !important; letter-spacing: .04em !important; border: 1px solid rgba(255,255,255,.16); min-height: 44px; }
.tl3s-sheet .tl3s-snd-row button.on { background: var(--tl3s-accent, #4FE3FF); color: #05060a; border-color: transparent; }
.tl3s-snd-vol { display: flex; align-items: center; gap: 10px; margin: 10px 4px 0; color: #e9ecf1; font: 600 12px/1 "Barlow Condensed", "Arial Narrow", Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.tl3s-snd-vol input { flex: 1; accent-color: var(--tl3s-accent, #4FE3FF); min-height: 32px; }
.tl3s-sheet { min-width: 260px; }

/* 1.1.3 — PAUSE: the strip's Pause button, the phone's round one, and the Paused card over the game */
.tl3s-strip .tl3s-pause .tl3s-ico { border: 0; border-radius: 0; width: 10px; background: linear-gradient(90deg, currentColor 0 35%, transparent 35% 65%, currentColor 65%); }
.tl3s-strip .tl3s-pause[aria-pressed="true"] .tl3s-ico { width: 0; height: 0; background: none; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; }
.tl3s-pbtn { display: none; }
[data-tl3-stage].tl3s-phoneplay > .tl3s-pbtn:not([hidden]) { display: flex !important; position: absolute; z-index: 30; top: calc(1px + env(safe-area-inset-top)); right: 50px;
  width: 34px !important; height: 34px !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important; border-radius: 50% !important; gap: 4px;
  align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.22) !important; background: rgba(10,12,18,.62) !important;
  box-shadow: 0 4px 14px rgba(0,0,0,.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); cursor: pointer; }
[data-tl3-stage].tl3s-phoneplay:not(:has(> .tl3s-chip)) > .tl3s-pbtn { right: 8px; }
.tl3s-pbtn span { display: block; width: 4px; height: 13px; border-radius: 1px; background: #e9ecf1; }
.tl3s-pbtn.is-paused span:first-child { width: 0; height: 0; border-radius: 0; background: none; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent #e9ecf1; margin-left: 3px; }
.tl3s-pbtn.is-paused span + span { display: none; }
.tl3s-pause-ov { position: absolute; inset: 0; z-index: 2147483002; display: flex; align-items: center; justify-content: center; background: rgba(4,5,9,.62);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); font-family: "Barlow Condensed", "Arial Narrow", Impact, "Helvetica Neue", Arial, sans-serif; }
.tl3s-pause-ov[hidden] { display: none !important; }
[data-tl3-stage].tl3-full > .tl3s-pause-ov { inset: auto; left: var(--tl3s-box-left, 0px); top: var(--tl3s-box-top, 0px); width: var(--tl3s-box-w, 100%); height: var(--tl3s-box-h, 100%); }
.tl3s-pause-card { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 22px 30px 18px; border-radius: 16px; background: rgba(10,12,18,.92);
  border: 1px solid rgba(255,255,255,.18); box-shadow: 0 18px 50px rgba(0,0,0,.6); text-align: center; }
.tl3s-pause-h { color: #e9ecf1; font-size: 34px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; line-height: 1; }
.tl3s-pause-go { all: unset; box-sizing: border-box; cursor: pointer; min-width: 160px; min-height: 48px; padding: 0 26px; border-radius: 999px; text-align: center;
  background: var(--tl3s-accent, #4FE3FF); color: #05060a; font: 800 18px/48px "Barlow Condensed", "Arial Narrow", Impact, Arial, sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.tl3s-pause-go:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.tl3s-pause-tip { color: #9aa3b2; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; min-height: 1px; }
.tl3s-pause-tip:empty { display: none; }

/* 1.1.3 — the US3R room is open over this page: nothing of the game shows above it (it pauses; it comes back when the room closes) */
[data-tl3-stage].tl3s-covered > .tl3s-strip, [data-tl3-stage].tl3s-covered > .tl3s-marquee, [data-tl3-stage].tl3s-covered > .tl3s-panel,
[data-tl3-stage].tl3s-covered > .tl3s-chip, [data-tl3-stage].tl3s-covered > .tl3s-dock, [data-tl3-stage].tl3s-covered > .tl3s-pbtn,
[data-tl3-stage].tl3s-covered > .tl3s-pause-ov { display: none !important; }
[data-tl3-stage].tl3s-covered { visibility: hidden !important; }
[data-tl3-stage].tl3s-covered.tl3-full { z-index: 2147479000 !important; }

/* 1.2.0 (Oct 10): in a room window the game is the only thing in the window — the page's bars, words and footer stay
   hidden behind it (they showed through the game on Tony's iPhone). */
html.tl3s-solo body *:not([data-tl3-stage]):not([data-tl3-stage] *):not(.tl3s-keep) { visibility: hidden !important; }
html.tl3s-solo [data-tl3-stage] { visibility: visible !important; }
html.tl3s-solo, html.tl3s-solo body { background: #050408 !important; }
/* 1.2.0: a game's own "every button" rules (HAUNT3D 3SCAP3: #h3-app button { width:auto !important; height:auto !important })
   squeezed the round menu and pause buttons to 18×16 px. These carry an id's weight, so the stage's own sizes hold. */
button.tl3s-chip-btn:not(#tl3s-none) { width: 34px !important; height: 34px !important; min-width: 34px !important; min-height: 34px !important; padding: 0 !important; box-sizing: border-box !important; line-height: 1 !important; }
[data-tl3-stage].tl3s-phoneplay > button.tl3s-pbtn:not([hidden]):not(#tl3s-none) { width: 34px !important; height: 34px !important; min-width: 34px !important; min-height: 34px !important; padding: 0 !important; box-sizing: border-box !important; line-height: 1 !important; }
.tl3s-sheet button:not(#tl3s-none) { width: 100% !important; min-height: 40px !important; height: auto !important; }
.tl3s-sheet .tl3s-snd-row button:not(#tl3s-none) { min-height: 36px !important; }
.tl3s-pause-card button.tl3s-pause-go:not(#tl3s-none) { width: auto !important; min-height: 44px !important; height: auto !important; }
/* 1.2.0: on a phone every game's Rules chip is a fingertip tall (some were 23-30 px once the game was fitted to the screen) */
[data-tl3-stage].tl3-phone .t3r-rules-btn:not(#tl3s-none) { min-height: 38px !important; min-width: 48px !important; }
/* 1.2.0 (Oct 10): in play on a phone the game is shown at k (smaller than drawn) — the chips grow by 1/k so they stay a
   fingertip (about 34 × 44 px on the glass): every game's Rules, the Title chips, 3RD D3GREE's Flash / See room,
   PR3SSUR3's sliders */
[data-tl3-stage].tl3-full.tl3-phone .t3r-rules-btn:not(#tl3s-none),
[data-tl3-stage].tl3-full.tl3-phone .fr-chip:not(#tl3s-none),
[data-tl3-stage].tl3-full.tl3-phone .p3-chip:not(#tl3s-none),
[data-tl3-stage].tl3-full.tl3-phone .ezf-menu:not(#tl3s-none),
[data-tl3-stage].tl3-full.tl3-phone [data-flash]:not(#tl3s-none),
[data-tl3-stage].tl3-full.tl3-phone [data-room-toggle]:not(#tl3s-none),
[data-tl3-stage].tl3-full.tl3-phone [data-fr-title-btn]:not(#tl3s-none),
[data-tl3-stage].tl3-full.tl3-phone [data-p3-title-btn]:not(#tl3s-none),
[data-tl3-stage].tl3-full.tl3-phone [data-p3-lock]:not(#tl3s-none),
[data-tl3-stage].tl3-full.tl3-phone [data-p3-rerack]:not(#tl3s-none),
[data-tl3-stage].tl3-full.tl3-phone .d3__answers button:not(#tl3s-none),
[data-tl3-stage].tl3-full.tl3-phone .mtr__name:not(#tl3s-none),
[data-tl3-stage].tl3-full.tl3-phone .mtr__actions button:not(#tl3s-none),
[data-tl3-stage].tl3-full.tl3-phone .stp-link:not(#tl3s-none) {
  min-height: calc(34px * var(--tl3s-inv, 1)) !important; min-width: calc(44px * var(--tl3s-inv, 1)) !important; }
[data-tl3-stage].tl3-full.tl3-phone .p3-range:not(#tl3s-none) { min-height: calc(32px * var(--tl3s-inv, 1)) !important; }
