/* Faux Raccord - base : variables, reset, fond BD, conteneur mobile */
:root {
  --yellow: #FFD60A;
  --pink: #FF2E93;
  --blue: #1F4BFF;
  --violet: #6A1BFF;
  --ink: #190B3A;
  --paper: #FFF8E1;
  --font-title: 'Titan One', 'Arial Rounded MT Bold', 'Arial Black', system-ui, sans-serif;
  --font-body: 'Fredoka', 'Trebuchet MS', system-ui, sans-serif;
  --pop: cubic-bezier(.34, 1.56, .64, 1);
  /* Contour BD autour du texte (8 directions) */
  --outline: -3px -3px 0 var(--ink), 3px -3px 0 var(--ink), -3px 3px 0 var(--ink), 3px 3px 0 var(--ink),
             0 -3px 0 var(--ink), 0 3px 0 var(--ink), -3px 0 0 var(--ink), 3px 0 0 var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh; /* dvh : évite le bug de la barre d'adresse sur iPhone/Android */
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--paper);
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}

/* Fond : rayons violets façon planche de BD + trame de points roses */
.bg {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(circle, rgba(255, 46, 147, .38) 0 2.2px, transparent 2.8px) 0 0 / 22px 22px,
    repeating-conic-gradient(from 0deg at 50% 28%, var(--violet) 0 9deg, #5412D2 9deg 18deg);
}

/* Conteneur : colonne centrée, pensée pour un téléphone en portrait */
#app {
  width: 100%; max-width: 480px; margin: 0 auto;
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right))
           max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
}
.screen {
  flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 22px;
  animation: screen-in .45s var(--pop);
}
@keyframes screen-in {
  from { opacity: 0; transform: scale(.92) rotate(-1.5deg); }
  to   { opacity: 1; transform: none; }
}

:focus-visible { outline: 4px solid var(--yellow); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}
