@font-face { font-family: "Jersey 10"; src: url(/fonts/jersey-10-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Pixelify Sans"; src: url(/fonts/pixelify-sans-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Pixelify Sans"; src: url(/fonts/pixelify-sans-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Lilita One"; src: url(/fonts/lilita-one-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito"; src: url(/fonts/nunito-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url(/fonts/nunito-latin-800-normal.woff2) format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Nunito"; src: url(/fonts/nunito-latin-900-normal.woff2) format("woff2"); font-weight: 900; font-display: swap; }

/* Direction artistique : soirée jeux sur papier kraft. Encre brune, aplats francs, ombres dures, aucune lueur. */
:root {
  --ink: #231712; --dark: #4f1507; --bark: #ad4e1a; --orange: #f68f37; --gold: #ffbb31; --cream: #f5b784; --paper: #fff0d6;
  --green: #139d08; --leaf: #5ad04a; --sky: #0b8bff; --red: #d8432b;
  --disp: "Jersey 10", "Pixelify Sans", monospace;
  --body: "Pixelify Sans", "Jersey 10", monospace;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--ink); color: var(--paper); font-family: var(--body); font-weight: 400; }
body { overflow: hidden; background: transparent; }
#scene { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; z-index: -1; background: var(--sky); }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, .disp { font-family: var(--disp); font-weight: 400; letter-spacing: .02em; margin: 0; }
.hidden { display: none !important; }
.px { text-shadow: 2px 0 var(--ink), -2px 0 var(--ink), 0 2px var(--ink), 0 -2px var(--ink), 2px 2px var(--ink), -2px -2px var(--ink), 2px -2px var(--ink), -2px 2px var(--ink); }
.pixel-img, .av, .coverimg { image-rendering: pixelated; }

/* Panneau en bois : texture d'écorce du pack, contour encre, liseré écorce, ombre portée dure */
.panel, .card {
  background: #3a1a0c url(/art/ui-panel.png); background-size: 192px; image-rendering: pixelated;
  border: 4px solid var(--ink); box-shadow: inset 0 0 0 4px var(--bark), inset 0 0 0 6px var(--ink), 6px 6px 0 rgba(35, 23, 18, .55);
  color: var(--paper);
}
/* Bouton : planche d'écorce claire */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; text-decoration: none;
  font-family: var(--disp); font-size: 1.7em; letter-spacing: .03em; line-height: 1; color: var(--paper);
  padding: .5em 1.1em .55em; border: 4px solid var(--ink);
  background: #f68f37 url(/art/ui-plank.png); background-size: 285px; image-rendering: pixelated;
  box-shadow: inset 0 4px 0 rgba(255, 224, 160, .5), inset 0 -6px 0 rgba(79, 21, 7, .55), 0 6px 0 var(--ink);
  text-shadow: 2px 0 var(--ink), -2px 0 var(--ink), 0 2px var(--ink), 0 -2px var(--ink), 2px 2px var(--ink), -2px -2px var(--ink), 2px -2px var(--ink), -2px 2px var(--ink);
  transition: transform .05s, box-shadow .05s; touch-action: manipulation; user-select: none; -webkit-user-select: none;
}
.btn:active { transform: translateY(5px); box-shadow: inset 0 4px 0 rgba(255, 224, 160, .5), inset 0 -6px 0 rgba(79, 21, 7, .55), 0 1px 0 var(--ink); }
.btn.ok { background: #2f9d1c url(/art/ui-plank-green.png); background-size: 285px; }
.btn.red { background: #c23a22 url(/art/ui-plank-red.png); background-size: 285px; }
.btn.ghost { background: rgba(35, 23, 18, .55); box-shadow: none; border-style: dashed; border-color: var(--cream); text-shadow: none; color: var(--cream); font-size: 1.2em; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.logo { font-family: var(--disp); line-height: .9; color: var(--paper); display: inline-flex; align-items: center; gap: .3em; white-space: nowrap; letter-spacing: .04em;
  text-shadow: 4px 0 var(--ink), -4px 0 var(--ink), 0 4px var(--ink), 0 -4px var(--ink), 4px 4px var(--ink), -4px -4px var(--ink), 4px -4px var(--ink), -4px 4px var(--ink), 0 8px 0 var(--ink); }
.logo i { font-style: normal; color: var(--gold); }
.av { display: block; flex: none; }
