/* ═══════════════════════════════════════════════════════════════════
   Typing Shadowing — Stylesheet (Light & Dark Theme)
   ═══════════════════════════════════════════════════════════════════ */

:root {
  /* Common */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);

  /* Light theme */
  --bg-primary: #f8fafc;
  --bg-surface: #ffffff;
  --bg-elevated: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-muted: #e2e8f0;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-dim: #cbd5e1;

  --accent-primary: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-subtle: #eff6ff;
  --accent-border: #bfdbfe;

  --success: #16a34a;
  --success-subtle: #dcfce7;
  --error: #dc2626;
  --error-subtle: #fee2e2;

  --border-color: #e2e8f0;
  --border-subtle: #f1f5f9;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);

  /* Finger colors for virtual keyboard */
  --finger-pinky-l: #fce7f3;
  --finger-ring-l: #ede9fe;
  --finger-middle-l: #e0e7ff;
  --finger-index-l: #e0f2fe;
  --finger-index-r: #e0f2fe;
  --finger-middle-r: #e0e7ff;
  --finger-ring-r: #ede9fe;
  --finger-pinky-r: #fce7f3;
  --finger-thumb: #f1f5f9;

  --key-active-bg: #2563eb;
  --key-active-color: #ffffff;
  --key-active-shadow: 0 0 12px rgba(37, 99, 235, 0.5);
}

[data-theme="dark"] {
  --bg-primary: #090d16;
  --bg-surface: #111827;
  --bg-elevated: #1f2937;
  --bg-subtle: #1a2234;
  --bg-muted: #374151;

  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --text-dim: #4b5563;

  --accent-primary: #3b82f6;
  --accent-hover: #60a5fa;
  --accent-subtle: rgba(59, 130, 246, 0.15);
  --accent-border: rgba(59, 130, 246, 0.3);

  --success: #22c55e;
  --success-subtle: rgba(34, 197, 94, 0.15);
  --error: #ef4444;
  --error-subtle: rgba(239, 68, 68, 0.15);

  --border-color: #1f2937;
  --border-subtle: #111827;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);

  /* Finger colors in dark mode (subtle tints) */
  --finger-pinky-l: rgba(236, 72, 153, 0.12);
  --finger-ring-l: rgba(168, 85, 247, 0.12);
  --finger-middle-l: rgba(99, 102, 241, 0.12);
  --finger-index-l: rgba(14, 165, 233, 0.12);
  --finger-index-r: rgba(14, 165, 233, 0.12);
  --finger-middle-r: rgba(99, 102, 241, 0.12);
  --finger-ring-r: rgba(168, 85, 247, 0.12);
  --finger-pinky-r: rgba(236, 72, 153, 0.12);
  --finger-thumb: rgba(148, 163, 184, 0.08);

  --key-active-bg: #3b82f6;
  --key-active-color: #ffffff;
  --key-active-shadow: 0 0 16px rgba(59, 130, 246, 0.7);
}

/* ═══════════════════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════════════════ */

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ═══════════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════════ */

.site-header {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.brand-icon {
  font-size: 1.5rem;
  color: var(--accent-primary);
}

.brand-name strong {
  color: var(--accent-primary);
  font-weight: 700;
}

.theme-toggle {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 4px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.theme-toggle:hover {
  background: var(--bg-muted);
}

.theme-icon {
  font-size: 0.9rem;
  user-select: none;
}

.theme-toggle-track {
  width: 32px;
  height: 18px;
  background: var(--border-color);
  border-radius: var(--radius-full);
  position: relative;
  transition: var(--transition);
}

[data-theme="dark"] .theme-toggle-track {
  background: var(--accent-primary);
}

.theme-toggle-thumb {
  width: 14px;
  height: 14px;
  background: #ffffff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

[data-theme="dark"] .theme-toggle-thumb {
  transform: translateX(14px);
}

/* ═══════════════════════════════════════════════════════════════════
   LEVEL NAVIGATION (MCER TABS)
   ═══════════════════════════════════════════════════════════════════ */

.level-nav {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
}

.level-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.level-nav-inner::-webkit-scrollbar {
  display: none;
}

.level-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.level-tab:hover {
  background: var(--bg-elevated);
  border-color: var(--accent-border);
  color: var(--text-primary);
}

.level-tab.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.25);
}

.level-code {
  font-weight: 700;
  font-size: 0.85rem;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.08);
}

