:root {
  --game-accent: #f97316;
  --game-accent-dim: rgba(249, 115, 22, 0.15);
  --game-accent-contrast: #ffffff;
  --flame-orange: #ea580c;
  --flame-glow: rgba(249, 115, 22, 0.35);
  --warning-red: #ef4444;
}

/* Spotlighted Guesser Seat Container */
.hotseat-spotlight-card {
  background: var(--surface-color, #ffffff);
  border: 3px solid var(--game-accent);
  border-radius: var(--radius-lg, 24px);
  padding: 1.5rem;
  margin: 1rem auto;
  box-shadow: 0 8px 30px var(--flame-glow);
  text-align: center;
  position: relative;
  overflow: hidden;
  max-width: 650px;
  transition: all 0.3s ease;
}

/* Radial SVG Countdown Ring */
.hotseat-ring-wrapper {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 1rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hotseat-ring-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg); /* Start ring at top */
}

.hotseat-ring-bg {
  stroke: rgba(249, 115, 22, 0.18);
  stroke-width: 10;
  fill: none;
}

.hotseat-ring-circle {
  stroke: var(--game-accent);
  stroke-width: 10;
  stroke-linecap: round;
  fill: none;
  transition: stroke-dashoffset 0.25s linear, stroke 0.3s ease;
}

.hotseat-avatar-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}

.hotseat-guesser-name {
  font-family: var(--font-sans, 'Nunito', sans-serif);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-color, #1f2937);
  line-height: 1.2;
}

.hotseat-timer-sec {
  font-family: var(--font-sans, 'Nunito', sans-serif);
  font-weight: 900;
  font-size: 2.2rem;
  color: var(--game-accent);
  line-height: 1;
  margin-top: 2px;
}

/* Final 5 Seconds Red-Orange Warning Pulse */
@keyframes ringPulseRed {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 0 25px 8px rgba(239, 68, 68, 0.8);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
  }
}

.hotseat-spotlight-card.pulse-warning {
  border-color: var(--warning-red);
  animation: ringPulseRed 0.8s ease-in-out infinite;
}

.hotseat-ring-circle.pulse-warning {
  stroke: var(--warning-red);
  filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.8));
}

.hotseat-timer-sec.pulse-warning {
  color: var(--warning-red);
}

/* Role Selector Controls */
.role-toggle-bar {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.role-btn {
  background: var(--cg-color-surface, #ffffff);
  border: 1.5px solid var(--border, rgba(0,0,0,0.12));
  color: var(--ink-soft, #4a4a4a);
  padding: 0.45rem 0.85rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.role-btn:hover {
  background: var(--game-accent-dim);
  border-color: var(--game-accent);
  color: var(--game-accent);
}

.role-btn.active {
  background: var(--game-accent);
  color: var(--game-accent-contrast, #ffffff);
  border-color: var(--game-accent);
  box-shadow: 0 3px 10px var(--flame-glow);
}

/* Large Pass & Got-it Action Buttons */
.btn-pass-large {
  background: #f3f4f6;
  color: #374151;
  font-size: 1.3rem;
  font-weight: 800;
  padding: 1.1rem 2rem;
  border-radius: 16px;
  border: 2px solid #d1d5db;
  cursor: pointer;
  width: 100%;
  max-width: 280px;
  margin: 0.5rem auto;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.btn-pass-large:hover, .btn-pass-large:active {
  background: #e5e7eb;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

/* ── PHONE CONTEXT (data-context="phone") ───────────────── */
[data-context="phone"] .hotseat-spotlight-card {
  padding: 1rem;
  margin: 0.5rem 0;
}

[data-context="phone"] .hotseat-ring-wrapper {
  width: 150px;
  height: 150px;
}

[data-context="phone"] .hotseat-timer-sec {
  font-size: 1.8rem;
}

/* On phone, when role is "guessing", hide answer prompt and show simplified view */
[data-context="phone"] .role-guessing .hotseat-prompt-area,
[data-context="phone"] .role-guessing .hotseat-answer-hint,
[data-context="phone"] .role-guessing .secondary-text {
  display: none !important;
}

[data-context="phone"] .role-guessing .btn-pass-large {
  font-size: 1.5rem;
  padding: 1.25rem 2.2rem;
  margin-top: 1rem;
}

/* ── PROJECTOR CONTEXT (data-context="projector") ───────── */
[data-context="projector"] .hotseat-spotlight-card {
  padding: 2.2rem;
  border-width: 5px;
  max-width: 850px;
}

[data-context="projector"] .hotseat-ring-wrapper {
  width: 280px;
  height: 280px;
  margin: 1.5rem auto;
}

[data-context="projector"] .hotseat-ring-bg,
[data-context="projector"] .hotseat-ring-circle {
  stroke-width: 14;
}

[data-context="projector"] .hotseat-guesser-name {
  font-size: 1.8rem;
}

[data-context="projector"] .hotseat-timer-sec {
  font-size: 3.8rem;
}

[data-context="projector"] .game-prompt {
  font-size: 2.2rem !important;
  line-height: 1.3 !important;
}

/* On projector, remove per-player secondary small text that is unreadable from a distance */
[data-context="projector"] .hotseat-secondary-text,
[data-context="projector"] .hotseat-answer-hint,
[data-context="projector"] .secondary-text {
  display: none !important;
}
