:root{color-scheme:light;--page:#edf1e8;--paper:#fffef8;--ink:#172e28;--sub:#495d54;--line:#d2dbce;--green:#164840;--mint:#d9efc7;--hit:#278067;--amber:#f1bd70;--focus:#763500;font-family:system-ui,"Microsoft YaHei",sans-serif;font-size:16px;color:var(--ink);background:var(--page)}
*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,.segments input:focus-visible+span{outline:3px solid var(--focus);outline-offset:3px}button[aria-disabled="true"]{cursor:default} [hidden]{display:none!important}
.wrap{width:min(1160px,calc(100% - 72px));margin-inline:auto}.top{background:var(--green);color:#fffef8;border-bottom:3px solid #badbb4}.top-inner{display:flex;align-items:center;gap:11px;height:63px}.top-inner img{border:1px solid #63978a;border-radius:7px}.top-inner strong{font-size:.96rem}.brand-sub{margin-left:12px;color:#d7e7dc;font-size:.78rem}.edition,.kicker{font:600 .72rem/1.45 ui-monospace,Consolas,"Microsoft YaHei",monospace}.edition{margin-left:auto;color:#e1eee2;white-space:nowrap}
.intro{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;padding:35px 0 25px}.kicker{margin:0 0 5px;color:#3c6557}h1,h2,p,figure,dl,dd{margin:0}h1{font-size:3rem;line-height:1.12}h2{font-size:1.45rem;line-height:1.25}.intro-copy{margin-top:9px;color:var(--sub);line-height:1.5}.assumptions{display:flex;align-items:center;gap:7px;white-space:nowrap;color:#35574a;font-size:.78rem;padding:8px 10px;border:1px solid #c7d6c6;border-radius:4px;background:#f7fbef}.assumptions i,.assumptions span{display:inline-block;width:6px;height:6px;border-radius:50%;background:#378359}.assumptions span{width:3px;height:3px;background:#7e9588}
.workspace{display:grid;grid-template-columns:minmax(0, .88fr) minmax(0,1.25fr);gap:16px;align-items:stretch}.panel{min-width:0;background:var(--paper);border:1px solid #c9d5c7;border-radius:8px;padding:21px 22px}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:17px}.sample{color:var(--green);background:#f6faf3;border:1px solid #c8d9cd;border-radius:5px;min-height:40px;padding:5px 10px;font-size:.82rem;white-space:nowrap}.sample:hover,.stepper button:not([aria-disabled="true"]):hover{background:#e4efe2}.exact{color:#284e39;background:#e1efd7;border:1px solid #cfdfc7;border-radius:4px;padding:5px 8px;font-size:.74rem;white-space:nowrap}
.dice-count{margin:0;padding:0;border:none;min-width:0}.dice-count legend,.legend{font-size:.82rem;color:var(--sub);font-weight:650}.segments{margin-top:7px;display:grid;grid-template-columns:repeat(3,1fr);gap:4px;background:#edf2e8;border:1px solid var(--line);border-radius:6px;padding:3px}.segments label{position:relative;cursor:pointer}.segments input{position:absolute;width:1px;height:1px;opacity:0}.segments span{display:grid;place-items:center;min-height:34px;border-radius:4px;font-size:.87rem;font-weight:650}.segments input:checked+span{color:white;background:var(--green)}.segments input:not(:checked)+span:hover{background:#dfeade}
.legend{display:flex;gap:15px;margin:17px 0 8px}.legend span{display:flex;align-items:center;gap:5px}.face{display:inline-grid;place-items:center;width:100%;aspect-ratio:1;border-radius:4px}.legend .face{width:13px}.hit{background:#248166;border:1px solid #17644d}.hit::after{content:"";border-radius:50%;width:27%;aspect-ratio:1;background:#fffdf0}.miss{background:#f5cb8a;border:1px solid #bc8248}.miss::after{content:"";width:36%;height:2px;background:#7b471d;border-radius:1px;transform:rotate(-35deg)}
.tower{display:grid;align-content:start;gap:7px;min-height:233px;padding:10px;background:#eaf0e4;border:1px solid #cbd9ca;border-top:5px solid var(--green);border-radius:5px 5px 8px 8px}.die{display:grid;grid-template-columns:max-content minmax(0,1fr) max-content;align-items:center;gap:8px;min-height:45px;padding:4px 7px;background:#fffef7;border:1px solid #cfdbce;border-radius:5px}.die-label,.die-value{font:650 .78rem/1.15 ui-monospace,Consolas,"Microsoft YaHei",monospace;white-space:nowrap}.die-label{color:#30594c}.faces{width:min(100%,172px);display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px}.stepper{display:flex;align-items:center;gap:3px}.stepper button{width:32px;height:34px;border:1px solid #cbd8ce;border-radius:4px;background:#f6faf3;color:var(--green);font-size:1.08rem;line-height:1;padding:0}.stepper button[aria-disabled="true"]{color:#717a73;background:#e9ede7}.die-value{min-width:26px;text-align:center}.sample-caption{color:#466256;font-size:.8rem;margin-top:11px}
.metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid #d9e3d5;background:#f2f7ec;border-radius:6px;padding:9px 0}.metrics div{padding:0 12px}.metrics div+div{border-left:1px solid #d2ded1}.metrics dt,.figure figcaption{color:#445b50;font-size:.78rem;font-weight:650}.metrics dd{margin-top:3px;font-size:1.16rem;font-weight:750;font-variant-numeric:tabular-nums}
.figure{margin-top:13px}.figure figcaption{margin-bottom:1px}#chart{display:block;width:100%;height:206px;overflow:hidden}#chart text{font:500 11px system-ui,"Microsoft YaHei",sans-serif;fill:#476157}#chart .value{font-weight:700;fill:#18352b}#chart .tick{font-size:12px}.axis-base{stroke:#a6b9ae}.axis-grid{stroke:#dde6dc;stroke-dasharray:3 3}.bar{fill:#278067}.bar.peak{fill:#edaf58;stroke:#ae7238;stroke-width:.65}
table{width:100%;table-layout:fixed;border-collapse:collapse;font-variant-numeric:tabular-nums;font-size:.79rem;text-align:right}table th:first-child,table td:first-child{text-align:left;width:18%}td,th{padding:5px 8px;border-block-end:1px solid #e3e8df}thead th{color:#38584b;font-weight:700;background:#edf3e9}tbody th{font-weight:600}.peak-row{background:#ffeed4;font-weight:700}.note{font-size:.78rem;color:var(--sub);line-height:1.55}.result .note{margin-top:8px}
.export{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,340px);align-items:start;gap:12px;margin-top:16px;padding:16px 21px;background:#e1eddd;border:1px solid #cad9c6;border-radius:7px}.export .note{margin-top:5px}.export h2{font-size:1.21rem}.format{font:650 .7rem ui-monospace,monospace;color:#3c5b50;vertical-align:middle}.export-action{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:4px 10px}.confirm{min-height:40px;display:flex;align-items:center;gap:6px;font-size:.8rem;cursor:pointer}.confirm input{flex:none;margin:0;width:17px;height:17px;accent-color:var(--green)}.export-button{display:flex;align-items:center;gap:6px;white-space:nowrap;background:var(--green);color:#fffef8;border:1px solid var(--green);border-radius:5px;padding:0 11px;min-height:42px;font-size:.83rem;font-weight:650}.export-button:hover{background:#235d51}.export-button[aria-disabled="true"]{opacity:.65}#export-status{flex:0 0 100%;min-height:1.2em;color:#633817;font-size:.77rem;line-height:1.35;text-align:right}
footer{display:flex;flex-wrap:wrap;justify-content:space-between;gap:3px 20px;padding:12px 0 17px;color:#475c53;font-size:.73rem}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:900px){.wrap{width:calc(100% - 44px)}.workspace{grid-template-columns:minmax(0, .94fr) minmax(0,1.05fr)}.panel{padding:16px 14px}.die{gap:5px;padding-inline:5px}.stepper button{width:29px}}
@media(max-width:700px){.wrap{width:calc(100% - 28px)}.top-inner{height:56px}.intro{align-items:flex-start;flex-direction:column;padding:21px 0 15px;gap:8px}h1{font-size:2.25rem}.intro-copy{font-size:.9rem;margin-top:7px}.assumptions{padding:4px 8px}.workspace,.export{grid-template-columns:minmax(0,1fr);gap:10px}.panel{padding:14px 12px}.panel-head{margin-bottom:12px}.tower{min-height:0}.export{padding:13px;margin-top:10px}.export-action{justify-content:flex-start}#export-status{text-align:left}.metrics div{padding-inline:7px}.brand-sub{display:none}}
@media(max-width:360px){.die-label{font-size:.72rem}.tower{padding:6px}.faces{gap:3px}.die{gap:4px;padding-inline:4px}.stepper{gap:2px}.stepper button{width:27px}.die-value{min-width:23px}.metrics dt{font-size:.72rem}td,th{padding-inline:4px}}
@media(forced-colors:active){.hit::after,.miss::after,.bar{forced-color-adjust:none}.bar.peak{forced-color-adjust:none}.segments input:checked+span{border:2px solid Highlight}.stepper button[aria-disabled="true"]{color:GrayText}}
