/* PartyHub – dunkles Party-Theme, mobile-first */
:root {
  --bg: #0f1023;
  --bg-2: #171936;
  --card: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.09);
  --text: #f4f4fb;
  --muted: #9b9ec2;
  --pink: #ff5d8f;
  --violet: #b388ff;
  --blue: #4cc9f0;
  --green: #06d6a0;
  --yellow: #ffd166;
  --danger: #ff6b6b;
  --grad: linear-gradient(135deg, var(--pink), var(--violet) 55%, var(--blue));
  --radius: 20px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(179, 136, 255, 0.22), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(255, 93, 143, 0.16), transparent 55%),
    radial-gradient(800px 600px at 50% 110%, rgba(76, 201, 240, 0.12), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}

.app {
  max-width: 560px;
  margin: 0 auto;
  padding: calc(16px + env(safe-area-inset-top)) 16px calc(40px + env(safe-area-inset-bottom));
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

h1, h2, h3 { margin: 0 0 6px; line-height: 1.2; }
h1 { font-size: 2.2rem; letter-spacing: -0.02em; }
h2 { font-size: 1.4rem; }
p { margin: 6px 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 0.82rem; }
.grow { flex: 1; }
.section-title { margin: 18px 0 10px; }

/* Hero (Home) */
.hero { text-align: center; padding: 30px 0 18px; }
.hero .logo { font-size: 64px; filter: drop-shadow(0 6px 24px rgba(255, 93, 143, 0.45)); }
.hero h1 {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 900;
}
.hero .sub { color: var(--muted); }

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 18px;
  margin: 10px 0;
  backdrop-filter: blur(8px);
}

.label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 4px 0 8px;
  font-weight: 700;
}

/* Inputs & Buttons */
.input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--card-border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-size: 1.05rem;
  margin-bottom: 12px;
  outline: none;
  transition: border-color 0.15s;
}
.input:focus { border-color: var(--violet); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 14px;
  padding: 14px 20px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: transform 0.08s, opacity 0.15s;
  font-family: inherit;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: default; transform: none; }
.btn-block { width: 100%; }
.btn-primary { background: var(--grad); box-shadow: 0 8px 24px rgba(255, 93, 143, 0.28); }
.btn-secondary { background: rgba(255, 255, 255, 0.1); border: 1px solid var(--card-border); }
.btn-ghost { background: transparent; border: 1px dashed var(--card-border); color: var(--muted); }
.btn-small { padding: 8px 14px; font-size: 0.88rem; border-radius: 11px; }
.abort-btn { margin-top: 14px; }
.leave { margin-top: 18px; }

.divider {
  display: flex; align-items: center; gap: 12px;
  color: var(--muted); font-size: 0.82rem; margin: 14px 0;
}
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--card-border); }

.joinRow { display: flex; gap: 10px; }
.joinRow .input { margin-bottom: 0; text-transform: uppercase; letter-spacing: 0.3em; text-align: center; font-weight: 800; }
.joinRow .btn { flex-shrink: 0; }
.input-code { max-width: 140px; }

.hint { color: var(--muted); font-size: 0.85rem; text-align: center; margin-top: 16px; }

/* Join-Modus (per QR-Code gekommen) */
.hero.small { padding: 12px 0 4px; }
.hero.small .logo { font-size: 48px; }
.join-card { text-align: center; }
.code-chip {
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: 0.25em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 2px 0 16px;
}
.join-card .btn-block { margin-top: 10px; }

/* Lobby */
.lobby-head { padding: 8px 0 2px; }
.code-line { display: flex; align-items: center; gap: 12px; }
.code {
  font-size: 2.6rem;
  font-weight: 900;
  letter-spacing: 0.25em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.qr-card { display: flex; gap: 16px; align-items: center; }
.qr { background: #fff; border-radius: 14px; flex-shrink: 0; }
.qr-info p { margin: 4px 0; }
.join-url { font-size: 0.85rem; color: var(--blue); word-break: break-all; }

.players-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--card-border);
  padding: 7px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
}
.chip.offline { opacity: 0.45; }
.chip-you { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.chip-kick {
  border: none; background: rgba(255, 107, 107, 0.18); color: var(--danger);
  width: 20px; height: 20px; border-radius: 50%; font-size: 0.7rem;
  cursor: pointer; line-height: 1; margin-left: 2px;
}
.dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; display: inline-block; }
.crown { margin-left: 2px; }

