/* =========================================================================
   Le Temple du Jeu — Design system (refonte front)
   Rendu serveur CI3, zéro build. Thème clair + sombre.
   Concept : "patch cousu / table de jeu" — crème verdi, encre bleu-nuit,
   bleu de marque pour l'interactif, lime en accent parcimonieux.
   ========================================================================= */

@import url("/front/fonts/ltdj.css");

/* -------------------------------------------------------------------------
   1. Tokens
   ------------------------------------------------------------------------- */
:root {
  /* Marque */
  --brand-lime: #c7d33c;
  --brand-lime-deep: #aab72c;
  --brand-blue: #5f8cc0;

  /* Couleurs de rôle — THÈME CLAIR (défaut) */
  --bg: #f4f5ee;              /* crème légèrement verdi */
  --bg-sunken: #ecefe2;
  --surface: #ffffff;
  --surface-2: #f8f9f2;
  --surface-raised: #ffffff;

  --ink: #1b2733;            /* texte principal (bleu-nuit) */
  --ink-soft: #4a5a6a;       /* texte secondaire */
  --ink-faint: #7c8b99;      /* texte tertiaire / méta */

  --line: #d7dccb;           /* bordures discrètes */
  --line-strong: #b7c0a8;    /* bordures marquées (cartes "patch") */

  --primary: #2f6da6;        /* bleu de marque assombri — interactif */
  --primary-hover: #275c8c;
  --primary-ink: #ffffff;    /* texte sur primary */
  --primary-wash: #e5eef6;   /* fond très clair teinté primary */

  --accent: var(--brand-lime);
  --accent-ink: #2b3208;     /* texte sur lime */
  --accent-wash: #f0f3d4;

  --success: #3f8f5f;
  --success-wash: #e4f2e8;
  --info: #2f6da6;
  --info-wash: #e5eef6;
  --warn: #c98a1e;
  --warn-wash: #f8edd4;
  --danger: #c2453f;
  --danger-wash: #f7e5e4;

  --focus-ring: 0 0 0 3px rgba(47, 109, 166, 0.35);

  /* Rayons */
  --r-xs: 5px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-pill: 999px;

  /* Ombres — douces, jamais tape-à-l'œil */
  --shadow-sm: 0 1px 2px rgba(27, 39, 51, 0.06), 0 1px 3px rgba(27, 39, 51, 0.08);
  --shadow-md: 0 4px 12px rgba(27, 39, 51, 0.09), 0 2px 4px rgba(27, 39, 51, 0.06);
  --shadow-lg: 0 12px 32px rgba(27, 39, 51, 0.14);

  /* Espacement (échelle 4) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;

  /* Typo */
  /* Polices de marque Ltdj : GRANDS titres uniquement.
     --font-hero     = « Blancs » (contours) — mois du calendrier
     --font-display  = « Fine Pleine » (pleine légère) — date du jour, h1-h5, nav
     Les petits libellés utilisent la police système (capitales + interlettrage
     + gras) pour rester lisibles. */
  --font-hero: "Ltdj Blancs", "Ltdj Fine Pleine", "Trebuchet MS", system-ui, sans-serif;
  --font-display: "Ltdj Fine Pleine", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --font-label: var(--font-body);
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.375rem;
  --text-4xl: 3rem;

  --leading-tight: 1.15;
  --leading-normal: 1.55;

  --container: 1100px;
  --container-narrow: 760px;

  color-scheme: light;
}

