/* BOLT ARENA — univers du jeu. Chargée seulement sur la page BOLT ARENA, après drillhaven.css :
   même gabarit (sections, jauge, visionneuse), autre palette : nuit bleu marine, jaune d'arène, bleu acier.
   Peu de texte : le sens passe par l'image. */

:root {
  --dc-nuit: #0A0E17;
  --dc-roche: #121929;
  --dc-roche-2: #1A2336;
  --dc-jaune: #F7C21A;
  --dc-jaune-2: #FFD54A;
  --dc-cyan: #5B8CFF;
  --dc-sable: #E8EDF5;
  --dc-sable-2: rgba(232, 237, 245, .76);
  --dc-sable-3: rgba(232, 237, 245, .58);
  --dc-ligne: rgba(232, 237, 245, .14);
}

/* 01 Ouverture : dégradés en bleu nuit (drillhaven.css les écrit en brun) */
.bolt .dsc--hero::after {
  background: linear-gradient(to top, var(--dc-nuit) 2%, rgba(10, 14, 23, .8) 30%, rgba(10, 14, 23, .1) 62%, rgba(10, 14, 23, .45) 100%);
}
.bolt .dsc--hero .clip__poster { object-position: 50% 30%; }
.bolt .dsc-hero__status .i + .i { margin-left: -2px; }
/* Écran en hauteur : logo en haut, robot au milieu, slogan et bouton en bas */
.bolt .dsc--hero { align-items: stretch; }
.bolt .dsc-hero__content { grid-template-rows: auto 1fr auto auto auto; padding-top: calc(var(--hdr-h) + env(safe-area-inset-top) + 20px); }
.bolt .dsc-hero__logo { width: min(70vw, 420px); }
.bolt .dsc-hero__tag { align-self: end; }
.bolt .dsc-hero__note { top: auto; bottom: 14px; }
@media (min-aspect-ratio: 1/1) {
  .bolt .dsc--hero { align-items: center; }
  .bolt .dsc-hero__content { grid-template-rows: none; padding-top: calc(var(--hdr-h) + 32px); }
  .bolt .dsc-hero__tag { align-self: auto; }
  .bolt .dsc-hero__note { top: calc(var(--hdr-h) + env(safe-area-inset-top) + 10px); bottom: auto; }
  .bolt .dsc--hero::after {
    background:
      linear-gradient(90deg, rgba(10, 14, 23, .9) 0%, rgba(10, 14, 23, .5) 32%, transparent 58%),
      linear-gradient(to top, var(--dc-nuit) 1%, transparent 24%),
      linear-gradient(to bottom, rgba(10, 14, 23, .5), transparent 20%);
  }
  /* Image 1920 × 875 (rapport 2,194), robot entre 0,928 et 1,694 hauteur depuis son bord gauche : on la glisse
     pour que le robot commence après le logo, sans laisser de vide à gauche ni à droite. */
  .bolt .dsc--hero .clip__poster {
    object-position: min(0px, max(88px + min(36vw, 520px) - 92.8vh, 100vw - 219.4vh)) 50%;
  }
  /* Texte calé à gauche (et non centré dans 1180 px) : le robot garde la place à droite sur les grands écrans */
  .bolt .dsc-hero__content { width: 100%; margin: 0; }
  .bolt .dsc-hero__logo { width: min(36vw, 520px); margin-left: 0; }
}

/* Images larges (atelier, duel) */
.bolt-wide { margin: 0 0 12px; border-radius: 18px; overflow: hidden; border: 1px solid var(--dc-ligne); background: var(--dc-roche); }
.bolt-wide img { width: 100%; aspect-ratio: 1280 / 714; object-fit: cover; }

/* 02 Le robot : bande de trois vues, défilement au doigt sur téléphone */
.bolt-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 84%;
  gap: 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin: 0 calc(-1 * var(--gouttiere));
  padding: 0 var(--gouttiere) 4px;
  scroll-padding: 0 var(--gouttiere);
}
.bolt-strip::-webkit-scrollbar { display: none; }
.bolt-strip li { scroll-snap-align: start; border-radius: 16px; overflow: hidden; border: 1px solid var(--dc-ligne); background: var(--dc-roche); }
.bolt-strip img { width: 100%; aspect-ratio: 720 / 402; object-fit: cover; }
@media (min-width: 760px) {
  .bolt-strip { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; }
}

/* 03 Pièces, 04 Armes, 06 Rivaux : tuiles d'image avec un mot */
.bolt-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bolt-tiles li { display: grid; border-radius: 14px; overflow: hidden; border: 1px solid var(--dc-ligne); background: var(--dc-roche); }
.bolt-tiles img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.bolt-tiles li:hover img { transform: scale(1.04); }
.bolt-tiles span {
  padding: 9px 12px 11px;
  font-family: "Poppins", sans-serif;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--dc-sable);
  overflow-wrap: anywhere;
}
.bolt-tiles--pieces { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 12px; }
.bolt-tiles--pieces img { aspect-ratio: 1; }
.bolt-tiles--pieces span { padding: 7px 6px 9px; font-size: .6875rem; letter-spacing: .06em; text-align: center; }
.bolt-tiles--rivaux { display: flex; flex-wrap: wrap; justify-content: center; }
.bolt-tiles--rivaux li { flex: 0 0 calc((100% - 10px) / 2); }
@media (min-width: 600px) {
  .bolt-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bolt-tiles--rivaux li { flex-basis: calc((100% - 20px) / 3); }
}
@media (min-width: 900px) {
  .bolt-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .bolt-tiles--pieces { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .bolt-tiles--rivaux { gap: 14px; }
  .bolt-tiles--rivaux li { flex-basis: calc((100% - 42px) / 4); }
}

/* 05 L'arène : deux images sous le duel */
.bolt-pair { display: grid; gap: 12px; }
.bolt-pair li { border-radius: 16px; overflow: hidden; border: 1px solid var(--dc-ligne); background: var(--dc-roche); }
.bolt-pair img { width: 100%; aspect-ratio: 720 / 402; object-fit: cover; }
@media (min-width: 760px) { .bolt-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 07 Galerie : images en paysage */
.bolt .gal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bolt .gal__item img { aspect-ratio: 16 / 9; }
@media (min-width: 900px) { .bolt .gal { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } }
.bolt .viewer { background: rgba(6, 9, 15, .96); }
.bolt .viewer img { max-width: 100%; height: auto; object-fit: contain; }

/* 08 Où jouer : liens par icônes */
.bolt-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.bolt-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--dc-ligne);
  border-radius: 999px;
  font-family: "Poppins", sans-serif;
  font-size: .875rem;
  font-weight: 700;
  color: var(--dc-sable);
  text-decoration: none;
}
.bolt-links a:hover { border-color: var(--dc-jaune); color: var(--dc-jaune); }
.bolt-links .i { width: 18px; height: 18px; color: var(--dc-jaune); }
