/* 2026-10-07 Dobókocka-tálca animáció + harci kockák képes változata */
.mx-dice-panel .btn-row{gap:8px}
.mx-dice-pick{display:inline-flex;flex-direction:column;align-items:center;gap:2px;padding:6px 8px!important;min-width:64px}
.mx-dice-pick .mx-die{width:44px;height:44px;font-size:15px}
.mx-dice-pick>span{font-size:12px;opacity:.8}
.mx-dice-count{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:8px 0 4px}
.mx-dice-count>span{font-size:13px;opacity:.75}
.mx-dice-count .on{background:var(--accent,#b5893a);color:#1b140c;border-color:var(--accent,#b5893a)}
.mx-dice-stage{min-height:120px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:14px;margin-top:6px;
  border-radius:12px;background:radial-gradient(ellipse at 50% 40%,#3d5a3a 0%,#22341f 70%,#17220f 100%);
  box-shadow:inset 0 0 0 6px #5b3d22,inset 0 0 0 8px #3a2614,inset 0 6px 18px rgba(0,0,0,.55);color:#f2e6c8}
.mx-dice-stage.idle{font-size:14px;opacity:.9;text-align:center}
.mx-dice-row{display:flex;flex-wrap:wrap;gap:14px;justify-content:center}
.mx-dice-sum{font-size:16px;min-height:1.4em;text-shadow:0 1px 2px #000}
.mx-dice-sum strong{font-size:30px;color:#ffd978;margin-left:4px}

.mx-die{position:relative;width:76px;height:76px;flex:none;display:flex;align-items:center;justify-content:center;
  border-radius:14px;background:radial-gradient(circle at 32% 28%,#f4e7c2,#c9a85e 70%,#9c7a38);border:2px solid #7a5d2a;
  box-shadow:inset 0 2px 0 rgba(255,255,255,.35),0 4px 10px rgba(0,0,0,.45);font-size:28px;color:#2a1d0e}
.mx-die img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none}
.mx-die:has(img){background:none;border:0;box-shadow:none}
.mx-die b{position:relative;z-index:1;font-family:var(--font-display,serif);text-shadow:0 1px 0 rgba(255,255,255,.4)}
.mx-die:has(img) b{color:#fff6dc;text-shadow:0 0 3px #000,0 1px 2px #000,0 0 8px rgba(0,0,0,.7)}
.mx-die.t4 b{transform:translateY(12%)}
.mx-die.pips b{opacity:0}
.mx-die i{position:absolute;left:0;right:0;bottom:4px;text-align:center;font-size:10px;font-style:normal;opacity:.55;z-index:1}
.mx-die:has(img) i,.mx-dice-pick .mx-die i{display:none}
.mx-die.t6:not(:has(img)){border-radius:10px}
.mx-die.t20:not(:has(img)),.mx-die.t12:not(:has(img)){border-radius:50%}
.mx-die.t100:not(:has(img)){background:radial-gradient(circle at 32% 28%,#d9b48a,#8a5a2b 70%,#5d3a18)}
.mx-die.rolling{animation:mx-die-shake .9s ease-in-out}
.mx-die.landed{animation:mx-die-land .35s ease-out}
.mx-die.max.landed{filter:drop-shadow(0 0 10px #ffd35a)}
.mx-die.min.landed{filter:drop-shadow(0 0 10px #ff5a4a)}
@keyframes mx-die-shake{
  0%{transform:translate(0,0) rotate(0)}10%{transform:translate(-14px,-10px) rotate(-35deg)}20%{transform:translate(12px,-18px) rotate(40deg)}
  30%{transform:translate(-10px,6px) rotate(-60deg)}40%{transform:translate(14px,-8px) rotate(80deg)}50%{transform:translate(-8px,-14px) rotate(-30deg)}
  60%{transform:translate(10px,4px) rotate(120deg)}70%{transform:translate(-6px,-8px) rotate(200deg)}80%{transform:translate(4px,2px) rotate(280deg)}
  90%{transform:translate(-2px,-2px) rotate(340deg)}100%{transform:translate(0,0) rotate(360deg)}}
@keyframes mx-die-land{0%{transform:scale(1.25)}60%{transform:scale(.92)}100%{transform:scale(1)}}

/* harci kocka-felugró: rázás + (ha van kép) képes kocka */
.combat-dice-overlay .die{animation:mx-die-shake .6s ease-in-out}
body.mx-dice-img .die{background:center/contain no-repeat;border:0;box-shadow:none;border-radius:0;width:3.2rem;height:3.2rem;
  color:#fff6dc;text-shadow:0 0 3px #000,0 1px 2px #000}
body.mx-dice-img .die-vilagos{background-image:url(/static/kockak/k10_vilagos.png?v=1);color:#2a1d0e;text-shadow:0 1px 0 rgba(255,255,255,.5)}
body.mx-dice-img .die-sotet{background-image:url(/static/kockak/k10_sotet.png?v=1)}
body.mx-dice-img .combat-dice-overlay .die{width:5rem;height:5rem}
@media (max-width:600px){.mx-die{width:60px;height:60px;font-size:22px}.mx-dice-pick{min-width:54px}.mx-dice-pick .mx-die{width:38px;height:38px}}
