.dice_container{flex-direction:column;gap:32px;width:100%;min-width:0;display:flex}.dice_kicker{font-family:var(--font-ui);letter-spacing:.16em;color:var(--primary);opacity:.8;font-size:.68rem;font-weight:800;display:block}.dice_selection{flex-direction:column;gap:24px;width:100%;display:flex}.dice_selection-header{justify-content:space-between;width:100%;display:flex}.dice_selection-header h2{font-family:var(--font-display);margin:5px 0 6px;font-size:1.45rem;line-height:1.3}.dice_selection-header p{opacity:.7;max-width:620px;margin:0;font-size:.92rem;line-height:1.6}.dice_type-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;width:100%;display:grid}.dice_type{min-height:150px;color:inherit;background:linear-gradient(145deg, color-mix(in srgb, var(--primary) 4%, transparent), transparent);border:1px solid var(--border);cursor:pointer;font:inherit;border-radius:12px;flex-direction:column;justify-content:center;align-items:center;gap:8px;padding:18px 10px;transition:transform .18s,border-color .18s,box-shadow .18s,background .18s;display:flex;position:relative;overflow:hidden}.dice_type:before{content:"";pointer-events:none;background:radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--primary) 10%, transparent), transparent 65%);opacity:0;transition:opacity .18s;position:absolute;inset:0}.dice_type:hover{border-color:var(--primary);box-shadow:0 8px 20px color-mix(in srgb, var(--primary) 12%, transparent);transform:translateY(-3px)}.dice_type:hover:before{opacity:1}.dice_type:disabled{cursor:not-allowed;opacity:.6}.dice_type.is-selected{border:2px solid var(--primary);background:linear-gradient(145deg, color-mix(in srgb, var(--primary) 13%, transparent), color-mix(in srgb, var(--primary) 4%, transparent));box-shadow:0 8px 22px color-mix(in srgb, var(--primary) 18%, transparent);transform:translateY(-3px)}.dice_type.is-selected:after{content:"";border:1px dashed color-mix(in srgb, var(--primary) 45%, transparent);pointer-events:none;border-radius:8px;position:absolute;inset:5px}.dice_type-shape,.dice_die-shape,.dice_empty-stage{font-family:var(--font-display);color:#f5e6c8;filter:drop-shadow(0 4px #2b1d16)drop-shadow(0 8px 12px #0003);flex-shrink:0;justify-content:center;align-items:center;font-weight:800;line-height:1;transition:transform .2s,filter .2s;display:flex;position:relative}.dice_type-shape span,.dice_die-shape span,.dice_empty-stage span{z-index:5;color:#f5e6c8;text-shadow:0 2px 3px #0006;position:relative}.dice_shape-d4{clip-path:polygon(50% 2%,98% 88%,2% 88%);width:72px;height:68px}.dice_shape-d4:before{content:"";clip-path:inherit;background:linear-gradient(145deg,#f3d77b 0%,#d4af37 45%,#9d7922 100%);position:absolute;inset:4px}.dice_shape-d4:after{content:"";clip-path:inherit;background:linear-gradient(145deg,#a23e2e 0%,#8b1e1e 52%,#641515 100%);position:absolute;inset:7px}.dice_shape-d4 span{margin-top:20px}.dice_shape-d6{clip-path:polygon(12% 8%,88% 8%,100% 20%,100% 80%,88% 92%,12% 92%,0 80%,0 20%);width:68px;height:68px}.dice_shape-d6:before{content:"";clip-path:inherit;background:linear-gradient(145deg,#f3d77b 0%,#d4af37 45%,#9d7922 100%);position:absolute;inset:3px}.dice_shape-d6:after{content:"";clip-path:inherit;background:linear-gradient(145deg,#a23e2e 0%,#8b1e1e 52%,#641515 100%);position:absolute;inset:6px}.dice_shape-d8{clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%);width:72px;height:72px}.dice_shape-d8:before{content:"";clip-path:inherit;background:linear-gradient(145deg,#f3d77b 0%,#d4af37 45%,#9d7922 100%);position:absolute;inset:5px}.dice_shape-d8:after{content:"";clip-path:inherit;background:linear-gradient(145deg,#a23e2e 0%,#8b1e1e 52%,#641515 100%);position:absolute;inset:9px}.dice_shape-d10{clip-path:polygon(50% 0,94% 28%,82% 88%,18% 88%,6% 28%);width:70px;height:76px}.dice_shape-d10:before{content:"";clip-path:inherit;background:linear-gradient(145deg,#f3d77b 0%,#d4af37 45%,#9d7922 100%);position:absolute;inset:5px}.dice_shape-d10:after{content:"";clip-path:inherit;background:linear-gradient(145deg,#a23e2e 0%,#8b1e1e 52%,#641515 100%);position:absolute;inset:9px}.dice_shape-d12{clip-path:polygon(25% 4%,75% 4%,100% 30%,90% 78%,60% 98%,40% 98%,10% 78%,0 30%);width:76px;height:72px}.dice_shape-d12:before{content:"";clip-path:inherit;background:linear-gradient(145deg,#f3d77b 0%,#d4af37 45%,#9d7922 100%);position:absolute;inset:5px}.dice_shape-d12:after{content:"";clip-path:inherit;background:linear-gradient(145deg,#a23e2e 0%,#8b1e1e 52%,#641515 100%);position:absolute;inset:9px}.dice_shape-d20{clip-path:polygon(50% 0,82% 14%,100% 48%,86% 82%,50% 100%,14% 82%,0 48%,18% 14%);width:76px;height:76px}.dice_shape-d20:before{content:"";clip-path:inherit;background:linear-gradient(145deg,#f3d77b 0%,#d4af37 45%,#9d7922 100%);position:absolute;inset:5px}.dice_shape-d20:after{content:"";clip-path:inherit;background:linear-gradient(145deg,#a23e2e 0%,#8b1e1e 52%,#641515 100%);position:absolute;inset:9px}.dice_type-label{z-index:1;font-family:var(--font-ui);letter-spacing:.12em;font-size:.78rem;font-weight:800;position:relative}.dice_type-selected{z-index:1;letter-spacing:.1em;color:var(--primary);background:color-mix(in srgb, var(--primary) 10%, transparent);border-radius:999px;padding:3px 7px;font-size:.58rem;font-weight:800;position:relative}.dice_type:hover .dice_type-shape{filter:drop-shadow(0 8px 7px #0000002e);transform:translateY(-3px)rotate(-3deg)}.dice_controls{justify-content:flex-end;align-items:flex-end;gap:12px;width:100%;display:flex}.dice_count-control{flex-direction:column;gap:6px;display:flex}.dice_count-control label{font-family:var(--font-ui);letter-spacing:.04em;opacity:.7;font-size:.75rem;font-weight:700}.dice_count-control select{min-width:120px;height:42px;color:inherit;background:var(--background);border:1px solid var(--border);font:inherit;cursor:pointer;border-radius:7px;outline:none;padding:0 32px 0 12px;transition:border-color .15s,box-shadow .15s}.dice_count-control select:hover{border-color:var(--primary)}.dice_count-control select:focus{border-color:var(--primary);box-shadow:0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent)}.dice_results{width:100%}.dice_result-panel{flex-direction:column;gap:22px;width:100%;display:flex}.dice_result-header{justify-content:space-between;align-items:flex-end;gap:16px;display:flex}.dice_result-header h2{font-family:var(--font-display);margin:4px 0 0;font-size:1.4rem;line-height:1.3}.dice_result-count{letter-spacing:.05em;border:1px solid var(--border);opacity:.7;border-radius:999px;padding:5px 10px;font-size:.72rem;font-weight:700}.dice_grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;width:100%;display:grid}.dice_die{text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:8px;min-height:190px;display:flex;position:relative}.dice_die-number{opacity:.45;font-size:.65rem;font-weight:700;position:absolute;top:10px;left:12px}.dice_die-label{font-family:var(--font-ui);letter-spacing:.14em;color:var(--primary);opacity:.75;font-size:.68rem;font-weight:800}.dice_die-shape{color:#f5e6c8;width:100px;height:100px;font-family:var(--font-display);font-size:2.5rem;font-weight:800}.dice_die-shape.dice_shape-d4{width:108px;height:102px}.dice_die-shape.dice_shape-d6{width:100px;height:100px}.dice_die-shape.dice_shape-d8{width:104px;height:104px}.dice_die-shape.dice_shape-d10{width:102px;height:108px}.dice_die-shape.dice_shape-d12{width:108px;height:102px}.dice_die-shape.dice_shape-d20{width:110px;height:110px}.dice_die:hover .dice_die-shape{filter:drop-shadow(0 5px #2b1d16)drop-shadow(0 12px 18px #0000003d);transform:translateY(-4px)rotate(-2deg)}.dice_die-shape.is-rolling{animation:.5s dice-roll}@keyframes dice-roll{0%{transform:rotate(0)scale(1)}25%{transform:rotate(12deg)scale(.9)}50%{transform:rotate(-12deg)scale(1.08)}75%{transform:rotate(7deg)scale(.96)}to{transform:rotate(0)scale(1)}}.dice_total{border-top:1px solid var(--border);justify-content:space-between;align-items:center;gap:16px;padding-top:18px;display:flex}.dice_total div{flex-direction:column;gap:3px;display:flex}.dice_total span{font-family:var(--font-ui);letter-spacing:.13em;color:var(--primary);font-size:.7rem;font-weight:800}.dice_total small{opacity:.55;font-size:.78rem}.dice_total strong{font-family:var(--font-display);font-size:2rem;line-height:1}.dice_empty{text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:10px;min-height:250px;display:flex}.dice_empty-stage{width:78px;height:78px;margin-bottom:4px;font-size:1.5rem}.dice_empty-stage.dice_shape-d4{width:84px;height:80px}.dice_empty-stage.dice_shape-d10{width:80px;height:84px}.dice_empty-stage.dice_shape-d12{width:84px;height:80px}.dice_empty-stage.dice_shape-d20{width:86px;height:86px}.dice_empty-stage{color:#f5e6c8;filter:drop-shadow(0 4px #2b1d16)drop-shadow(0 8px 12px #0003)}.dice_empty-stage span{color:#f5e6c8;text-shadow:0 2px 3px #0006}.dice_empty strong{font-family:var(--font-display);font-size:1.1rem}.dice_empty p{opacity:.6;max-width:400px;margin:0;font-size:.88rem;line-height:1.6}.tool-info{flex-direction:column;gap:28px;width:100%;display:flex}@media (max-width:900px){.dice_type-grid,.dice_grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (max-width:640px){.dice_container{gap:28px}.dice_selection{gap:20px}.dice_selection-header h2{font-size:1.25rem}.dice_selection-header p{font-size:.88rem}.dice_type-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.dice_type{min-height:125px;padding:12px 6px}.dice_type-shape{width:52px;height:52px;font-size:1.1rem}.dice_type-shape.dice_shape-d4{width:55px;height:52px}.dice_type-shape.dice_shape-d10{width:53px;height:56px}.dice_type-shape.dice_shape-d12{width:57px;height:54px}.dice_type-shape.dice_shape-d20{width:57px;height:57px}.dice_type-label{font-size:.7rem}.dice_type-selected{font-size:.5rem}.dice_controls{flex-direction:column;align-items:stretch}.dice_count-control,.dice_count-control select,.dice_controls button{width:100%}.dice_grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.dice_die{min-height:160px}.dice_die-shape{width:72px;height:72px;font-size:1.8rem}.dice_die-shape.dice_shape-d4{width:78px;height:74px}.dice_die-shape.dice_shape-d10{width:74px;height:78px}.dice_die-shape.dice_shape-d12{width:78px;height:74px}.dice_die-shape.dice_shape-d20{width:80px;height:80px}.dice_result-header{flex-direction:column;align-items:flex-start}.dice_result-count{align-self:flex-start}.dice_total strong{font-size:1.7rem}.tool-info{gap:24px}}@media (max-width:380px){.dice_container{gap:24px}.dice_type-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dice_type{min-height:120px}.dice_grid{grid-template-columns:1fr}.dice_die{min-height:150px}.dice_die-shape{width:86px;height:86px;font-size:2rem}.dice_die-shape.dice_shape-d4{width:92px;height:88px}.dice_die-shape.dice_shape-d10{width:88px;height:92px}.dice_die-shape.dice_shape-d12{width:92px;height:88px}.dice_die-shape.dice_shape-d20{width:94px;height:94px}.dice_empty{min-height:220px}}@media (prefers-reduced-motion:reduce){.dice_container *,.dice_container :before,.dice_container :after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}
