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

:root {
  --bg: var(--tg-theme-bg-color, #0f0f1a);
  --bg-secondary: var(--tg-theme-secondary-bg-color, #1a1a2e);
  --text: var(--tg-theme-text-color, #eaeaea);
  --text-dim: var(--tg-theme-hint-color, #6e6e82);
  --accent: var(--tg-theme-button-color, #5288c1);
  --accent-text: var(--tg-theme-button-text-color, #ffffff);
  --correct: #34c759;
  --wrong: #ff3b30;
  --gold: #f5a623;
  --gold-bright: #ffd700;
  --card-bg: rgba(255, 255, 255, 0.05);
  --card-border: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: blur(10px);
  --radius: 16px;
  --radius-sm: 12px;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html, body {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Oxygen, sans-serif;
  background: linear-gradient(180deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
  background-attachment: fixed;
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  overscroll-behavior: none;
  -webkit-overflow-scrolling: touch;
}

/* ===== SCREENS ===== */
.screen {
  display: none;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px;
  position: relative;
}

.screen.active {
  display: flex;
  animation: screenSlideUp 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

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

/* ===== HOME SCREEN ===== */
.home-header {
  text-align: center;
  padding: 20px 0 12px;
}

.greeting {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 2px;
}

.app-title {
  font-size: 30px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold), var(--gold-bright), #ffb347);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.app-subtitle {
  color: var(--text-dim);
  font-size: 13px;
  margin-top: 2px;
}

/* ===== STATS ROW ===== */
.stats-row {
  display: flex;
  gap: 10px;
  margin: 14px 0;
}

.stat-card {
  flex: 1;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 12px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.stat-card.gold {
  border-color: rgba(245, 166, 35, 0.2);
  background: rgba(245, 166, 35, 0.06);
}

.stat-icon-big {
  font-size: 20px;
}

.stat-number {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}

.stat-label {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* ===== DAILY BANNER ===== */
.daily-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 12px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(245,166,35,0.2), rgba(255,215,0,0.1));
  border: 1px solid rgba(245,166,35,0.25);
  border-radius: var(--radius);
  animation: bannerPulse 2s ease-in-out infinite;
}

@keyframes bannerPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,166,35,0.15); }
  50% { box-shadow: 0 0 16px 2px rgba(245,166,35,0.1); }
}

.daily-banner-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.daily-banner-icon {
  font-size: 20px;
}

.daily-banner-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
}

.btn-daily-claim {
  padding: 6px 16px;
  background: var(--gold);
  border: none;
  border-radius: 8px;
  color: #000;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
}

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

/* ===== SHOW GRID ===== */
.show-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding-bottom: 100px; /* space for bottom tabs */
  overflow-y: auto;
  flex: 1;
}

.show-card {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 20px 12px 16px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s;
  overflow: hidden;
}

.show-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--card-accent, var(--accent)) 0%, transparent 70%);
  opacity: 0.07;
  transition: opacity 0.2s;
}

.show-card:active {
  transform: scale(0.96);
}

.show-card:active::before {
  opacity: 0.15;
}

.show-card-emoji {
  font-size: 36px;
  display: block;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.show-card-name {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  position: relative;
  z-index: 1;
}

.show-card-count {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 3px;
  position: relative;
  z-index: 1;
}

.show-card.all-shows {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(82,136,193,0.12), rgba(245,166,35,0.08));
  border-color: rgba(82,136,193,0.25);
  padding: 16px 12px;
}

.show-card.all-shows .show-card-emoji {
  font-size: 30px;
}

.personality-card .show-card-count {
  color: var(--gold) !important;
  font-style: italic;
}

/* ===== BOTTOM TABS ===== */
.bottom-tabs {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  padding: 8px 0 calc(8px + var(--safe-bottom));
  background: rgba(15, 15, 26, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255,255,255,0.06);
  z-index: 100;
  max-width: 480px;
  margin: 0 auto;
}

@supports not (backdrop-filter: blur(1px)) {
  .bottom-tabs {
    background: #0f0f1a;
  }
}

.tab-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 6px 0;
  transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

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

.tab-btn.active {
  color: var(--gold);
}

.tab-icon {
  font-size: 22px;
  line-height: 1;
}

.tab-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* ===== QUIZ SCREEN ===== */
.quiz-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 8px;
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, #0f0f1a 60%, transparent);
  z-index: 10;
  gap: 8px;
}

