@import "https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+JP:wght@400;500;600;700&display=swap";:root{color:#18233a;font-synthesis:none;background:#f5f7fb;font-family:DM Sans,Noto Sans JP,sans-serif}*{box-sizing:border-box}body{min-width:320px;min-height:100vh;margin:0}button,input{font:inherit}button{cursor:pointer}#root{min-height:100vh}main{background:radial-gradient(circle at 50% 18%,#fff 0,#f8faff 30%,#f4f7fb 65%);min-height:100vh}header{-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#ffffffd9;border-bottom:1px solid #e5eaf1;justify-content:space-between;align-items:center;height:68px;padding:0 clamp(24px,5vw,76px);display:flex}.brand{color:#1d2b45;align-items:center;gap:11px;font-size:17px;font-weight:700;display:flex}.brand b{color:#fff;background:#5047d5;border-radius:8px;place-items:center;width:30px;height:30px;display:grid;box-shadow:0 5px 12px #4f46e530}.reset{color:#718096;background:0 0;border:0;font-size:12px;font-weight:600}.reset:disabled{opacity:.3;cursor:default}.room-tools{align-items:center;gap:12px;display:flex}.status{color:#8a95a6;font-size:10px}.status:before{content:"";background:#f59e5b;border-radius:50%;width:7px;height:7px;margin-right:5px;display:inline-block}.status.connected:before{background:#36b37e;box-shadow:0 0 0 3px #36b37e20}.share{color:#554bd5;background:#fff;border:1px solid #dde3ec;border-radius:7px;padding:7px 10px;font-size:11px;font-weight:600}.hero{text-align:center;padding:36px 24px 45px}.dice-stage{flex-direction:column;justify-content:center;align-items:center;min-height:134px;margin:0 auto 28px;display:flex}.dice-row{flex-wrap:wrap;justify-content:center;gap:20px;display:flex}.die{background:#fff;border:1px solid #e5e9f1;border-radius:18px;grid-template-rows:repeat(3,1fr);grid-template-columns:repeat(3,1fr);width:82px;height:82px;padding:14px;display:grid;box-shadow:0 14px 30px #313e5c1f,inset 0 -2px 5px #2631490d}.pip{opacity:0;background:#4f46d9;border-radius:50%;place-self:center;width:10px;height:10px;box-shadow:inset 0 1px 2px #0003}.pip.on{opacity:1}.die.rolling{animation:.42s tumble}.die.rolling:nth-child(2n){animation-direction:reverse}@keyframes tumble{0%{transform:rotate(0)scale(1)}45%{transform:rotate(12deg)scale(.9)translateY(-8px)}to{transform:rotate(0)scale(1)}}.sum-display{color:#788397;justify-content:center;align-items:baseline;gap:10px;margin-top:14px;display:flex}.sum-display span{font-size:13px;font-weight:600}.sum-display strong{color:#202d46;letter-spacing:-2px;font-size:48px;line-height:1}.recent-results{color:#8b95a5;justify-content:center;align-items:center;gap:10px;margin:-12px 0 16px;font-size:10px;display:flex}.recent-results>div{gap:6px;display:flex}.recent-results b{color:#6e798c;background:#fff;border:1px solid #e0e5ed;border-radius:8px;place-items:center;min-width:28px;height:28px;padding:0 6px;font-size:12px;display:grid}.recent-results b.latest{color:#5148cd;background:#f2f0ff;border-color:#cfcaff;font-size:14px}.recent-results small{color:#a1a9b6}.roll-actions{justify-content:center;align-items:center;gap:10px;display:flex}.roll{color:#fff;background:linear-gradient(135deg,#675ee2,#4b43cb);border:0;border-radius:10px;justify-content:center;align-items:center;gap:10px;min-width:166px;padding:13px 27px;font-size:14px;font-weight:700;transition:all .16s;display:inline-flex;box-shadow:0 10px 22px #554bd735}.roll.turn-end{background:linear-gradient(135deg,#39ae7c,#248b61);box-shadow:0 10px 22px #248b6135}.roll:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 13px 26px #554bd748}.roll.turn-end:hover:not(:disabled){box-shadow:0 13px 26px #248b6145}.roll span{font-size:19px}.roll:disabled{cursor:not-allowed;opacity:.7}.undo{color:#667187;background:#fff;border:1px solid #dfe4ed;border-radius:10px;padding:12px 15px;font-size:12px;font-weight:600}.undo:disabled{opacity:.35;cursor:not-allowed}.shortcut{color:#a3abb9;margin-top:10px;font-size:10px}.dashboard{max-width:1040px;margin:auto;padding:0 24px 60px}.card{background:#fffffff2;border:1px solid #e8ecf2;border-radius:14px;box-shadow:0 8px 26px #1e2d4b0d}.controls{grid-template-columns:1fr 1px 1.6fr 1px .7fr;align-items:center;gap:30px;min-height:96px;margin-top:16px;padding:20px 30px;display:grid}.controls label{color:#7b8799;margin-bottom:10px;font-size:11px;font-weight:600;display:block}.divider{background:#edf0f5;width:1px;height:46px}.stepper{align-items:center;gap:13px;display:flex}.stepper button{color:#5d687a;background:#fff;border:1px solid #dde3ec;border-radius:7px;width:27px;height:27px;line-height:1}.stepper button:disabled{opacity:.35}.stepper strong{font-size:19px}.stepper span{color:#8a95a6;margin-left:-8px;font-size:11px}.label-row{justify-content:space-between;display:flex}.label-row b{color:#554bd5;font-size:12px}input[type=range]{--value:65%;appearance:none;background:linear-gradient(to right,#6259dc var(--value),#e5e9ef var(--value));border-radius:8px;outline:0;width:100%;height:4px;display:block}input[type=range]::-webkit-slider-thumb{appearance:none;background:#fff;border:4px solid #5d54d9;border-radius:50%;width:15px;height:15px;box-shadow:0 1px 4px #66708555}.range-label{color:#a2aab7;justify-content:space-between;margin-top:7px;font-size:9px;display:flex}.trials{text-align:center}.trials strong{font-size:23px;display:block}.trials small{color:#8d97a7;font-size:10px}.room-card{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px 20px;margin-top:12px;padding:14px 20px;display:flex}.room-current{align-items:center;gap:10px;display:flex}.room-current span{color:#7b8799;font-size:11px;font-weight:600}.room-current strong{letter-spacing:2px;font-variant-numeric:tabular-nums;color:#202d46;font-size:20px}.join{gap:6px;display:flex}.join input{width:120px;font:inherit;letter-spacing:2px;font-variant-numeric:tabular-nums;border:1px solid #dde3ec;border-radius:8px;outline:0;padding:8px 10px;font-size:16px}.join input::placeholder{letter-spacing:0;font-size:12px}.join input:focus{border-color:#8b84e6}.join button{color:#fff;background:#5d54d9;border:0;border-radius:8px;padding:8px 16px;font-size:12px;font-weight:600}.join button:disabled{opacity:.35;cursor:default}.turn-control{justify-content:space-between;align-items:center;gap:20px;margin-top:12px;padding:16px 20px;display:flex}.turn-control strong{font-size:12px}.turn-control p{color:#8b95a5;margin:3px 0 0;font-size:10px}.switch{flex:none;width:42px;height:24px;position:relative}.switch input{opacity:0;pointer-events:none;position:absolute}.switch span{cursor:pointer;background:#d9dee7;border-radius:20px;transition:all .2s;position:absolute;inset:0}.switch span:after{content:"";background:#fff;border-radius:50%;width:18px;height:18px;transition:all .2s;position:absolute;top:3px;left:3px;box-shadow:0 2px 5px #26344a35}.switch input:checked+span{background:#5d54d9}.switch input:checked+span:after{transform:translate(18px)}.chart-card{padding:25px 28px 17px}.chart-head{margin-bottom:12px}.chart-head h2{margin:0;font-size:17px}.legend{color:#7d8899;flex-wrap:wrap;justify-content:center;gap:9px 14px;font-size:11px;display:flex}.legend span{align-items:center;gap:5px;display:flex}.legend i{background:#cbd1dc;border-radius:50%;width:9px;height:9px}.legend i.purple{background:#6259dc}.legend i.gold{background:#e4ad2f}.legend i.silver{background:#8c9aaa}.legend i.bronze{background:#bd7448}.chart-scroll{-webkit-overflow-scrolling:touch;padding-bottom:4px;overflow-x:auto}.chart{height:246px;position:relative}.grid{pointer-events:none;background:repeating-linear-gradient(to top,#e6eaf0 0 1px,transparent 1px var(--grid));height:180px;position:absolute;bottom:31px;left:12px;right:12px}.bars{justify-content:space-around;align-items:flex-end;gap:8px;display:flex;position:absolute;inset:4px 12px 0}.bar-group{flex-direction:column;justify-content:flex-end;align-items:center;width:48px;height:100%;display:flex}.bar-group em{color:#554bd5;white-space:nowrap;margin-bottom:5px;font-size:14px;font-style:normal;font-weight:700}.track{justify-content:center;align-items:flex-end;width:40px;height:180px;display:flex;position:relative}.fill{min-height:2px;height:var(--size);background:linear-gradient(#766de7,#554ccd);border-radius:5px 5px 2px 2px;width:22px;transition:height .45s;position:absolute;bottom:0;left:9px;box-shadow:0 4px 10px #5d54da20}.fill.rank-1{background:linear-gradient(#f5cf62,#d99c17);box-shadow:0 4px 12px #d99c1740}.fill.rank-2{background:linear-gradient(#c8d0d9,#7f8d9e);box-shadow:0 4px 12px #7f8d9e35}.fill.rank-3{background:linear-gradient(#d99a70,#ac633b);box-shadow:0 4px 12px #ac633b35}.base{height:var(--size);z-index:2;border-top:2px dashed #bfc6d2;width:42px;position:absolute;bottom:0}.bar-group>b{color:#566277;height:31px;padding-top:8px;font-size:13px}.chart-meta{padding-top:10px}.turn-release{justify-content:space-between;align-items:center;gap:20px;margin-top:12px;padding:16px 20px;display:flex}.turn-release strong{font-size:12px}.turn-release p{color:#8b95a5;margin:3px 0 0;font-size:10px}.turn-release button{color:#667187;background:#fff;border:1px solid #dfe4ed;border-radius:10px;flex:none;padding:9px 14px;font-size:12px;font-weight:600}.turn-release button:disabled{opacity:.35;cursor:not-allowed}.tally-card{margin-top:12px;padding:20px 24px}.tally-head{justify-content:space-between;align-items:baseline;margin-bottom:14px;display:flex}.tally-head h2{margin:0;font-size:17px}.tally-head span{color:#8b95a5;font-size:11px;font-weight:600}.tally{grid-template-columns:repeat(auto-fill,minmax(76px,1fr));gap:8px;display:grid}.tally-item{background:#fff;border:1px solid #e8ecf2;border-radius:10px;flex-direction:column;align-items:center;gap:2px;padding:10px 6px 12px;display:flex;position:relative;overflow:hidden}.tally-item b{color:#566277;font-size:12px}.tally-item strong{color:#202d46;font-variant-numeric:tabular-nums;font-size:20px}.tally-item strong small{color:#8d97a7;font-size:10px;font-weight:600}.tally-item span{color:#8b95a5;font-variant-numeric:tabular-nums;font-size:10px}.tally-item i{height:3px;width:var(--size);background:#6259dc;transition:width .45s;position:absolute;bottom:0;left:0}.tally-item.most{background:#f6f5ff;border-color:#cfcaff}.tally-item.most strong{color:#5148cd}@media (width<=720px){header{height:60px;padding:0 18px}.status{display:none}.room-tools{gap:8px}.room-card{padding:14px 16px}.room-current{width:100%}.room-current .share{margin-left:auto}.join{width:100%}.join input{flex:1;min-width:0}.hero{padding:30px 18px 34px}.die{width:68px;height:68px;padding:11px}.pip{width:8px;height:8px}.roll-actions{flex-wrap:wrap}.controls{grid-template-columns:1fr 1fr;gap:22px;padding:20px}.controls .divider{display:none}.strength{grid-area:2/1/auto/-1}.trials{text-align:right}.turn-control p{line-height:1.5}.chart-card{padding:22px 14px 17px}.chart-head{padding-inline:4px}.chart-head h2{font-size:18px}.chart-scroll{margin-inline:-2px}.bar-group em,.bar-group>b{font-size:14px}.chart-meta{padding:10px 4px 0}.legend{justify-content:center;gap:8px 13px;font-size:12px}.tally-card{padding:18px 14px}.tally{grid-template-columns:repeat(auto-fill,minmax(64px,1fr));gap:6px}.chart-scroll{overflow-x:hidden}.chart{height:auto}.grid{background:repeating-linear-gradient(to right,#e6eaf0 0 1px,transparent 1px var(--grid));height:auto;inset:4px 2px 4px 100px}.bars{flex-direction:column;align-items:stretch;gap:6px;padding:4px 2px;position:relative;inset:auto}.bar-group{flex-direction:row;align-items:center;gap:10px;width:100%;height:auto}.bar-group>b{text-align:right;flex:none;order:0;width:26px;height:auto;padding:0;font-size:13px}.track{flex:1;order:2;justify-content:flex-start;align-items:center;width:auto;height:20px}.fill{width:var(--size);background:linear-gradient(90deg,#766de7,#554ccd);border-radius:2px 5px 5px 2px;min-width:2px;height:12px;min-height:0;transition:width .45s;top:50%;bottom:auto;left:0;transform:translateY(-50%)}.fill.rank-1{background:linear-gradient(90deg,#f5cf62,#d99c17)}.fill.rank-2{background:linear-gradient(90deg,#c8d0d9,#7f8d9e)}.fill.rank-3{background:linear-gradient(90deg,#d99a70,#ac633b)}.base{width:var(--size);border-top:0;border-right:2px dashed #bfc6d2;height:100%;top:0;bottom:0;left:0}.bar-group em{text-align:right;flex:none;order:1;width:52px;margin:0;font-size:14px}.chart.dense .bars{gap:3px}.chart.dense .track{height:14px}.chart.dense .fill{height:8px}.chart.dense .bar-group>b{font-size:10px}}
