/* DICE V4 — COMMON SHELL CLEANUP V1
   Shared Header / Navigation / Wallet / Right Panel / Help / Sound / Mobile Shell
   are owned by game-common-v4.css, game-shell-v5.css and ma-ui-core-v1.css.
   This file owns DICE center gameplay only.
*/
:root{--bg:#080808;--panel:#10100f;--panel2:#141310;--line:#36332c;--line2:#5a503b;--ivory:#f1ecdf;--muted:#9e998e;--gold:#b99a55;--gold2:#d8bd78;--green:#62c98b;--red:#d26c6c;--serif:Georgia,"Times New Roman",serif;--sans:Inter,"Pretendard","Noto Sans KR",Arial,sans-serif}
*{box-sizing:border-box}.hidden{display:none!important}body.diceV4{margin:0;min-height:100vh;background:radial-gradient(circle at 50% -10%,#242019 0,transparent 34%),#080808;color:#f5f2eb;font-family:var(--sans);overflow-x:hidden}a{text-decoration:none;color:inherit}button{font:inherit}.panelInner{padding:12px;border:1px solid #3a352c;border-radius:14px;background:#0e0e0c}.diceV4 .diceStage{border:1px solid #5b4d2e;background:radial-gradient(circle at 50% 35%,#0c2d20,#071610 62%,#080908);border-radius:14px;min-height:270px}.diceV4 .diceCube{filter:saturate(.75)}.flowHint{display:flex;align-items:center;justify-content:center;gap:10px;padding:12px 8px;color:#9d978e;font-size:9px}.flowHint span{color:#c5a85f;font-weight:900}.flowHint b{color:#ded8cb}.flowHint i{font-style:normal;color:#5e5749}.betChoices{display:grid;grid-template-columns:1fr 1fr;gap:8px}.diceV4 .parityCard{position:relative;min-height:105px;padding:16px;border-radius:12px;border:1px solid #3c392f;text-align:left;color:#fff;background:#111}.diceV4 .oddCard{background:linear-gradient(145deg,#102441,#122b4e)}.diceV4 .evenCard{background:linear-gradient(145deg,#4a1116,#65171f)}.diceV4 .parityCard.selected{outline:2px solid #d8b85f;box-shadow:0 0 0 4px #d8b85f14}.parityCard span{color:#c1a458;font-size:8px;letter-spacing:2px}.parityCard b{display:block;font-size:19px;margin:5px 0}.parityCard small{font-size:9px;color:#c6c0b5}.parityCard em{position:absolute;right:14px;top:14px;color:#f5d267;font-style:normal;font-weight:900}.diceStats{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin-top:8px}.diceStats>div{padding:10px;border:1px solid #302d27;border-radius:9px;background:#10100f}.diceStats span{display:block;color:#77736c;font-size:7px;margin-bottom:5px}.diceStats b{font-size:12px}.chipRow{display:flex!important;justify-content:center!important;gap:8px!important;padding:13px!important;margin-top:8px!important;border:1px solid #36322a!important;border-radius:10px!important;background:linear-gradient(90deg,#e9e1d3,#f5f0e5,#e9e1d3)!important;overflow:auto}.chipBtn{min-width:52px;height:48px;border-radius:12px;border:1px solid #8b8171;background:#f1eadf;color:#111;font-weight:900}.chipBtn:nth-child(even){background:#111;color:#f1eadf;border-color:#48443c}.chipBtn.active{box-shadow:0 0 0 3px #b99a5530,0 0 18px #b99a5540;border-color:#b99a55}.actionRow{display:grid;grid-template-columns:1fr 1fr 1.8fr;gap:7px;margin-top:8px}.secondaryBtn,
.primaryAction{min-height:46px;border-radius:9px;font-weight:900}.secondaryBtn{border:1px solid #39352d;background:#11110f;color:#aaa49a}.primaryAction{border:1px solid #d4c39d;background:linear-gradient(180deg,#f7f2e7,#dfd6c4);color:#111}.primaryAction:disabled,
.secondaryBtn:disabled{opacity:.38}.diceMsg{text-align:center;margin-top:10px;font-size:10px;color:#d8d1c4}.diceMsg.win{color:var(--green)}.diceMsg.lose{color:var(--red)}.minHint{text-align:center;margin-top:4px;font-size:8px;color:#b99a55}.liveDot{color:var(--green)!important}.feedSection{min-height:0;display:flex;flex-direction:column}

@media(max-width:620px){.panelInner{padding:9px;border-radius:12px}.diceV4 .diceStage{min-height:230px}.flowHint{gap:5px;flex-wrap:wrap}.betChoices{grid-template-columns:1fr}.diceStats{grid-template-columns:1fr 1fr}.chipRow{justify-content:flex-start!important;padding:10px!important}.chipBtn{min-width:50px;height:46px}.actionRow{grid-template-columns:1fr 1fr}.primaryAction{grid-column:1/-1;order:-1;min-height:52px}}


/* === MA | HEAVEN DICE V4.1 — HOME GRID + CASINO CHIP STANDARD === */
/* Header values intentionally mirror HOME V4 */

/* Main desktop columns intentionally mirror HOME V4 */

.diceV4 .noticeSection{padding-bottom:14px;border-bottom:1px solid #2c2924}.diceV4 .feedSection{padding-top:14px;margin-top:0;border-top:0}

/* Casino chip standard */
.diceV4 .chipRow{display:flex!important;align-items:center;justify-content:center!important;gap:14px!important;padding:16px 18px!important;min-height:84px!important;background:linear-gradient(135deg,#f2ecdf,#e2d8c8 48%,#f6f2e9)!important;border:1px solid #b9ab91!important;border-radius:14px!important;box-shadow:inset 0 1px 0 #fff,0 10px 26px #0005!important}
.diceV4 .chipBtn{position:relative;flex:0 0 62px;width:62px;min-width:62px;height:62px;border-radius:50%;border:2px solid #191919;background:radial-gradient(circle at 50% 50%,#f4efe5 0 42%,#111 43% 57%,#f4efe5 58% 66%,#111 67% 100%);color:#111;font-weight:950;font-size:13px;box-shadow:0 5px 10px #0006,inset 0 0 0 2px #e6ddcc;overflow:hidden;transition:.15s transform,.15s box-shadow,.15s filter}
.diceV4 .chipBtn::before{content:"";position:absolute;inset:5px;border-radius:50%;background:repeating-conic-gradient(from 0deg,#f5efe3 0 7deg,#111 7deg 21deg,#f5efe3 21deg 28deg);-webkit-mask:radial-gradient(circle,transparent 0 68%,#000 69% 100%);mask:radial-gradient(circle,transparent 0 68%,#000 69% 100%);pointer-events:none}
.diceV4 .chipBtn::after{content:"";position:absolute;inset:15px;border-radius:50%;background:#f1eadf;border:1px solid #8d816f;z-index:-1}
.diceV4 .chipBtn:nth-child(even){background:radial-gradient(circle at 50% 50%,#111 0 42%,#f1eadf 43% 57%,#111 58% 66%,#f1eadf 67% 100%);color:#f4efe5;border-color:#ded5c5;box-shadow:0 5px 10px #0007,inset 0 0 0 2px #262626}
.diceV4 .chipBtn:nth-child(even)::after{background:#101010;border-color:#6e675c}
.diceV4 .chipBtn:hover{transform:translateY(-3px)}.diceV4 .chipBtn.active{transform:translateY(-4px) scale(1.05);box-shadow:0 0 0 3px #c5a75a,0 8px 18px #0007,0 0 24px #c5a75a55;border-color:#e4c874}

/* Chips placed on ODD / EVEN */
.diceV4 .parityCard{overflow:visible;isolation:isolate;padding-right:118px;min-height:126px}.diceV4 .parityCard>span,
.diceV4 .parityCard>b,
.diceV4 .parityCard>small,
.diceV4 .parityCard>em{position:relative;z-index:2}.diceV4 .parityCard em{position:absolute;right:14px;top:14px}
.diceV4 .betChipStack{position:absolute;right:24px;bottom:12px;width:78px;height:70px;pointer-events:none;z-index:5}.diceV4 .placedChip{--chip-i:0;position:absolute;left:50%;bottom:calc(var(--chip-i)*7px);transform:translateX(-50%) rotate(calc((var(--chip-i) - 2)*2deg));width:58px;height:58px;border-radius:50%;display:grid;place-items:center;font-size:11px;font-weight:950;box-shadow:0 5px 12px #0009;border:2px solid #171717;background:radial-gradient(circle,#f2eadf 0 42%,#111 43% 57%,#f2eadf 58% 66%,#111 67% 100%);color:#111}.diceV4 .placedChip::before{content:"";position:absolute;inset:4px;border-radius:50%;background:repeating-conic-gradient(#f4eee2 0 7deg,#111 7deg 21deg,#f4eee2 21deg 28deg);-webkit-mask:radial-gradient(circle,transparent 0 69%,#000 70%);mask:radial-gradient(circle,transparent 0 69%,#000 70%)}.diceV4 .placedChip b{position:relative;z-index:2;background:#f1eadf;border:1px solid #8a806f;border-radius:50%;width:32px;height:32px;display:grid;place-items:center}.diceV4 .placedChip.chipDark{background:radial-gradient(circle,#111 0 42%,#f2eadf 43% 57%,#111 58% 66%,#f2eadf 67% 100%);color:#f2eadf;border-color:#ded4c2}.diceV4 .placedChip.chipDark b{background:#111;border-color:#635d54}.diceV4 .chipMore{position:absolute;right:-8px;top:-4px;min-width:25px;height:25px;padding:0 6px;border-radius:99px;display:grid;place-items:center;background:#c7a95d;color:#111;font-size:9px;font-weight:950;border:1px solid #f0d589;box-shadow:0 3px 9px #0008}.diceV4 .parityCard.selected .betChipStack.hasBet{filter:drop-shadow(0 0 8px #e1c26744)}


@media(max-width:620px){
 .diceV4 .parityCard{padding-right:96px;min-height:118px}.diceV4 .betChipStack{right:12px;bottom:12px;transform:scale(.82);transform-origin:right bottom}.diceV4 .chipRow{justify-content:flex-start!important;gap:10px!important;padding:13px 12px!important;min-height:78px!important}.diceV4 .chipBtn{flex-basis:56px;width:56px;min-width:56px;height:56px}.diceV4 .panelInner{padding:9px}
}

/* DICE content starts only after shared chrome */


body.diceV4.gameCommonV4 .parityCard{overflow:hidden}

@media(max-width:1000px){
  body.diceV4.gameCommonV4 .accountName{display:none!important}
}

/* DICE V4 — CENTER GAME STAGE */
/* Header POINT and help button use the same panel language as shared chrome. */

/* Restore the real 3D dice renderer. */
body.diceV4 .diceStage{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  min-height:270px;
}
body.diceV4 .stageGlow{
  position:absolute;
  width:360px;
  height:120px;
  left:50%;
  bottom:18px;
  transform:translateX(-50%);
  border-radius:50%;
  background:#d3aa4d12;
  filter:blur(30px);
  pointer-events:none;
}
body.diceV4 .dicePair{
  position:relative;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:72px;
  perspective:1000px;
  min-height:126px;
}
body.diceV4 .diceScene{
  width:112px;
  height:112px;
  perspective:900px;
  flex:0 0 112px;
  position:relative;
  transform-style:preserve-3d;
  will-change:transform;
  z-index:2;
}
body.diceV4 .diceScene::after{
  content:"";
  position:absolute;
  left:12%;right:12%;bottom:-22px;
  height:20px;
  border-radius:50%;
  background:radial-gradient(ellipse at center,#000b 0%,#0007 38%,transparent 72%);
  filter:blur(4px);
  opacity:.62;
  transform:scale(1);
  pointer-events:none;
  z-index:-1;
}
body.diceV4 .diceScene.throwA{animation:maDiceTravelA 2.78s cubic-bezier(.18,.72,.22,1) both}
body.diceV4 .diceScene.throwB{animation:maDiceTravelB 2.78s cubic-bezier(.18,.72,.22,1) both}
body.diceV4 .diceScene.throwA::after,
body.diceV4 .diceScene.throwB::after{animation:maDiceShadow 2.78s ease-out both}
body.diceV4 .diceCube{
  width:112px;
  height:112px;
  position:relative;
  transform-style:preserve-3d;
  transition:transform .46s cubic-bezier(.18,.82,.24,1);
  filter:saturate(.86) drop-shadow(0 15px 18px #0009);
  will-change:transform;
  transform-origin:50% 50%;
}
body.diceV4 .diceCube .face{
  position:absolute;
  inset:2px;
  width:108px;
  height:108px;
  display:grid;
  place-items:center;
  border-radius:18px;
  overflow:hidden;
  backface-visibility:hidden;
  -webkit-backface-visibility:hidden;
  background:linear-gradient(145deg,#fffdf7 0%,#f4efe4 48%,#d6cebd 100%);
  border:2px solid #a98a44;
  box-shadow:inset -8px -8px 16px #8d877244,inset 5px 5px 12px #fff9,8px 14px 25px #000b;
  color:#131313;
  font-family:"Apple Symbols","Segoe UI Symbol","Noto Sans Symbols 2",sans-serif;
  font-size:70px;
  line-height:1;
}
body.diceV4 .diceCube .face1{transform:rotateY(0deg) translateZ(56px)}
body.diceV4 .diceCube .face6{transform:rotateY(180deg) translateZ(56px)}
body.diceV4 .diceCube .face3{transform:rotateY(90deg) translateZ(56px)}
body.diceV4 .diceCube .face4{transform:rotateY(-90deg) translateZ(56px)}
body.diceV4 .diceCube .face2{transform:rotateX(90deg) translateZ(56px)}
body.diceV4 .diceCube .face5{transform:rotateX(-90deg) translateZ(56px)}
body.diceV4 .diceCube.show-1{transform:rotateX(0deg) rotateY(0deg) rotateZ(0deg)}
body.diceV4 .diceCube.show-6{transform:rotateY(180deg) rotateZ(0deg)}
body.diceV4 .diceCube.show-3{transform:rotateY(-90deg) rotateZ(0deg)}
body.diceV4 .diceCube.show-4{transform:rotateY(90deg) rotateZ(0deg)}
body.diceV4 .diceCube.show-2{transform:rotateX(-90deg) rotateZ(0deg)}
body.diceV4 .diceCube.show-5{transform:rotateX(90deg) rotateZ(0deg)}
body.diceV4 .diceCube.rolling.rollA{animation:maDiceTumbleA 2.78s linear both;transition:none}
body.diceV4 .diceCube.rolling.rollB{animation:maDiceTumbleB 2.78s linear both;transition:none}
@keyframes maDiceTravelA{
  0%{transform:translate3d(-150px,-115px,90px) rotateZ(-9deg) scale(.70)}
  13%{transform:translate3d(-108px,-48px,62px) rotateZ(-5deg) scale(.84)}
  28%{transform:translate3d(-55px,12px,7px) rotateZ(2deg) scale(1.03)}
  39%{transform:translate3d(-22px,-50px,42px) rotateZ(4deg) scale(.98)}
  55%{transform:translate3d(28px,7px,5px) rotateZ(-2deg) scale(1.01)}
  67%{transform:translate3d(42px,-27px,24px) rotateZ(-3deg) scale(.99)}
  80%{transform:translate3d(20px,3px,3px) rotateZ(1deg) scale(1)}
  90%{transform:translate3d(8px,-10px,9px) rotateZ(0deg) scale(1)}
  100%{transform:translate3d(0,0,0) rotateZ(0deg) scale(1)}
}
@keyframes maDiceTravelB{
  0%{transform:translate3d(150px,-125px,96px) rotateZ(10deg) scale(.68)}
  14%{transform:translate3d(112px,-43px,66px) rotateZ(7deg) scale(.83)}
  30%{transform:translate3d(58px,15px,7px) rotateZ(-2deg) scale(1.03)}
  42%{transform:translate3d(25px,-56px,45px) rotateZ(-5deg) scale(.98)}
  57%{transform:translate3d(-25px,8px,5px) rotateZ(2deg) scale(1.01)}
  70%{transform:translate3d(-38px,-25px,22px) rotateZ(3deg) scale(.99)}
  82%{transform:translate3d(-18px,4px,3px) rotateZ(-1deg) scale(1)}
  91%{transform:translate3d(-7px,-9px,8px) rotateZ(0deg) scale(1)}
  100%{transform:translate3d(0,0,0) rotateZ(0deg) scale(1)}
}
@keyframes maDiceTumbleA{
  0%{transform:rotateX(18deg) rotateY(12deg) rotateZ(0deg)}
  18%{transform:rotateX(410deg) rotateY(300deg) rotateZ(145deg)}
  36%{transform:rotateX(825deg) rotateY(690deg) rotateZ(330deg)}
  56%{transform:rotateX(1250deg) rotateY(1030deg) rotateZ(520deg)}
  74%{transform:rotateX(1570deg) rotateY(1340deg) rotateZ(680deg)}
  90%{transform:rotateX(1780deg) rotateY(1530deg) rotateZ(790deg)}
  100%{transform:rotateX(1900deg) rotateY(1660deg) rotateZ(860deg)}
}
@keyframes maDiceTumbleB{
  0%{transform:rotateX(-16deg) rotateY(-10deg) rotateZ(0deg)}
  18%{transform:rotateX(-350deg) rotateY(420deg) rotateZ(-160deg)}
  36%{transform:rotateX(-760deg) rotateY(810deg) rotateZ(-360deg)}
  56%{transform:rotateX(-1160deg) rotateY(1190deg) rotateZ(-545deg)}
  74%{transform:rotateX(-1490deg) rotateY(1470deg) rotateZ(-710deg)}
  90%{transform:rotateX(-1710deg) rotateY(1660deg) rotateZ(-815deg)}
  100%{transform:rotateX(-1830deg) rotateY(1780deg) rotateZ(-900deg)}
}
@keyframes maDiceShadow{
  0%{opacity:.12;transform:scale(.48);filter:blur(8px)}
  28%{opacity:.72;transform:scale(1.12);filter:blur(3px)}
  39%{opacity:.24;transform:scale(.68);filter:blur(6px)}
  55%{opacity:.66;transform:scale(1.06);filter:blur(3px)}
  67%{opacity:.34;transform:scale(.79);filter:blur(5px)}
  80%{opacity:.62;transform:scale(1.02);filter:blur(3px)}
  90%{opacity:.48;transform:scale(.91);filter:blur(4px)}
  100%{opacity:.62;transform:scale(1);filter:blur(4px)}
}
@media (prefers-reduced-motion:reduce){
  body.diceV4 .diceScene.throwA,
body.diceV4 .diceScene.throwB,
body.diceV4 .diceCube.rolling.rollA,
body.diceV4 .diceCube.rolling.rollB,
body.diceV4 .diceScene.throwA::after,
body.diceV4 .diceScene.throwB::after{animation-duration:.35s!important}
}
body.diceV4 .diceResult{position:relative;z-index:3;text-align:center;margin-top:30px}
body.diceV4 .diceResult span{display:block;color:#d3b15d;font-size:11px;letter-spacing:.18em}
body.diceV4 .diceResult strong{display:block;color:#fff;font-size:38px;line-height:1.05}
body.diceV4 .diceResult small{display:block;color:#a7a7a7;margin-top:5px;font-size:10px}

@media(max-width:820px){
  
  
  
  body.diceV4 .dicePair{gap:38px}
  body.diceV4 .diceScene,
body.diceV4 .diceCube{width:88px;height:88px;flex-basis:88px}
  body.diceV4 .diceCube .face{width:84px;height:84px;font-size:54px;border-radius:14px}
  body.diceV4 .diceCube .face1{transform:rotateY(0deg) translateZ(44px)}
  body.diceV4 .diceCube .face6{transform:rotateY(180deg) translateZ(44px)}
  body.diceV4 .diceCube .face3{transform:rotateY(90deg) translateZ(44px)}
  body.diceV4 .diceCube .face4{transform:rotateY(-90deg) translateZ(44px)}
  body.diceV4 .diceCube .face2{transform:rotateX(90deg) translateZ(44px)}
  body.diceV4 .diceCube .face5{transform:rotateX(-90deg) translateZ(44px)}
}
@media(max-width:430px){
  body.diceV4 .dicePair{gap:24px}
  body.diceV4 .diceScene,
body.diceV4 .diceCube{width:76px;height:76px;flex-basis:76px}
  body.diceV4 .diceCube .face{width:72px;height:72px;font-size:46px}
  body.diceV4 .diceCube .face1{transform:rotateY(0deg) translateZ(38px)}
  body.diceV4 .diceCube .face6{transform:rotateY(180deg) translateZ(38px)}
  body.diceV4 .diceCube .face3{transform:rotateY(90deg) translateZ(38px)}
  body.diceV4 .diceCube .face4{transform:rotateY(-90deg) translateZ(38px)}
  body.diceV4 .diceCube .face2{transform:rotateX(90deg) translateZ(38px)}
  body.diceV4 .diceCube .face5{transform:rotateX(-90deg) translateZ(38px)}
}

/* =========================================================
   V4.6 TRUE CUBE DICE — six physical faces + pip rendering
   ========================================================= */
body.diceV4 .dicePair{perspective:1350px;perspective-origin:50% 42%;}
body.diceV4 .diceScene{perspective:1050px;transform-style:preserve-3d;}
body.diceV4 .diceCube{
  transform-style:preserve-3d;
  -webkit-transform-style:preserve-3d;
  filter:drop-shadow(0 18px 20px #000a);
}
body.diceV4 .diceCube .face{
  font-size:0!important;
  color:transparent!important;
  backface-visibility:hidden;
  -webkit-backface-visibility:hidden;
  background-color:#f7f1e5;
  background-repeat:no-repeat;
  border:2px solid #b89b5a;
  box-shadow:
    inset 8px 8px 16px #ffffffb8,
    inset -10px -10px 18px #8e856f55,
    inset 0 0 0 5px #fff8,
    0 0 0 1px #1b1813;
}
/* Real pip layouts — no Unicode dice glyphs. */
body.diceV4 .diceCube .face1{background-image:radial-gradient(circle at 50% 50%,#111 0 9%,transparent 10%)}
body.diceV4 .diceCube .face2{background-image:radial-gradient(circle at 29% 29%,#111 0 8%,transparent 9%),radial-gradient(circle at 71% 71%,#111 0 8%,transparent 9%)}
body.diceV4 .diceCube .face3{background-image:radial-gradient(circle at 28% 28%,#111 0 8%,transparent 9%),radial-gradient(circle at 50% 50%,#111 0 8%,transparent 9%),radial-gradient(circle at 72% 72%,#111 0 8%,transparent 9%)}
body.diceV4 .diceCube .face4{background-image:radial-gradient(circle at 29% 29%,#111 0 8%,transparent 9%),radial-gradient(circle at 71% 29%,#111 0 8%,transparent 9%),radial-gradient(circle at 29% 71%,#111 0 8%,transparent 9%),radial-gradient(circle at 71% 71%,#111 0 8%,transparent 9%)}
body.diceV4 .diceCube .face5{background-image:radial-gradient(circle at 29% 29%,#111 0 8%,transparent 9%),radial-gradient(circle at 71% 29%,#111 0 8%,transparent 9%),radial-gradient(circle at 50% 50%,#111 0 8%,transparent 9%),radial-gradient(circle at 29% 71%,#111 0 8%,transparent 9%),radial-gradient(circle at 71% 71%,#111 0 8%,transparent 9%)}
body.diceV4 .diceCube .face6{background-image:radial-gradient(circle at 29% 24%,#111 0 7.5%,transparent 8.5%),radial-gradient(circle at 71% 24%,#111 0 7.5%,transparent 8.5%),radial-gradient(circle at 29% 50%,#111 0 7.5%,transparent 8.5%),radial-gradient(circle at 71% 50%,#111 0 7.5%,transparent 8.5%),radial-gradient(circle at 29% 76%,#111 0 7.5%,transparent 8.5%),radial-gradient(circle at 71% 76%,#111 0 7.5%,transparent 8.5%)}

/* Slight perspective at rest so the dice never look like flat cards. */
body.diceV4 .diceCube.show-1{transform:rotateX(-11deg) rotateY(16deg) rotateZ(-2deg)}
body.diceV4 .diceCube.show-6{transform:rotateX(-11deg) rotateY(196deg) rotateZ(2deg)}
body.diceV4 .diceCube.show-3{transform:rotateX(-10deg) rotateY(-74deg) rotateZ(-2deg)}
body.diceV4 .diceCube.show-4{transform:rotateX(-10deg) rotateY(106deg) rotateZ(2deg)}
body.diceV4 .diceCube.show-2{transform:rotateX(-101deg) rotateY(14deg) rotateZ(-2deg)}
body.diceV4 .diceCube.show-5{transform:rotateX(79deg) rotateY(14deg) rotateZ(2deg)}

/* Never travel through long edge-on poses: every stop keeps compound XYZ rotation. */
body.diceV4 .diceCube.rolling.rollA{animation:maDiceTrueCubeA 2.92s cubic-bezier(.13,.68,.18,1) both;transition:none}
body.diceV4 .diceCube.rolling.rollB{animation:maDiceTrueCubeB 2.92s cubic-bezier(.13,.68,.18,1) both;transition:none}
@keyframes maDiceTrueCubeA{
  0%{transform:rotateX(27deg) rotateY(38deg) rotateZ(12deg)}
  12%{transform:rotateX(322deg) rotateY(247deg) rotateZ(143deg)}
  27%{transform:rotateX(681deg) rotateY(574deg) rotateZ(311deg)}
  43%{transform:rotateX(1037deg) rotateY(889deg) rotateZ(487deg)}
  59%{transform:rotateX(1388deg) rotateY(1207deg) rotateZ(661deg)}
  74%{transform:rotateX(1659deg) rotateY(1492deg) rotateZ(811deg)}
  87%{transform:rotateX(1853deg) rotateY(1697deg) rotateZ(923deg)}
  100%{transform:rotateX(2047deg) rotateY(1891deg) rotateZ(1037deg)}
}
@keyframes maDiceTrueCubeB{
  0%{transform:rotateX(-31deg) rotateY(42deg) rotateZ(-16deg)}
  13%{transform:rotateX(-287deg) rotateY(316deg) rotateZ(-151deg)}
  29%{transform:rotateX(-638deg) rotateY(653deg) rotateZ(-327deg)}
  45%{transform:rotateX(-983deg) rotateY(974deg) rotateZ(-503deg)}
  61%{transform:rotateX(-1327deg) rotateY(1298deg) rotateZ(-681deg)}
  76%{transform:rotateX(-1591deg) rotateY(1587deg) rotateZ(-827deg)}
  89%{transform:rotateX(-1789deg) rotateY(1784deg) rotateZ(-941deg)}
  100%{transform:rotateX(-1981deg) rotateY(1982deg) rotateZ(-1051deg)}
}
/* Stronger rolling path: sideways travel + bounce, not a flat spin. */
body.diceV4 .diceScene.throwA{animation:maDiceTrueTravelA 2.92s cubic-bezier(.15,.72,.22,1) both}
body.diceV4 .diceScene.throwB{animation:maDiceTrueTravelB 2.92s cubic-bezier(.15,.72,.22,1) both}
@keyframes maDiceTrueTravelA{
  0%{transform:translate3d(-125px,-92px,95px) scale(.78)}
  19%{transform:translate3d(-72px,-18px,33px) scale(.95)}
  31%{transform:translate3d(-35px,8px,0) scale(1.03)}
  43%{transform:translate3d(-5px,-42px,40px) scale(.98)}
  58%{transform:translate3d(30px,5px,0) scale(1.02)}
  70%{transform:translate3d(18px,-21px,20px) scale(.99)}
  82%{transform:translate3d(7px,2px,0) scale(1)}
  91%{transform:translate3d(2px,-8px,7px) scale(1)}
  100%{transform:translate3d(0,0,0) scale(1)}
}
@keyframes maDiceTrueTravelB{
  0%{transform:translate3d(125px,-98px,100px) scale(.77)}
  20%{transform:translate3d(76px,-15px,31px) scale(.95)}
  32%{transform:translate3d(38px,8px,0) scale(1.03)}
  45%{transform:translate3d(7px,-45px,42px) scale(.98)}
  60%{transform:translate3d(-29px,5px,0) scale(1.02)}
  72%{transform:translate3d(-17px,-20px,18px) scale(.99)}
  83%{transform:translate3d(-7px,2px,0) scale(1)}
  92%{transform:translate3d(-2px,-8px,7px) scale(1)}
  100%{transform:translate3d(0,0,0) scale(1)}
}

/* =========================================================
   V4.7 ISOLATED TRUE 3D CUBE — independent from legacy diceCube CSS
   ========================================================= */
body.diceV4 .dicePair{
  perspective:1200px;
  perspective-origin:50% 40%;
  gap:72px;
}
body.diceV4 .trueDiceScene{
  --die:112px;
  --half:56px;
  width:var(--die);
  height:var(--die);
  position:relative;
  flex:0 0 var(--die);
  transform-style:preserve-3d;
  -webkit-transform-style:preserve-3d;
  will-change:transform;
}
body.diceV4 .trueDiceScene::after{
  content:"";
  position:absolute;
  left:12%; right:12%; bottom:-24px;
  height:20px;
  border-radius:50%;
  background:radial-gradient(ellipse at center,rgba(0,0,0,.6),rgba(0,0,0,.18) 55%,transparent 76%);
  filter:blur(4px);
  transform-origin:center;
  opacity:.62;
}
body.diceV4 .trueDiceCube{
  width:100%; height:100%;
  position:absolute; inset:0;
  transform-style:preserve-3d;
  -webkit-transform-style:preserve-3d;
  transform-origin:50% 50% 0;
  transition:transform .5s cubic-bezier(.2,.8,.2,1);
  will-change:transform;
}
body.diceV4 .trueDiceFace{
  position:absolute;
  inset:0;
  border-radius:18px;
  border:2px solid #b99a57;
  background-color:#f6f0e3;
  background-repeat:no-repeat;
  backface-visibility:hidden;
  -webkit-backface-visibility:hidden;
  box-shadow:inset 10px 10px 18px rgba(255,255,255,.82),inset -10px -12px 22px rgba(80,69,45,.18),0 0 0 1px rgba(20,17,12,.85);
}
/* six physical cube planes */
body.diceV4 .trueDiceFace.f1{transform:rotateY(0deg) translateZ(var(--half));}
body.diceV4 .trueDiceFace.f6{transform:rotateY(180deg) translateZ(var(--half));}
body.diceV4 .trueDiceFace.f3{transform:rotateY(90deg) translateZ(var(--half));}
body.diceV4 .trueDiceFace.f4{transform:rotateY(-90deg) translateZ(var(--half));}
body.diceV4 .trueDiceFace.f2{transform:rotateX(90deg) translateZ(var(--half));}
body.diceV4 .trueDiceFace.f5{transform:rotateX(-90deg) translateZ(var(--half));}
/* pip layouts */
body.diceV4 .trueDiceFace.f1{background-image:radial-gradient(circle at 50% 50%,#12110f 0 9%,transparent 10%)}
body.diceV4 .trueDiceFace.f2{background-image:radial-gradient(circle at 28% 28%,#12110f 0 8%,transparent 9%),radial-gradient(circle at 72% 72%,#12110f 0 8%,transparent 9%)}
body.diceV4 .trueDiceFace.f3{background-image:radial-gradient(circle at 27% 27%,#12110f 0 8%,transparent 9%),radial-gradient(circle at 50% 50%,#12110f 0 8%,transparent 9%),radial-gradient(circle at 73% 73%,#12110f 0 8%,transparent 9%)}
body.diceV4 .trueDiceFace.f4{background-image:radial-gradient(circle at 29% 29%,#12110f 0 8%,transparent 9%),radial-gradient(circle at 71% 29%,#12110f 0 8%,transparent 9%),radial-gradient(circle at 29% 71%,#12110f 0 8%,transparent 9%),radial-gradient(circle at 71% 71%,#12110f 0 8%,transparent 9%)}
body.diceV4 .trueDiceFace.f5{background-image:radial-gradient(circle at 29% 29%,#12110f 0 8%,transparent 9%),radial-gradient(circle at 71% 29%,#12110f 0 8%,transparent 9%),radial-gradient(circle at 50% 50%,#12110f 0 8%,transparent 9%),radial-gradient(circle at 29% 71%,#12110f 0 8%,transparent 9%),radial-gradient(circle at 71% 71%,#12110f 0 8%,transparent 9%)}
body.diceV4 .trueDiceFace.f6{background-image:radial-gradient(circle at 29% 24%,#12110f 0 7.5%,transparent 8.5%),radial-gradient(circle at 71% 24%,#12110f 0 7.5%,transparent 8.5%),radial-gradient(circle at 29% 50%,#12110f 0 7.5%,transparent 8.5%),radial-gradient(circle at 71% 50%,#12110f 0 7.5%,transparent 8.5%),radial-gradient(circle at 29% 76%,#12110f 0 7.5%,transparent 8.5%),radial-gradient(circle at 71% 76%,#12110f 0 7.5%,transparent 8.5%)}
/* final poses preserve visible top/side depth */
body.diceV4 .trueDiceCube.show-1{transform:rotateX(-17deg) rotateY(23deg) rotateZ(-4deg)}
body.diceV4 .trueDiceCube.show-6{transform:rotateX(-17deg) rotateY(203deg) rotateZ(4deg)}
body.diceV4 .trueDiceCube.show-3{transform:rotateX(-16deg) rotateY(-67deg) rotateZ(-4deg)}
body.diceV4 .trueDiceCube.show-4{transform:rotateX(-16deg) rotateY(113deg) rotateZ(4deg)}
body.diceV4 .trueDiceCube.show-2{transform:rotateX(-107deg) rotateY(22deg) rotateZ(-4deg)}
body.diceV4 .trueDiceCube.show-5{transform:rotateX(73deg) rotateY(22deg) rotateZ(4deg)}
body.diceV4 .trueDiceCube.rolling.rollA{animation:trueCubeSpinA 2.8s cubic-bezier(.16,.72,.2,1) both;transition:none}
body.diceV4 .trueDiceCube.rolling.rollB{animation:trueCubeSpinB 2.8s cubic-bezier(.16,.72,.2,1) both;transition:none}
body.diceV4 .trueDiceScene.throwA{animation:trueCubeTravelA 2.8s cubic-bezier(.16,.72,.2,1) both}
body.diceV4 .trueDiceScene.throwB{animation:trueCubeTravelB 2.8s cubic-bezier(.16,.72,.2,1) both}
body.diceV4 .trueDiceScene.throwA::after,
body.diceV4 .trueDiceScene.throwB::after{animation:trueCubeShadow 2.8s ease-out both}
@keyframes trueCubeSpinA{
  0%{transform:rotateX(24deg) rotateY(35deg) rotateZ(8deg)}
  18%{transform:rotateX(370deg) rotateY(255deg) rotateZ(148deg)}
  39%{transform:rotateX(780deg) rotateY(610deg) rotateZ(334deg)}
  61%{transform:rotateX(1190deg) rotateY(940deg) rotateZ(515deg)}
  80%{transform:rotateX(1515deg) rotateY(1230deg) rotateZ(662deg)}
  100%{transform:rotateX(1760deg) rotateY(1460deg) rotateZ(770deg)}
}
@keyframes trueCubeSpinB{
  0%{transform:rotateX(-28deg) rotateY(42deg) rotateZ(-11deg)}
  19%{transform:rotateX(-335deg) rotateY(330deg) rotateZ(-165deg)}
  40%{transform:rotateX(-730deg) rotateY(690deg) rotateZ(-358deg)}
  62%{transform:rotateX(-1115deg) rotateY(1015deg) rotateZ(-534deg)}
  81%{transform:rotateX(-1420deg) rotateY(1315deg) rotateZ(-685deg)}
  100%{transform:rotateX(-1660deg) rotateY(1530deg) rotateZ(-795deg)}
}
@keyframes trueCubeTravelA{
  0%{transform:translate3d(-125px,-95px,0) scale(.8)}
  27%{transform:translate3d(-45px,8px,0) scale(1.03)}
  40%{transform:translate3d(-8px,-36px,0) scale(.98)}
  60%{transform:translate3d(25px,6px,0) scale(1.01)}
  74%{transform:translate3d(14px,-18px,0) scale(.99)}
  88%{transform:translate3d(5px,2px,0) scale(1)}
  100%{transform:translate3d(0,0,0) scale(1)}
}
@keyframes trueCubeTravelB{
  0%{transform:translate3d(125px,-105px,0) scale(.78)}
  28%{transform:translate3d(48px,10px,0) scale(1.03)}
  41%{transform:translate3d(10px,-40px,0) scale(.98)}
  61%{transform:translate3d(-22px,7px,0) scale(1.01)}
  75%{transform:translate3d(-12px,-17px,0) scale(.99)}
  88%{transform:translate3d(-4px,2px,0) scale(1)}
  100%{transform:translate3d(0,0,0) scale(1)}
}
@keyframes trueCubeShadow{
  0%{opacity:.18;transform:scale(.55)}
  28%{opacity:.72;transform:scale(1.08)}
  42%{opacity:.32;transform:scale(.75)}
  62%{opacity:.66;transform:scale(1.03)}
  76%{opacity:.42;transform:scale(.87)}
  100%{opacity:.62;transform:scale(1)}
}
@media(max-width:820px){body.diceV4 .trueDiceScene{--die:88px;--half:44px}.dicePair{gap:38px}}
@media(max-width:430px){body.diceV4 .trueDiceScene{--die:76px;--half:38px}.dicePair{gap:24px}}
@media(prefers-reduced-motion:reduce){body.diceV4 .trueDiceCube.rolling,
body.diceV4 .trueDiceScene.throwA,
body.diceV4 .trueDiceScene.throwB{animation-duration:.4s!important}}

/* =========================================================
   V4.8 PILI-STYLE SAFE 3-FACE DICE
   Always keeps front + top + side visible. No edge-on sliver.
   ========================================================= */
body.diceV4 .dicePair{
  perspective:1100px!important;
  perspective-origin:50% 42%!important;
  gap:94px!important;
  align-items:center!important;
  justify-content:center!important;
}
body.diceV4 .piliDiceScene{
  --die:108px;
  --half:52px;
  position:relative;
  width:var(--die);
  height:var(--die);
  flex:0 0 var(--die);
  transform-style:preserve-3d;
  will-change:transform;
}
body.diceV4 .piliDiceScene::after{
  content:"";
  position:absolute;
  left:10%;right:10%;bottom:-26px;
  height:20px;
  border-radius:50%;
  background:radial-gradient(ellipse at center,rgba(0,0,0,.62),rgba(0,0,0,.25) 52%,transparent 76%);
  filter:blur(5px);
  opacity:.68;
  transform:scaleX(.9);
  transform-origin:center;
}
body.diceV4 .piliDiceBody{
  position:absolute;
  inset:0;
  transform-style:preserve-3d;
  transform:rotateX(-25deg) rotateY(34deg) rotateZ(-5deg);
  transform-origin:50% 50% 0;
  will-change:transform;
}
body.diceV4 .piliDiceFace{
  position:absolute;
  width:var(--die);
  height:var(--die);
  left:0;top:0;
  border-radius:22px;
  border:2px solid #d9d3c7;
  background-color:#fbf7ef;
  background-repeat:no-repeat;
  backface-visibility:hidden;
  -webkit-backface-visibility:hidden;
  box-shadow:
    inset 12px 12px 18px rgba(255,255,255,.95),
    inset -12px -12px 24px rgba(92,84,68,.18),
    0 0 0 1px rgba(77,68,52,.24);
}
body.diceV4 .piliDiceFace.front{transform:translateZ(var(--half));}
body.diceV4 .piliDiceFace.right{transform:rotateY(90deg) translateZ(var(--half));filter:brightness(.93);}
body.diceV4 .piliDiceFace.top{transform:rotateX(90deg) translateZ(var(--half));filter:brightness(1.03);}
body.diceV4 .piliDiceFace.v1{background-image:radial-gradient(circle at 50% 50%,#0d0d0d 0 9%,transparent 10%)}
body.diceV4 .piliDiceFace.v2{background-image:radial-gradient(circle at 28% 28%,#0d0d0d 0 8%,transparent 9%),radial-gradient(circle at 72% 72%,#0d0d0d 0 8%,transparent 9%)}
body.diceV4 .piliDiceFace.v3{background-image:radial-gradient(circle at 27% 27%,#0d0d0d 0 8%,transparent 9%),radial-gradient(circle at 50% 50%,#0d0d0d 0 8%,transparent 9%),radial-gradient(circle at 73% 73%,#0d0d0d 0 8%,transparent 9%)}
body.diceV4 .piliDiceFace.v4{background-image:radial-gradient(circle at 29% 29%,#0d0d0d 0 8%,transparent 9%),radial-gradient(circle at 71% 29%,#0d0d0d 0 8%,transparent 9%),radial-gradient(circle at 29% 71%,#0d0d0d 0 8%,transparent 9%),radial-gradient(circle at 71% 71%,#0d0d0d 0 8%,transparent 9%)}
body.diceV4 .piliDiceFace.v5{background-image:radial-gradient(circle at 29% 29%,#0d0d0d 0 8%,transparent 9%),radial-gradient(circle at 71% 29%,#0d0d0d 0 8%,transparent 9%),radial-gradient(circle at 50% 50%,#0d0d0d 0 8%,transparent 9%),radial-gradient(circle at 29% 71%,#0d0d0d 0 8%,transparent 9%),radial-gradient(circle at 71% 71%,#0d0d0d 0 8%,transparent 9%)}
body.diceV4 .piliDiceFace.v6{background-image:radial-gradient(circle at 29% 24%,#0d0d0d 0 7.5%,transparent 8.5%),radial-gradient(circle at 71% 24%,#0d0d0d 0 7.5%,transparent 8.5%),radial-gradient(circle at 29% 50%,#0d0d0d 0 7.5%,transparent 8.5%),radial-gradient(circle at 71% 50%,#0d0d0d 0 7.5%,transparent 8.5%),radial-gradient(circle at 29% 76%,#0d0d0d 0 7.5%,transparent 8.5%),radial-gradient(circle at 71% 76%,#0d0d0d 0 7.5%,transparent 8.5%)}

/* Safe tumble: all keyframes stay in a 3/4 view range. */
body.diceV4 .piliDiceBody.rolling.rollA{animation:piliSafeTumbleA 2.86s cubic-bezier(.18,.72,.18,1) both;}
body.diceV4 .piliDiceBody.rolling.rollB{animation:piliSafeTumbleB 2.86s cubic-bezier(.18,.72,.18,1) both;}
body.diceV4 .piliDiceScene.throwA{animation:piliTravelA 2.86s cubic-bezier(.18,.72,.18,1) both;}
body.diceV4 .piliDiceScene.throwB{animation:piliTravelB 2.86s cubic-bezier(.18,.72,.18,1) both;}
body.diceV4 .piliDiceScene.throwA::after,
body.diceV4 .piliDiceScene.throwB::after{animation:piliShadow 2.86s ease-out both;}
body.diceV4 .piliDiceBody.settling{animation:piliSettle .42s cubic-bezier(.2,.9,.25,1) both;}

@keyframes piliSafeTumbleA{
  0%{transform:rotateX(-24deg) rotateY(32deg) rotateZ(-8deg)}
  14%{transform:rotateX(-39deg) rotateY(49deg) rotateZ(18deg)}
  29%{transform:rotateX(-22deg) rotateY(28deg) rotateZ(-20deg)}
  45%{transform:rotateX(-36deg) rotateY(44deg) rotateZ(16deg)}
  61%{transform:rotateX(-26deg) rotateY(30deg) rotateZ(-14deg)}
  77%{transform:rotateX(-34deg) rotateY(46deg) rotateZ(11deg)}
  90%{transform:rotateX(-27deg) rotateY(36deg) rotateZ(-7deg)}
  100%{transform:rotateX(-25deg) rotateY(34deg) rotateZ(-5deg)}
}
@keyframes piliSafeTumbleB{
  0%{transform:rotateX(-31deg) rotateY(-35deg) rotateZ(10deg)}
  15%{transform:rotateX(-23deg) rotateY(-51deg) rotateZ(-18deg)}
  31%{transform:rotateX(-40deg) rotateY(-29deg) rotateZ(21deg)}
  47%{transform:rotateX(-25deg) rotateY(-46deg) rotateZ(-15deg)}
  63%{transform:rotateX(-37deg) rotateY(-31deg) rotateZ(13deg)}
  79%{transform:rotateX(-26deg) rotateY(-43deg) rotateZ(-10deg)}
  91%{transform:rotateX(-30deg) rotateY(-36deg) rotateZ(6deg)}
  100%{transform:rotateX(-27deg) rotateY(-34deg) rotateZ(5deg)}
}
@keyframes piliTravelA{
  0%{transform:translate3d(-118px,-78px,0) scale(.82)}
  24%{transform:translate3d(-54px,8px,0) scale(1.03)}
  38%{transform:translate3d(-22px,-35px,0) scale(.98)}
  56%{transform:translate3d(12px,6px,0) scale(1.01)}
  72%{transform:translate3d(5px,-16px,0) scale(.99)}
  88%{transform:translate3d(2px,2px,0) scale(1)}
  100%{transform:translate3d(0,0,0) scale(1)}
}
@keyframes piliTravelB{
  0%{transform:translate3d(118px,-84px,0) scale(.82)}
  25%{transform:translate3d(54px,9px,0) scale(1.03)}
  39%{transform:translate3d(22px,-37px,0) scale(.98)}
  57%{transform:translate3d(-12px,6px,0) scale(1.01)}
  73%{transform:translate3d(-5px,-16px,0) scale(.99)}
  88%{transform:translate3d(-2px,2px,0) scale(1)}
  100%{transform:translate3d(0,0,0) scale(1)}
}
@keyframes piliShadow{
  0%{opacity:.18;transform:scale(.58)}
  24%{opacity:.76;transform:scale(1.06)}
  39%{opacity:.28;transform:scale(.74)}
  57%{opacity:.68;transform:scale(1.03)}
  73%{opacity:.42;transform:scale(.88)}
  100%{opacity:.68;transform:scale(.95)}
}
@keyframes piliSettle{
  0%{transform:rotateX(-32deg) rotateY(40deg) rotateZ(-8deg) scale(1.03)}
  62%{transform:rotateX(-23deg) rotateY(32deg) rotateZ(-3deg) scale(.99)}
  100%{transform:rotateX(-25deg) rotateY(34deg) rotateZ(-5deg) scale(1)}
}

@media(max-width:820px){
  body.diceV4 .piliDiceScene{--die:92px;--half:44px}
  body.diceV4 .dicePair{gap:54px!important}
}
@media(max-width:430px){
  body.diceV4 .piliDiceScene{--die:80px;--half:38px}
  body.diceV4 .dicePair{gap:34px!important}
}
@media(prefers-reduced-motion:reduce){
  body.diceV4 .piliDiceBody.rolling,
body.diceV4 .piliDiceScene.throwA,
body.diceV4 .piliDiceScene.throwB{animation-duration:.5s!important}
}

/* =========================================================
   V5 TRUE WEBGL PHYSICS DICE
   Three.js + cannon-es, isolated from legacy CSS dice.
   ========================================================= */
body.diceV4 .diceStage{position:relative;overflow:hidden;}
body.diceV4 .dicePhysicsViewport{
  position:relative;
  width:100%;
  height:205px;
  margin:0 auto;
  overflow:hidden;
  border-radius:13px 13px 0 0;
  isolation:isolate;
}
body.diceV4 #dicePhysicsCanvas{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:block;
  opacity:0;
  transition:opacity .25s ease;
  z-index:2;
}
body.diceV4 .dicePhysicsViewport.physicsReady #dicePhysicsCanvas{opacity:1;}
body.diceV4 .diceFallback{position:absolute;inset:0;z-index:1;transition:opacity .2s ease;}
body.diceV4 .diceFallback.physicsHidden{opacity:0;visibility:hidden;pointer-events:none;}
body.diceV4 .physicsBadge{
  position:absolute;right:12px;top:10px;z-index:4;
  padding:5px 8px;border:1px solid #8d754055;border-radius:999px;
  background:#080b09aa;color:#c7aa64;font-size:7px;font-weight:900;letter-spacing:.15em;
  opacity:.7;pointer-events:none;
}
body.diceV4 .dicePhysicsViewport:not(.physicsReady) .physicsBadge{display:none;}
body.diceV4 .dicePhysicsViewport.isRolling .physicsBadge{color:#f0d782;border-color:#b99a5577;}
body.diceV4 .diceResult{margin-top:0;padding:7px 0 10px;}
@media(max-width:820px){body.diceV4 .dicePhysicsViewport{height:190px;}}
@media(max-width:430px){body.diceV4 .dicePhysicsViewport{height:170px;}body.diceV4 .physicsBadge{right:8px;top:7px;font-size:6px;}}

/* V5.1 visual cleanup: preserve common dark/gold game panel, no green felt slab. */
body.diceV4 .diceStage{background:radial-gradient(circle at 50% 42%,#17140f 0%,#0e0e0c 58%,#0a0a09 100%)!important;}
body.diceV4 .diceStage::before{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at 50% 72%,rgba(190,151,73,.10),transparent 42%);pointer-events:none;}
body.diceV4 .stageGlow{background:#caa8580d!important;filter:blur(38px)!important;}
body.diceV4 .physicsBadge{opacity:.45;}

/* V5.3 responsive physics stage: phones, Flip/Fold and tablets */
/* V5.5 mobile physics framing: give the dice real travel room instead of clipping the spawn. */
@media (pointer:coarse) and (max-width:600px){
  body.diceV4 .dicePhysicsViewport{height:310px!important;min-height:310px!important;overflow:hidden!important}
  body.diceV4 .diceStage{min-height:402px!important}
  body.diceV4 .diceResult{padding:10px 0 13px!important}
  body.diceV4 .physicsBadge{display:none!important}
}
@media (pointer:coarse) and (max-width:390px){
  body.diceV4 .dicePhysicsViewport{height:285px!important;min-height:285px!important}
  body.diceV4 .diceStage{min-height:375px!important}
}
@media (pointer:coarse) and (min-width:601px) and (max-width:980px){
  body.diceV4 .dicePhysicsViewport{height:330px!important;min-height:330px!important}
  body.diceV4 .diceStage{min-height:422px!important}
}
