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

:root {
  --bg: #F9FAFB;
  --white: #FFFFFF;
  --accent: #2563EB;
  --accent-hover: #1D4ED8;
  --accent-light: #DBEAFE;
  --text: #1F2937;
  --text-secondary: #6B7280;
  --text-light: #9CA3AF;
  --border: #E5E7EB;
  --success: #10B981;
  --success-light: #D1FAE5;
  --error: #EF4444;
  --error-light: #FEE2E2;
  --warning: #F59E0B;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --radius: 12px;
  --radius-sm: 8px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

button {
  font-family: var(--font);
  cursor: pointer;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: all 0.15s ease;
}

input, select, textarea {
  font-family: var(--font);
  font-size: 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.625rem 0.75rem;
  outline: none;
  transition: border-color 0.15s ease;
  width: 100%;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ===== Login Page ===== */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1rem;
}

.login-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
}

.login-card .logo {
  text-align: center;
  margin-bottom: 2rem;
}

.login-card .logo h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.login-card .logo p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.375rem;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  width: 100%;
  padding: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-secondary {
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.75rem;
  width: 100%;
  font-size: 0.9375rem;
}

.btn-secondary:hover { background: var(--bg); }

.btn-danger {
  background: var(--error);
  color: var(--white);
}

.btn-danger:hover { background: #DC2626; }

.btn-small {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
}

.divider {
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
  color: var(--text-light);
  font-size: 0.8125rem;
}

.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.divider span { padding: 0 1rem; }

.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.google-btn svg { width: 18px; height: 18px; }

.error-message {
  background: var(--error-light);
  color: var(--error);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  margin-bottom: 1rem;
  display: none;
}

.error-message.visible { display: block; }

.forgot-link {
  display: block;
  text-align: center;
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* ===== Dashboard Layout ===== */
.dashboard-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-left h1 {
  font-size: 1.125rem;
  font-weight: 700;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-btn {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.5rem 0.875rem;
  font-size: 0.8125rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  position: relative;
}

.header-btn:hover { background: var(--border); }

.badge-count {
  background: var(--accent);
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.125rem 0.375rem;
  border-radius: 999px;
  min-width: 18px;
  text-align: center;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 600;
}

.user-name {
  font-size: 0.875rem;
  font-weight: 500;
}

.logout-btn {
  background: none;
  color: var(--text-secondary);
  padding: 0.5rem;
  font-size: 0.8125rem;
}

.logout-btn:hover { color: var(--error); }

/* ===== Main Content ===== */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.section-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text);
}

/* ===== App Grid ===== */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.app-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.app-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.app-card .app-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.app-card .app-name {
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
}

.app-card .app-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.app-card .pref-toggle {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  padding: 0.25rem;
  font-size: 0.875rem;
  opacity: 0;
  transition: opacity 0.15s;
}

.app-card:hover .pref-toggle { opacity: 1; }
.app-card .pref-toggle:hover { background: var(--bg); border-radius: 4px; }

/* ===== Modal Overlay ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--bg);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  color: var(--text-secondary);
  z-index: 10;
}

.modal-close:hover { background: var(--border); }

/* ===== Games Modal ===== */
.games-modal {
  width: 700px;
  padding: 2rem;
}

.games-header {
  margin-bottom: 1.5rem;
}

.games-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
}

