/* ============================================================
   STREAM-READY DESIGN SYSTEM V4 - JAWLAH-STYLE 3-COLUMN LAYOUT
   Dark theme · Grid background · Purple accents
   Matches jawlah.live reference screenshots
   ============================================================ */

/* ===================== CSS VARIABLES ===================== */
:root {
  --sr-bg: #0B0A1A;
  --sr-bg-alt: #0F0E24;
  --sr-surface: rgba(16, 14, 36, 0.95);
  --sr-surface-2: rgba(22, 18, 50, 0.92);
  --sr-surface-3: rgba(28, 24, 62, 0.88);
  --sr-border: rgba(255,255,255,0.06);
  --sr-border-active: rgba(168,85,247,0.4);
  --sr-purple: #A855F7;
  --sr-purple-dark: #7C3AED;
  --sr-purple-glow: rgba(168,85,247,0.15);
  --sr-gold: #E8B730;
  --sr-text: rgba(255,255,255,0.94);
  --sr-text-secondary: rgba(255,255,255,0.55);
  --sr-text-muted: rgba(255,255,255,0.3);
  --sr-correct: #10B981;
  --sr-wrong: #EF4444;
  --sr-radius: 16px;
  --sr-radius-sm: 12px;
  --sr-radius-xs: 8px;
  --sr-shadow: 0 4px 20px rgba(0,0,0,0.3);
  --sr-transition: all 0.25s ease;
  --sr-font: 'Cairo', 'Poppins', sans-serif;
}

/* ===================== PERFORMANCE ===================== */
.gc-card, .jawlah-chat-msg, .jawlah-player-item { contain: layout style; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ===================== GAMES HUB ===================== */
.games-hub-section {
  padding: 100px 24px 40px;
  max-width: 1400px;
  margin: 0 auto;
}
.games-hub-header {
  text-align: center;
  margin-bottom: 32px;
}
.games-hub-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: white;
  margin-bottom: 8px;
}
.gold-text { color: var(--sr-gold); }
.games-hub-subtitle {
  color: var(--sr-text-secondary);
  font-size: 1rem;
  margin-bottom: 20px;
}
.games-hub-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.games-hub-stat { text-align: center; }
.games-hub-stat-num { display: block; font-size: 1.4rem; font-weight: 800; color: white; }
.games-hub-stat-label { font-size: 0.75rem; color: var(--sr-text-secondary); }
.games-hub-stat-divider { width: 1px; height: 30px; background: var(--sr-border); }

/* Filter Bar */
.games-filter-bar {
  display: flex;
  gap: 8px;
  padding: 12px 0;
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.games-filter-bar::-webkit-scrollbar { display: none; }
.games-filter-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 50px;
  background: var(--sr-surface);
  border: 1px solid var(--sr-border);
  color: var(--sr-text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--sr-transition);
}
.games-filter-chip:hover { border-color: var(--sr-border-active); color: white; }
.games-filter-chip.active {
  background: var(--sr-purple);
  border-color: var(--sr-purple);
  color: white;
}
.games-filter-chip-count {
  background: rgba(255,255,255,0.15);
  padding: 1px 8px;
  border-radius: 20px;
  font-size: 0.75rem;
}

/* Game Cards Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.gc-card {
  background: var(--sr-surface);
  border-radius: var(--sr-radius);
  border: 1px solid var(--sr-border);
  overflow: hidden;
  cursor: pointer;
  transition: var(--sr-transition);
  animation: fadeInUp 0.4s ease both;
}
.gc-card:hover {
  transform: translateY(-4px);
  border-color: var(--sr-border-active);
  box-shadow: 0 8px 30px rgba(168,85,247,0.1);
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.gc-image-wrap {
  position: relative;
  height: 160px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(168,85,247,0.15), rgba(16,14,36,0.9));
}
.gc-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gc-card:hover .gc-image { transform: scale(1.05); }
.gc-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,10,26,0.9) 0%, transparent 60%);
}
.gc-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  z-index: 2;
}
.gc-badge-new { background: var(--sr-purple); color: white; }
.gc-badge-ramadan { background: rgba(232,183,48,0.2); color: var(--sr-gold); }
.gc-platforms {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 4px;
  z-index: 2;
}
.gc-platform {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  backdrop-filter: blur(8px);
}
.gc-platform-twitch { background: rgba(145,70,255,0.3); color: #9146FF; }
.gc-platform-kick { background: rgba(83,252,24,0.15); color: #53FC18; font-weight: 900; font-size: 0.65rem; }
.gc-body { padding: 16px; }
.gc-title { font-size: 1.05rem; font-weight: 800; color: white; margin-bottom: 6px; }
.gc-desc { font-size: 0.8rem; color: var(--sr-text-secondary); line-height: 1.5; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gc-footer { display: flex; justify-content: space-between; align-items: center; }
.gc-players { font-size: 0.75rem; color: var(--sr-text-muted); display: flex; align-items: center; gap: 4px; }

/* ===================== JAWLAH GAME PAGE - 3-COLUMN LAYOUT ===================== */
.jawlah-game-layout {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--sr-bg);
  z-index: 60;
  overflow: hidden;
}

