/* ==========================================================================
   Design System compartido — Análisis Semántico / Inferencia
   Paleta: violeta-índigo (más azul que el morado de Twitch), sin emojis,
   iconografía SVG inline. Un solo archivo, enlazado desde cada página.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400..700;1,6..96,400..700&family=JetBrains+Mono:ital,wght@0,400..600;1,400..600&display=swap');

/* -------------------------------- Reset -------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; }
a { color: var(--primary); text-decoration: none; }
i, em { font-style: normal; }

/* ------------------------------- Tokens --------------------------------- */
:root {
  /* Color — violeta/índigo, más azul que el morado "Twitch" */
  --primary: #5B3DF5;
  --primary-deep: #3820B0;
  --primary-soft: #ECE8FE;
  --ink: #18142A;
  --muted: #6C6480;
  --bg: #F7F6FC;
  --surface: #FFFFFF;
  --line: #E3DFF0;
  --success: #17A672;
  --warn: #D97706;
  --danger: #DC2626;
  --accent: #17B4D9;
  --font-brand: 'Bodoni Moda', Georgia, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* Tinte de sombra = --primary a distintas opacidades */
  --shadow-tint: 91, 61, 245;

  /* Spacing — grid 4/8pt */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  /* Radios */
  --radius: 12px;
  --radius-lg: 16px;
  --radius-sheet: 20px 20px 0 0;
  --radius-badge: 10px;
  --radius-badge-sm: 8px;
  --radius-pill: 999px;

  /* Sombras — siempre tinte --primary, nunca negro puro */
  --shadow-xs: 0 2px 8px rgba(var(--shadow-tint), 0.12);
  --shadow-sm: 0 1px 4px rgba(var(--shadow-tint), 0.15);
  --shadow-md: 0 4px 16px rgba(var(--shadow-tint), 0.25);
  --shadow-lg: 0 4px 16px rgba(var(--shadow-tint), 0.18);
  --shadow-xl: 0 -8px 32px rgba(var(--shadow-tint), 0.22);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-press: 0.12s;
  --dur-hover: 0.15s;
  --dur-toggle: 0.18s;
  --dur-enter: 0.22s;

  /* z-index */
  --z-nav: 100;
  --z-sheet: 200;
  --z-toast: 300;

  color-scheme: light;
}

:root[data-theme="oscuro"] {
  --primary: #7C5CFF;
  --primary-deep: #4B2FD1;
  --primary-soft: #271F45;
  --ink: #F0EDF9;
  --muted: #A79CC4;
  --bg: #130F1F;
  --surface: #1C1730;
  --line: #2E2748;
  --success: #22C58D;
  --warn: #F0A020;
  --danger: #F0524B;
  --accent: #29D3F0;
  --shadow-tint: 0, 0, 0;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="claro"]) {
    --primary: #7C5CFF;
    --primary-deep: #4B2FD1;
    --primary-soft: #271F45;
    --ink: #F0EDF9;
    --muted: #A79CC4;
    --bg: #130F1F;
    --surface: #1C1730;
    --line: #2E2748;
    --success: #22C58D;
    --warn: #F0A020;
    --danger: #F0524B;
    --accent: #29D3F0;
    --shadow-tint: 0, 0, 0;
    color-scheme: dark;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
}

/* ------------------------------ Tipografía ------------------------------ */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; font-weight: 700; }

