/* ─── Reset & base ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100dvh;
  transition: background 0.25s, color 0.25s;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ─── Design tokens ──────────────────────────────────────────────────────────── */
:root {
  --bg:          #f0f4f8;
  --surface:     #ffffff;
  --surface-2:   #f8fafc;
  --border:      #e2e8f0;
  --text:        #1e293b;
  --text-muted:  #64748b;
  --nav-bg:      rgba(255,255,255,0.92);
  --shadow:      0 4px 24px rgba(0,0,0,0.08);
  --shadow-sm:   0 1px 4px rgba(0,0,0,0.06);
  --radius:      14px;
  --radius-sm:   8px;
  --accent:      #6366f1;
  --accent-hover:#4f46e5;
  --success:     #22c55e;
  --error:       #ef4444;
  --nav-h:       60px;
}

[data-theme="dark"] {
  --bg:         #0f1117;
  --surface:    #1a1f2e;
  --surface-2:  #242938;
  --border:     #2d3348;
  --text:       #e2e8f0;
  --text-muted: #8892a4;
  --nav-bg:     rgba(26,31,46,0.95);
  --shadow:     0 4px 24px rgba(0,0,0,0.35);
  --shadow-sm:  0 1px 4px rgba(0,0,0,0.25);
}

/* ─── Navbar ─────────────────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  z-index: 100;
  transition: background 0.25s, border-color 0.25s;
}
.nav-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.3px;
  color: var(--accent);
  flex-shrink: 0;
}
.nav-actions-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Desktop nav links (hidden on mobile) */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 24px;
}
.nav-link {
  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;
  white-space: nowrap;
}
.nav-link:hover { background: var(--surface-2); color: var(--text); }
.nav-link-admin { color: var(--accent); }
.nav-link-logout { color: var(--error); }
.nav-divider { width: 1px; height: 20px; background: var(--border); margin: 0 6px; }
.nav-user { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); padding: 0 8px; }

/* Theme toggle */
.theme-toggle {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
}
.theme-toggle:hover { background: var(--surface-2); color: var(--text); }
[data-theme="light"] .icon-sun  { display: none; }
[data-theme="dark"]  .icon-moon { display: none; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}
.hamburger:hover { background: var(--surface-2); }
.hamburger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Mobile nav ─────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .hamburger { display: flex; }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 4px 20px 16px;
    z-index: 95;
  }
  .nav-menu.open { display: flex; }

  .nav-link {
    display: block;
    padding: 12px 0;
    font-size: 1rem;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
  }
  .nav-link:last-child { border-bottom: none; }
  .nav-divider { display: none; }
  .nav-user {
    padding: 12px 0 6px;
    font-size: 0.82rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
  }
}

/* ─── Main layout ────────────────────────────────────────────────────────────── */
.main {
  padding-top: calc(var(--nav-h) + 24px);
  padding-bottom: 48px;
  padding-left: 16px;
  padding-right: 16px;
  max-width: 900px;
  margin: 0 auto;
}

/* ─── Cards ──────────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* ─── Buttons ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.15s, opacity 0.15s, transform 0.1s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-primary  { background: var(--accent); color: #fff; }
.btn-primary:hover:not(:disabled)  { background: var(--accent-hover); }

.btn-secondary { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover:not(:disabled) { background: var(--border); }

.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }

.btn-danger { background: var(--error); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #dc2626; }

.btn-full { width: 100%; }
.btn-lg   { padding: 14px 28px; font-size: 1rem; border-radius: var(--radius); }
.btn-sm   { padding: 6px 12px; font-size: 0.8rem; }

/* ─── Forms ──────────────────────────────────────────────────────────────────── */
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }
.form-group { margin-bottom: 20px; }

.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

.range-input {
  flex: 1;
  accent-color: var(--accent);
  cursor: pointer;
}
.range-value {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent);
  min-width: 28px;
  text-align: center;
}

