.dice-game{--orange:#c26016;--green:#35ad96;max-width:1250px;margin:auto}.dice-heading{text-align:center;padding:1.5rem}.dice-heading h1{font-size:clamp(2rem,5vw,3.4rem);margin:.3rem}.dice-rules{margin:0 0 1rem;padding:1rem;border:1px solid #8885;border-radius:0}.dice-rules summary{cursor:pointer;font-weight:bold}.dice-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1.25rem}.dice-play,.dice-statistics{min-width:0;padding:1.5rem;border-radius:0}.dice-play{text-align:center}.dice-play fieldset{border:0;display:flex;justify-content:center;gap:1.5rem;flex-wrap:wrap}.dice-play legend{font-weight:700;margin-bottom:.6rem}.dice-play input[type=radio]{accent-color:var(--orange)}.dice-controls{display:flex;justify-content:center;align-items:center;gap:.7rem;flex-wrap:wrap;margin:1.2rem 0}.dice-controls select,.dice-controls input{padding:.55rem;border:1px solid #888;border-radius:0;font:inherit;max-width:135px}.dice-stage{display:flex;justify-content:center;align-items:center;gap:1.3rem;min-height:205px}.die{width:clamp(112px,16vw,155px);aspect-ratio:1;border:0;border-radius:22px;cursor:pointer;box-shadow:inset 0 4px 5px #fff5,inset 0 -8px 10px #0003,0 10px 0 #0002,0 16px 20px #0003;display:grid;place-items:center;transition:transform .15s}.die:hover{transform:translateY(-4px)}.die.orange{background:var(--orange)}.die.green{background:var(--green)}.die[hidden]{display:none}.die.rolling{animation:shake .35s ease-in-out}.face{width:78%;height:78%;display:grid;grid-template:repeat(3,1fr)/repeat(3,1fr);place-items:center}.face i{width:clamp(12px,2vw,20px);aspect-ratio:1;border-radius:50%;background:white;box-shadow:inset 0 2px 3px #0004}.face i.off{visibility:hidden}@keyframes shake{25%{transform:rotate(-10deg) translateY(-8px)}50%{transform:rotate(9deg)}75%{transform:rotate(-5deg)}}.dice-tip{opacity:.8}.dice-primary{background:var(--orange);color:white;border:0;border-radius:0;padding:.8rem 2.5rem;font:inherit;font-weight:bold;cursor:pointer}#result{min-height:1.5em;font-weight:bold}.dice-stat-head{display:flex;align-items:center;justify-content:space-between;gap:.7rem;flex-wrap:wrap}.dice-stat-head h2{margin:0}.dice-toggle{display:flex;border:1px solid #888;border-radius:0;padding:3px}.dice-toggle button{border:0;border-radius:6px;background:transparent;color:inherit;padding:.45rem .7rem;cursor:pointer}.dice-toggle button[aria-pressed=true]{background:var(--orange);color:white}.dice-summary{display:grid;grid-template-columns:1fr 1fr;gap:.7rem;margin:1.2rem 0}.dice-summary>div{border:1px solid #8885;border-radius:0;padding:.8rem}.dice-summary strong{display:block;font-size:1.6rem}.dice-summary small{opacity:.75}.dice-bar{display:grid;grid-template-columns:1.2rem 1fr 5.5rem;align-items:center;gap:.7rem;margin:.7rem 0}.dice-track{height:20px;background:#8883;border-radius:5px;overflow:hidden}.dice-fill{height:100%;background:var(--orange);border-radius:5px;transition:width .2s}.dice-value{text-align:right;font-size:.9rem;font-variant-numeric:tabular-nums}.dice-scroll{overflow-x:auto}.dice-scroll table{width:100%;min-width:320px;border-spacing:4px;text-align:center;font-variant-numeric:tabular-nums}.dice-scroll caption{text-align:left;font-size:.85rem;margin-bottom:.7rem}.dice-scroll th,.dice-scroll td{padding:.55rem .2rem;border-radius:5px;font-size:.85rem}.dice-scroll thead th{background:var(--green);color:#102e2a}.dice-scroll tbody th{background:var(--orange);color:white}.dice-scroll thead .corner{background:transparent;color:inherit}.dice-scroll td{background:rgba(53,173,150,var(--heat,.1));border:1px solid #8883}.dice-theory{font-size:.9rem;opacity:.8}.dice-reset{border:1px solid currentColor;border-radius:0;padding:.65rem 1rem;background:transparent;color:inherit;cursor:pointer}.dice-game .foot{text-align:center;font-size:.85rem;margin:1.4rem 0;opacity:.8}@media(max-width:800px){.dice-layout{grid-template-columns:1fr}.dice-play,.dice-statistics{min-width:0;padding:1rem}}@media(prefers-reduced-motion:reduce){.die.rolling{animation:none}.dice-fill{transition:none}}
