/* Totem : fenêtre du premier pas au camp, en DA « carte à la lanterne ».
   Chargée par le hub (index.html) ET par les jeux quand on y arrive sans pseudo (socle/base.js) :
   elle se suffit à elle-même (couleurs, polices, tailles), sans dépendre de hub/nuit.css ni de la feuille du jeu.
   Toutes les règles passent par .totemVoile pour l'emporter sur les styles de boutons des jeux. */
@import url('../socle/vendor/polices.css?v=hb903d736dc');

.totemVoile{
  --t-feuille:#10151F; --t-case:#1C2433; --t-case2:#232C3E; --t-trait:#2C3446; --t-trait2:#3A4459; --t-bord:#252E40;
  --t-creme:#F4EEDF; --t-texte:#EDE6D6; --t-doux:#D6CFC0; --t-gris:#A9A4B2; --t-terre:#C2A682; --t-lant:#F3C66B; --t-vert:#2F6B3F;
  position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:14px;box-sizing:border-box;overflow:auto;
  background:rgba(5,7,11,.82);backdrop-filter:blur(3px);
  font-family:'Atkinson Hyperlegible',system-ui,sans-serif;font-size:16px;line-height:1.4;color:var(--t-texte);text-align:center}
body.totemOuvert{overflow:hidden}
.totemVoile *{box-sizing:border-box}

.totemVoile .tCadre{position:relative;width:min(660px,100%)}
.totemVoile .tCarte{width:100%;min-height:440px;padding:26px 28px 22px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;
  color:var(--t-texte);background:var(--t-feuille);border:1.5px solid var(--t-bord);border-radius:20px;box-shadow:0 24px 70px rgba(0,0,0,.6)}

.totemVoile .tTitre{margin:0;font-family:'Lilita One','Trebuchet MS',sans-serif;font-weight:400;font-size:clamp(28px,6vw,42px);line-height:1.05;color:var(--t-creme);letter-spacing:.01em}
.totemVoile .tTexte{margin:0;max-width:46ch;font-size:16px;line-height:1.5;color:var(--t-doux)}
.totemVoile .tFort{font-weight:700;font-size:1.08em;color:var(--t-texte);margin-bottom:-4px}
.totemVoile .tPetit{margin:0;max-width:46ch;font-size:13px;color:var(--t-terre)}
.totemVoile .tKick{font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--t-terre);font-weight:700}
.totemVoile .tQ{margin:0;font-family:'Lilita One','Trebuchet MS',sans-serif;font-weight:400;font-size:clamp(22px,4.6vw,30px);line-height:1.15;color:var(--t-creme);min-height:2.4em;display:flex;align-items:center}

.totemVoile .tPts{display:flex;gap:8px;margin-bottom:2px}
.totemVoile .tPts i{width:12px;height:12px;border-radius:50%;border:2px solid var(--t-trait2);background:var(--t-case)}
.totemVoile .tPts i.fait{background:var(--t-vert)}
.totemVoile .tPts i.en{background:var(--t-lant);border-color:var(--t-lant);transform:scale(1.2)}

/* boutons : on remet tout à plat pour ne rien hériter des boutons du jeu */
.totemVoile button{margin:0;font-family:'Atkinson Hyperlegible',system-ui,sans-serif;text-shadow:none;filter:none;transform:none;cursor:pointer}
.totemVoile button:focus-visible{outline:3px solid var(--t-lant);outline-offset:2px}

.totemVoile .tRep{display:grid;grid-template-columns:1fr 1fr;gap:10px;width:100%}
.totemVoile .tChoix{min-height:84px;padding:10px 12px;font-size:15px;font-weight:700;line-height:1.3;color:var(--t-texte);
  background:var(--t-case);border:1.5px solid var(--t-trait);border-radius:14px;box-shadow:none}
.totemVoile .tChoix:hover,.totemVoile .tChoix:focus-visible{background:var(--t-case2);border-color:var(--t-lant);outline:none}

.totemVoile .tBas{min-height:24px;margin-top:2px}
.totemVoile .tLien{padding:0;background:none;border:0;box-shadow:none;font-size:13px;font-weight:400;color:var(--t-gris);text-decoration:underline}

.totemVoile .tBtns{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin-top:6px}
.totemVoile .tBouton{font-weight:700;font-size:17px;padding:10px 22px;border-radius:999px;border:1.5px solid transparent;box-shadow:none}
.totemVoile .tGo{color:#10151F;background:var(--t-creme)}
.totemVoile .tGo:hover{background:#FFFFFF}
.totemVoile .tGhost{color:var(--t-texte);background:transparent;border-color:var(--t-trait2)}
.totemVoile .tGhost:hover{background:var(--t-case)}

/* quitter à tout moment : la croix dans le coin de la carte (taille fixe, ne pousse rien) */
.totemVoile .tFerme{position:absolute;top:10px;right:10px;width:38px;height:38px;padding:0;font-size:18px;font-weight:700;line-height:1;color:var(--t-texte);
  background:var(--t-case);border:0;border-radius:50%;box-shadow:none}
.totemVoile .tFerme:hover{background:var(--t-case2)}

/* le résultat */
.totemVoile .tNuit{margin:0;font-size:18px;font-weight:700;opacity:0;animation:tFondu .9s .1s forwards}
.totemVoile .tNuit2{animation-delay:1.1s;font-weight:400;font-size:15px}
.totemVoile .tFeu{font-size:64px;line-height:1;animation:tFeu .5s ease-in-out infinite alternate}
.totemVoile .tEmoji{font-size:84px;line-height:1;animation:tPop .6s cubic-bezier(.2,1.6,.4,1) both}
.totemVoile .tNom{font-family:'Lilita One','Trebuchet MS',sans-serif;font-size:clamp(34px,8vw,54px);line-height:1;color:var(--t-lant);animation:tPop .6s .15s cubic-bezier(.2,1.6,.4,1) both}
@keyframes tFondu{to{opacity:1}}
@keyframes tFeu{from{transform:scale(.94) rotate(-3deg)}to{transform:scale(1.06) rotate(3deg)}}
@keyframes tPop{from{transform:scale(.3);opacity:0}to{transform:scale(1);opacity:1}}

@media (max-width:560px){ .totemVoile .tCarte{padding:20px 14px 16px;min-height:0} .totemVoile .tRep{grid-template-columns:1fr} .totemVoile .tChoix{min-height:58px} }
@media (prefers-reduced-motion:reduce){ .totemVoile .tFeu,.totemVoile .tEmoji,.totemVoile .tNom,.totemVoile .tNuit{animation:none;opacity:1} }
