/* ============================================================
   French Verb Practice — Shared Styles
   ============================================================ */

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

:root {
  /* Colors */
  --bg:            #f5f5f7;
  --surface:       #ffffff;
  --surface-alt:   #fafafa;
  --primary:       #1a3a6b;
  --primary-hover: #0f2547;
  --primary-light: #e8eef8;
  --accent:        #c8102e;
  --text:          #1d1d1f;
  --text-muted:    #6e6e73;
  --text-light:    #9a9aa0;
  --success:       #1a7a42;
  --success-bg:    #eaf7ef;
  --success-border:#b3e6c8;
  --error:         #c92020;
  --error-bg:      #fdf0f0;
  --error-border:  #f5b8b8;
  --warning:       #8a6000;
  --warning-bg:    #fff8e1;
  --border:        #d2d2d7;
  --border-light:  #ebebef;

  /* Spacing */
  --radius:        10px;
  --radius-sm:     6px;
  --radius-lg:     16px;

  /* Shadows */
  --shadow-sm:     0 1px 3px rgba(0,0,0,0.06);
  --shadow:        0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:     0 4px 16px rgba(0,0,0,0.1);

  /* Typography */
  --font:          -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono:     'SF Mono', 'Fira Code', 'Consolas', monospace;
}

/* ---- Base ---- */

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3 {
  line-height: 1.3;
  font-weight: 600;
}

/* ---- Navigation ---- */

.site-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 52px;
}

.nav-logo {
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
  letter-spacing: -0.01em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo:hover { text-decoration: none; }

.nav-flag {
  display: inline-flex;
  gap: 2px;
  height: 14px;
  align-items: stretch;
}

.nav-flag span {
  display: inline-block;
  width: 5px;
  border-radius: 1px;
}

.nav-flag span:nth-child(1) { background: #002395; }
.nav-flag span:nth-child(2) { background: #ffffff; border: 1px solid #e0e0e0; }
.nav-flag span:nth-child(3) { background: #ED2939; }

.nav-links {
  margin-left: auto;
  display: flex;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--primary-light);
  color: var(--primary);
  text-decoration: none;
}

/* ---- Page Container ---- */

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.container-narrow {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  text-decoration: none;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--primary-hover);
  text-decoration: none;
  color: #fff;
}

.btn-secondary {
  background: var(--surface);
  color: var(--primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--primary-light);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  padding: 8px 14px;
}

.btn-ghost:hover {
  background: var(--border-light);
  color: var(--text);
  text-decoration: none;
}

.btn-lg {
  padding: 13px 32px;
  font-size: 1rem;
  border-radius: var(--radius);
}

.btn-full { width: 100%; }

/* ---- Form Elements ---- */

.form-group {
  margin-bottom: 20px;
}

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

.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font);
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 58, 107, 0.1);
}

.form-input.correct {
  border-color: var(--success);
  background: var(--success-bg);
}

.form-input.incorrect {
  border-color: var(--error);
  background: var(--error-bg);
}

.form-input-large {
  font-size: 1.375rem;
  padding: 14px 18px;
  text-align: center;
  letter-spacing: 0.01em;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-size: 0.875rem;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: background 0.12s, border-color 0.12s;
  user-select: none;
}

.checkbox-label:has(input:checked) {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.checkbox-label input[type="checkbox"],
.checkbox-label input[type="radio"] {
  accent-color: var(--primary);
}

/* ---- Cards ---- */

.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow);
  padding: 28px;
}

/* ---- Progress Bar ---- */

.progress-bar-wrap {
  background: var(--border-light);
  border-radius: 99px;
  height: 6px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 99px;
  transition: width 0.3s ease;
}

/* ============================================================
   INDEX PAGE
   ============================================================ */

.hero {
  text-align: center;
  padding: 56px 20px 48px;
}

.hero-flag {
  display: inline-flex;
  gap: 4px;
  height: 28px;
  margin-bottom: 16px;
}

.hero-flag span {
  display: inline-block;
  width: 10px;
  border-radius: 2px;
}

.hero-flag span:nth-child(1) { background: #002395; }
.hero-flag span:nth-child(2) { background: #ffffff; border: 1px solid #ddd; }
.hero-flag span:nth-child(3) { background: #ED2939; }

.hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 12px;
}

.hero p {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 420px;
  margin: 0 auto;
}

.modes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.mode-card {
  background: var(--surface);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mode-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--text);
}

.mode-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.mode-card h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.mode-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.mode-card .mode-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--primary-light);
  color: var(--primary);
  margin-top: auto;
  align-self: flex-start;
}

.index-guides-cta {
  text-align: center;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
}

