.pp-dice-cover{background:radial-gradient(ellipse at 35% 15%,#efdbff,transparent 65%),linear-gradient(135deg,#e2fff5,#cfafea)!important}.pp-dice-board{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;background:radial-gradient(ellipse at 15% 20%,#d7fff1,transparent 60%),radial-gradient(ellipse at 85% 80%,#e6d0ff,transparent 65%),#f5f0fc!important;isolation:isolate}.pp-dice-result{font-size:clamp(23px,4vw,34px);font-weight:800;min-height:42px;text-align:center;color:#8624e8}.pp-dice-arena{position:relative;width:100%;height:180px;display:grid;place-items:center;perspective:800px;overflow:visible}.pp-dice-object{display:grid;place-items:center;width:114px;height:114px;border-radius:25px;background:linear-gradient(140deg,#ddfff5,#76f1ce);color:#41205a;box-shadow:inset 3px 3px 0 #fff,8px 10px 0 #30a47f,0 22px 24px #24113733;transform:rotate(-8deg);transform-style:preserve-3d;will-change:transform}.pp-dice-object span{font-size:92px;line-height:1;font-family:Arial,sans-serif}.pp-dice-object.is-rolling{animation:pp-dice-tumble .75s cubic-bezier(.35,.02,.62,1) infinite}.pp-dice-object.is-landed{animation:pp-dice-land .7s cubic-bezier(.2,.8,.2,1)}.pp-dice-choices{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;width:min(92%,420px);z-index:2}.pp-dice-choices button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:62px;border:2px solid transparent;border-radius:15px;background:#eee4f9;color:#41205a;cursor:pointer}.pp-dice-choices button[aria-pressed=true]{background:#adf5df;border-color:#24b48a;box-shadow:0 0 0 3px #76f1ce50}.pp-dice-choices button span{font-size:29px;line-height:1}.pp-dice-choices button b{font-size:14px}.pp-dice-controls{display:flex;justify-content:center;align-items:center;min-height:58px;width:100%;padding:4px 0}.pp-dice-controls button{width:160px;min-height:44px;border:0;border-radius:24px;background:#76f1ce;color:#241137;font-size:17px!important;font-weight:700}.pp-dice-controls button:disabled{opacity:1}.pp-dice-board[data-phase=rolling] .pp-dice-controls button{animation:pp-dice-play .65s ease-in-out infinite alternate}.pp-dice-companion{position:absolute;right:5%;bottom:0;width:74px;height:90px;z-index:1;animation:pp-dice-actor-travel 5s ease-in-out infinite alternate}.pp-dice-companion .pp-game-companion{position:relative!important;inset:auto!important;width:74px!important;height:90px!important;display:block}.pp-dice-sparks{position:absolute;inset:0;pointer-events:none;opacity:0}.pp-dice-board.is-win .pp-dice-sparks{opacity:1}.pp-dice-sparks i{position:absolute;left:calc(var(--i)*5%);top:20%;width:8px;height:15px;background:#8624e8;border-radius:2px;animation:pp-dice-confetti 1.8s ease-out infinite;animation-delay:calc(var(--i)*-.09s)}.pp-dice-sparks i:nth-child(even){background:#3cdab0}.pp-dice-board.is-win .pp-dice-result{animation:pp-dice-result-pop .7s ease-out}.pp-dice-board .pp-board-corner-balance{z-index:3}
@keyframes pp-dice-tumble{0%{transform:translate(-24px,-12px) rotateX(0deg) rotateY(0deg) rotateZ(-14deg)}25%{transform:translate(25px,-35px) rotateX(90deg) rotateY(70deg) rotateZ(30deg)}50%{transform:translate(34px,8px) rotateX(180deg) rotateY(180deg) rotateZ(-22deg)}75%{transform:translate(-20px,-28px) rotateX(280deg) rotateY(290deg) rotateZ(30deg)}100%{transform:translate(-24px,-12px) rotateX(360deg) rotateY(360deg) rotateZ(-14deg)}}
@keyframes pp-dice-land{0%{transform:translateY(-30px) rotate(-30deg) scale(1.15)}45%{transform:translateY(8px) rotate(12deg) scale(.92)}70%{transform:translateY(-8px) rotate(-12deg)}100%{transform:rotate(-8deg)}}
@keyframes pp-dice-play{from{background:#76f1ce;transform:translateY(0)}to{background:#40d5af;transform:translateY(-3px)}}
@keyframes pp-dice-actor-travel{0%{right:5%;transform:translateY(0) rotate(-5deg)}45%{right:30%;transform:translateY(-12px) rotate(4deg)}100%{right:65%;transform:translateY(-2px) rotate(-5deg)}}
@keyframes pp-dice-confetti{0%{transform:translateY(-30px) rotate(0);opacity:0}15%{opacity:1}100%{transform:translateY(160px) rotate(300deg);opacity:0}}
@keyframes pp-dice-result-pop{0%{transform:scale(.75)}60%{transform:scale(1.15)}100%{transform:scale(1)}}
@media(max-width:500px){.pp-dice-arena{height:150px}.pp-dice-object{width:94px;height:94px;border-radius:20px}.pp-dice-object span{font-size:76px}.pp-dice-choices{gap:5px}.pp-dice-choices button{min-height:52px;border-radius:12px}.pp-dice-choices button span{font-size:24px}.pp-dice-result{min-height:32px}.pp-dice-board{gap:8px}.pp-dice-companion{width:60px;height:74px}.pp-dice-companion .pp-game-companion{width:60px!important;height:74px!important}}
@media(prefers-reduced-motion:reduce){.pp-dice-board *{animation:none!important;transition:none!important}}