.brand {
  font-family: var(--font-brand);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
:root[data-theme="oscuro"] .brand { color: #fff; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="claro"]) .brand { color: #fff; }
}

.page-title { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.page-sub { font-family: var(--font-mono); font-size: 13.5px; font-weight: 400; color: var(--muted); }
.section-intro { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.sheet-title { font-size: 18px; font-weight: 700; }
.section { font-size: 15px; font-weight: 700; color: var(--ink); }
.field-label { font-size: 13px; font-weight: 700; color: var(--ink); }
.caption { font-size: 12px; font-weight: 400; color: var(--muted); }

.tabular-nums,
.metric-value,
.numeric,
.value { font-variant-numeric: tabular-nums; }

/* -------------------------------- Layout -------------------------------- */
.page {
  max-width: 1240px;
  margin: 0 auto;
  padding: var(--space-5) var(--space-4) var(--space-8);
}

@media (max-width: 768px) {
  .page { padding: var(--space-4) var(--space-3) var(--space-7); }
}

/* -------------------------------- Header -------------------------------- */
.app-header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.app-header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

@media (max-width: 420px) {
  .app-header-inner { padding: var(--space-2) var(--space-3); gap: var(--space-2); }
  .brand { font-size: 19px; }
}

.app-nav-links {
  display: flex;
  gap: var(--space-2);
}

.icon-logo {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary-deep), var(--primary));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex: none;
}
.icon-logo svg { width: 18px; height: 18px; }

.back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--ink);
  cursor: pointer;
  transition: background var(--dur-hover) var(--ease-out);
}
.back-button:hover { background: var(--surface); }
.back-button svg { width: 20px; height: 20px; fill: currentColor; }

/* -------------------------------- Botones -------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background var(--dur-toggle) var(--ease-out), transform var(--dur-press) var(--ease-out);
}
.btn:active { transform: scale(0.98); }
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-deep); }
.btn-primary:disabled {
  background: var(--line); color: var(--muted); cursor: not-allowed; transform: none;
}

.btn-ghost, .btn-secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover, .btn-secondary:hover { background: var(--bg); }

button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.icon-btn-close {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface); display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background var(--dur-hover) var(--ease-out);
}
.icon-btn-close:hover { background: var(--line); }
.icon-btn-close svg { width: 18px; height: 18px; fill: currentColor; }

/* -------------------------------- Tabs ----------------------------------- */
.tabs {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  border-bottom: 1px solid var(--line);
}

.tab {
  padding: var(--space-3) var(--space-4);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
  transition: color var(--dur-hover) var(--ease-out), border-color var(--dur-hover) var(--ease-out);
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab svg { width: 18px; height: 18px; fill: currentColor; }

.tab-content { display: none; }
.tab-content.active { display: block; animation: rise var(--dur-enter) var(--ease-out); }

/* ---------------------------- Barra de búsqueda --------------------------- */
.search-toggle {
  display: flex;
  justify-content: center;
  width: fit-content;
  margin: 0 auto var(--space-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 4px;
  gap: 4px;
}
.search-toggle .tab {
  border-bottom: none;
  border-radius: var(--radius-pill);
  padding: var(--space-2) var(--space-4);
  min-height: 36px;
  font-size: 13px;
}
.search-toggle .tab.active { background: var(--primary); color: #fff; }
.search-toggle .tab:not(.active):hover { color: var(--ink); }

.search-bar {
  position: relative;
  display: flex;
  align-items: center;
}
.search-bar input {
  width: 100%;
  min-height: 60px;
  padding: 0 60px 0 var(--space-5);
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  transition: border-color var(--dur-hover) var(--ease-out);
}
.search-bar input:focus { outline: none; border-color: var(--primary); }
.search-bar input:disabled { color: var(--muted); cursor: pointer; }
.search-bar-btn {
  position: absolute;
  right: 8px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: none;
  transition: background var(--dur-hover) var(--ease-out);
}
.search-bar-btn:hover { background: var(--primary-deep); }
.search-bar-btn svg { width: 20px; height: 20px; fill: currentColor; }

/* -------------------------------- Cards ---------------------------------- */
.input-panel, .card {
  max-width: 1240px;
  margin: 0 auto var(--space-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-xs);
}

.input-panel h1 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--line);
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.input-panel h1 svg { width: 24px; height: 24px; fill: var(--primary); flex: none; }

.card-interactive { cursor: pointer; transition: background var(--dur-hover) var(--ease-out); }
.card-interactive:active { background: var(--bg); }

.card-hero {
  background: linear-gradient(135deg, var(--primary-deep), var(--primary));
  color: #fff;
  border: none;
}

/* ------------------------------ Formularios ------------------------------ */
.input-section { margin-bottom: var(--space-4); }
.input-section label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--ink);
}

