/* Chutzpa: tabloid / pirate-radio look. Charcoal + grain, black prompt cards, white answer cards,
   censor bars that tear off, red stamps, yellow "do not broadcast" tape. */
:root {
  --bg: #111014;
  --bg2: #1b1a20;
  --ink: #f4f1ea;
  --mute: #9b97a3;
  --paper: #f7f3ea;
  --paper-ink: #121115;
  --red: #ff2b3a;
  --red-d: #c4101f;
  --yellow: #ffd60a;
  --green: #2ee59d;
  --line: #2c2a33;
  --r: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,.55), 0 2px 0 rgba(0,0,0,.4);
  --display: 'Suez', 'Rubik', sans-serif;
  --body: 'Rubik', system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  background: radial-gradient(1200px 700px at 80% -10%, #2a1418 0%, transparent 60%), radial-gradient(900px 600px at -10% 110%, #1c1a10 0%, transparent 55%), var(--bg);
  color: var(--ink); font-family: var(--body); font-size: 16px; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; user-select: none;
}
body[dir=ltr] { direction: ltr; }
.grain { position: fixed; inset: -50%; pointer-events: none; z-index: 0; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-3%)} 60%{transform:translate(-2%,-1%)} 80%{transform:translate(3%,3%)} 100%{transform:translate(0,0)} }
main { position: relative; z-index: 1; min-height: 100%; padding: max(12px, env(safe-area-inset-top)) 16px calc(90px + env(safe-area-inset-bottom)); max-width: 640px; margin: 0 auto; }
body.tv main { max-width: none; padding: 28px 40px; height: 100vh; overflow: hidden; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
input, textarea { font: inherit; }

/* ------------------------------------------------ the logo + tape */
.logo { font-family: var(--display); color: var(--red); font-size: 64px; line-height: .9; letter-spacing: -1px; display: inline-block;
  transform: rotate(-4deg); text-shadow: 3px 3px 0 #000, 0 0 30px rgba(255,43,58,.35); position: relative; }
.logo::after { content: ''; position: absolute; inset: -6px -12px; border: 4px solid var(--red); border-radius: 10px; opacity: .85;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.5' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.6'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.sublogo { color: var(--mute); font-size: 13px; letter-spacing: .5px; margin-top: 10px; }
.tape { position: relative; height: 34px; margin: 18px -40px; transform: rotate(-2.2deg); overflow: hidden;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 22px, #111 22px 44px); box-shadow: 0 6px 20px rgba(0,0,0,.5); }
.tape span { position: absolute; inset: 5px 0; background: var(--yellow); color: #111; font-weight: 800; font-size: 14px; letter-spacing: 1px;
  display: flex; align-items: center; white-space: nowrap; animation: tape 18s linear infinite; width: max-content; padding: 0 10px; }
@keyframes tape { from { transform: translateX(0); } to { transform: translateX(50%); } }
[dir=ltr] .tape span { animation-name: tape-l; }
@keyframes tape-l { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ------------------------------------------------ generic bits */
.row { display: flex; gap: 10px; align-items: center; }
.col { display: flex; flex-direction: column; gap: 10px; }
.grow { flex: 1; }
.h { font-family: var(--display); font-size: 26px; margin: 18px 0 10px; }
.small { font-size: 13px; color: var(--mute); }
.btn { background: var(--red); color: #fff; font-weight: 800; font-size: 18px; padding: 15px 22px; border-radius: 999px; box-shadow: 0 5px 0 var(--red-d), 0 10px 24px rgba(255,43,58,.25);
  transition: transform .08s, box-shadow .08s; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--red-d); }
.btn.big { width: 100%; font-size: 21px; padding: 18px; }
.btn.ghost { background: transparent; color: var(--ink); border: 2px solid var(--line); box-shadow: none; font-weight: 600; font-size: 15px; padding: 10px 16px; }
.btn.yellow { background: var(--yellow); color: #111; box-shadow: 0 5px 0 #b39100; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.field { width: 100%; background: var(--bg2); border: 2px solid var(--line); color: var(--ink); border-radius: 12px; padding: 14px 16px; font-size: 18px; outline: none; }
.field:focus { border-color: var(--red); }
textarea.field { resize: none; min-height: 90px; line-height: 1.35; font-weight: 600; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--bg2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 14px; }
.seg { display: flex; background: var(--bg2); border-radius: 12px; padding: 4px; gap: 4px; border: 1px solid var(--line); }
.seg button { flex: 1; padding: 10px 6px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--mute); }
.seg button.on { background: var(--ink); color: #111; }
.set { display: grid; grid-template-columns: 110px 1fr; gap: 10px; align-items: center; margin: 10px 0; }
.set label { font-size: 14px; color: var(--mute); }
.toggle { width: 52px; height: 30px; border-radius: 99px; background: var(--line); position: relative; transition: background .2s; flex: none; }
.toggle::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: inset-inline-start .2s; }
.toggle.on { background: var(--green); }
.toggle.on::after { inset-inline-start: 25px; }
.panel { background: rgba(27,26,32,.85); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; backdrop-filter: blur(6px); }

/* ------------------------------------------------ players */
.players { display: flex; flex-wrap: wrap; gap: 8px; }
.pl { display: flex; align-items: center; gap: 8px; background: var(--bg2); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px 5px 6px;
  animation: pop-in .4s cubic-bezier(.2,1.6,.4,1) both; position: relative; }
[dir=rtl] .pl { padding: 5px 6px 5px 12px; }
.pl .av { font-size: 22px; width: 32px; height: 32px; display: grid; place-items: center; background: #26242c; border-radius: 50%; }
.pl.off { opacity: .45; }
.pl .crown { position: absolute; top: -10px; inset-inline-start: 4px; font-size: 14px; }
.pl .x { color: var(--mute); font-size: 13px; padding: 2px 4px; }
@keyframes pop-in { from { transform: scale(.3) rotate(-10deg); opacity: 0; } }
.avatars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 12px 0; }
.avatars button { font-size: 30px; aspect-ratio: 1; border-radius: 12px; background: var(--bg2); border: 2px solid transparent; transition: transform .15s; }
.avatars button.on { border-color: var(--red); transform: scale(1.1) rotate(-6deg); background: #2a1519; }

/* ------------------------------------------------ cards */
.black { background: #050506; color: #fff; border-radius: 18px; padding: 22px 20px 44px; font-weight: 800; font-size: 23px; line-height: 1.3; position: relative;
  box-shadow: var(--shadow), inset 0 0 0 2px #26242c; min-height: 150px; }
.black .blank { display: inline-block; min-width: 72px; border-bottom: 3px solid #fff; transform: translateY(-4px); }
.black .brand { position: absolute; bottom: 12px; inset-inline-start: 18px; font-family: var(--display); color: var(--red); font-size: 15px; opacity: .9; }
.black .pick { position: absolute; bottom: 10px; inset-inline-end: 14px; font-size: 13px; background: #fff; color: #000; border-radius: 99px; padding: 3px 10px; font-weight: 800; }
.black.slam { animation: slam .55s cubic-bezier(.2,1.3,.4,1) both; }
@keyframes slam { 0% { transform: scale(1.8) rotate(-8deg); opacity: 0; } 60% { transform: scale(.96) rotate(1deg); opacity: 1; } 100% { transform: none; } }
.shake { animation: shake .4s; }
@keyframes shake { 20% { transform: translate(-6px, 3px); } 40% { transform: translate(5px, -4px); } 60% { transform: translate(-4px, 2px); } 80% { transform: translate(3px, -1px); } }

.hand { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.wc { background: var(--paper); color: var(--paper-ink); border-radius: 14px; padding: 14px 12px 26px; font-weight: 800; font-size: 16px; line-height: 1.25; min-height: 112px;
  position: relative; text-align: start; box-shadow: 0 4px 0 #cfc8b8, 0 8px 18px rgba(0,0,0,.4); transition: transform .18s cubic-bezier(.2,1.4,.4,1), box-shadow .18s;
  animation: deal .45s cubic-bezier(.2,1.3,.4,1) both; overflow-wrap: anywhere; }
.wc:nth-child(odd) { --tilt: -1.2deg; } .wc:nth-child(even) { --tilt: 1deg; } .wc:nth-child(3n) { --tilt: .4deg; }
.wc { transform: rotate(var(--tilt, 0)); }
.wc::after { content: 'חוצפה'; position: absolute; bottom: 7px; inset-inline-start: 12px; font-family: var(--display); font-size: 11px; color: #b9b2a2; font-weight: 400; }
[dir=ltr] .wc::after { content: 'ХУЦПА'; font-family: var(--body); font-weight: 800; letter-spacing: 1px; }
.wc.sel { transform: translateY(-8px) rotate(0) scale(1.03); box-shadow: 0 0 0 4px var(--red), 0 14px 30px rgba(255,43,58,.35); }
.wc .ord { position: absolute; top: -10px; inset-inline-end: -8px; background: var(--red); color: #fff; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; box-shadow: 0 3px 8px rgba(0,0,0,.4); animation: pop-in .3s both; }
.wc.blankc { background: repeating-linear-gradient(-45deg, #fff8d8 0 14px, #fff3bf 14px 28px); border: 2px dashed #c9a800; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.wc.blankc b { font-size: 26px; }
.wc.mine-name { background: linear-gradient(160deg, #fff, #ffe9ec); }
@keyframes deal { from { transform: translateY(80px) rotate(12deg) scale(.7); opacity: 0; } }
.wc.fly { animation: flyup .6s cubic-bezier(.5,0,.8,.3) forwards; }
@keyframes flyup { to { transform: translateY(-120vh) rotate(-25deg) scale(.6); opacity: 0; } }

/* the filled sentence */
.sent { font-weight: 800; line-height: 1.32; }
.sent .ans { background: var(--yellow); color: #111; padding: 0 5px; border-radius: 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* ------------------------------------------------ reveal: censored answers */
.subs { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.sub { position: relative; background: var(--paper); color: var(--paper-ink); border-radius: 14px; padding: 16px 16px; font-size: 19px; min-height: 64px; box-shadow: 0 4px 0 #cfc8b8, 0 10px 22px rgba(0,0,0,.45);
  animation: deal .5s cubic-bezier(.2,1.3,.4,1) both; transition: transform .25s, opacity .4s, box-shadow .25s; text-align: start; width: 100%; }
.sub .censor { position: absolute; inset: 8px; background: #0a0a0c; border-radius: 6px; display: grid; place-items: center; color: var(--red); font-weight: 800; letter-spacing: 3px; font-size: 15px;
  transform-origin: left center; }
.sub .censor::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 7px, rgba(255,255,255,.04) 7px 9px); }
.sub.open .censor { animation: tear .7s cubic-bezier(.6,0,.4,1) forwards; }
@keyframes tear { 0% { clip-path: polygon(0 0,100% 0,100% 100%,0 100%); } 30% { transform: rotate(-2deg); } 100% { clip-path: polygon(100% 0,100% 0,100% 100%,100% 100%); transform: rotate(3deg) translateX(30px); opacity: 0; } }
.sub.now { transform: scale(1.04); box-shadow: 0 0 0 4px var(--yellow), 0 18px 40px rgba(0,0,0,.6); z-index: 2; }
.sub .sent { opacity: 0; }
.sub.open .sent { animation: words .5s .25s both; }
@keyframes words { from { opacity: 0; filter: blur(6px); } to { opacity: 1; filter: none; } }
.sub.can { cursor: pointer; animation: wobble 2.4s ease-in-out infinite; }
.sub.can:nth-child(2n) { animation-delay: -1.2s; }
@keyframes wobble { 0%,100% { transform: rotate(0); } 25% { transform: rotate(.6deg); } 75% { transform: rotate(-.6deg); } }
.sub.mine { opacity: .62; }
.sub.mine::before { content: attr(data-mine); position: absolute; top: -9px; inset-inline-end: 12px; font-size: 12px; background: #333; color: #fff; padding: 2px 9px; border-radius: 99px; z-index: 3; }
.sub.voted { box-shadow: 0 0 0 4px var(--green), 0 10px 22px rgba(0,0,0,.45); }
.sub.lose { opacity: .38; transform: scale(.97); filter: grayscale(.6); }
.sub.win { transform: scale(1.06) rotate(-1deg); box-shadow: 0 0 0 5px var(--red), 0 0 60px rgba(255,43,58,.55); z-index: 3; animation: winpulse 1.4s ease-in-out infinite; }
@keyframes winpulse { 50% { box-shadow: 0 0 0 5px var(--red), 0 0 90px rgba(255,43,58,.8); } }
.sub .who { margin-top: 10px; font-size: 14px; color: #555; font-weight: 600; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sub .who .votes { background: #111; color: var(--yellow); border-radius: 99px; padding: 1px 9px; font-weight: 800; }
.sub .stamp { position: absolute; top: -18px; inset-inline-start: -8px; font-family: var(--display); color: var(--red); border: 4px solid var(--red); border-radius: 10px; padding: 2px 12px; font-size: 22px;
  background: rgba(247,243,234,.92); transform: rotate(-12deg); animation: stamp .45s cubic-bezier(.2,1.8,.4,1) both; white-space: nowrap; z-index: 4; }
[dir=ltr] .sub .stamp { font-family: var(--body); font-weight: 800; }
@keyframes stamp { from { transform: scale(3) rotate(-30deg); opacity: 0; } }

/* ------------------------------------------------ game chrome */
.top { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.badge { font-weight: 800; font-size: 13px; padding: 5px 11px; border-radius: 99px; background: var(--bg2); border: 1px solid var(--line); }
.badge.dbl { background: var(--red); border-color: var(--red); animation: pulse 1s infinite; }
.badge.wr { background: var(--yellow); color: #111; border-color: var(--yellow); }
@keyframes pulse { 50% { transform: scale(1.08); } }
.timer { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 2px 0 12px; }
.timer i { display: block; height: 100%; background: var(--green); border-radius: 99px; transition: width .4s linear, background .4s; }
.timer.hot i { background: var(--red); }
.scores { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 8px; scrollbar-width: none; }
.scores::-webkit-scrollbar { display: none; }
.sc { flex: none; display: flex; align-items: center; gap: 6px; background: var(--bg2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px 4px 5px; font-size: 14px; position: relative; }
[dir=rtl] .sc { padding: 4px 5px 4px 10px; }
.sc b { color: var(--yellow); }
.sc.in::after { content: '✓'; position: absolute; top: -6px; inset-inline-end: -4px; background: var(--green); color: #000; font-size: 10px; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; }
.sc.judge { border-color: var(--yellow); }
.sc .plus { position: absolute; top: -18px; inset-inline-start: 50%; color: var(--yellow); font-weight: 800; animation: plus 1.6s forwards; }
@keyframes plus { from { transform: translateY(10px); opacity: 0; } 20% { opacity: 1; } to { transform: translateY(-26px); opacity: 0; } }
.status { text-align: center; color: var(--mute); margin: 16px 0; font-size: 15px; }
.status b { color: var(--ink); }
.dots::after { content: '...'; animation: dots 1.2s steps(4) infinite; display: inline-block; width: 1.2em; text-align: start; overflow: hidden; vertical-align: bottom; }
@keyframes dots { from { width: 0; } to { width: 1.2em; } }
.preview { margin-top: 16px; background: var(--paper); color: var(--paper-ink); border-radius: 14px; padding: 16px; font-size: 19px; position: relative; animation: deal .5s both; }
.preview .stamp { position: absolute; top: -14px; inset-inline-end: 10px; transform: rotate(8deg); font-family: var(--display); color: var(--green); border: 3px solid var(--green); border-radius: 8px; padding: 0 10px; background: var(--paper); animation: stamp .4s both; }
.judgebox { text-align: center; padding: 26px 10px; }
.judgebox .gavel { font-size: 64px; animation: gavel 1.2s ease-in-out infinite; display: inline-block; transform-origin: 80% 80%; }
@keyframes gavel { 0%,60%,100% { transform: rotate(0); } 70% { transform: rotate(-35deg); } 80% { transform: rotate(8deg); } }
.actions { position: fixed; bottom: 0; inset-inline: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 35%); z-index: 5; display: flex; gap: 10px; max-width: 640px; margin: 0 auto; }
.react { position: fixed; bottom: calc(10px + env(safe-area-inset-bottom)); transition: bottom .25s; inset-inline: 0; display: flex; justify-content: center; gap: 4px; z-index: 6; pointer-events: none; }
.react button { pointer-events: auto; font-size: 26px; width: 44px; height: 44px; border-radius: 50%; background: rgba(27,26,32,.9); border: 1px solid var(--line); transition: transform .1s; }
.react button:active { transform: scale(1.35) rotate(-10deg); }
.floater { position: fixed; bottom: 60px; font-size: 40px; z-index: 50; pointer-events: none; animation: floatup 2.6s ease-out forwards; }
@keyframes floatup { 0% { transform: translateY(0) scale(.5); opacity: 0; } 10% { opacity: 1; transform: translateY(-20px) scale(1.2); } 100% { transform: translateY(-75vh) translateX(var(--dx)) rotate(var(--rot)) scale(1); opacity: 0; } }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 40; width: 100%; height: 100%; }
#toast { position: fixed; top: 16px; left: 50%; transform: translateX(-50%) translateY(-120px); background: #fff; color: #111; padding: 12px 18px; border-radius: 12px; font-weight: 700; z-index: 60; transition: transform .35s cubic-bezier(.2,1.4,.4,1); max-width: 90vw; text-align: center; box-shadow: var(--shadow); }
#toast.on { transform: translateX(-50%) translateY(0); }
.sheet-bg { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 30; animation: fade .2s both; }
.sheet { position: fixed; bottom: 0; inset-inline: 0; max-width: 640px; margin: 0 auto; background: var(--bg2); border-radius: 22px 22px 0 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); z-index: 31; animation: up .3s cubic-bezier(.2,1.2,.4,1) both; max-height: 88vh; overflow-y: auto; border-top: 1px solid var(--line); }
@keyframes up { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }
.iconbtn { width: 40px; height: 40px; border-radius: 50%; background: var(--bg2); border: 1px solid var(--line); font-size: 18px; display: grid; place-items: center; flex: none; }
.iconbtn.on { background: var(--green); color: #000; border-color: var(--green); }

/* ------------------------------------------------ big moments */
.overlay { position: fixed; inset: 0; z-index: 35; display: grid; place-items: center; pointer-events: none; }
.overlay .big { font-family: var(--display); font-size: clamp(42px, 11vw, 120px); color: var(--yellow); text-align: center; text-shadow: 5px 5px 0 #000; animation: bigin 2.4s cubic-bezier(.2,1.3,.4,1) forwards; padding: 0 20px; line-height: 1.05; }
[dir=ltr] .overlay .big { font-family: var(--body); font-weight: 800; }
.overlay .big small { display: block; font-family: var(--body); font-size: .32em; color: #fff; margin-top: 12px; font-weight: 800; text-shadow: 2px 2px 0 #000; }
@keyframes bigin { 0% { transform: scale(3) rotate(-12deg); opacity: 0; } 15% { transform: scale(1) rotate(-3deg); opacity: 1; } 80% { transform: scale(1.05) rotate(-3deg); opacity: 1; } 100% { transform: scale(.8); opacity: 0; } }
.overlay.rando { background: rgba(80,0,8,.55); animation: fade .3s both; }
.overlay.rando .big { color: #fff; animation-duration: 3.6s; }
.overlay.rando .big span { display: inline-block; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 10px; margin: 30px 0 16px; height: 230px; }
.podium .step { width: 30%; max-width: 160px; background: linear-gradient(#2d2b35, #1b1a20); border-radius: 12px 12px 0 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 10px; position: relative; animation: rise 1s cubic-bezier(.2,1.2,.4,1) both; border: 1px solid var(--line); }
.podium .step .av { font-size: 44px; position: absolute; top: -56px; animation: pop-in .5s 1s both; }
.podium .step b { font-family: var(--display); font-size: 34px; color: var(--yellow); }
.podium .step .nm { font-weight: 800; font-size: 15px; text-align: center; padding: 0 4px; }
.podium .s1 { height: 100%; animation-delay: .6s; background: linear-gradient(#c4101f, #5a0710); }
.podium .s2 { height: 72%; animation-delay: .3s; }
.podium .s3 { height: 50%; }
@keyframes rise { from { transform: scaleY(0); transform-origin: bottom; } }
.best { margin: 10px 0; }
.best .sub { animation-delay: calc(var(--i) * .15s); }

/* ------------------------------------------------ TV */
body.tv { font-size: 20px; }
.tvgrid { display: grid; grid-template-columns: minmax(380px, 34%) 1fr; gap: 36px; height: calc(100vh - 56px); }
.tvgrid .left { display: flex; flex-direction: column; gap: 22px; min-height: 0; }
.tvgrid .right { min-height: 0; overflow: hidden; }
body.tv .black { font-size: clamp(28px, 2.6vw, 46px); padding: 34px 32px 64px; min-height: 280px; }
body.tv .black .brand { font-size: 24px; }
body.tv .subs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 22px; margin: 0; align-content: start; }
body.tv .sub { font-size: clamp(20px, 1.7vw, 30px); padding: 24px; }
body.tv .scores { flex-direction: column; overflow: visible; }
body.tv .sc { font-size: 22px; padding: 8px 16px; justify-content: space-between; }
body.tv .sc .av { font-size: 26px; }
body.tv .react { display: none; }
.tvlobby { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; height: 100%; }
.tvlobby .qr { background: #fff; border-radius: 22px; padding: 18px; width: min(36vh, 380px); aspect-ratio: 1; box-shadow: var(--shadow); transform: rotate(2deg); }
.tvlobby .qr img { width: 100%; height: 100%; }
.tvlobby .code { font-family: var(--display); font-size: 120px; color: var(--yellow); line-height: 1; text-shadow: 5px 5px 0 #000; }
body.tv .logo { font-size: 130px; }
body.tv .players .pl { font-size: 26px; padding: 8px 18px 8px 10px; }
body.tv .players .pl .av { font-size: 34px; width: 48px; height: 48px; }
body.tv .status { font-size: 28px; }
@media (max-width: 380px) { .wc { font-size: 15px; min-height: 100px; } .black { font-size: 21px; } .logo { font-size: 54px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }

body.has-acts .react { bottom: calc(92px + env(safe-area-inset-bottom)); }
body.tv .right .subs { padding: 26px 14px 14px; }
