/* The kostos.party look for the Game Room bits that phones, the TV and laptops share, plus the TV's own chrome.
   Loaded after style.css / theme.css / tv-app.css (play.html, rules.html, tv.html, table.html), with /shared/kostos.css first.
   Chrome only: no sizes change here (the phone stays stationary, tv-app.css keeps its 10-foot sizes, and table.js
   fitTable measures the games exactly as before). Table themes still set --gold / --panel-rgb, and the chrome follows them. */

/* ---------- tile colours (GR.tint): category colours; games with their own get .t-* from kostos.css ---------- */
.gc-cards { --art: linear-gradient(135deg, #3c4fd8, #151a4a); --art-glow: #5a6cff; }
.gc-dice  { --art: linear-gradient(135deg, #1f6fd1, #0f2850); --art-glow: #1f6fd1; }
.gc-tiles { --art: linear-gradient(135deg, #1aa6a0, #08302e); --art-glow: #2fd1c8; }
.gc-words { --art: linear-gradient(135deg, #e0a21e, #4a3306); --art-glow: #f0b84a; }
.gc-party { --art: linear-gradient(135deg, #e0457b, #4a0f26); --art-glow: #ff6fae; }
.gc-solo  { --art: linear-gradient(135deg, #5a6070, #20232b); --art-glow: #9aa6b8; }

/* ---------- game shelf tiles (TV picker, in-room "Change game") ---------- */
body .tile { background: var(--art, rgba(255,255,255,.06)); border: 1px solid rgba(255,255,255,.14); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 10px 24px -14px rgba(0,0,0,.7); transition: transform .2s cubic-bezier(.2,.8,.2,1), filter .2s; }
body .tile b { font-family: var(--k-font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
body .tile small { color: rgba(255,255,255,.78); }
body .tile .tile-icon { color: #fff; }
body .tile.soon { filter: saturate(.25) brightness(.75); opacity: 1; }
@media (hover: hover) { body .tile:not(.soon):hover { filter: brightness(1.1); } }
body .tile:active:not(.soon) { transform: scale(.97); }
body .shelf-h { font-family: var(--k-font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
body .tile-q { background: rgba(0,0,0,.32); color: #fff; font-family: var(--k-font-display); }

/* ---------- how-to cards (howto.js): a dark card, same size ---------- */
body .ht { background: rgba(5,6,10,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
body .ht .card { background: #14161c; color: var(--k-ink); border: 1px solid rgba(255,255,255,.12); border-radius: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.55); }
body .ht h3 { font-family: var(--k-font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
body .ht p { font-family: var(--k-font-ui); color: #d6d9e2; }
body .ht .dots { color: #4f5566; }
body .ht .skip { color: var(--k-mute); }

/* ---------- end of a game, and "waiting for the VIP" ---------- */
body .over-h { font-family: var(--k-font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
body .wait-me { box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 20px 40px -20px rgba(0,0,0,.6); }
body .wait-me b { font-family: var(--k-font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
body .wait-me span { font-family: var(--k-font-ui); font-weight: 600; }
body .theme-opt b { font-family: var(--k-font-ui); font-weight: 600; }

/* ---------- the TV (tv.html picker, table.html room) ---------- */
body.tv { font-family: var(--k-font-ui); }
body.tv .brand { font-family: var(--k-font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
body.tv .tv-picker .brand.big { letter-spacing: .01em; }
/* room top bar on one line: the wide display caps wrapped it to two with a long game name (Left Right Center),
   which took 40px from the game. The game name gives way (ellipsis) before the brand or the join code do. */
body.tv .tv-top .brand, body.tv .tv-top .join-mini { white-space: nowrap; flex-shrink: 0; }
body.tv .tv-top .top-game { white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* a name that still does not fit slides across and back (GR.marquee in common.js) instead of ending in "…" */
/* the picker is not a table: plain kostos.party dark, like the phone home (rooms keep their table theme) */
body.tv:has(.tv-picker) { background: radial-gradient(70% 60% at 80% 0%, #24206b 0%, transparent 70%), var(--k-bg) !important; }
/* Chakra Petch capitals run wider than Fredoka: category names 40px (still couch size) so "Tiles & Boards" fits */
html.tv-app body.tv .tv-shelf .tile.cat b { font-size: 38px; letter-spacing: 0; white-space: normal; line-height: 1.05; text-align: center; }
body.tv .tv-top { background: rgb(var(--panel-rgb) / .72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,.08); }
body.tv .top-game, body.tv .game-now.big { font-family: var(--k-font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
body.tv .panel { background: rgb(var(--panel-rgb) / .58); border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
body.tv .lbl { font-family: var(--k-font-ui); font-weight: 500; letter-spacing: .14em; }
body.tv .room-code, body.tv .join-url, body.tv .join-mini .code { font-family: var(--k-font-display); font-weight: 700; }
body.tv .btn { font-family: var(--k-font-ui); font-weight: 700; box-shadow: none; }
body.tv .btn.ghost { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); }
body.tv #startBtn, body.tv .btn.big { font-family: var(--k-font-display); text-transform: uppercase; letter-spacing: .04em; }
body.tv .chip { font-family: var(--k-font-ui); font-weight: 600; }
body.tv .code-in { background: rgba(255,255,255,.08); color: var(--ink); border: 1px solid rgba(255,255,255,.2); font-family: var(--k-font-display); font-weight: 700; }
body.tv .code-in::placeholder { color: rgba(255,255,255,.35); }
body.tv .toast { background: #14161c; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; font-family: var(--k-font-ui); font-weight: 600; }
body.tv .icon-btn { border-radius: 50%; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); }
/* the floating remote highlight (Fridge Poets' tv-nav.css): white frame + accent glow, like kostos.party */
body.tv #tvFocusRing { border-color: #fff !important; border-radius: 24px !important;
  box-shadow: 0 0 0 4px rgba(11,12,16,.85), 0 0 36px 6px var(--gold) !important; }

/* ---------- smooth big moments (2026-10-31) ----------
   Frosted glass (backdrop-filter) re-blurs everything behind it on every frame that anything moves, and the Google TV's
   GPU can't keep up once confetti falls over a full-screen scene picture: a YAHTZEE! stuttered or skipped. The TV gets
   solid panels instead (a little more opaque, so they read the same). Phones in a room do the same (below). */
body.tv .tv-top, body.tv .panel { backdrop-filter: none; -webkit-backdrop-filter: none; }
body.tv .tv-top { background: rgb(var(--panel-rgb) / .9); }
body.tv .panel { background: rgb(var(--panel-rgb) / .8); }
/* Phones in a room (2026-11-06): solid panels all the time too. Switching the blur off when a moment started and back on
   when it ended repainted the whole screen twice, right as the dice tumbled and the confetti fell (Stephen: "the dice
   stutters and all animation stops"). The home screen keeps its glass. */
body.phone:not(.gr-home) :is(.panel, .ph-top) { backdrop-filter: none; -webkit-backdrop-filter: none; }
body.phone:not(.gr-home) .ph-top { background: rgb(var(--panel-rgb) / .9); }
body.phone:not(.gr-home) .panel { background: rgb(var(--panel-rgb) / .8); }
/* confetti and banners on their own GPU layers, so each frame only moves pictures instead of repainting the page */
.confetti { contain: strict; }
.confetti i { will-change: transform; }
.celebrate .banner, .moment .banner { will-change: transform; }
/* the spotlight ring and the monster banner glow no longer repaint every frame (theme.css; tools/check-motion.js guards it) */
/* die shadows: a soft gradient instead of a blur filter */
.d3::after { filter: none; background: radial-gradient(closest-side, rgba(0, 0, 0, .4), rgba(0, 0, 0, 0)); }
/* TV theme picker: stays open after a pick; Done closes it */
body.tv .tv-themes .shelf-h { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
body.tv .tv-themes [data-theme-done] { width: auto; margin: 0; font-family: var(--k-font-display); text-transform: uppercase; letter-spacing: .04em; }
html.tv-app body.tv .tv-themes [data-theme-done] { font-size: 30px; min-height: 64px; padding: 8px 40px; }

/* Table theme pictures (theme.js .gr-bd, z-index -1) need the page root to have no background of its own: kostos.css paints
   html dark, which stopped body's background passing to the whole screen, so the body's solid colour covered the picture. */
html { background: none; }
