:root{color-scheme:light;--ink:#122b32;--muted:#536970;--mint:#c9f2df;--paper:#f1f7f5;--line:#d4e2dd;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0}a{color:inherit}button,input,select{font:inherit}button,a,input,select,summary{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:1px solid #aebfba;background:#fff;border-radius:10px;padding:12px 18px;font-weight:650;color:var(--ink)}button:hover:not(:disabled){background:#e4f4ed}button:disabled{cursor:not-allowed;opacity:.5}:focus-visible{outline:3px solid #267860;outline-offset:4px}.skip{position:absolute;left:20px;top:-100px;z-index:5;background:white;padding:14px}.skip:focus{top:16px}header,main,footer{max-width:1140px;margin:auto;padding-left:30px;padding-right:30px}header{display:flex;align-items:center;justify-content:space-between;padding-top:27px;padding-bottom:27px}header>a:last-child{font-size:.9rem;text-decoration:none}.brand{font-size:1.15rem;font-weight:750;text-decoration:none;display:flex;align-items:center;gap:10px}.brand span{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:var(--ink);color:var(--mint);font-size:1.3rem}.intro{padding:43px 0 38px}.eyebrow{font-size:.75rem;font-weight:750;letter-spacing:.12em;margin:0 0 15px}h1{font-size:clamp(3rem,6.4vw,5rem);line-height:1.02;letter-spacing:-.055em;font-weight:600;margin:0}h1 em{font-style:normal;color:#25775e}.intro>p:last-child{font-size:1.08rem;color:var(--muted);line-height:1.7;margin:24px 0 0}h2{font-size:1.6rem;letter-spacing:-.035em;margin:0}h3{font-size:1.07rem;margin:0 0 12px}.tool{background:#fff;border:1px solid var(--line);border-radius:23px;box-shadow:0 12px 35px #122b3209;overflow:hidden;scroll-margin-top:20px}.tool-heading{display:flex;align-items:center;justify-content:space-between;padding:24px 30px;border-bottom:1px solid var(--line);gap:16px}.tool-heading>span{font-size:.85rem;color:var(--muted)}.workspace{display:grid;grid-template-columns:minmax(230px,.8fr) minmax(0,1.2fr)}form{padding:28px 30px}label{font-size:.9rem;font-weight:650;display:block;margin:0 0 9px}input,select{width:100%;padding:13px 14px;border:1px solid #bdcec8;border-radius:10px;background:#fbfdfc;color:var(--ink);min-height:48px}select{appearance:none;padding-right:40px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23122b32' stroke-width='1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-size:16px;background-position:right 14px center}.hint{color:var(--muted);font-size:.85rem;line-height:1.6;margin:8px 0 22px}#custom-wrap{margin-top:22px}[hidden]{display:none!important}.primary{display:block;background:var(--ink);color:white;width:100%;margin-top:26px;border-color:var(--ink);padding:15px}.primary:hover:not(:disabled){background:#254b53}.small{font-size:.85rem;color:var(--muted);line-height:1.6;margin:16px 0 0}.error{color:#a22f2f;font-size:.9rem;line-height:1.5}.error:empty{display:none}.result{padding:30px;background:#17373e;color:#f4fff9;display:flex;flex-direction:column;align-items:center;text-align:center;min-width:0}.result .eyebrow{color:#bed5cf;line-height:1.6}.sum{display:flex;gap:14px;align-items:baseline}.sum>strong{font-size:4.7rem;font-weight:600;letter-spacing:-.06em;line-height:1.1;color:var(--mint)}.sum>span{font-size:.9rem;color:#bed5cf}.dice{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;width:100%;margin:20px 0}.die{display:grid;place-items:center;min-width:56px;min-height:56px;padding:8px;border-radius:12px;background:#f3fff9;color:#17373e;font-size:1.5rem;font-weight:650;box-shadow:0 4px 0 #0d252b}.extremes{display:flex;justify-content:center;gap:28px;font-size:.85rem;color:#bed5cf;margin:7px 0 22px}.extremes strong{display:block;color:white;font-size:1.2rem;margin-top:5px}.result button{margin-top:auto;border-color:#567c76;background:transparent;color:#e9fff4;font-size:.9rem}.result button:hover:not(:disabled){background:#264c51}.status{padding:16px 30px;font-size:.9rem;color:var(--muted);margin:0;line-height:1.6;overflow-wrap:anywhere}.history{margin-top:40px;padding:26px 30px;border:1px solid var(--line);border-radius:18px;background:#ffffff80}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.section-heading .eyebrow{font-size:.7rem;margin-bottom:9px}.section-heading button{font-size:.85rem}.history .hint{margin-bottom:12px}#history-empty{color:var(--muted);font-size:.95rem;line-height:1.6}#history-list{list-style:none;margin:0;padding:0}#history-list li{display:grid;grid-template-columns:70px minmax(0,1fr) auto;align-items:center;gap:14px;padding:14px 0;border-top:1px solid var(--line);font-size:.9rem}.roll-number{color:var(--muted);font-size:.8rem}.history-expression{overflow-wrap:anywhere;line-height:1.6}#history-list strong{font-size:1.2rem}.guide{padding:65px 0 35px}.guide h2,.faq h2{font-size:2rem}.guide-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:30px;margin-top:28px}article p{font-size:.95rem;color:var(--muted);line-height:1.75;margin:0}.faq{padding:15px 0 60px}.faq h2{margin-bottom:25px}details{border-top:1px solid var(--line);padding:18px 0}details:last-child{border-bottom:1px solid var(--line)}summary{cursor:pointer;font-size:.98rem;font-weight:600;line-height:1.6}details p{font-size:.95rem;color:var(--muted);line-height:1.75;max-width:850px;margin:12px 0 0}footer{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding-top:25px;padding-bottom:35px;gap:20px}footer span{font-size:.85rem;color:var(--muted)}@media(max-width:650px){header,main,footer{padding-left:20px;padding-right:20px}.intro{padding-top:24px}.intro>p:last-child br{display:none}.tool-heading{align-items:flex-start;flex-direction:column;gap:6px;padding:22px}.workspace{grid-template-columns:1fr}form{padding:22px}.result{padding:26px 20px}.status{padding:16px 22px}.history{padding:22px}.section-heading{align-items:flex-start}.section-heading button{padding:10px 12px}.guide-grid{grid-template-columns:1fr;gap:25px}.guide{padding-top:45px}.guide h2,.faq h2{font-size:1.8rem}#history-list li{grid-template-columns:50px minmax(0,1fr) auto;gap:10px}footer{flex-direction:column;gap:7px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}
