/* ============================================================
   FAMILY QUIZ — style.css
   ============================================================ */

:root {
  --purple:    #7C4DFF;
  --purple-dk: #5C35CC;
  --coral:     #FF6B6B;
  --coral-dk:  #E05555;
  --teal:      #4ECDC4;
  --yellow:    #FFE66D;
  --green:     #4CAF50;
  --orange:    #FF9800;
  --red:       #F44336;
  --blue:      #2196F3;

  --opt-a: #FF6B6B;
  --opt-b: #2196F3;
  --opt-c: #4CAF50;
  --opt-d: #FF9800;

  --bg-start: #667eea;
  --bg-end:   #764ba2;
  --card-bg:  #ffffff;
  --text:     #2d2d2d;
  --text-muted: #666;
  --radius:   16px;
  --shadow:   0 8px 32px rgba(0,0,0,0.18);
  --shadow-sm:0 3px 12px rgba(0,0,0,0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  /* Solid fallback fills the safe-area strips iOS Safari won't gradient-paint */
  background-color: var(--bg-start);
  min-height: 100%;
}
html, body {
  height: 100%;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
}
body {
  background: linear-gradient(135deg, var(--bg-start), var(--bg-end));
  min-height: 100vh;
}

/* ============================================================
   SCREENS
   ============================================================ */
.screen {
  display: none;
  min-height: 100vh;
  width: 100%;
  position: relative;
  z-index: 1;
}
.screen.active { display: block; }

.screen-inner {
  max-width: 520px;
  margin: 0 auto;
  padding: calc(24px + env(safe-area-inset-top)) 20px 40px;
}
.screen-inner.center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 100vh;
  justify-content: center;
  padding-top: max(40px, calc(20px + env(safe-area-inset-top)));
}

h2 {
  font-size: 1.7rem;
  font-weight: 800;
  color: white;
  margin-bottom: 20px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 10px;
}

/* ============================================================
   HOME SCREEN
   ============================================================ */
.logo { margin-bottom: 40px; }
.logo-icon { font-size: 4rem; margin-bottom: 8px; animation: bounce 1.5s infinite; }
.logo h1 {
  font-size: 3rem;
  font-weight: 900;
  color: white;
  text-shadow: 0 4px 16px rgba(0,0,0,0.3);
  letter-spacing: -1px;
}
.tagline { color: rgba(255,255,255,0.85); font-size: 1.1rem; margin-top: 6px; }