/* -------------------------------------------------------------------------
   2. Thème sombre — auto + override manuel
   ------------------------------------------------------------------------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131c25;
    --bg-sunken: #0e161d;
    --surface: #1b2733;
    --surface-2: #21303d;
    --surface-raised: #24333f;

    --ink: #e8edf2;
    --ink-soft: #a9b8c6;
    --ink-faint: #7f909e;

    --line: #33434f;
    --line-strong: #465966;

    --primary: #7fb0de;
    --primary-hover: #9cc4e9;
    --primary-ink: #10202e;
    --primary-wash: #223444;

    --accent: #cdd94a;
    --accent-ink: #1e2406;
    --accent-wash: #2f3a1a;

    --success: #6fc38c;
    --success-wash: #1f3a2a;
    --info: #7fb0de;
    --info-wash: #223444;
    --warn: #e0b063;
    --warn-wash: #3b2f18;
    --danger: #e88a84;
    --danger-wash: #3c2321;

    --focus-ring: 0 0 0 3px rgba(127, 176, 222, 0.4);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35), 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.55);

    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #131c25;
  --bg-sunken: #0e161d;
  --surface: #1b2733;
  --surface-2: #21303d;
  --surface-raised: #24333f;

  --ink: #e8edf2;
  --ink-soft: #a9b8c6;
  --ink-faint: #7f909e;

  --line: #33434f;
  --line-strong: #465966;

  --primary: #7fb0de;
  --primary-hover: #9cc4e9;
  --primary-ink: #10202e;
  --primary-wash: #223444;

  --accent: #cdd94a;
  --accent-ink: #1e2406;
  --accent-wash: #2f3a1a;

  --success: #6fc38c;
  --success-wash: #1f3a2a;
  --info: #7fb0de;
  --info-wash: #223444;
  --warn: #e0b063;
  --warn-wash: #3b2f18;
  --danger: #e88a84;
  --danger-wash: #3c2321;

  --focus-ring: 0 0 0 3px rgba(127, 176, 222, 0.4);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35), 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.55);

  color-scheme: dark;
}

/* -------------------------------------------------------------------------
   3. Reset ciblé
   ------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Un mot ou une URL trop longue (description d'événement, lieu…) ne doit
     jamais forcer la page à s'élargir sur mobile — il doit se couper. */
  overflow-wrap: anywhere;
}
/* Filet de sécurité anti-débordement horizontal. "clip" et non "hidden" :
   "hidden" force overflow-y à passer à "auto", ce qui casse position:sticky
   (barre de nav, colonne calendrier) sur certains navigateurs. */
body { overflow-x: clip; }

img,
picture,
svg {
  max-width: 100%;
  display: block;
}

h1, h2, h3, h4, h5 {
  margin: 0 0 var(--sp-3);
  font-family: var(--font-display);
  font-weight: 400;
  line-height: var(--leading-tight);
  letter-spacing: 0.01em;
  color: var(--ink);
}

h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }

p { margin: 0 0 var(--sp-4); }

a {
  color: var(--primary);
  text-decoration-color: color-mix(in srgb, var(--primary) 40%, transparent);
  text-underline-offset: 2px;
}
a:hover { color: var(--primary-hover); }

button {
  font: inherit;
  cursor: pointer;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: var(--sp-5) 0;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--r-xs);
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

[hidden] { display: none !important; }

/* -------------------------------------------------------------------------
   4. Layout utilitaires
   ------------------------------------------------------------------------- */
.ds-container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-4);
}
.ds-container--narrow { max-width: var(--container-narrow); }

.ds-stack > * + * { margin-top: var(--sp-4); }
.ds-stack-sm > * + * { margin-top: var(--sp-2); }
.ds-stack-lg > * + * { margin-top: var(--sp-6); }

.ds-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
}

.ds-center { text-align: center; }
.ds-muted { color: var(--ink-soft); }
.ds-faint { color: var(--ink-faint); }

/* Titre de section avec trait "feutre" dessiné */
.ds-section-title {
  display: inline-block;
  position: relative;
  padding-bottom: var(--sp-2);
}
.ds-section-title::after {
  content: "";
  position: absolute;
  left: 0;
  right: -6px;
  bottom: -2px;
  height: 7px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='8' viewBox='0 0 120 8' preserveAspectRatio='none'%3E%3Cpath d='M1 5.2C22 2.1 44 2.4 66 4.1c18 1.4 36 1.1 53-1.6' fill='none' stroke='%23c7d33c' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

/* -------------------------------------------------------------------------
   5. Boutons
   ------------------------------------------------------------------------- */
.btn {
  --_bg: var(--surface);
  --_fg: var(--ink);
  --_bd: var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 42px;
  padding: 0 var(--sp-4);
  border: 2px solid var(--_bd);
  border-radius: var(--r-md);
  background: var(--_bg);
  color: var(--_fg);
  font-family: var(--font-label);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  transition: transform 0.08s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); box-shadow: none; }

