/* Dice: single lit arena, target controls in a compact two-row tray. */
.game-layout:has(.game-scene-dice){max-width:1060px;margin:14px auto;gap:12px}
.game-layout:has(.game-scene-dice)>.panel:first-child{border-color:#4a5837;background:linear-gradient(150deg,#19221a,#0d1210)}
.game-scene-dice{position:relative;overflow:hidden!important;border:1px solid #738348!important;border-radius:14px!important;background:radial-gradient(ellipse at 50% 58%,#3c5631,#17231c 53%,#090e0c)!important;box-shadow:inset 0 0 65px #0008,0 20px 38px #0008}
.game-scene-dice:after{content:"";position:absolute;inset:auto 12% 17%;height:22px;border-radius:50%;background:#b8f5421b;filter:blur(18px)}
.game-scene-dice .dice-cube{width:clamp(100px,14vw,148px);height:clamp(100px,14vw,148px);border-radius:24px;border-color:#efffa2;box-shadow:-18px 20px 0 #273a24,0 32px 48px #000b,inset 8px 8px 18px #f3ffb866,inset -12px -16px 24px #2a4b2677}
.game-layout:has(.game-scene-dice) form{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:13px}
.game-layout:has(.game-scene-dice) form button{min-height:48px}
@media(max-width:700px){.game-layout:has(.game-scene-dice) form{grid-template-columns:repeat(2,minmax(0,1fr))}.game-layout:has(.game-scene-dice) form button{grid-column:1/-1}}
@keyframes dice-tumble{0%{transform:translate3d(0,0,0) rotate(0) scale(1)}18%{transform:translate3d(-34px,-36px,0) rotate(-95deg) scale(1.05)}42%{transform:translate3d(25px,-20px,0) rotate(150deg) scale(.96)}68%{transform:translate3d(-13px,-7px,0) rotate(265deg) scale(1.02)}86%{transform:translate3d(7px,0,0) rotate(340deg)}100%{transform:translate3d(0,0,0) rotate(360deg)}}
.game-scene-dice.is-rolling .dice-cube{animation:dice-tumble 1.15s cubic-bezier(.3,.02,.25,1) infinite;filter:brightness(1.22);}
@media(prefers-reduced-motion:reduce){.game-scene-dice.is-rolling .dice-cube{animation:none}}
