/* Charte PROVISOIRE brique 1 (doc/memory/style_guide.html).
   Couleurs et formes originales, aucune reprise de l'identite de la marque sous licence.
   Tout est scope sous body.kids pour ne pas toucher le reste de l'app. */
body.kids {
  --sky-top: #8fd3ff;
  --sky-bottom: #d8f1ff;
  --grass: #8fd46a;
  --grass-dark: #5fae45;
  --path: #f3dfae;
  --ink: #2b3a55;
  --cap-red: #e8524a;
  --cap-orange: #f59a3b;
  --cap-purple: #7a6be0;
  --cap-teal: #2fb7a8;
  --stem: #fff3dc;
  --sun: #ffd23f;
  --rose: #e8466b;
  --daisy: #ffffff;
  --sunflower: #ffc21a;
  --wood: #c98b4f;
  --ok: #4cc26b;
  margin: 0;
  height: 100dvh;
  overflow: hidden;
  background: linear-gradient(var(--sky-top), var(--sky-bottom) 55%, var(--grass) 55%);
  font-family: "Baloo 2", system-ui, sans-serif;
  color: var(--ink);
  -webkit-user-select: none;
  user-select: none;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}

.kids .stage { position: fixed; inset: 0; }
.kids .stage > svg { width: 100%; height: 100%; display: block; }

/* Boutons ronds sans texte (AC7 : 64 px minimum) */
.kids .round-btn {
  width: 96px; height: 96px; border-radius: 50%;
  border: 6px solid #fff; background: var(--cap-red);
  box-shadow: 0 8px 0 rgba(0,0,0,.18);
  display: grid; place-items: center; cursor: pointer;
  transition: transform .15s;
}
.kids .round-btn:active { transform: translateY(4px) scale(.96); box-shadow: 0 4px 0 rgba(0,0,0,.18); }
.kids .round-btn svg { width: 52%; height: 52%; }
.kids .round-btn.small { width: 72px; height: 72px; border-width: 5px; }
.kids .round-btn.green { background: var(--ok); }
.kids .round-btn.blue { background: #3b8de0; }
.kids .corner { position: fixed; top: 16px; left: 16px; z-index: 10; }

@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.1); } }
@keyframes wobble { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-4deg); } 75% { transform: rotate(4deg); } }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes drift { from { transform: translateX(-200px); } to { transform: translateX(1400px); } }
@keyframes zzz { 0% { opacity: 0; transform: translate(0,0) scale(.6); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(24px,-50px) scale(1.2); } }
@keyframes pop-in { 0% { transform: scale(0); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes shake { 0%,100% { transform: translateX(0); } 20%,60% { transform: translateX(-10px); } 40%,80% { transform: translateX(10px); } }
@keyframes twinkle { 0% { opacity: 0; transform: scale(.2) rotate(0); } 50% { opacity: 1; } 100% { opacity: 0; transform: scale(1.4) rotate(90deg); } }

.kids .pulse { animation: pulse 1.4s ease-in-out infinite; }
.kids .cloud { animation: drift linear infinite; }
.kids .wobble { animation: wobble .5s ease-in-out 2; transform-box: fill-box; transform-origin: 50% 100%; }
.kids .shake { animation: shake .45s ease-in-out; transform-box: fill-box; }
.kids .bob { animation: bob .35s ease-in-out infinite; }
.kids .zzz { animation: zzz 2.4s ease-out infinite; transform-box: fill-box; }
.kids .pop-in { animation: pop-in .35s ease-out both; transform-box: fill-box; transform-origin: center; }
.kids .twinkle { animation: twinkle 1.2s ease-out both; transform-box: fill-box; transform-origin: center; }

.kids [data-village-target="house"] { cursor: pointer; }
.kids .petal { cursor: grab; }
.kids .petal.dragging { cursor: grabbing; }
.kids .hidden, .kids .end-bar.hidden { display: none; }

/* Fin de partie : boutons rejouer / village */
.kids .end-bar {
  position: fixed; left: 0; right: 0; bottom: 28px; display: flex; gap: 32px;
  justify-content: center; z-index: 10;
}
