.dice-main{margin:0 auto;max-width:1120px;padding:26px 22px 40px}
.dice-title{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:16px}.dice-title h1{font-size:clamp(34px,6vw,58px);margin:8px 0 7px}.dice-title p{color:#b8c9c2}
.dice-layout{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(240px,1fr);gap:14px}
.felt{display:grid;place-items:center;align-content:space-between;text-align:center;min-height:330px;padding:19px 12px;border:1px solid #597c64;border-radius:13px;background:radial-gradient(ellipse at 54% 42%,#33674b 0%,#214c37 52%,#172f26 93%);box-shadow:inset 0 0 45px #091c14}
.felt-caption{font:650 11px ui-monospace,monospace;letter-spacing:.15em;color:#c7ebc1}.felt-caption b{color:#e3c98b;padding:0 7px}
.pair{display:flex;justify-content:center;gap:clamp(20px,5vw,61px);perspective:520px}
.die{width:clamp(77px,11vw,110px);aspect-ratio:1;display:grid;grid-template:repeat(3,1fr)/repeat(3,1fr);gap:4px;padding:clamp(10px,2vw,16px);border-radius:18%;background:linear-gradient(145deg,#fffaf0,#dfd0af 90%);border:1px solid #fff6df;box-shadow:inset -5px -6px 9px #65532f5b,inset 3px 2px 7px white,0 7px 0 #796b4e,0 16px 19px #081810aa;transform:rotate(-9deg)}
.die:nth-child(2){transform:rotate(11deg);background:linear-gradient(150deg,#e5ffec,#afd2ae 86%);box-shadow:inset -5px -6px 9px #38532e60,inset 3px 2px 7px #f0fff3,0 7px 0 #587357,0 16px 19px #081810aa}
.die i{place-self:center;width:62%;aspect-ratio:1;border-radius:50%;background:#243330;box-shadow:inset 0 2px 4px #020a0a95}
.pair.rolling .die{animation:tumble .39s ease-in-out infinite alternate}.pair.rolling .die:nth-child(2){animation-direction:alternate-reverse}
@keyframes tumble{from{transform:translateY(3px) rotate(-21deg) rotateX(9deg)}to{transform:translateY(-21px) rotate(29deg) rotateX(-15deg)}}
#dice-status{min-height:24px;font-weight:700;color:#f9f8e5}
.choice{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:9px}
.choice button{background:#263537;border:1px solid #465b57;border-radius:8px;padding:8px 4px;cursor:pointer}.choice b,.choice small{display:block}.choice small{color:#afc5ba}.choice button[aria-pressed=true]{background:#35564b;color:#e9fff1;border-color:#a4f2c8}.choice button:disabled{cursor:default}
.roll-row{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:10px}.roll-row small{color:#acbeb7}.roll-row button{border:0;cursor:pointer}.roll-row button:disabled{opacity:.5;cursor:default}
.dice-history,.dice-rules{background:#1b2527;border:1px solid #364546;border-radius:9px;padding:13px}.dice-history h2{font-size:18px}
.dice-score{display:grid;grid-template-columns:repeat(3,1fr);gap:4px}.dice-score div{text-align:center;padding:8px 2px;background:#253335;border-radius:6px}.dice-score b,.dice-score small{display:block}.dice-score b{font-size:19px;color:#c1ffdc}.dice-score small{font-size:10px;color:#becdc7}
.dice-empty{padding:13px 0;color:#a6b9b2;font-size:13px}#dice-rounds{margin:10px 0 0;padding:0;list-style:none}#dice-rounds li{display:flex;justify-content:space-between;gap:8px;padding:6px 3px;border-bottom:1px solid #334342;color:#cddbd5;font-size:12px}#dice-rounds .hit{color:#a9f1c5}
.dice-rules{margin-top:16px}.dice-rules summary{cursor:pointer;font-weight:750}.dice-rules p{margin-top:6px;color:#b8c9c2;font-size:13px}
@media(max-width:690px){.dice-main{padding:16px 10px 23px}.dice-layout{grid-template-columns:1fr}.felt{min-height:255px}.roll-row small{font-size:10px}.roll-row .button{gap:6px;padding:8px 9px}}
@media(prefers-reduced-motion:reduce){.pair.rolling .die{animation:none}}