.input-section input,
.input-section textarea,
.input-section select {
  width: 100%;
  min-height: 48px;
  padding: var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  transition: border-color var(--dur-hover) var(--ease-out);
}
.input-section input:focus,
.input-section textarea:focus,
.input-section select:focus {
  outline: none;
  border-color: var(--primary);
}
.input-section input:disabled,
.input-section textarea:disabled { background: var(--surface); color: var(--muted); }

#articleInput { min-height: 300px; resize: vertical; }

.button-group { display: flex; gap: var(--space-3); margin-top: var(--space-4); flex-wrap: wrap; }

/* --------------------------- Resultados / búsqueda ------------------------ */
.search-results {
  margin-top: var(--space-4);
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: none;
}
.search-results.active { display: block; }

.search-result-item {
  padding: var(--space-4);
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background var(--dur-hover) var(--ease-out);
  opacity: 0;
  animation: rise 0.35s var(--ease-out) forwards;
}
.search-result-item:hover { background: var(--bg); }
.search-result-item:last-child { border-bottom: none; }

.result-title { font-weight: 700; color: var(--primary); margin-bottom: var(--space-1); font-size: 15px; }
.result-snippet { font-size: 13px; color: var(--muted); }

/* -------------------------------- Dashboard ------------------------------- */
.dashboard { display: none; }
.dashboard.active { display: block; animation: rise var(--dur-enter) var(--ease-out); }

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-4);
  margin: var(--space-4) 0;
}

.metric-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4);
  box-shadow: var(--shadow-xs);
}
.metric-label { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: var(--space-1); text-transform: uppercase; letter-spacing: 0.02em; }
.metric-value { font-size: 26px; font-weight: 800; color: var(--ink); }

.chart-wrapper, .chart-container {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-xs);
}
.chart-title { font-size: 15px; font-weight: 700; margin-bottom: var(--space-3); }

/* --------------------------------- Badges --------------------------------- */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 700;
}
.status-badge::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: currentColor;
  flex: none;
}
.status-high, .incorrect { background: color-mix(in srgb, var(--danger) 14%, var(--surface)); color: var(--danger); }
.status-medium { background: color-mix(in srgb, var(--warn) 16%, var(--surface)); color: var(--warn); }
.status-low, .correct { background: color-mix(in srgb, var(--success) 14%, var(--surface)); color: var(--success); }

/* --------------------------------- Estados --------------------------------- */
.info-box, .info-message {
  background: var(--primary-soft);
  color: var(--ink);
  border-radius: var(--radius);
  padding: var(--space-4);
  font-size: 14px;
}
.info-box strong, .info-message strong { color: var(--primary-deep); }
:root[data-theme="oscuro"] .info-box strong,
:root[data-theme="oscuro"] .info-message strong { color: var(--primary); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="claro"]) .info-box strong,
  :root:not([data-theme="claro"]) .info-message strong { color: var(--primary); }
}

.error-message {
  background: color-mix(in srgb, var(--danger) 10%, var(--surface));
  color: var(--danger);
  border-radius: var(--radius);
  padding: var(--space-4);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.error-message svg { width: 20px; height: 20px; fill: currentColor; flex: none; }

.loading { display: flex; align-items: center; gap: var(--space-3); color: var(--muted); padding: var(--space-4) 0; }
.spinner {
  width: 22px; height: 22px;
  border: 3px solid var(--line);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.skeleton {
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--line) 25%, var(--surface) 37%, var(--line) 63%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-out infinite;
}

/* -------------------------------- Sidebar/TOC ------------------------------ */
.sidebar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-xs);
}
.toc a {
  display: block;
  padding: var(--space-2) 0;
  font-size: 13.5px;
  color: var(--muted);
  transition: color var(--dur-hover) var(--ease-out);
}
.toc a:hover { color: var(--primary); }

/* ---------------------------------- Juego ---------------------------------- */
.game-topbar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); }
.game-status { font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

.game-progress-track { height: 8px; border-radius: var(--radius-pill); background: var(--line); overflow: hidden; }
.game-progress-fill { height: 100%; background: var(--primary); border-radius: var(--radius-pill); transition: width var(--dur-enter) var(--ease-out); }

.game-question-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-xs);
  margin: var(--space-4) 0;
  animation: rise var(--dur-enter) var(--ease-out);
}
.game-question-text { font-size: 17px; font-weight: 700; margin-bottom: var(--space-4); }