.index-guides-cta p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 12px;
}

/* ============================================================
   PRACTICE PAGE
   ============================================================ */

/* --- Setup View --- */

.setup-header {
  margin-bottom: 28px;
}

.setup-header h1 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.setup-header p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.setup-section {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}

.setup-section:last-of-type {
  border-bottom: none;
}

.setup-section-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.mode-select-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mode-radio-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: var(--surface);
  transition: background 0.12s, border-color 0.12s;
}

.mode-radio-label:has(input:checked) {
  background: var(--primary-light);
  border-color: var(--primary);
}

.mode-radio-label input { margin-top: 2px; accent-color: var(--primary); }

.mode-radio-label strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
}

.mode-radio-label span {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.session-length-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.length-btn {
  padding: 7px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.12s, border-color 0.12s, color 0.12s;
  color: var(--text);
}

.length-btn.active,
.length-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

/* --- Practice View --- */

.practice-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.practice-progress-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.practice-score {
  margin-left: auto;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}

.practice-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 36px 32px;
  margin-bottom: 16px;
}

/* Tense badge */
.tense-badge {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 99px;
  background: var(--primary-light);
  color: var(--primary);
  margin-bottom: 20px;
}

/* Classic mode display */
.classic-prompt {
  text-align: center;
  margin-bottom: 28px;
}

.classic-pronoun {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.classic-verb {
  font-size: 1.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.classic-translation {
  font-size: 1rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Sentence mode display */
.sentence-prompt {
  margin-bottom: 28px;
}

.sentence-text {
  font-size: 1.375rem;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 12px;
}

.sentence-blank {
  display: inline-block;
  min-width: 120px;
  border-bottom: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 600;
  text-align: center;
  padding: 0 4px;
}

.sentence-hint {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.sentence-hint span {
  font-style: italic;
}

/* Drill mode display */
.drill-verb-header {
  text-align: center;
  margin-bottom: 24px;
}

.drill-verb-name {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.drill-verb-translation {
  font-size: 1rem;
  color: var(--text-muted);
  font-style: italic;
}

.drill-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 0.9375rem;
}

.drill-table td {
  padding: 7px 12px;
  border-bottom: 1px solid var(--border-light);
}

.drill-table td:first-child {
  font-weight: 600;
  color: var(--text-muted);
  width: 80px;
}

.drill-table td:last-child {
  color: var(--text);
}

.drill-table .drill-row-active td {
  background: var(--primary-light);
}

.drill-table .drill-row-active td:first-child {
  color: var(--primary);
}

.drill-table .drill-cell-filled {
  color: var(--success) !important;
  font-weight: 500;
}

.drill-table .drill-cell-wrong {
  color: var(--error) !important;
  font-weight: 500;
}

.drill-table .drill-cell-pending {
  color: var(--border) !important;
}

.drill-current-pronoun {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin-bottom: 16px;
}

/* Answer input area */
.answer-area {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.answer-area .form-input {
  flex: 1;
}

/* Feedback */
.feedback-message {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.feedback-message.correct {
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  color: var(--success);
}

.feedback-message.incorrect {
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  color: var(--error);
}

.feedback-message.accent-warning {
  background: var(--warning-bg);
  border: 1px solid #e0c050;
  color: var(--warning);
}

.feedback-correct-form {
  font-weight: 600;
}

.practice-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

/* --- Results View --- */

.results-header {
  text-align: center;
  padding: 32px 0 24px;
}

.results-score-big {
  font-size: 4rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 4px;
}

.results-score-label {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.results-bar-wrap {
  max-width: 300px;
  margin: 0 auto 24px;
}

.results-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}

.results-stat {
  background: var(--surface-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}

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

.results-stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.results-misses {
  margin-bottom: 28px;
}

.results-misses h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.miss-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
}

.miss-item:last-child { border-bottom: none; }

.miss-verb { font-weight: 600; }
.miss-context { color: var(--text-muted); flex: 1; }
.miss-your { color: var(--error); }
.miss-correct { color: var(--success); font-weight: 600; }

.results-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   GUIDES PAGE
   ============================================================ */

.guides-header {
  margin-bottom: 32px;
}

.guides-header h1 {
  font-size: 1.75rem;
  margin-bottom: 6px;
}

.guides-header p {
  color: var(--text-muted);
}

.guides-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--border-light);
  margin-bottom: 32px;
  overflow-x: auto;
}

.guides-tab-btn {
  padding: 8px 18px;
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: color 0.15s;
}

.guides-tab-btn:hover { color: var(--text); }

.guides-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.guides-section { display: none; }
.guides-section.active { display: block; }

.guide-intro {
  background: var(--primary-light);
  border-left: 3px solid var(--primary);
  padding: 14px 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 28px;
}

.guide-intro p {
  font-size: 0.9375rem;
  color: var(--primary);
  line-height: 1.5;
}

.guide-tense-block {
  margin-bottom: 32px;
}

.guide-tense-block h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.guide-tense-block h3 .tense-label-fr {
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.conj-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  margin-bottom: 12px;
}

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

.conj-table td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--border-light);
}

.conj-table tr:last-child td { border-bottom: none; }

.conj-table .pronoun {
  font-weight: 600;
  color: var(--text-muted);
  width: 80px;
}

.conj-table .conjugated {
  color: var(--text);
}

.conj-table .ending-highlight {
  color: var(--accent);
}

.verb-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.verb-list-item {
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  font-size: 0.875rem;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
}

.verb-list-item:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.verb-list-item .verb-inf {
  font-weight: 600;
  color: var(--text);
}

.verb-list-item .verb-trans {
  color: var(--text-muted);
  font-size: 0.8125rem;
  margin-top: 2px;
}

.guide-verb-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}

.guide-verb-modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  max-width: 520px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 28px;
}