.btn--primary {
  --_bg: var(--primary);
  --_fg: var(--primary-ink);
  --_bd: color-mix(in srgb, var(--primary) 78%, #000);
}
.btn--primary:hover { --_bg: var(--primary-hover); }

.btn--accent {
  --_bg: var(--accent);
  --_fg: var(--accent-ink);
  --_bd: var(--brand-lime-deep);
}

.btn--ghost {
  --_bg: transparent;
  --_bd: var(--line-strong);
}
.btn--ghost:hover { --_bg: var(--surface-2); }

.btn--sm { min-height: 34px; padding: 0 var(--sp-3); font-size: var(--text-xs); }
.btn--lg { min-height: 50px; padding: 0 var(--sp-6); font-size: var(--text-base); }
.btn--block { display: flex; width: 100%; }

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* -------------------------------------------------------------------------
   6. Carte "patch"
   ------------------------------------------------------------------------- */
.card {
  background: var(--surface-raised);
  border: 2px solid var(--line-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: clip;
}
.card__body { padding: var(--sp-5); }
.card__header {
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 2px solid var(--line);
  background: var(--surface-2);
}
.card__footer {
  padding: var(--sp-4) var(--sp-5);
  border-top: 2px solid var(--line);
  background: var(--surface-2);
}

/* Étiquette "cousue" légèrement inclinée (titres d'accroche) */
.sticker {
  display: inline-block;
  padding: var(--sp-1) var(--sp-3);
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: var(--text-sm);
  border-radius: var(--r-sm);
  transform: rotate(-1.4deg);
  box-shadow: var(--shadow-sm);
}
.sticker--blue { background: var(--primary); color: var(--primary-ink); }

/* -------------------------------------------------------------------------
   7. Badges / pastilles
   ------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-family: var(--font-label);
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: var(--surface-2);
  color: var(--ink-soft);
  border: 1.5px solid var(--line-strong);
  white-space: nowrap;
}
.badge--accent { background: var(--accent-wash); color: var(--ink); border-color: var(--brand-lime-deep); }
.badge--primary { background: var(--primary-wash); color: var(--primary); border-color: color-mix(in srgb, var(--primary) 45%, transparent); }
.badge--danger  { background: var(--danger-wash); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, transparent); }

/* Pastille de jeu (couleur venant de couleurFondPlanning) */
.game-pill {
  --game-color: var(--brand-blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 9px 2px 7px;
  border-radius: var(--r-pill);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--ink);
  background: color-mix(in srgb, var(--game-color) 26%, var(--surface));
  border: 1.5px solid color-mix(in srgb, var(--game-color) 65%, transparent);
}
.game-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--game-color);
  flex: none;
}

/* -------------------------------------------------------------------------
   8. Alertes (4 tons, barre d'accent à gauche, sans emoji)
   ------------------------------------------------------------------------- */
.alert {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  border: 1.5px solid var(--line-strong);
  border-left-width: 5px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: var(--text-sm);
}
.alert p:last-child { margin-bottom: 0; }
.alert--success { background: var(--success-wash); border-color: var(--success); }
.alert--info    { background: var(--info-wash);    border-color: var(--info); }
.alert--primary { background: var(--primary-wash); border-color: var(--primary); }
.alert--warn    { background: var(--warn-wash);    border-color: var(--warn); }
.alert--danger  { background: var(--danger-wash);  border-color: var(--danger); }

/* -------------------------------------------------------------------------
   9. Formulaires
   ------------------------------------------------------------------------- */
.field { display: block; margin-bottom: var(--sp-4); }
.field__label {
  display: block;
  margin-bottom: var(--sp-1);
  font-family: var(--font-label);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.field__hint { margin-top: var(--sp-1); font-size: var(--text-xs); color: var(--ink-faint); }

.input,
.textarea,
.select {
  width: 100%;
  min-height: 44px;
  padding: var(--sp-2) var(--sp-3);
  background: var(--surface);
  color: var(--ink);
  border: 2px solid var(--line-strong);
  border-radius: var(--r-md);
  font: inherit;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.textarea { min-height: 96px; resize: vertical; line-height: var(--leading-normal); }
.input::placeholder,
.textarea::placeholder { color: var(--ink-faint); }
.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--focus-ring);
}
.input:read-only,
.textarea:read-only { background: var(--surface-2); color: var(--ink-soft); }

