/* =========================================================
   Compra del Vecino · Revolú en el Conuco (Spiel)
   Aufbau:  1 Seite & Karte   2 Anzeige oben (HUD)   3 Spielbrett, Früchte, Lodo, Comodines
            4 Effekte & Sprechblasen   5 Blätter (Hilfe, Tiendita, Preise, Gewinn …)
            6 Bestell-Banner   7 Bewegung   8 Weniger Bewegung
   Positionen laufen über transform (flüssig auf dem Handy).
   ========================================================= */

/* ---------- 1 · Seite & Karte ---------- */
body.juego { padding-bottom: 28px; overscroll-behavior-y: contain; }
body.juego .app-top .logo .marca { font-size: 1.1rem; }
@media (max-width: 380px) { body.juego .app-top .logo .marca { font-size: .98rem; } }
body.juego #vista { padding-top: 12px; }

.portada { text-align: center; padding: 6px 0 10px; }
.portada h1 { font-size: clamp(2rem, 9vw, 2.7rem); color: var(--selva); text-shadow: 2px 3px 0 var(--sol); }
.portada .sub { font-weight: 700; margin-top: 6px; }
.bailan { display: flex; justify-content: center; gap: 4px; height: 56px; margin-bottom: 8px; }
.bailan span { width: 48px; height: 52px; animation: baila 1.6s ease-in-out infinite; animation-delay: calc(var(--i) * -.27s); }
.bailan svg { width: 100%; height: 100%; }

.estado-j { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 14px; }
.estado-j > span {
  display: flex; flex-direction: column; align-items: center; padding: 8px 4px; text-align: center;
  background: #fff; border: 3px solid var(--tinta); border-radius: 16px; box-shadow: 0 4px 0 var(--tinta); font-size: 1.05rem; line-height: 1.15;
}
.estado-j b { font-family: "Baloo 2", sans-serif; font-size: 1.5rem; line-height: 1; }
.estado-j small { font-size: .74rem; font-weight: 700; opacity: .8; }

.boton.grande { width: 100%; min-height: 64px; font-size: 1.3rem; }
.boton.grande small { font-size: .85rem; font-weight: 700; }
.boton.chico { min-height: 44px; padding: 0 14px; font-size: .95rem; box-shadow: 0 4px 0 var(--tinta); }
.boton[disabled] { opacity: .5; cursor: not-allowed; }
.atajos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 18px 0 8px; }
.atajos .boton { padding: 0 6px; font-size: .86rem; line-height: 1.1; }

