.dice-face{display:inline-grid;width:1.8em;height:1.8em;box-sizing:border-box;flex:0 0 auto;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);gap:10%;padding:.34em;border:1px solid #d8dfd6;border-radius:22%;vertical-align:middle;background:linear-gradient(135deg,#fffefa,#e8ece4);color:#18382f;box-shadow:inset 0 1px 2px #ffffff,inset 0 -2px 3px #a4b1a540}.dice-face-black{border-color:#444d47;background:linear-gradient(135deg,#242826,#090c0b);color:#fffcef;box-shadow:inset 0 1px 2px #82988b60,inset 0 -2px 3px #00000060}.dice-pip{display:block;width:100%;height:100%;min-width:0;border-radius:50%;background:currentColor;box-shadow:inset 0 1px 2px #00000035}.board-dice-overlay{display:flex;position:absolute;inset:5%;z-index:5;align-items:center;justify-content:center;pointer-events:none}.dice-stage,.dice-tray-idle{--dice-size:clamp(62px,7vw,100px);--dice-half:calc(var(--dice-size) / 2);display:flex;position:relative;isolation:isolate;width:min(100%,680px);min-height:290px;flex-direction:column;justify-content:space-between;box-sizing:border-box;overflow:hidden;padding:26px 24px 22px;border:1px solid #c8e1c741;border-radius:28px;background-color:#173c30;background-image:radial-gradient(ellipse at 48% 15%,#71a08826,#051e194d 85%),url(/media/dice-felt.webp);background-position:50%;background-size:cover;color:#fffbed;box-shadow:inset 0 0 0 6px #e0ebcf0b,inset 0 0 50px #071b1650,0 18px 45px #183e3440;text-align:center;pointer-events:none}.dice-stage:before,.dice-tray-idle:before{position:absolute;inset:12px;z-index:-1;border:1px solid #dbe4be30;border-radius:19px;content:""}.dice-stage-heading{display:grid;gap:5px;position:relative;z-index:1}.dice-stage-eyebrow{color:#cbd9bf;font-size:11px;font-weight:650;letter-spacing:.14em;text-transform:uppercase}.dice-stage-player{overflow:hidden;max-width:100%;font-size:clamp(18px,2vw,25px);font-weight:700;line-height:1.15;text-overflow:ellipsis;white-space:nowrap}.dice-stage-table{display:flex;min-height:calc(var(--dice-size) + 66px);align-items:center;justify-content:center;gap:calc(var(--dice-size) * .7);padding:18px 0 12px;perspective:850px}.dice-landing{position:relative;width:var(--dice-size);height:var(--dice-size);perspective:700px}.dice-ground-shadow{position:absolute;inset:auto -16% -25%;height:40%;border-radius:50%;background:#00000050;filter:blur(8px);transform:scale(1)}.dice-camera,.dice-cube,.dice-toss{width:100%;height:100%;transform-style:preserve-3d}.dice-camera{transform:rotateX(-16deg) rotateY(-20deg)}.dice-cube{position:relative;transform:rotateX(var(--dice-end-x)) rotateY(var(--dice-end-y)) rotate(0deg)}.dice-cube-face{position:absolute;inset:0;width:100%;height:100%;padding:20%;border-width:2px;backface-visibility:hidden;-webkit-backface-visibility:hidden}.dice-side-front{transform:translateZ(var(--dice-half))}.dice-side-back{transform:rotateY(180deg) translateZ(var(--dice-half))}.dice-side-right{transform:rotateY(90deg) translateZ(var(--dice-half))}.dice-side-left{transform:rotateY(-90deg) translateZ(var(--dice-half))}.dice-side-top{transform:rotateX(90deg) translateZ(var(--dice-half))}.dice-side-bottom{transform:rotateX(-90deg) translateZ(var(--dice-half))}.dice-stage[data-phase=rolling] .dice-toss{animation:montelana-dice-toss 1.2s cubic-bezier(.18,.6,.32,1) var(--dice-delay) both}.dice-stage[data-phase=rolling] .dice-cube{animation:montelana-dice-tumble 1.2s cubic-bezier(.2,.6,.28,1) var(--dice-delay) both}.dice-stage[data-phase=rolling] .dice-ground-shadow{animation:montelana-dice-shadow 1.2s ease-out var(--dice-delay) both}.dice-stage-result{display:flex;min-height:44px;align-items:center;justify-content:center;gap:12px;position:relative;z-index:1;line-height:1.15}.dice-result-label{color:#cbd9bf;font-size:12px}.dice-result-equation{font-size:22px;font-variant-numeric:tabular-nums;white-space:nowrap}.dice-result-equation>span{color:#e1e6d4}.dice-result-equation b{font-size:36px;font-weight:750}.dice-result-equation small{margin-left:7px;color:#e1e6d4;font-size:14px}.dice-equals{padding:0 4px;color:#a6b8a6}.dice-stage-rolling{color:#e1e6d4;font-size:16px;letter-spacing:.025em}.dice-stage-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.dice-stage-compact{--dice-size:58px;width:100%;min-height:216px;padding:19px 16px 15px;border-radius:18px}.dice-stage-compact:before{inset:7px;border-radius:12px}.dice-stage-compact .dice-stage-eyebrow{font-size:10px}.dice-stage-compact .dice-stage-player{font-size:17px}.dice-stage-compact .dice-stage-table{min-height:105px;padding:10px 0}.dice-stage-compact .dice-stage-result{min-height:35px;gap:8px}.dice-stage-compact .dice-result-equation{font-size:18px}.dice-stage-compact .dice-result-equation b{font-size:28px}.dice-stage-compact .dice-result-equation small{font-size:12px}.dice-stage-compact .dice-result-label{font-size:11px}@keyframes montelana-dice-toss{0%{transform:translate3d(var(--dice-entry-x),-82px,45px) rotate(var(--dice-entry-z))}33%{transform:translate3d(9px,0,0) rotate(8deg)}49%{transform:translate3d(-6px,-32px,12px) rotate(-5deg)}64%{transform:translate3d(3px,0,0) rotate(3deg)}77%{transform:translate3d(-1px,-9px,3px) rotate(-2deg)}90%,to{transform:translateZ(0) rotate(0)}}@keyframes montelana-dice-tumble{0%{transform:rotateX(calc(var(--dice-end-x) + 680deg)) rotateY(calc(var(--dice-end-y) + 995deg)) rotate(28deg)}33%{transform:rotateX(calc(var(--dice-end-x) + 230deg)) rotateY(calc(var(--dice-end-y) + 1turn)) rotate(-17deg)}64%{transform:rotateX(calc(var(--dice-end-x) - 28deg)) rotateY(calc(var(--dice-end-y) + 35deg)) rotate(7deg)}82%{transform:rotateX(calc(var(--dice-end-x) + 8deg)) rotateY(calc(var(--dice-end-y) - 6deg)) rotate(-3deg)}to{transform:rotateX(var(--dice-end-x)) rotateY(var(--dice-end-y)) rotate(0)}}@keyframes montelana-dice-shadow{0%{transform:translateX(var(--dice-entry-x)) scale(.65)}33%,64%{transform:translateX(0) scale(1.15)}49%{transform:translateX(-6px) scale(.8)}77%{transform:scale(.95)}to{transform:scale(1)}}@media (max-width:620px){.dice-stage{--dice-size:62px;min-height:238px;padding:21px 16px 16px}.dice-stage-table{gap:38px;min-height:125px;padding:12px 0}.dice-result-equation{font-size:19px}.dice-result-equation b{font-size:30px}.dice-stage-compact{--dice-size:58px;min-height:216px}}@media (prefers-reduced-motion:reduce){.dice-stage[data-phase=rolling] .dice-cube,.dice-stage[data-phase=rolling] .dice-ground-shadow,.dice-stage[data-phase=rolling] .dice-toss{animation:none}}.dice-stage-idle{justify-content:center;gap:23px}.dice-idle-title{color:#e7eddc;font-size:17px;font-weight:650;line-height:1.3}.dice-idle-groups{display:grid;grid-template-columns:1.3fr 1fr;gap:16px;align-items:start}.dice-idle-group{display:grid;gap:21px;min-width:0}.dice-idle-group>span{color:#cbd9bf;font-size:12px;line-height:1.4}.dice-idle-faces{display:flex;justify-content:center;gap:12px}.dice-idle-faces>.dice-face{width:48px;height:48px;padding:9px;border-radius:10px;box-shadow:inset 0 1px 2px #ffffff70,0 4px 0 #9ba999,0 8px 14px #06191255;transform:rotate(-5deg)}.dice-idle-faces>.dice-face:nth-child(2){transform:rotate(4deg)}.dice-idle-faces>.dice-face-black{box-shadow:inset 0 1px 2px #82988b60,0 4px 0 #080d0a,0 8px 14px #06191255;transform:rotate(7deg)}@container (max-height: 360px){.board-dice-overlay>.dice-stage{--dice-size:clamp(42px,18cqh,64px);height:100%;min-height:0;padding:14px 18px;border-radius:20px}.board-dice-overlay .dice-stage-heading{gap:3px}.board-dice-overlay .dice-stage-eyebrow{font-size:10px}.board-dice-overlay .dice-stage-player{font-size:18px}.board-dice-overlay .dice-stage-table{min-height:calc(var(--dice-size) + 40px);padding:12px 0}.board-dice-overlay .dice-stage-result{min-height:32px;gap:8px}.board-dice-overlay .dice-result-label{font-size:11px}.board-dice-overlay .dice-result-equation{font-size:18px}.board-dice-overlay .dice-result-equation b{font-size:28px}.board-dice-overlay .dice-result-equation small{font-size:12px}}