:root{--dice-ink:#e8a45c;--dice-base:#372018}
#dice-cabinet{box-sizing:border-box;width:min(960px,calc(100% - 24px));max-height:90dvh;overflow:auto;padding:28px;border:1px solid #997343;border-radius:16px;background:#191614;color:#eee1c7;box-shadow:0 25px 100px #000b}
#dice-cabinet::backdrop{background:#080706ce}
#dice-cabinet h2{font-family:Georgia,serif;font-size:clamp(1.6rem,4vw,2.3rem);margin:0 35px 12px 0;color:#f4d99c}
.dice-eyebrow{font-size:.7rem;letter-spacing:.15em;color:#cda972}
.dice-close{position:absolute;right:12px;top:10px;font-size:24px;min-width:44px;min-height:44px}
.dice-sets{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:24px 0}
.dice-sets button{padding:0;overflow:hidden;border:2px solid #5c4834;background:#27201b;color:#f5e2c4;border-radius:9px;font:inherit;cursor:pointer}
.dice-sets button[aria-pressed=true]{border-color:#f7ce73;box-shadow:0 0 0 2px #f7ce7333}
.dice-sets button>span:last-child{display:block;padding:10px 6px;font-size:.85rem;min-height:2.5em}
.dice-card-art,.dice-preview-art{display:block;background-image:url('/branding/dice/sets.webp');background-size:500% 100%;background-repeat:no-repeat;aspect-ratio:3/10}
.dice-card-art{width:100%;aspect-ratio:1/1;background-size:500% 333.333%;background-position-y:28%!important}
.dice-preview{display:grid;grid-template-columns:110px 1fr;gap:24px;align-items:center;padding:18px;background:#100f0d;border-radius:12px}
.dice-preview-art{width:110px;border-radius:8px}
.dice-preview h3{font-family:Georgia,serif;color:var(--dice-ink);font-size:1.4rem;margin:0 0 10px}
.dice-note{font-size:.8rem;color:#bcb2a1;line-height:1.5}
#dice-cabinet button:focus-visible,[data-dice-open]:focus-visible{outline:3px solid #fff1b8;outline-offset:3px}
#dice-cabinet button{min-height:44px}
.dice-result-tray{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}
.forge-die{display:inline-grid;place-items:center;flex:0 0 108px;width:108px;height:180px;background-image:url('/branding/dice/roll-faces.webp');background-size:500% 100%;background-repeat:no-repeat;color:#fff4d9;font:bold 28px Georgia,serif;font-variant-numeric:tabular-nums;text-shadow:1px 1px 0 #000,-1px -1px 0 #000;border-radius:8px;line-height:1;box-sizing:border-box;padding-bottom:9px}
@media(prefers-reduced-motion:reduce){.forge-die{animation:none}}
@media(max-width:600px){#dice-cabinet{padding:20px 14px}.dice-sets{grid-template-columns:repeat(2,minmax(0,1fr))}.dice-card-art{aspect-ratio:1/1}.dice-preview{grid-template-columns:1fr;padding:14px;gap:14px}.dice-preview-art{display:none}}

#dice-cabinet button:not([data-theme]){background:#493423;color:#ffe2a3;border:1px solid #967340;border-radius:8px;padding:10px 16px;cursor:pointer}#dice-cabinet button:hover{filter:brightness(1.12)}
