/* ════════════════════════════════════════════════════════════════════
   MONARQUE2 — v21 « ¡Lotería! » en vrai jeu (17 nov. 2026)
   Une partie en plein écran, la page ne défile plus : le cantor tire
   les cartes une à une, on pose son frijol sur SA tabla, on crie
   ¡Lotería!. Pleine lumière, rien d'assombri.
   ════════════════════════════════════════════════════════════════════ */
html.experience { overflow: hidden !important; }
html.experience body { overflow: hidden !important; touch-action: none; }

.juego { position: fixed; inset: 0; z-index: 8000; overflow: hidden; color: var(--lo-papel, #f3e5c8); isolation: isolate;
  visibility: hidden; opacity: 0; transition: opacity .7s ease, visibility 0s linear .7s; touch-action: manipulation; }
.juego.is-on { visibility: visible; opacity: 1; transition: opacity .7s ease; }
.juego__mesa { position: absolute; inset: -4%; z-index: -1; background: var(--mesa, #7a1d1d) center / cover no-repeat;
  transform: scale(1.12) rotate(-2deg); transition: transform 1.8s cubic-bezier(.16,1,.3,1), background-image .6s; }
.juego.is-on .juego__mesa { transform: none; }
.juego__mesa::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(26,10,4,.35)); }
.juego__papel { z-index: 3; }