.home-actions { width: 100%; max-width: 340px; }
.or-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  margin: 12px 0;
}
.or-divider::before, .or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.3);
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: block;
  width: 100%;
  padding: 16px 24px;
  border: none;
  border-radius: var(--radius);
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s, opacity 0.1s;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-host {
  background: linear-gradient(135deg, #FF6B6B, #FF8E53);
  color: white;
  margin-bottom: 0;
}
.btn-host:hover:not(:disabled) { box-shadow: 0 6px 20px rgba(255,107,107,0.5); transform: translateY(-2px); }

.btn-join {
  background: linear-gradient(135deg, #4ECDC4, #44B3AB);
  color: white;
}
.btn-join:hover:not(:disabled) { box-shadow: 0 6px 20px rgba(78,205,196,0.5); transform: translateY(-2px); }

.btn-secondary {
  background: rgba(255,255,255,0.2);
  color: white;
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-secondary:hover { background: rgba(255,255,255,0.3); }

.btn-small {
  width: auto;
  padding: 10px 18px;
  font-size: 0.95rem;
}

.btn-tts {
  background: linear-gradient(135deg, #FFE66D, #FFB347);
  color: #333;
  width: auto;
  padding: 12px 24px;
  font-size: 1rem;
  flex-shrink: 0;
}
.btn-tts:hover { box-shadow: 0 6px 20px rgba(255,230,109,0.5); transform: translateY(-2px); }

.btn-skip {
  background: rgba(255,255,255,0.15);
  color: white;
  border: 2px solid rgba(255,255,255,0.4);
  font-size: 0.9rem;
}

.btn-end {
  background: rgba(244,67,54,0.18);
  color: rgba(255,200,195,1);
  border: 2px solid rgba(244,67,54,0.5);
  font-size: 0.9rem;
}
.btn-end:hover { background: rgba(244,67,54,0.32); border-color: rgba(244,67,54,0.8); }

/* ============================================================
   FORMS
   ============================================================ */
.setup-form {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.setup-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.setup-form input,
.setup-form select {
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.2s;
  background: white;
}
.setup-form input:focus,
.setup-form select:focus {
  outline: none;
  border-color: var(--purple);
}

.name-input-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.name-input-row input {
  flex: 1;
}
.btn-silly {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--teal), #35b2a8);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  flex-shrink: 0;
  padding: 0;
}
.btn-silly:hover { opacity: 0.85; }
.btn-silly:active { transform: scale(0.97); }

.setup-form small {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 400;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.back-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  cursor: pointer;
  padding: 8px 0;
  margin-bottom: 8px;
  display: inline-block;
  font-weight: 600;
}
.back-btn:hover { color: white; }

/* ============================================================
   GENERATING SCREEN
   ============================================================ */
.spinner {
  font-size: 4rem;
  animation: spin 2s linear infinite;
  margin-bottom: 20px;
}
@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.generating-topic {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--yellow);
  margin-bottom: 16px;
}
.generating-status {
  color: rgba(255,255,255,0.78);
  font-size: 0.95rem;
  font-style: italic;
  min-height: 1.5em;
  transition: opacity 0.35s ease;
}

.banned-card {
  max-width: 300px;
  text-align: center;
  padding: 36px 32px 28px;
  gap: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}
.banned-emoji { font-size: 3rem; line-height: 1; }
.banned-text {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  margin: 4px 0 8px;
}

/* ============================================================
   GAME CODE
   ============================================================ */
.code-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.code-label { font-size: 0.9rem; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; }
.game-code {
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  color: var(--purple);
  text-shadow: 0 2px 8px rgba(124,77,255,0.3);
  font-family: 'Courier New', monospace;
}
.code-hint { font-size: 0.85rem; color: var(--text-muted); margin-top: 8px; }

.share-row {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  align-items: center;
}
.share-input {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 10px;
  background: rgba(255,255,255,0.15);
  color: white;
  font-size: 0.85rem;
  min-width: 0;
}

.start-btn { margin-top: 8px; font-size: 1.3rem; padding: 20px; }
.start-hint { color: rgba(255,255,255,0.6); font-size: 0.85rem; text-align: center; margin-top: 8px; }

/* ============================================================
   PLAYER CHIPS
   ============================================================ */
.players-section { margin-bottom: 20px; }

.player-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.player-chip {
  background: rgba(255,255,255,0.2);
  color: white;
  border: 2px solid rgba(255,255,255,0.35);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
}
.player-chip.me {
  background: var(--yellow);
  color: #333;
  border-color: var(--yellow);
}

/* ============================================================
   SILLY NAME
   ============================================================ */
.silly-name-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
  width: 100%;
  max-width: 360px;
}
.silly-label { font-size: 0.9rem; color: var(--text-muted); font-weight: 600; margin-bottom: 8px; }
.silly-name {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--purple);
  margin-bottom: 8px;
}
.silly-hint { font-size: 0.85rem; color: var(--text-muted); }
.code-small { color: rgba(255,255,255,0.7); font-size: 0.9rem; margin-top: 16px; }

.waiting-pulse {
  color: white;
  font-size: 1.05rem;
  font-weight: 600;
  animation: pulse 2s ease-in-out infinite;
  padding: 12px;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

/* ============================================================
   QUESTION SCREEN
   ============================================================ */
.question-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: max(16px, env(safe-area-inset-top));
  max-width: 600px;
}

.question-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.q-progress {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}
.timer-bar {
  height: 12px;
  background: rgba(255,255,255,0.25);
  border-radius: 999px;
  overflow: hidden;
}
.timer-fill {
  height: 100%;
  width: 100%;
  border-radius: 999px;
  transition: width 0.1s linear, background-color 0.5s;
}
.timer-fill.green  { background: var(--green); }
.timer-fill.orange { background: var(--orange); }
.timer-fill.red    { background: var(--red); }
.timer-seconds {
  color: white;
  font-size: 1.1rem;
  font-weight: 800;
  font-family: 'Courier New', monospace;
  min-width: 2ch;
  text-align: right;
}

.question-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}
.q-text {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text);
}

.answer-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.option-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: none;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s, opacity 0.2s;
  color: white;
  text-align: left;
  box-shadow: var(--shadow-sm);
  min-height: 72px;
}
.option-btn:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.option-btn:active:not(:disabled) { transform: scale(0.97); }
.option-btn.dimmed { opacity: 0.4; }
.option-btn.chosen { transform: scale(1.04); box-shadow: 0 8px 28px rgba(0,0,0,0.3); opacity: 1 !important; }
.option-btn.correct-reveal { background: var(--green) !important; }