/* Games grid */
.games-grid { display: flex; flex-direction: column; gap: 4px; }
.game-art {
  display: block;
  width: calc(100% + 36px);
  margin: -18px -18px 14px;
  border-radius: 16px 16px 0 0;
  background: #0f1023;
}
.game-card-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; }
.game-emoji { font-size: 40px; line-height: 1; }
.game-name { font-weight: 800; font-size: 1.12rem; margin: 2px 0; }

/* Rows / Listen */
.rows { list-style: none; margin: 0; padding: 0; }
.row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.row:last-child { border-bottom: none; }
.row.me { background: rgba(179, 136, 255, 0.08); border-radius: 10px; }
.row.found { opacity: 0.55; }
.name { font-weight: 600; }
.score { font-weight: 800; font-size: 1.1rem; }
.medal { width: 34px; text-align: center; font-weight: 800; }

.pts {
  padding: 4px 10px; border-radius: 999px;
  font-weight: 800; font-size: 0.9rem; flex-shrink: 0;
}
.pts-3 { background: rgba(6, 214, 160, 0.18); color: var(--green); }
.pts-1 { background: rgba(255, 209, 102, 0.18); color: var(--yellow); }
.pts-0 { background: rgba(255, 255, 255, 0.07); color: var(--muted); }
.pts-g { background: rgba(179, 136, 255, 0.18); color: var(--violet); }
.pts-neg { background: rgba(255, 107, 107, 0.16); color: var(--danger); }

/* Timer */
.timer { margin: 8px 0 14px; }
.timer-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; color: var(--muted); font-size: 0.85rem; font-weight: 700; }
.timer-num { font-size: 1.3rem; color: var(--text); font-variant-numeric: tabular-nums; }
.timer-track { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.timer-bar { height: 100%; background: var(--grad); border-radius: 999px; width: 100%; }
.timer.urgent .timer-bar { background: linear-gradient(135deg, var(--danger), #ff9e6d); }
.timer.urgent .timer-num { color: var(--danger); }

/* Frequency */
.secret-card { text-align: center; }
.secret-number {
  font-size: 96px; font-weight: 900; line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin: 6px 0;
}
.secret-number.small { font-size: 64px; }
.cat-title { font-size: 1.5rem; font-weight: 800; }
.cat-list { display: flex; flex-direction: column; gap: 10px; }
.cat-btn {
  display: flex; flex-direction: column; gap: 3px;
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 16px; padding: 14px 18px;
  color: var(--text); cursor: pointer; text-align: left; font-family: inherit;
  transition: border-color 0.15s, transform 0.08s;
}
.cat-btn:active { transform: scale(0.98); }
.cat-btn:disabled { opacity: 0.55; cursor: default; transform: none; }
.cat-emoji { font-size: 26px; }
.cat-name { font-weight: 800; font-size: 1.08rem; }
.cat-scale { color: var(--muted); font-size: 0.85rem; }
.cat-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tag { background: rgba(255, 255, 255, 0.08); border-radius: 999px; padding: 6px 12px; font-size: 0.85rem; }

.word-card { text-align: center; }
.word-hero { font-size: 44px; font-weight: 900; margin: 8px 0; }
.word-hero.small { font-size: 60px; color: var(--green); }
.guess-locked { font-size: 64px; font-weight: 900; color: var(--blue); }
.thinking { font-size: 1.3rem; font-weight: 700; }

.scale {
  position: relative; height: 64px; margin: 18px 6px 4px;
}
.scale-track {
  position: absolute; left: 0; right: 0; top: 50%; height: 14px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--danger), var(--yellow) 50%, var(--green));
}
.scale-track::after {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 calc(5% - 1px), rgba(15, 16, 35, 0.5) calc(5% - 1px) 5%);
  border-radius: 999px;
}
.scale-secret {
  position: absolute; top: 50%; transform: translate(-50%, -50%);
  font-size: 26px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}
