body[data-page=dice] #game-area{padding:18px}.dice-settings{display:flex;justify-content:center;gap:20px;margin:0 0 18px}.dice-settings label{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:700}.dice-settings select{min-height:44px}.dice-table{position:relative;border-radius:24px;background:radial-gradient(ellipse at 50% 20%,#3354a2,#162b64 75%);border:6px solid #182850;box-shadow:inset 0 0 0 2px #5c71a3,inset 0 10px 35px #06122b90,0 4px 0 #111d3e;min-height:280px;overflow:hidden;padding:64px 28px 48px;isolation:isolate;--face:#fffdf4;--shade:#d5d2c7;--pip:#17233f}.dice-felt{position:absolute;inset:0;pointer-events:none;opacity:.13;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23n)' d='M0 0h160v160H0z'/%3E%3C/svg%3E")}.dice-set{display:grid;grid-template-columns:repeat(3,110px);gap:38px 36px;justify-content:center;align-items:center}.dice-table[data-count='1'] .dice-set{grid-template-columns:110px}.dice-table[data-count='2'] .dice-set{grid-template-columns:repeat(2,110px)}.die-space{--size:86px;--half:43px;position:relative;height:116px;display:grid;place-items:center;perspective:650px}.die-bounce{width:var(--size);height:var(--size);transform-style:preserve-3d;rotate:var(--lean)}.die-cube{position:relative;width:100%;height:100%;transform-style:preserve-3d}.die-face{position:absolute;inset:0;display:grid;grid-template:repeat(3,1fr)/repeat(3,1fr);gap:8%;padding:17%;border-radius:15%;background:linear-gradient(135deg,var(--face),var(--shade));border:1px solid #ffffff8c;box-shadow:inset 2px 2px 4px #fff9,inset -3px -3px 6px #0003;backface-visibility:hidden}.face-1{transform:translateZ(var(--half))}.face-6{transform:rotateY(180deg) translateZ(var(--half))}.face-3{transform:rotateY(90deg) translateZ(var(--half))}.face-4{transform:rotateY(-90deg) translateZ(var(--half))}.face-2{transform:rotateX(90deg) translateZ(var(--half))}.face-5{transform:rotateX(-90deg) translateZ(var(--half))}.die-pip{border-radius:50%;aspect-ratio:1}.die-pip.on{background:var(--pip);box-shadow:inset 1px 2px 3px #000b,0 1px 1px #fff9}.die-shadow{position:absolute;bottom:0;width:105px;height:24px;border-radius:50%;background:#01092380;filter:blur(7px);transform:rotate(var(--lean))}.dice-table[data-color=blue]{--face:#4c78ff;--shade:#2046cf;--pip:#fffdf3}.dice-table[data-color=coral]{--face:#ff8c79;--shade:#d45043;--pip:#fffdf3}.dice-result{display:flex;justify-content:center;align-items:center;gap:14px;min-height:78px;text-align:center;color:#14204c;flex-wrap:wrap;padding-top:12px}.dice-result>span{font-size:14px;font-weight:700}.dice-result strong{font-size:42px;line-height:1}.dice-result small{font-size:14px;color:#586687}.dice-key-hint{text-align:center;font-size:12px;color:#68748b;margin:0 0 6px}.dice-history{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:7px;border-top:1px solid #e2e6f3;margin-top:16px;padding-top:14px;font-size:12px}.dice-history>span:first-child{width:100%;text-align:center;color:#64718b}.dice-history-item{padding:6px 10px;border:1px solid #e1e6f1;border-radius:8px;background:#f7f8ff}body[data-page=dice] #game-actions [data-action=roll]{background:#ffe34c;color:#101d4b;border:2px solid #101d4b;border-radius:14px;font-size:20px;min-width:220px;min-height:56px;box-shadow:0 4px 0 #101d4b}body[data-page=dice] #game-actions [data-action=roll]:active{transform:translateY(3px);box-shadow:0 1px 0 #101d4b}body[data-page=dice] .game-actions{padding-top:4px;padding-bottom:22px}.dice-table[aria-busy=true]{cursor:wait}@media(max-width:720px){body[data-page=dice] #game-area{padding:10px}.dice-settings{gap:12px;margin-bottom:14px}.dice-settings label{font-size:11px;flex-direction:column;gap:4px}.dice-settings select{padding:8px 12px;min-width:100px}.dice-table{min-height:225px;padding:54px 8px 30px;border-width:4px;border-radius:18px}.dice-set{grid-template-columns:repeat(3,72px);gap:25px 5px}.dice-table[data-count='1'] .dice-set{grid-template-columns:90px}.dice-table[data-count='2'] .dice-set{grid-template-columns:repeat(2,90px);gap:24px}.die-space{--size:56px;--half:28px;height:78px}.dice-table[data-count='1'] .die-space,.dice-table[data-count='2'] .die-space{--size:76px;--half:38px;height:100px}.die-shadow{width:70px;height:15px}.dice-result{gap:9px;min-height:70px}.dice-result strong{font-size:36px}.dice-key-hint{display:none}.dice-history{margin-top:6px}.dice-history-item{font-size:11px}body[data-page=dice] #game-actions [data-action=roll]{min-width:200px;font-size:18px}}@media(prefers-reduced-motion:reduce){.die-cube,.die-bounce{animation:none!important}}

body[data-page=dice] #game-area{display:block;min-height:0}.dice-table{width:100%;max-width:680px;margin:0 auto}.dice-settings{min-height:44px}.dice-result{margin-top:6px}

body[data-page=dice] .dice-history{width:100%;margin:12px 0 0}