.die-stage{--die-size:clamp(98px, 11vw, 148px);--die-half:calc(var(--die-size) / 2);border:1px solid var(--line);background:radial-gradient(ellipse at 50% 65%, var(--student-soft), var(--bg) 76%);perspective:700px;cursor:pointer;touch-action:manipulation;border-radius:13px;place-items:center;width:100%;min-height:clamp(222px,20vw,300px);display:grid;position:relative}.die-stage:hover{border-color:var(--student)}.die-stage[aria-disabled]{cursor:wait}.die-shadow{top:calc(50% + var(--die-half) + 1.28rem);width:var(--die-size);background:var(--ink);filter:blur(7px);opacity:.28;border-radius:50%;height:12px;position:absolute}.die-flight{width:var(--die-size);aspect-ratio:1;transform-style:preserve-3d;margin-top:1.4rem;position:relative}.die-tilt,.die-cube,.die-face{position:absolute;inset:0}.die-tilt,.die-cube{transform-style:preserve-3d}.die-tilt{transform:rotateX(-13deg)rotateY(21deg)}.die-face{border:1px solid var(--student);background:linear-gradient(135deg, var(--surface), var(--student-soft));box-shadow:inset 0 0 0 3px color-mix(in srgb, var(--student) 11%, transparent);backface-visibility:hidden;border-radius:9%;grid-template:repeat(3,1fr)/repeat(3,1fr);place-items:center;padding:13%;display:grid}.die-face[data-side="1"]{transform:translateZ(var(--die-half))}.die-face[data-side="2"]{transform:rotateX(90deg) translateZ(var(--die-half))}.die-face[data-side="3"]{transform:rotateY(90deg) translateZ(var(--die-half))}.die-face[data-side="4"]{transform:rotateY(-90deg) translateZ(var(--die-half))}.die-face[data-side="5"]{transform:rotateX(-90deg) translateZ(var(--die-half))}.die-face[data-side="6"]{transform:rotateY(180deg) translateZ(var(--die-half))}.die-pip{aspect-ratio:1;background:var(--student);width:55%;box-shadow:inset 0 1px 3px color-mix(in srgb, var(--ink) 32%, transparent);border-radius:50%}.die-actions{flex-wrap:wrap;align-items:center;gap:.45rem;margin-top:.7rem;display:flex}.die-actions p{flex-basis:100%;margin:0}.die-actions [aria-disabled]{cursor:wait;opacity:.7}.die-outcomes{grid-template-columns:repeat(6,minmax(0,1fr));gap:.35rem;margin-block:.6rem 1rem;display:grid}.die-outcomes button{border:1px solid var(--line);background:var(--surface);min-width:0;min-height:57px;color:var(--ink);font:inherit;cursor:pointer;border-radius:6px;place-items:center;padding:.2rem 0;display:grid}.die-outcomes button[aria-pressed=true]{border-color:var(--student);background:var(--student-soft);box-shadow:inset 0 -2px var(--student);color:var(--student)}.die-outcomes small{font-variant-numeric:tabular-nums;font-size:.7rem}.die-outcomes.die-hl button[aria-pressed=true]{outline:3px solid var(--accent);outline-offset:1px}.die-hl-text{color:var(--accent);font-weight:700}.die-chart{margin-top:1rem}.die-page .die-bar{fill:color-mix(in srgb, var(--blue) 35%, var(--surface))}.die-page .die-bar-on{fill:var(--green)}.die-page .die-bar.hl{stroke:var(--accent);stroke-width:3px}.die-page .die-expected{stroke:var(--ink);stroke-width:1.5px;stroke-dasharray:6 5}.die-page .die-expected.hl{stroke:var(--accent);stroke-width:3px}.die-page .die-naive{fill:none;stroke:var(--accent);stroke-width:2px;stroke-dasharray:6 5}.die-page .die-naive-label{fill:var(--ink)!important}.die-page .equation .term-k{color:var(--green)}.die-page .equation .term-m{color:var(--accent)}.die-page .equation .term-n{color:var(--blue)}.die-page .equation[data-hl=k] .term-k,.die-page .equation[data-hl=m] .term-m,.die-page .equation[data-hl=n] .term-n{background:color-mix(in srgb, currentColor 22%, transparent)}@container panel (width<=520px){.die-page .panel svg text{font-size:22px}}.die-phat .katex{font-size:1.08em}.die-more{margin:12px 0 0}.die-more>summary{cursor:pointer;min-height:40px;font:600 .9rem var(--sans);color:var(--muted);align-items:center;gap:8px;list-style:none;display:flex}.die-more>summary::-webkit-details-marker{display:none}.die-more>summary:before{content:"";border-bottom:2px solid;border-right:2px solid;flex:none;width:7px;height:7px;transition:transform .15s;transform:rotate(-45deg)}.die-more[open]>summary:before{transform:rotate(45deg)}.die-more>summary:focus-visible{outline:2px solid var(--green);outline-offset:2px;border-radius:6px}.die-more[open]>summary{color:var(--ink)}.die-more .row{margin-top:4px}.die-more>p{margin:4px 0}
