/* Votación para expulsar, ogro, lluvia de recursos, monstruo del lago y nube de las cartas */

/* ---------- 🚫 expulsar ---------- */
.pl-kick { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid #8a5d2b; background: #fff6dc; cursor: pointer;
  font-size: 12px; line-height: 1; padding: 0; opacity: .55; transition: opacity .15s, transform .15s; }
.pl-kick:hover, .pl-kick:focus-visible { opacity: 1; transform: scale(1.12); background: #ffd9d2; }
@media (pointer: coarse) { .pl-kick { opacity: .8; width: 26px; height: 26px; } }

#vote-float { position: fixed; top: 64px; left: 50%; transform: translateX(-50%); z-index: 40; width: min(380px, calc(100vw - 16px)); pointer-events: none; }
.vote-card { pointer-events: auto; background: linear-gradient(160deg, #fff4d6, #ead2a0); color: var(--ink); border: 3px solid #5a3a1e; border-radius: 14px;
  padding: 10px 12px; box-shadow: 0 4px 0 #1b0d02, var(--shadow); animation: rise .3s ease-out; text-align: center; }
.vote-card.me { border-color: var(--red); box-shadow: 0 4px 0 #5a120d, 0 0 0 3px rgba(200,55,45,.35), var(--shadow); }
.vote-h { font: 900 16px 'Cinzel', serif; }
.vote-sub { font-size: 12px; opacity: .8; margin: 3px 0 6px; }
.vote-left { font-weight: 900; color: var(--red); }
.vote-tally { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 900; margin-bottom: 6px; }
.vote-tally .vy { color: #b2261c; } .vote-tally .vn { color: #2f6f22; } .vote-tally small { opacity: .7; font-weight: 700; }
.vote-card .row-btns { display: flex; gap: 8px; justify-content: center; }
.vote-card .hint { font-size: 12px; font-weight: 700; opacity: .8; }

/* ---------- ⏱️ cuentas regresivas en la barra ---------- */
.tb-events { display: flex; gap: 5px; flex: none; }
.tb-events:empty { display: none; }
.evchip { display: inline-flex; align-items: center; gap: 2px; padding: 2px 8px; border-radius: 12px; font-size: 13px; font-weight: 900;
  background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.12); color: #fff3d0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.evchip.ev-ogre { border-color: rgba(110,190,70,.5); }
.evchip.ev-rain { border-color: rgba(120,180,255,.5); }
.evchip.soon { background: #8b1d14; border-color: #ffb3a6; animation: evPulse .8s ease-in-out infinite; }
@keyframes evPulse { 50% { transform: scale(1.1); } }
@media (max-width: 760px) { .evchip { font-size: 11px; padding: 1px 6px; } .tb-events { gap: 3px; } }
@media (max-height: 520px) and (orientation: landscape) { .evchip { font-size: 11px; padding: 1px 6px; } }

/* nombres de las cartas en una sola línea (sin cortar "Caballer-o") */
@media (min-width: 761px) { .dcard .dn { white-space: nowrap; overflow-wrap: normal; letter-spacing: 0; font-size: 8.5px; max-width: 100%; overflow: hidden; } }
@media (max-height: 820px) and (min-width: 761px) { .dcard .dn { font-size: 7.6px; padding: 0 2px; } }

/* ---------- 👹 ogro (capa de actores: HTML encima del mapa, lo mueve la tarjeta gráfica) ---------- */
#actors { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
/* tamaño del ogro: más grande en celular y en el Mega para que se vea */
.osz { transform: scale(var(--ok, 1)); transform-origin: 0 0; }
@media (max-width: 760px), (max-height: 520px) { #actors { --ok: 1.45; } }
#board-wrap.big-map #actors { --ok: 1.7; }
@media (max-width: 760px), (max-height: 520px) { #board-wrap.big-map #actors { --ok: 2.1; } }
#actors .world { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-origin: 0 0; }
.actor { position: absolute; left: 0; top: 0; }
.cave { cursor: help; }
#actors .ogre { position: absolute; width: 56px; height: 62px; left: -28px; top: -60px; }
.ogre-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.o-shadow { fill: rgba(0,0,0,.28); }
.o-skin { fill: #6fae3d; stroke: #1d3a0e; stroke-width: 2.2; stroke-linejoin: round; }
.o-skin2 { fill: #548f2c; stroke: #1d3a0e; stroke-width: 2; stroke-linejoin: round; }
.o-foot { fill: #5b3a1a; stroke: #2a1608; stroke-width: 1.5; }
.o-limb-out { fill: none; stroke: #1d3a0e; stroke-width: 10; stroke-linecap: round; }
.o-limb { fill: none; stroke: #6fae3d; stroke-width: 6.4; stroke-linecap: round; }
.o-shade { fill: none; stroke: #548f2c; stroke-width: 4; stroke-linecap: round; }
.o-belly { fill: #a6d779; }
.o-strap { stroke: #7a4a1e; stroke-width: 4; stroke-linecap: round; }
.o-cloth { fill: #8a5524; stroke: #3a210d; stroke-width: 1.6; stroke-linejoin: round; }
.o-wart { fill: #4a7d26; }
.o-hair { fill: none; stroke: #2c2010; stroke-width: 2; stroke-linecap: round; }
.o-pupil { fill: #141414; }
.o-closed { fill: none; stroke: #1d3a0e; stroke-width: 1.7; stroke-linecap: round; display: none; }
.o-brow { stroke: #1d3a0e; stroke-width: 2.8; stroke-linecap: round; }
.o-mouth { fill: #3a120a; stroke: #1d3a0e; stroke-width: 1.4; }
.o-tusk { fill: #fffbe6; stroke: #4a4030; stroke-width: .8; }
.o-handle { stroke: #6b4421; stroke-width: 5; stroke-linecap: round; }
.o-clubhead { fill: #8a5a2b; stroke: #3a210d; stroke-width: 1.8; }
.o-spike { stroke: #e6e1d6; stroke-width: 2; stroke-linecap: round; }
.o-arm-l { transform-box: view-box; transform-origin: -17px -50px; }
.o-arm-r { transform-box: view-box; transform-origin: 17px -50px; }
.o-head { transform-box: view-box; transform-origin: 0 -54px; }
.o-leg { transform-box: fill-box; transform-origin: 50% 0; }
.o-body { transform-box: fill-box; transform-origin: 50% 100%; }

/* durmiendo en la cueva */
.ogre-home { will-change: transform; transition: opacity .35s; }
.ogre-home .ogre { width: 46px; height: 51px; left: -23px; top: -49px; }
.ogre.sleeping .o-eyes { display: none; }
.ogre.sleeping .o-closed { display: inline; }
.ogre.sleeping .o-brow { opacity: .35; }
.ogre.sleeping .ogre-svg { transform: rotate(-10deg) translateY(4px); }
.ogre.sleeping .o-body { animation: oBreath 3.2s ease-in-out infinite; }
@keyframes oBreath { 50% { transform: scale(1.05, 1.07); } }
.ogre-home .zz { position: absolute; left: 10px; top: -46px; font: 900 11px 'Cinzel', serif; color: #fff; -webkit-text-stroke: 2.5px #1d3a0e; paint-order: stroke fill;
  opacity: 0; animation: zz 3s ease-in-out infinite; }
.ogre-home .zz.z2 { animation-delay: 1s; font-size: 13px; } .ogre-home .zz.z3 { animation-delay: 2s; font-size: 16px; }
@keyframes zz { 0% { opacity: 0; transform: translate(0, 6px) scale(.6); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(14px, -18px) scale(1); } }
.ogre-home .alert { position: absolute; left: -6px; top: -78px; font-size: 22px; opacity: 0; transform: scale(.3); transition: transform .3s cubic-bezier(.2,1.8,.4,1), opacity .2s; }
.ogre-home.awake .zz, .ogre-home.yawn .zz { display: none; }
.ogre-home.awake .alert { opacity: 1; transform: scale(1); animation: alertPulse .6s ease-in-out infinite alternate; }
@keyframes alertPulse { to { transform: scale(1.25) rotate(8deg); } }
.ogre-home.awake .ogre { animation: oAngry .5s ease-in-out infinite; }
.ogre-home.awake .o-pupil { fill: #e0261a; }
.ogre-home.awake .o-arm-r { animation: clubShake .5s ease-in-out infinite alternate; }
@keyframes oAngry { 50% { transform: translateY(-6px); } }
@keyframes clubShake { from { transform: rotate(-20deg); } to { transform: rotate(-70deg); } }
.ogre-home.yawn .ogre { animation: oStretch 2.2s ease-in-out; }
@keyframes oStretch { 20%, 70% { transform: translateY(-6px) scaleY(1.1); } }
.ogre-home.away { opacity: 0; }

/* de viaje */
.ogre-walker { will-change: transform; }
.ogre-flip.left { transform: scaleX(-1); }
.ogre-walker .boat { position: absolute; width: 64px; height: 23px; left: -32px; top: -12px; display: none; }
.boat-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.b-hull { fill: #7a4a1e; stroke: #2a1608; stroke-width: 2; stroke-linejoin: round; }
.b-plank { stroke: rgba(0,0,0,.35); stroke-width: 1.2; }
.b-oar { stroke: #6b4421; stroke-width: 3; stroke-linecap: round; transform-box: view-box; }
.b-oar-l { transform-origin: -6px -6px; } .b-oar-r { transform-origin: 6px -6px; }
.ogre-walker.sailing .boat { display: block; }
.ogre-walker.sailing .ogre { top: -70px; }
.ogre-walker.sailing .o-leg, .ogre-walker.sailing .o-shadow { visibility: hidden; }
.ogre-walker.sailing .ogre-bob { animation: sailBob 1.2s ease-in-out infinite; }
.ogre-walker.sailing .b-oar-l { animation: rowL .8s ease-in-out infinite; }
.ogre-walker.sailing .b-oar-r { animation: rowR .8s ease-in-out infinite; }
.ogre-walker.sailing .o-arm-l, .ogre-walker.sailing .o-arm-r { animation: rowArm .8s ease-in-out infinite; }
@keyframes sailBob { 50% { transform: translateY(-3px) rotate(3deg); } }
@keyframes rowL { 50% { transform: rotate(28deg); } }
@keyframes rowR { 50% { transform: rotate(-28deg); } }
@keyframes rowArm { 50% { transform: rotate(14deg); } }
.ogre-walker.landing .ogre-bob { animation: hop .25s ease-out; }
@keyframes hop { 50% { transform: translateY(-10px); } }
.ogre-walker.walking .ogre-bob { animation: walkBob .38s ease-in-out infinite; }
.ogre-walker.walking .o-leg-l { animation: legSwing .38s ease-in-out infinite alternate; }
.ogre-walker.walking .o-leg-r { animation: legSwing .38s ease-in-out infinite alternate-reverse; }
.ogre-walker.walking .o-arm-l { animation: armSwing .38s ease-in-out infinite alternate; }
.ogre-walker.walking .o-arm-r { animation: armSwing .38s ease-in-out infinite alternate-reverse; }
@keyframes walkBob { 50% { transform: translateY(-3px); } }
@keyframes legSwing { from { transform: rotate(-24deg); } to { transform: rotate(24deg); } }
@keyframes armSwing { from { transform: rotate(-18deg); } to { transform: rotate(18deg); } }
/* tres garrotazos (coinciden con los golpes de ogro.js) */
.ogre-walker.smashing .o-arm-r { animation: clubSmash 1.6s cubic-bezier(.5,0,.5,1) forwards; }
.ogre-walker.smashing .ogre-bob { animation: smashBody 1.6s ease-in-out forwards; }
@keyframes clubSmash { 0% { transform: rotate(0); } 28% { transform: rotate(-135deg); } 37% { transform: rotate(40deg); } 50% { transform: rotate(-125deg); } 58% { transform: rotate(40deg); } 71% { transform: rotate(-125deg); } 80% { transform: rotate(45deg); } 100% { transform: rotate(30deg); } }
@keyframes smashBody { 0%, 28% { transform: translateY(-6px); } 37%, 58%, 80% { transform: translateY(2px) scale(1.06, .92); } 50%, 71% { transform: translateY(-5px); } 100% { transform: none; } }
.ogre-walker.laughing .o-head { animation: laugh .16s ease-in-out infinite alternate; }
.ogre-walker.laughing .o-eyes { display: none; }
.ogre-walker.laughing .o-closed { display: inline; }
.ogre-walker.laughing .ogre-bob { animation: walkBob .3s ease-in-out infinite; }
@keyframes laugh { from { transform: rotate(-10deg); } to { transform: rotate(10deg); } }
.ogre-walker .bubble { position: absolute; left: 6px; top: -96px; padding: 3px 8px; border-radius: 10px; background: #fff; border: 2px solid #1d3a0e; color: #1d3a0e;
  font: 900 11px/1.1 'Cinzel', serif; white-space: nowrap; opacity: 0; transform: scale(.4); transform-origin: 0 100%; transition: transform .25s cubic-bezier(.2,1.7,.4,1), opacity .2s; }
.ogre-walker .bubble.show { opacity: 1; transform: scale(1); }

/* polvo, estela del bote y el golpe */
.actor.og-dust::before, .actor.og-wake::before { content: ''; position: absolute; border-radius: 50%; }
.actor.og-dust::before { left: -7px; top: -6px; width: 14px; height: 12px; background: rgba(160,128,84,.55); animation: puffA .9s ease-out forwards; }
.actor.og-dust.big::before { left: -22px; top: -16px; width: 44px; height: 32px; background: rgba(170,140,95,.6); }
.actor.og-wake::before { left: -13px; top: -5px; width: 26px; height: 10px; border: 2px solid rgba(255,255,255,.75); animation: wakeA .9s ease-out forwards; }
@keyframes puffA { from { transform: scale(.4); opacity: 1; } to { transform: translateY(-8px) scale(1.6); opacity: 0; } }
@keyframes wakeA { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.actor.og-shock i { position: absolute; left: -22px; top: -11px; width: 44px; height: 22px; border-radius: 50%; border: 3px solid rgba(255,240,200,.95); animation: shockA .7s ease-out forwards; }
@keyframes shockA { from { transform: scale(.3); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
.actor.og-chips b { position: absolute; left: -3px; top: -3px; width: 7px; height: 5px; border-radius: 1px; background: #8a5524; border: 1px solid #2a1608; animation: chipA 1s cubic-bezier(.2,.6,.4,1) forwards; }
@keyframes chipA { 50% { transform: translate(calc(var(--dx) * .6), calc(var(--dy) - 12px)) rotate(calc(var(--r) * .5)); opacity: 1; }
  100% { transform: translate(var(--dx), calc(var(--dy) + 20px)) rotate(var(--r)); opacity: 0; } }
.actor.og-boom span { position: absolute; left: -15px; top: -16px; font-size: 28px; animation: boomA .9s ease-out forwards; }
@keyframes boomA { 0% { transform: scale(.3); opacity: 0; } 25% { transform: scale(1.3); opacity: 1; } 100% { transform: translateY(-16px) scale(1); opacity: 0; } }
.actor.og-crack svg { position: absolute; left: -30px; top: -12px; width: 60px; height: 24px; overflow: visible; }
.actor.og-crack path { fill: none; stroke: #2a1608; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 90; stroke-dashoffset: 90; animation: crackA 1.8s ease-out forwards; }
@keyframes crackA { 15% { stroke-dashoffset: 0; opacity: 1; } 70% { opacity: 1; stroke-dashoffset: 0; } 100% { opacity: 0; stroke-dashoffset: 0; } }
#board-wrap.quake #board-base, #board-wrap.quake #board, #board-wrap.quake #actors { animation: quake .38s linear; }
@keyframes quake { 20% { transform: translate(3px, -2px); } 40% { transform: translate(-3px, 2px); } 60% { transform: translate(2px, 1px); } 80% { transform: translate(-1px, -1px); } }
.ghost-road { transform-box: fill-box; transform-origin: center; }
.ghost-road.broken { animation: roadBreak .7s ease-in forwards; }
@keyframes roadBreak { 0% { opacity: 1; } 30% { transform: translate(2px, -1px) rotate(5deg); } 60% { transform: translate(-2px, 2px) rotate(-6deg) scale(.9); opacity: .7; } 100% { transform: scale(.5) rotate(14deg); opacity: 0; } }
body.no-anim .ogre.sleeping .o-body, body.no-anim .ogre-home .zz { animation: none; }

.ogre-warn { position: fixed; top: 22%; left: 50%; z-index: 57; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; pointer-events: none;
  max-width: calc(100vw - 20px); padding: 12px 20px 12px 14px; border-radius: 16px; color: #fff; text-align: left;
  background: linear-gradient(160deg, #3f6e21, #1d3a0d); border: 3px solid #a6e07a; box-shadow: 0 5px 0 #0c1a05, 0 0 40px rgba(120,220,80,.45);
  animation: owIn .45s cubic-bezier(.2,1.6,.4,1); }
.ogre-warn.out { animation: owOut .45s ease-in forwards; }
.ow-face { font-size: 46px; animation: owShake .25s ease-in-out infinite; }
.ow-txt { font: 900 18px 'Cinzel', serif; text-shadow: 0 2px 0 #0c1a05; }
@keyframes owIn { from { transform: translateX(-50%) scale(.3) rotate(-8deg); opacity: 0; } }
@keyframes owOut { to { transform: translateX(-50%) translateY(-30px) scale(.8); opacity: 0; } }
@keyframes owShake { 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }
@media (max-width: 760px) { .ogre-warn { top: 18%; padding: 8px 12px; gap: 8px; } .ow-face { font-size: 34px; } .ow-txt { font-size: 14px; } }

/* ---------- 🌧️ lluvia de recursos ---------- */
.res-rain { position: fixed; inset: 0; z-index: 56; pointer-events: none; overflow: hidden; animation: fadeIn .3s; }
.res-rain.out { transition: opacity .45s; opacity: 0; }
.rr-clouds { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-around; font-size: 70px; filter: drop-shadow(0 6px 8px rgba(0,0,0,.35)); }
.rr-clouds span { animation: cloudIn .7s ease-out both, cloudFloat 2.4s ease-in-out .7s infinite; }
.rr-clouds span:nth-child(2) { font-size: 90px; animation-delay: .15s, .85s; } .rr-clouds span:nth-child(3) { animation-delay: .3s, 1s; }
@keyframes cloudIn { from { transform: translateY(-120%); } }
@keyframes cloudFloat { 50% { transform: translateY(6px); } }
.rr-title { position: absolute; top: 132px; left: 50%; transform: translateX(-50%); white-space: nowrap; font: 900 26px 'Cinzel', serif; color: #fff;
  text-shadow: 0 3px 0 #164a6e, 0 0 18px rgba(120,190,255,.9); animation: owIn .5s cubic-bezier(.2,1.6,.4,1) .2s both; }
.rr-drop { position: absolute; top: -60px; width: 40px; height: 40px; filter: drop-shadow(0 3px 3px rgba(0,0,0,.45));
  animation: rrFall var(--d) cubic-bezier(.5,0,.9,.6) var(--del) both; }
@keyframes rrFall { from { transform: translateY(0) rotate(0); opacity: 0; } 10% { opacity: 1; } to { transform: translateY(110vh) rotate(var(--rot)); opacity: .9; } }
@media (max-width: 760px) { .rr-clouds { font-size: 46px; } .rr-clouds span:nth-child(2) { font-size: 58px; } .rr-title { top: 64px; font-size: 18px; } .rr-drop { width: 30px; height: 30px; } }
body.no-anim .rr-drop { animation-duration: 1.2s; }

/* ---------- 🐉 monstruo del lago ---------- */
.nessie .ripple { fill: none; stroke: rgba(255,255,255,.55); stroke-width: 2; animation: nRipple 2.2s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes nRipple { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }
.nessie .hump, .nessie .neck { transform-box: fill-box; transform-origin: 50% 100%; animation: nRise 6.8s ease-in-out both; }
.nessie .hump.h1 { animation-delay: .3s; } .nessie .hump.h2 { animation-delay: .15s; }
@keyframes nRise { 0% { transform: scaleY(0); } 12%, 82% { transform: scaleY(1); } 100% { transform: scaleY(0); } }
.nessie .nhead { animation: nLook 2.6s ease-in-out .9s 3; }
@keyframes nLook { 0%, 100% { transform: translate(27px,-31px); } 30% { transform: translate(27px,-31px) rotate(-14deg); } 65% { transform: translate(25px,-33px) scale(-1,1); } }

/* ---------- 🃏 nube con la descripción de las cartas de desarrollo ---------- */
.dcard.off { cursor: help; }
#cardtip { position: fixed; left: 0; top: 0; z-index: 62; width: max-content; max-width: min(260px, calc(100vw - 16px)); padding: 9px 12px 10px; border-radius: 16px;
  background: #fffaf0; color: var(--ink); border: 2.5px solid #5a3a1e; box-shadow: 0 4px 0 #1b0d02, var(--shadow);
  opacity: 0; pointer-events: none; visibility: hidden; transition: opacity .15s; font-size: 13px; line-height: 1.3; }
#cardtip.show { opacity: 1; visibility: visible; pointer-events: auto; animation: tipPop .2s ease-out; }
#cardtip::after { content: ''; position: absolute; left: calc(var(--ax, 50%) - 9px); bottom: -11px; width: 16px; height: 16px; background: #fffaf0;
  border-right: 2.5px solid #5a3a1e; border-bottom: 2.5px solid #5a3a1e; transform: rotate(45deg); border-bottom-right-radius: 4px; }
#cardtip.below::after { bottom: auto; top: -11px; transform: rotate(225deg); }
@keyframes tipPop { from { opacity: 0; } }
.ct-head { display: flex; align-items: center; gap: 6px; font: 900 15px 'Cinzel', serif; margin-bottom: 3px; }
.ct-e { font-size: 22px; }
.ct-note { margin-top: 5px; font-size: 12px; font-weight: 800; color: #8a4a12; }
.ct-play { margin-top: 8px; width: 100%; }
#cardtip.dev-knight { background: #f3f6fb; } #cardtip.dev-vp { background: #fff8dc; } #cardtip.dev-monopoly { background: #f7f0ff; }
#cardtip.dev-plenty { background: #f2fbea; } #cardtip.dev-roads { background: #fdf3e6; }
#cardtip.dev-knight::after { background: #f3f6fb; } #cardtip.dev-vp::after { background: #fff8dc; } #cardtip.dev-monopoly::after { background: #f7f0ff; }
#cardtip.dev-plenty::after { background: #f2fbea; } #cardtip.dev-roads::after { background: #fdf3e6; }
@media (max-width: 760px) { #vote-float { top: 92px; } .vote-h { font-size: 14px; } }
@media (max-height: 520px) and (orientation: landscape) { #vote-float { top: 44px; } }

/* comercio: cuando el banco ya alcanza, "Recibes" se ilumina para que elijas */
.tsec.get.pick-me { animation: pickMe 1.2s ease-in-out infinite; }
@keyframes pickMe { 50% { box-shadow: 0 0 0 3px var(--gold2), 0 0 18px rgba(255,213,107,.7); } }
.pk-none { color: #8a4a12; font-weight: 800; }

/* ---------- 🌊 tsunami ---------- */
.evchip.ev-tsu { border-color: rgba(90,170,255,.6); }
.ogre-warn.tsu { background: linear-gradient(160deg, #1b6fae, #0b3558); border-color: #8fd3ff; box-shadow: 0 5px 0 #06223a, 0 0 40px rgba(90,180,255,.5); }
.ogre-warn.tsu .ow-txt { text-shadow: 0 2px 0 #06223a; }
#board-wrap.tsu-go #board-base, #board-wrap.tsu-go #board, #board-wrap.tsu-go #actors { transition: transform 1s cubic-bezier(.5,0,.3,1), opacity 1s; }
#board-wrap.tsu-sunk #board-base, #board-wrap.tsu-sunk #board, #board-wrap.tsu-sunk #actors { transform: translateY(34px) scale(.86) rotate(-1.5deg); opacity: .12; }
#board-wrap.tsu-up #board-base, #board-wrap.tsu-up #board, #board-wrap.tsu-up #actors { animation: tsuPop 1.1s cubic-bezier(.2,1.4,.4,1); }
@keyframes tsuPop { 0% { transform: translateY(34px) scale(.86); opacity: .12; } 60% { opacity: 1; } 100% { transform: none; opacity: 1; } }
.tsunami { position: absolute; inset: 0; z-index: 6; pointer-events: none; overflow: hidden; }
.tsu-dark { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 120%, rgba(4,20,40,.0), rgba(4,20,40,.55)); opacity: 0; transition: opacity .45s; }
.tsunami.pull .tsu-dark { opacity: 1; }
.tsunami.out .tsu-dark { opacity: 0; transition-duration: .8s; }
/* el agua que tapa el mapa: sube desde abajo, con dos olitas en la superficie y burbujas */
.tsu-flood { position: absolute; left: 0; right: 0; bottom: 0; height: 100%; transform: translateY(102%);
  background: linear-gradient(180deg, rgba(46,150,215,.86), rgba(10,60,110,.95)); transition: transform 1.25s cubic-bezier(.35,0,.2,1) .25s; }
.tsunami.in .tsu-flood { transform: translateY(0); }
.tsunami.out .tsu-flood { transform: translateY(102%); transition: transform .95s cubic-bezier(.6,0,.8,.6); }
.tsu-surf { position: absolute; left: 0; width: 200%; height: 22px; }
.tsu-surf svg { display: block; width: 100%; height: 100%; }
.tsu-surf.back { top: -20px; } .tsu-surf.back path { fill: rgba(40,130,200,.7); }
.tsu-surf.front { top: -12px; } .tsu-surf.front path { fill: rgba(70,170,230,.9); }
.tsu-surf.back { animation: surf 2.6s linear infinite; } .tsu-surf.front { animation: surf 1.7s linear infinite reverse; }
@keyframes surf { to { transform: translateX(-50%); } }
.tsu-bubbles i { position: absolute; bottom: -10px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid rgba(255,255,255,.6);
  transform: scale(var(--s)); animation: bubble var(--d) ease-in var(--del) infinite; }
@keyframes bubble { from { transform: translateY(0) scale(var(--s)); opacity: .9; } to { transform: translateY(-75vh) scale(var(--s)); opacity: 0; } }
/* la ola gigante: cruza de izquierda a derecha con su cresta de espuma */
.tsu-wave { position: absolute; bottom: -6%; left: 0; width: min(78vh, 70%); height: 112%; transform: translateX(-105%); }
.tsunami.in .tsu-wave { animation: tsuWave 1.9s cubic-bezier(.35,0,.55,1) forwards; }
@keyframes tsuWave { 0% { transform: translateX(-105%) translateY(8%); } 50% { transform: translateX(40%) translateY(0); } 100% { transform: translateX(170%) translateY(6%); } }
.tsu-wave svg { width: 100%; height: 100%; overflow: visible; }
.tsu-wave .tw3 { fill: #0e4f86; } .tsu-wave .tw2 { fill: #1f7fc4; } .tsu-wave .tw1 { fill: #4fb0e6; }
.tsu-wave .twf { fill: none; stroke: #f1fbff; stroke-width: 4.5; stroke-linecap: round; stroke-dasharray: 7 5; }
.tsu-wave .tws circle { fill: #f1fbff; }
.tsu-wave .tws { animation: spray .5s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 0 100%; }
@keyframes spray { to { transform: translate(4px, -4px) scale(1.15); } }
.tsu-title { position: absolute; top: 38%; left: 50%; transform: translate(-50%, -50%) scale(.4); opacity: 0; white-space: nowrap; max-width: 94%;
  font: 900 clamp(24px, 6vw, 54px) 'Cinzel', serif; color: #fff; text-shadow: 0 4px 0 #0b3558, 0 0 24px rgba(140,210,255,.9);
  transition: transform .5s cubic-bezier(.2,1.6,.4,1) .9s, opacity .3s .9s; }
.tsu-title span { display: inline-block; animation: tsuIcon .6s ease-in-out infinite alternate; }
@keyframes tsuIcon { to { transform: rotate(-12deg) translateY(-4px); } }
.tsunami.in .tsu-title { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.tsu-title.done { font-size: clamp(16px, 3.6vw, 30px); white-space: normal; text-align: center; transition: transform .4s cubic-bezier(.2,1.6,.4,1), opacity .3s; transform: translate(-50%, -50%) scale(1); opacity: 1;
  background: rgba(8,52,92,.7); padding: 8px 16px; border-radius: 14px; border: 2px solid #8fd3ff; }
@media (max-width: 760px) { .tsu-wave { width: 95%; } .tsu-surf { height: 16px; } }
#l-fx .tsu-ring { fill: none; stroke: #8fd3ff; stroke-width: 5; transform-box: fill-box; transform-origin: center; animation: tsuRing 1.3s ease-out 2 both; }
@keyframes tsuRing { 0% { transform: scale(.4); opacity: 0; } 25% { opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }

/* ---------- 🎵 música de YouTube ---------- */
#music { position: absolute; top: 52px; left: 8px; z-index: 7; display: none; flex-direction: column; align-items: flex-start; gap: 6px; max-width: min(320px, calc(100% - 70px)); }
#music.show { display: flex; }
.mu-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; max-width: 100%; }
.mu-pill { display: flex; align-items: center; gap: 6px; min-width: 0; max-width: 210px; height: 32px; padding: 0 10px 0 8px; border-radius: 16px; cursor: pointer;
  background: rgba(20,12,4,.82); color: #fff3d0; border: 1.5px solid rgba(255,213,107,.55); font: 800 12px/1 inherit; box-shadow: 0 3px 10px rgba(0,0,0,.35); }
.mu-title { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; min-width: 0; }
.mu-n { background: var(--gold); color: var(--ink); border-radius: 8px; padding: 1px 5px; font-size: 11px; }
.mu-caret { opacity: .8; }
.mu-btn { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid rgba(255,213,107,.55); background: rgba(20,12,4,.82); color: #fff; cursor: pointer; font-size: 14px; }
.mu-btn:hover, .mu-pill:hover { border-color: var(--gold2); }
.mu-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.mu-eq i { width: 3px; background: var(--gold2); border-radius: 1px; animation: muEq .9s ease-in-out infinite; }
.mu-eq i:nth-child(2) { animation-delay: .25s; } .mu-eq i:nth-child(3) { animation-delay: .5s; }
@keyframes muEq { 0%, 100% { height: 3px; } 50% { height: 12px; } }
body.no-anim .mu-eq i { animation: none; height: 8px; }
.mu-tap { display: none; height: 32px; padding: 0 12px; border-radius: 16px; border: 0; background: var(--gold); color: var(--ink); font-weight: 900; cursor: pointer; animation: evPulse 1s ease-in-out infinite; }
#music.blocked .mu-tap { display: inline-block; }
.mu-card { display: none; flex-basis: 100%; background: #fffaf0; color: var(--ink); border: 2px solid #5a3a1e; border-radius: 12px; padding: 8px 10px; font-size: 12px; box-shadow: var(--shadow); }
#music.open .mu-card { display: block; }
.mu-next { margin: 4px 0; padding-left: 4px; list-style: none; } .mu-next li { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mu-next small, .mu-help { opacity: .75; } .mu-help { margin: 4px 0 0; } .mu-empty { margin: 4px 0; opacity: .7; }
/* el reproductor: cerrado queda fuera de la pantalla (sigue sonando); abierto se ve (YouTube pide mínimo 200×200) */
.mu-video { position: fixed; left: -9999px; top: 0; width: 220px; height: 200px; pointer-events: none; }
#music.open .mu-video { position: static; left: auto; pointer-events: auto; border-radius: 10px; overflow: hidden; border: 2px solid #5a3a1e; background: #000; }
.mu-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.yt-tmp { position: fixed; left: -9999px; top: 0; width: 200px; height: 200px; }
@media (max-width: 760px) { #music { top: 46px; left: 6px; } .mu-pill { max-width: 150px; height: 30px; } .mu-btn { width: 30px; height: 30px; } }
@media (max-height: 520px) and (orientation: landscape) { #music { top: 40px; } }

/* ---------- 🗳️ votación: botones grandes y claros ---------- */
.vote-bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: rgba(0,0,0,.12); margin: 2px 0 4px; }
.vote-bar i { min-width: 0; transition: flex .3s; } .vote-bar .vy { background: #c8372d; } .vote-bar .vn { background: #3d8a2e; }
.vote-tally { justify-content: space-between; }
.vote-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.vote-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 64px; padding: 8px 6px; border-radius: 12px; line-height: 1.1; }
.vote-btn .vb-ico { font-size: 24px; line-height: 1; }
.vote-btn b { font-size: 14px; }
.vote-btn small { font-size: 11px; font-weight: 900; }
.vote-btn.yes { background: linear-gradient(#f39b8c, #c8372d); color: #fff; border-color: #6e1610; box-shadow: 0 3px 0 #6e1610; }
.vote-btn.no { background: linear-gradient(#a7dc8a, #3d8a2e); color: #fff; border-color: #1f4a14; box-shadow: 0 3px 0 #1f4a14; }
.vote-btn.mine { outline: 3px solid var(--gold2); outline-offset: 2px; }
.vote-btn:not(.mine) { opacity: .95; }
@media (max-width: 760px) { .vote-btn { min-height: 56px; } .vote-btn b { font-size: 13px; } }
/* sacar del lobby: botón con texto, fácil de tocar */
.slot-x { width: auto !important; height: 28px !important; padding: 0 10px !important; border-radius: 14px !important; font-size: 12px !important; font-weight: 900;
  background: #fff1ec !important; color: #a3261c; border: 1.5px solid #c8372d !important; box-shadow: 0 2px 0 #7a1a12; }
.slot-x:hover { background: #c8372d !important; color: #fff; }
.slot-x:active { transform: translateY(2px); box-shadow: none; }
/* 🚫 en el panel del jugador: más grande para el dedo */
.pl-kick { width: 30px; height: 30px; font-size: 14px; opacity: .85; border-color: #c8372d; background: #fff1ec; }

/* ---------- ⚡ turno compartido ---------- */
.pl-turn { display: inline-block; margin-right: 3px; font-size: .95em; animation: plTurn 1.4s ease-in-out infinite; }
.pl-turn.done { animation: none; }
@keyframes plTurn { 50% { transform: scale(1.2); } }
.pl.active.done { box-shadow: inset 5px 0 0 var(--c), 0 0 0 2px rgba(120,190,90,.8); transform: none; opacity: .85; }
.turn-wait { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 14px; border-radius: 12px; font-weight: 800;
  background: rgba(61,138,46,.18); border: 2px solid rgba(120,200,90,.6); color: #eaffd8; text-align: center; }
@media (max-width: 760px) { .turn-wait { padding: 8px 10px; font-size: 13px; width: 100%; } }
body.no-anim .pl-turn { animation: none; }

/* ---------- 🌊 mar animado (capa HTML debajo del mapa: lo mueve la tarjeta gráfica) ---------- */
#sea { position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  background: radial-gradient(ellipse at 50% 42%, #2c7db3 0%, #1b5d8f 48%, #0d3a5f 100%); }
#sea > i { position: absolute; will-change: transform; }
.sea-a { top: 0; bottom: 0; left: -160px; right: -160px; background: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27160%27 height=%2780%27 viewBox=%270 0 160 80%27%3E%3Cg fill=%27none%27 stroke=%27rgba%28255%2C255%2C255%2C0.26%29%27 stroke-width=%272.2%27 stroke-linecap=%27round%27%3E%3Cpath d=%27M8 20 q8 -7 16 0 t16 0%27/%3E%3Cpath d=%27M92 44 q8 -7 16 0 t16 0%27/%3E%3Cpath d=%27M44 66 q6 -5 12 0 t12 0%27/%3E%3Cpath d=%27M124 12 q6 -5 12 0 t12 0%27/%3E%3C/g%3E%3C/svg%3E") repeat; background-size: 160px 80px; animation: seaA 16s linear infinite; }
.sea-b { top: -130px; bottom: -130px; left: -240px; right: -240px; background: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27240%27 height=%27130%27 viewBox=%270 0 240 130%27%3E%3Cg fill=%27none%27 stroke=%27rgba%28190%2C230%2C255%2C0.22%29%27 stroke-width=%273%27 stroke-linecap=%27round%27%3E%3Cpath d=%27M20 36 q14 -10 28 0 t28 0 t28 0%27/%3E%3Cpath d=%27M140 96 q14 -10 28 0 t28 0%27/%3E%3C/g%3E%3Cg fill=%27rgba%28255%2C255%2C255%2C0.12%29%27%3E%3Ccircle cx=%27200%27 cy=%2730%27 r=%272%27/%3E%3Ccircle cx=%2770%27 cy=%27104%27 r=%271.6%27/%3E%3C/g%3E%3C/svg%3E") repeat; background-size: 240px 130px; animation: seaB 30s linear infinite; }
@keyframes seaA { to { transform: translate3d(160px, 0, 0); } }
@keyframes seaB { to { transform: translate3d(-240px, 130px, 0); } }
.sea-light { left: 10%; top: 5%; width: 80%; height: 80%; border-radius: 50%; background: radial-gradient(circle, rgba(150,215,255,.2), rgba(150,215,255,0) 62%); animation: seaLight 13s ease-in-out infinite alternate; }
@keyframes seaLight { to { transform: translate3d(8%, 6%, 0) scale(1.15); } }
.sea-glints b { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px 2px rgba(255,255,255,.7); opacity: 0; animation: glint 5s ease-in-out infinite; }
.sea-glints b:nth-child(1) { left: 8%; top: 14%; } .sea-glints b:nth-child(2) { left: 82%; top: 22%; animation-delay: .7s; }
.sea-glints b:nth-child(3) { left: 30%; top: 78%; animation-delay: 1.4s; } .sea-glints b:nth-child(4) { left: 64%; top: 88%; animation-delay: 2.1s; }
.sea-glints b:nth-child(5) { left: 92%; top: 60%; animation-delay: 2.8s; } .sea-glints b:nth-child(6) { left: 4%; top: 52%; animation-delay: 3.5s; }
.sea-glints b:nth-child(7) { left: 48%; top: 6%; animation-delay: 4.2s; } .sea-glints b:nth-child(8) { left: 18%; top: 92%; animation-delay: 1s; }
.sea-glints b:nth-child(9) { left: 74%; top: 4%; animation-delay: 3s; } .sea-glints b:nth-child(10) { left: 96%; top: 90%; animation-delay: 4.6s; }
@keyframes glint { 0%, 70%, 100% { opacity: 0; transform: scale(.4); } 80% { opacity: .9; transform: scale(1.3); } }
/* los hexágonos de agua dejan ver el mar animado de abajo (y ya no animan sus olitas en SVG, que repintaban el mapa) */
#l-water .water { opacity: .5; }
#l-water .water.far { opacity: .3; }
#l-water .waves { display: none; }

/* ---------- ⚓ muelles: salvavidas que flota + muelle de madera ---------- */
.dock { display: none; }
.pier-under { stroke: #3a2410; stroke-width: 9; stroke-linecap: round; }
.pier { stroke: #b07a40; stroke-width: 6; stroke-dasharray: 3 2; }
.pier-post { fill: #5a3a1e; stroke: #2a1608; stroke-width: 1; }
.port-hit { fill: transparent; pointer-events: all; }
.port.mine { animation: none; }
.port-m .pm-bob { position: absolute; left: -26px; top: -26px; width: 52px; height: 52px; animation: pmBob 3.2s ease-in-out infinite; }
.pm-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.pm-ring { fill: #f7f2e6; }
.pm-stripes { fill: none; stroke-width: 7; stroke-dasharray: 16.49 16.49; }
.pm-edge { fill: none; stroke: #4a2c12; stroke-width: 2; }
.pm-face { fill: #fbf3df; stroke: #4a2c12; stroke-width: 1.8; }
.pm-face.any { fill: #e3f3fc; }
.pm-ratio { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); padding: 2px 6px; border-radius: 7px; white-space: nowrap;
  font: 900 10px/1 'Cinzel', serif; background: #5a3a1e; color: #ffe9b0; border: 1px solid #2a1608; box-shadow: 0 2px 0 rgba(0,0,0,.35); }
.pm-ratio.any { background: #1f5f8f; color: #e3f3fc; }
.pm-ripple { position: absolute; left: -32px; top: 0; width: 64px; height: 26px; border-radius: 50%; border: 2px solid rgba(255,255,255,.55); opacity: 0; animation: pmRipple 3.6s ease-out infinite; }
@keyframes pmBob { 0%, 100% { transform: translateY(0) rotate(-5deg); } 50% { transform: translateY(-4px) rotate(5deg); } }
@keyframes pmRipple { 0% { transform: scale(.45); opacity: 0; } 20% { opacity: .85; } 100% { transform: scale(1.5); opacity: 0; } }
/* tus muelles: aro dorado que late */
.port-m.mine .pm-bob::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 3px solid #ffd56b; box-shadow: 0 0 14px rgba(255,213,107,.9); animation: pmMine 1.6s ease-in-out infinite; }
@keyframes pmMine { 50% { opacity: .35; transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { #sea > i, .sea-glints b, .port-m .pm-bob, .pm-ripple, .port-m.mine .pm-bob::after { animation: none !important; } }

/* ---------- 🌋 volcán ---------- */
.evchip.ev-volc { border-color: rgba(255,140,60,.65); }
.ogre-warn.volc { background: linear-gradient(160deg, #a8320f, #4a1205); border-color: #ffb36b; box-shadow: 0 5px 0 #2a0a02, 0 0 40px rgba(255,120,40,.55); }
.ogre-warn.volc .ow-txt { text-shadow: 0 2px 0 #2a0a02; }
/* el volcán (pie en 0,0): sale del mar, humea, hace erupción y se hunde */
.volc .osz { transform: scale(var(--ok, 1)); transform-origin: 0 0; }
.volc-up { position: absolute; left: -48px; top: -64px; width: 96px; height: 83px; animation: vRise 1.3s cubic-bezier(.2,1.2,.4,1) both; }
.volc.sink .volc-up { animation: vSink 1.4s ease-in forwards; }
@keyframes vRise { from { transform: translateY(70px) scale(.6); opacity: 0; } 40% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes vSink { to { transform: translateY(70px) scale(.6); opacity: 0; } }
.volc-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.v-foam { fill: rgba(255,255,255,.35); stroke: rgba(255,255,255,.8); stroke-width: 2; stroke-dasharray: 6 5; }
.v-cone { fill: #5b4334; stroke: #23150c; stroke-width: 2.5; stroke-linejoin: round; }
.v-shade { fill: rgba(0,0,0,.22); }
.v-rock { stroke: #3a2a1e; stroke-width: 2.4; stroke-linecap: round; }
.v-lava { fill: none; stroke: #ff7a1a; stroke-width: 4; stroke-linecap: round; opacity: .55; }
.v-crater { fill: #2a1208; stroke: #23150c; stroke-width: 2; }
.v-glow { fill: #ff6a00; opacity: .55; }
.volc.erupt .v-lava { stroke: #ffb02e; opacity: 1; }
.volc.erupt .v-glow { fill: #ffd34d; opacity: 1; }
.volc.erupt .volc-up { animation: vShake .14s linear infinite; }
@keyframes vShake { 25% { transform: translate(2px, -1px); } 75% { transform: translate(-2px, 1px); } }
.v-splash { position: absolute; left: 3px; top: 68px; width: 90px; height: 22px; border-radius: 50%; border: 3px solid rgba(255,255,255,.75); animation: vSplash 1.3s ease-out both; }
@keyframes vSplash { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.v-smoke { position: absolute; left: 50%; top: 32px; }
.v-smoke i { position: absolute; left: -12px; top: -12px; width: 24px; height: 24px; border-radius: 50%; background: rgba(90,80,75,.55); animation: vSmoke 2.6s ease-out infinite; }
.v-smoke i:nth-child(2) { animation-delay: .65s; } .v-smoke i:nth-child(3) { animation-delay: 1.3s; } .v-smoke i:nth-child(4) { animation-delay: 1.95s; }
@keyframes vSmoke { from { transform: translate(0, 0) scale(.5); opacity: .9; } to { transform: translate(14px, -70px) scale(2.2); opacity: 0; } }
.volc.erupt .v-smoke i { background: rgba(60,45,40,.7); animation-duration: 1.4s; }
.v-fountain { position: absolute; left: 50%; top: 30px; display: none; }
.volc.erupt .v-fountain { display: block; }
.v-fountain i { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: radial-gradient(circle, #fff3b0, #ff8a00 55%, #a32a00);
  animation: vDrop .8s ease-out infinite; }
@keyframes vDrop { 0% { transform: translate(0, 0); opacity: 1; } 50% { transform: translate(calc(var(--dx) * .6), calc(var(--h) * -1)); } 100% { transform: translate(var(--dx), 6px); opacity: 0; } }
/* rocas de fuego y su estela */
.v-rockfly, .v-ember { will-change: transform; }
.v-rockfly b { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 45% 55% 50% 50%;
  background: radial-gradient(circle at 35% 35%, #ffe7a0, #ff7a00 45%, #6b1d00 80%); box-shadow: 0 0 12px 4px rgba(255,120,0,.75); }
.v-ember b { position: absolute; border-radius: 50%; background: #ffae3a; box-shadow: 0 0 8px 2px rgba(255,110,0,.6); }
.v-ember.e1 b { left: -6px; top: -6px; width: 12px; height: 12px; opacity: .8; }
.v-ember.e2 b { left: -4px; top: -4px; width: 8px; height: 8px; opacity: .55; }
.v-ember.e3 b { left: -3px; top: -3px; width: 6px; height: 6px; opacity: .35; }
.actor.v-blast i { position: absolute; left: -30px; top: -30px; width: 60px; height: 60px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,240,180,.95), rgba(255,120,0,.7) 45%, rgba(255,60,0,0) 70%); animation: vBlast .7s ease-out forwards; }
.actor.v-blast i.r2 { background: none; border: 4px solid rgba(255,170,60,.9); animation: vRing .8s ease-out forwards; }
@keyframes vBlast { from { transform: scale(.2); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
@keyframes vRing { from { transform: scale(.3); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
.actor.v-embers b { position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: #ffb347; box-shadow: 0 0 6px #ff7a00; animation: vEmber 1s ease-out forwards; }
@keyframes vEmber { 50% { transform: translate(calc(var(--dx) * .6), calc(var(--dy) - 10px)); opacity: 1; } 100% { transform: translate(var(--dx), calc(var(--dy) + 16px)); opacity: 0; } }
/* terreno quemado: tierra negra con grietas de lava (fijo en el mapa) */
.burnt { cursor: help; }
.b-ash { fill: rgba(25,14,8,.62); stroke: #ff6a00; stroke-width: 2.5; stroke-opacity: .7; }
.b-crack { fill: none; stroke: #ff7a1a; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.b-crack2 { fill: none; stroke: #ffe08a; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
/* humo y turnos que faltan (capa de actores) */
.burn-fx .bs-smoke { position: absolute; left: 0; top: -6px; }
.burn-fx .bs-smoke i { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; background: rgba(70,60,55,.5); animation: vSmoke 3.2s ease-out infinite; }
.burn-fx .bs-smoke i:nth-child(2) { animation-delay: 1.05s; left: -18px; } .burn-fx .bs-smoke i:nth-child(3) { animation-delay: 2.1s; left: 2px; }
.burn-fx .bs-tag { position: absolute; left: 14px; top: -42px; padding: 1px 6px; border-radius: 9px; background: #4a1205; color: #ffd8a0; border: 1.5px solid #ff8a3a;
  font: 900 11px/1.3 'Cinzel', serif; white-space: nowrap; box-shadow: 0 2px 0 rgba(0,0,0,.4); }
body.no-anim .burn-fx .bs-smoke i { animation-duration: 6s; }
@media (prefers-reduced-motion: reduce) { .v-smoke i, .bs-smoke i, .v-fountain i, .volc.erupt .volc-up { animation: none !important; } }

/* barra de arriba en laptops: con varios contadores se compacta para que no se corten los botones */
@media (min-width: 761px) and (max-width: 1500px) {
  .evchip { font-size: 12px; padding: 1px 6px; }
  .tb-events { gap: 3px; }
  #topbar .tbtn .txt { display: none; }
  #topbar .tb-map { display: none; }
  #topbar .ports-title { display: none; }
}
@media (min-width: 761px) and (max-width: 1150px) {
  #topbar { gap: 4px; padding-left: 8px; padding-right: 8px; }
  #topbar .tbtn { padding: 0 7px; }
  #topbar .tb-btns { gap: 4px; }
  .roll-mini { flex: none; }
  .bank { gap: 3px; }
  .evchip { padding: 1px 5px; font-size: 11.5px; }
  .bk { padding: 1px 5px 1px 2px; font-size: 12px; }
  .bank-lbl { display: none; }
  #topbar .brand-name { display: none; }
}

/* ---------- 🎛️ lobby: opciones ordenadas (reglas, eventos y tiempos) ---------- */
.opt-list { display: flex; flex-direction: column; gap: 6px; }
.opt-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 8px 10px; border-radius: 12px; cursor: pointer;
  background: rgba(255,250,235,.75); border: 2px solid rgba(138,93,43,.35); color: var(--ink); font: inherit; transition: border-color .15s, background .15s, transform .1s; }
.opt-row:hover:not(:disabled) { border-color: #8a5d2b; }
.opt-row:active:not(:disabled) { transform: scale(.99); }
.opt-row.on { background: #fff4cf; border-color: #c9932e; box-shadow: inset 4px 0 0 var(--gold); }
.opt-row:disabled { cursor: default; opacity: .85; }
.or-ico { flex: none; width: 34px; height: 34px; display: grid; place-items: center; font-size: 20px; border-radius: 10px; background: rgba(138,93,43,.12); }
.or-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.or-txt b { font-size: 14px; }
.or-txt small { font-size: 11.5px; opacity: .75; font-weight: 600; }
/* interruptor */
.sw { flex: none; position: relative; width: 42px; height: 24px; border-radius: 12px; background: #b9a888; border: 2px solid #6b4a24; transition: background .2s; }
.sw i { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.4); transition: transform .2s cubic-bezier(.3,1.5,.5,1); }
.sw.on { background: #3d8a2e; }
.sw.on i { transform: translateX(18px); }
/* control segmentado */
.seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 3px; border-radius: 12px; background: rgba(138,93,43,.14); }
.seg-b { flex: 1 1 auto; min-width: 46px; padding: 6px 8px; border-radius: 9px; border: 0; background: transparent; color: var(--ink); font-family: inherit; font-weight: 800; font-size: 12.5px; line-height: 1.1; cursor: pointer; white-space: nowrap; }
.seg-b:hover:not(:disabled) { background: rgba(255,255,255,.6); }
.seg-b.sel { background: var(--gold); box-shadow: 0 2px 0 #8a5d2b; }
.seg-b:disabled { cursor: default; }
.seg-b:disabled:not(.sel) { opacity: .55; }
/* tarjetas de eventos */
.opts-box { margin-bottom: 14px; }
.opts-box h3 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.evc-count { font: 800 11px/1 'Nunito', sans-serif; padding: 4px 8px; border-radius: 10px; background: rgba(138,93,43,.15); }
.evc-count.on { background: #3d8a2e; color: #fff; }
.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.ev-card { --ec: #8a5d2b; position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 12px 12px; border-radius: 14px; text-align: left;
  background: rgba(255,250,235,.8); border: 2px solid rgba(138,93,43,.35); color: var(--ink); font: inherit; overflow: hidden; transition: border-color .15s, box-shadow .2s, transform .1s; }
button.ev-card { cursor: pointer; }
button.ev-card:hover:not(:disabled) { border-color: var(--ec); }
button.ev-card:active:not(:disabled) { transform: scale(.98); }
.ev-card:disabled { cursor: default; }
.ev-card.on { border-color: var(--ec); box-shadow: 0 0 0 2px var(--ec), 0 6px 16px rgba(0,0,0,.18);
  background: linear-gradient(160deg, #fffaf0 0%, color-mix(in srgb, var(--ec) 18%, #fffaf0) 100%); }
.ev-card.ev-ogre { --ec: #4f8f33; } .ev-card.ev-rain { --ec: #2f7fc0; } .ev-card.ev-volc { --ec: #d2561c; } .ev-card.ev-tsu { --ec: #1f6fa8; }
.evc-top { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.evc-ico { font-size: 30px; line-height: 1; filter: grayscale(.6); opacity: .8; transition: filter .2s, opacity .2s, transform .2s; }
.ev-card.on .evc-ico { filter: none; opacity: 1; transform: scale(1.08); }
.evc-title { font: 900 15px/1.1 'Cinzel', serif; }
.evc-desc { font-size: 12px; font-weight: 600; opacity: .8; line-height: 1.25; }
.evc-every { margin-top: 2px; font-size: 11px; font-weight: 900; padding: 2px 8px; border-radius: 8px; background: rgba(0,0,0,.07); }
.ev-card.on .evc-every { background: var(--ec); color: #fff; }
.ev-card .seg { width: 100%; margin-top: 4px; flex-wrap: nowrap; }
.ev-card .seg-b { flex: 1 1 0; min-width: 0; }
.evc-note { font-size: 10.5px; font-weight: 700; opacity: .7; }
.ev-card.ev-ogre .seg-b.sel { background: #4f8f33; color: #fff; box-shadow: 0 2px 0 #2c5a1a; }
.ev-card .sw.on { background: var(--ec); }
/* tiempos */
.time-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px dashed rgba(138,93,43,.3); }
.time-row:first-of-type { border-top: 0; }
.tr-h { display: flex; align-items: center; gap: 10px; flex: 0 0 240px; }
.time-row .seg { flex: 1; }
@media (max-width: 760px) {
  .ev-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .ev-card { padding: 8px 9px 10px; }
  .evc-ico { font-size: 24px; }
  .evc-title { font-size: 13.5px; }
  .evc-desc { font-size: 11px; }
  .ev-card .seg-b { min-width: 0; padding: 5px 4px; font-size: 11px; }
  .time-row { flex-direction: column; align-items: stretch; gap: 6px; }
  .tr-h { flex: none; }
  .or-ico { width: 30px; height: 30px; font-size: 17px; }
  .or-txt b { font-size: 13px; }
}
@media (max-width: 360px) { .ev-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .sw i, .evc-ico { transition: none; } }
/* lobby en dos columnas: a la izquierda tu estilo, a la derecha reglas + eventos + tiempos */
.lobby-row { align-items: start; }
.lobby-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.lobby-col > .lobby-box { margin: 0; }
.lobby-col .ev-grid { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); }
.lobby-col .time-row { flex-direction: column; align-items: stretch; gap: 6px; }
.lobby-col .tr-h { flex: none; }
/* diseños de piezas: cuadrícula pareja que llena el ancho */
.stylepicks { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
.stylepick { width: auto !important; min-width: 0; }
.stylepick small { text-align: center; line-height: 1.1; font-size: 10px; letter-spacing: -.3px; }
@media (max-width: 760px) { .stylepicks { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 360px) { .stylepicks { grid-template-columns: repeat(3, 1fr); } }

/* ---------- 🦹 diseños del ladrón: movimiento, robo y el 7 ---------- */
.stylepicks.robbers .stylepick svg { height: 46px; }
/* los que se teletransportan aparecen de golpe en el lugar nuevo */
.robber.tp { transition: none; }
.robber.tp .robber-bob { animation: tpIn 1s cubic-bezier(.2,1.5,.4,1) both; }
@keyframes tpIn { 0%, 45% { transform: scale(0); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
/* partículas (capa de actores) */
.rp b, .rp i { position: absolute; left: 0; top: 0; }
.rp-smoke { width: 16px; height: 16px; margin: -8px; border-radius: 50%; background: rgba(40,30,55,.65); animation: rpOut 1s ease-out forwards; }
.rp-poof { width: 20px; height: 20px; margin: -10px; border-radius: 50%; background: rgba(235,235,240,.85); animation: rpOut .75s ease-out forwards; }
.rp-mist { width: 22px; height: 22px; margin: -11px; border-radius: 50%; background: radial-gradient(circle, rgba(200,20,40,.7), rgba(120,0,20,0) 70%); animation: rpOut 1.2s ease-out forwards; }
.rp-dust { width: 14px; height: 12px; margin: -6px -7px; border-radius: 50%; background: rgba(160,128,84,.6); animation: rpOut .9s ease-out forwards; }
.rp-spark { width: 4px; height: 4px; margin: -2px; border-radius: 50%; background: #aef2ff; box-shadow: 0 0 6px #3ad7ff; animation: rpOut .8s ease-out forwards; }
.rp-ecto { width: 12px; height: 14px; margin: -7px -6px; border-radius: 50% 50% 45% 45%; background: rgba(190,255,210,.75); box-shadow: 0 0 8px rgba(120,255,160,.6); animation: rpEcto 1.3s ease-out forwards; }
.rp-emoji { margin: -9px; font-size: 16px; line-height: 1; animation: rpOut 1.1s ease-out forwards; }
.rp-emoji.small { font-size: 12px; margin: -6px; }
@keyframes rpOut { from { transform: translate(0, 0) scale(.5); opacity: 1; } to { transform: translate(var(--dx), var(--dy)) scale(1.9); opacity: 0; } }
@keyframes rpEcto { 0% { transform: translate(0, 0) scale(.4); opacity: 1; } 50% { transform: translate(calc(var(--dx) * .5 + 4px), calc(var(--dy) * .6)) scale(1.1); } 100% { transform: translate(var(--dx), var(--dy)) scale(1.4); opacity: 0; } }
.rp-drop { width: 6px; height: 8px; margin: -4px -3px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: #9fdcff; border: 1px solid #2f7fc0; animation: rpDrop .9s ease-out forwards; }
@keyframes rpDrop { 50% { transform: translate(calc(var(--dx) * .6), calc(var(--dy) - 22px)); opacity: 1; } 100% { transform: translate(var(--dx), calc(var(--dy) + 14px)); opacity: 0; } }
.rp-ring { width: 54px; height: 20px; margin: -6px -27px; border-radius: 50%; border: 3px solid rgba(220,240,255,.9); animation: rpRing .9s ease-out forwards; }
.rp-ring.cyan { border-color: #3ad7ff; box-shadow: 0 0 10px #3ad7ff; }
@keyframes rpRing { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.9); opacity: 0; } }
.rp-flash { width: 80px; height: 80px; margin: -40px; border-radius: 50%; animation: rpFlash .55s ease-out forwards; }
.rp-flash.white { background: radial-gradient(circle, rgba(255,255,255,.95), rgba(255,255,255,0) 65%); }
.rp-flash.red { background: radial-gradient(circle, rgba(255,60,80,.85), rgba(120,0,20,0) 65%); }
@keyframes rpFlash { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
.rp-fall { margin: -12px; font-size: 24px; line-height: 1; animation: rpFall .8s cubic-bezier(.5,0,.6,1.4) forwards; }
@keyframes rpFall { 0% { transform: translateY(-90px); opacity: 0; } 20% { opacity: 1; } 70% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(0) scale(.8); opacity: 0; } }
.rp-beam { width: 26px; height: 150px; margin: -140px 0 0 -13px; transform-origin: 50% 100%;
  background: linear-gradient(transparent, rgba(58,215,255,.75) 40%, rgba(220,250,255,.95)); box-shadow: 0 0 18px rgba(58,215,255,.8); animation: rpBeam .9s ease-in-out forwards; }
@keyframes rpBeam { 0% { transform: scaleY(0) scaleX(.4); opacity: 0; } 40% { transform: scaleY(1) scaleX(1); opacity: 1; } 100% { transform: scaleY(1) scaleX(0); opacity: 0; } }
.rp-circle { width: 66px; height: 26px; margin: -6px -33px; border-radius: 50%; border: 3px dashed #c58bff; box-shadow: 0 0 14px #9b4dff, inset 0 0 10px #9b4dff; animation: rpCircle 1.2s ease-out forwards; }
@keyframes rpCircle { 0% { transform: scale(.2) rotate(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: scale(1.3) rotate(220deg); opacity: 0; } }
.rp-say span { position: absolute; left: 0; top: 0; transform: translateX(-50%); white-space: nowrap; padding: 2px 8px; border-radius: 10px; background: #fff; border: 2px solid #2a1c0e;
  font: 900 11px/1.2 'Cinzel', serif; color: #2a1c0e; animation: rpSay 1.5s ease-out forwards; }
@keyframes rpSay { 0% { transform: translateX(-50%) scale(.3); opacity: 0; } 15% { transform: translateX(-50%) scale(1.1); opacity: 1; } 80% { transform: translateX(-50%) translateY(-6px); opacity: 1; } 100% { transform: translateX(-50%) translateY(-12px); opacity: 0; } }
.rp-fly { will-change: transform; }
.rp-fly b { position: absolute; left: -9px; top: -9px; font-size: 17px; line-height: 1; }
.rp-bats b { animation: flap .18s ease-in-out infinite alternate; }
@keyframes flap { to { transform: scaleX(.6) scaleY(1.1); } }
.rp-stars b { font-size: 13px; animation: rpTwinkle .3s ease-in-out infinite alternate; }
@keyframes rpTwinkle { to { transform: scale(1.4) rotate(30deg); } }
.rp-shuriken { position: absolute; left: -8px; top: -8px; width: 16px; height: 16px; background: #c7ccd4; border: 1px solid #3a3f48;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: spin .25s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.rp-paw b { position: absolute; left: -7px; top: -7px; font-size: 13px; opacity: 0; animation: rpPaw 1.6s ease-out forwards; }
@keyframes rpPaw { 15% { opacity: .95; } 70% { opacity: .8; } 100% { opacity: 0; } }
/* robo: la carta brilla del color del ladrón y la mano cambia (garfio, shuriken, murciélago, imán…) */
.stealcard.skin-capucha { box-shadow: 0 0 16px 3px rgba(255,207,74,.7); }
.stealcard.skin-pirata { box-shadow: 0 0 16px 3px rgba(242,201,76,.8); }
.stealcard.skin-ninja { box-shadow: 0 0 16px 3px rgba(255,77,77,.8); }
.stealcard.skin-vampiro { box-shadow: 0 0 18px 4px rgba(224,38,26,.85); }
.stealcard.skin-robot { box-shadow: 0 0 18px 4px rgba(58,215,255,.85); }
.stealcard.skin-fantasma { box-shadow: 0 0 18px 4px rgba(184,245,200,.85); opacity: .9; }
.stealcard.skin-mapache { box-shadow: 0 0 16px 3px rgba(201,166,107,.85); }
.stealcard.skin-bruja { box-shadow: 0 0 18px 4px rgba(176,122,255,.9); }
.stealhand.skin-ninja { animation: spin .3s linear infinite; }
.stealhand.skin-vampiro, .stealhand.skin-fantasma { animation: flap .2s ease-in-out infinite alternate; }
.skinburst { position: fixed; z-index: 65; width: 0; height: 0; pointer-events: none; }
.skinburst b { position: absolute; left: -12px; top: -12px; font-size: 22px; line-height: 1; animation: rpOut 1.1s ease-out forwards; }
@media (max-width: 760px) { .skinburst b { font-size: 17px; } }
/* el 7: el ladrón grande se viste como el que tiró */
.robberfx .rs-deco { position: absolute; top: 14%; font-size: 52px; animation: rsDeco 1.6s ease-in-out infinite alternate; filter: drop-shadow(0 6px 10px rgba(0,0,0,.5)); }
@keyframes rsDeco { from { transform: translateY(0) rotate(-10deg); } to { transform: translateY(-14px) rotate(10deg); } }
.robberfx.rs-pirata .bolt { fill: #bfe6ff; filter: drop-shadow(0 0 18px #4db8ff); }
.robberfx.rs-ninja .bolt { fill: #ff8a8a; filter: drop-shadow(0 0 18px #ff2a2a); }
.robberfx.rs-vampiro { background: radial-gradient(circle, rgba(120,0,20,.6), rgba(10,0,5,.9)); }
.robberfx.rs-vampiro .bolt { fill: #ff4d6a; filter: drop-shadow(0 0 18px #c0002a); }
.robberfx.rs-robot .bolt { fill: #aef2ff; filter: drop-shadow(0 0 18px #3ad7ff); }
.robberfx.rs-fantasma { background: radial-gradient(circle, rgba(30,80,50,.55), rgba(0,10,5,.88)); }
.robberfx.rs-fantasma .bolt { fill: #c8ffd9; filter: drop-shadow(0 0 18px #6dff9e); }
.robberfx.rs-mapache .bolt { fill: #ffe0a8; filter: drop-shadow(0 0 18px #c9a66b); }
.robberfx.rs-bruja { background: radial-gradient(circle, rgba(70,20,110,.6), rgba(5,0,15,.9)); }
.robberfx.rs-bruja .bolt { fill: #e2c4ff; filter: drop-shadow(0 0 18px #9b4dff); }
@media (max-width: 760px) { .robberfx .rs-deco { font-size: 36px; } }
@media (prefers-reduced-motion: reduce) { .rp b, .rp i, .rp-fly b, .rs-deco, .stealhand { animation-duration: .01s !important; } }
