/* Styles communs Pixel Builder
   Couleurs : nuit (fond), crépuscule (surfaces), brume (traits), craie (texte), lilas (secondaire),
   et les deux équipes, orange et cyan, qui portent toute la couleur. */
:root {
  --night: #120f2e;
  --dusk: #1f1a4a;
  --haze: #3a3474;
  --chalk: #f3efff;
  --lilac: #a9a3dc;
  --orange: #ff8a3d;
  --orange-deep: #7a3108;
  --cyan: #3dd6ff;
  --cyan-deep: #0b4d63;
  --signal: #ffd23d;
  --danger: #ff5c7a;
  --display: "Pixelify Sans", ui-monospace, monospace;
  --body: "Pixelify Sans", ui-monospace, monospace;   /* une seule police partout : celle du jeu */
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--night); }
html, body { margin: 0; }
body { min-height: 100vh; background: var(--night); color: var(--chalk); font: 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border: 0; cursor: pointer;
  font: 600 19px/1 var(--display);
  background: var(--haze); color: var(--chalk);
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.3);
  text-decoration: none;
}
.btn:hover { background: #4a4392; }
.btn:active { box-shadow: none; transform: translateY(2px); }
.btn:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
.btn.primary { background: var(--orange); color: #2a1100; }
.btn.primary:hover { background: #ff9d5c; }
.btn:disabled { opacity: .45; cursor: default; }
.muted { color: var(--lilac); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
