:root {
  --bg: #0a0a0c;
  --fg: #eaf2ff;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
  margin: 0;
}

html,
body {
  height: 100%;
}

html {
  background: var(--bg);
}

body {
  color: var(--fg);
  font-family: "SF Mono", "JetBrains Mono", "Cascadia Code", ui-monospace,
    monospace;
  overflow: hidden;
  overscroll-behavior: none;
  /* Fond sombre uni : gris très foncé au centre vers le noir. */
  background: radial-gradient(
    125% 120% at 50% 32%,
    #161618 0%,
    #0b0b0d 55%,
    #050506 100%
  );
}

/* Calque du vent : traits visibles quand le shuriken file vite. */
.wind {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

/* ---------- Shuriken (jouet) ---------- */
.shuriken {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  height: auto;
  cursor: grab;
  user-select: none;
  -webkit-user-drag: none;
  touch-action: none;
  will-change: transform;
  /* Halo qui s'intensifie avec la vitesse (--glow piloté en JS). */
  filter: drop-shadow(
      0 0 calc(1.25px + var(--glow, 0) * 5px)
        rgba(255, 110, 160, calc(0.18 + var(--glow, 0) * 0.3))
    )
    drop-shadow(0 1.5px 4.5px rgba(0, 0, 0, 0.4));
  animation: drop-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.shuriken--grab {
  cursor: grabbing;
}

@keyframes drop-in {
  from {
    opacity: 0;
  }
}

[hidden] {
  display: none !important;
}
