:root{color-scheme:dark;--bg:#091311;--ink:#edf5ef;--muted:#9aac9f;--line:#ffffff17;--mint:#b8f5cc;--blue:#b6dafa;--amber:#f3d3a4}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-height:100vh;background:radial-gradient(ellipse at 85% 0,#264c3a55,transparent 50%),var(--bg);color:var(--ink);font-family:"Avenir Next","Segoe UI",sans-serif;-webkit-font-smoothing:antialiased}.page{position:relative;width:calc(100% - 112px);max-width:1280px;margin:auto}a{color:inherit;text-decoration:none}a:hover{color:var(--mint)}nav{min-height:90px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:20px}.brand{display:flex;gap:14px;align-items:center;font-size:11px;letter-spacing:.13em;font-weight:700}.brand-icon{display:grid;place-items:center;width:39px;height:39px;border:1px solid #a8c6b846;border-radius:12px;font-size:28px;letter-spacing:-.06em;font-weight:500;padding-bottom:6px}.brand-sub{display:block;margin-top:5px;font-size:10px;letter-spacing:0;color:var(--muted);font-weight:400}.back{font-size:12px;display:flex;align-items:center;gap:20px;color:#b2c3ba}.back span{font-size:22px}.hero{position:relative;display:flex;justify-content:space-between;align-items:center;gap:32px;padding:42px 0 35px}.eyebrow{font-size:10px;letter-spacing:.17em;color:var(--mint);font-weight:500;display:flex;gap:12px;align-items:center;margin:0 0 20px}.eyebrow:before{content:"";height:1px;width:24px;background:var(--mint)}h1{font-size:clamp(48px,5.7vw,80px);font-weight:500;letter-spacing:-.065em;line-height:1.06;margin:0}h1 em{color:var(--mint);font-style:normal}.intro{font-size:13px;color:#a9bbb1;line-height:1.85;margin:20px 0 0}.hero-note{align-self:flex-end;text-align:right;color:#9ab19f;font-size:10px;letter-spacing:.1em;line-height:1.8;padding-bottom:5px}.hero-note strong{display:block;font-size:56px;font-weight:300;color:#c3dfcb;letter-spacing:-.05em;line-height:1.2}.section-heading{display:flex;align-items:center;gap:14px}.section-number{font:10px monospace;color:#789582}h2{font-size:18px;font-weight:500;letter-spacing:-.03em;margin:0}.panel{padding:26px;border:1px solid #b8f5cc24;border-radius:22px;background:radial-gradient(ellipse at 100% 0,#23423588,transparent 70%),linear-gradient(150deg,#15221b,#0e1b17);min-width:0}.blue-panel{border-color:#b6dafa24;background:radial-gradient(ellipse at 100% 0,#203848aa,transparent 70%),linear-gradient(150deg,#16232a,#101d23)}button,select{font:inherit;font-size:12px;border-radius:30px;padding:13px 19px}button{background:var(--mint);border:1px solid var(--mint);color:#14251b;font-weight:600;cursor:pointer;transition:transform .2s,background .2s;min-height:43px}button:hover{background:#d2ffdf;transform:translateY(-2px)}button.secondary{background:#c0f4d107;border:1px solid #94c0a740;color:#deeee3}button.secondary:hover{background:#c0f4d119}button:disabled{opacity:.5;cursor:wait;transform:none}select{background:#0c1a14;color:var(--ink);border:1px solid #94c0a740;min-height:43px;cursor:pointer}label{font-size:11px;color:#a9beb1}:focus-visible{outline:2px solid var(--mint);outline-offset:5px}.hint{font-size:11px;line-height:1.7;color:#8da697}.divider{height:1px;background:var(--line);margin:25px 0}.about{display:flex;justify-content:space-between;gap:25px;margin:30px 0;color:#91aa9a;font-size:11px;line-height:1.8}.about strong{font-weight:500;color:#c2d6c8}footer{border-top:1px solid var(--line);padding:24px 0 32px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;color:#809588;font-size:10px}footer a{color:#bed0c2}.sibling-links{display:flex;gap:22px}.noscript{padding:16px;color:var(--amber);border:1px solid #f3d3a444;border-radius:10px}details summary{cursor:pointer;list-style:none}details summary::-webkit-details-marker{display:none}.details-label{display:flex;justify-content:space-between;align-items:center}.details-label:after{content:"+";font-size:23px;color:var(--amber)}details[open] .details-label:after{content:"−"}@media(max-width:1000px){.page{width:calc(100% - 64px)}}@media(max-width:760px){.page{width:calc(100% - 40px)}nav{min-height:87px}.brand{font-size:9px;gap:10px}.brand-sub{font-size:9px}.back{font-size:0}.back span{font-size:23px}.hero{padding:34px 0 30px}.eyebrow{font-size:8px;letter-spacing:.12em;margin-bottom:20px}h1{font-size:clamp(43px,9vw,65px)}.intro{font-size:12px}.hero-note{display:none}.panel{padding:23px}.about{flex-direction:column;gap:12px}footer{font-size:10px;align-items:flex-start}.sibling-links{flex-wrap:wrap;gap:15px}button,select{font-size:12px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}}
.grid{display:grid;grid-template-columns:1.28fr 1fr;gap:18px}.play-panel{display:flex;flex-direction:column}.dice-stage{margin:20px 0 24px;padding:12px;border-radius:18px;background:radial-gradient(ellipse at 50% 50%,#3c665944,transparent 70%),#06130b44;border:1px solid #b8f5cc12;flex:1;display:grid;align-items:center;min-height:295px}.dice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.dice-grid[data-dice-count="1"]{grid-template-columns:1fr}.dice-grid[data-dice-count="2"],.dice-grid[data-dice-count="4"]{grid-template-columns:repeat(2,1fr)}.die-wrap{min-height:122px}.die{background:linear-gradient(145deg,#d7f4df,#a0caae 65%,#71a185);border:1px solid #c3ecd0;border-radius:20px;box-shadow:inset 1px 2px 4px #fff8,inset -2px -3px 9px #274c3a55,0 12px 22px #0005;z-index:1}.die-wrap:nth-child(3n+2) .die{background:linear-gradient(145deg,#def0ff,#a0c4de 65%,#749ab3);border-color:#c5e4fb}.die-wrap:nth-child(3n) .die{background:linear-gradient(145deg,#fff0d7,#d6b988 65%,#a79062);border-color:#efdbb5}.pip{background:radial-gradient(circle at 35% 30%,#294b37,#122b1d 72%);box-shadow:inset 0 2px 3px #0006}.die-shadow{background:#0008}.controls{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap}.control{display:flex;flex-direction:column;gap:7px;margin-right:auto}.control select{min-width:105px}.hint{margin:16px 0 0}.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:27px 0 30px}.stat{padding:15px 12px;border:1px solid #b6dafa1c;border-radius:14px;background:#b6dafa06;min-width:0}.label{display:block;color:#a3b7c3;font-size:10px;margin-bottom:10px}.value{font-size:clamp(24px,2.8vw,39px);font-weight:400;color:var(--blue);letter-spacing:-.045em;font-variant-numeric:tabular-nums}.distribution-heading{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #b6dafa1a;padding-top:22px;margin-bottom:18px;gap:10px}.distribution-heading h3{font-size:12px;font-weight:400;margin:0}.distribution-heading span{font-size:9px;color:#94a9b6}.bars{display:grid;gap:15px}.bar-row{display:grid;grid-template-columns:25px 1fr 22px;align-items:center;gap:12px;font-size:12px}.bar-row strong{width:24px;height:24px;display:grid;place-items:center;border:1px solid #b6dafa25;border-radius:6px;font-size:10px;color:var(--blue);font-weight:500}.bar-row>span{text-align:right;color:#b2c7d4}.bar-track{height:4px;border-radius:10px;background:#b6dafa13;overflow:hidden}.bar-fill{height:100%;background:linear-gradient(90deg,#75adcc,var(--blue));border-radius:10px;transition:width .2s}.batch-panel{margin-top:18px;background:radial-gradient(ellipse at 100% 0,#443a2988,transparent 70%),#202219;border-color:#f3d3a424;padding:22px 26px}.details-label{font-size:13px}.batch-content{display:grid;grid-template-columns:1fr 1fr;gap:45px;margin-top:30px}.batch-eyebrow{font-size:9px;letter-spacing:.15em;color:var(--amber);margin:0 0 15px}.batch-content h2{font-size:32px;color:var(--amber);line-height:1.2}.batch-content p#batch-summary{color:#b9bca7;font-size:12px;line-height:1.85;margin-top:20px}.batch-table{border-collapse:collapse;width:100%;font-size:12px}.batch-table th{text-align:left;font-size:10px;font-weight:400;color:#a9b19b;padding:0 0 12px}.batch-table td{padding:8px 0;border-top:1px solid #f3d3a414;color:var(--amber)}.batch-table th:last-child,.batch-table td:last-child{text-align:right}@media(max-width:1050px){.grid{grid-template-columns:1fr 1fr}.die{width:76px;height:76px;padding:9px;border-radius:16px}.pip{width:11px;height:11px}.dice-grid{gap:5px}.controls{gap:8px}.control{width:100%;flex-direction:row;align-items:center;justify-content:space-between}.controls button{flex:1;padding:12px}.value{font-size:27px}.stat{padding:14px 9px}.stats{gap:6px}}@media(max-width:760px){.grid{grid-template-columns:1fr}.dice-stage{min-height:266px;padding:9px}.die{width:75px;height:75px}.die-wrap{min-height:108px}.stats{margin-top:24px;gap:8px}.value{font-size:32px}.stat{padding:16px 11px}.batch-content{grid-template-columns:1fr;gap:24px}.batch-panel{padding:22px}.distribution-heading{padding-top:20px}.bars{gap:13px}}

/* Six solid faces form the cube. The outer pose keeps its depth visible at rest. */
.die-wrap{--size:72px;--light:#ddf4e3;--mid:#a5cbb2;--edge:#70977e;position:relative;display:grid;place-items:center;min-height:142px;perspective:650px;perspective-origin:50% 35%}
.die-wrap:nth-child(3n+2){--light:#e0f1ff;--mid:#a3c7df;--edge:#7194ae}
.die-wrap:nth-child(3n){--light:#fff0d6;--mid:#d9bf94;--edge:#ad9062}
.die,.die-wrap:nth-child(3n+2) .die,.die-wrap:nth-child(3n) .die{position:relative;width:var(--size);height:var(--size);padding:0;border:0;border-radius:0;background:none;box-shadow:none;display:block;transform-style:preserve-3d;transform:rotateX(-18deg) rotateY(-24deg);transition:none;cursor:pointer;z-index:1}
.cube{position:absolute;inset:0;transform-style:preserve-3d}
.cube-face{position:absolute;inset:0;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);padding:10px;border:1px solid var(--edge);border-radius:3px;background:linear-gradient(135deg,var(--light),var(--mid));box-shadow:inset 1px 1px 3px #fff9,inset -1px -1px 3px #0002;backface-visibility:hidden;-webkit-backface-visibility:hidden}
.face-1{transform:translateZ(calc(var(--size)/2))}
.face-6{transform:rotateY(180deg) translateZ(calc(var(--size)/2))}
.face-2{transform:rotateX(90deg) translateZ(calc(var(--size)/2))}
.face-5{transform:rotateX(-90deg) translateZ(calc(var(--size)/2))}
.face-3{transform:rotateY(90deg) translateZ(calc(var(--size)/2))}
.face-4{transform:rotateY(-90deg) translateZ(calc(var(--size)/2))}
.face-3,.face-4{background:linear-gradient(135deg,var(--mid),var(--edge))}
.face-2,.face-5{background:linear-gradient(135deg,var(--light) 25%,var(--mid))}
.pip{display:block;justify-self:center;align-self:center;width:11px;height:11px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#294b37,#10271a 72%);box-shadow:inset 0 2px 3px #0006;opacity:0;transform:none;transition:none}
.pip.active{opacity:1;transform:none}
.die-shadow{position:absolute;bottom:12px;width:82px;height:23px;border-radius:50%;background:#0009;filter:blur(8px);opacity:.45;pointer-events:none}
.dice-stage{overflow:visible;min-height:340px;padding:15px 10px}.dice-grid{gap:14px}
@media(max-width:1050px){.die-wrap{--size:58px;min-height:123px}.cube-face{padding:7px}.pip{width:9px;height:9px}.die-shadow{width:66px;height:18px}.dice-grid{gap:10px}.dice-stage{min-height:290px}}
@media(max-width:760px){.die-wrap{--size:55px;min-height:119px}.cube-face{padding:7px}.pip{width:8px;height:8px}.die-shadow{width:63px;bottom:15px}.dice-stage{padding:12px 4px;min-height:286px}.dice-grid{gap:7px}}