/* Header */
.jawlah-game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 48px;
  min-height: 48px;
  background: var(--sr-surface);
  border-bottom: 1px solid var(--sr-border);
  z-index: 10;
}
.jawlah-header-left, .jawlah-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 200px;
}
.jawlah-header-right { justify-content: flex-end; }
.jawlah-header-center {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1rem;
  color: white;
}
.jawlah-header-center i { color: var(--sr-purple); }
.jawlah-header-label {
  font-size: 0.78rem;
  color: var(--sr-text-muted);
  font-weight: 500;
}
.jawlah-header-separator {
  width: 1px;
  height: 20px;
  background: var(--sr-border);
}
.jawlah-back-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--sr-border);
  color: var(--sr-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--sr-transition);
}
.jawlah-back-btn:hover { background: rgba(255,255,255,0.1); color: white; }
.jawlah-player-count {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--sr-purple);
  font-weight: 700;
}
.jawlah-game-title { color: white; }

/* Body: 3 columns */
.jawlah-game-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* Sidebars */
.jawlah-sidebar {
  width: 300px;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  background: var(--sr-surface);
  border-right: 1px solid var(--sr-border);
}
.jawlah-sidebar-right {
  border-right: none;
  border-left: 1px solid var(--sr-border);
}
.jawlah-sidebar-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  font-weight: 700;
  font-size: 0.9rem;
  color: white;
  border-bottom: 1px solid var(--sr-border);
}
.jawlah-sidebar-header i { color: var(--sr-purple); }

/* Tabs */
.jawlah-sidebar-tabs {
  display: flex;
  border-bottom: 1px solid var(--sr-border);
}
.jawlah-tab {
  flex: 1;
  padding: 10px 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sr-text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: var(--sr-transition);
}
.jawlah-tab:hover { color: var(--sr-text-secondary); }
.jawlah-tab.active {
  color: var(--sr-purple);
  border-bottom-color: var(--sr-purple);
}
.jawlah-tab-content {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(168,85,247,0.2) transparent;
}
.jawlah-tab-content.hidden { display: none; }

/* Chat Messages */
.jawlah-chat-messages, .jawlah-log-messages {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 100%;
}
.jawlah-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  text-align: center;
  color: var(--sr-text-muted);
  gap: 8px;
}
.jawlah-empty-state i { font-size: 2rem; opacity: 0.3; }
.jawlah-empty-state p { font-size: 0.82rem; }
.jawlah-empty-hint { font-size: 0.72rem !important; color: var(--sr-text-muted); }

.jawlah-chat-msg {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--sr-radius-xs);
  background: rgba(255,255,255,0.02);
  transition: background 0.2s;
  animation: chatSlide 0.3s ease;
}
@keyframes chatSlide {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}
.jawlah-chat-msg:hover { background: rgba(255,255,255,0.04); }
.jawlah-chat-msg.correct { background: rgba(16,185,129,0.08); border-left: 3px solid var(--sr-correct); }
.jawlah-chat-msg.wrong { background: rgba(239,68,68,0.06); }
.jawlah-chat-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.jawlah-chat-avatar-fallback {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}
.jawlah-chat-body { flex: 1; min-width: 0; }
.jawlah-chat-name { font-size: 0.75rem; font-weight: 700; margin-left: 4px; }
.jawlah-chat-text { font-size: 0.8rem; color: var(--sr-text); display: block; word-break: break-word; }
.jawlah-chat-correct { color: var(--sr-correct); font-size: 0.85rem; }
.jawlah-chat-wrong { color: var(--sr-wrong); font-size: 0.85rem; }

