/* Online Multiplayer Table & Room Styling */

.room-view-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.room-header-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.room-code-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  background: #181924;
  border: 1px solid var(--border-subtle);
  padding: 6px 16px;
  border-radius: var(--radius-md);
  letter-spacing: 4px;
}

.room-phase-pill {
  font-family: var(--f-ui, 'Unbounded', sans-serif);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 6px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.phase-lobby { background: #1e1e2d; color: #a5b4fc; border: 1px solid #4338ca; }
.phase-night { background: #180d26; color: #c084fc; border: 1px solid #7e22ce; }
.phase-morning { background: #1a1520; color: #fbbf24; border: 1px solid #d97706; }
.phase-day_discussion { background: #261e0d; color: #fde047; border: 1px solid #ca8a04; }
.phase-voting { background: #260d0d; color: #f87171; border: 1px solid #dc2626; }
.phase-game_over { background: #0d1a0d; color: #4ade80; border: 1px solid #16a34a; }

/* Table Arena */
.online-table-arena {
  background: #09090e;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  min-height: 480px;
  padding: 36px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.9);
  transition: background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.online-table-arena.arena-night {
  background: radial-gradient(ellipse at center, #12081f 0%, #050508 70%);
  border-color: rgba(126, 34, 206, 0.35);
  box-shadow: inset 0 0 80px rgba(88, 28, 135, 0.25);
}

.online-table-arena.arena-morning {
  background: radial-gradient(ellipse at center, #2a2010 0%, #0c0a08 70%);
  border-color: rgba(217, 119, 6, 0.35);
  box-shadow: inset 0 0 60px rgba(251, 191, 36, 0.12);
}

.online-table-arena.arena-day {
  background: radial-gradient(ellipse at center, #1f1a0d 0%, #0a0908 70%);
  border-color: rgba(202, 138, 4, 0.35);
  box-shadow: inset 0 0 50px rgba(253, 224, 71, 0.08);
}

.online-table-arena.arena-voting {
  background: radial-gradient(ellipse at center, #1f0d0d 0%, #080606 70%);
  border-color: rgba(220, 38, 38, 0.35);
}

.phase-ambient-badge {
  position: absolute;
  top: 14px;
  left: 16px;
  transform: none;
  z-index: 20;
  font-family: var(--f-display, 'Unbounded', sans-serif);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  pointer-events: none;
}

.online-table-arena.arena-has-badge {
  padding-top: 52px;
}

.online-table-arena.arena-has-badge .table-center-hub {
  margin-top: 4px;
}

.table-center-hub.hub-compact {
  max-width: 440px;
  padding: 20px 22px;
}

.phase-ambient-night { background: rgba(88, 28, 135, 0.35); color: #e9d5ff; border: 1px solid #7e22ce; }
.phase-ambient-morning { background: rgba(217, 119, 6, 0.25); color: #fde68a; border: 1px solid #d97706; }
.phase-ambient-day_discussion { background: rgba(202, 138, 4, 0.22); color: #fef08a; border: 1px solid #ca8a04; }
.phase-ambient-voting { background: rgba(220, 38, 38, 0.22); color: #fecaca; border: 1px solid #dc2626; }

.morning-overlay,
.day-discussion-overlay {
  display: none !important;
}

.host-morning-summary,
.host-day-summary {
  margin-top: 12px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.host-phase-hint {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin: 8px 0 0;
  line-height: 1.5;
}

.table-center-hub {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 480px;
  background: rgba(18, 18, 26, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

.players-grid-radial {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  width: 100%;
  margin-top: 24px;
}

.player-seat-card {
  background: #14141d;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: all 0.2s;
  cursor: pointer;
}

.player-seat-card:hover {
  border-color: var(--border-medium);
  background: #1c1c28;
  transform: translateY(-2px);
}

.player-seat-card.is-speaker {
  border-color: #ffffff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.player-seat-card.is-dead {
  opacity: 0.4;
  filter: grayscale(1);
}

.player-seat-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-subtle);
  margin-bottom: 10px;
}

.player-seat-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: #ffffff;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.player-seat-status {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

/* Night Overlay / Curtain */
.night-curtain-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 5, 8, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  text-align: center;
}

.night-action-prompt-box {
  background: #13131b;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 32px;
  max-width: 520px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
}

/* Chat drawer & Log panel */
.bottom-panels-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.game-log-panel, .chat-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  height: 320px;
}

.log-scroll-area {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 8px;
}

.log-item-row {
  font-size: 0.84rem;
  color: #cbd5e1;
  display: flex;
  gap: 8px;
}

.log-time-stamp {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Synchronized Active Speaker & Timer Bar */
.active-speaker-bar {
  background: #12121a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.speaker-bar-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.speaker-bar-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-family: var(--f-mono);
  letter-spacing: 1px;
}

.speaker-bar-name {
  font-family: var(--f-display);
  font-size: 1.1rem;
  color: #ffffff;
  font-weight: 700;
}

.speaker-bar-timer-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.speaker-bar-timer-digits {
  font-family: var(--f-mono);
  font-size: 1.8rem;
  font-weight: 800;
  color: #f87171;
  text-shadow: 0 0 12px rgba(248, 113, 113, 0.4);
}

.speaker-bar-timer-sec {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--f-mono);
}

/* Integrated Host Control Panel inside Room */
.host-inline-panel {
  background: #0f0f15;
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 20px;
  padding: 22px 26px;
  margin-bottom: 24px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7), 0 0 30px rgba(225, 29, 72, 0.1);
}

.host-inline-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.host-inline-panel-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.discord-voice-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, #1a1030 0%, #12121a 100%);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  flex-wrap: wrap;
}

.discord-voice-banner-icon {
  font-size: 1.6rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.15);
  border-radius: 12px;
  flex-shrink: 0;
}

.discord-voice-banner-text {
  flex: 1;
  min-width: 200px;
}

.discord-voice-banner-text strong {
  display: block;
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.discord-voice-banner-text span {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.discord-voice-banner-text em {
  color: #a5b4fc;
  font-style: normal;
}

.discord-voice-banner-btn {
  font-size: 0.78rem;
  padding: 8px 16px;
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
}

.host-control-box--phase,
.host-control-box--timer {
  min-height: auto;
}

.host-lobby-count {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.host-lobby-count strong {
  color: #fff;
  font-size: 1.1rem;
}

.host-lobby-hint {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.host-phase-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.host-phase-label strong {
  color: #fff;
}

.host-phase-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.host-phase-buttons .btn {
  flex: 1;
  min-width: 130px;
}

.host-timer-display {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 14px;
}

.host-timer-digits {
  font-size: 3rem !important;
  margin-bottom: 0 !important;
  line-height: 1;
}

.host-timer-speaker {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.host-timer-speaker-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.host-timer-speaker strong {
  color: #fff;
  font-size: 0.9rem;
  word-break: break-word;
}

.host-night-summary {
  margin-top: 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 12px;
  padding: 12px 14px;
}

.host-night-summary-title {
  font-size: 0.72rem;
  color: #f87171;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.host-night-summary-list {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.host-night-summary-list li {
  font-size: 0.82rem;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.host-night-summary-list li span:last-child {
  color: #fff;
  font-weight: 600;
  text-align: right;
}

.host-moderation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 14px;
}

.host-mod-card {
  background: #14141d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.15s;
}

.host-mod-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.host-mod-card.is-dead {
  opacity: 0.5;
}

.host-mod-card-top {
  display: grid;
  grid-template-columns: 28px 44px 1fr auto;
  align-items: center;
  gap: 12px;
}

.host-mod-seat {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-muted);
}

.host-mod-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  object-fit: cover;
}

.host-mod-info {
  min-width: 0;
}

.host-mod-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
}

.host-mod-role {
  font-size: 0.72rem;
  margin-top: 3px;
  font-family: var(--f-mono);
  letter-spacing: 0.02em;
}

.host-mod-role.role-mafia { color: #f87171; }
.host-mod-role.role-town { color: #a1a1aa; }
.host-mod-role.role-hidden { color: var(--text-muted); }

.host-mod-status {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}

.host-mod-status.alive {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.host-mod-status.dead {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.host-mod-fouls-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.host-mod-fouls-label {
  font-size: 0.62rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.host-mod-card-actions {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.host-mod-btn {
  flex: 1;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-radius: 10px;
  padding: 0 10px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--f-ui, inherit);
  white-space: nowrap;
  line-height: 1;
}

.host-mod-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.host-mod-btn--foul-add {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.08);
}

.host-mod-btn--foul-add:hover {
  background: rgba(251, 191, 36, 0.18);
  color: #fde047;
}

.host-mod-btn--foul-rem {
  color: #94a3b8;
}

.host-mod-btn--kick {
  flex: 0 0 44px;
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
  font-size: 1rem;
  padding: 0;
}

.host-mod-btn--kick:hover {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
}

/* Chat tabs */
.chat-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.chat-tabs {
  display: flex;
  gap: 4px;
}

.chat-tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}

.chat-tab:hover {
  color: #fff;
  background: rgba(255,255,255,0.05);
}

.chat-tab.active {
  color: #fff;
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
}

.chat-tab--mafia.active {
  color: #f87171;
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
}

.chat-channel-badge {
  font-size: 0.68rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.chat-input-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.chat-input {
  flex: 1;
  font-size: 0.85rem;
  padding: 8px 12px;
  letter-spacing: 0;
}

.chat-send-btn {
  padding: 8px 14px;
  flex-shrink: 0;
}

.chat-msg--mafia {
  color: #fca5a5;
}

.chat-msg--host {
  color: #fbbf24;
}

.night-actions-section {
  margin-bottom: 16px;
}

.night-actions-section-title {
  font-size: 0.75rem;
  color: #f87171;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

@media (max-width: 900px) {
  .host-inline-panel-grid {
    grid-template-columns: 1fr;
  }
}

.host-control-box {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 18px;
}

.host-control-title {
  font-family: var(--f-mono);
  font-size: 0.74rem;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* ===== IMPROVED GAME UI ===== */

.game-phase-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, #12121a 0%, #1a1020 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px 24px;
  margin-bottom: 4px;
}

.phase-banner-icon {
  font-size: 2rem;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border-radius: 14px;
  flex-shrink: 0;
}

.phase-banner-title {
  font-family: var(--f-display);
  font-size: 1.25rem;
  color: #ffffff;
  font-weight: 700;
}

.phase-banner-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.phase-banner-stats {
  margin-left: auto;
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

.phase-stat-chip {
  text-align: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 8px 14px;
}

.phase-stat-value {
  font-family: var(--f-mono);
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.phase-stat-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 3px;
}

/* Host Dashboard Card */
.host-dashboard-card {
  background: linear-gradient(135deg, #1a0a0a 0%, #12121a 100%);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.08);
}

.host-dashboard-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.host-dashboard-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(239, 68, 68, 0.5);
  object-fit: cover;
}

.host-dashboard-label {
  font-size: 0.7rem;
  color: #f87171;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.host-dashboard-name {
  font-family: var(--f-display);
  font-size: 1.1rem;
  color: #ffffff;
  font-weight: 700;
}

.host-dashboard-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.host-dashboard-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Player Status Card */
.player-status-card {
  background: #111118;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.player-status-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.player-status-role {
  font-family: var(--f-display);
  font-size: 1.15rem;
  color: #ffffff;
  font-weight: 700;
}

.player-status-meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Improved seat cards */
.player-seat-card.is-me {
  border-color: rgba(99, 102, 241, 0.6);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.15);
}

.player-seat-card.is-nominated {
  border-color: #f59e0b;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.2);
}

.player-seat-card.is-speaker {
  border-color: #22c55e;
  box-shadow: 0 0 24px rgba(34, 197, 94, 0.25);
  transform: translateY(-3px);
}

.seat-foul-dots {
  display: flex;
  gap: 3px;
  justify-content: center;
  margin-top: 6px;
}

.foul-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
}

.foul-dot.active {
  background: #f59e0b;
  border-color: #f59e0b;
}

.foul-dot.danger {
  background: #ef4444;
  border-color: #ef4444;
}

.seat-nominated-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fbbf24;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.seat-number-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  font-family: var(--f-mono);
  background: rgba(0,0,0,0.5);
  padding: 2px 7px;
  border-radius: 6px;
  color: #ffffff;
}

.player-role-badge {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--f-mono);
}

.role-badge-mafia {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.role-badge-town {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

/* Night overlay improvements */
.night-action-target-btn {
  width: 100%;
  padding: 10px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  color: #ffffff;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.18s;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
}

.night-action-target-btn:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.25);
}

.night-action-target-btn.selected {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.night-target-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

/* Phase pill classes defined above */

/* Host panel phase button labels */
.host-phase-action-btn {
  flex: 1;
  min-width: 140px;
}

@media (max-width: 768px) {
  .bottom-panels-row {
    grid-template-columns: 1fr;
  }
  .game-phase-banner {
    flex-wrap: wrap;
  }
  .phase-banner-stats {
    margin-left: 0;
    width: 100%;
  }
  .host-dashboard-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .players-grid-radial {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}
