/* Don't Touch That Dial — TTTV one-tap game page. Loads after styles.css (fonts, colours, .btn). */
html.game-html, html.game-html body { height: 100%; overflow: hidden; overscroll-behavior: none; }
html.game-html { scroll-behavior: auto; }
.game-body { display: flex; flex-direction: column; height: 100vh; height: 100dvh; background: #06070c; }

/* slim header */
.g-top { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left)); margin-top: env(safe-area-inset-top);
  background: #06070c; border-bottom: 3px solid #000; box-shadow: 0 1px 0 rgba(255,255,255,.08); position: relative; z-index: 5; }
.g-top__brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.g-top__brand img { width: 40px; height: 40px; border-radius: 50%; }
.g-top__word { font: 400 21px/1 var(--display); letter-spacing: .04em; color: #fff; }
.g-top__title { flex: 1; margin: 0; min-width: 0; font: 400 clamp(15px, 2.2vw, 22px)/1 var(--display); text-transform: uppercase; letter-spacing: .03em; color: var(--yellow); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 8px; }
.g-top__live { font: 700 10px/1 var(--label); letter-spacing: .14em; background: var(--red); color: #fff; padding: 4px 6px; border-radius: 2px; }
.g-top__back { flex: 0 0 auto; min-height: 36px; padding: 0 12px; font-size: 12.5px; }
@media (max-width: 420px) { .g-top__word { display: none; } }

/* stage */
.g-stage { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; outline: none;
  touch-action: none; -ms-touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; cursor: pointer; }
.g-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* HUD */
.g-hud { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; padding: 10px max(10px, env(safe-area-inset-right)) 0 max(10px, env(safe-area-inset-left)); pointer-events: none; z-index: 2; }
.g-hud__l { display: flex; align-items: center; gap: 8px; }
.g-hud__badge { width: 44px; height: 44px; border-radius: 50%; border: 3px solid #000; box-shadow: 3px 3px 0 #000; }
.g-live { display: inline-flex; align-items: center; gap: 6px; font: 700 12px/1 var(--label); letter-spacing: .16em; text-transform: uppercase; background: var(--red); color: #fff; padding: 6px 8px 6px 7px; border: 2px solid #000; border-radius: 3px; box-shadow: 2px 2px 0 #000; }
.g-live i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: g-blink 1.1s steps(2) infinite; }
.g-live--off { background: #2a2d38; }
@keyframes g-blink { 50% { opacity: .15; } }
.g-playing .g-live i, .g-playing .g-lower__track { animation: none; }
.g-chan { font: 700 12px/1 var(--label); letter-spacing: .16em; text-transform: uppercase; color: #000; background: var(--yellow); padding: 6px 8px; border: 2px solid #000; border-radius: 3px; box-shadow: 2px 2px 0 #000; }
.g-hud__r { display: flex; align-items: flex-start; gap: 8px; }
.g-score { margin: 0; display: grid; justify-items: end; line-height: 1; background: rgba(6,7,12,.72); border: 2px solid #000; border-radius: 4px; padding: 6px 10px 7px; box-shadow: 3px 3px 0 #000; min-width: 86px; }
.g-score__k { font: 600 10px/1 var(--label); letter-spacing: .2em; text-transform: uppercase; color: #c7cad4; }
.g-score__v { font: 400 32px/1 var(--display); color: #fff; font-variant-numeric: tabular-nums; margin: 2px 0 3px; text-shadow: 2px 2px 0 var(--red); }
.g-score__best { font: 600 10.5px/1 var(--label); letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); }
.g-score__best b { font-weight: 700; }
.g-icon { pointer-events: auto; width: 46px; height: 46px; display: grid; place-items: center; background: rgba(6,7,12,.72); border: 2px solid #000; border-radius: 4px; box-shadow: 3px 3px 0 #000; cursor: pointer; padding: 0; }
.g-icon svg { width: 22px; height: 22px; fill: #fff; stroke: #fff; stroke-width: 0; }
.g-icon .g-ico-on, .g-icon .g-ico-off { fill: none; stroke-width: 2; stroke-linecap: round; }
.g-icon .g-ico-off { display: none; }
.g-icon[aria-pressed="true"] .g-ico-on { display: none; }
.g-icon[aria-pressed="true"] .g-ico-off { display: inline; }
.g-icon[aria-pressed="true"] { background: rgba(255,48,69,.85); }
.is-ready .g-hud .g-icon#g-pausebtn, .is-over .g-hud .g-icon#g-pausebtn { visibility: hidden; }
@media (max-width: 480px) { .g-chan { display: none; } .g-hud__badge { width: 40px; height: 40px; } .g-score__v { font-size: 28px; } .g-icon { width: 44px; height: 44px; } }

/* lower third ticker */
.g-lower { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: stretch; height: 34px; margin-bottom: env(safe-area-inset-bottom); background: #fff; color: #000; border-top: 3px solid #000; pointer-events: none; z-index: 2; overflow: hidden; }
.g-lower__tag { position: relative; z-index: 1; flex: 0 0 auto; display: grid; place-items: center; padding: 0 12px; background: var(--red); color: #fff; font: 400 17px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; border-right: 3px solid #000; }
.g-lower__track { display: flex; white-space: nowrap; animation: g-ticker 16s linear infinite; }
.g-lower__text { font: 400 17px/34px var(--display); letter-spacing: .04em; text-transform: uppercase; padding-left: 14px; }
@keyframes g-ticker { to { transform: translateX(-50%); } }

/* overlays */
.g-ov { position: absolute; inset: 0; z-index: 4; display: flex; align-items: center; justify-content: center; padding: 12px 12px calc(46px + env(safe-area-inset-bottom)); overflow: hidden; cursor: default;
  background: radial-gradient(rgba(0,0,0,.35) 1px, transparent 1.5px) 0 0 / 7px 7px, rgba(6,7,12,.58); }
.g-ov[hidden] { display: none; }
.g-ov--start { cursor: pointer; }
.g-card { position: relative; width: 100%; max-width: 500px; max-height: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: clamp(14px, 2.4vh, 22px) clamp(14px, 3vw, 24px);
  background: #0e1220; border: 3px solid #000; border-radius: 8px; box-shadow: 7px 7px 0 var(--red), 7px 7px 0 3px #000; animation: g-pop .45s cubic-bezier(.2,1.4,.4,1) both; }
.g-card--sm { max-width: 340px; }
@keyframes g-pop { from { transform: scale(.82) rotate(-2deg); opacity: 0; } }
.g-tv { position: relative; flex: 0 1 auto; min-height: 0; border: 4px solid #000; border-radius: 12px; overflow: hidden; background: #111; box-shadow: 0 0 0 3px #3a3f4f, 4px 4px 0 3px #000; transform: rotate(-1.2deg); }
.g-tv img { display: block; width: auto; height: auto; max-width: 100%; max-height: min(30vh, 290px); max-height: min(30dvh, 290px); }
.g-tv__live { position: absolute; top: 8px; right: 8px; }
.g-tv__lower { position: absolute; left: 0; right: 0; bottom: 0; background: #fff; color: #000; font: 400 clamp(13px, 2.3vh, 17px)/1 var(--display); letter-spacing: .03em; text-transform: uppercase; padding: 6px 8px; border-top: 3px solid #000; }
.g-tv__lower b { font-weight: 400; color: var(--red); }
.g-title { margin: 6px 0 0; font: 400 clamp(32px, 6.4vh, 54px)/.92 var(--display); text-transform: uppercase; letter-spacing: .01em; color: var(--yellow); -webkit-text-stroke: 1.5px #000; text-shadow: 3px 3px 0 #000, 5px 5px 0 var(--red); transform: rotate(-1.5deg); }
.g-title--sm { font-size: 46px; }
.g-title--over { font-size: clamp(26px, 5vh, 40px); }
.g-sub { margin: 0; max-width: 40ch; color: #d6d8e0; font-size: clamp(13.5px, 2vh, 15.5px); line-height: 1.45; }
.g-play { min-height: 58px; min-width: 210px; font: 400 24px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; border: 3px solid #000; box-shadow: 4px 4px 0 #000; animation: g-throb 1.6s ease-in-out infinite; }
.g-play svg { width: 22px; height: 22px; }
.g-play:hover { box-shadow: 6px 6px 0 #000; }
@keyframes g-throb { 50% { box-shadow: 4px 4px 0 #000, 0 0 0 6px rgba(255,198,41,.45); background: #ff4a5c; } }
.g-meta { margin: 0; font: 600 12.5px/1.3 var(--label); letter-spacing: .1em; text-transform: uppercase; color: #c7cad4; }
.g-meta b { color: var(--yellow); }
.g-credit { margin: 0; font: 500 12.5px/1.3 var(--body); color: #a7acbb; }
.g-offair { margin: 0; display: flex; align-items: center; gap: 10px; font: 600 12px/1 var(--label); letter-spacing: .16em; text-transform: uppercase; color: #c7cad4; }
.g-quote { display: flex; align-items: center; gap: 12px; text-align: left; margin: 4px 0; }
.g-quote img { flex: 0 0 auto; width: clamp(70px, 12vh, 104px); height: clamp(70px, 12vh, 104px); border-radius: 50%; border: 4px solid #000; box-shadow: 4px 4px 0 var(--yellow); background: #fff; animation: g-wobble 1.4s ease-in-out infinite; }
@keyframes g-wobble { 50% { transform: rotate(-6deg) scale(1.04); } }
.g-bubble { position: relative; margin: 0; background: #fff; color: #000; border: 3px solid #000; border-radius: 16px; padding: 10px 14px; font: 400 clamp(17px, 2.8vh, 22px)/1.1 var(--display); letter-spacing: .01em; box-shadow: 3px 3px 0 #000; }
.g-bubble::before { content: ""; position: absolute; left: -14px; top: 50%; margin-top: -9px; border: 9px solid transparent; border-right: 12px solid #000; border-left: 0; }
.g-who { display: block; font: 700 11px/1 var(--label); letter-spacing: .14em; color: var(--red); margin-bottom: 5px; }
.g-final { margin: 0; font: 400 clamp(26px, 4.6vh, 36px)/1 var(--display); text-transform: uppercase; color: #fff; display: flex; align-items: baseline; gap: 14px; }
.g-final b { font-weight: 400; color: var(--yellow); text-shadow: 2px 2px 0 var(--red); }
.g-final__best { font: 600 13px/1 var(--label); letter-spacing: .14em; color: #c7cad4; }
.g-final__best b { text-shadow: none; }
.g-newbest { margin: 0; font: 400 20px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; background: var(--yellow); color: #000; padding: 5px 10px; border: 2px solid #000; transform: rotate(-3deg); }
.g-newbest[hidden] { display: none; }
.g-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.g-actions .btn--ghost { min-height: 58px; border: 3px solid #000; box-shadow: 4px 4px 0 #000; background: #fff; color: #000; font-weight: 700; }
.g-share-status { margin: 0; min-height: 1.2em; font-size: 13px; color: var(--yellow); }
.g-follow { margin: 0; font-size: 13px; color: #c7cad4; line-height: 1.6; }
.g-follow a { color: #fff; font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--red); margin: 0 5px; display: inline-block; padding: 4px 0; }
.g-noscript { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: #fff; }

@media (max-height: 640px) { .g-tv img { max-height: 24vh; max-height: 24dvh; } .g-card { gap: 6px; } }
@media (prefers-reduced-motion: reduce) {
  .g-lower__track, .g-play, .g-quote img, .g-live i { animation: none; }
  .g-card { animation: none; }
}

/* leaderboard bits */
.g-lbbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; font: 400 17px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: #000; background: var(--yellow); border: 3px solid #000; border-radius: 4px; box-shadow: 3px 3px 0 #000; cursor: pointer; }
.g-lbbtn svg, .g-boardbtn svg { width: 20px; height: 20px; fill: currentColor; }
.g-boardbtn { min-width: 58px; padding: 0 14px; }
.g-lb { margin: 0; min-height: 1.2em; font-size: 14px; color: #e4e6ee; line-height: 1.4; }
.g-lb b { color: var(--yellow); }
.g-lb button { background: none; border: 0; padding: 6px 2px; font: inherit; font-weight: 700; color: #fff; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 3px; cursor: pointer; }
.g-lb .g-lb__post { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; text-decoration: none; color: #000; background: var(--yellow); border: 3px solid #000; border-radius: 4px; box-shadow: 3px 3px 0 #000; font: 400 17px/1 var(--display); letter-spacing: .05em; text-transform: uppercase; }
@media (max-height: 760px) { .g-quote img { width: 64px; height: 64px; } .g-bubble { font-size: 17px; padding: 8px 12px; } .g-title--over { font-size: 26px; } .g-card { gap: 6px; } .g-follow { line-height: 1.35; } }