/* Log Messages */
.jawlah-log-msg {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  font-size: 0.78rem;
  color: var(--sr-text-secondary);
  border-radius: var(--sr-radius-xs);
}
.jawlah-log-msg i { font-size: 0.7rem; }
.jawlah-log-info i { color: #3B82F6; }
.jawlah-log-success i { color: var(--sr-correct); }
.jawlah-log-warning i { color: #F59E0B; }
.jawlah-log-error i { color: var(--sr-wrong); }
.jawlah-log-time { margin-right: auto; font-size: 0.68rem; color: var(--sr-text-muted); }

/* Sidebar Footer */
.jawlah-sidebar-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-top: 1px solid var(--sr-border);
  background: rgba(0,0,0,0.15);
}
.jawlah-footer-btn {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--sr-border);
  color: var(--sr-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.72rem;
  transition: var(--sr-transition);
}
.jawlah-footer-btn:hover { color: white; background: rgba(255,255,255,0.1); }
.jawlah-footer-label {
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  color: var(--sr-text-muted);
}

/* Center Game Area */
.jawlah-game-center {
  flex: 1;
  position: relative;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.jawlah-grid-bg {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(168,85,247,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168,85,247,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}
.jawlah-game-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Players List in Sidebar */
.jawlah-players-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: white;
  border-bottom: 1px solid var(--sr-border);
}
.jawlah-players-count { font-size: 0.72rem; color: var(--sr-text-muted); }
.jawlah-players-list { padding: 8px; }
.jawlah-player-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--sr-radius-xs);
  transition: background 0.2s;
}
.jawlah-player-item:hover { background: rgba(255,255,255,0.03); }
.jawlah-player-rank {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(168,85,247,0.15);
  color: var(--sr-purple);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.jawlah-player-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.jawlah-player-avatar-fallback {
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}
.jawlah-player-name {
  font-size: 0.82rem;
  font-weight: 700;
  flex: 1;
}
.jawlah-player-score {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--sr-gold);
}

/* Settings Panel */
.jawlah-settings-list {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.jawlah-setting-item label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}
.jawlah-setting-hint {
  font-size: 0.7rem;
  color: var(--sr-text-muted);
  margin-top: 4px;
}
.jawlah-slider-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.jawlah-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.08);
  outline: none;
}
.jawlah-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--sr-purple);
  cursor: pointer;
  box-shadow: 0 0 8px rgba(168,85,247,0.3);
}
.jawlah-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--sr-purple);
  cursor: pointer;
  border: none;
}
.jawlah-slider-val {
  min-width: 32px;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--sr-purple);
}
.jawlah-setting-divider {
  height: 1px;
  background: var(--sr-border);
}

/* Radio Group */
.jawlah-radio-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.jawlah-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--sr-radius-xs);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--sr-border);
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--sr-text-secondary);
  transition: var(--sr-transition);
}
.jawlah-radio:hover { border-color: var(--sr-border-active); }
.jawlah-radio.active {
  border-color: var(--sr-purple);
  background: rgba(168,85,247,0.08);
  color: white;
}
.jawlah-radio input { display: none; }

/* Toggle */
.jawlah-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}
.jawlah-toggle-label { font-size: 0.78rem; color: var(--sr-text-secondary); }
.jawlah-toggle {
  position: relative;
  width: 42px;
  height: 22px;
  cursor: pointer;
}
.jawlah-toggle input { display: none; }
.jawlah-toggle-slider {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  border-radius: 11px;
  transition: 0.3s;
}
.jawlah-toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  top: 2px;
  left: 2px;
  transition: 0.3s;
}
.jawlah-toggle input:checked + .jawlah-toggle-slider { background: var(--sr-purple); }
.jawlah-toggle input:checked + .jawlah-toggle-slider::before { transform: translateX(20px); }

