/* MAUZ BROSS - feuille de style (thème sombre unique, identité MAUZ) */

:root {
  color-scheme: dark;
  --nuit: #070b07;
  --texte: #eafbea;
  --texte-doux: rgba(234, 251, 234, .6);
  --filet: rgba(234, 251, 234, .16);
  --mau: hsl(125 70% 70%);
  --z: hsl(45 88% 62%);
  --rose: #FF5C8A;
  --rouge: #FF3B30;
  --violet: #A238FF;
  --cyan: #3ECFDA;
  --spotify: #1ED760;
  --police-titre: Anton, Impact, sans-serif;
  --police-texte: 'Space Grotesk', system-ui, sans-serif;
  --police-pixel: VT323, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100svh;
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, hsl(125 70% 70% / .06), transparent 70%),
    var(--nuit);
  color: var(--texte);
  font-family: var(--police-texte);
  font-size: 15px;
  line-height: 1.45;
  padding-block: 12px;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
  overflow-x: hidden;
}

button:focus-visible, a:focus-visible { outline: 2px solid var(--z); outline-offset: 3px; }

.app { max-width: 980px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }

/* En-tête */
.tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.retour { color: var(--texte-doux); text-decoration: none; font-weight: 500; white-space: nowrap; }
.retour:hover { color: var(--mau); }
.logo-bloc { text-align: center; }
.logo { margin: 0; font-family: var(--police-titre); font-weight: 400; font-size: clamp(28px, 6vw, 46px); letter-spacing: .02em; line-height: 1; }
.logo .mau { color: var(--mau); }
.logo .z { color: var(--z); }
.logo .bross { color: var(--texte); margin-left: .25em; }
.hashtag { margin: 2px 0 0; color: var(--texte-doux); font-size: 13px; }
.actions { display: flex; gap: 8px; }
.actions button {
  font: 500 13px var(--police-texte); color: var(--texte); background: transparent;
  border: 1px solid var(--filet); border-radius: 999px; padding: 6px 12px; cursor: pointer; white-space: nowrap;
}
.actions button:hover { border-color: var(--mau); color: var(--mau); }

/* Scène de jeu */
.scene { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cadre {
  position: relative;
  width: min(100%, calc((100svh - 190px) * 256 / 240));
  min-width: min(100%, 288px);
  aspect-ratio: 256 / 240;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--filet), 0 0 40px hsl(125 70% 70% / .12);
}
#jeu { display: block; width: 100%; height: 100%; image-rendering: pixelated; image-rendering: crisp-edges; background: #3d7bd9; }

/* Écrans titre / fin */
.ecran {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 16px;
  background: linear-gradient(180deg, rgba(7, 11, 7, .55), rgba(7, 11, 7, .85));
  overflow-y: auto;
}
.carte { text-align: center; max-width: 520px; }
.sur-titre { margin: 0; color: var(--z); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: clamp(11px, 2.4vw, 14px); }
.titre-jeu, .titre-fin { margin: 4px 0 6px; font-family: var(--police-titre); font-weight: 400; font-size: clamp(40px, 11vw, 84px); line-height: 1; }
.titre-jeu .mau { color: var(--mau); }
.titre-jeu .z { color: var(--z); }
.titre-fin { color: var(--mau); }
.pitch { margin: 0 0 10px; font-size: clamp(13px, 2.8vw, 17px); }
.regles { list-style: none; margin: 0 0 14px; padding: 0; color: var(--texte-doux); font-size: clamp(11px, 2.2vw, 13px); }
.regles b { color: var(--texte); }
.btn-jouer {
  font: 400 clamp(20px, 4vw, 28px) var(--police-titre); letter-spacing: .04em; text-transform: uppercase;
  color: var(--nuit); background: var(--mau); border: 0; border-radius: 999px; padding: 8px 34px; cursor: pointer;
  box-shadow: 0 0 24px hsl(125 70% 70% / .35);
}
.btn-jouer:hover { background: var(--z); }
.astuce, .record, .liens { margin: 8px 0 0; color: var(--texte-doux); font-size: clamp(11px, 2.2vw, 13px); }
.record strong, .score-fin strong { color: var(--z); }
.score-fin { margin: 0 0 4px; font-size: clamp(14px, 3vw, 18px); }
.cent { color: var(--mau); font-weight: 700; margin: 4px 0 0; }
.liens a { color: var(--mau); }

/* Aide clavier */
.aide { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; color: var(--texte-doux); font-size: 13px; }
kbd { font: 15px var(--police-pixel); color: var(--texte); border: 1px solid var(--filet); border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; margin-right: 2px; }

/* Commandes tactiles */
.tactile { display: none; width: 100%; max-width: 520px; justify-content: space-between; align-items: center; user-select: none; -webkit-user-select: none; touch-action: none; }
.tactile button {
  touch-action: none; -webkit-tap-highlight-color: transparent;
  width: 62px; height: 62px; border-radius: 50%; border: 1px solid var(--filet);
  background: rgba(234, 251, 234, .06); color: var(--texte); font: 22px var(--police-titre); cursor: pointer;
}
.tactile button.appui { background: var(--mau); color: var(--nuit); }
.croix, .ab { display: flex; gap: 10px; align-items: center; }
.ab .a { width: 74px; height: 74px; border-color: var(--mau); color: var(--mau); }
.ab .b { border-color: var(--z); color: var(--z); transform: translateY(18px); }
@media (pointer: coarse) {
  .tactile { display: flex; }
  .aide { display: none; }
  .cadre { width: min(100%, calc((100svh - 300px) * 256 / 240)); }
}

/* Pied de page */
.pied { border-top: 1px solid var(--filet); padding-top: 14px; text-align: center; }
.pied-titre { margin: 0 0 8px; color: var(--texte-doux); font-size: 13px; }
.pilules { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pilule {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--filet); color: var(--texte); text-decoration: none; font-size: 13px;
}
.pilule:hover { border-color: var(--teinte); color: var(--teinte); }
.point { width: 7px; height: 7px; border-radius: 50%; background: var(--teinte); }
.mention { margin: 10px 0 0; color: var(--texte-doux); font-size: 12px; }

@media (max-width: 560px) {
  .tete { flex-wrap: wrap; justify-content: center; }
  .logo-bloc { order: -1; width: 100%; }
  .regles { display: none; }
}
