/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #6c5ce7;
  --primary-dark: #5a4bd1;
  --secondary: #00cec9;
  --accent: #fd79a8;
  --success: #00b894;
  --danger: #d63031;
  --warning: #fdcb6e;
  --dark: #2d3436;
  --light: #f5f6fa;
  --white: #ffffff;
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.15);
  --radius: 16px;
  --radius-sm: 10px;

  /* Kahoot-style answer colors */
  --answer-red: #e21b3c;
  --answer-blue: #1368ce;
  --answer-yellow: #d89e00;
  --answer-green: #26890c;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  color: var(--dark);
  -webkit-font-smoothing: antialiased;
}

/* ===== LAYOUT ===== */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  padding-bottom: 70px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-lg);
}

.center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-align: center;
}

/* ===== TYPOGRAPHY ===== */
h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  margin-bottom: 10px;
}

h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.logo {
  font-size: 3rem;
  margin-bottom: 10px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  gap: 8px;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  width: 100%;
  max-width: 350px;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(108, 92, 231, 0.5);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(0, 206, 201, 0.4);
}

.btn-success {
  background: var(--success);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(0, 184, 148, 0.4);
}

.btn-danger {
  background: var(--danger);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(214, 48, 49, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.9rem;
  max-width: none;
  width: auto;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  width: 100%;
}

/* ===== FORMS ===== */
.form-group {
  margin-bottom: 20px;
  text-align: left;
  width: 100%;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.95rem;
  color: var(--dark);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s;
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--primary);
}

.form-group input::placeholder {
  color: #aaa;
}

/* ===== TOPIC SELECTOR ===== */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.topic-card {
  background: var(--light);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.topic-card:hover {
  border-color: var(--primary);
  background: #f0edff;
}

.topic-card.selected {
  border-color: var(--primary);
  background: #ede8ff;
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
}

.topic-card .icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 6px;
}

.topic-card .name {
  font-weight: 600;
  font-size: 0.9rem;
}

.topic-card .count {
  font-size: 0.75rem;
  color: #888;
  margin-top: 2px;
}

/* ===== QUESTION LIST (Admin) ===== */
.question-list {
  max-height: 400px;
  overflow-y: auto;
  margin-bottom: 20px;
}

.question-item {
  background: var(--light);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.question-item .q-number {
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.question-item .q-content {
  flex: 1;
}

.question-item .q-text {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.question-item .q-type {
  font-size: 0.8rem;
  color: #888;
}

.question-item .q-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.question-item .q-actions button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 4px;
  border-radius: 6px;
  transition: background 0.2s;
}

.question-item .q-actions button:hover {
  background: rgba(0, 0, 0, 0.08);
}

/* ===== GAME CODE DISPLAY ===== */
.game-code {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: 8px;
  color: var(--primary);
  background: var(--light);
  padding: 20px 30px;
  border-radius: var(--radius);
  display: inline-block;
  margin: 15px 0;
}

/* ===== PLAYER LIST ===== */
.player-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 15px 0;
  justify-content: center;
}

.player-chip {
  background: var(--light);
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.player-chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
}

/* ===== ANSWER BUTTONS (Kahoot-style) ===== */
.answer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0;
  width: 100%;
}

.answer-btn {
  padding: 20px 16px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  word-break: break-word;
}

.answer-btn:active {
  transform: scale(0.96);
}

.answer-btn:nth-child(1) { background: var(--answer-red); }
.answer-btn:nth-child(2) { background: var(--answer-blue); }
.answer-btn:nth-child(3) { background: var(--answer-yellow); }
.answer-btn:nth-child(4) { background: var(--answer-green); }

.answer-btn.selected {
  outline: 4px solid var(--white);
  outline-offset: -4px;
}

.answer-btn.correct {
  outline: 4px solid var(--white);
  outline-offset: -4px;
  opacity: 1 !important;
}

.answer-btn.wrong {
  opacity: 0.4;
}

.answer-btn:disabled {
  cursor: default;
  transform: none;
}

/* True/False layout */
.answer-grid.tf {
  grid-template-columns: 1fr 1fr;
}

.answer-grid.tf .answer-btn:nth-child(1) { background: var(--answer-green); }
.answer-grid.tf .answer-btn:nth-child(2) { background: var(--answer-red); }

/* ===== TIMER ===== */
.timer-bar-container {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  overflow: hidden;
  margin: 15px 0;
}