/* Difficulty Cards */
.jawlah-difficulty-cards {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.jawlah-diff-card {
  display: flex;
  flex-direction: column;
  padding: 10px 14px;
  border-radius: var(--sr-radius-xs);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--sr-border);
  cursor: pointer;
  text-align: right;
  transition: var(--sr-transition);
}
.jawlah-diff-card:hover { border-color: var(--sr-border-active); }
.jawlah-diff-card.active {
  border-color: var(--sr-purple);
  background: rgba(168,85,247,0.1);
}
.jawlah-diff-card.active .jawlah-diff-icon { color: var(--sr-purple); }
.jawlah-diff-icon {
  font-size: 1rem;
  margin-bottom: 2px;
  color: var(--sr-text-muted);
}
.jawlah-diff-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: white;
}
.jawlah-diff-desc {
  font-size: 0.7rem;
  color: var(--sr-text-muted);
}

/* Reset Button */
.jawlah-btn-reset {
  margin: 16px 14px;
  padding: 10px 16px;
  border-radius: var(--sr-radius-xs);
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.2);
  color: #EF4444;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--sr-transition);
  text-align: center;
}
.jawlah-btn-reset:hover { background: rgba(239,68,68,0.15); }

/* Buttons */
.jawlah-btn-primary {
  padding: 10px 20px;
  border-radius: var(--sr-radius-xs);
  background: var(--sr-purple);
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--sr-transition);
}
.jawlah-btn-primary:hover { background: var(--sr-purple-dark); transform: translateY(-1px); }
.jawlah-input {
  padding: 8px 14px;
  border-radius: var(--sr-radius-xs);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--sr-border);
  color: white;
  font-size: 0.85rem;
  outline: none;
  transition: var(--sr-transition);
}
.jawlah-input:focus { border-color: var(--sr-purple); }

/* Rooms */
.jawlah-rooms-card {
  background: var(--sr-surface);
  border-radius: var(--sr-radius);
  border: 1px solid var(--sr-border);
  padding: 20px;
  margin-bottom: 20px;
  width: 100%;
  max-width: 600px;
}
.jawlah-rooms-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.jawlah-rooms-join {
  display: flex;
  gap: 6px;
  flex: 1;
}
.jawlah-btn-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--sr-radius-xs);
  background: var(--sr-purple);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===================== GAME INTERNAL STYLES ===================== */
/* Waiting Room Modal (shows inside game-container) */
.jawlah-waiting-modal {
  background: var(--sr-surface);
  border-radius: var(--sr-radius);
  border: 1px solid var(--sr-border);
  padding: 40px;
  text-align: center;
  max-width: 500px;
  margin: auto;
}
.jawlah-waiting-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(168,85,247,0.15);
  color: var(--sr-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 16px;
}
.jawlah-waiting-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 8px;
}
.jawlah-waiting-subtitle {
  font-size: 0.88rem;
  color: var(--sr-text-secondary);
  margin-bottom: 24px;
}
.jawlah-waiting-steps {
  background: rgba(168,85,247,0.06);
  border: 1px solid rgba(168,85,247,0.15);
  border-radius: var(--sr-radius-sm);
  padding: 16px;
  margin-bottom: 24px;
}
.jawlah-waiting-steps h4 {
  color: var(--sr-purple);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.jawlah-waiting-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--sr-radius-xs);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--sr-border);
  margin-bottom: 6px;
  text-align: right;
}
.jawlah-waiting-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--sr-purple);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.jawlah-waiting-step-text {
  font-size: 0.82rem;
  color: var(--sr-text);
}
.jawlah-waiting-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.jawlah-btn-secondary {
  padding: 10px 20px;
  border-radius: var(--sr-radius-xs);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--sr-border);
  color: var(--sr-text-secondary);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--sr-transition);
}
.jawlah-btn-secondary:hover { background: rgba(255,255,255,0.08); color: white; }

/* Timer */
.jawlah-timer {
  font-size: 3rem;
  font-weight: 900;
  color: var(--sr-purple);
  text-shadow: 0 0 20px rgba(168,85,247,0.3);
  text-align: center;
  margin: 10px 0;
}
.jawlah-timer.danger { color: var(--sr-wrong); text-shadow: 0 0 20px rgba(239,68,68,0.3); }

