/* jeu.neuroveto.fr : socle commun (polices, couleurs, accueil, accès). Chaque jeu a sa feuille propre. */
@font-face { font-family: Manrope; src: url(/assets/polices/manrope-latin-wght-normal.woff2) format('woff2'); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Manrope; src: url(/assets/polices/manrope-latin-ext-wght-normal.woff2) format('woff2'); font-weight: 200 800; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Bricolage; src: url(/assets/polices/bricolage-latin.woff2) format('woff2'); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Bricolage; src: url(/assets/polices/bricolage-latin-ext.woff2) format('woff2'); font-weight: 200 800; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: dark;
  /* nuit étoilée, cadran crème, aiguille sarcelle, bouton rouge, bandes du jeu */
  --nuit: #141a3a; --nuit-2: #1c2452; --nuit-3: #26306a; --encre: #0d1130;
  --creme: #f4ecdc; --creme-2: #e9dec7; --texte: #f4ecdc; --sourdine: #a9b0d6;
  --sarcelle: #6cc4b6; --rouge: #e0362c; --orange: #ee6a3c; --jaune: #f0b23a; --bleu: #3a8fd0;
  --rose: #f2b8c6; --vert: #9fd4a3; --petrole: #0f5a78;
  --titre: Bricolage, Manrope, system-ui, sans-serif;
  --corps: Manrope, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; font: 16px/1.5 var(--corps); color: var(--texte);
  background: radial-gradient(120% 80% at 50% -10%, var(--nuit-3) 0%, var(--nuit) 55%, var(--encre) 100%) fixed var(--nuit);
  -webkit-tap-highlight-color: transparent;
}
/* ciel étoilé discret (dégradés seulement, aucune image) */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .55;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 78% 12%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 33% 64%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 88% 72%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 55% 30%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 6% 86%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 66% 90%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 44% 8%, #fff 50%, transparent 51%);
  background-size: 260px 260px, 310px 310px, 370px 370px, 290px 290px, 230px 230px, 410px 410px, 340px 340px, 280px 280px;
}
body > * { position: relative; z-index: 1; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--titre); font-weight: 700; letter-spacing: -.01em; text-wrap: balance; margin: 0; }
button { font: inherit; color: inherit; }
.page { width: 100%; max-width: 560px; margin: 0 auto; padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }

/* bande arc-en-ciel du jeu */
.rayures { height: 10px; border-radius: 999px; background: linear-gradient(90deg, var(--vert) 0 10%, var(--orange) 10% 18%, var(--creme) 18% 30%, var(--sarcelle) 30% 40%, var(--rose) 40% 52%, var(--encre) 52% 58%, var(--rouge) 58% 70%, var(--rose) 70% 78%, var(--bleu) 78% 88%, var(--jaune) 88% 100%); }

/* boutons */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border: 0; border-radius: var(--r);
  background: var(--creme); color: var(--encre); font-weight: 700; font-size: 17px; cursor: pointer; text-decoration: none; transition: transform .12s ease, background .2s; touch-action: manipulation; }
.bouton:active { transform: scale(.97); }
.bouton.rouge { background: var(--rouge); color: #fff; }
.bouton.sarcelle { background: var(--sarcelle); color: var(--encre); }
.bouton.discret { background: transparent; color: var(--texte); box-shadow: inset 0 0 0 1.5px rgba(244,236,220,.35); }
.bouton:disabled { opacity: .45; cursor: default; }
.bouton:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--jaune); outline-offset: 3px; }

/* accueil */
.marque { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 8px 0 18px; }
.marque h1 { font-size: 30px; }
.marque small { color: var(--sourdine); font-size: 13px; }
.jeux { display: grid; gap: 14px; margin-top: 22px; }
.jeu { display: grid; grid-template-columns: 92px 1fr; gap: 16px; align-items: center; padding: 16px; border-radius: 20px; background: rgba(255,255,255,.05);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); text-decoration: none; transition: transform .15s ease, background .2s; }
.jeu:active { transform: scale(.985); }
.jeu:hover { background: rgba(255,255,255,.08); }
.jeu h2 { font-size: 22px; }
.jeu p { margin: 4px 0 0; color: var(--sourdine); font-size: 14px; }
.jeu svg { width: 92px; height: 92px; display: block; }
.a-venir { opacity: .5; pointer-events: none; }

/* accès */
.acces { min-height: 100dvh; display: grid; place-items: center; }
.acces form { width: 100%; max-width: 360px; display: grid; gap: 14px; text-align: center; }
.acces h1 { font-size: 34px; }
.acces p { margin: 0; color: var(--sourdine); }
.acces input { width: 100%; height: 64px; border-radius: var(--r); border: 0; background: var(--creme); color: var(--encre); font: 700 30px/1 var(--titre);
  text-align: center; letter-spacing: .3em; }
.erreur { color: var(--orange) !important; font-weight: 600; }
.pied { margin-top: 28px; color: var(--sourdine); font-size: 12px; text-align: center; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