.juego__fermer { position: absolute; z-index: 20; top: clamp(.8rem, 2vw, 1.4rem); right: clamp(.8rem, 2vw, 1.4rem); font: inherit; cursor: pointer;
  border: 0; border-radius: 999px; padding: .7rem 1.1rem; background: rgba(26,10,4,.78); color: #f3e5c8; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; backdrop-filter: blur(6px); }
.juego__fermer:hover { background: #e4007c; }

/* le cantor et sa bulle */
.juego__cantor { position: absolute; z-index: 6; left: clamp(.5rem, 3vw, 3rem); bottom: 0; width: clamp(170px, 20vw, 300px); }
.juego__cantor > img { display: block; width: 100%; filter: drop-shadow(0 20px 30px rgba(0,0,0,.45)); transform-origin: 50% 100%; }
.juego.is-chante .juego__cantor > img { animation: cantorChante .5s ease-in-out infinite alternate; }
@keyframes cantorChante { to { transform: rotate(-1.6deg) translateY(-4px) scaleY(1.01); } }
.juego__bulle { position: absolute; left: 70%; bottom: 74%; width: clamp(260px, 28vw, 420px); margin: 0; padding: 1.1rem 1.4rem 1.2rem; border-radius: 22px 22px 22px 4px;
  background: #f3e5c8; color: #2a140a; box-shadow: 8px 8px 0 #1a0e08, 0 30px 50px -20px rgba(0,0,0,.6);
  font-family: var(--titre, "Zodiak", Georgia, serif); font-style: italic; font-size: clamp(1rem, 1.35vw, 1.3rem); line-height: 1.38;
  transform-origin: 0 100%; transform: scale(.4) rotate(-6deg); opacity: 0; transition: transform .6s cubic-bezier(.3,1.6,.5,1), opacity .3s; }
.juego__bulle.is-on { transform: none; opacity: 1; }
.juego__bulle b { display: block; margin-bottom: .2rem; font-style: normal; font-weight: 700; font-size: 1.25em; letter-spacing: .02em; color: #c2261f; text-transform: uppercase; }
.juego__bulle span { display: block; }
.juego__trad { display: block; margin-top: .65rem; padding-top: .55rem; border-top: 1px dashed rgba(60,30,14,.3); font-family: var(--texte, system-ui, sans-serif); font-style: normal; font-size: .74em; line-height: 1.4; color: rgba(60,30,14,.75); }
.juego__trad:empty { display: none; }

/* le tapis : la carte tirée */
.juego__tapete { position: absolute; z-index: 5; left: 46%; top: 52%; translate: -50% -50%; display: grid; justify-items: center; gap: 1rem; perspective: 1600px; }
.jcarta { position: relative; width: clamp(200px, 21vw, 330px); aspect-ratio: 3 / 4.25; transform-style: preserve-3d;
  transform: translateY(-120vh) rotateZ(-30deg) rotateY(180deg); transition: transform .9s cubic-bezier(.2,1.2,.4,1); }
.jcarta.is-tiree { transform: rotateZ(-3deg) rotateY(0deg); }
.jcarta.is-sortie { transform: translate(60vw, 30vh) rotateZ(40deg) rotateY(0deg) scale(.4); transition: transform .5s ease-in; }
.jcarta .carta__face { box-shadow: 0 40px 70px -24px rgba(0,0,0,.75), 0 0 0 1px rgba(0,0,0,.4); }
.juego__paquet { margin: 0; padding: .4rem .9rem; border-radius: 999px; background: rgba(26,10,4,.72); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; backdrop-filter: blur(6px); }
.juego__paquet b { font: italic 700 1.1rem var(--titre, "Zodiak", Georgia, serif); color: #f2a007; letter-spacing: 0; }

/* MA tabla */
.juego__tabla { position: absolute; z-index: 7; right: clamp(1rem, 4vw, 4rem); top: 50%; translate: 0 -46%; padding: 14px 14px 16px; border-radius: 12px;
  background: url("assets/lookbook/repujado.webp") center / 420px, linear-gradient(160deg, #6a3518, #3b1c0c);
  box-shadow: 0 40px 70px -20px rgba(0,0,0,.7), inset 0 0 0 2px #d8ad5a, inset 0 0 0 7px rgba(0,0,0,.25), inset 0 0 0 8px rgba(216,173,90,.5); }
.juego__tabla-titre { margin: 0 0 .6rem; text-align: center; font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: #f6dc9c; }
.juego__tabla-titre em { font: italic 700 1rem var(--titre, "Zodiak", Georgia, serif); letter-spacing: 0; text-transform: none; }
.juego__grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.jcase { position: relative; width: clamp(78px, 8.4vw, 132px); aspect-ratio: 3 / 4.2; padding: 4px; border: 0; border-radius: 5px; cursor: pointer; background: #f3e5c8;
  box-shadow: 0 6px 14px rgba(0,0,0,.45), inset 0 0 0 2px #1a0e08; transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s; }
.jcase img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }
.jcase:hover { transform: translateY(-4px) rotate(-1.5deg); }
.jcase.is-indice { animation: caseIndice 1s ease-in-out infinite; }
@keyframes caseIndice { 50% { box-shadow: 0 0 0 4px #f2a007, 0 0 30px 6px rgba(242,160,7,.7), inset 0 0 0 2px #1a0e08; transform: translateY(-5px) scale(1.04); } }
.jcase.is-non { animation: caseNon .45s ease; }
@keyframes caseNon { 20%, 60% { transform: translateX(-6px) rotate(-2deg); } 40%, 80% { transform: translateX(6px) rotate(2deg); } }
.jcase .frijol { width: 50%; }
.jcase.is-pleine { cursor: default; }
.jcase.is-pleine > .frijol { animation: frijolTombe .5s cubic-bezier(.3,1.6,.5,1) forwards; }
.jcase.is-pleine img { filter: sepia(.25); }
.jcase__non { position: absolute; left: 50%; top: -14%; z-index: 4; translate: -50% 0; white-space: nowrap; padding: .25rem .55rem; border-radius: 6px; background: #1a0e08; color: #f3e5c8;
  font: italic 700 .8rem var(--titre, "Zodiak", Georgia, serif); pointer-events: none; animation: nonMonte 1.1s ease forwards; }
@keyframes nonMonte { 0% { opacity: 0; transform: translateY(8px); } 20% { opacity: 1; transform: none; } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-10px); } }
.jcase--m { display: grid; place-items: center; cursor: default; background: url("assets/lookbook/repujado.webp") center / 260px, #5a2d14; box-shadow: inset 0 0 0 2px #d8ad5a; font: italic 700 clamp(2rem, 3.4vw, 3.2rem) var(--titre, "Zodiak", Georgia, serif); color: #f6dc9c; }
.jcase--m:hover { transform: none; }
.juego__cri { display: block; width: 100%; margin-top: 12px; font: italic 700 clamp(1.4rem, 2.2vw, 2rem) var(--titre, "Zodiak", Georgia, serif); cursor: pointer; border: 0; padding: .7rem 1rem;
  background: #e4007c; color: #fff; box-shadow: 6px 6px 0 #1a0e08, 6px 6px 0 2px #f2a007; animation: criBat .8s ease-in-out infinite; }
@keyframes criBat { 50% { transform: scale(1.06) rotate(-1deg); } }
.juego__aide { position: absolute; z-index: 8; left: 50%; bottom: clamp(1rem, 3vh, 2rem); translate: -50% 0; margin: 0; padding: .6rem 1.2rem; border-radius: 999px; max-width: 90vw; text-align: center;
  background: rgba(26,10,4,.78); color: #f3e5c8; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; backdrop-filter: blur(6px); transition: opacity .4s; }
.juego__aide:empty { opacity: 0; }

/* la victoire, dans la partie */
.juego .gano { position: absolute; inset: 0; z-index: 15; min-height: 0; overflow-y: auto; visibility: hidden; opacity: 0; transition: opacity .8s ease, visibility 0s linear .8s; padding: 12vh 6vw 8vh; }
.juego.is-gano .gano { visibility: visible; opacity: 1; transition: opacity .8s ease; }
.juego .gano .papel { position: fixed; }
.gano__regalo { position: relative; display: grid; justify-items: center; gap: .5rem; width: clamp(220px, 24vw, 320px); }
.gano__regalo::before { content: ""; position: absolute; left: 50%; top: 46%; width: 190%; aspect-ratio: 1; translate: -50% -50%; z-index: -1; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255,214,120,.55) 0 6deg, transparent 6deg 18deg);
  -webkit-mask: radial-gradient(circle, #000 0 18%, rgba(0,0,0,.6) 40%, transparent 68%); mask: radial-gradient(circle, #000 0 18%, rgba(0,0,0,.6) 40%, transparent 68%);
  animation: regaloRayos 14s linear infinite; mix-blend-mode: screen; }
.gano__regalo { opacity: 0; transform: scale(.5); transition: opacity .8s ease 1.6s, transform 1.1s cubic-bezier(.3,1.6,.5,1) 1.6s; }
.gano.is-gano .gano__regalo { opacity: 1; transform: none; }
.gano__regalo .regalo__oeil { display: block !important; }
.gano__porte { font: inherit; cursor: pointer; border: 0; }

@media (max-width: 760px) {
  .juego__cantor { width: 30vw; left: -2vw; }
  .juego__bulle { position: fixed; left: 4vw; right: 4vw; width: auto; top: calc(clamp(110px, 17vh, 190px) - 1.6rem); bottom: auto; font-size: .92rem; padding: .8rem 1rem .9rem; border-radius: 16px; transform-origin: 50% 0; }
  .juego__tapete { left: 50%; top: 47%; gap: .5rem; }
  .jcarta { width: min(40vw, 23svh); }
  .juego__paquet { font-size: .56rem; }
  .juego__tabla { right: 2vw; left: 30vw; top: auto; bottom: 1vh; translate: none; padding: 8px 8px 10px; }
  .juego__tabla-titre { margin-bottom: .35rem; font-size: .52rem; }
  .jcase { width: 100%; }
  .juego__grille { gap: 5px; }
  .juego__aide { bottom: auto; top: 37%; font-size: .58rem; letter-spacing: .12em; display: none; }
  .juego__fermer { padding: .55rem .8rem; font-size: .6rem; }
  .juego .gano { padding: 16vh 5vw 6vh; }
}
@media (prefers-reduced-motion: reduce) { .jcarta, .juego__mesa { transition: none; } .juego__cri, .jcase.is-indice { animation: none; } }
/* pendant le jeu ou le film : rien du site ne passe devant */
html.experience .entete, html.experience .monarcas, html.experience .progression { opacity: 0 !important; pointer-events: none !important; transition: opacity .4s; }
.juego__cri[hidden] { display: none; }
.juego__tapete { left: 54%; }
.juego__bulle { width: clamp(250px, 25vw, 380px); }
.juego .gano { background: radial-gradient(75% 65% at 50% 42%, #f6b23a 0%, #e0631b 32%, #b0124f 72%, #5a0b26 100%) !important; display: grid; place-items: center; }
.juego .gano::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .12; background: url("assets/lookbook/repujado.webp") center / 640px; mix-blend-mode: multiply; }
.juego .gano__dedans { gap: 1.1rem; padding-top: 4vh; }
.juego .gano__cri { font-size: clamp(3rem, 9vw, 8rem); }
.juego .gano__texte { opacity: 1; transition: none; }
@media (max-width: 760px) { .juego__tapete { left: 50%; } }
@media (max-width: 760px) { .juego .gano { padding-top: 24vh; place-items: start center; } .juego__tapete { top: 51%; } }
