:root { --fond: #10231c; --texte: #f4f7f2; --accent: #f2b33d; --attenue: #b9c8bf; --ok: #55c98a; --non: #ef7d6d; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--fond); color: var(--texte); font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
.cache { display: none !important; }
.ecran { min-height: 100%; max-width: 440px; margin: 0 auto; padding: 32px 16px; display: flex; flex-direction: column; gap: 16px; justify-content: center; }
h1 { margin: 0; font-size: 2rem; }
.sous-titre, .note { margin: 0; color: var(--attenue); }
.note { font-size: .875rem; }
.note a { color: var(--accent); }
form { display: flex; flex-direction: column; gap: 8px; }
label { font-weight: 600; }
input { font: inherit; padding: 12px; border-radius: 8px; border: 1px solid var(--attenue); background: #fff; color: #10231c; text-transform: uppercase; }
button { font: inherit; font-weight: 600; min-height: 44px; border-radius: 8px; border: 0; padding: 10px 16px; cursor: pointer; }
.principal { background: var(--accent); color: #10231c; }
.secondaire { background: transparent; color: var(--texte); border: 1px solid var(--attenue); }
#resultat-code { margin: 0; min-height: 1.4em; }
#jeu, #scene { position: fixed; inset: 0; }
#consigne { position: fixed; left: 12px; right: 12px; bottom: calc(16px + env(safe-area-inset-bottom)); padding: 12px 16px; border-radius: 12px; background: rgba(16, 35, 28, .9); text-align: center; font-weight: 600; }
#consigne.reussi { background: var(--ok); color: #10231c; }
#consigne.rate { background: var(--non); color: #10231c; }
#mesures { position: fixed; top: calc(8px + env(safe-area-inset-top)); left: 8px; padding: 6px 8px; border-radius: 6px; background: rgba(0, 0, 0, .6); font: 12px/1.4 ui-monospace, Menlo, Consolas, monospace; white-space: pre; }
.petit { position: fixed; top: calc(8px + env(safe-area-inset-top)); right: 8px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 12px; min-height: 44px; }
#erreur { position: fixed; inset: auto 8px 80px; max-height: 40%; overflow: auto; background: #5c1212; color: #fff; padding: 8px; border-radius: 6px; font-size: 12px; white-space: pre-wrap; }