.timer-bar {
  height: 100%;
  background: var(--white);
  border-radius: 4px;
  transition: width 0.1s linear;
}

.timer-text {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
}

.timer-text.urgent {
  color: var(--danger);
  animation: pulse 0.5s infinite alternate;
}

/* ===== QUESTION DISPLAY ===== */
.question-header {
  text-align: center;
  margin-bottom: 20px;
}

.question-counter {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}

.question-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ===== RESULT FEEDBACK ===== */
.result-feedback {
  text-align: center;
  padding: 30px;
}

.result-icon {
  font-size: 4rem;
  margin-bottom: 10px;
}

.result-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 5px;
}

.result-points {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
}

/* ===== LEADERBOARD ===== */
.leaderboard {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.leaderboard-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  color: var(--white);
  animation: slideIn 0.3s ease-out both;
}

.leaderboard-item:nth-child(1) {
  background: rgba(253, 203, 110, 0.3);
  font-size: 1.1rem;
}

.leaderboard-item:nth-child(2) {
  background: rgba(200, 200, 200, 0.25);
}

.leaderboard-item:nth-child(3) {
  background: rgba(205, 127, 50, 0.25);
}

.leaderboard-rank {
  font-weight: 800;
  font-size: 1.2rem;
  width: 35px;
  text-align: center;
  flex-shrink: 0;
}

.leaderboard-name {
  flex: 1;
  font-weight: 600;
  margin-left: 10px;
}

.leaderboard-score {
  font-weight: 700;
  font-size: 1.1rem;
}

/* ===== ANSWER DISTRIBUTION ===== */
.distribution {
  margin: 15px 0;
}

.dist-bar-row {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  gap: 10px;
}

.dist-label {
  width: 30px;
  text-align: center;
  font-weight: 700;
  color: var(--white);
  font-size: 0.85rem;
}

.dist-bar {
  flex: 1;
  height: 30px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.dist-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.5s ease;
  display: flex;
  align-items: center;
  padding-left: 10px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--white);
  min-width: fit-content;
}

.dist-fill.correct {
  background: var(--success);
}

.dist-fill.wrong {
  background: rgba(255, 255, 255, 0.3);
}

.dist-count {
  width: 30px;
  text-align: center;
  font-weight: 600;
  color: var(--white);
  font-size: 0.9rem;
}

/* ===== WAITING SCREEN ===== */
.waiting {
  text-align: center;
}

.waiting .dots::after {
  content: '';
  animation: dots 1.5s infinite;
}