.guide-verb-modal-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
}

.guide-verb-modal-header h2 {
  font-size: 1.5rem;
}

.guide-verb-modal-header span {
  color: var(--text-muted);
  font-style: italic;
}

.guide-verb-modal-close {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--text-muted);
  padding: 4px;
  line-height: 1;
}

/* ============================================================
   TENSE TIMELINE
   ============================================================ */

.tense-timeline-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px 28px 20px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}

.timeline-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 24px;
}

.tense-timeline {
  position: relative;
  padding: 0 8px;
}

.tl-section-labels {
  position: relative;
  height: 22px;
  margin-bottom: 6px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.tl-section-label {
  position: absolute;
}

.tl-above {
  position: relative;
  height: 62px;
  margin-bottom: 0;
}

.tl-below {
  position: relative;
  height: 68px;
  margin-top: 0;
}

.tl-chip {
  position: absolute;
  transform: translateX(-50%);
  text-align: center;
  white-space: nowrap;
}

.tl-chip-above {
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.tl-chip-above::after {
  content: '';
  display: block;
  width: 1px;
  height: 10px;
  background: var(--border);
  margin-top: 2px;
}

.tl-chip-below {
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.tl-chip-below::before {
  content: '';
  display: block;
  width: 1px;
  height: 10px;
  background: var(--border);
  margin-bottom: 2px;
}

.tl-chip-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  background: var(--primary-light);
  padding: 2px 8px;
  border-radius: 99px;
  border: 1px solid var(--border-light);
}

.tl-chip-sub {
  font-size: 0.6875rem;
  color: var(--text-muted);
  font-style: italic;
}

/* The axis line with "now" marker */
.tl-axis-wrap {
  position: relative;
  height: 20px;
  display: flex;
  align-items: center;
}

.tl-axis-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--border), var(--primary) 50%, var(--border));
}

/* Arrow heads */
.tl-axis-line::before,
.tl-axis-line::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
}
.tl-axis-line::before {
  left: -2px;
  border-right-color: var(--border);
}
.tl-axis-line::after {
  right: -2px;
  border-left-color: var(--border);
}

.tl-now-marker {
  position: absolute;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  z-index: 2;
}

.tl-now-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 2px var(--primary);
}

.tl-now-label {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.tl-extra-chip {
  font-size: 0.875rem;
  padding: 6px 12px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  color: var(--text);
}

@media (max-width: 640px) {
  .tl-chip { white-space: normal; max-width: 80px; }
  .tl-chip-name { font-size: 0.6875rem; padding: 2px 5px; }
  .tl-chip-sub { display: none; }
  .tl-section-labels { font-size: 0.625rem; }
}

/* ============================================================
   UTILITY
   ============================================================ */

.hidden { display: none !important; }

/* Feedback starts invisible without the .hidden class needing to be set */
.feedback-hidden { display: none; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }

.section-title {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 640px) {
  .modes-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .practice-card {
    padding: 24px 18px;
  }

  .classic-pronoun {
    font-size: 2rem;
  }

  .classic-verb {
    font-size: 1.5rem;
  }

  .results-summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .answer-area {
    flex-direction: column;
  }

  .answer-area .btn {
    width: 100%;
  }

  .conj-table {
    font-size: 0.875rem;
  }

  .container {
    padding: 24px 16px 60px;
  }

  .container-narrow {
    padding: 24px 16px 60px;
  }
}
