/* Taboo */
.timer {
  font-size: 28px; font-weight: 900; color: var(--gold-deep);
  background: var(--card-bg); border: 2px solid var(--gold);
  border-radius: 16px; padding: 6px 18px; min-width: 90px; text-align: center;
}
.timer.urgent { color: var(--danger); border-color: var(--danger); animation: urgentPulse .5s ease-in-out infinite; }
@keyframes urgentPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.1); } }

.team-a { border-color: #5aa8ff !important; }
.team-b { border-color: #ff5a6e !important; }

.taboo-card { animation: cardIn .4s cubic-bezier(.34,1.56,.64,1); }
@keyframes cardIn { from { transform: scale(.7) rotate(-3deg); opacity: 0; } to { transform: none; opacity: 1; } }
.taboo-word {
  font-size: 38px; font-weight: 900; color: var(--gold-deep);
  margin-bottom: 16px; letter-spacing: 1px;
}
.taboo-list { display: flex; flex-direction: column; gap: 8px; }
.taboo-word-item {
  background: rgba(230,29,72,.08); border: 2px solid rgba(230,29,72,.4);
  border-radius: 10px; padding: 8px; font-weight: 700; color: #e11d48;
  text-decoration: line-through; text-decoration-thickness: 2px;
}

.guess-row { display: flex; gap: 8px; margin-top: 12px; }
.guess-row input {
  flex: 1; padding: 12px 16px; border-radius: 999px;
  border: 2px solid rgba(255,176,32,.35); background: var(--paper);
  color: var(--text); font-size: 16px; font-family: inherit;
}
.guess-log { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.guess-chip {
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 12px; font-size: 13px; animation: toastPop .2s ease;
}

/* === Taboo signature theme: buzzer-red + cream, timer pulse === */
body[data-bgfx="taboo"] {
  --taboo-red: #e6352b;
  --taboo-cream: #f7f1e1;
}
body[data-bgfx="taboo"] #screen-lobby .lobby-card {
  border-color: rgba(230,53,43,.7);
  animation: tabooRing 2s ease-in-out infinite;
}
@keyframes tabooRing {
  0%,100% { box-shadow: 0 8px 32px rgba(120,80,20,.15), 0 0 0 0 rgba(230,53,43,.55); }
  50% { box-shadow: 0 8px 32px rgba(120,80,20,.15), 0 0 0 12px rgba(230,53,43,0); }
}
body[data-bgfx="taboo"] #screen-lobby .lobby-card h1 { color: #e11d48; }
body[data-bgfx="taboo"] .timer { border-color: var(--taboo-red); color: #e11d48; }
body[data-bgfx="taboo"] .timer.urgent {
  color: #fff; background: var(--taboo-red); border-color: var(--taboo-red);
  animation: buzzerShake .3s ease-in-out infinite;
}
@keyframes buzzerShake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-3px) rotate(-1deg); }
  75% { transform: translateX(3px) rotate(1deg); }
}
body[data-bgfx="taboo"] .taboo-word { color: var(--ink); }
body[data-bgfx="taboo"] #btn-gotit { box-shadow: 0 4px 0 var(--gold-deep), 0 0 20px rgba(230,53,43,.4); }
@media (prefers-reduced-motion: reduce) {
  body[data-bgfx="taboo"] #screen-lobby .lobby-card,
  body[data-bgfx="taboo"] .timer.urgent { animation: none; }
}
