/* ===============================
   Alunissage – styles spécifiques
   =============================== */

.al-root {
  --al-encre: #eef1ff;
  --al-doux: #9ea6c9;
  --al-verre: rgba(12, 14, 34, 0.58);
  --al-bord: rgba(255, 255, 255, 0.12);
  --al-cyan: #6fe3ff;
  --al-vert: #6dffaa;
  --al-orange: #ffb547;
  --al-rouge: #ff5d6c;
  --al-violet: #8b7bff;
  /* Barre commune (css/games.css) aux couleurs de l'espace */
  --mg-jeu-largeur: 1204px;
  --mgb-fond: radial-gradient(120% 160% at 0% 0%, rgba(111, 227, 255, 0.2), transparent 55%),
    linear-gradient(120deg, #05060f, #1a1d44);
  --mgb-texte: var(--al-encre);
  --mgb-doux: var(--al-doux);
  --mgb-accent: var(--al-cyan);
  --mgb-titre: linear-gradient(100deg, #e9fdff, var(--al-cyan) 45%, var(--al-violet));
  --mg-fs-fond: #05060f;
  --mg-bulle-fond: #0c0e22;
  align-items: center;
  font-family: "Outfit", system-ui, sans-serif;
}

/* La scène : le canevas et tout ce qui flotte au-dessus */
.al-scene {
  position: relative;
  container-type: inline-size;
  border-radius: 22px;
  overflow: hidden;
  background: #05060f;
  box-shadow:
    0 0 0 1px rgba(20, 24, 60, 0.12),
    0 22px 60px -20px rgba(10, 10, 50, 0.75);
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  color: var(--al-encre);
}

/* Le site impose sans-serif à chaque élément et colore les <b> */
.al-root,
.al-root * {
  font-family: "Outfit", system-ui, sans-serif;
}

.al-root b {
  color: inherit;
}

#al-canvas {
  display: block;
  touch-action: none;
}

/* ---------- Puces translucides ---------- */

.al-puce {
  padding: 8px 13px;
  border-radius: 16px;
  background: var(--al-verre);
  border: 1px solid var(--al-bord);
  backdrop-filter: blur(12px) saturate(1.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  box-shadow: 0 10px 26px -14px rgba(0, 0, 0, 0.8);
  box-sizing: border-box;
}

.al-root small {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--al-doux);
}

/* Barre commune : mission, score et pause masqués sur l'accueil (choix du niveau) */
.al-root:has(.al-sans-hud) .al-infos,
.al-root:has(.al-sans-hud) .al-outils-jeu,
.al-root:has(.al-sans-hud) .al-outils-jeu + .mg-barre-sep {
  display: none;
}

.al-root:has(.al-sans-hud) .mg-barre-titre {
  border-right: none;
}

.al-sans-hud .al-instruments {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

.al-sans-hud .al-instruments {
  transform: translate(-50%, 8px);
}

/* Mission en cours */
.al-mission {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.al-mission > b {
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.al-objectifs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #c9cfe9;
}

.al-obj {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.al-obj-astro {
  width: 13px;
  height: 15px;
  border-radius: 6px 6px 3px 3px;
  border: 1.6px solid #ffc36a;
  box-sizing: border-box;
  opacity: 0.85;
}

.al-obj-astro.abord {
  background: #ffc36a;
  box-shadow: 0 0 10px rgba(255, 195, 106, 0.8);
}

.al-obj-cristal i {
  width: 10px;
  height: 12px;
  margin-right: 3px;
  background: linear-gradient(135deg, #e9fdff, #6fe3ff 45%, #7a5cff);
  clip-path: polygon(50% 0, 100% 35%, 80% 100%, 20% 100%, 0 35%);
}

.al-obj.fait {
  color: var(--al-vert);
}

.al-obj-base {
  color: var(--al-vert);
}

.al-obj-base::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 4px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.al-obj-base.verrou {
  color: #ff9aa4;
}

/* ---------- Instruments de bord ---------- */

.al-instruments {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  align-items: stretch;
  gap: 4px;
  padding: 6px;
  border-radius: 18px;
  background: rgba(8, 10, 26, 0.62);
  border: 1px solid var(--al-bord);
  backdrop-filter: blur(12px) saturate(1.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  box-shadow: 0 14px 30px -16px rgba(0, 0, 0, 0.9);
  pointer-events: none;
  transition:
    opacity 0.35s,
    transform 0.35s;
}

.al-instr {
  --c: var(--al-encre);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 84px;
  padding: 5px 10px 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.25s;
}

.al-instr b {
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--c);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: color 0.2s;
}

.al-instr em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--al-doux);
}

.al-instr.ok {
  --c: var(--al-vert);
}

.al-instr.attention {
  --c: var(--al-orange);
  background: rgba(255, 181, 71, 0.1);
}

.al-instr.danger {
  --c: var(--al-rouge);
  background: rgba(255, 93, 108, 0.16);
}

.al-instr[hidden] {
  display: none;
}

.al-instr-carbu {
  min-width: 118px;
}

.al-jauge {
  display: block;
  height: 6px;
  margin: 3px 0 1px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.al-jauge i {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--c), color-mix(in srgb, var(--c) 60%, #fff));
  box-shadow: 0 0 10px var(--c);
  transition: background 0.3s;
}

.al-instr-carbu b {
  font-size: 0.9rem;
}

.al-instr-carbu.danger b {
  animation: al-clignote 0.7s steps(2) infinite;
}

@keyframes al-clignote {
  50% {
    opacity: 0.35;
  }
}

.al-assiette,
.al-fleche-vent {
  width: 16px;
  height: 16px;
  align-self: center;
  margin-right: 2px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.al-fleche-vent {
  stroke-width: 2.6;
}

/* ---------- Annonces ---------- */

.al-message {
  position: absolute;
  left: 50%;
  top: 23%;
  max-width: 86%;
  transform: translate(-50%, 10px) scale(0.96);
  padding: 9px 20px;
  border-radius: 40px;
  background: rgba(8, 10, 26, 0.6);
  border: 1px solid var(--al-bord);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s,
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.al-message.visible {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.al-message.alerte {
  color: #ffd0a0;
  border-color: rgba(255, 181, 71, 0.5);
}

.al-message.succes {
  color: #c4ffd9;
  border-color: rgba(109, 255, 170, 0.5);
}

.al-message.titre {
  font-family: "Madimi One", "Outfit", sans-serif;
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  background: transparent;
  border-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.8);
}

/* ---------- Commandes tactiles ---------- */

.al-tactile {
  display: none;
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  justify-content: space-between;
  align-items: flex-end;
  pointer-events: none;
}

.al-tactile-on.al-en-vol .al-tactile {
  display: flex;
}

.al-tactile-rot {
  display: flex;
  gap: 10px;
}

.al-tbtn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 66px;
  height: 66px;
  padding: 0;
  margin: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(12, 14, 34, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  pointer-events: auto;
  touch-action: none;
  transition:
    transform 0.1s,
    background 0.1s;
}

.al-tbtn svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.al-tbtn-gaz {
  width: 88px;
  height: 88px;
}

.al-tbtn-gaz span {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.al-tbtn.actif {
  transform: scale(0.93);
  background: rgba(111, 227, 255, 0.3);
  border-color: var(--al-cyan);
}

.al-tbtn-gaz.actif {
  background: rgba(255, 150, 70, 0.4);
  border-color: var(--al-orange);
}

/* Avec les commandes tactiles, les instruments remontent sous le bandeau */
.al-tactile-on.al-en-vol .al-instruments {
  bottom: auto;
  top: calc(var(--al-hud-h, 0px) + 18px);
}

/* ---------- Écrans (menu, briefing, pause, fin) ---------- */

.al-ecran {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  box-sizing: border-box;
  background: radial-gradient(ellipse at center, rgba(4, 5, 16, 0.35), rgba(4, 5, 16, 0.7));
  animation: al-apparait 0.35s ease-out;
  overflow-y: auto;
}

.al-ecran[hidden] {
  display: none;
}

.al-ecran-menu {
  background: linear-gradient(90deg, rgba(4, 5, 16, 0.72), rgba(4, 5, 16, 0.25) 75%);
  justify-content: flex-start;
  padding-left: clamp(14px, 5cqw, 60px);
}

.al-ecran-modal {
  z-index: 5;
  background: rgba(4, 5, 16, 0.55);
}

@keyframes al-apparait {
  from {
    opacity: 0;
  }
}

.al-carte {
  position: relative;
  width: min(560px, 100%);
  max-height: 100%;
  overflow-y: auto;
  padding: 22px 24px 18px;
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(26, 30, 66, 0.82), rgba(10, 12, 30, 0.86));
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 30px 60px -24px rgba(0, 0, 0, 0.85);
  text-align: center;
  box-sizing: border-box;
  animation: al-monte 0.45s cubic-bezier(0.22, 1.2, 0.36, 1);
  scrollbar-width: thin;
}

@keyframes al-monte {
  from {
    transform: translateY(18px) scale(0.97);
    opacity: 0;
  }
}

.al-carte-titre {
  display: block;
  font-family: "Madimi One", "Outfit", sans-serif;
  font-size: 1.75rem;
  line-height: 1.15;
  color: #fff;
}

.al-carte-sous {
  margin-top: 4px;
  color: #c3c9e6;
  font-size: 0.95rem;
}

.al-carte-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin-top: 16px;
}

.al-carte .btn-rouge {
  background: rgba(255, 255, 255, 0.06);
  color: #ff9ccb;
  border-color: rgba(255, 120, 180, 0.45);
  box-shadow: none;
}

.al-carte .btn-rouge:hover {
  background: rgba(255, 79, 154, 0.14);
  color: #ffc2de;
}

.al-carte .btn-vert {
  background: linear-gradient(135deg, #2ad49a, #18a3c9);
  box-shadow: 0 12px 26px -12px rgba(42, 212, 154, 0.85);
}

.al-carte .btn-vert:hover {
  background: linear-gradient(135deg, #34e3a7, #1fb4dc);
}

.al-gros {
  min-width: 150px;
  font-size: 16px;
}

.al-carte kbd,
.al-aide-cmd kbd {
  display: inline-block;
  min-width: 1.4em;
  padding: 1px 6px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-bottom-width: 2px;
  background: rgba(255, 255, 255, 0.08);
  font-family: inherit;
  font-size: 0.8em;
  font-weight: 700;
  color: inherit;
  text-align: center;
}

/* ---------- Accueil ---------- */

.al-carte-menu {
  width: min(560px, 100%);
  text-align: left;
}

.al-logo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 72px;
}

.al-logo-mot {
  position: relative;
  font-family: "Madimi One", "Outfit", sans-serif;
  font-size: 3rem;
  line-height: 1;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, #ffffff 15%, #b7dcff 55%, #b79bff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 18px rgba(120, 160, 255, 0.45));
}

.al-logo-orbite {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 360px;
  max-width: 100%;
  transform: translate(-50%, -50%) rotate(-8deg);
  overflow: visible;
}

.al-logo-orbite ellipse {
  fill: none;
  stroke: rgba(150, 190, 255, 0.35);
  stroke-width: 0.8;
  stroke-dasharray: 2 3;
}

.al-logo-sat {
  fill: var(--al-orange);
  filter: drop-shadow(0 0 4px var(--al-orange));
}

.al-accroche {
  margin: 6px 0 14px;
  text-align: center;
  color: #c9cfe9;
}

.al-accroche b {
  color: #fff;
}

.al-mondes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.al-monde {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 6px 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.al-monde.ferme {
  opacity: 0.55;
}

.al-monde-nom {
  font-weight: 800;
  font-size: 1rem;
}

.al-monde-info {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffd27a;
}

.al-monde-info svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.al-monde-niv {
  display: flex;
  gap: 3px;
  margin-top: 4px;
}

.al-niv {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 31px;
  height: 40px;
  padding: 0;
  margin: 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: inherit;
  cursor: pointer;
  transition:
    transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.15s,
    border-color 0.15s;
}

.al-niv b {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
}

.al-niv:hover:not(.ferme) {
  transform: translateY(-2px);
  background: rgba(111, 227, 255, 0.2);
  border-color: var(--al-cyan);
}

.al-niv:focus-visible {
  outline: 2px solid var(--al-cyan);
  outline-offset: 2px;
}

.al-niv.ferme {
  cursor: not-allowed;
  background: transparent;
}

.al-niv > svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  opacity: 0.7;
}

.al-niv-etoiles {
  display: flex;
  gap: 1px;
}

.al-niv-etoiles i {
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.22);
  clip-path: polygon(50% 0, 63% 35%, 100% 38%, 71% 60%, 81% 100%, 50% 78%, 19% 100%, 29% 60%, 0 38%, 37% 35%);
}

.al-niv-etoiles i.on {
  background: #ffd27a;
}

/* Petites planètes peintes en CSS */
.al-planete {
  display: block;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  box-shadow:
    inset -7px -6px 12px rgba(0, 0, 0, 0.55),
    0 0 18px rgba(255, 255, 255, 0.12);
}

.al-planete-lune {
  background:
    radial-gradient(circle at 30% 35%, rgba(0, 0, 0, 0.18) 0 5px, transparent 6px),
    radial-gradient(circle at 62% 62%, rgba(0, 0, 0, 0.16) 0 7px, transparent 8px),
    radial-gradient(circle at 66% 28%, rgba(0, 0, 0, 0.14) 0 3px, transparent 4px),
    radial-gradient(circle at 35% 30%, #f2f3f7, #a9adb9 60%, #6d7180);
}

.al-planete-mars {
  background:
    radial-gradient(ellipse at 50% 8%, rgba(255, 255, 255, 0.75) 0 4px, transparent 6px),
    radial-gradient(circle at 60% 55%, rgba(110, 30, 10, 0.4) 0 8px, transparent 10px),
    radial-gradient(circle at 35% 30%, #ffb07c, #d4592c 55%, #7a2410);
  box-shadow:
    inset -7px -6px 12px rgba(0, 0, 0, 0.5),
    0 0 18px rgba(255, 120, 60, 0.3);
}

.al-planete-titan {
  background: radial-gradient(circle at 35% 30%, #ffd08a, #e0913a 55%, #8a4b12);
  box-shadow:
    inset -7px -6px 12px rgba(0, 0, 0, 0.45),
    0 0 0 3px rgba(255, 190, 110, 0.25),
    0 0 20px rgba(255, 160, 60, 0.35);
}

.al-planete-io {
  background:
    radial-gradient(circle at 62% 40%, #c24a1a 0 3px, transparent 4px),
    radial-gradient(circle at 36% 64%, #7a3412 0 4px, transparent 5px),
    radial-gradient(circle at 70% 70%, #e8f2a0 0 3px, transparent 5px),
    radial-gradient(circle at 35% 30%, #fff3a0, #e8b83a 55%, #8f5512);
  box-shadow:
    inset -7px -6px 12px rgba(0, 0, 0, 0.5),
    0 0 18px rgba(255, 200, 60, 0.3);
}

/* Défi du jour */
.al-defi {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 10px 0 0;
  padding: 10px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 210, 122, 0.35);
  background: linear-gradient(120deg, rgba(255, 181, 71, 0.16), rgba(139, 123, 255, 0.14));
  color: #fff;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color 0.15s;
}

.al-defi:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 210, 122, 0.8);
}

.al-defi:focus-visible {
  outline: 2px solid var(--al-orange);
  outline-offset: 2px;
}

.al-defi-ico {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex: none;
}

.al-defi-ico svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: rgba(30, 14, 0, 0.75);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.al-defi-txt {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.al-defi-txt b {
  font-size: 1.02rem;
  font-weight: 800;
}

.al-defi-rec {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.al-defi-rec b {
  color: #ffd27a;
  font-weight: 800;
}

.al-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.al-option {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--al-encre);
  cursor: pointer;
}

.al-option small {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--al-doux);
}

.al-carte-menu .al-carte-btns {
  justify-content: flex-start;
  margin-top: 12px;
}

/* ---------- Briefing ---------- */

.al-carte-brief {
  width: min(600px, 100%);
  text-align: left;
}

.al-brief-tete {
  display: flex;
  align-items: center;
  gap: 14px;
}

.al-brief-tete .al-planete {
  width: 52px;
  height: 52px;
}

.al-brief-tete > span:last-child {
  display: flex;
  flex-direction: column;
}

.al-brief-texte {
  margin: 10px 0 6px;
  color: #d3d8f0;
  font-style: italic;
}

.al-brief-cols {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4px 18px;
}

.al-sous {
  margin: 12px 0 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--al-cyan);
}

.al-liste {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
  color: #d3d8f0;
}

.al-liste li {
  position: relative;
  padding-left: 16px;
  margin: 3px 0;
}

.al-liste li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--al-cyan);
  box-shadow: 0 0 6px var(--al-cyan);
}

.al-liste b {
  color: #fff;
}

.al-criteres {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.al-critere {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px 5px 8px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: #c9cfe9;
}

.al-critere svg {
  width: 16px;
  height: 16px;
  fill: rgba(255, 255, 255, 0.2);
}

.al-critere.on {
  color: #fff;
  border-color: rgba(255, 210, 122, 0.4);
}

.al-critere.on svg {
  fill: #ffd27a;
  filter: drop-shadow(0 0 4px rgba(255, 210, 122, 0.7));
}

.al-carte-brief .al-carte-btns {
  justify-content: center;
}

/* ---------- Fin de vol ---------- */

.al-fin-ico svg {
  width: 56px;
  height: 56px;
  margin: 0 auto 4px;
  display: block;
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.al-fin-ok .al-fin-ico svg {
  stroke: var(--al-vert);
  filter: drop-shadow(0 0 12px rgba(109, 255, 170, 0.6));
}

.al-fin-crash .al-fin-ico svg {
  stroke: none;
  fill: #ff8a3d;
  filter: drop-shadow(0 0 14px rgba(255, 120, 60, 0.7));
  animation: al-boum 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes al-boum {
  from {
    transform: scale(0.3) rotate(-40deg);
  }
}

.al-fin-etoiles {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 12px 0 4px;
}

.al-fin-etoiles[hidden] {
  display: none;
}

.al-gr-etoile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  width: 104px;
}

/* Critère de chaque étoile, avec la mesure quand il est manqué */
.al-gr-etoile small {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.2;
  color: var(--al-doux);
}

.al-gr-etoile.on small {
  color: #ffd27a;
}

.al-gr-etoile small i {
  display: block;
  font-style: normal;
  font-weight: 500;
  color: #ff9aa4;
}

.al-gr-etoile svg {
  display: block;
  width: 46px;
  height: 46px;
  fill: rgba(255, 255, 255, 0.12);
  stroke: rgba(255, 255, 255, 0.25);
  stroke-width: 0.8;
}

.al-gr-etoile:nth-child(2) svg {
  width: 56px;
  height: 56px;
  margin-top: -8px;
}

.al-gr-etoile.on svg {
  fill: #ffd27a;
  stroke: #fff2c8;
  filter: drop-shadow(0 0 12px rgba(255, 200, 90, 0.75));
  animation: al-etoile 0.55s cubic-bezier(0.34, 1.7, 0.64, 1) both;
  animation-delay: calc(0.35s + var(--i) * 0.26s);
}

@keyframes al-etoile {
  from {
    transform: scale(0) rotate(-90deg);
    fill: rgba(255, 255, 255, 0.12);
  }
}

.al-fin-detail {
  margin: 10px auto 0;
  max-width: 360px;
  font-size: 0.9rem;
}

.al-fin-detail > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 2px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  color: #c9cfe9;
}

.al-fin-detail > div b {
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.al-fin-detail .mult b {
  color: var(--al-cyan);
}

.al-fin-detail .total {
  border-bottom: none;
  margin-top: 4px;
  font-size: 1.15rem;
  color: #fff;
}

.al-fin-detail .total b {
  font-size: 1.5rem;
  color: #ffd27a;
}

.al-conseil {
  margin: 6px 0 0;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: #d3d8f0;
  text-align: left;
}

.al-fin-record {
  margin-top: 6px;
  font-size: 0.9rem;
  color: #c9cfe9;
}

.al-fin-record b {
  color: #ffd27a;
}

/* ---------- Aide ---------- */

.al-carte-aide {
  width: min(760px, 100%);
  text-align: left;
}

.al-carte-aide .al-carte-titre {
  text-align: center;
}

.al-aide-cols {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 4px 22px;
  margin-top: 6px;
  font-size: 0.92rem;
  color: #d3d8f0;
}

.al-aide-cols p {
  margin: 8px 0;
}

.al-aide-cols b {
  color: #fff;
}

.al-aide-cols .al-t-vert {
  color: var(--al-vert);
}

.al-aide-cmd {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}

/* ---------- Infobulle (attribut data-bulle) ---------- */

/* ---------- Plein écran et miniature ---------- */

.al-root.al-vignette {
  position: fixed;
  inset: 0;
  z-index: 2000;
  max-width: none;
  margin: 0;
  padding: 0;
  align-items: center;
  background: #05060f;
}

.al-root.mg-fs .al-scene,
.al-root.al-vignette .al-scene {
  box-shadow: none;
}

.al-root.al-vignette .al-scene {
  border-radius: 0;
}

.al-vignette > .mg-barre,
.al-vignette .al-instruments,
.al-vignette .al-ecran,
.al-vignette .al-message {
  display: none;
}

/* ---------- Scènes basses ---------- */

.al-compacte .al-carte {
  padding: 14px 16px 12px;
}

.al-compacte .al-logo {
  height: 52px;
}

.al-compacte .al-logo-mot {
  font-size: 2.3rem;
}

.al-compacte .al-accroche {
  margin: 2px 0 8px;
}

.al-compacte .al-monde {
  padding: 8px 4px 7px;
}

.al-compacte .al-planete {
  width: 32px;
  height: 32px;
}

.al-compacte .al-options {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 10px;
}

.al-compacte .al-option small,
.al-compacte .al-brief-texte {
  display: none;
}

.al-compacte .al-sous {
  margin: 8px 0 4px;
}

/* ---------- Scènes étroites (téléphone) ---------- */

@container (max-width: 760px) {
  .al-instr {
    min-width: 0;
    padding: 4px 7px 5px;
  }
  .al-instr b {
    font-size: 0.98rem;
  }
  .al-instr-carbu {
    min-width: 84px;
  }
  .al-instr small {
    font-size: 0.58rem;
  }
}

@container (max-width: 620px) {
  .al-mondes {
    grid-template-columns: repeat(2, 1fr);
  }
  .al-ecran-menu {
    justify-content: center;
    padding-left: 14px;
    background: rgba(4, 5, 16, 0.55);
  }
  .al-carte-menu .al-carte-btns {
    justify-content: center;
  }
  .al-brief-cols,
  .al-aide-cols {
    grid-template-columns: 1fr;
  }
  .al-instruments {
    left: 8px;
    right: 8px;
    transform: none;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .al-sans-hud .al-instruments {
    transform: translateY(8px);
  }
  .al-instr-vent,
  .al-instr-ang {
    display: none;
  }
  .al-instr {
    flex: 1;
  }
  .al-message {
    white-space: normal;
    font-size: 0.95rem;
  }
  .al-brief-texte {
    margin: 6px 0 2px;
    font-size: 0.88rem;
  }
  .al-liste {
    font-size: 0.86rem;
  }
  .al-critere {
    padding: 3px 9px 3px 6px;
    font-size: 0.78rem;
  }
  .al-sous {
    margin: 8px 0 4px;
  }
}

@container (max-width: 400px) {
  .al-logo-mot {
    font-size: 2.3rem;
  }
  .al-carte {
    padding: 16px 14px 12px;
  }
  .al-tbtn {
    width: 58px;
    height: 58px;
  }
  .al-tbtn-gaz {
    width: 78px;
    height: 78px;
  }
}

#al-menu-suivant[hidden] {
  display: none;
}