.btn-back {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  color: var(--text);
  font-size: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.btn-back:active {
  transform: scale(0.9);
}

.quiz-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.quiz-show-label {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 500;
}

.quiz-progress {
  font-size: 14px;
  font-weight: 700;
}

.quiz-topbar-right {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.score-pill, .lives-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
}

.score-pill-icon {
  color: var(--gold);
  font-size: 14px;
}

.lives-pill-icon {
  color: #ff3b30;
  font-size: 14px;
}

/* Timer */
.timer-bar-container {
  width: 100%;
  height: 5px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  margin: 4px 0 16px;
  overflow: hidden;
}

.timer-bar {
  height: 100%;
  width: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.1s linear, background-color 0.3s;
}

.timer-bar.warning {
  background: var(--gold);
}

.timer-bar.danger {
  background: var(--wrong);
  animation: timerPulse 0.5s ease-in-out infinite;
}

@keyframes timerPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Streak */
.streak-display {
  text-align: center;
  height: 26px;
  margin-bottom: 4px;
}

.streak-display span {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  display: inline-block;
}

.streak-display.visible span {
  opacity: 1;
  animation: streakBounce 0.4s ease;
}

@keyframes streakBounce {
  0% { transform: scale(0.8); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* Question card */
.question-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 24px 20px;
  margin-bottom: 16px;
  transition: var(--transition);
}

.question-number {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.question-text {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
}

/* Options */
.options-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 24px;
}

.option-btn {
  width: 100%;
  min-height: 56px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s, background 0.2s;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.option-btn:active:not(.disabled) {
  transform: scale(0.96);
}

.option-btn .option-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  font-size: 12px;
  font-weight: 700;
  margin-right: 12px;
  flex-shrink: 0;
  transition: var(--transition);
}

.option-btn.correct {
  border-color: var(--correct);
  background: rgba(52, 199, 89, 0.12);
  animation: popCorrect 0.4s ease;
}

.option-btn.correct .option-letter {
  background: var(--correct);
  color: #fff;
}

.option-btn.wrong {
  border-color: var(--wrong);
  background: rgba(255, 59, 48, 0.12);
  animation: shake 0.4s ease;
}

.option-btn.wrong .option-letter {
  background: var(--wrong);
  color: #fff;
}

.option-btn.disabled {
  pointer-events: none;
  opacity: 0.45;
}

.option-btn.disabled.correct {
  opacity: 1;
}

@keyframes popCorrect {
  0% { transform: scale(1); }
  30% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}

/* Question transition */
.question-card.slide-out {
  animation: slideOut 0.25s ease forwards;
}

.question-card.slide-in {
  animation: slideIn 0.3s ease forwards;
}

@keyframes slideOut {
  to { opacity: 0; transform: translateX(-30px); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

.options-container.slide-out .option-btn {
  animation: slideOut 0.25s ease forwards;
}

.options-container.slide-in .option-btn {
  animation: slideIn 0.3s ease forwards;
}

.options-container.slide-in .option-btn:nth-child(2) { animation-delay: 0.04s; }
.options-container.slide-in .option-btn:nth-child(3) { animation-delay: 0.08s; }
.options-container.slide-in .option-btn:nth-child(4) { animation-delay: 0.12s; }

/* ===== RESULT SCREEN ===== */
.result-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 0;
  text-align: center;
  position: relative;
  z-index: 1;
}

.result-emoji {
  font-size: 72px;
  margin-bottom: 12px;
  animation: bounceIn 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes bounceIn {
  0% { transform: scale(0) rotate(-10deg); opacity: 0; }
  60% { transform: scale(1.2) rotate(5deg); }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

.result-title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 24px;
}

.result-stats {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  width: 100%;
  max-width: 340px;
}

.result-stat {
  flex: 1;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 16px 10px;
}

.result-stat-value {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}

.gold-text {
  color: var(--gold-bright) !important;
}

.result-stat-label {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
  display: block;
}

.result-highscore {
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 24px;
  min-height: 20px;
}

.result-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 300px;
}

/* ===== CENTER CONTENT (No Lives, Daily, Double) ===== */
.center-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 20px;
}

.big-icon {
  font-size: 72px;
  margin-bottom: 16px;
  animation: bounceIn 0.5s ease;
}

.screen-title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
}

.screen-desc {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 32px;
  line-height: 1.6;
  max-width: 280px;
}

/* ===== DAILY REWARD ===== */
.daily-streak-label {
  color: var(--gold);
  font-size: 18px;
  font-weight: 700;
  margin: 4px 0 20px;
}

.daily-calendar {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.day-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 2px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
  transition: var(--transition);
}

.day-circle.completed {
  background: rgba(52, 199, 89, 0.15);
  border-color: var(--correct);
  color: var(--correct);
}

.day-circle.today {
  background: rgba(245, 166, 35, 0.15);
  border-color: var(--gold);
  color: var(--gold);
  animation: todayPulse 1.5s ease-in-out infinite;
}

@keyframes todayPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,166,35,0.3); }
  50% { box-shadow: 0 0 12px 3px rgba(245,166,35,0.15); }
}