.level-tab.active .level-code {
  background: rgba(255, 255, 255, 0.2);
}

/* ═══════════════════════════════════════════════════════════════════
   WELCOME / HERO
   ═══════════════════════════════════════════════════════════════════ */

.welcome {
  padding: 60px 24px;
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-primary) 100%);
  text-align: center;
}

.welcome-inner {
  max-width: 800px;
  margin: 0 auto;
}

.welcome h1 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 16px;
}

.welcome h1 em {
  font-style: normal;
  color: var(--accent-primary);
}

.welcome-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.6;
}

.welcome-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
  text-align: left;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-border);
}

.feature-icon {
  font-size: 2rem;
  display: inline-block;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.btn-start {
  background: var(--accent-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-full);
  padding: 14px 36px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  transition: var(--transition);
}

.btn-start:hover {
  background: var(--accent-hover);
  transform: scale(1.02);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.45);
}

/* ═══════════════════════════════════════════════════════════════════
   PRACTICE ARENA
   ═══════════════════════════════════════════════════════════════════ */

.practice-arena {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  width: 100%;
  flex: 1;
}

.arena-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: start;
}

.arena-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Text Display */
.text-display {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.text-info-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.text-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.text-progress {
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.text-body {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  line-height: 2;
  min-height: 120px;
  user-select: none;
}

/* Word statuses in text passage */
.word {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 4px;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

/* Already typed correctly: bold, dark in light theme, bright in dark theme */
.word--completed {
  font-weight: 700;
  color: var(--text-primary);
}

[data-theme="light"] .word--completed {
  color: #0f172a;
}

[data-theme="dark"] .word--completed {
  color: #f8fafc;
}

/* Current word: highlighted prominently */
.word--current {
  background-color: var(--accent-subtle);
  color: var(--accent-primary);
  font-weight: 700;
  border-bottom: 3px solid var(--accent-primary);
  box-shadow: 0 0 0 1px var(--accent-border);
}

/* Upcoming words: dim muted gray */
.word--upcoming {
  color: var(--text-muted);
  font-weight: 400;
}

/* Current Word Focus Area */
.current-word-area {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.current-word-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.current-word {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-primary);
  letter-spacing: 0.05em;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.typed-feedback {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  margin-top: 8px;
  min-height: 28px;
  display: flex;
  justify-content: center;
  gap: 2px;
}

.char-feedback {
  padding: 0 2px;
}

.char-feedback.correct {
  color: var(--success);
  font-weight: 600;
}

.char-feedback.wrong {
  color: var(--error);
  background-color: var(--error-subtle);
  border-radius: 2px;
  animation: shake 0.2s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}

.hidden-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  height: 0;
  width: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   VIRTUAL KEYBOARD & HAND OVERLAY
   ═══════════════════════════════════════════════════════════════════ */

.keyboard-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.keyboard {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 780px;
  margin: 0 auto;
  user-select: none;
}

.kb-row {
  display: flex;
  gap: 5px;
  justify-content: center;
}

.key {
  height: 42px;
  min-width: 42px;
  padding: 0 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  box-shadow: 0 2px 0 var(--border-color);
  transition: transform 0.08s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

/* Finger color zones (subtle tinting) */
.finger-pinky-l { background-color: var(--finger-pinky-l); }
.finger-ring-l { background-color: var(--finger-ring-l); }
.finger-middle-l { background-color: var(--finger-middle-l); }
.finger-index-l { background-color: var(--finger-index-l); }
.finger-index-r { background-color: var(--finger-index-r); }
.finger-middle-r { background-color: var(--finger-middle-r); }
.finger-ring-r { background-color: var(--finger-ring-r); }
.finger-pinky-r { background-color: var(--finger-pinky-r); }
.finger-thumb { background-color: var(--finger-thumb); }

/* Key widths */
.key-wide { flex: 1.5; }
.key-tab { flex: 1.4; }
.key-caps { flex: 1.6; }
.key-enter { flex: 1.8; }
.key-shift { flex: 2.2; }
.key-space { flex: 6; }

/* Home row bumps */
.home-key {
  position: relative;
}
.home-key[data-key="f"]::after,
.home-key[data-key="j"]::after {
  content: '';
  position: absolute;
  bottom: 4px;
  width: 10px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 1px;
}

/* Active Key Highlight */
.key.active-key {
  background: var(--key-active-bg) !important;
  color: var(--key-active-color) !important;
  box-shadow: var(--key-active-shadow), 0 2px 0 var(--accent-hover) !important;
  transform: translateY(-2px);
  font-weight: 700;
  z-index: 2;
}

/* Pressed effect */
.key.pressed {
  transform: translateY(2px);
  box-shadow: none;
}

/* Finger guide labels below keyboard */
.finger-guide {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  padding: 8px 16px 0;
  border-top: 1px solid var(--border-color);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.hand {
  display: flex;
  gap: 16px;
}

.finger-label {
  display: flex;
  align-items: center;
  gap: 4px;
}

.finger-label::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.fl-pinky::before { background: #f472b6; }
.fl-ring::before { background: #c084fc; }
.fl-middle::before { background: #818cf8; }
.fl-index::before { background: #38bdf8; }

.fr-index::before { background: #38bdf8; }
.fr-middle::before { background: #818cf8; }
.fr-ring::before { background: #c084fc; }
.fr-pinky::before { background: #f472b6; }

/* ═══════════════════════════════════════════════════════════════════
   STATISTICS SIDEBAR
   ═══════════════════════════════════════════════════════════════════ */

.stats-sidebar {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.stat-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
}

.stat-value small {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-top: 4px;
}

.sidebar-divider {
  height: 1px;
  background: var(--border-color);
  margin: 4px 0;
}

.sidebar-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-primary, .btn-secondary {
  width: 100%;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-primary {
  background: var(--accent-primary);
  color: #ffffff;
  border: none;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--bg-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--text-muted);
}

/* Toggle Switch (Auto-continue) */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 4px 0;
}

.toggle-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

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

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-muted);
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: var(--radius-full);
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-slider {
  background-color: var(--accent-primary);
}

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

/* ═══════════════════════════════════════════════════════════════════
   AD PLACEHOLDERS (ANUNCIO)
   ═══════════════════════════════════════════════════════════════════ */

.ad-slot {
  background: var(--bg-subtle);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  user-select: none;
}

.ad-label {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  font-weight: 600;
  opacity: 0.6;
}

.ad-slot--bottom {
  height: 70px;
  width: 100%;
}

.ad-slot--sidebar {
  height: 160px;
  width: 100%;
  margin-top: 8px;
}

/* ═══════════════════════════════════════════════════════════════════
   COMPLETION MODAL
   ═══════════════════════════════════════════════════════════════════ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  text-align: center;
  animation: popIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.modal-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.modal-stat {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
}

.ms-value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.ms-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}

.modal-actions {
  display: flex;
  gap: 10px;
}

/* ═══════════════════════════════════════════════════════════════════
   SEO CONTENT (BELOW THE FOLD)
   ═══════════════════════════════════════════════════════════════════ */

.seo-content {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 48px 24px;
  margin-top: 40px;
}

.seo-inner {
  max-width: 800px;
  margin: 0 auto;
}

.seo-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 24px;
  margin-bottom: 12px;
}

.seo-content h2:first-child {
  margin-top: 0;
}

.seo-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.seo-content details {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 8px;
}

.seo-content summary {
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  outline: none;
}

.seo-content details p {
  margin-top: 8px;
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* ═══════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════ */

.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 24px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: auto;
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .arena-layout {
    grid-template-columns: 1fr;
  }

  .stats-sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .sidebar-title,
  .sidebar-divider,
  .sidebar-controls,
  .ad-slot--sidebar {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .welcome h1 {
    font-size: 1.75rem;
  }

  .keyboard-section {
    display: none; /* Hide virtual keyboard on mobile; user uses mobile keyboard */
  }

  .stats-sidebar {
    grid-template-columns: 1fr;
  }

  .sidebar-title,
  .sidebar-divider,
  .sidebar-controls,
  .ad-slot--sidebar {
    grid-column: span 1;
  }
}
