/* =========================================================
   Blackjack 21 — jetons de design & base
   ========================================================= */

:root {
  /* Tapis */
  --felt-deep: #04120e;
  --felt: #0a3226;
  --felt-hi: #11553c;

  /* Or */
  --gold: #e9c885;
  --gold-hi: #f7e6c2;
  --gold-deep: #b48a45;

  /* Encre / textes */
  --cream: #f7f1e3;
  --cream-dim: rgba(247, 241, 227, .62);
  --cream-faint: rgba(247, 241, 227, .34);

  /* Sémantique */
  --win: #56e2a8;
  --lose: #ef6b62;
  --push: #9fb4c9;

  /* Cartes */
  --card-ink: #14181c;
  --card-red: #c4342c;
  --card-paper: #fcf8f0;

  /* UI */
  --glass: rgba(9, 30, 23, .58);
  --glass-hi: rgba(255, 255, 255, .09);
  --line: rgba(233, 200, 133, .22);
  --line-soft: rgba(233, 200, 133, .12);

  --font-ui: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-card: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;

  --cw: 60px;
  --ch: 85px;
  --step: 0px;

  --r-sm: 8px;
  --r-md: 12px;
  --r-pill: 999px;

  --shadow-card: 0 6px 16px rgba(0, 0, 0, .34), 0 1px 0 rgba(255, 255, 255, .55) inset;
  --shadow-ui: 0 10px 30px rgba(0, 0, 0, .35);

  --ease: cubic-bezier(.22, .68, .28, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #05100c;
  color: var(--cream);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.35;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  touch-action: manipulation;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

button:disabled { cursor: default; }

[hidden] { display: none !important; }

button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

b, strong { font-weight: 650; }

/* Lecteurs d'écran */
.sr {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Icônes */
.i {
  width: 20px; height: 20px;
  display: block;
  fill: currentColor;
  flex: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
