/* splash-premium.css — splash de lancement en finition « premium » (11/11/2026)
   (mutualisé WebContent ↔ web-preview ; chargé par index.html côté iOS et
   play.html côté web, APRÈS leur <style> inline, dont il reprend les règles
   du splash à poids égal).

   Même finition que les fenêtres (ds-couleurs.css) : fond « Nuit » du thème,
   médaillon de Flam à liseré métallique, filet, sous-titre et barre à l'or
   du thème (jetons --fen-*), dés dessinés comme les dés premium de la partie
   (matière, liseré métallique, symboles au trait doré). Le thème est posé
   avant le premier affichage par theme-precoce.js, et ds-couleurs.css est
   chargé en <head> : sans eux, le splash serait peint aux couleurs par
   défaut puis basculerait au chargement de la page.

   Le bas du fond reste presque noir : le splash prend le relais de l'écran
   de lancement natif d'iOS (LaunchBackground, #0a0008 fixe, qui ne peut pas
   suivre le thème) — sans éclair de lumière entre les deux. */

#splash {
  --sp-or: var(--fen-or, #f3d08c);
  --sp-or-hi: var(--fen-or-hi, #fff4dc);
  --sp-or-lo: var(--fen-or-lo, #c99a4e);
  --sp-metal-hi: var(--fen-metal-hi, #f8e4b4);
  --sp-metal-lo: var(--fen-metal-lo, #8e5e2a);
  /* Dés : mêmes recettes que des-premium.css pour un thème sans teintes
     propres (saisons) — clair du thème mêlé d'or, cœurs dans son vif. */
  --sp-base: var(--surface-raised, #4a1832);
  --sp-glyph: color-mix(in srgb, var(--accent-light, #ff70c7) 55%, #f3c48c);
  --sp-glyph-hi: #fff1ea;
  --sp-glyph-lo: color-mix(in srgb, var(--accent-strong, #ff2e95) 55%, #c99a4e);
  --sp-heart: var(--accent-strong, #ff2e95);
  --sp-heart-hi: color-mix(in srgb, var(--accent-light, #ff70c7) 60%, #fff);
  background:
    radial-gradient(ellipse 85% 55% at 50% 40%, color-mix(in srgb, var(--night-top, #3d1236) 75%, transparent) 0%, transparent 72%),
    radial-gradient(ellipse 120% 70% at 50% 0%, color-mix(in srgb, var(--sp-or-hi) 5%, transparent) 0%, transparent 60%),
    linear-gradient(175deg, var(--night-mid, #220920) 0%, var(--night-deep, #14040f) 55%, color-mix(in srgb, var(--night-deep, #14040f) 55%, #000) 100%);
}

/* Médaillon de Flam : liseré métallique, halo doré. */
#splash .splash-logo {
  box-sizing: border-box; border: 1.6px solid transparent;
  background: linear-gradient(135deg, var(--sp-metal-hi), var(--sp-metal-lo) 45%, var(--sp-metal-hi) 70%, var(--sp-metal-lo)) border-box;
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .2), 0 10px 30px rgba(0, 0, 0, .5);
  filter: drop-shadow(0 0 26px color-mix(in srgb, var(--sp-or) 45%, transparent));
}

#splash .splash-rule { background: linear-gradient(90deg, transparent, var(--sp-or-lo), var(--sp-or-hi), var(--sp-or-lo), transparent); }
#splash .splash-base { color: color-mix(in srgb, var(--sp-or) 82%, transparent); }

/* ── Dés premium ─────────────────────────────────────────────────────── */
#splash .sp-die {
  width: 40px; height: 40px;   /* l'ancien dé dessinait son carré à 72 % d'une boîte de 46 px */
  position: relative; display: flex; align-items: center; justify-content: center;
  box-sizing: border-box; border-radius: 12px; border: 1.6px solid transparent;
  background:
    linear-gradient(150deg,
      color-mix(in srgb, var(--sp-base) 82%, #fff) 0%,
      var(--sp-base) 42%,
      color-mix(in srgb, var(--sp-base) 70%, #000) 100%) padding-box,
    linear-gradient(135deg, var(--sp-metal-hi), var(--sp-metal-lo) 45%, var(--sp-metal-hi) 70%, var(--sp-metal-lo)) border-box;
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .22), inset 0 -8px 14px rgba(0, 0, 0, .32), 0 8px 14px rgba(0, 0, 0, .5);
  filter: none;
}
#splash .sp-die svg {
  width: 74%; height: 74%; display: block; overflow: visible;
  filter: drop-shadow(0 1.5px 0 rgba(0, 0, 0, .55)) drop-shadow(0 0 6px color-mix(in srgb, var(--sp-glyph) 35%, transparent));
}
#splash .sp-g0 { stop-color: var(--sp-glyph-hi); }
#splash .sp-g1 { stop-color: var(--sp-glyph); }
#splash .sp-g2 { stop-color: var(--sp-glyph-lo); }
#splash .sp-h0 { stop-color: var(--sp-heart-hi); }
#splash .sp-h1 { stop-color: var(--sp-heart); }

/* ── Barre de chargement : un fil d'or qui balaie ─────────────────────── */
#splash .splash-bar { background: color-mix(in srgb, var(--sp-or) 14%, transparent); }
#splash .splash-bar-fill {
  background: linear-gradient(90deg, var(--sp-or-lo), var(--sp-or-hi), var(--sp-or));
  box-shadow: 0 0 12px color-mix(in srgb, var(--sp-or) 65%, transparent);
}