@keyframes dots {
  0%, 20% { content: '.'; }
  40% { content: '..'; }
  60%, 100% { content: '...'; }
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 20px auto;
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.modal {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.modal h2 {
  margin-bottom: 20px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}

.modal-actions .btn {
  width: auto;
  max-width: none;
}

/* ===== TROPHY ANIMATION (Final) ===== */
.trophy {
  font-size: 5rem;
  animation: bounce 1s ease infinite;
}

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

/* ===== ANIMATIONS ===== */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.3s ease-out;
}

/* ===== UTILITY ===== */
.hidden { display: none !important; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.text-white { color: var(--white); }
.text-center { text-align: center; }
.text-muted { color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; }

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-info {
  background: rgba(108, 92, 231, 0.15);
  color: var(--primary);
}

.error-message {
  color: var(--danger);
  font-size: 0.9rem;
  margin-top: 8px;
  font-weight: 500;
}

/* ===== PODIUM REVEAL ===== */
.podium-container {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.podium-slot {
  width: 100%;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.podium-slot.revealed {
  opacity: 1;
  transform: scale(1);
}

.podium-card {
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--white);
}

.podium-card.first {
  background: linear-gradient(135deg, rgba(253, 203, 110, 0.35), rgba(255, 215, 0, 0.2));
  border: 2px solid rgba(255, 215, 0, 0.5);
  padding: 24px 28px;
}

.podium-card.second {
  background: linear-gradient(135deg, rgba(200, 200, 200, 0.25), rgba(192, 192, 192, 0.15));
  border: 2px solid rgba(192, 192, 192, 0.4);
}

.podium-card.third {
  background: linear-gradient(135deg, rgba(205, 127, 50, 0.25), rgba(205, 127, 50, 0.15));
  border: 2px solid rgba(205, 127, 50, 0.4);
}

.podium-medal {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.podium-card.first .podium-medal {
  font-size: 3rem;
}

.podium-info {
  flex: 1;
}

.podium-place {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.7;
  margin-bottom: 2px;
}

.podium-name {
  font-size: 1.3rem;
  font-weight: 800;
}

.podium-card.first .podium-name {
  font-size: 1.6rem;
}

.podium-pts {
  font-size: 1.1rem;
  font-weight: 700;
  opacity: 0.85;
}

.podium-drumroll {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
  animation: pulse 0.5s infinite alternate;
}

/* ===== QUESTION NUMBER SPLASH ===== */
.question-splash {
  text-align: center;
}

.splash-number {
  font-size: 4rem;
  font-weight: 900;
  color: var(--white);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  animation: splashIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.splash-label {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 5px;
}

@keyframes splashIn {
  from { opacity: 0; transform: scale(0.3); }
  to { opacity: 1; transform: scale(1); }
}

/* ===== NEXT QUESTION INDICATOR ===== */
.next-question-indicator {
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
}

.next-question-indicator .next-num {
  background: var(--primary);
  padding: 2px 10px;
  border-radius: 50px;
  font-weight: 800;
}

/* ===== STREAK BADGES ===== */
.streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 6px;
  animation: fadeIn 0.3s ease-out;
}

.streak-badge.hot {
  background: rgba(253, 203, 110, 0.3);
  color: #fdcb6e;
}

.streak-badge.fire {
  background: rgba(225, 112, 85, 0.35);
  color: #e17055;
}

.streak-badge.legendary {
  background: rgba(214, 48, 49, 0.35);
  color: #ff6b6b;
  animation: pulse 0.6s infinite alternate, fadeIn 0.3s ease-out;
}

/* ===== PLAYER ANSWER BREAKDOWN ===== */
.answer-breakdown {
  width: 100%;
  max-width: 500px;
  margin: 15px auto;
}

.breakdown-option {
  margin-bottom: 12px;
}

.breakdown-option-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--white);
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.breakdown-players {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding-left: 22px;
}

.breakdown-player {
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white);
}

.breakdown-player.correct-pick {
  background: rgba(0, 184, 148, 0.4);
}

.breakdown-player.wrong-pick {
  background: rgba(255, 255, 255, 0.15);
}

.breakdown-no-answer {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
  padding-left: 22px;
}

/* ===== EMOTE SYSTEM ===== */
.emote-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 8px 12px;
  display: flex;
  gap: 8px;
  z-index: 50;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.emote-bar::-webkit-scrollbar {
  display: none;
}

.emote-btn {
  font-size: 1.6rem;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  border-radius: 50%;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.15s;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.emote-btn:active {
  transform: scale(1.3);
  background: rgba(255, 255, 255, 0.25);
}

.emote-btn.cooldown {
  opacity: 0.4;
  pointer-events: none;
}

.emote-float {
  position: fixed;
  font-size: 2.2rem;
  pointer-events: none;
  z-index: 60;
  animation: emoteFloat 2s ease-out forwards;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.emote-float .emote-sender {
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--white);
  background: rgba(0, 0, 0, 0.5);
  padding: 1px 6px;
  border-radius: 50px;
  white-space: nowrap;
}

@keyframes emoteFloat {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-120px) scale(1.4);
  }
}

/* ===== EMOJI EDITOR (Admin) ===== */
.emoji-editor {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.emoji-editor-item {
  position: relative;
  width: 52px;
  height: 52px;
  background: var(--light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  cursor: pointer;
  transition: all 0.15s;
  border: 2px solid transparent;
}

.emoji-editor-item:hover {
  border-color: var(--danger);
  background: #fff0f0;
}

.emoji-editor-item:hover::after {
  content: '×';
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--danger);
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.emoji-editor-item img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.emoji-picker-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.emoji-pick {
  width: 44px;
  height: 44px;
  background: var(--light);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.emoji-pick:hover {
  border-color: var(--primary);
  background: #f0edff;
}

/* Custom emoji in emote bar */
.emote-btn img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.emote-float img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .container {
    padding: 12px;
  }

  h1 {
    font-size: 1.8rem;
  }

  .card {
    padding: 20px;
  }

  .game-code {
    font-size: 2.2rem;
    letter-spacing: 5px;
    padding: 15px 20px;
  }

  .question-text {
    font-size: 1.2rem;
  }

  .answer-btn {
    padding: 16px 12px;
    font-size: 1rem;
    min-height: 60px;
  }

  .topic-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .answer-grid {
    gap: 8px;
  }
}