/* champ compact dans un tableau (édition admin) */
.input--inline {
  width: auto;
  min-height: 32px;
  max-width: 130px;
  padding: 2px 6px;
  border-width: 1.5px;
  border-radius: var(--r-sm);
}

/* retour visuel après sauvegarde inline */
.pi-flash {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: var(--r-sm);
  font-size: var(--text-xs);
  font-weight: 700;
  color: #fff;
  transition: opacity 0.8s ease-out;
}
.pi-flash--ok { background: var(--success); }
.pi-flash--ko { background: var(--danger); }

.form-grid {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
}

/* Choix segmentés type "cartes radio" (modes de préinscription) */
.choice-group { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-2); }
.choice {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  padding: var(--sp-3) var(--sp-4);
  border: 2px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.12s ease, background-color 0.12s ease;
}
.choice:hover { background: var(--surface-2); }
.choice > input { margin-top: 3px; accent-color: var(--primary); width: 18px; height: 18px; flex: none; }
.choice__text { font-size: var(--text-sm); }
.choice__text b { font-weight: 700; letter-spacing: 0.01em; }
.choice:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-wash);
}
.choice:has(input:disabled) {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Interrupteur de filtre (remplace bootstrap-toggle) */
.switch {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 5px 12px 5px 6px;
  border-radius: var(--r-pill);
  border: 2px solid var(--line-strong);
  background: var(--surface);
  font-family: var(--font-label);
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-soft);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.switch__dot {
  width: 30px;
  height: 18px;
  border-radius: var(--r-pill);
  background: var(--line-strong);
  position: relative;
  flex: none;
  transition: background-color 0.15s ease;
}
.switch__dot::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease;
}
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch:has(input:checked) {
  border-color: var(--brand-lime-deep);
  background: var(--accent-wash);
  color: var(--ink);
}
.switch:has(input:checked) .switch__dot { background: var(--accent); }
.switch:has(input:checked) .switch__dot::after { transform: translateX(12px); }
.switch:has(input:focus-visible) { box-shadow: var(--focus-ring); }

/* -------------------------------------------------------------------------
   10. Tableaux
   ------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border-radius: var(--r-md); border: 2px solid var(--line-strong); }
.table {
  width: 100%;
  min-width: 460px; /* sous ce seuil ça défile (.table-wrap) plutôt que de tasser le texte lettre par lettre */
  border-collapse: collapse;
  font-size: var(--text-sm);
  background: var(--surface);
}
.table th,
.table td {
  padding: var(--sp-2) var(--sp-3);
  text-align: left;
  border-bottom: 1px solid var(--line);
  overflow-wrap: normal; /* les noms/dates se coupent aux espaces, jamais au milieu d'un mot */
  white-space: nowrap;
}
.table thead th {
  font-family: var(--font-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: var(--text-xs);
  color: var(--ink-soft);
  background: var(--surface-2);
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.table__waitlist td {
  background: var(--accent-wash) !important;
  text-align: center;
  font-family: var(--font-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink);
}

/* -------------------------------------------------------------------------
   11. Navbar
   ------------------------------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--line-strong);
}
.navbar__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: var(--sp-3) var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}
.navbar__brand {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
}
.navbar__brand img { height: 42px; width: 53px; object-fit: contain; }
.navbar__spacer { flex: 1; }
@media (max-width: 520px) {
  .navbar__brand span { display: none; }
  .navbar__inner { gap: var(--sp-2); }
}

/* Lien boutique dans le bandeau — discret, simple lien texte */
.navbar__shop-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--text-sm);
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
}
.navbar__shop-link:hover { color: var(--primary); }
.navbar__shop-link svg { width: 14px; height: 14px; flex: none; }
@media (max-width: 700px) {
  .navbar__shop-link-text { display: none; }
}

/* Bouton bascule de thème */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  border: 2px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}
.theme-toggle:hover { background: var(--surface-2); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

/* -------------------------------------------------------------------------
   12. Divers
   ------------------------------------------------------------------------- */
.marker {
  background: linear-gradient(transparent 55%, color-mix(in srgb, var(--accent) 70%, transparent) 0);
  padding: 0 3px;
  font-weight: 700;
}

.spinner {
  width: 34px;
  height: 34px;
  border: 4px solid var(--line-strong);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: ds-spin 0.8s linear infinite;
  margin: var(--sp-5) auto;
}
@keyframes ds-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