/* Question Text */
.jawlah-question {
  font-size: 1.8rem;
  font-weight: 800;
  color: white;
  text-align: center;
  margin: 16px 0;
  line-height: 1.4;
}

/* Answer Options */
.jawlah-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}
.jawlah-option {
  padding: 16px;
  border-radius: var(--sr-radius-sm);
  background: var(--sr-surface-2);
  border: 2px solid var(--sr-border);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: var(--sr-transition);
}
.jawlah-option:hover {
  border-color: var(--sr-purple);
  background: rgba(168,85,247,0.1);
}
.jawlah-option.correct {
  border-color: var(--sr-correct);
  background: rgba(16,185,129,0.15);
  animation: correctPulse 0.6s ease;
}
.jawlah-option.wrong {
  border-color: var(--sr-wrong);
  background: rgba(239,68,68,0.1);
  animation: wrongShake 0.5s ease;
}
@keyframes correctPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}
@keyframes wrongShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* Results */
.jawlah-results {
  text-align: center;
  padding: 24px;
}
.jawlah-results-title {
  font-size: 2rem;
  font-weight: 900;
  color: var(--sr-gold);
  margin-bottom: 16px;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .jawlah-sidebar-left { display: none; }
  .jawlah-sidebar-right { width: 260px; min-width: 260px; }
}
@media (max-width: 768px) {
  .jawlah-sidebar-left, .jawlah-sidebar-right { display: none; }
  .jawlah-game-container { padding: 16px; }
  .jawlah-question { font-size: 1.3rem; }
  .jawlah-timer { font-size: 2.2rem; }
  .jawlah-options { grid-template-columns: 1fr; }
  .games-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
  .games-hub-section { padding: 80px 14px 30px; }
  .games-hub-title { font-size: 1.6rem; }
}
@media (max-width: 480px) {
  .gc-image-wrap { height: 120px; }
  .jawlah-game-header { padding: 0 10px; }
  .jawlah-header-left, .jawlah-header-right { min-width: auto; }
  .jawlah-header-label { display: none; }
}

/* ===================== CHAT ANSWERS PANEL V7 OVERRIDE ===================== */
.chat-answers-panel-v7 {
  background: var(--sr-surface);
  border-radius: var(--sr-radius);
  border: 1px solid var(--sr-border);
  overflow: hidden;
  margin: 16px 0;
}
.chat-answers-header-v7 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--sr-border);
  background: rgba(168,85,247,0.05);
}
.ca-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: white;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ca-title i { color: var(--sr-purple); }
.ca-count {
  min-width: 24px;
  height: 24px;
  border-radius: 12px;
  background: var(--sr-purple);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
}
.chat-answers-body-v7 {
  max-height: 350px;
  overflow-y: auto;
  padding: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(168,85,247,0.2) transparent;
}
.ca-item-v7 {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--sr-radius-xs);
  transition: background 0.2s;
  animation: chatSlide 0.3s ease;
}
.ca-item-v7:hover { background: rgba(255,255,255,0.03); }
.ca-item-v7.correct { background: rgba(16,185,129,0.06); border-right: 3px solid var(--sr-correct); }
.ca-item-v7.wrong { background: rgba(239,68,68,0.04); }
.ca-item-v7.latest { border-right: 3px solid var(--sr-purple); }
.ca-avatar-v7 {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  color: white;
  overflow: hidden;
  flex-shrink: 0;
}
.ca-avatar-v7 img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.ca-info-v7 { flex: 1; min-width: 0; }
.ca-name-v7 { font-size: 0.78rem; font-weight: 700; }
.ca-answer-v7 { font-size: 0.85rem; color: var(--sr-text); display: block; word-break: break-word; }
.ca-badge-v7 {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}
.ca-badge-live {
  background: var(--sr-purple);
  color: white;
  animation: livePulse 1.5s ease infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
.ca-empty-v7 {
  text-align: center;
  padding: 30px;
  color: var(--sr-text-muted);
}
.ca-empty-icon { font-size: 2rem; margin-bottom: 8px; opacity: 0.3; }
.ca-empty-v7 p { font-size: 0.82rem; }
.ca-empty-hint { font-size: 0.7rem; color: var(--sr-text-muted); margin-top: 4px; }