/* ─── Alerts ─────────────────────────────────────────────────────────────────── */
.alert {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.alert-success { background: rgba(34,197,94,0.1);  color: #15803d; border: 1px solid rgba(34,197,94,0.3); }
.alert-error   { background: rgba(239,68,68,0.1);  color: #b91c1c; border: 1px solid rgba(239,68,68,0.3); }
[data-theme="dark"] .alert-success { color: #86efac; }
[data-theme="dark"] .alert-error   { color: #fca5a5; }

/* ─── Auth pages ─────────────────────────────────────────────────────────────── */
.auth-page {
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 32px;
}
.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 36px;
  width: 100%;
  max-width: 400px;
}
.auth-logo {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -1px;
  text-align: center;
  margin-bottom: 6px;
}
.auth-tagline {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
  line-height: 1.5;
}
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-note { text-align: center; color: var(--text-muted); font-size: 0.8rem; margin-top: 14px; }

@media (max-width: 480px) {
  .auth-card { padding: 28px 20px; }
}

/* ─── Home: puzzle header ─────────────────────────────────────────────────────── */
.puzzle-header {
  display: flex; align-items: baseline; gap: 12px;
  margin-bottom: 20px;
}
.puzzle-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}
.puzzle-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Start screen */
.game-start-screen { display: flex; justify-content: center; }
.start-card {
  padding: 36px 32px;
  max-width: 520px;
  width: 100%;
  text-align: center;
}
.start-card h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }
.start-card p  { color: var(--text-muted); margin-bottom: 20px; }

.category-preview {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin-bottom: 28px;
}
.cat-chip {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: color-mix(in srgb, var(--chip-color) 15%, transparent);
  color: var(--chip-color);
  border: 1px solid color-mix(in srgb, var(--chip-color) 30%, transparent);
}

/* ─── Question card (Trivial Pursuit style) ──────────────────────────────────── */
.game-area { display: flex; flex-direction: column; align-items: center; }

.question-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 580px;
  overflow: hidden;
  animation: cardIn 0.3s ease;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes cardOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-10px); }
}
.card-exiting { animation: cardOut 0.2s ease forwards; }

.card-header {
  background: var(--cat-color, #6366f1);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.card-category {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
}
.card-meta {
  display: flex; align-items: center; gap: 8px;
}
.card-difficulty {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.85);
  text-transform: capitalize;
}
.card-progress {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
}

.card-body {
  padding: 28px 24px 24px;
}
.question-text {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 22px;
}

