/* pjsheet — page provisoire. Mobile d'abord. */
:root {
  --fond: #f6f1e7;
  --texte: #2b2118;
  --discret: #6f6253;
  --accent: #7a2e1d;
  --sur-accent: #fff8ee;
  --alerte: #8a5a00;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fond: #16120e;
    --texte: #ede3d2;
    --discret: #a3937e;
    --accent: #c8643f;
    --sur-accent: #16120e;
    --alerte: #9c6a10;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding: 0 16px;
  background: var(--fond);
  color: var(--texte);
  font-family: Georgia, "Times New Roman", serif;
}
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
h1 {
  margin: 0;
  font-size: clamp(2.5rem, 12vw, 5rem);
  font-weight: normal;
  letter-spacing: 0.08em;
}
.bientot { color: var(--discret); font-size: 1.25rem; font-style: italic; }
footer {
  padding: 16px 0 calc(16px + env(safe-area-inset-bottom));
  color: var(--discret);
  font-family: system-ui, sans-serif;
  font-size: 0.8rem;
  text-align: center;
}
code { font-size: 0.95em; }

/* ── Page du joueur ─────────────────────────────────────────────────────────── */
h2 { margin: 0.5rem 0 0; font-weight: normal; }
.discret { color: var(--discret); font-family: system-ui, sans-serif; font-size: 0.85rem; }
.jeton { word-break: break-all; }
.joueur h1 { font-size: clamp(2.2rem, 11vw, 4rem); letter-spacing: 0.02em; }
.actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 0 calc(16px + env(safe-area-inset-bottom));
}
.actions button {
  min-height: 56px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: var(--sur-accent);
  font: 600 1.1rem system-ui, sans-serif;
  touch-action: manipulation;
}
.actions button:disabled { opacity: 0.6; }
.bandeau {
  position: sticky;
  top: 0;
  margin: 0 -16px;
  padding: calc(12px + env(safe-area-inset-top)) 16px 12px;
  font: 600 1rem system-ui, sans-serif;
  text-align: center;
}
.bandeau-signe { background: var(--accent); color: var(--sur-accent); cursor: pointer; }
.bandeau-alerte { background: var(--alerte); color: #fff; }