.scale-dot {
  position: absolute; top: 50%; left: 0;
  width: 26px; height: 26px; border-radius: 50%;
  transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 900; color: #141530;
  border: 2px solid rgba(15, 16, 35, 0.55);
}
.scale-labels {
  display: flex; justify-content: space-between;
  color: var(--muted); font-size: 0.82rem; font-weight: 600; margin-top: 6px;
}
.giver-row { background: rgba(179, 136, 255, 0.08); border-radius: 10px; }

/* Zahlenrad */
.wheel { position: relative; margin: 6px 0 16px; }
.wheel-mask {
  overflow: hidden; width: 100%;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--card-border);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}
.wheel-strip { display: flex; will-change: transform; }
.wheel-item {
  width: 64px; height: 88px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 900;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--muted);
}
.wheel-item:nth-child(20n) { color: var(--yellow); }
.wheel-pin {
  position: absolute; left: 50%; top: -6px; bottom: -6px; width: 3px;
  transform: translateX(-50%);
  background: var(--pink);
  border-radius: 999px;
  box-shadow: 0 0 14px rgba(255, 93, 143, 0.9);
}

/* Voting */
.badge { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 800; margin-bottom: 8px; }
.badge-pos { background: rgba(6, 214, 160, 0.16); color: var(--green); }
.badge-neg { background: rgba(255, 107, 107, 0.16); color: var(--danger); }
.prompt-card { text-align: center; }
.prompt-text { font-size: 1.45rem; font-weight: 800; line-height: 1.3; margin: 8px 0; }
.vote-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.vote-btn {
  display: flex; align-items: center; gap: 9px; justify-content: center;
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 14px; padding: 16px 10px;
  color: var(--text); font-weight: 700; font-size: 1rem;
  cursor: pointer; font-family: inherit;
  transition: transform 0.08s, border-color 0.15s;
}
.vote-btn:active { transform: scale(0.96); }
.vote-btn:disabled { opacity: 0.5; }
.winner-card, .loser-card { text-align: center; }
.winner-name { font-size: 2rem; font-weight: 900; }
.loser-card { border-color: rgba(255, 107, 107, 0.4); }

/* Hide & Seek */
.role-emoji { font-size: 64px; margin-bottom: 6px; }
.found-me { border-color: rgba(255, 209, 102, 0.5); }

/* Rules */
.rules { margin: 4px 0; padding-left: 22px; }
.rules li { margin: 8px 0; line-height: 1.45; }
.game-head { display: flex; gap: 14px; align-items: center; margin: 6px 0 8px; }
.waiting { text-align: center; font-style: italic; }
.big-num { font-size: 2.4rem; font-weight: 900; margin: 4px 0; }