.answers {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.answer-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.answer-btn:hover:not(:disabled) {
  border-color: var(--cat-color, #6366f1);
  background: color-mix(in srgb, var(--cat-color, #6366f1) 8%, var(--surface-2));
  transform: translateX(2px);
}
.answer-btn:active:not(:disabled) { transform: scale(0.99); }
.answer-btn:disabled { cursor: default; }

.answer-label {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--cat-color, #6366f1);
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.answer-text { flex: 1; }

/* Answer states */
.answer-btn.correct {
  border-color: var(--success);
  background: rgba(34,197,94,0.1);
}
.answer-btn.correct .answer-label { background: var(--success); }

.answer-btn.wrong {
  border-color: var(--error);
  background: rgba(239,68,68,0.1);
  animation: shake 0.35s ease;
}
.answer-btn.wrong .answer-label { background: var(--error); }

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

/* Progress dots */
.progress-dots {
  display: flex; gap: 6px; justify-content: center;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.3s;
}
.dot.done    { background: var(--success); }
.dot.current { background: var(--cat-color, #6366f1); }

/* ─── Results ────────────────────────────────────────────────────────────────── */
.result-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 32px;
  max-width: 460px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  animation: cardIn 0.4s ease;
}
.result-score-ring {
  display: inline-flex; align-items: baseline; gap: 4px;
  background: var(--surface-2);
  border: 3px solid var(--accent);
  border-radius: 999px;
  padding: 16px 32px;
  margin-bottom: 20px;
}
.result-score-num { font-size: 3rem; font-weight: 800; color: var(--accent); line-height: 1; }
.result-score-sep { font-size: 1.5rem; font-weight: 700; color: var(--text-muted); }
.result-score-tot { font-size: 2rem; font-weight: 700; color: var(--text-muted); line-height: 1; }
.result-message {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ─── Today's leaderboard (on home after playing) ───────────────────────────── */
.today-leaderboard { margin-top: 24px; padding: 20px 24px; }
.today-leaderboard h3 { margin-bottom: 12px; }

/* ─── Empty state ────────────────────────────────────────────────────────────── */
.empty-state {
  text-align: center; padding: 48px 24px;
}
.empty-state svg { margin: 0 auto 16px; color: var(--text-muted); }
.empty-state h2  { margin-bottom: 8px; }
.empty-state p   { color: var(--text-muted); }
.empty-msg { color: var(--text-muted); padding: 16px 24px; font-size: 0.9rem; }

/* ─── Section titles ─────────────────────────────────────────────────────────── */
.section-title {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ─── Leaderboard ────────────────────────────────────────────────────────────── */
.leaderboard-page { max-width: 720px; margin: 0 auto; }

.lb-section { padding: 24px; }
.lb-section-header {
  display: flex; align-items: baseline; gap: 12px;
  margin-bottom: 20px;
}
.lb-scroll { overflow-x: auto; }

.lb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.lb-table th {
  text-align: left;
  padding: 8px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.lb-table td {
  padding: 12px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.lb-table tr:last-child td { border-bottom: none; }
.lb-table tbody tr { transition: background 0.1s; }
.lb-table tbody tr:hover { background: var(--surface-2); }
.lb-you { background: color-mix(in srgb, var(--accent) 6%, transparent) !important; }

.lb-rank   { font-weight: 700; color: var(--text-muted); width: 40px; }
.lb-player { font-weight: 600; }
.lb-score  { font-weight: 700; color: var(--accent); }
.lb-avg    { font-weight: 700; }
.lb-streak { white-space: nowrap; }
.lb-best   { font-weight: 600; }
.flame     { font-size: 1rem; }
.th-sortable { cursor: pointer; user-select: none; }
.sort-arrow  { color: var(--accent); }

/* ─── Admin ──────────────────────────────────────────────────────────────────── */
.admin-page { max-width: 960px; margin: 0 auto; }

.admin-header { margin-bottom: 24px; }
.admin-title  { font-size: 1.75rem; font-weight: 800; margin-bottom: 12px; }
.admin-stats-row {
  display: flex; gap: 12px; flex-wrap: wrap;
}
.stat-chip {
  display: flex; flex-direction: column; align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  min-width: 90px;
}
.stat-num { font-size: 1.5rem; font-weight: 800; color: var(--accent); }
.stat-lbl { font-size: 0.72rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }

/* Tabs */
.admin-tabs {
  display: flex; gap: 4px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border);
  overflow-x: auto;
}
.tab-btn {
  padding: 10px 18px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  border: 2px solid transparent;
  border-bottom: none;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
  cursor: pointer;
  background: none;
}
.tab-btn:hover  { color: var(--text); background: var(--surface-2); }
.tab-btn.active { color: var(--accent); border-color: var(--border); border-bottom-color: var(--surface); background: var(--surface); margin-bottom: -2px; }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Admin tables */
.table-card { overflow: hidden; }
.table-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.table-title { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.table-scroll { overflow-x: auto; }

.admin-table {
  width: 100%; border-collapse: collapse; font-size: 0.875rem; min-width: 600px;
}
.admin-table th {
  padding: 10px 14px;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  white-space: nowrap;
}
.admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tbody tr { transition: background 0.1s; }
.admin-table tbody tr:hover { background: var(--surface-2); }

.td-email { font-weight: 500; word-break: break-all; }
.td-date  { color: var(--text-muted); white-space: nowrap; }
.td-dash  { color: var(--text-muted); }
.td-actions { display: flex; flex-wrap: wrap; gap: 5px; }

.action-btn {
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 6px;
  border: 1.5px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.action-btn:hover:not(:disabled) { background: var(--border); }
.action-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.action-btn.danger { color: var(--error); border-color: rgba(239,68,68,0.3); }
.action-btn.danger:hover { background: rgba(239,68,68,0.1); border-color: var(--error); }
.action-btn.active { color: var(--accent); border-color: rgba(99,102,241,0.4); }

/* Badges */
.badge { padding: 2px 8px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; }
.badge-admin { background: rgba(99,102,241,0.15); color: var(--accent); }

/* Settings */
.radio-group { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.radio-label {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: border-color 0.15s, background 0.15s;
}
.radio-label:has(input:checked) { border-color: var(--accent); background: rgba(99,102,241,0.08); color: var(--accent); }
.radio-label input { accent-color: var(--accent); }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.cat-check {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.825rem;
  font-weight: 500;
  transition: border-color 0.15s, background 0.15s;
}
.cat-check:has(input:checked),
.cat-check.selected {
  border-color: var(--cat-color);
  background: color-mix(in srgb, var(--cat-color) 10%, transparent);
  color: var(--cat-color);
}
.cat-check input { accent-color: var(--cat-color); }
.label-hint { font-weight: 400; color: var(--text-muted); }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 200;
  padding: 16px;
}
.modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 380px;
  width: 100%;
  box-shadow: var(--shadow);
}
.modal-box h3 { font-size: 1.1rem; margin-bottom: 8px; }
.modal-box p  { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* ─── Utilities ──────────────────────────────────────────────────────────────── */
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
