/* The TV screen (/tv/, /en/tv/) in the new look: the room, the remote's screens and the frame around a game's picture
   (canvas pages "TV ekranı" / "TV screen (English)"). Same colours and shapes as the phones, sized for a sofa.
   Written for Chromium 68 (2020 TVs): no flexbox gap, no inset, no aspect-ratio, no :is(), no dvh, no clamp()/min()/max(),
   no backdrop-filter, no env(). server/tv.test.mjs fails when one of them slips in.
   Everything is in rem: 1rem = 20px on a 1920x1080 screen and 13.3px at 1280x720, so both look the same.
   The page's root carries the class "tv" (tv/main.js), so the new look's rules all start with ".tv". */
:root {
  --bg: #1b1033;
  --bg2: #34206e;
  --ink: #fff;
  --muted: #b9add9;
  --panel: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.16);
  --yellow: #ffd23f;
  --red: #ff4d6d;
  --green: #2ec27e;
  --pink: #ff5fa2;
  --card-ink: #1b1033;
  --orange: #f59f00;
  --tile: #fbf8ff;
}

/* ---------- fonts: the site's own (public/ds/ds.css declares the same files) ---------- */
@font-face {
  font-family: "Nunito"; font-style: normal; font-display: swap; font-weight: 200 1000;
  src: url("/ds/fonts/nunito-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Nunito"; font-style: normal; font-display: swap; font-weight: 200 1000;
  src: url("/ds/fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Caveat"; font-style: normal; font-display: swap; font-weight: 400 700;
  src: url("/ds/fonts/caveat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Caveat"; font-style: normal; font-display: swap; font-weight: 400 700;
  src: url("/ds/fonts/caveat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* { box-sizing: border-box; }
html { font-size: 1.0416667vw; height: 100%; }
@media (min-aspect-ratio: 16/9) { html { font-size: 1.8518519vh; } }
/* --glow: a running game's colour (set by tv/main.js); the room has the site's violet */
body {
  height: 100%; margin: 0; overflow: hidden; color: #fff;
  background: #150b2b;
  background: radial-gradient(70% 60% at 75% 0%, rgba(var(--glow, 127, 108, 255), 0.22), rgba(21, 11, 43, 0) 70%), radial-gradient(50% 50% at 0% 100%, rgba(255, 95, 162, 0.1), rgba(21, 11, 43, 0) 70%), #150b2b;
  font-family: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.6rem; line-height: 1.3;
  -webkit-user-select: none; user-select: none; cursor: default;
}
h1, h2, h3, h4, p { margin: 0; }
[hidden] { display: none !important; }
#tv { position: absolute; top: 0; left: 0; right: 0; bottom: 0; }
/* 5 % on every side stays empty: some TVs cut the edges off (overscan) */
.frame { position: absolute; top: 0; left: 0; right: 0; bottom: 0; padding: 2.7rem 4.8rem; display: flex; flex-direction: column; }
#tv-body, #tv-screen { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; }
button { font: inherit; color: inherit; border: 0; margin: 0; padding: 0; background: none; cursor: pointer; text-align: inherit; }
/* the remote's highlight: impossible to miss from three metres */
[data-f]:focus { outline: none; box-shadow: 0 0 0 0.3rem #fff, 0 0 0 0.75rem #ff5fa2; position: relative; z-index: 2; }

/* ================= the new look: shared pieces, the bar, the room, the layers ================= */
.tv * { box-sizing: border-box; }
.tv p, .tv h2 { margin: 0; }
.tv .i { width: 1.6rem; height: 1.6rem; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tv .spin { animation: tspin 0.9s linear infinite; }
@keyframes tspin { to { transform: rotate(360deg); } }
.tv .a1 { --ac: #b69cff; --acrgb: 182, 156, 255; } .tv .a2 { --ac: #e98bf3; --acrgb: 233, 139, 243; } .tv .a3 { --ac: #d6ae84; --acrgb: 214, 174, 132; }
.tv .a4 { --ac: #b8b2cc; --acrgb: 184, 178, 204; } .tv .a5 { --ac: #a27ad8; --acrgb: 162, 122, 216; } .tv .a6 { --ac: #d98fb0; --acrgb: 217, 143, 176; }
.tv .va { position: relative; flex: none; width: 3.6rem; height: 3.6rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #b8b2cc; background: var(--ac, #b8b2cc); color: #1b1033; font-size: 1.7rem; font-weight: 1000; }
.tv .va .crown { position: absolute; left: 50%; top: -1.3rem; width: 2rem; height: 2rem; margin-left: -1rem; fill: #ffd23f; stroke: #1b1033; stroke-width: 1.6; stroke-linejoin: round; }
.tv .nt { display: inline-block; padding: 0 0.7rem 0 0.3rem; border-radius: 99rem; background: rgba(var(--acrgb), 0.24); box-shadow: inset 0 0 0 0.12rem rgba(var(--acrgb), 0.6); font-weight: 1000; white-space: nowrap; line-height: 1.45; }
.tv .nt i { display: inline-block; width: 0.8em; height: 0.8em; margin-right: 0.35rem; border-radius: 50%; background: var(--ac); vertical-align: -0.08em; }
.tv .t-deme { --c: #ff6fae; --c2: #ff3d8b; --rgb: 255, 111, 174; } .tv .t-spy { --c: #3fd0f0; --c2: #1aa7d6; --rgb: 63, 208, 240; }
.tv .t-net { --c: #3ad38a; --c2: #1fae6a; --rgb: 58, 211, 138; } .tv .t-chain { --c: #ff9a52; --c2: #ff7a2e; --rgb: 255, 154, 82; }
.tv .t-circle { --c: #ffd23f; --c2: #ffb81c; --rgb: 255, 210, 63; } .tv .t-forehead { --c: #a596ff; --c2: #7f6cff; --rgb: 165, 150, 255; }
.tv .t-letter { --c: #b8ec4a; --c2: #8cc22a; --rgb: 184, 236, 74; }
.tv .ai { flex: none; width: 3.6rem; height: 3.6rem; border-radius: 1rem; display: flex; align-items: center; justify-content: center; background: linear-gradient(150deg, var(--c), var(--c2)); box-shadow: 0 0.4rem 0.9rem rgba(0, 0, 0, 0.3), inset 0 -0.15rem 0 rgba(0, 0, 0, 0.14), inset 0 0.05rem 0 rgba(255, 255, 255, 0.4); }
.tv .ai svg { width: 70%; height: 70%; overflow: visible; }
.tv .ai .k { fill: none; stroke: #1b1033; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; } .tv .ai .t2 { stroke-width: 2.4; } .tv .ai .t3 { stroke-width: 3; }
.tv .ai .kf { fill: #1b1033; } .tv .ai .w { fill: #fff; } .tv .ai .cf { fill: var(--c); }
.tv .ai .wk { fill: #fff; stroke: #1b1033; stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; }
.tv .ai .kd { fill: none; stroke: #1b1033; stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 1 6; }
.tv .ai .wd { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1.5 6; }
.tv .ai-xs { width: 2.6rem; height: 2.6rem; border-radius: 0.75rem; }
.tv .ai-md { width: 5.6rem; height: 5.6rem; border-radius: 1.5rem; }
.tv .ai-lg { width: 7.6rem; height: 7.6rem; border-radius: 2rem; transform: rotate(-4deg); }
.tv .ai-bar { width: 3.8rem; height: 3.8rem; }
.tv .ai-lg.pk { width: 6.6rem; height: 6.6rem; border-radius: 1.8rem; }
.tv .tbar { flex: none; height: 4.6rem; display: flex; align-items: center; margin-bottom: 1.6rem; }
.tv .tbar > * { margin-right: 1rem; }
.tv .tlogo { font-size: 3rem; font-weight: 1000; color: #ffd23f; text-shadow: 0.15rem 0.15rem 0 #ff3d8b; letter-spacing: -0.05rem; white-space: nowrap; }
.tv .tgt { display: flex; flex-direction: column; line-height: 1.1; }
.tv .tgt b { font-size: 2.4rem; font-weight: 1000; white-space: nowrap; }
.tv .tgt span { font-size: 1.5rem; font-weight: 800; color: #b9add9; white-space: nowrap; }
.tv .tcode { display: flex; align-items: center; padding: 0.4rem 0.9rem 0.4rem 1.2rem; border-radius: 99rem; background: rgba(255, 255, 255, 0.07); }
.tv .tcode small { margin-right: 0.8rem; font-size: 1.4rem; font-weight: 900; color: #b9add9; text-transform: uppercase; letter-spacing: 0.1rem; }
.tv .tlock { display: flex; align-items: center; padding: 0.5rem 1.2rem; border-radius: 99rem; background: rgba(255, 92, 92, 0.15); color: #ff9a9a; font-size: 1.5rem; font-weight: 900; }
.tv .tlock .i { margin-right: 0.5rem; }
.tv .tfill { flex: 1; margin: 0; }
.tv .tbar > .tvoice { margin-right: 0; }
.tv .tvoice { display: flex; align-items: center; padding: 0.4rem 0.6rem 0.4rem 1.1rem; border-radius: 99rem; background: rgba(255, 255, 255, 0.07); border: 0.12rem solid rgba(255, 255, 255, 0.14); }
.tv .tvoice > .i { width: 2rem; height: 2rem; margin-right: 0.8rem; color: #b9add9; }
.tv .tvavs { display: flex; }
.tv .tvavs .va { width: 3rem; height: 3rem; font-size: 1.4rem; margin-left: -0.5rem; box-shadow: 0 0 0 0.2rem #21143f; }
.tv .tvavs .va:first-child { margin-left: 0; }
.tv .tvavs .va.talk { box-shadow: 0 0 0 0.2rem #21143f, 0 0 0 0.42rem #2ec27e; animation: ttalk 1.2s ease-in-out infinite; }
@keyframes ttalk { 50% { transform: scale(1.1); } }
.tv .tlisten { display: flex; align-items: center; margin-left: 0.4rem; padding: 0.3rem 0.4rem; border-radius: 99rem; background: rgba(63, 208, 240, 0.16); color: #9be8f8; font-size: 1.4rem; font-weight: 900; white-space: nowrap; }
.tv .tlisten .i { margin: 0; } /* the sign alone: with words the bar ran off the screen (the room says it below) */
.tv .ctiles { display: inline-flex; vertical-align: middle; }
.tv .ctiles i { display: flex; align-items: center; justify-content: center; width: 2.6rem; height: 3rem; margin-right: 0.4rem; border-radius: 0.6rem; background: #fff; color: #1b1033; font-style: normal; font-size: 1.9rem; font-weight: 1000; box-shadow: 0 0.2rem 0 rgba(27, 16, 51, 0.3); }
.tv .ctiles i:last-child { margin-right: 0; }
.tv .ctiles i:nth-child(odd) { transform: rotate(-3deg); } .tv .ctiles i:nth-child(even) { transform: rotate(2deg); }
.tv .ctiles.sm i { width: 2.2rem; height: 2.6rem; font-size: 1.6rem; border-radius: 0.5rem; }
.tv .ctiles.big i { width: 6.4rem; height: 7.6rem; margin-right: 0.9rem; border-radius: 1.2rem; font-size: 5rem; box-shadow: 0 0.45rem 0 rgba(27, 16, 51, 0.35), 0 1rem 2rem rgba(0, 0, 0, 0.3); }
.tv .ctiles.slots i.cur { background: transparent; box-shadow: inset 0 0 0 0.3rem #ffd23f; animation: tblink 1s step-end infinite; }
.tv .ctiles.slots i.empty { background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 0.15rem rgba(255, 255, 255, 0.2); }
@keyframes tblink { 50% { opacity: 0.35; } }
.tv .ctiles.inl { margin-right: 0.6rem; }
.tv .tbtns { flex: none; display: flex; justify-content: center; align-items: center; margin-top: 1rem; }
.tv .tbtns.center { margin-top: 2rem; }
.tv .tbtn { display: flex; align-items: center; height: 4.4rem; margin: 0 0.6rem; padding: 0 2rem; border-radius: 1.2rem; background: rgba(255, 255, 255, 0.08); border: 0.15rem solid rgba(255, 255, 255, 0.14); font-size: 1.7rem; font-weight: 900; white-space: nowrap; }
.tv .tbtn .i { width: 2rem; height: 2rem; margin-right: 0.7rem; }
.tv .tbtn.primary { background: #ffd23f; border-color: #ffd23f; color: #1b1033; box-shadow: 0 0.3rem 0 #c99a00; }
.tv .tbtn:disabled { background: rgba(255, 255, 255, 0.05); border-color: transparent; color: rgba(255, 255, 255, 0.4); }
.tv .tbtn.warn { color: #ff9a9a; border-color: rgba(255, 92, 92, 0.45); }
.tv .tbtn.danger { color: #ff9a9a; }
.tv .tbtn:focus { box-shadow: 0 0 0 0.3rem #fff, 0 0 0 0.75rem #ff5fa2; position: relative; z-index: 1; }
.tv .tbtn.primary:focus { box-shadow: 0 0.3rem 0 #c99a00, 0 0 0 0.3rem #fff, 0 0 0 0.75rem #ff5fa2; }
.tv .tbtn.flag { padding: 0 1.2rem; }
.tv .tbtn.sm { height: 3.8rem; margin: 0 0 0 0.9rem; padding: 0 1.4rem; font-size: 1.5rem; }
.tv .tbtn.sm .i { width: 1.8rem; height: 1.8rem; margin-right: 0.5rem; }
.tv .tbtn .flag { width: 2.6rem; height: 1.75rem; margin-right: 0.6rem; border-radius: 0.3rem; }
.tv .tbtn.wide { justify-content: flex-start; width: 100%; margin: 0 0 1rem; height: 5rem; font-size: 1.9rem; }
.tv .tlobby { flex: 1; min-height: 0; display: flex; }
.tv .tcard { border-radius: 2.4rem; background: rgba(255, 255, 255, 0.05); border: 0.1rem solid rgba(255, 255, 255, 0.1); }
.tv .tcodebox { flex: 0 0 45rem; display: flex; align-items: center; padding: 2.2rem; margin-right: 2.2rem; }
.tv .tcodebox .ctiles.big i { width: 5.6rem; height: 6.6rem; margin-right: 0.7rem; font-size: 4.4rem; }
.tv .tqr { position: relative; flex: none; width: 14rem; height: 14rem; padding: 1rem; margin-right: 2rem; border-radius: 1.6rem; background: #fff; }
.tv .tqr svg { display: block; width: 100%; height: 100%; }
.tv .tcodebox.locked .tqr svg { opacity: 0.35; }
.tv .tqlock { position: absolute; left: 0; top: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; }
.tv .tqlock .i { width: 5rem; height: 5rem; padding: 1rem; border-radius: 1.4rem; background: #ff5c5c; color: #fff; stroke-width: 2.6; box-sizing: content-box; }
.tv .tcodebox.locked .ctiles i { opacity: 0.45; }
.tv .tl { margin-bottom: 0.9rem; font-size: 1.5rem; font-weight: 1000; letter-spacing: 0.15rem; text-transform: uppercase; color: #b9add9; }
.tv .thow { margin-top: 1.6rem; font-size: 1.9rem; font-weight: 800; line-height: 1.3; }
.tv .thow b { color: #ffd23f; }
.tv .tsub { margin-top: 0.5rem; font-size: 1.5rem; font-weight: 700; color: #b9add9; }
.tv .tside { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tv .tside .tl { margin-top: 0.4rem; }
.tv .tnogame { display: flex; flex-direction: column; align-items: flex-start; padding: 1.6rem 2rem; margin-bottom: 1.8rem; border-radius: 2rem; border: 0.2rem dashed rgba(255, 255, 255, 0.22); }
.tv .tnogame b { margin-top: 1rem; font-size: 2.2rem; font-weight: 1000; }
.tv .tnogame > span:last-child { margin-top: 0.3rem; font-size: 1.6rem; font-weight: 700; color: #b9add9; }
.tv .tminis { display: flex; }
.tv .tminis .ai { margin-right: 0.6rem; box-shadow: none; }
.tv .tpicked { display: flex; align-items: center; padding: 1.3rem 1.8rem; margin-bottom: 1.6rem; border-radius: 2rem; border: 0.2rem solid rgba(var(--rgb), 0.6); background: linear-gradient(120deg, rgba(var(--rgb), 0.2), rgba(var(--rgb), 0.04)); }
.tv .tpicked .ai { margin-right: 2rem; }
.tv .tpt { display: flex; flex-direction: column; min-width: 0; }
.tv .tpt b { font-size: 2.8rem; font-weight: 1000; line-height: 1.1; }
.tv .tpt span { margin-top: 0.2rem; font-size: 1.6rem; font-weight: 700; color: #ddd5f3; }
.tv .tpt small { margin-top: 0.5rem; font-size: 1.5rem; font-weight: 900; color: var(--c); }
.tv .tplayers { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 0.8rem; }
.tv .tplayers.one { grid-template-columns: 1fr; grid-gap: 0.6rem; }
.tv .tplayers.one .tpl { height: 4.2rem; background: rgba(0, 0, 0, 0.18); }
.tv .tplayers.one .tpl .va { width: 3.2rem; height: 3.2rem; font-size: 1.5rem; }
.tv .tplayers.one .tpn small { display: none; }
.tv .tpl { display: flex; align-items: center; height: 5rem; min-width: 0; padding: 0 1rem 0 0.7rem; border-radius: 1.6rem; background: rgba(255, 255, 255, 0.06); }
.tv .tpl .va { width: 3.8rem; height: 3.8rem; margin-right: 0.9rem; font-size: 1.7rem; }
.tv .tpn { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.1; }
.tv .tpn b { font-size: 1.9rem; font-weight: 1000; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv .tpn small { font-size: 1.4rem; font-weight: 800; color: #b9add9; }
.tv .tpl.empty { background: transparent; border: 0.2rem dashed rgba(255, 255, 255, 0.18); }
.tv .tpl.empty:first-child { grid-column: 1 / span 2; }
.tv .tpl.empty > i { flex: none; width: 3.8rem; height: 3.8rem; margin-right: 0.9rem; border-radius: 50%; background: rgba(255, 255, 255, 0.07); }
.tv .twait { display: flex; align-items: center; font-size: 1.8rem; font-weight: 800; color: #b9add9; }
.tv .tpl.talk { box-shadow: inset 0 0 0 0.2rem #2ec27e; }
.tv .tpl .bars { display: flex; align-items: center; height: 2.4rem; }
.tv .tpl .bars i { width: 0.45rem; height: 0.8rem; margin-left: 0.25rem; border-radius: 0.3rem; background: rgba(255, 255, 255, 0.3); }
.tv .tpl .bars.on i { background: #2ec27e; animation: tbar 0.7s ease-in-out infinite alternate; }
.tv .tpl .bars.on i:nth-child(2) { animation-delay: 0.15s; } .tv .tpl .bars.on i:nth-child(3) { animation-delay: 0.3s; } .tv .tpl .bars.on i:nth-child(4) { animation-delay: 0.45s; }
.tv .tmute { color: #ff8a8a; } .tv .tmute .i { width: 2rem; height: 2rem; }
.tv .dots { display: inline-flex; margin-left: 0.6rem; }
.tv .dots i { width: 0.5rem; height: 0.5rem; margin-right: 0.3rem; border-radius: 50%; background: #fff; animation: tdot 1.2s ease-in-out infinite; }
.tv .dots i:nth-child(2) { animation-delay: 0.2s; } .tv .dots i:nth-child(3) { animation-delay: 0.4s; }
@keyframes tdot { 0%, 60%, 100% { opacity: 0.25; } 30% { opacity: 1; } }
.tv .tteams { display: flex; }
.tv .tteam { flex: 1; min-width: 0; padding: 1rem 1rem 1rem; margin-right: 1.4rem; border-radius: 2rem; background: rgba(var(--team), 0.1); border: 0.2rem solid rgba(var(--team), 0.55); }
.tv .tteam:last-child { margin-right: 0; }
.tv .tteam.tb { --team: 74, 168, 255; } .tv .tteam.tr { --team: 255, 92, 92; }
.tv .tteam > b { display: block; margin: 0 0 0.7rem 0.4rem; white-space: nowrap; font-size: 1.9rem; font-weight: 1000; color: rgb(var(--team)); }
.tv .tteam > b small { font-size: 1.5rem; opacity: 0.8; }
.tv .tstatus { flex: none; display: flex; align-items: center; justify-content: center; margin-top: 1rem; font-size: 1.7rem; font-weight: 800; color: #b9add9; }
.tv .tstatus .i { width: 2rem; height: 2rem; margin-right: 0.6rem; }
.tv .tstatus.ok { color: #6ee7a8; } .tv .tstatus.lock { color: #ff9a9a; }
.tv .tlayer { position: absolute; left: 0; top: 0; right: 0; bottom: 0; z-index: 3; display: flex; align-items: center; justify-content: center; padding: 2.7rem 4.8rem; background: rgba(12, 6, 26, 0.95); }
.tv .tlayerin { display: flex; flex-direction: column; align-items: center; }
.tv .th2 { display: flex; align-items: center; justify-content: center; font-size: 3.8rem; font-weight: 1000; line-height: 1.1; text-align: center; }
.tv .tsub2 { display: flex; align-items: center; justify-content: center; margin-top: 0.8rem; max-width: 80rem; font-size: 1.8rem; font-weight: 700; color: #b9add9; text-align: center; }
.tv .tsub2 .i { width: 2rem; height: 2rem; margin-right: 0.6rem; }
.tv .tgcards { width: 84rem; display: flex; flex-wrap: wrap; margin-top: 2rem; }
.tv .tgcard { position: relative; display: flex; align-items: center; width: 26.4rem; height: 11.4rem; margin: 0.8rem; padding: 1.2rem 1.4rem; border-radius: 1.8rem; background: #231741; border: 0.15rem solid rgba(var(--rgb), 0.35); }
.tv .tgcard .ai { margin-right: 1.2rem; }
.tv .tgt2 { display: flex; flex-direction: column; min-width: 0; }
.tv .tgt2 b { font-size: 2.2rem; font-weight: 1000; line-height: 1.1; }
.tv .tgt2 b.long { font-size: 1.8rem; white-space: nowrap; }
.tv .tgcards.roomy { margin-top: 1.4rem; }
.tv .tgcards.roomy .tgcard { height: 12.2rem; margin: 0.5rem 0.8rem; } /* English: a tagline may take three lines */
.tv .ctiles.inl.mid { margin: 0 0.9rem; }
/* English: a picked game's line may wrap, so the card and the team rows are a little tighter */
html[lang="en"] .tpicked { padding: 1rem 1.8rem; margin-bottom: 1rem; }
html[lang="en"] .tteam { padding: 0.7rem 1rem 0.5rem; }
html[lang="en"] .tteam .tpl { height: 4.3rem; }
.tv .tgt2 span { margin-top: 0.2rem; font-size: 1.4rem; font-weight: 700; line-height: 1.25; color: #ddd5f3; }
.tv .tgt2 small { margin-top: 0.4rem; font-size: 1.4rem; font-weight: 900; color: var(--c); }
.tv .tgcard.on { background: rgba(var(--rgb), 0.16); border-color: var(--c); }
.tv .tgcard:focus { box-shadow: 0 0 0 0.3rem #fff, 0 0 0 0.75rem #ff5fa2; z-index: 1; }
.tv .tgcard.faint { opacity: 0.45; }
.tv .tgcard.faint small { color: #ffd23f; }
.tv .tcheck { position: absolute; right: 1rem; top: 1rem; width: 2.6rem; height: 2.6rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--c); color: #1b1033; }
.tv .tcheck .i { width: 1.6rem; height: 1.6rem; stroke-width: 3.4; }
.tv .tattach { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.tv .tattach .ctiles { margin-top: 1.8rem; }
.tv .tattach .ctiles.big i { width: 5.6rem; height: 6.6rem; font-size: 4.4rem; }
.tv .tkeys { width: 60rem; display: flex; flex-wrap: wrap; justify-content: center; margin-top: 1.8rem; }
.tv .tkey { display: flex; align-items: center; justify-content: center; width: 6.4rem; height: 4.8rem; margin: 0.4rem; border-radius: 1.2rem; background: rgba(255, 255, 255, 0.08); font-size: 2.6rem; font-weight: 1000; }
.tv .tkey:focus { background: #fff; color: #1b1033; box-shadow: 0 0 0 0.3rem #fff, 0 0 0 0.75rem #ff5fa2; }
.tv .twaitart { display: flex; align-items: center; margin-bottom: 2.4rem; }
.tv .tbig { position: relative; display: flex; align-items: center; justify-content: center; width: 10rem; height: 10rem; border-radius: 3rem; background: linear-gradient(150deg, #3fd0f0, #1aa7d6); color: #06222b; }
.tv .tbig .i { width: 6rem; height: 6rem; stroke-width: 2; }
.tv .tbig .ping { position: absolute; right: -0.6rem; top: -0.6rem; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: #ffd23f; border: 0.3rem solid #150b2b; animation: tpulse 1.4s ease-in-out infinite; }
@keyframes tpulse { 50% { transform: scale(1.25); } }
.tv .tarrow { display: flex; margin: 0 3rem; }
.tv .tarrow i { width: 1.2rem; height: 1.2rem; margin: 0 0.7rem; border-radius: 50%; background: #ffd23f; animation: tdot 1.2s ease-in-out infinite; }
.tv .tarrow i:nth-child(2) { animation-delay: 0.2s; } .tv .tarrow i:nth-child(3) { animation-delay: 0.4s; }
.tv .tphone { width: 12.6rem; height: 18rem; padding: 0.8rem; border-radius: 2.4rem; background: #2b1b52; box-shadow: inset 0 0 0 0.25rem rgba(255, 255, 255, 0.2), 0 1.4rem 3rem rgba(0, 0, 0, 0.4); }
.tv .tpscreen { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; padding: 0.7rem; border-radius: 1.8rem; background: #150b2b; }
.tv .tpscreen b { margin-bottom: 0.8rem; font-size: 1.4rem; font-weight: 1000; line-height: 1.2; }
.tv .tpb { display: flex; align-items: center; justify-content: center; height: 2.8rem; margin-top: 0.5rem; border-radius: 0.8rem; font-size: 1.4rem; font-weight: 1000; }
.tv .tpb.no { background: rgba(255, 255, 255, 0.1); }
.tv .tpb.yes { background: #ffd23f; color: #1b1033; animation: tpulse 1.4s ease-in-out infinite; }
.tv .ttime { display: flex; align-items: center; margin-top: 1.6rem; font-size: 1.7rem; font-weight: 800; color: #9be8f8; }
.tv .ttime .i { width: 1.8rem; height: 1.8rem; margin-right: 0.6rem; }
.tv .tring { width: 3rem; height: 3rem; margin-right: 0.8rem; }
.tv .tring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.tv .tring .trk { fill: none; stroke: rgba(255, 255, 255, 0.15); stroke-width: 4; }
.tv .tring .run { fill: none; stroke: #3fd0f0; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 94.2; stroke-dashoffset: 30; }
.tv .tmenu { width: 48rem; padding: 2.4rem; border-radius: 2.6rem; background: #21143f; border: 0.1rem solid rgba(255, 255, 255, 0.16); box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.55); }
.tv .tmhead { display: flex; align-items: center; margin-bottom: 2rem; }
.tv .tmhead .ai { margin-right: 1.4rem; }
.tv .tmhead b { display: block; font-size: 2.6rem; font-weight: 1000; } .tv .tmhead small { font-size: 1.5rem; font-weight: 800; color: #b9add9; }
.tv .tmnote { display: flex; align-items: center; justify-content: center; margin-top: 0.6rem; font-size: 1.5rem; font-weight: 800; color: #b9add9; }
.tv .tmnote .i { margin-right: 0.5rem; }
@keyframes tdrift { from { transform: translate(-1rem, -0.6rem); } to { transform: translate(1rem, 0.6rem); } }
@keyframes tbar { to { transform: scaleY(2.6); } }
.tv .tnet { position: absolute; left: 50%; top: 9rem; z-index: 3; width: 56rem; margin-left: -28rem; display: flex; align-items: center; justify-content: center; padding: 1.2rem 2rem; border-radius: 1.6rem; background: #3d3130; border: 0.15rem solid rgba(255, 210, 63, 0.6); box-shadow: 0 1.4rem 3.2rem rgba(0, 0, 0, 0.55); color: #ffe9a3; font-size: 2rem; font-weight: 900; }
.tv .tnet .i { width: 2.4rem; height: 2.4rem; margin-right: 0.8rem; color: #ffd23f; }
.tv .tcenter { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; }
.tv .tcenter.up { justify-content: flex-start; padding-top: 1rem; }
.tv .tlogo.xl { font-size: 9rem; text-shadow: 0.4rem 0.4rem 0 #ff3d8b; letter-spacing: -0.2rem; animation: tpop2 0.6s cubic-bezier(0.2, 1.6, 0.4, 1) both; }
@keyframes tpop2 { from { transform: scale(0.6); opacity: 0; } }
.tv .tconn { display: flex; align-items: center; margin-top: 2.4rem; font-size: 2.2rem; font-weight: 800; color: #b9add9; }
.tv .tconn .i { width: 2.6rem; height: 2.6rem; margin-right: 1rem; color: #ffd23f; }
.tv .tphones { display: flex; align-items: flex-end; margin-bottom: 2.4rem; }
.tv .tphone.s { width: 8rem; height: 13rem; padding: 0.6rem; margin: 0 1rem; border-radius: 1.8rem; animation: tbob 1.6s ease-in-out infinite alternate; }
.tv .tphone.s.mid { height: 15rem; animation-delay: 0.4s; }
.tv .tphone.s:last-child { animation-delay: 0.8s; }
@keyframes tbob { to { transform: translateY(-0.8rem); } }
.tv .tphone.s .tpscreen { justify-content: center; padding: 0.8rem; border-radius: 1.3rem; }
.tv .tphone.s .tpscreen i { height: 1.2rem; margin: 0.35rem 0; border-radius: 0.4rem; background: rgba(255, 255, 255, 0.16); }
.tv .tphone.s .tpscreen i.y { background: var(--ac); }
.tv .tbig.off { margin-bottom: 2.4rem; background: rgba(255, 255, 255, 0.1); color: #b9add9; }
.tv .terr { display: flex; align-items: center; margin-top: 1.2rem; padding: 0.7rem 1.8rem; border-radius: 99rem; background: rgba(255, 92, 92, 0.18); border: 0.15rem solid rgba(255, 92, 92, 0.55); color: #ffc2c2; font-size: 1.9rem; font-weight: 900; }
.tv .terr .i { width: 2.2rem; height: 2.2rem; margin-right: 0.7rem; color: #ff8a8a; }
.tv .ctiles.slots.err i { box-shadow: 0 0 0 0.3rem #ff5c5c; }
.tv .ctiles.slots.err { animation: tnope 0.4s ease-in-out both; }
@keyframes tnope { 25% { transform: translateX(-0.6rem); } 75% { transform: translateX(0.6rem); } }
.tv .tnet.info { background: #1d2b47; border-color: rgba(63, 208, 240, 0.5); color: #c9f3fb; }
.tv .tnet.info .i { color: #3fd0f0; }
.tv .tmsgs { flex: 1; display: flex; }
.tv .tmcol { flex: 1; margin-right: 2.4rem; } .tv .tmcol:last-child { margin-right: 0; }
.tv .tmsg { display: flex; align-items: center; margin-bottom: 0.9rem; }
.tv .tmsgl { display: flex; align-items: center; height: 4rem; padding: 0 1.4rem; border-radius: 1.2rem; font-size: 1.5rem; font-weight: 900; white-space: nowrap; }
.tv .tmsgl .i { width: 2rem; height: 2rem; margin-right: 0.6rem; }
.tv .tmsgl.err { background: rgba(255, 92, 92, 0.18); border: 0.15rem solid rgba(255, 92, 92, 0.55); color: #ffc2c2; }
.tv .tmsgl.info { background: rgba(63, 208, 240, 0.14); border: 0.15rem solid rgba(63, 208, 240, 0.5); color: #c9f3fb; }
.tv .tmsgl.warn { background: rgba(255, 210, 63, 0.16); border: 0.15rem solid rgba(255, 210, 63, 0.5); color: #ffe9a3; }
.tv .tmsg small { margin-left: 1rem; font-size: 1.4rem; font-weight: 800; color: #b9add9; white-space: nowrap; }
.tv .tnet.flow { position: static; flex: none; align-self: center; margin: -0.6rem 0 1rem; }
.tv .tlogo { display: flex; align-items: center; text-shadow: none; letter-spacing: 0; }
.tv .tlogo .tlmk { display: block; flex: none; width: 4.37rem; height: 4.8rem; margin-right: 1rem; }
.tv .tlogo .tlmk svg { display: block; width: 100%; height: 100%; overflow: visible; }
.tv .tlogo .twm { letter-spacing: -0.12rem; text-shadow: 0 0.22rem 0 #ff5fa2, 0 0.45rem 0 rgba(0, 0, 0, 0.25); }
.tv .tlogo.xl { text-shadow: none; letter-spacing: 0; }
.tv .tlogo.xl .tlmk { width: 17.3rem; height: 19rem; margin-right: 2.6rem; }
.tv .tlogo.xl .twm { line-height: 0.92; letter-spacing: -0.36rem; text-shadow: 0 0.68rem 0 #ff5fa2, 0 1.35rem 0 rgba(0, 0, 0, 0.25); transform: rotate(-3deg); }
.tv .tlogo.xl .twm span { display: block; }

/* ---------- what the design shows as a still and the page does live ---------- */
.tv .tbtn { text-align: center; }
.tv .tbtn.wide { text-align: left; }
.tv .tgcard { text-align: left; white-space: normal; }
/* people the design had no board for: someone whose phone lost the connection, a dense room, nobody in a team yet */
.tv .tpl.off { opacity: 0.5; }
.tv .tpl.off .va { background: rgba(255, 255, 255, 0.25); }
.tv .tplayers.dense { grid-template-columns: 1fr 1fr 1fr; grid-gap: 0.5rem; }
.tv .tside .tplayers.dense > .tpl { height: 3.5rem; border-radius: 1.2rem; }
.tv .tplayers.dense .tpl .va { width: 2.8rem; height: 2.8rem; font-size: 1.4rem; }
.tv .tplayers.dense .tpn b { font-size: 1.6rem; }
.tv .tplayers.dense .tpn small { display: none; }
.tv .tplayers.dense .tpl.empty:first-child { grid-column: 1 / span 3; }
.tv .tloose { margin-top: 0.7rem; }
.tv .tloose .tl { margin-bottom: 0.5rem; }
/* what a TV too old for the script keeps showing: the logo and where to go */
.tv .tconn.boot { display: block; max-width: 62rem; text-align: center; line-height: 1.4; }
.tv .tconn.boot b { color: #ffd23f; }
/* three rows of people fit under the game; a fuller room gets lower rows in three or four columns */
.tv .tside .tplayers { grid-gap: 0.6rem; }
.tv .tside .tplayers > .tpl { height: 4.7rem; }
.tv .tnogame { padding: 1.2rem 2rem; margin-bottom: 1.2rem; }
.tv .tnogame b { margin-top: 0.7rem; }
.tv .tplayers.dense.four { grid-template-columns: 1fr 1fr 1fr 1fr; grid-gap: 0.4rem; }
.tv .tside .tplayers.dense.four > .tpl { height: 3.2rem; padding: 0 0.5rem 0 0.4rem; }
.tv .tplayers.dense.four .tpl .va { width: 2.4rem; height: 2.4rem; margin-right: 0.5rem; }
.tv .tplayers.dense .va .crown { top: -0.9rem; width: 1.5rem; height: 1.5rem; margin-left: -0.75rem; }
.tv .tplayers.dense .bars i { margin-left: 0.15rem; }
/* a team of more than three, or people still without a team: two short columns in each team's box */
.tv .tteam.many { padding: 0.7rem 0.8rem; }
.tv .tteam.many .tplayers.one { grid-template-columns: 1fr 1fr; grid-gap: 0.3rem; }
.tv .tside .tteam.many .tpl { height: 3rem; padding: 0 0.4rem 0 0.3rem; border-radius: 1rem; }
.tv .tteam.many > b { margin-bottom: 0.4rem; font-size: 1.7rem; }
.tv .tteam.many .tpl .va { width: 2.2rem; height: 2.2rem; margin-right: 0.5rem; font-size: 1.4rem; }
.tv .tteam.many .tpn b { font-size: 1.5rem; }
.tv .tteam.many .va .crown { top: -0.8rem; width: 1.4rem; height: 1.4rem; margin-left: -0.7rem; }
.tv .tteam.many .bars, .tv .tteam.many .tmute { display: none; }
.tv .tside .tloose .tplayers > .tpl { height: 2.9rem; }
.tv .tloose .tplayers { grid-gap: 0.3rem; }
/* a lobby nobody touched for a while: dimmer and slowly moving, so no bright picture stands still for hours */
body.idle .frame { opacity: 0.45; animation: tdrift 30s ease-in-out infinite alternate; }

#toast { position: fixed; left: 50%; bottom: 8.6rem; z-index: 9; max-width: 70rem; transform: translate(-50%, 2rem); padding: 1.4rem 2.4rem; border-radius: 2rem; background: #2b1b52; border: 0.15rem solid rgba(255, 210, 63, 0.5); box-shadow: 0 1.6rem 3.6rem rgba(0, 0, 0, 0.5); color: #fff; font-size: 2.2rem; font-weight: 1000; text-align: center; opacity: 0; pointer-events: none; transition: opacity 0.25s ease, transform 0.25s ease; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ================= a game's picture in the new look: the phone's own parts in columns =================
   A game whose module says `screenParts` draws its TV picture with tvCols / tvCol (public/ui.js): columns as wide as
   a phone, holding the same parts as that game's phone screens. Their styles are the phone's, rewritten for the TV:
   public/tv/tv-games.css (scripts/tv-css.mjs). tv/main.js gives every column its zoom (fitCols). */
.tv .pcols { flex: 1 1 0; min-height: 0; display: flex; align-items: center; justify-content: center; }
.tv .pi { position: relative; flex: none; width: 41.17rem; margin: 0 1.955rem; font-size: 1.96rem; font-weight: 400; line-height: 1.5; color: #fff; }
.tv .pi.w15 { width: 50.6rem; }
.tv .pi.w2 { width: 59.8rem; }
.tv .pi.w3 { width: 86.36rem; margin: 0; }
.tv .pi.full { position: absolute; left: 0; top: 0; right: 0; bottom: 0; width: auto; margin: 0; pointer-events: none; }
/* (light on purpose: a column's own spacing rules, `.tv .game-x > * + *`, must win over this reset) */
.pi h1, .pi h2, .pi h3, .pi p, .pi ul, .pi ol { margin: 0; }
.tv .pi button { text-align: center; }
.tv .pi [data-f]:focus { box-shadow: 0 0 0 0.3rem #fff, 0 0 0 0.75rem #ff5fa2; }
.tv .pi .primary[data-f]:focus { box-shadow: 0 0.69rem 0 #c99a00, 0 0 0 0.3rem #fff, 0 0 0 0.75rem #ff5fa2; }
/* what stays on a phone (a card, a word): a closed panel with the game's icon in its place */
.tv .tvhid { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.6rem 1.4rem; border-radius: 2.2rem; text-align: center; background: repeating-linear-gradient(-45deg, rgba(var(--rgb), 0.16) 0, rgba(var(--rgb), 0.16) 1.4rem, rgba(var(--rgb), 0.08) 1.4rem, rgba(var(--rgb), 0.08) 2.8rem); border: 0.2rem solid rgba(var(--rgb), 0.5); }
.tv .tvhid .ai { width: 5rem; height: 5rem; border-radius: 1.4rem; }
.tv .tvhid .ai svg { width: 3.4rem; height: 3.4rem; }
.tv .tvhid b { margin-top: 0.8rem; font-size: 2rem; font-weight: 1000; line-height: 1.3; }
.tv .tvhid > span:last-child { font-size: 1.5rem; font-weight: 700; line-height: 1.3; color: #ddd5f3; }

/* a full-screen moment (ctx.flash): one big moment over everything */
#tv-flash { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 8; flex-direction: column; align-items: center; justify-content: center; text-align: center; pointer-events: none; }
#tv-flash.show { display: flex; animation: flash 1.5s ease-out both; }
/* a flash made of the phone's own parts (ctx.flash(tvFull(...))) brings its colours and letters with it */
#tv-flash.c:not(.parts) { background: var(--green); }
#tv-flash.t:not(.parts) { background: var(--red); }
#tv-flash.p:not(.parts) { background: var(--orange); }
#tv-flash:not(.parts) b { font-size: 12rem; font-weight: 900; line-height: 1; text-transform: uppercase; text-shadow: 0 0.6rem 0 rgba(0, 0, 0, 0.25); }
#tv-flash:not(.parts) span { font-size: 5rem; font-weight: 900; margin-top: 1.5rem; text-transform: uppercase; }
#tv-flash:not(.parts) small { font-size: 2.2rem; font-weight: 800; margin-top: 1rem; opacity: 0.9; }
@keyframes flash { 0% { opacity: 0; transform: scale(0.9); } 10% { opacity: 1; transform: scale(1); } 72% { opacity: 1; } 100% { opacity: 0; } }
