/* ════════════════════════════════════════════════════════════════════
   MONARQUE2 — v22 « Tradiciones » : page ludo-éducative (17 nov. 2026)
   Plan fixe, pleine lumière, papel, rosa mexicano, cempasúchil.
   ════════════════════════════════════════════════════════════════════ */
.tr-tete { position: relative; min-height: 88svh; display: grid; place-content: center; justify-items: center; gap: 1.2rem; padding: 26vh 6vw 12vh; text-align: center; overflow: hidden; isolation: isolate; color: #f3e5c8;
  background: var(--mesa) center / cover no-repeat; }
.tr-tete::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 60% at 50% 55%, rgba(122,29,74,.55), rgba(122,29,74,.2) 70%, transparent); }
.tr-tete__oeil { margin: 0; font-size: .72rem; letter-spacing: .5em; text-transform: uppercase; color: #f6dc9c; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.tr-tete__titre { margin: 0; font-family: var(--titre, "Zodiak", Georgia, serif); font-weight: 700; font-style: italic; line-height: .85; letter-spacing: -.04em; font-size: clamp(4rem, 15vw, 13rem);
  text-shadow: .045em .035em 0 #e4007c, -.03em -.02em 0 #13877f, 0 .2em .5em rgba(0,0,0,.45); }
.tr-tete__titre span { color: #f2a007; }
.tr-tete__intro { max-width: 36rem; margin: 0; padding: 1rem 1.4rem; border-radius: 8px; background: rgba(243,229,200,.92); color: #2a140a;
  font-family: var(--titre, "Zodiak", Georgia, serif); font-style: italic; font-size: clamp(1.05rem, 1.5vw, 1.35rem); line-height: 1.55; box-shadow: 8px 8px 0 #1a0e08; }
.tr-tete__fleche { display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 50%; background: #e4007c; color: #fff; text-decoration: none; font-size: 1.4rem; animation: trRebond 1.8s ease-in-out infinite; }
@keyframes trRebond { 50% { transform: translateY(8px); } }

/* ── le jeu ── */
.tr-jeu { position: relative; padding: clamp(3rem, 7vh, 5rem) clamp(1rem, 4vw, 3rem) clamp(3rem, 8vh, 6rem); background: var(--mesa) center / cover no-repeat; scroll-margin-top: 70px; isolation: isolate; }
.tr-jeu__regle { max-width: 1280px; margin: 0 auto 1.6rem; padding: 1.4rem 1.8rem; border-radius: 10px; background: rgba(243,229,200,.95); color: #2a140a; box-shadow: 10px 10px 0 #1a0e08; }
.tr-jeu__regle h2 { margin: 0 0 .4rem; font: italic 700 clamp(2rem, 4vw, 3.4rem)/1 var(--titre, "Zodiak", Georgia, serif); color: #c2261f; }
.tr-jeu__regle > p { margin: 0 0 1rem; max-width: 62rem; font-size: .95rem; line-height: 1.6; }
.tr-etapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.tr-etapes li { display: flex; align-items: center; gap: .8rem; padding: .7rem .9rem; border-radius: 8px; border: 2px dashed rgba(42,20,10,.3); font-size: .9rem; line-height: 1.3; transition: background .4s, color .4s, transform .4s cubic-bezier(.3,1.6,.5,1), border-color .4s; }
.tr-etapes b { flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: #2a140a; color: #f3e5c8; font: italic 700 1rem var(--titre, "Zodiak", Georgia, serif); }
.tr-etapes li.is-ici { background: #e4007c; color: #fff; border-color: #e4007c; transform: scale(1.03); }
.tr-etapes li.is-ici b { background: #fff; color: #e4007c; }

.tr-plateau { position: relative; max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 1.6rem; align-items: stretch; }
.tr-cantor { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "carte dit" "carte cmd"; gap: 1.2rem 1.6rem; align-items: start;
  padding: 1.6rem 1.6rem 1.6rem; border-radius: 10px; background: rgba(243,229,200,.96); color: #2a140a; box-shadow: 10px 10px 0 #1a0e08; overflow: hidden; }
.tr-cantor__img { position: absolute; right: -1rem; bottom: -.6rem; width: clamp(120px, 12vw, 180px); pointer-events: none; }
.tr-carte { grid-area: carte; position: relative; width: clamp(180px, 17vw, 250px); aspect-ratio: 3 / 4.25; perspective: 1200px; cursor: pointer; transform-style: preserve-3d; }
.tr-carte__dos, .tr-carte__face { position: absolute; inset: 0; border-radius: 8px; backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform .55s cubic-bezier(.3,1.3,.5,1); box-shadow: 0 20px 40px -14px rgba(0,0,0,.55); }
.tr-carte__dos { display: grid; place-items: center; background: url("assets/lookbook/repujado.webp") center / 420px, #5a2d14; }
.tr-carte__dos::before { content: ""; position: absolute; inset: 12px; border: 2px solid #d8ad5a; border-radius: 5px; }
.tr-carte__dos span { font: italic 700 5rem var(--titre, "Zodiak", Georgia, serif); color: #f6dc9c; }
.tr-carte__face { transform: rotateY(180deg); background: #f3e5c8; padding: 7% 7% 0; display: grid; grid-template-rows: 1fr auto; }
.tr-carte__face::before { content: ""; position: absolute; inset: 3.5%; border: 3px solid #1a0e08; border-radius: 4px; pointer-events: none; }
.tr-carte__face img { width: 100%; height: 100%; object-fit: cover; }
.tr-carte__face strong { display: block; padding: .5em 0 .7em; text-align: center; font: 700 clamp(1rem, 1.6vw, 1.4rem) var(--titre, "Zodiak", Georgia, serif); text-transform: uppercase; }
.tr-carte.is-face .tr-carte__dos { transform: rotateY(-180deg); }
.tr-carte.is-face .tr-carte__face { transform: rotateY(0deg); }
.tr-dit { grid-area: dit; padding-right: clamp(60px, 8vw, 130px); }
.tr-dit__vers { margin: 0; font: italic clamp(1.15rem, 1.7vw, 1.55rem)/1.35 var(--titre, "Zodiak", Georgia, serif); }
.tr-dit__vers b { display: block; font-style: normal; font-weight: 700; color: #c2261f; text-transform: uppercase; letter-spacing: .02em; }
.tr-dit__trad { margin: .5rem 0 0; font-size: .86rem; line-height: 1.45; color: rgba(42,20,10,.75); }
.tr-dit__trad:empty { display: none; }
.tr-sabias { margin-top: 1rem; padding: .8rem 1rem; border-left: 5px solid #e4007c; border-radius: 0 8px 8px 0; background: #fff6e3; animation: sabiasEntre .6s cubic-bezier(.16,1,.3,1); }
.tr-sabias__titre { margin: 0 0 .25rem; font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: #e4007c; font-weight: 700; }
.tr-sabias p:last-child { margin: 0; font-size: .92rem; line-height: 1.55; }
@keyframes sabiasEntre { from { opacity: 0; transform: translateY(10px); } }
.tr-commandes { grid-area: cmd; display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1rem; padding-right: clamp(60px, 8vw, 130px); }
.tr-tirer { font: inherit; cursor: pointer; border: 0; display: inline-flex; align-items: center; gap: .7rem; padding: 1.05rem 1.6rem; background: #e4007c; color: #fff; font-size: .82rem; letter-spacing: .2em; text-transform: uppercase;
  box-shadow: 6px 6px 0 #1a0e08, 6px 6px 0 2px #f2a007; transition: transform .25s, box-shadow .25s, opacity .3s, filter .3s; }
.tr-tirer:hover { transform: translate(-2px, -2px); box-shadow: 9px 9px 0 #1a0e08, 9px 9px 0 2px #f2a007; }
.tr-tirer i { font-style: normal; }
.tr-tirer.is-attend { filter: grayscale(.8); opacity: .55; }
.tr-tirer:disabled { opacity: .35; cursor: default; }
.tr-son { font: inherit; cursor: pointer; border: 2px solid #2a140a; background: none; color: #2a140a; padding: .7rem 1rem; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; border-radius: 999px; }
.tr-son[aria-pressed="true"] { background: #2a140a; color: #f3e5c8; }
.tr-paquet { margin: 0; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; }
.tr-paquet b { font: italic 700 1.3rem var(--titre, "Zodiak", Georgia, serif); color: #e4007c; letter-spacing: 0; }

.tr-tabla { display: grid; align-content: start; gap: .8rem; padding: 1.2rem 1.2rem 1.4rem; border-radius: 12px; color: #f3e5c8;
  background: url("assets/lookbook/repujado.webp") center / 460px, linear-gradient(160deg, #6a3518, #3b1c0c);
  box-shadow: 10px 10px 0 #1a0e08, 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); }
.tr-tabla__titre { margin: 0; text-align: center; font-size: .66rem; letter-spacing: .32em; text-transform: uppercase; color: #f6dc9c; }
.tr-tabla__grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tr-case { position: relative; aspect-ratio: 3 / 4.2; padding: 5px; border: 0; border-radius: 6px; background: #f3e5c8; cursor: pointer; box-shadow: 0 6px 14px rgba(0,0,0,.45), inset 0 0 0 2px #1a0e08; }
.tr-case img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }
.tr-case .frijol { width: 52%; }
.tr-case.is-pleine > .frijol { animation: frijolTombe .5s cubic-bezier(.3,1.6,.5,1) forwards; }
.tr-case.is-pleine { cursor: default; } .tr-case.is-pleine img { filter: sepia(.3) brightness(.92); }
.tr-case.is-indice { animation: trIndice 1s ease-in-out infinite; }
@keyframes trIndice { 50% { box-shadow: 0 0 0 5px #f2a007, 0 0 34px 8px rgba(242,160,7,.75), inset 0 0 0 2px #1a0e08; transform: translateY(-5px) scale(1.04); } }
.tr-case.is-secoue { animation: trNon .45s ease; }
@keyframes trNon { 20%, 60% { transform: translateX(-6px) rotate(-2deg); } 40%, 80% { transform: translateX(6px) rotate(2deg); } }
.tr-case__non { position: absolute; left: 50%; top: -12%; z-index: 3; 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); animation: nonMonte 1.1s ease forwards; pointer-events: none; }
.tr-case--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.6vw, 3.2rem) var(--titre, "Zodiak", Georgia, serif); color: #f6dc9c; }
.tr-aide { margin: 0; min-height: 2.6em; padding: .7rem 1rem; border-radius: 8px; background: rgba(243,229,200,.95); color: #2a140a; text-align: center; font-weight: 600; font-size: .92rem; line-height: 1.35; }
.tr-aide.is-pouls { animation: aidePouls .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes aidePouls { 40% { transform: scale(1.05); } }
.tr-cri { font: italic 700 clamp(1.8rem, 3vw, 2.6rem) var(--titre, "Zodiak", Georgia, serif); cursor: pointer; border: 0; padding: .8rem 1rem; background: #e4007c; color: #fff; box-shadow: 6px 6px 0 #1a0e08, 6px 6px 0 2px #f2a007; animation: criBat .8s ease-in-out infinite; }
.tr-cri[hidden] { display: none; }
@keyframes criBat { 50% { transform: scale(1.06) rotate(-1deg); } }

.tr-gano { position: absolute; inset: -1rem; z-index: 5; display: grid; place-content: center; justify-items: center; gap: 1rem; padding: 2rem; text-align: center; border-radius: 14px; color: #f3e5c8; overflow: hidden;
  background: radial-gradient(75% 65% at 50% 42%, #f6b23a 0%, #e0631b 32%, #b0124f 72%, #5a0b26 100%); box-shadow: 12px 12px 0 #1a0e08; opacity: 0; transform: scale(.94); transition: opacity .6s ease, transform .8s cubic-bezier(.3,1.5,.5,1); }
.tr-jeu.is-gano .tr-gano { opacity: 1; transform: none; }
.tr-gano[hidden] { display: none; }
.tr-gano__confeti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.tr-gano__cri { margin: 0; font: italic 700 clamp(3rem, 8vw, 7rem)/.9 var(--titre, "Zodiak", Georgia, serif); text-shadow: .04em .035em 0 #1a0e08, -.025em -.02em 0 #13877f; }
.tr-gano__texte { margin: 0; font: italic clamp(1.05rem, 1.5vw, 1.35rem) var(--titre, "Zodiak", Georgia, serif); }
.tr-gano__regalo { display: grid; justify-items: center; gap: .4rem; }
.tr-gano__regalo p { margin: 0; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; }
.tr-gano__regalo img { width: clamp(140px, 16vw, 220px); filter: drop-shadow(0 20px 24px rgba(0,0,0,.55)); animation: regaloFlotte 4s ease-in-out infinite; }
.tr-gano__regalo small { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; }
.tr-rejouer { font: inherit; cursor: pointer; border: 2px solid #f3e5c8; background: rgba(26,10,4,.35); color: #f3e5c8; padding: .8rem 1.4rem; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; }

/* ── le petit musée ── */
.tr-musee { padding: clamp(3rem, 8vh, 6rem) clamp(1rem, 4vw, 3rem); text-align: center; }
.tr-musee h2 { margin: 0; font: italic 700 clamp(2rem, 4.4vw, 3.6rem)/1 var(--titre, "Zodiak", Georgia, serif); }
.tr-musee > p { margin: .8rem auto 2rem; max-width: 34rem; opacity: .85; }
.tr-musee__cartes { list-style: none; margin: 0 auto; padding: 0; max-width: 1200px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.2rem; }
.tr-mcarte { position: relative; width: 100%; aspect-ratio: 3 / 4.4; padding: 0; border: 0; background: none; cursor: pointer; perspective: 1000px; font: inherit; color: inherit; }
.tr-mcarte > span { position: absolute; inset: 0; border-radius: 8px; backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform .7s cubic-bezier(.3,1.3,.5,1); box-shadow: 0 16px 30px -12px rgba(0,0,0,.6); overflow: hidden; }
.tr-mcarte__face { display: grid; grid-template-rows: 1fr auto auto; background: #f3e5c8; color: #2a140a; padding: 7% 7% .6rem; transform: rotate(calc((var(--i) - 4.5) * .8deg)); }
.tr-mcarte__face img { width: 100%; height: 100%; object-fit: cover; }
.tr-mcarte__face b { padding-top: .4rem; font: 700 .95rem var(--titre, "Zodiak", Georgia, serif); text-transform: uppercase; }
.tr-mcarte__face em { font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; opacity: .6; font-style: normal; }
.tr-mcarte__dos { transform: rotateY(180deg); display: grid; align-content: center; gap: .6rem; padding: 1rem; text-align: left; color: #f3e5c8; background: url("assets/lookbook/repujado.webp") center / 360px, #5a2d14; }
.tr-mcarte__dos b { font: italic 700 1.15rem var(--titre, "Zodiak", Georgia, serif); color: #f6dc9c; }
.tr-mcarte__dos span { font-size: .8rem; line-height: 1.5; }
.tr-mcarte.is-retournee .tr-mcarte__face { transform: rotateY(-180deg); }
.tr-mcarte.is-retournee .tr-mcarte__dos { transform: rotateY(0); }

@media (max-width: 900px) {
  .tr-plateau { grid-template-columns: 1fr; }
  .tr-etapes { grid-template-columns: 1fr; }
  .tr-musee__cartes { grid-template-columns: repeat(2, 1fr); }
  .tr-mcarte { aspect-ratio: 3 / 4.8; }
}
@media (max-width: 760px) {
  .tr-jeu__regle { padding: 1.1rem 1.1rem; box-shadow: 6px 6px 0 #1a0e08; }
  .tr-jeu__regle > p { font-size: .86rem; }
  .tr-cantor { grid-template-columns: 38vw minmax(0, 1fr); grid-template-areas: "carte dit" "cmd cmd"; padding: 1rem; gap: .9rem; box-shadow: 6px 6px 0 #1a0e08; }
  .tr-carte { width: 38vw; }
  .tr-dit, .tr-commandes { padding-right: 0; }
  .tr-cantor__img { width: 22vw; right: -.4rem; bottom: -.4rem; }
  .tr-dit__vers { font-size: 1rem; }
  .tr-sabias { grid-column: 1 / -1; }
  .tr-commandes { padding-right: 22vw; }
  .tr-tirer { padding: .95rem 1.2rem; font-size: .74rem; }
  .tr-tabla { box-shadow: 6px 6px 0 #1a0e08, inset 0 0 0 2px #d8ad5a; }
  .tr-tabla__grille { gap: 7px; }
}
@keyframes nonMonte { 0% { opacity: 0; transform: translateY(8px); } 20% { opacity: 1; transform: none; } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-10px); } }
.tr-cantor { grid-template-areas: "carte dit" "carte sab" "carte cmd"; }
.tr-sabias { grid-area: sab; margin-top: 0; margin-right: clamp(60px, 8vw, 130px); }
.tr-sabias[hidden] { display: none; }
@media (max-width: 760px) {
  .tr-cantor { grid-template-areas: "carte dit" "sab sab" "cmd cmd"; }
  .tr-sabias { margin-right: 0; }
  .tr-dit__vers { font-size: .95rem; }
}

/* ════ v24 — la victoire prend toute la place (plus de bouton coupé) ; le musée se lit ════ */
.tr-jeu.is-gano .tr-cantor, .tr-jeu.is-gano .tr-tabla { display: none; }
.tr-gano { position: relative; inset: auto; grid-column: 1 / -1; min-height: 70svh; padding: clamp(2rem, 5vw, 3.5rem) 1.5rem; }
.tr-gano > *:not(canvas) { position: relative; z-index: 1; }
.tr-gano__confeti { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 9600; }
.tr-mcarte__dos { background: url("assets/lookbook/repujado.webp") center / 360px, #5a2d14; padding: 10px; display: block; }
.tr-mcarte__dos > * { position: relative; }
.tr-mcarte__dos::before { content: ""; position: absolute; inset: 10px; border-radius: 5px; background: #f8eedb; box-shadow: inset 0 0 0 2px #d8ad5a; }
.tr-mcarte__dos b, .tr-mcarte__dos span { display: block; padding: 0 .9rem; }
.tr-mcarte__dos b { padding-top: 1rem; color: #a3285e; font-size: 1.15rem; }
.tr-mcarte__dos span { padding-top: .5rem; color: #2a140a; font-size: .84rem; line-height: 1.55; }
.tr-mcarte.is-retournee .tr-mcarte__dos { display: block; }
.tr-gano__confeti { pointer-events: none; display: none; }

/* ── v24 · ¡La Piñata! ── */
.tr-pinata { padding: clamp(3rem, 8vw, 7rem) clamp(1rem, 4vw, 3rem) clamp(2rem, 5vw, 4rem); max-width: 1180px; margin: 0 auto; }
.tr-pinata__tete { text-align: center; max-width: 46rem; margin: 0 auto 1.6rem; }
.tr-pinata__oeil { margin: 0 0 .4rem; font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: #f2a007; }
.tr-pinata__tete h2 { margin: 0 0 .7rem; font: italic 700 clamp(2.4rem, 6vw, 4.6rem)/.95 var(--titre, "Zodiak", Georgia, serif); color: #fff3e0; text-shadow: .04em .035em 0 #e4007c, -.02em -.02em 0 #13877f; }
.tr-pinata__tete > p:last-child { margin: 0; line-height: 1.6; color: #f3e3cc; }
.tr-pinata__scene { position: relative; height: min(78svh, 720px); min-height: 460px; border-radius: 22px; overflow: hidden; isolation: isolate;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 2px, transparent 2px 46px),
    linear-gradient(180deg, #1d0f3a 0%, #4a1748 46%, #a33a2a 82%, #d9792e 100%);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6), inset 0 0 0 2px rgba(242,160,7,.35); transition: background .6s; }
.tr-pinata__scene::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30px; background: linear-gradient(#7a3b1e, #4b2312); z-index: 0; }
.tr-pinata__scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; touch-action: manipulation; cursor: crosshair; }
@media (hover: hover) { .tr-pinata__scene canvas { cursor: none; } }
.tr-pinata__scene.is-venda { background: repeating-linear-gradient(35deg, #160608 0 6px, #22090d 6px 12px); }
.tr-pinata__scene.is-venda::after { content: ""; position: absolute; left: -5%; right: -5%; top: 0; height: 64px; z-index: 2; pointer-events: none;
  background: repeating-linear-gradient(90deg, #b5122f 0 14px, #8d0c22 14px 28px); box-shadow: 0 8px 18px rgba(0,0,0,.6); transform: rotate(-1.5deg); }
.tr-pinata__cri { position: absolute; left: 50%; top: 52%; z-index: 3; margin: 0; transform: translate(-50%, -50%); pointer-events: none; white-space: nowrap;
  font: italic 700 clamp(1.8rem, 5vw, 3.6rem) var(--titre, "Zodiak", Georgia, serif); color: #fff; text-shadow: .05em .05em 0 #e4007c, 0 0 30px rgba(0,0,0,.5); opacity: 0; }
.tr-pinata__cri.is-pouls { animation: pnCri 1.1s ease-out both; }
.tr-pinata__cri.is-doux { top: auto; bottom: 96px; font-size: clamp(1rem, 2.4vw, 1.4rem); text-shadow: 0 2px 10px rgba(0,0,0,.7); animation: pnDoux .6s ease-out both; }
@keyframes pnCri { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.6) rotate(-6deg); } 18% { opacity: 1; transform: translate(-50%, -50%) scale(1.08) rotate(2deg); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -80%) scale(1); } }
@keyframes pnDoux { from { opacity: 0; } to { opacity: 1; } }
.tr-pinata__barre { position: absolute; left: 14px; right: 14px; bottom: 40px; z-index: 4; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; pointer-events: none; }
.tr-pinata__barre > * { pointer-events: auto; }
.tr-pinata__compte { margin-right: auto; padding: .45rem .9rem; border-radius: 99px; background: rgba(20,8,4,.72); color: #f3e3cc; font-size: .85rem; }
.tr-pinata__compte b { color: #f2a007; font-size: 1.1rem; }
.tr-pinata__venda, .tr-pinata__autre { padding: .6rem 1.1rem; border: 0; border-radius: 99px; font: 600 .9rem/1 inherit; cursor: pointer; color: #1a0e08; background: #f8eedb; box-shadow: 0 6px 14px rgba(0,0,0,.35); }
.tr-pinata__venda[aria-pressed="true"] { background: #b5122f; color: #fff; }
.tr-pinata__autre { background: #e4007c; color: #fff; }
.tr-pinata__autre[hidden], .tr-pinata__venda[hidden] { display: none; }
.tr-pinata__butin { position: absolute; left: 50%; top: 46%; z-index: 3; display: grid; justify-items: center; gap: .35rem; padding: 1.1rem 1.4rem 1.2rem; border-radius: 18px;
  background: rgba(26,10,6,.82); color: #f8eedb; text-align: center; transform: translate(-50%, -40%) scale(.8); opacity: 0; pointer-events: none; transition: opacity .6s, transform .8s cubic-bezier(.2,1.4,.4,1); }
.tr-pinata__butin.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); pointer-events: auto; }
.tr-pinata__butin p { margin: 0; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: #f2a007; }
.tr-pinata__butin img { width: clamp(120px, 18vw, 200px); filter: drop-shadow(0 18px 22px rgba(0,0,0,.6)); }
.tr-pinata__butin small { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
@media (max-width: 640px) {
  .tr-pinata__scene { height: 72svh; min-height: 420px; border-radius: 16px; }
  .tr-pinata__barre { bottom: 36px; gap: .4rem; }
  .tr-pinata__venda, .tr-pinata__autre { padding: .55rem .85rem; font-size: .8rem; }
  .tr-pinata__butin { top: 42%; padding: .9rem 1rem; }
}

/* ── v25 · Juegos de patio ── */
.patio { padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 4vw, 3rem) clamp(2rem, 5vw, 4rem); max-width: 1180px; margin: 0 auto; }
.patio__onglets { display: flex; justify-content: center; gap: .6rem; flex-wrap: wrap; margin: 0 0 1.2rem; }
.patio__onglet { display: inline-flex; align-items: center; gap: .55rem; padding: .7rem 1.3rem; border: 2px solid rgba(248,238,219,.35); border-radius: 99px; background: rgba(26,10,6,.35);
  color: #f8eedb; font: italic 700 1.15rem var(--titre, "Zodiak", Georgia, serif); cursor: pointer; transition: background .25s, border-color .25s, transform .25s; }
.patio__onglet i { font-style: normal; font-size: .95rem; }
.patio__onglet--memo i { color: #e4007c; } .patio__onglet--balero i { color: #f2a007; } .patio__onglet--trompo i { color: #13877f; }
.patio__onglet:hover { transform: translateY(-2px); border-color: #f2a007; }
.patio__onglet[aria-selected="true"] { background: #f8eedb; color: #1a0e08; border-color: #f8eedb; box-shadow: 0 10px 22px -8px rgba(0,0,0,.5); }
.patio__jeu[hidden] { display: none; }
.patio__intro { max-width: 44rem; margin: 0 auto 1.1rem; text-align: center; line-height: 1.6; color: #f3e3cc; }
.patio__scene { position: relative; border-radius: 22px; overflow: hidden; isolation: isolate; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6), inset 0 0 0 2px rgba(242,160,7,.35); }
.patio__scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.patio__scene--balero, .patio__scene--trompo { height: min(70svh, 620px); min-height: 440px; }
.patio__scene--balero { background: radial-gradient(120% 90% at 50% 110%, #d9792e 0%, #a33a2a 35%, #4a1748 75%, #1d0f3a 100%); }
.patio__scene--trompo { background:
    repeating-linear-gradient(90deg, rgba(0,0,0,.06) 0 1px, transparent 1px 64px),
    linear-gradient(180deg, #6c8fa8 0%, #b9a58a 44%, #c9a273 46%, #b98d5c 100%); }
.patio__scene--memo { padding: clamp(.8rem, 2.4vw, 1.6rem); background: url("assets/lookbook/repujado.webp") center / 420px, #5a2d14; }
.patio__barre { display: flex; justify-content: center; align-items: center; gap: .7rem 1.4rem; flex-wrap: wrap; margin-top: .9rem; color: #f3e3cc; font-size: .9rem; }
.patio__barre b { color: #f2a007; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.patio__petit { padding: .45rem .9rem; border: 1px solid rgba(248,238,219,.5); border-radius: 99px; background: none; color: #f8eedb; font: inherit; cursor: pointer; }
.patio__cri { position: absolute; left: 50%; top: 18%; z-index: 3; margin: 0; transform: translate(-50%, -50%); pointer-events: none; white-space: nowrap;
  font: italic 700 clamp(1.6rem, 4.6vw, 3.2rem) var(--titre, "Zodiak", Georgia, serif); color: #fff; text-shadow: .05em .05em 0 #e4007c, 0 0 30px rgba(0,0,0,.55); opacity: 0; }
.patio__cri.is-pouls { animation: pnCri 1.2s ease-out both; }
.patio__aide { display: table; max-width: 100%; margin: .9rem auto 0; padding: .6rem 1.2rem; border-radius: 99px; background: rgba(243,229,200,.95); color: #2a140a; font-weight: 600; font-size: .9rem; line-height: 1.4; text-align: center; box-shadow: 5px 5px 0 #1a0e08; transition: opacity .5s; }
.patio__aide.is-cache { opacity: .55; }
.patio__aide.is-pouls { animation: aidePouls .5s cubic-bezier(.3,1.6,.5,1); }
@media (max-width: 760px) { .patio__aide { border-radius: 14px; font-size: .84rem; padding: .55rem .9rem; } }
.patio__confetis { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 9600; pointer-events: none; }
/* memorama */
.mm-grille { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(.45rem, 1.2vw, .9rem); max-width: 920px; margin: 0 auto; }
.mm-carte { position: relative; aspect-ratio: 5 / 7; padding: 0; border: 0; background: none; cursor: pointer; perspective: 900px; animation: mmDonne .5s calc(var(--n) * 45ms) both cubic-bezier(.2,1.3,.4,1); }
.mm-carte > span { position: absolute; inset: 0; border-radius: 9px; backface-visibility: hidden; transition: transform .55s cubic-bezier(.3,1.4,.5,1); box-shadow: 0 8px 16px -6px rgba(0,0,0,.6); overflow: hidden; }
.mm-carte__dos { display: grid; place-items: center; border: 3px solid #f8eedb;
  background: radial-gradient(circle at 50% 50%, #f8eedb 0 22%, transparent 23%), repeating-conic-gradient(from 45deg, #e4007c 0 25%, #f2a007 0 50%) 0 0 / 22px 22px; }
.mm-carte__dos i { font: italic 700 clamp(1.1rem, 2.6vw, 1.8rem) var(--titre, "Zodiak", Georgia, serif); color: #a3285e; font-style: italic; }
.mm-carte__face { transform: rotateY(180deg); background: #f8eedb; }
.mm-carte__face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mm-carte.is-vue .mm-carte__dos { transform: rotateY(-180deg); }
.mm-carte.is-vue .mm-carte__face { transform: rotateY(0); }
.mm-carte:hover:not(.is-vue) .mm-carte__dos { transform: translateY(-4px) rotate(-1deg); }
.mm-carte.is-trouvee .mm-carte__face { box-shadow: 0 0 0 3px #f2a007, 0 0 24px rgba(242,160,7,.7); animation: mmTrouve .6s ease-out; }
@keyframes mmDonne { from { opacity: 0; transform: translateY(-30px) rotate(-8deg) scale(.8); } to { opacity: 1; transform: none; } }
@keyframes mmTrouve { 40% { transform: scale(1.08); } }
.patio__fin { position: absolute; inset: 0; z-index: 4; display: grid; place-content: center; justify-items: center; gap: 1rem; background: rgba(26,10,6,.72); text-align: center; animation: pnDoux .5s both; }
.patio__fin[hidden] { display: none; }
.patio__fin p { margin: 0; padding: 0 1rem; font: italic 700 clamp(1.5rem, 4vw, 2.6rem) var(--titre, "Zodiak", Georgia, serif); color: #f8eedb; }
@media (max-width: 760px) {
  .mm-grille { grid-template-columns: repeat(4, 1fr); }
  .patio__onglet { padding: .55rem 1rem; font-size: 1rem; }
  .patio__scene--balero, .patio__scene--trompo { height: 66svh; min-height: 400px; border-radius: 16px; }
}
@media (max-width: 420px) { .mm-grille { grid-template-columns: repeat(3, 1fr); } }

/* ── v27 · Ulama, el juego de pelota ── */
.ulama { padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 4vw, 3rem) clamp(2rem, 5vw, 4rem); max-width: 1180px; margin: 0 auto; }
.ulama__scene { position: relative; aspect-ratio: 16 / 9; max-height: 78svh; border-radius: 22px; overflow: hidden; isolation: isolate; background: #c9763a;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6), inset 0 0 0 2px rgba(242,160,7,.35); }
.ulama__scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; outline: none; }
.ulama__score { position: absolute; top: 12px; left: 50%; z-index: 3; transform: translateX(-50%); display: flex; align-items: center; gap: .8rem; padding: .45rem 1.1rem; border-radius: 99px;
  background: rgba(26,10,6,.78); color: #f8eedb; font-size: .9rem; white-space: nowrap; }
.ulama__score b { font: italic 700 1.5rem/1 var(--titre, "Zodiak", Georgia, serif); color: #ffd23f; }
.ulama__score i { font-style: normal; color: #f2a007; }
.ulama__cri { top: 30%; }
.ulama__ecran { position: absolute; inset: 0; z-index: 4; display: grid; place-content: center; justify-items: center; gap: .7rem; padding: 1.2rem; text-align: center; background: rgba(26,10,6,.62); }
.ulama__ecran[hidden] { display: none; }
.ulama__ecran-titre { margin: 0; font: italic 700 clamp(2.2rem, 6vw, 4rem)/1 var(--titre, "Zodiak", Georgia, serif); color: #fff6e6; text-shadow: .05em .05em 0 #e4007c, -.02em -.02em 0 #13877f; }
.ulama__ecran-texte { margin: 0; max-width: 38rem; line-height: 1.55; color: #f8eedb; }
.ulama__ecran-but { margin: 0; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: #ffd23f; }
@media (max-width: 760px) {
  .ulama__scene { aspect-ratio: auto; height: 72svh; min-height: 440px; max-height: none; border-radius: 16px; }
  .ulama__ecran-texte { font-size: .92rem; }
}
.vla__scene { aspect-ratio: 16 / 10; max-height: 82svh; } .vla__scene canvas { cursor: pointer; } @media (max-width: 760px) { .vla__scene { aspect-ratio: auto; height: 76svh; } }
.vla__scene .ulama__score { top: auto; bottom: 12px; }

/* ── v28 · Canicas & Avión ── */
.patio__scene--canicas, .patio__scene--avion { height: min(72svh, 640px); min-height: 460px; background: #8a5a32; }
.patio__scene--avion { background: #77736c; }
.patio__scene--canicas canvas { cursor: grab; }
.patio__scene--avion canvas { cursor: pointer; }
@media (max-width: 760px) { .patio__scene--canicas, .patio__scene--avion { height: 70svh; min-height: 420px; } }
