/* ===== Base commune ===== */
:root {
  --braise: #ff6a2b;
  --braise-clair: #ffb07a;
  --cendre: #1a1714;
  --nuit: #0d0c0b;
  --texte: #f3ece4;
  --texte-doux: #b8ada2;
  --verre: rgba(18, 15, 13, 0.72);
  --bord: rgba(255, 180, 130, 0.18);
  --ok: #8fd18a;
  --rayon: 14px;
  --police-titre: 'Chakra Petch', system-ui, sans-serif;
  --police: 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; background: var(--nuit); color: var(--texte); font-family: var(--police); }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
kbd {
  display: inline-block; min-width: 2em; padding: .2em .55em; border-radius: 6px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-bottom-width: 3px;
  font-family: var(--police-titre); font-size: .85em; text-align: center; color: var(--texte);
}
#scene-3d { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; z-index: 0; }
.voile {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 45%, rgba(0,0,0,.65) 100%),
    linear-gradient(to bottom, rgba(0,0,0,.25), transparent 30%, transparent 70%, rgba(0,0,0,.55));
  transition: opacity .8s;
}
body.en-jeu .voile { opacity: 0; }
.noscript { position: fixed; inset: 0; display: grid; place-items: center; }

/* Écrans (un seul visible à la fois) */
.ecran {
  position: fixed; inset: 0; z-index: 10; display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility .45s;
  padding: 24px;
}
.ecran.actif { opacity: 1; visibility: visible; }

/* Boutons */
.btn {
  position: relative; padding: 14px 28px; border-radius: 999px; font-family: var(--police-titre);
  font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: 15px;
  transition: transform .2s, background .2s, box-shadow .2s, opacity .2s;
}
.btn:disabled { opacity: .35; cursor: not-allowed; }
.btn-principal {
  background: linear-gradient(135deg, var(--braise), #d9431a);
  box-shadow: 0 8px 30px rgba(255, 90, 30, .35), inset 0 1px 0 rgba(255,255,255,.3);
  color: #fff;
}
.btn-principal:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(255, 90, 30, .55), inset 0 1px 0 rgba(255,255,255,.3); }
.btn-secondaire { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(6px); }
.btn-secondaire:hover { background: rgba(255,255,255,.12); border-color: var(--braise-clair); }
.btn:focus-visible, .btn-retour:focus-visible { outline: 2px solid var(--braise-clair); outline-offset: 3px; }

/* Panneaux */
.panneau {
  position: relative; width: min(460px, 100%); max-height: calc(100vh - 48px); overflow: auto;
  background: var(--verre); backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid var(--bord); border-radius: var(--rayon); padding: 34px 32px 30px;
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
}
.panneau-large { width: min(760px, 100%); }
.panneau h2 { font-family: var(--police-titre); font-size: 28px; letter-spacing: .04em; margin-bottom: 22px; }
.btn-retour { font-size: 13px; color: var(--texte-doux); margin-bottom: 12px; letter-spacing: .05em; }
.btn-retour:hover { color: var(--braise-clair); }
.note { color: var(--texte-doux); font-size: 14px; margin-bottom: 16px; }