.titulo-n { margin: 22px 0 10px; font-size: 1.5rem; }
.niveles { list-style: none; padding: 0; display: grid; gap: 10px; }
.nivel-b {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px 12px; text-align: left;
  background: #fff; border: 3px solid var(--tinta); border-radius: 18px 22px 18px 24px; box-shadow: 0 4px 0 var(--tinta);
}
.nivel-b:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--tinta); }
.nivel-b.actual { background: var(--sol); }
.nivel-b.cerrado { background: #EFE3CC; box-shadow: none; opacity: .7; cursor: default; }
.nivel-b .num {
  flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%;
  border: 3px solid var(--tinta); background: var(--hoja); color: #fff; font-family: "Baloo 2", sans-serif; font-size: 1.35rem;
}
.nivel-b.cerrado .num { background: #D9C9A8; font-size: 1.1rem; }
.nivel-b .que { flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-weight: 800; }
.nivel-b .que small { width: 100%; font-weight: 700; opacity: .75; font-size: .8rem; }
.meta-m { display: inline-flex; align-items: center; gap: 4px; }
.j-mini { width: 26px; height: 26px; flex: none; }
.estrella-i { display: inline-grid; place-items: center; font-size: 1.1rem; }
.nivel-b .est { flex: none; display: flex; gap: 1px; font-size: 1.2rem; }
.nivel-b .est i, .estrellas-g i { font-style: normal; color: #D9C9A8; -webkit-text-stroke: 1.5px var(--tinta); }
.nivel-b .est i.si, .estrellas-g i.si { color: var(--mango); }

/* ---------- 2 · Anzeige oben ---------- */
.hud { display: flex; align-items: stretch; gap: 8px; margin-bottom: 8px; }
.redondo.chico { width: 44px; height: 44px; align-self: center; font-size: 1.1rem; }
.hud-nivel, .hud-movs, .hud-metas {
  background: #fff; border: 3px solid var(--tinta); border-radius: 16px; box-shadow: 0 4px 0 var(--tinta);
  display: flex; align-items: center; justify-content: center;
}
.hud-nivel, .hud-movs { flex-direction: column; min-width: 58px; padding: 2px 6px; line-height: 1; }
.hud-nivel small, .hud-movs small { font-size: .7rem; font-weight: 800; }
.hud-nivel b, .hud-movs b { font-family: "Baloo 2", sans-serif; font-size: 1.6rem; }
.hud-movs { background: var(--sol); min-width: 66px; }
.hud-movs b { font-size: 2rem; }
.hud-movs.pocas { background: #FFB4A8; animation: pulso 1s ease-in-out infinite; }
.hud-metas { flex: 1; gap: 10px; padding: 4px 8px; flex-wrap: wrap; }
.meta { display: inline-flex; align-items: center; gap: 4px; font-family: "Baloo 2", sans-serif; font-size: 1.35rem; }
.meta .j-mini { width: 34px; height: 34px; }
.meta.hecha b { color: var(--selva); }

.puntaje { display: flex; align-items: center; gap: 10px; margin: 4px 0 10px; }
.riel { position: relative; flex: 1; height: 16px; border: 3px solid var(--tinta); border-radius: 99px; background: #fff; }
.riel #relleno { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--naranja), var(--mango)); transition: width .4s ease; }
.marca-e { position: absolute; top: 50%; transform: translate(-50%, -50%); font-style: normal; font-size: 1.3rem; line-height: 1; color: #D9C9A8; -webkit-text-stroke: 1.5px var(--tinta); }
.marca-e.si { color: var(--mango); animation: pulso .5s ease 1; }
.puntaje b { font-family: "Baloo 2", sans-serif; font-size: 1.35rem; min-width: 70px; text-align: right; }

/* ---------- 3 · Spielbrett & Früchte ---------- */
.marco { position: relative; width: 100%; max-width: 460px; margin-inline: auto; --celda: 44px; }
.tablero {
  position: relative; width: 100%; aspect-ratio: 1; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none;
  border: 4px solid var(--tinta); border-radius: 20px; box-shadow: var(--sombra);
  /* Schachbrett aus zwei Grüntönen: jede Kachel = 12,5 % */
  background: repeating-conic-gradient(#C6E8A1 0 25%, #B0DC86 0 50%) 0 0 / 25% 25%;
  -webkit-tap-highlight-color: transparent;
}
.suelo, .capa, .efectos { position: absolute; inset: 0; }
.efectos { pointer-events: none; z-index: 3; }
.ficha {
  position: absolute; left: 0; top: 0; width: 12.5%; height: 12.5%;
  transition-property: transform; transition-timing-function: cubic-bezier(.45, .05, .55, 1.25);
  will-change: transform;
}
.cara { position: absolute; inset: 8%; display: block; transition: transform .15s ease; }
.cara svg { width: 100%; height: 100%; position: relative; z-index: 1; filter: drop-shadow(0 2px 0 rgba(16, 40, 26, .25)); }
.ficha.sel::before {
  content: ""; position: absolute; inset: 3%; border-radius: 30%;
  background: rgba(255, 255, 255, .75); border: 3px solid var(--tinta);
}
.ficha.sel .cara { transform: scale(1.12); animation: salto .8s ease-in-out infinite; }

/* Lodo (Schlamm) liegt unter den Früchten; „doble“ braucht zwei Treffer */
.lodo, .lodo-demo { position: absolute; left: calc(var(--c) * 12.5%); top: calc(var(--f) * 12.5%); width: 12.5%; height: 12.5%; }
.lodo::before, .lodo-demo::before {
  content: ""; position: absolute; inset: 2%; border-radius: 30% 36% 28% 34%;
  background: #A9794A; border: 2.5px solid #5C3B1E; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .16);
}
.lodo.doble::before { inset: 0; background: #5F3B1C; border-color: var(--tinta); border-width: 3.5px; }
.lodo.se-va { animation: j-piu .3s ease-in forwards; }
.lodo-demo { position: relative; left: auto; top: auto; display: block; width: 46px; height: 46px; }
.lodo-demo svg { position: absolute; inset: 14%; width: 72%; height: 72%; }

/* Comodines: jeder mit eigenem Zeichen unten rechts.
   ↔ ↕ Linie · ⚔ Yuca-Ninja · ♪ Piña tanzt · ⊥ Coco (Spalte + unterste Reihe) · ✹ ¡Están todos maduros! */
.ficha.fila .cara::before, .ficha.col .cara::before {
  content: ""; position: absolute; z-index: 0; border: 2.5px solid var(--tinta); border-radius: 99px;
  background: repeating-linear-gradient(90deg, #fff 0 5px, #FFD23F 5px 10px);
  animation: brillo 1.1s ease-in-out infinite;
}
.ficha.fila .cara::before { left: -8%; right: -8%; top: 32%; bottom: 32%; }
.ficha.col .cara::before { top: -8%; bottom: -8%; left: 32%; right: 32%; background: repeating-linear-gradient(0deg, #fff 0 5px, #FFD23F 5px 10px); }
.ficha.coco .cara::before {
  content: ""; position: absolute; inset: -8%; z-index: 0; border-radius: 14%;
  background: linear-gradient(#FFD23F, #FFD23F) center / 32% 100% no-repeat, linear-gradient(#FFD23F, #FFD23F) bottom / 100% 28% no-repeat;
  filter: drop-shadow(0 0 0 var(--tinta)) drop-shadow(1.5px 0 0 var(--tinta)) drop-shadow(-1.5px 0 0 var(--tinta)) drop-shadow(0 1.5px 0 var(--tinta)) drop-shadow(0 -1.5px 0 var(--tinta));
  animation: brillo 1.1s ease-in-out infinite;
}
.ficha.pina .cara::before {
  content: ""; position: absolute; inset: -8%; z-index: 0; border-radius: 50%;
  background: radial-gradient(circle, #FFF6B0 25%, #FF9EC4 52%, transparent 70%); animation: brillo .9s ease-in-out infinite;
}
.ficha.pina .cara svg { animation: j-meneo .7s ease-in-out infinite; transform-origin: 50% 90%; }
.ficha.maduro .cara::before {
  content: ""; position: absolute; inset: -8%; z-index: 0; border-radius: 50%;
  background: radial-gradient(circle, #FFE08A 25%, rgba(255, 106, 0, .85) 52%, transparent 70%); animation: brillo .8s ease-in-out infinite;
}
.ficha.esp .cara::after {
  content: "↔"; position: absolute; z-index: 2; right: -6%; bottom: -8%; font-weight: 900; line-height: 1;
  font-size: calc(var(--celda) * .3); color: var(--tinta); background: #fff; border: 2px solid var(--tinta); border-radius: 50%;
  width: calc(var(--celda) * .38); height: calc(var(--celda) * .38); display: grid; place-items: center;
}
.ficha.col .cara::after { content: "↕"; }
.ficha.fila.t5 .cara::after { content: "⚔"; background: #FFD23F; }
.ficha.pina .cara::after { content: "♪"; background: #FF9EC4; }
.ficha.coco .cara::after { content: "⊥"; }
.ficha.maduro .cara::after { content: "✹"; background: #FF8A00; color: #fff; }
/* Bombe, Rayo, Kiste, Ameisen: eigene Zeichnung */
.ficha.bomba .cara { animation: pulso .8s ease-in-out infinite; }
.ficha.bomba .cara svg { filter: drop-shadow(0 0 5px #FF8A00); }
.ficha.rayo .cara { animation: gira 6s linear infinite; }
.ficha.rayo .cara svg { filter: drop-shadow(0 0 6px #FFD23F); }
.ficha.caja .cara { inset: 4%; }
.ficha.hormiga .cara svg { animation: j-hormiga 1.2s ease-in-out infinite; }
.ficha.terca .cara { animation: j-terca .3s ease-in-out; }
.ficha.rota .cara { animation: j-rota .19s ease-in forwards; }
.ficha.oro .cara::before {
  content: ""; position: absolute; inset: -4%; z-index: 0; border-radius: 50%;
  background: radial-gradient(circle, #FFF6B0 20%, #FFD23F 50%, transparent 70%); animation: brillo 1s ease-in-out infinite;
}
.ficha.oro:not(.esp) .cara::after { content: "✨"; position: absolute; z-index: 2; top: -12%; right: -12%; font-size: calc(var(--celda) * .36); animation: pulso 1s ease-in-out infinite; }
.ficha.oro .cara svg { filter: sepia(.6) saturate(2.2) hue-rotate(-12deg) brightness(1.08) drop-shadow(0 0 4px #FFD23F); }

/* Tanz, „piu“, Geburt, Hinweis, Reden */
.ficha.baila .cara { animation: j-baila .24s ease-in-out; }
.ficha.piu .cara { animation: j-piu .19s ease-in forwards; }
.ficha.nace .cara { animation: j-nace .4s cubic-bezier(.3, .1, .4, 1.6); }
.ficha.pista .cara { animation: j-pista .9s ease-in-out infinite; }
.ficha.habla .cara { animation: j-habla .35s ease-in-out 4; }

/* ---------- 4 · Effekte & Sprechblasen ---------- */
.fx { position: absolute; left: calc(var(--c) * 12.5%); top: calc(var(--f) * 12.5%); width: 12.5%; height: 12.5%; }
.fx svg { width: 100%; height: 100%; }
.fx.j-rueda { left: 0; animation: j-rodar .55s linear forwards; }
.fx.cae { top: 0; animation: j-cae .5s ease-in forwards; }
.fx.raya-h, .fx.raya-v { animation: j-raya .5s ease-out forwards; }
.fx.raya-h { left: 0; width: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .95) 15% 85%, transparent); }
.fx.raya-v { top: 0; height: 100%; background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .95) 15% 85%, transparent); }
.fx.boom { width: 37.5%; height: 37.5%; left: calc((var(--c) - 1) * 12.5%); top: calc((var(--f) - 1) * 12.5%); border-radius: 50%;
  background: radial-gradient(circle, #fff 0 18%, #FFD23F 38%, rgba(255, 138, 0, .65) 58%, transparent 70%); animation: j-boom .5s ease-out forwards; }
.fx.boom.grande { width: 62.5%; height: 62.5%; left: calc((var(--c) - 2) * 12.5%); top: calc((var(--f) - 2) * 12.5%); }
.fx.mega { width: 100%; height: 100%; left: 0; top: 0; border-radius: 50%;
  background: radial-gradient(circle, #fff 0 15%, #FFD23F 35%, rgba(107, 45, 110, .6) 60%, transparent 72%); animation: j-boom .8s ease-out forwards; }
.fx.zap { display: grid; place-items: center; font-size: calc(var(--celda) * .7); animation: j-zap .6s ease-out forwards; }
.fx.limonada { width: 37.5%; height: 18.75%; left: calc((var(--c) - 1) * 12.5%); top: calc((var(--f) - .25) * 12.5%); display: flex; animation: j-limonada 1.2s ease-out forwards; z-index: 2; }
.fx.limonada svg { width: 50%; }
.fx.pts-pop { width: auto; height: auto; left: calc((var(--c) + .5) * 12.5%); top: calc((var(--f) + .2) * 12.5%); z-index: 3; font-family: "Baloo 2", sans-serif; font-size: calc(var(--celda) * .5); color: #fff;
  -webkit-text-stroke: 1.5px var(--tinta); paint-order: stroke fill; text-shadow: 0 2px 0 var(--tinta); animation: j-sube 1s ease-out forwards; white-space: nowrap; }
.fx.boom.bomba { width: 62.5%; height: 62.5%; left: calc((var(--c) - 2) * 12.5%); top: calc((var(--f) - 2) * 12.5%); }
.fx.pts-pop.chico { top: calc(var(--f) * 12.5%); font-size: calc(var(--celda) * .42); }
/* Piña tanzt Merengue */
.fx.baile { width: 25%; height: 25%; left: calc(var(--c) * 12.5% - 6.25%); top: calc(var(--f) * 12.5% - 9%); z-index: 2; transform-origin: 50% 90%; animation: j-merengue 1s ease-in-out forwards; }
.fx.baile i { position: absolute; top: -12%; left: -22%; font-style: normal; font-weight: 900; font-size: calc(var(--celda) * .55); color: #fff; -webkit-text-stroke: 1.5px var(--tinta); paint-order: stroke fill; animation: j-nota .9s ease-out forwards; }
.fx.baile i + i { left: auto; right: -22%; animation-delay: .2s; }
/* Yuca-Ninja: Sprung quer durch die Reihe, weißer Schnitt, Schrei */
.fx.ninja { left: 0; z-index: 2; animation: j-ninja .5s cubic-bezier(.7, 0, .3, 1) forwards; }
.fx.tajo { left: 0; width: 100%; transform-origin: left center; background: linear-gradient(90deg, transparent, #fff 15% 85%, transparent); clip-path: polygon(0 50%, 50% 28%, 100% 50%, 50% 72%); animation: j-tajo .5s ease-out forwards; }
.fx.kiai { left: 0; width: 100%; z-index: 4; text-align: center; white-space: nowrap; font-family: "Baloo 2", sans-serif; font-size: calc(var(--celda) * .8); line-height: var(--celda); color: #fff;
  -webkit-text-stroke: 2px var(--tinta); paint-order: stroke fill; text-shadow: 0 3px 0 var(--tinta); animation: j-kiai .9s ease-out forwards; }
/* Coco fällt schwer von oben */
.fx.cae-coco { top: 0; z-index: 2; animation: j-cae-coco .6s cubic-bezier(.6, 0, 1, .6) forwards; }
/* ¡Están todos maduros!: Früchte regnen, kleine Funken beim Aufprall */
.fx.cohete { z-index: 2; animation: j-cohete .45s ease-in both; }
.fx.chispa { border-radius: 50%; background: radial-gradient(circle, #fff 0 20%, #FFD23F 40%, rgba(255, 90, 0, .7) 60%, transparent 72%); animation: j-boom .45s ease-out forwards; }
.grito {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); z-index: 4; white-space: nowrap;
  font-family: "Baloo 2", sans-serif; font-size: clamp(1.8rem, 9vw, 2.6rem); color: var(--sol); -webkit-text-stroke: 2px var(--tinta); paint-order: stroke fill;
  text-shadow: 0 4px 0 var(--tinta); animation: j-grito 1.2s ease-out forwards;
}
.tablero.tiembla { animation: j-tiembla .32s ease-in-out; }

/* Sprechblase bei Spezialfrüchten: oben über dem Brett */
.bocas { position: absolute; left: 0; right: 0; top: -6px; z-index: 6; pointer-events: none; display: flex; justify-content: center; }
.bocadillo {
  position: relative; display: flex; align-items: center; gap: 8px; max-width: calc(100% - 20px); transform: translateY(-100%);
  padding: 6px 14px 6px 8px; background: #fff; border: 3px solid var(--tinta); border-radius: 18px 22px 20px 16px; box-shadow: 0 4px 0 var(--tinta);
  font-family: "Baloo 2", sans-serif; font-size: 1.15rem; line-height: 1.1; animation: j-entra .35s cubic-bezier(.3, .1, .4, 1.5);
}
.bocadillo::after { content: ""; position: absolute; left: 34px; bottom: -11px; width: 16px; height: 16px; background: #fff; border-right: 3px solid var(--tinta); border-bottom: 3px solid var(--tinta); transform: rotate(45deg); }
.bocadillo.se-va { animation: j-sale .4s ease-in forwards; }
.boca-f { width: 38px; height: 38px; flex: none; }

/* Zwei Früchte reden */
.charla { position: absolute; inset: 4px; pointer-events: none; z-index: 5; }
.j-globo {
  position: absolute; left: calc((var(--c) + .5) * 12.5%); top: calc(var(--f) * 12.5%); transform: translate(-50%, calc(-100% - 6px));
  width: max-content; max-width: 190px; padding: 6px 10px; background: var(--crema); border: 2.5px solid var(--tinta); border-radius: 14px;
  font-size: .86rem; font-weight: 800; line-height: 1.2; box-shadow: 0 3px 0 var(--tinta); animation: j-entra-g .3s ease-out;
}
.j-globo::after { content: ""; position: absolute; left: calc(50% - 7px); bottom: -8px; width: 11px; height: 11px; background: var(--crema); border-right: 2.5px solid var(--tinta); border-bottom: 2.5px solid var(--tinta); transform: rotate(45deg); }
.j-globo.izq { transform: translate(-22%, calc(-100% - 6px)); }
.j-globo.izq::after { left: 14%; }
.j-globo.der { transform: translate(-78%, calc(-100% - 6px)); }
.j-globo.der::after { left: auto; right: 14%; }
.j-globo.abajo { top: calc((var(--f) + 1) * 12.5%); transform: translate(-50%, 6px); }
.j-globo.abajo.izq { transform: translate(-22%, 6px); }
.j-globo.abajo.der { transform: translate(-78%, 6px); }
.j-globo.abajo::after { bottom: auto; top: -8px; transform: rotate(225deg); }

.pausa { position: absolute; inset: 0; z-index: 8; display: grid; place-items: center; border-radius: 20px; background: rgba(255, 248, 236, .93); text-align: center; padding: 20px; }
.pausa[hidden] { display: none; }
.pausa .taza { font-size: 3rem; }
.pausa h2 { font-size: 2rem; margin: 4px 0; }
.pausa .boton { margin-top: 14px; }
.botonera { display: flex; justify-content: center; gap: 10px; margin-top: 16px; }
.meta-txt { margin-top: 12px; text-align: center; font-weight: 700; opacity: .8; }

/* ---------- 5 · Blätter ---------- */
dialog.hoja-j { position: fixed; max-height: calc(100dvh - 32px); overflow-y: auto; padding: 22px 18px 18px; }
dialog.hoja-j h2 { margin: 4px 0 10px; padding-inline: 34px; }
dialog.hoja-j .boton { width: 100%; margin-top: 10px; }
.cerrar-h { position: absolute; top: 8px; right: 10px; width: 38px; height: 38px; border: 2.5px solid var(--tinta); border-radius: 50%; background: #fff; font-size: 1.4rem; font-weight: 800; line-height: 1; }
dialog.hoja-j { position: fixed; }
#hoja-dentro { position: relative; }
.sello { display: inline-block; padding: 2px 14px; border: 2.5px solid var(--tinta); border-radius: 99px; background: var(--sol); font-weight: 800; }
.meta-grande { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 12px 0 4px; }
.meta-grande span { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 1.1rem; }
.j-medio { width: 64px; height: 64px; }
.meta-grande .estrella-i.j-medio { font-size: 2.6rem; }
.consejo { margin-top: 12px; padding: 10px 12px; background: var(--espuma); border: 2.5px dashed var(--tinta); border-radius: 14px; text-align: left; font-weight: 700; }
.emo-g { font-size: 3rem; line-height: 1; }
.reglas { list-style: none; padding: 0; text-align: left; display: grid; gap: 10px; }
.regla { display: flex; align-items: center; gap: 12px; font-size: .95rem; line-height: 1.3; }
.regla .dibu { flex: none; width: 76px; display: flex; justify-content: center; }
.tri { display: flex; gap: 0; }
.tri > svg { width: 26px; height: 26px; }
/* Beispiel-Früchte in den Blättern: gleiche Klassen wie auf dem Brett, nur fest platziert */
.ficha-demo { --celda: 46px; position: relative; display: block; width: 46px; height: 46px; transform: none; flex: none; }
.tri .ficha-demo { --celda: 38px; width: 38px; height: 38px; }
.regla .emo { font-size: 2rem; }
.nota-h { margin-top: 12px; font-size: .9rem; }
.sub-h { margin: 16px 0 8px; font-size: 1.15rem; text-align: left; }
.consejo.con-dibu { display: flex; align-items: center; gap: 12px; }
.consejo.con-dibu .dibu { flex: none; display: flex; justify-content: center; min-width: 50px; }
.valores { list-style: none; padding: 0; margin: 8px 0 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.valores li { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 4px 10px; background: #fff; border: 2.5px solid var(--tinta); border-radius: 12px; }
.valores li span { display: flex; flex-wrap: wrap; gap: 2px; }
.valores b { font-family: "Baloo 2", sans-serif; font-size: 1.15rem; }
.monedero { font-size: 1.1rem; }
/* Tiendita und Preise */
dialog.hoja-j .premios .boton { width: auto; margin-top: 0; flex: none; }
.tiendita .t-img { flex: none; width: 46px; display: flex; justify-content: center; }
.tiendita .t-img .emo { font-size: 1.7rem; }
.refuerzos { margin-top: 14px; text-align: left; }
.refuerzos summary { cursor: pointer; font-weight: 800; padding: 8px 4px; }
.refuerzos .monedero { margin-top: 4px; }
.destacado { margin-top: 12px; padding: 14px 12px; background: var(--sol); border: 3px solid var(--tinta); border-radius: 18px 22px 18px 24px; box-shadow: 0 4px 0 var(--tinta); }
.destacado h3 { margin: 4px 0 6px; font-size: 1.25rem; }
.destacado .sello { background: #fff; }
.codigo { margin-top: 8px; font-size: 1.1rem; }
.codigo b { font-family: "Baloo 2", sans-serif; font-size: 1.4rem; letter-spacing: 1px; }
.recetas { display: grid; gap: 8px; text-align: left; }
.receta { background: #fff; border: 2.5px solid var(--tinta); border-radius: 14px; padding: 8px 12px; }
.receta summary { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 800; line-height: 1.2; list-style: none; }
.receta summary::-webkit-details-marker { display: none; }
.receta summary::after { content: "▾"; margin-left: auto; }
.receta[open] summary::after { content: "▴"; }
.receta summary .emo { font-size: 1.7rem; }
.receta summary small { display: block; font-weight: 700; opacity: .75; }
.receta p { margin-top: 8px; font-size: .95rem; line-height: 1.35; }
.premios { list-style: none; padding: 0; margin-top: 12px; display: grid; gap: 8px; text-align: left; }
.premios li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: #fff; border: 2.5px solid var(--tinta); border-radius: 14px; }
.premios .emo { font-size: 1.7rem; }
.premios li > span:nth-child(2) { flex: 1; font-weight: 800; line-height: 1.2; }
.premios small { display: block; font-weight: 700; opacity: .75; }
.premios em { font-style: normal; font-size: .75rem; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: var(--lima); border: 2px solid var(--tinta); white-space: nowrap; }
.estrellas-g { font-size: 3rem; display: flex; justify-content: center; gap: 6px; line-height: 1; margin: 6px 0; }
.estrellas-g i.si { animation: j-nace .5s cubic-bezier(.3, .1, .4, 1.6) both; animation-delay: calc(var(--i) * .25s); }
.raspa { margin-top: 12px; padding: 10px; background: var(--papel); border: 2.5px dashed var(--tinta); border-radius: 16px; }
.raspas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.rasca {
  min-height: 62px; border: 3px solid var(--tinta); border-radius: 14px; font-family: "Baloo 2", sans-serif; font-size: 1.6rem;
  background: repeating-linear-gradient(45deg, #C9CED6 0 6px, #E4E8EE 6px 12px); box-shadow: 0 4px 0 var(--tinta);
}
.rasca.abierta { background: var(--sol); font-size: 1.15rem; animation: j-voltea .4s ease; }
.rasca.otra { background: #fff; opacity: .55; }
.raspa-r { min-height: 1.4em; margin-top: 8px; font-weight: 800; }
.apodo-p { margin-top: 14px; text-align: left; }
.apodo-p label { font-weight: 800; }
.fila-a { display: flex; gap: 8px; margin-top: 6px; }
.fila-a input { flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; border: 3px solid var(--tinta); border-radius: 12px; font: inherit; background: #fff; }
dialog.hoja-j .fila-a .boton { width: auto; margin-top: 0; }
.top { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 6px; text-align: left; }
.top li { display: flex; align-items: center; gap: 10px; padding: 6px 10px; background: #fff; border: 2.5px solid var(--tinta); border-radius: 12px; }
.top li span { width: 28px; font-family: "Baloo 2", sans-serif; font-size: 1.2rem; }
.top li b { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top li em { font-style: normal; font-weight: 800; }
.top li.yo { background: var(--sol); }
.top li.vacio { justify-content: center; }
.premios-r { list-style: none; padding: 0; text-align: left; font-weight: 700; display: grid; gap: 2px; margin: 8px 0; }

.confeti { position: fixed; inset: 0; pointer-events: none; z-index: 95; overflow: hidden; }
.confeti span { position: absolute; top: -60px; width: 36px; height: 36px; animation: j-llueve 2.2s ease-in forwards; animation-delay: var(--d); }
.confeti svg { width: 100%; height: 100%; }

/* ---------- 6 · Bestell-Banner ---------- */
.pedido-banner { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(16, 40, 26, .6); }
.pedido-banner[hidden] { display: none; }
.pedido-caja {
  width: min(100%, 400px); padding: 24px 20px 20px; text-align: center; background: var(--sol);
  border: 4px solid var(--tinta); border-radius: var(--mano); box-shadow: var(--sombra-g); animation: j-entra .4s cubic-bezier(.3, .1, .4, 1.5);
}
.pedido-caja .campana { font-size: 3.6rem; line-height: 1; animation: j-campana 1s ease-in-out infinite; }
.pedido-caja h2 { font-size: 2rem; margin: 8px 0; }
.pedido-caja p { font-weight: 700; font-size: 1.1rem; }
.pedido-caja .boton { width: 100%; margin-top: 12px; }
.aviso-pedido {
  position: fixed; left: 50%; top: 72px; z-index: 80; transform: translateX(-50%); width: min(100% - 24px, 420px);
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #fff; border: 3px solid var(--tinta); border-radius: 18px; box-shadow: var(--sombra);
  animation: j-baja .35s ease-out;
}
.aviso-pedido .emo { font-size: 1.8rem; }
.aviso-pedido > span:nth-child(2) { flex: 1; line-height: 1.2; }
.aviso-pedido small { display: block; font-weight: 700; opacity: .75; font-size: .78rem; }
.aviso-pedido a { font-weight: 800; padding: 6px 12px; border: 2.5px solid var(--tinta); border-radius: 99px; background: var(--lima); color: var(--tinta); text-decoration: none; }
.aviso-pedido button { border: 0; background: none; font-size: 1.4rem; font-weight: 800; }

/* ---------- 7 · Bewegung ---------- */
@keyframes j-baila { 0% { transform: rotate(0) scale(1); } 25% { transform: rotate(-14deg) scale(1.12); } 50% { transform: rotate(12deg) scale(1.16); } 75% { transform: rotate(-8deg) scale(1.1); } 100% { transform: rotate(0) scale(1.12); } }
@keyframes j-piu { 0% { transform: scale(1.12); opacity: 1; } 40% { transform: scale(1.35); opacity: 1; } 100% { transform: scale(0) rotate(45deg); opacity: 0; } }
@keyframes j-nace { 0% { transform: scale(0); } 60% { transform: scale(1.3); } 100% { transform: scale(1); } }
@keyframes j-pista { 0%, 100% { transform: scale(1) rotate(0); } 30% { transform: scale(1.14) rotate(-8deg); } 60% { transform: scale(1.14) rotate(8deg); } }
@keyframes j-habla { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.9) translateY(4%); } }
@keyframes j-rodar { from { transform: translateX(-100%) rotate(0); } to { transform: translateX(800%) rotate(900deg); } }
@keyframes j-cae { from { transform: translateY(-100%); } to { transform: translateY(800%); } }
@keyframes j-raya { 0% { opacity: 0; transform: scale(.6); } 30% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.05); } }
@keyframes j-boom { 0% { transform: scale(.2); opacity: 1; } 100% { transform: scale(1.3); opacity: 0; } }
@keyframes j-zap { 0% { transform: scale(0) rotate(-20deg); opacity: 0; } 30% { transform: scale(1.3) rotate(10deg); opacity: 1; } 100% { transform: scale(.8); opacity: 0; } }
@keyframes j-limonada { 0% { transform: scale(0) translateY(40%); opacity: 0; } 30% { transform: scale(1.3); opacity: 1; } 75% { transform: scale(1.2) rotate(-6deg); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes j-sube { 0% { transform: translate(-50%, 0) scale(.6); opacity: 0; } 20% { transform: translate(-50%, -20%) scale(1.1); opacity: 1; } 100% { transform: translate(-50%, -140%) scale(1); opacity: 0; } }
@keyframes j-grito { 0% { transform: translate(-50%, -50%) scale(.3) rotate(-8deg); opacity: 0; } 25% { transform: translate(-50%, -50%) scale(1.15) rotate(3deg); opacity: 1; } 75% { transform: translate(-50%, -60%) scale(1); opacity: 1; } 100% { transform: translate(-50%, -80%) scale(.9); opacity: 0; } }
@keyframes j-tiembla { 0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-4px, 2px); } 40% { transform: translate(4px, -2px); } 60% { transform: translate(-3px, -1px); } 80% { transform: translate(2px, 2px); } }
@keyframes j-entra { from { transform: translateY(-80%) scale(.6); opacity: 0; } to { transform: translateY(-100%) scale(1); opacity: 1; } }
@keyframes j-sale { to { transform: translateY(-130%) scale(.8); opacity: 0; } }
@keyframes j-entra-g { from { opacity: 0; scale: .5; } to { opacity: 1; scale: 1; } }
@keyframes j-voltea { 0% { transform: rotateY(90deg); } 100% { transform: rotateY(0); } }
@keyframes j-llueve { 0% { transform: translateY(0) rotate(0); opacity: 1; } 100% { transform: translateY(110vh) rotate(var(--r)); opacity: .8; } }
@keyframes j-campana { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(18deg); } 30% { transform: rotate(-16deg); } 45% { transform: rotate(10deg); } 60% { transform: rotate(-6deg); } }
@keyframes j-baja { from { transform: translate(-50%, -30px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
@keyframes j-meneo { 0%, 100% { transform: rotate(-9deg); } 50% { transform: rotate(9deg); } }
@keyframes j-hormiga { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-3%); } 75% { transform: translateX(3%); } }
@keyframes j-terca { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-10%) rotate(-5deg); } 75% { transform: translateX(10%) rotate(5deg); } }
@keyframes j-rota { 0% { transform: scale(1); opacity: 1; } 40% { transform: scale(1.2) rotate(-8deg); opacity: 1; } 100% { transform: scale(.3) rotate(25deg); opacity: 0; } }
@keyframes j-merengue { 0% { transform: scale(.5) rotate(0); } 14% { transform: scale(1.1) rotate(-16deg) translateX(-12%); } 30% { transform: scale(1.1) rotate(16deg) translateX(12%); } 46% { transform: scale(1.1) rotate(-16deg) translateX(-12%); } 60% { transform: scale(1.15) rotate(14deg) translate(10%, -10%); } 72% { transform: scale(1.3) rotate(0); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
@keyframes j-nota { 0% { transform: translateY(40%) scale(.4); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(-120%) scale(1.1) rotate(20deg); opacity: 0; } }
@keyframes j-ninja { 0% { transform: translateX(-120%) rotate(-30deg) scale(1.2); } 35% { transform: translateX(-10%) rotate(40deg) scale(1.35); } 100% { transform: translateX(820%) rotate(420deg) scale(1.3); } }
@keyframes j-tajo { 0% { transform: scaleX(0); opacity: 1; } 45% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1) scaleY(.15); opacity: 0; } }
@keyframes j-kiai { 0% { transform: scale(.3) rotate(-6deg); opacity: 0; } 25% { transform: scale(1.15) rotate(3deg); opacity: 1; } 70% { transform: scale(1); opacity: 1; } 100% { transform: scale(.9) translateY(-40%); opacity: 0; } }
@keyframes j-cae-coco { 0% { transform: translateY(-160%) scale(1.3) rotate(0); } 88% { transform: translateY(700%) scale(1.3) rotate(300deg); opacity: 1; } 100% { transform: translateY(700%) scale(1.9, .7) rotate(300deg); opacity: 0; } }
@keyframes j-cohete { 0% { transform: translate(70%, -900%) scale(.5) rotate(-40deg); opacity: 1; } 88% { transform: translate(0, 0) scale(.9) rotate(0); opacity: 1; } 100% { transform: scale(1.3); opacity: 0; } }
@keyframes brillo { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
.pedido-caja { animation-name: j-entra-caja; }
@keyframes j-entra-caja { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- 8 · Weniger Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  .bailan span, .ficha.sel .cara, .ficha.pista .cara, .ficha.habla .cara, .ficha.rayo .cara,
  .ficha.fila .cara::before, .ficha.col .cara::before, .ficha.coco .cara::before, .ficha.pina .cara::before, .ficha.maduro .cara::before, .ficha.oro .cara::before, .ficha.oro .cara::after,
  .ficha.pina .cara svg, .ficha.bomba .cara, .ficha.hormiga .cara svg,
  .hud-movs.pocas, .pedido-caja .campana, .tablero.tiembla { animation: none !important; }
  .ficha.pista::before { content: ""; position: absolute; inset: 3%; border-radius: 30%; border: 3px dashed var(--tinta); }
  .ficha.baila .cara { animation: none; transform: scale(1.1); }
  .ficha.piu .cara { animation-duration: .07s; }
  .fx.j-rueda, .fx.cae, .fx.baile, .fx.ninja, .fx.cae-coco, .fx.cohete { display: none; }
  .bocadillo, .j-globo, .grito, .aviso-pedido, .pedido-caja { animation-duration: .01s !important; }
}

/* Preise von Partnern und „Anuncio gratis“ vorerst ausgeblendet: erst spielen lassen.
   Zum Einschalten diese Regel löschen. */
.premios-h .destacado, .premios-h .aliados-h { display: none; }