.daily-reward-badge {
  font-size: 28px;
  font-weight: 800;
  color: var(--correct);
  margin-bottom: 32px;
  padding: 12px 24px;
  background: rgba(52, 199, 89, 0.08);
  border: 1px solid rgba(52, 199, 89, 0.2);
  border-radius: var(--radius);
}

/* ===== DOUBLE SCORE ===== */
.double-comparison {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0 36px;
}

.double-box {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 16px 20px;
  text-align: center;
  min-width: 100px;
}

.double-box.highlight {
  border-color: rgba(245,166,35,0.3);
  background: rgba(245,166,35,0.06);
}

.double-label {
  display: block;
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.double-value {
  font-size: 28px;
  font-weight: 800;
}

.double-arrow {
  font-size: 24px;
  color: var(--gold);
}

/* ===== BUTTONS ===== */
.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
  border: none;
  border-radius: var(--radius-sm);
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease;
  width: 100%;
}

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

.btn-secondary {
  background: var(--glass-bg);
  color: var(--text);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease;
  width: 100%;
}

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

.btn-ad {
  background: linear-gradient(135deg, var(--correct), #27ae60);
  font-size: 17px;
  padding: 18px 24px;
}

.btn-lg {
  margin-bottom: 12px;
  max-width: 300px;
}

/* Pulse glow on Play Again */
.pulse-glow {
  animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(82,136,193,0.4); }
  50% { box-shadow: 0 0 20px 4px rgba(82,136,193,0.25); }
}

/* ===== BONUS / SMARTLINK BUTTON ===== */
.btn-bonus {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 12px auto 16px;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--gold), #ff6b35);
  border: none;
  border-radius: var(--radius);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  animation: bonusPulse 2s ease-in-out infinite;
  text-align: center;
  text-decoration: none;
}

@keyframes bonusPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245,166,35,0.3); }
  50% { transform: scale(1.02); box-shadow: 0 0 20px 4px rgba(245,166,35,0.2); }
}

/* ===== PERSONALITY QUIZ ===== */
.personality-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 16px 32px;
  flex: 1;
}

.personality-question,
#personality-question {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 32px;
  line-height: 1.4;
  padding: 0 8px;
}

#personality-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 400px;
}

.personality-opt-btn {
  padding: 16px 20px;
  min-height: 56px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s, background 0.2s;
  text-align: left;
}

.personality-opt-btn:active {
  transform: scale(0.96);
  background: rgba(82,136,193,0.15);
  border-color: var(--accent);
}

.personality-dots,
#personality-progress {
  margin-top: 24px;
  display: flex;
  gap: 8px;
  justify-content: center;
  color: var(--text-dim);
  font-size: 14px;
}

/* ===== PERSONALITY RESULT ===== */
.personality-result-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 32px 16px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.personality-char-emoji {
  font-size: 80px;
  margin-bottom: 8px;
  animation: bounceIn 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.pr-character {
  font-size: 32px;
  font-weight: 800;
  color: var(--gold);
  margin: 8px 0 16px;
}

.pr-description {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
  margin-bottom: 20px;
  max-width: 340px;
}

.pr-traits {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 28px;
}

.trait-tag {
  padding: 6px 14px;
  background: rgba(245,166,35,0.1);
  border: 1px solid rgba(245,166,35,0.2);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
}

/* ===== CONFETTI ===== */
.confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  width: 10px;
  height: 10px;
  top: -10px;
  animation: confettiFall linear forwards;
}

.confetti-piece:nth-child(odd) {
  border-radius: 50%;
}

@keyframes confettiFall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  color: var(--text);
  padding: 10px 24px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 600;
  z-index: 1000;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
  white-space: nowrap;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* ===== FLOATING POINTS ===== */
.floating-points {
  position: fixed;
  font-size: 22px;
  font-weight: 800;
  color: var(--correct);
  pointer-events: none;
  z-index: 100;
  animation: floatUp 0.8s ease forwards;
  text-shadow: 0 2px 8px rgba(52,199,89,0.4);
}

@keyframes floatUp {
  0% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-50px) scale(1.3); }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 3px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
}

/* ===== SAFE AREAS ===== */
@supports (padding-top: env(safe-area-inset-top)) {
  .screen {
    padding-top: env(safe-area-inset-top);
  }
  .bottom-tabs {
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
  }
}

/* ===== UTILITY ===== */
.score-display {
  display: none; /* hidden — score is now in the pill */
}
