/* Mode « hero » : le premier écran du concours, seul, montré dans un cadre en tête de l'accueil de kito.ch
   (hero.html, produit par outils/hero.py). Le menu, le score, le radar, le choix des tailles et les écrans
   suivants sont retirés : il reste la scène, le titre, la règle, le temps restant et le bouton, qui mène à la page. */
html.hero,html.hero body{height:100%;overflow:hidden}
html.hero .tete,html.hero .hud,html.hero .radar,html.hero .voile,html.hero .pied,html.hero .acceptee,
html.hero main > section:not(.mission){display:none!important}
html.hero .achat .resume,html.hero .achat .choix,html.hero .achat .rassure,html.hero .achat .annonce{display:none!important}

/* Le lot, à la place du radar : la boîte de la console et celle du jeu à leur échelle réelle (le jeu = 49 % de la hauteur),
   posées au-dessus de leur anneau comme le t-shirt au-dessus du sien, et qui flottent doucement. */
.butin-accueil{display:none}
html.hero .butin-accueil{display:block;position:absolute;left:calc(56 * var(--p));bottom:calc(44 * var(--p));width:calc(330 * var(--p));z-index:4;
  pointer-events:none;animation:arrive .45s var(--entree) .78s both}
html.hero .butin-accueil span{display:block;margin-bottom:calc(14 * var(--p));font:700 max(11px,calc(14 * var(--p)))/1 var(--texte);
  letter-spacing:.16em;text-transform:uppercase;color:var(--or);text-shadow:0 1px 3px rgba(5,2,15,.75)}
html.hero .ba-objets{position:relative}
html.hero .ba-socle{position:absolute;left:-9%;right:-17%;bottom:calc(-22 * var(--p));height:calc(58 * var(--p))}
html.hero .ba-socle b{position:absolute;inset:0;border-radius:50%;border:calc(2.5 * var(--p)) solid rgba(255,198,41,.9);
  background:radial-gradient(closest-side,rgba(255,198,41,.08),rgba(255,198,41,.26));box-shadow:0 0 calc(22 * var(--p)) calc(4 * var(--p)) rgba(255,198,41,.38)}
html.hero .ba-socle b::after{content:"";position:absolute;inset:18% 14%;border-radius:50%;background:radial-gradient(closest-side,rgba(5,2,15,.6),rgba(5,2,15,0))}
html.hero .ba-socle > i{position:absolute;inset:0;border-radius:50%;border:calc(2 * var(--p)) solid rgba(255,198,41,.7);opacity:0;animation:ba-onde 3.3s linear infinite}
html.hero .ba-socle > i + i{animation-delay:-1.65s}
html.hero .ba-flotte{position:relative;animation:ba-flotte 4.6s ease-in-out infinite}
@keyframes ba-flotte{50%{translate:0 calc(-6 * var(--p))}}
@keyframes ba-onde{0%{transform:scale(1);opacity:.6}100%{transform:scale(1.34);opacity:0}}
html.hero .ba-console{display:block;width:100%;height:auto;filter:drop-shadow(0 calc(18 * var(--p)) calc(20 * var(--p)) rgba(5,2,15,.55))}
html.hero .ba-jeu{position:absolute;right:-9%;bottom:-3%;height:49%;width:auto;filter:drop-shadow(0 calc(10 * var(--p)) calc(14 * var(--p)) rgba(5,2,15,.7))}
@media (prefers-reduced-motion:reduce){html.hero .ba-flotte,html.hero .ba-socle > i{animation:none}}

/* Téléphone : tout tient dans la hauteur du cadre, quelle qu'elle soit. La scène prend ce qui reste au-dessus du titre,
   de la règle, du temps restant et du bouton (256 unités), et le t-shirt suit sa hauteur. Le lot se range à droite du titre. */
@media (max-width:700px){
  html.hero .mission{--sc-hero:clamp(calc(230 * var(--p)),calc(100svh - 256 * var(--p)),calc(520 * var(--p)));height:100svh;min-height:0;padding-bottom:0}
  html.hero .scene{--sc:var(--sc-hero)}
  html.hero .butin-accueil{left:auto;bottom:auto;right:calc(13 * var(--p));top:calc(var(--sc-hero) + 20 * var(--p));width:calc(92 * var(--p));z-index:3;animation-delay:.5s}
  html.hero .butin-accueil span,html.hero .ba-socle{display:none}
  html.hero .ba-console{filter:drop-shadow(0 calc(6 * var(--p)) calc(10 * var(--p)) rgba(5,2,15,.6))}
  html.hero .ba-jeu{right:-7%;bottom:-7%}
  html.hero .barres > div:nth-child(n+2){display:none}
  html.hero .achat{display:block}
  html.hero .achat .cta{width:100%;box-sizing:border-box}
}