/* Toasts */
.toasts {
  position: fixed; left: 0; right: 0; bottom: calc(20px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none; z-index: 50;
}
.toast {
  background: #23244d;
  border: 1px solid var(--card-border);
  color: var(--text);
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: toast-in 0.25s ease-out;
  max-width: 90vw;
}
.toast.out { opacity: 0; transition: opacity 0.4s; }
@keyframes toast-in {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (min-width: 480px) {
  .vote-grid { grid-template-columns: repeat(3, 1fr); }
  .hero .logo { font-size: 76px; }
}

/* ─── Animationen ───────────────────────────────────────── */

/* Eingang: nur bei echtem Screen-Wechsel (.app.anim wird von app.js gesetzt) */
@keyframes rise {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.app.anim .hero,
.app.anim .lobby-head,
.app.anim .section-title,
.app.anim .game-head,
.app.anim .card,
.app.anim .timer,
.app.anim h2.center,
.app.anim .cat-list,
.app.anim .vote-grid,
.app.anim .players-grid,
.app.anim .games-grid,
.app.anim .btn-block,
.app.anim .waiting,
.app.anim .hint {
  animation: rise 0.4s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}
.app.anim > :nth-child(2) { animation-delay: 0.05s; }
.app.anim > :nth-child(3) { animation-delay: 0.1s; }
.app.anim > :nth-child(4) { animation-delay: 0.15s; }
.app.anim > :nth-child(5) { animation-delay: 0.2s; }
.app.anim > :nth-child(6) { animation-delay: 0.25s; }
.app.anim > :nth-child(7) { animation-delay: 0.3s; }
.app.anim > :nth-child(n+8) { animation-delay: 0.34s; }

/* Punkte-Badges & Geheimzahl ploppen rein */
@keyframes pop {
  from { opacity: 0; transform: scale(0.4); }
  to { opacity: 1; transform: scale(1); }
}
.app.anim .pts,
.app.anim .secret-number,
.app.anim .word-hero,
.app.anim .winner-name,
.app.anim .big-num {
  animation: pop 0.45s cubic-bezier(0.3, 1.6, 0.4, 1) 0.15s both;
}

/* Timer: Schimmer im Balken + Puls in den letzten 10 Sekunden */
.timer-bar { background-size: 200% 100%; animation: shimmer 3.5s linear infinite; }
@keyframes shimmer {
  from { background-position: 0% 0; }
  to { background-position: -200% 0; }
}
.timer.urgent .timer-num { animation: tick 1s ease-in-out infinite; }
@keyframes tick {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}
.timer.urgent .timer-bar { animation: shimmer 3.5s linear infinite, urgentGlow 1s ease-in-out infinite; }
@keyframes urgentGlow {
  50% { box-shadow: 0 0 14px rgba(255, 107, 107, 0.65); }
}

/* Hero-Logo schwebt sanft */
.hero .logo { animation: floaty 3.2s ease-in-out infinite; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* Sieger-Karte strahlt */
.app.anim .winner-card { animation: rise 0.4s both, winGlow 2.2s ease-in-out 0.5s infinite; }
@keyframes winGlow {
  50% { box-shadow: 0 0 26px rgba(255, 209, 102, 0.35); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ─── Zeichenraten ─────────────────────────────────────── */
.board {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #fdfdf7;
  border-radius: 14px;
  touch-action: none;
}
.toolbar { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin: 12px 0 4px; }
.toolbar-sep { width: 1px; height: 26px; background: var(--card-border); margin: 0 4px; }
.swatch {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  cursor: pointer; padding: 0;
}
.swatch.active { outline: 3px solid var(--violet); outline-offset: 1px; }
.wbtn {
  padding: 8px 12px; border-radius: 11px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--card-border);
  color: var(--text); font-weight: 700; font-size: 0.9rem;
  cursor: pointer; font-family: inherit;
}
.wbtn.active { background: var(--grad); border-color: transparent; }
.chat { list-style: none; margin: 6px 0 0; padding: 0; max-height: 180px; overflow-y: auto; }
.chat li { padding: 6px 10px; border-radius: 10px; font-size: 0.92rem; margin-bottom: 4px; }
.chat li.ok { background: rgba(6, 214, 160, 0.16); color: var(--green); font-weight: 700; }
.chat li.g { background: rgba(255, 255, 255, 0.05); }
.guessRow { display: flex; gap: 8px; }
.guessRow .input { margin-bottom: 0; }
.wordline { letter-spacing: 0.35em; font-size: 1.6rem; font-weight: 900; }
.drawer-word { font-size: 1.3rem; }
.word-choice { display: flex; flex-direction: column; gap: 10px; }
.lie-pick { display: flex; gap: 8px; margin-bottom: 12px; }
.lie-pick .lie-btn { flex: 1; }
.lie-pick .lie-btn.active { background: var(--grad); border-color: transparent; }
.lie-row { background: rgba(255, 107, 107, 0.1); border-radius: 10px; }

/* ─── Blitz-Duell ──────────────────────────────────────── */
.blitz-card { min-height: 220px; display: flex; flex-direction: column; justify-content: center; }
.bigword {
  font-size: 4rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  margin: 8px 0;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.45));
}
.tapzone {
  margin-top: 14px;
  padding: 26px;
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  box-shadow: 0 10px 34px rgba(255, 93, 143, 0.35);
}

/* ─── Party-Screen (Desktop/TV) ────────────────────────── */
.tv-mode { max-width: none; padding: 28px 40px 40px; }
.tv-home { max-width: 720px; margin: 8vh auto 0; text-align: center; }
.tv-home .logo { font-size: 84px; animation: floaty 3.2s ease-in-out infinite; }
.tv-home h1 { font-size: 3.4rem; margin: 10px 0; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 900; }
.tv-sub { color: var(--muted); font-size: 1.2rem; }
.tv-home-card { margin-top: 26px; text-align: left; padding: 28px; }
.tv-home-card .btn-block { padding: 18px; font-size: 1.2rem; }
.tv-hint { color: var(--muted); text-align: center; margin-top: 16px; }
.tv-hint.big { font-size: 1.3rem; color: var(--text); }

.tv-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 30px; max-width: 1560px; margin: 0 auto; align-items: start; }
.tv-head { display: flex; align-items: center; gap: 34px; margin-bottom: 14px; }
.tv-code {
  font-size: 108px; font-weight: 900; letter-spacing: 0.16em; line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tv-qr img { width: 148px; height: 148px; border-radius: 14px; background: #fff; display: block; }
.tv-quit { margin-left: auto; align-self: flex-start; }

.tv-wait { font-size: 2.4rem; margin: 18px 0 14px; }
.tv-big-num { font-size: 3.2rem; font-weight: 900; margin: 10px 0; }
.tv-mega-emoji { font-size: 9rem; text-align: center; margin: 30px 0 0; }
.tv-word { font-size: 4.6rem; font-weight: 900; text-align: center; margin: 14px 0; line-height: 1.15; }
.tv-secret { font-size: 8rem; font-weight: 900; text-align: center; line-height: 1.1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tv-bigword { font-size: 11rem; font-weight: 900; text-align: center; margin: 20px 0; filter: drop-shadow(0 8px 30px rgba(0, 0, 0, 0.5)); }
.tv-scale { position: relative; height: 110px; margin: 26px 10px 4px; }
.tv-scale .scale-track { height: 22px; }
.tv-scale .scale-secret { font-size: 44px; }
.tv-scale .scale-dot { width: 44px; height: 44px; font-size: 1.1rem; }
.tv-scale-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: 1.05rem; font-weight: 600; margin: 10px 8px; }
.tv-result-card { margin-top: 22px; font-size: 1.15rem; }
.tv-result-card .row { padding: 12px 6px; }
.tv-hints .chip { font-size: 1.15rem; padding: 10px 18px; }

.tv-begin { margin-top: 10px; font-size: 1.4rem; padding: 20px 46px; }

.tv-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin: 12px 0; }
.tv-game { display: flex; align-items: center; gap: 14px; cursor: pointer; padding: 20px 22px; transition: transform 0.08s, border-color 0.15s; font-family: inherit; color: var(--text); text-align: left; }
.tv-game:hover { transform: scale(1.02); border-color: var(--violet); }
.tv-game .game-emoji { font-size: 44px; }
.tv-game-name { font-size: 1.3rem; font-weight: 800; }

.tv-draw { display: grid; grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr); gap: 20px; }
.tv-canvas-card .board { border-radius: 16px; }
.tv-chat-card { max-height: 70vh; overflow-y: auto; }
.tv-chat-ok { color: var(--green); font-weight: 700; }
.tv-statements { display: flex; flex-direction: column; gap: 12px; }
.tv-statement { font-size: 1.5rem; font-weight: 700; text-align: center; }

.tv-side .card { margin-top: 0; margin-bottom: 20px; }
.tv-scores .row { font-size: 1.3rem; padding: 13px 6px; }
.tv-scores .score { font-size: 1.7rem; }
.tv-side-info p { line-height: 1.5; }

@media (max-width: 1150px) {
  .tv-wrap { grid-template-columns: 1fr; }
  .tv-code { font-size: 72px; }
  .tv-draw { grid-template-columns: 1fr; }
  .tv-bigword { font-size: 7rem; }
}