.game-options-row { display: flex; flex-direction: column; gap: var(--space-3); }
.game-option-btn {
  min-height: 48px;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  text-align: left;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--dur-hover) var(--ease-out), border-color var(--dur-hover) var(--ease-out), transform var(--dur-press) var(--ease-out);
}
.game-option-btn:hover { background: var(--bg); border-color: var(--primary); }
.game-option-btn:active { transform: scale(0.99); }
.game-option-btn.correct-fb { background: color-mix(in srgb, var(--success) 12%, var(--surface)); border-color: var(--success); color: var(--success); }
.game-option-btn.incorrect-fb { background: color-mix(in srgb, var(--danger) 10%, var(--surface)); border-color: var(--danger); color: var(--danger); }

.game-feedback { margin-top: var(--space-4); padding: var(--space-4); border-radius: var(--radius); background: var(--primary-soft); color: var(--ink); font-size: 14px; }
.game-feedback strong { color: var(--primary-deep); }
:root[data-theme="oscuro"] .game-feedback strong { color: var(--primary); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="claro"]) .game-feedback strong { color: var(--primary); }
}
.game-key-note { font-size: 12.5px; color: var(--muted); margin-top: var(--space-2); }
.game-next-btn { margin-top: var(--space-4); }

.game-results-screen { text-align: center; padding: var(--space-6) var(--space-4); }
.game-results-title { font-size: 22px; font-weight: 700; margin-bottom: var(--space-2); }
.game-results-score { font-size: 32px; font-weight: 800; color: var(--primary); margin: var(--space-3) 0; font-variant-numeric: tabular-nums; }

.game-stars { display: inline-flex; gap: var(--space-1); margin: var(--space-3) 0; }
.game-stars svg { width: 26px; height: 26px; fill: var(--line); }
.game-stars svg.filled { fill: var(--warn); }

.game-config, .game-controls { display: flex; gap: var(--space-3); flex-wrap: wrap; align-items: flex-end; margin-bottom: var(--space-4); }
.game-loading { display: flex; align-items: center; gap: var(--space-3); color: var(--muted); padding: var(--space-4) 0; }
.game-error { background: color-mix(in srgb, var(--danger) 10%, var(--surface)); color: var(--danger); border-radius: var(--radius); padding: var(--space-4); }

/* --------------------------------- Toggle tema ------------------------------ */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--ink);
  cursor: pointer;
  transition: background var(--dur-hover) var(--ease-out);
}
.theme-toggle:hover { background: var(--surface); }
.theme-toggle svg { width: 20px; height: 20px; fill: currentColor; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="oscuro"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="oscuro"] .theme-toggle .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="claro"]) .theme-toggle .icon-sun { display: none; }
  :root:not([data-theme="claro"]) .theme-toggle .icon-moon { display: block; }
}

.header-actions { display: flex; align-items: center; gap: 2px; }

/* -------------------------------- Selector idioma --------------------------- */
.lang-switcher { position: relative; display: inline-flex; }
.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--ink);
  cursor: pointer;
  transition: background var(--dur-hover) var(--ease-out);
}
.lang-toggle:hover { background: var(--surface); }
.lang-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 160px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 4px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: var(--z-nav);
}
.lang-menu.open { display: flex; }
.lang-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  width: 100%;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-badge-sm);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}
.lang-menu-item:hover { background: var(--bg); }
.lang-menu-item.active { color: var(--primary); }
.lang-menu-item .check { width: 16px; height: 16px; fill: currentColor; visibility: hidden; }
.lang-menu-item.active .check { visibility: visible; }

@media (max-width: 420px) {
  .lang-menu { left: auto; right: 0; }
}

/* ----------------------------------- Motion --------------------------------- */
@keyframes spin { to { transform: rotate(360deg); } }

@keyframes shimmer { to { background-position: -200% 0; } }

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

@keyframes slide-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(var(--shadow-tint), 0.35); }
  100% { box-shadow: 0 0 0 18px rgba(var(--shadow-tint), 0); }
}
