/* Page du jeu : la toile occupe toute la fenêtre, toujours. */
:root { color-scheme: dark; --fond: #0b1020; --texte: #e9edf5; --doux: #a3adc2; --tres-doux: #6f7a92; --accent: #7cc6ea; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--fond); overscroll-behavior: none; }
body { font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--texte); -webkit-font-smoothing: antialiased; }

#unity-canvas {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh; height: 100dvh;
  display: block; background: var(--fond);
  outline: none; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
}

.voile {
  position: fixed; inset: 0; z-index: 2;
  display: grid; place-items: center; padding: 16px;
  background: rgba(11, 16, 32, 0.86);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: opacity .3s;
}
.voile[hidden] { display: none; }
.voile__carte { width: min(440px, 100%); text-align: center; }
.voile__surtitre { margin: 0 0 12px; color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.voile__titre { margin: 0 0 36px; font-size: clamp(30px, 6vw, 40px); font-weight: 650; letter-spacing: -0.02em; }
.voile__texte { margin: 0; color: var(--texte); font-size: 16px; }
.voile__aide { margin: 16px 0 0; color: var(--tres-doux); font-size: 13.5px; line-height: 1.55; }
.voile__lien { display: inline-block; margin-top: 20px; color: var(--doux); font-size: 15px; text-decoration: none; }
.voile__lien:hover { color: var(--texte); }
.etat[hidden] { display: none; }

.barre { height: 4px; margin: 0 auto 18px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.barre__pleine { width: 0; height: 100%; border-radius: inherit; background: var(--accent); transition: width .25s ease-out; }
#pourcent { font-variant-numeric: tabular-nums; }

.bouton {
  margin-top: 24px; padding: 14px 30px; border: 0; border-radius: 999px;
  background: var(--texte); color: var(--fond);
  font: 600 16px/1 inherit; font-family: inherit; cursor: pointer;
  transition: transform .2s, background .2s;
}
.bouton:hover { background: #fff; transform: translateY(-1px); }
.bouton:focus-visible, .voile__lien:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.sans-script { position: fixed; inset: 0; display: grid; place-items: center; margin: 0; color: var(--doux); }