.option-btn.opt-a { background: linear-gradient(135deg, #FF6B6B, #FF8E53); }
.option-btn.opt-b { background: linear-gradient(135deg, #2196F3, #1565C0); }
.option-btn.opt-c { background: linear-gradient(135deg, #4CAF50, #2E7D32); }
.option-btn.opt-d { background: linear-gradient(135deg, #FF9800, #E65100); }

.opt-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 900;
  flex-shrink: 0;
}
.opt-text { line-height: 1.3; }

.waiting-indicator {
  background: rgba(255,255,255,0.15);
  color: white;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  animation: pulse 2s ease-in-out infinite;
}

.question-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  padding-bottom: max(20px, env(safe-area-inset-bottom));
}
.question-footer-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.host-panel { display: flex; gap: 10px; }

/* ============================================================
   RESULTS
   ============================================================ */
.correct-answer-card {
  background: linear-gradient(135deg, #43A047, #2E7D32);
  border-radius: var(--radius);
  padding: 20px 24px;
  color: white;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  transition: background 0.3s;
}
.correct-answer-card.wrong {
  background: linear-gradient(135deg, #E53935, #B71C1C);
}
.correct-answer-card.loading {
  background: linear-gradient(135deg, #546E7A, #37474F);
}
.correct-label { font-size: 0.9rem; opacity: 0.85; margin-bottom: 6px; }
.correct-answer-text { font-size: 1.4rem; font-weight: 800; margin-bottom: 8px; }
.answer-badge {
  display: inline-block;
  background: rgba(255,255,255,0.3);
  border-radius: 8px;
  padding: 2px 10px;
  margin-right: 6px;
  font-family: monospace;
}
.results-explanation { font-size: 0.9rem; opacity: 0.9; font-style: italic; }

.got-it-section { margin-bottom: 20px; }
.got-it-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.got-it-chip {
  background: rgba(255,255,255,0.2);
  color: white;
  border: 2px solid rgba(255,255,255,0.35);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
}
.got-it-chip.correct {
  background: rgba(56, 176, 102, 0.35);
  border-color: #38b066;
}
.got-it-chip.wrong {
  background: rgba(220, 53, 69, 0.3);
  border-color: rgba(220, 53, 69, 0.7);
}
.got-it-chip.me {
  outline: 3px solid white;
  outline-offset: 2px;
}
.no-one { color: rgba(255,255,255,0.7); font-style: italic; font-size: 0.95rem; }

/* All-correct / all-wrong reaction banner */
.reaction-banner {
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 14px;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}
.reaction-banner.all-correct {
  background: rgba(56, 176, 102, 0.25);
  border: 2px solid #38b066;
  color: #d4f5e5;
}
.reaction-banner.all-wrong {
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.9);
}

/* Results screen host panel — stacked, not inline */
#host-results-panel {
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
  width: 100%;
}
#host-results-panel #end-game-btn-r {
  width: auto;
  align-self: center;
}

/* ============================================================
   LEADERBOARD
   ============================================================ */
.leaderboard-section { margin-bottom: 24px; }
.leaderboard {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 8px;
}
.lb-row {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  gap: 12px;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s;
}
.lb-row:last-child { border-bottom: none; }
.lb-row.lb-me { background: #FFF8E1; }
.lb-rank { font-size: 1.2rem; min-width: 32px; }
.lb-name { flex: 1; font-weight: 700; font-size: 0.95rem; color: var(--text); }
.lb-score { font-size: 1rem; font-weight: 800; color: var(--purple); }

/* ============================================================
   FINAL SCREEN
   ============================================================ */
.confetti-header { font-size: 2rem; margin-bottom: 8px; letter-spacing: 4px; }
.winner-card {
  background: linear-gradient(135deg, #FFD700, #FF8C00);
  border-radius: var(--radius);
  padding: 24px 32px;
  color: white;
  margin-bottom: 24px;
  box-shadow: 0 8px 32px rgba(255,165,0,0.4);
  width: 100%;
  max-width: 400px;
  text-align: center;
}
.winner-label { font-size: 1rem; opacity: 0.9; margin-bottom: 6px; }
.winner-name { font-size: 2rem; font-weight: 900; margin-bottom: 4px; }
.winner-score { font-size: 1.1rem; opacity: 0.9; }

.final-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 340px;
  margin-top: 8px;
}

/* ============================================================
   DIFFICULTY SLIDER
   ============================================================ */
.diff-wrap { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }

.diff-slider {
  width: 100%;
  accent-color: var(--purple);
  height: 6px;
  cursor: pointer;
}

.diff-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 0 2px;
}

.diff-display {
  text-align: center;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--purple);
  padding: 4px 0;
}

/* ============================================================
   TTS STOP STATE
   ============================================================ */
.btn-tts-stop {
  background: linear-gradient(135deg, #f44336, #c62828) !important;
  color: white !important;
}

/* ============================================================
   QUESTION FEEDBACK
   ============================================================ */
.feedback-row {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.btn-skip.voted-up {
  background: rgba(76, 175, 80, 0.45);
  border-color: rgba(76, 175, 80, 0.9);
}
.btn-skip.voted-down {
  background: rgba(244, 67, 54, 0.45);
  border-color: rgba(244, 67, 54, 0.9);
}

/* TTS reading highlight — applied to .question-card and .option-btn while being read */
.tts-reading {
  outline: 4px solid #FFE66D !important;
  box-shadow: 0 0 0 8px rgba(255, 230, 109, 0.25) !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 480px) {
  .answer-options { grid-template-columns: 1fr; }
  .q-text { font-size: 1.15rem; }
  .option-btn { min-height: 60px; }
  .game-code { font-size: 2.8rem; }
  .form-row { grid-template-columns: 1fr; }
  .logo h1 { font-size: 2.4rem; }
}

@media (min-width: 600px) {
  .question-layout { padding-left: 40px; padding-right: 40px; }
}

/* ============================================================
   WHAT'S NEW BUTTON + MODAL
   ============================================================ */
.whats-new-btn {
  margin-top: 20px;
  background: none;
  border: 2px solid rgba(255,255,255,0.5);
  color: rgba(255,255,255,0.85);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}
.whats-new-btn:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.8);
  color: #fff;
}

/* Flying pizzas screensaver */
#flying-pizzas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
  display: none;
}
.flying-pizza {
  position: absolute;
  animation: flyPizza linear infinite;
  user-select: none;
  line-height: 1;
}
@keyframes flyPizza {
  from { transform: translate(0, 0) rotate(0deg); }
  to   { transform: translate(-135vw, 135vh) rotate(-360deg); }
}

/* Make the logo icon clickable in lunch mode */
.logo-icon { display: block; }

.tagline-sub {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  margin-bottom: 24px;
  text-align: center;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 480px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #eee;
}
.modal-header h2 {
  font-size: 1.3rem;
  margin: 0;
  color: var(--text);
  text-shadow: none;
}
.modal-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 8px;
  line-height: 1;
}
.modal-close:hover { background: #f0f0f0; color: var(--text); }
.modal-body {
  overflow-y: auto;
  padding: 20px 24px 24px;
}
.version-block {
  margin-bottom: 24px;
}
.version-block:last-child { margin-bottom: 0; }
.version-label {
  font-size: 1rem;
  font-weight: 800;
  color: var(--purple);
  margin-bottom: 2px;
}
.version-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.version-changes {
  list-style: none;
  padding: 0;
}
.version-changes li {
  font-size: 0.9rem;
  color: var(--text);
  padding: 3px 0 3px 18px;
  position: relative;
}
.version-changes li::before {
  content: '•';
  position: absolute;
  left: 4px;
  color: var(--teal);
  font-weight: bold;
}

/* ============================================================
   RECENT SESSIONS PANEL
   ============================================================ */
.recent-sessions {
  margin-top: 24px;
  width: 100%;
  max-width: 400px;
}
.recent-sessions-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  text-align: left;
}
.recent-session-row {
  background: rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 9px 14px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  backdrop-filter: blur(4px);
}
.rs-topic {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}
.rs-meta {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.8);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}
.rs-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.rs-badge-lobby        { background: rgba(255,255,255,0.25); color: #fff; }
.rs-badge-question     { background: var(--green); color: #fff; }
.rs-badge-results      { background: var(--orange); color: #fff; }
.rs-badge-finished     { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.7); }
.rs-badge-ended-manual { background: rgba(244,67,54,0.35); color: rgba(255,200,195,1); }
.rs-badge-ended-auto   { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.5); }