.plays-counter {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-light);
  color: var(--accent);
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.plays-counter.exhausted {
  background: var(--error-light);
  color: var(--error);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.game-card {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.game-card:hover:not(.disabled) {
  border-color: var(--accent);
  background: var(--accent-light);
}

.game-card.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  position: relative;
}

.game-card .game-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.game-card .game-name {
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.375rem;
}

.game-card .game-best {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.disabled-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.8);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ===== Game Play Modal ===== */
.game-modal {
  width: 600px;
  min-height: 500px;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.game-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.game-topbar .game-title {
  font-weight: 700;
  font-size: 1rem;
}

.game-stats {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.game-stat {
  text-align: center;
}

.game-stat .stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
}

.game-stat .stat-label {
  font-size: 0.6875rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.game-area {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Game Results ===== */
.game-results {
  text-align: center;
  padding: 2rem;
}

.game-results .grade-display {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.grade-S { color: #8B5CF6; }
.grade-A { color: var(--accent); }
.grade-B { color: var(--success); }
.grade-C { color: var(--warning); }
.grade-D { color: var(--text-secondary); }

.game-results .score-display {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.game-results .accuracy-display {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.new-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.new-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: var(--warning);
  color: var(--white);
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  animation: badgePop 0.5s ease;
}

@keyframes badgePop {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* ===== Achievements Panel ===== */
.achievements-modal {
  width: 500px;
  padding: 2rem;
}

.achievements-modal h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.streak-display {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--success-light);
  color: #065F46;
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.achievement-category {
  margin-bottom: 1.5rem;
}

.achievement-category h3 {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.achievement-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  border: 1px solid var(--border);
}

.achievement-item.earned {
  background: var(--white);
  border-color: var(--success);
}

.achievement-item.unearned {
  background: var(--bg);
  opacity: 0.6;
  border-style: dashed;
}

.achievement-icon {
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.earned .achievement-icon {
  background: var(--success-light);
}

.unearned .achievement-icon {
  filter: grayscale(1);
  background: var(--bg);
}

.achievement-info { flex: 1; }

.achievement-name {
  font-weight: 600;
  font-size: 0.875rem;
}

.achievement-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.achievement-date {
  font-size: 0.6875rem;
  color: var(--success);
  font-weight: 500;
}

/* ===== Whack-a-Mole ===== */
.whack-grid {
  display: grid;
  grid-template-columns: repeat(3, 100px);
  grid-template-rows: repeat(3, 100px);
  gap: 12px;
}

.whack-hole {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #E5E7EB;
  border: 3px solid #D1D5DB;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.1s;
  font-size: 2rem;
  user-select: none;
}

.whack-hole.active {
  background: #FEF3C7;
  border-color: #F59E0B;
  transform: scale(1.1);
}

.whack-hole:active { transform: scale(0.95); }

/* ===== Memory Match ===== */
.memory-grid {
  display: grid;
  grid-template-columns: repeat(4, 80px);
  grid-template-rows: repeat(4, 80px);
  gap: 8px;
}

.memory-card {
  width: 80px;
  height: 80px;
  perspective: 600px;
  cursor: pointer;
}

.memory-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.4s;
  border-radius: var(--radius-sm);
}

.memory-card.flipped .memory-card-inner {
  transform: rotateY(180deg);
}

.memory-card-front, .memory-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.memory-card-front {
  background: var(--accent);
  color: var(--white);
  font-size: 1.25rem;
}

.memory-card-back {
  background: var(--white);
  border: 2px solid var(--border);
  transform: rotateY(180deg);
}

.memory-card.matched .memory-card-back {
  border-color: var(--success);
  background: var(--success-light);
}

/* ===== Speed Typing ===== */
.typing-area {
  width: 100%;
  max-width: 500px;
}

.typing-phrase {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  padding: 1rem;
  background: var(--bg);
  border-radius: var(--radius-sm);
  min-height: 80px;
  font-family: var(--font);
}

.typing-phrase .correct { color: var(--success); }
.typing-phrase .error { color: var(--error); background: var(--error-light); border-radius: 2px; }
.typing-phrase .pending { color: var(--text-light); }

.typing-input {
  font-size: 1.125rem;
  padding: 0.875rem;
}

.typing-stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
  justify-content: center;
}

.typing-stat {
  text-align: center;
}

.typing-stat .value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.typing-stat .label {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* ===== Stroop Game ===== */
.stroop-area {
  text-align: center;
  width: 100%;
  max-width: 400px;
}

.stroop-word {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 2rem;
  min-height: 60px;
}

.stroop-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.stroop-btn {
  padding: 1rem;
  border-radius: var(--radius-sm);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  transition: transform 0.1s, opacity 0.1s;
}

.stroop-btn:hover { opacity: 0.9; }
.stroop-btn:active { transform: scale(0.95); }

.stroop-feedback {
  margin-top: 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  min-height: 2rem;
}

/* ===== Pattern Predictor ===== */
.pattern-area {
  text-align: center;
  width: 100%;
  max-width: 500px;
}

.pattern-sequence {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  min-height: 60px;
  flex-wrap: wrap;
}

.pattern-item {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border: 2px solid var(--border);
}

.pattern-question {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  border: 2px dashed var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent);
}

.pattern-round {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.pattern-choices {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  max-width: 350px;
  margin: 0 auto;
}

.pattern-choice {
  padding: 0.75rem;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1.25rem;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.pattern-choice:hover {
  border-color: var(--accent);
  background: var(--accent-light);
}

/* ===== Admin Panel ===== */
.admin-layout {
  display: flex;
  min-height: calc(100vh - 64px);
}

.admin-sidebar {
  width: 220px;
  background: var(--white);
  border-right: 1px solid var(--border);
  padding: 1.5rem 0;
  flex-shrink: 0;
}

.admin-nav-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  background: none;
  border-radius: 0;
}

.admin-nav-item:hover { background: var(--bg); color: var(--text); }
.admin-nav-item.active { background: var(--accent-light); color: var(--accent); font-weight: 600; }

.admin-content {
  flex: 1;
  padding: 2rem;
  overflow-x: auto;
}

.admin-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.admin-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.admin-table td {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
}

.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--bg); }

.status-badge {
  display: inline-flex;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.status-active { background: var(--success-light); color: #065F46; }
.status-inactive { background: var(--error-light); color: var(--error); }

/* ===== Admin Form Modal ===== */
.admin-form-modal {
  width: 500px;
  padding: 2rem;
}

.admin-form-modal h2 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

.form-actions .btn-primary { width: auto; }
.form-actions .btn-secondary { width: auto; }

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.375rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
}

/* ===== Settings Form ===== */
.settings-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  max-width: 500px;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.settings-row:last-child { border-bottom: none; }

.settings-label {
  font-weight: 500;
  font-size: 0.875rem;
}

.settings-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.settings-input {
  width: 120px;
}

/* Toggle switch */
.toggle {
  position: relative;
  width: 44px;
  height: 24px;
  cursor: pointer;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 12px;
  transition: 0.2s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: var(--white);
  border-radius: 50%;
  transition: 0.2s;
}

.toggle input:checked + .toggle-slider {
  background: var(--success);
}

.toggle input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .app-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .games-modal { width: 95vw; }
  .game-modal { width: 95vw; }
  .achievements-modal { width: 95vw; }

  .admin-sidebar { width: 180px; }

  .header-right { gap: 0.5rem; }
  .user-name { display: none; }
}

/* ===== Combo Display ===== */
.combo-display {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--warning);
  opacity: 0;
  transition: opacity 0.2s;
}

.combo-display.visible {
  opacity: 1;
  animation: comboPulse 0.3s ease;
}

@keyframes comboPulse {
  0% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.3); }
  100% { transform: translateX(-50%) scale(1); }
}

/* ===== Game Start Screen ===== */
.game-start {
  text-align: center;
}

.game-start h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.game-start p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.game-start .btn-primary {
  width: auto;
  padding: 0.75rem 2rem;
}

/* ===== Toast ===== */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: slideIn 0.3s ease;
  max-width: 300px;
}

.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--error); }

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