.dice-shell{display:grid;grid-template-columns:285px minmax(0,1fr);border:1px solid #263b50;border-radius:8px;overflow:hidden;background:#0e1a29;min-height:600px}
.dice-panel{padding:20px;background:#152333;border-right:1px solid #263b50;display:flex;flex-direction:column;align-items:stretch;gap:10px}
.dice-panel label,.dice-settings label{font-size:12px;font-weight:650;color:#a7bed4;display:flex;justify-content:space-between;gap:8px;line-height:1.6}
.dice-panel label span{font-size:9px;letter-spacing:1px;color:#62839f;font-weight:500}
.dice-panel input,.dice-number-field{min-width:0;background:#0d1928;border:1px solid #30465f;border-radius:5px;color:#eaf5ff;font:700 14px Manrope,Arial,sans-serif}
.dice-panel>input,.dice-stop-fields input{padding:12px;width:100%;box-sizing:border-box}
.dice-panel .bet-field{margin:0 0 9px;display:flex}.dice-panel .bet-field input{width:100%;padding:12px;border:0}.dice-panel .bet-field button{padding:0 9px;min-width:30px;font-size:11px}
.dice-panel output{padding:13px;border:1px solid #273c51;border-radius:5px;background:#101c2b;color:#8cb0cd;font-size:14px;font-weight:700;margin-bottom:9px}
.dice-tabs{display:grid;grid-template-columns:1fr 1fr;margin:-20px -20px 14px;border-bottom:1px solid #293c50}
.dice-tabs button{background:transparent;color:#829bb4;font-size:12px;font-weight:750;padding:18px 8px;border:0;border-bottom:2px solid transparent}.dice-tabs button[aria-pressed=true]{color:#fff;border-bottom-color:#168eff}
.dice-panel .bet-action{margin-top:6px;min-height:48px;font-weight:800}.dice-panel .stop-auto{background:#2b4055;border-color:#526c82}
.dice-demo-note{font-size:10px;text-align:center;color:#6c8ca7;margin:0;letter-spacing:.5px}
.dice-auto-options{display:flex;flex-direction:column;gap:8px}.dice-auto-options>input{padding:11px}
.dice-auto-adjust{display:flex;gap:3px;background:#0e1a29;padding:3px;border:1px solid #30465f;border-radius:5px;margin-bottom:8px}.dice-auto-adjust button{border:0;background:transparent;color:#86a3bc;padding:8px 7px;border-radius:3px;font-size:10px;font-weight:700;white-space:nowrap}.dice-auto-adjust button[aria-pressed=true]{background:#243e57;color:#d5eaff}.dice-auto-adjust>div{display:flex;align-items:center;min-width:0;flex:1}.dice-auto-adjust input{width:100%;border:0;padding:6px;min-width:0;font-size:12px}.dice-auto-adjust span{font-size:11px;color:#6c8ca7;padding-right:5px}
.dice-stop-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px}.dice-stop-fields label{font-size:10px;margin-bottom:5px}.dice-stop-fields input{padding:10px 8px;font-size:12px}
#dice-auto-status{color:#8eb2d0;font-size:11px;text-align:center;line-height:1.8;padding-top:5px;font-variant-numeric:tabular-nums}
.dice-stage{position:relative;min-width:0;display:flex;flex-direction:column;padding:26px 30px 18px}.dice-stage .board-header{font-size:10px;padding:0;display:flex;justify-content:space-between;align-items:center}.dice-stage .manual-badge{font-size:9px;display:flex;gap:7px;align-items:center;letter-spacing:1px;margin:0}
.dice-roll-area{position:relative;min-height:280px;flex:1;display:flex;align-items:center;padding:0 18px}.dice-illustration{position:absolute;top:16px;left:50%;transform:translateX(-50%) rotate(-8deg);width:96px;height:96px;object-fit:contain;opacity:.9;pointer-events:none;transform-origin:50% 55%}
.dice-ruler{width:100%;margin-top:70px}.dice-ticks{display:flex;justify-content:space-between;color:#c4d8e9;font-size:12px;font-weight:750;margin-bottom:22px;font-variant-numeric:tabular-nums}
.dice-track{height:24px;position:relative;border:6px solid #172a3d;border-left:0;border-right:0;border-radius:20px;background:#e34d6c;box-shadow:0 0 0 7px #172a3d;touch-action:none}
.dice-track-colors{position:absolute;inset:0;border-radius:20px;overflow:hidden}.dice-track-colors span{position:absolute;height:100%;background:#41c78b}
.dice-handle{position:absolute;top:50%;transform:translate(-50%,-50%);width:32px;height:36px;border:3px solid #0b1523;border-radius:8px;background:#305271;cursor:ew-resize;display:flex;align-items:center;justify-content:center;padding:0;z-index:3;touch-action:none}.dice-handle>span{height:10px;width:10px;border-left:2px solid #8cb2d2;border-right:2px solid #8cb2d2;position:relative}.dice-handle>span:after{content:'';position:absolute;left:3px;top:0;height:10px;border-left:2px solid #8cb2d2}.dice-handle:focus-visible{outline:2px solid #9cd5ff;outline-offset:4px}.dice-handle small{position:absolute;top:43px;background:#20374d;padding:4px 6px;border-radius:4px;font-size:10px;color:#c5e1f5;opacity:0;pointer-events:none;white-space:nowrap;font-variant-numeric:tabular-nums}.dice-handle:hover small,.dice-handle:focus small,.dice-handle.dragging small{opacity:1}.dice-handle:hover,.dice-handle.dragging{background:#3d6b94;z-index:5}
.dice-result-marker{position:absolute;bottom:70px;left:50%;transform:translateX(-50%);transition:left .48s cubic-bezier(.2,.8,.2,1);z-index:4;pointer-events:none}.dice-result-marker strong{display:block;padding:10px 13px;font-size:20px;font-weight:850;letter-spacing:-.5px;min-width:70px;box-sizing:border-box;text-align:center;border-radius:7px;background:#21384f;border:2px solid #5a829f;color:#d8ecfc;font-variant-numeric:tabular-nums}.dice-result-marker:after{content:'';position:absolute;bottom:-7px;left:calc(50% - 7px);width:14px;height:14px;background:#21384f;transform:rotate(45deg);border-right:2px solid #5a829f;border-bottom:2px solid #5a829f}.dice-result-marker.won strong{background:#143e31;border-color:#41c78b;color:#77edb5}.dice-result-marker.won:after{background:#143e31;border-color:#41c78b}.dice-result-marker.lost strong{background:#482637;border-color:#e34d6c;color:#ff92a9}.dice-result-marker.lost:after{background:#482637;border-color:#e34d6c}.dice-result-marker.travelling strong{opacity:.7}
.rolling .dice-illustration{animation:dice-tumble .52s cubic-bezier(.2,.7,.25,1)}@keyframes dice-tumble{0%{transform:translateX(-50%) rotate(-8deg)}35%{transform:translate(-50%,-9px) rotate(18deg)}65%{transform:translateX(-50%) rotate(-14deg)}100%{transform:translateX(-50%) rotate(-8deg)}}
.dice-board-bottom{padding-top:20px}.dice-mode-label{font-size:10px;color:#6488a7;margin-bottom:10px;display:flex;gap:10px;align-items:center}.dice-mode-label b{font-size:12px;color:#c6d9e9;font-weight:700}
.dice-modes{display:inline-flex;gap:3px;padding:3px;background:#0a1421;border-radius:6px;border:1px solid #26394d}.dice-modes button{width:53px;height:33px;border:0;border-radius:3px;background:#192b3e}.dice-modes button[aria-pressed=true]{background:#177ce1}.mode-preview{height:4px;width:25px;display:block;position:relative;margin:auto;border-radius:3px;background:#52718c}.mode-preview i{position:absolute;width:7px;height:7px;top:-1.5px;background:#bddbf2;border-radius:50%}.mode-preview.under i:first-child{left:15px}.mode-preview.under i:last-child{display:none}.mode-preview.over i:first-child{left:3px}.mode-preview.over i:last-child{display:none}.mode-preview.between i:first-child,.mode-preview.outside i:first-child{left:2px}.mode-preview.between i:last-child,.mode-preview.outside i:last-child{right:2px}.mode-preview.outside{background:linear-gradient(90deg,#bddbf2 0 25%,#52718c 25% 75%,#bddbf2 75%)}.mode-preview.double{width:34px;background:none;border-radius:0}.mode-preview.double i{width:13px;border-radius:8px;top:-1.5px}.mode-preview.double i:first-child{left:0}.mode-preview.double i:last-child{right:0}
.dice-history{display:flex;gap:5px;overflow:hidden;min-height:27px;margin:16px 0;align-items:center;flex-wrap:nowrap}.dice-roll-chip{border:0;background:#203c34;color:#6ddeaa;min-width:48px;padding:6px 8px;border-radius:4px;font-size:10px;font-weight:750;font-variant-numeric:tabular-nums;animation:dice-chip-in .25s ease-out}.dice-roll-chip.lost{color:#ef9caf;background:#3d2736}.dice-roll-chip:hover{filter:brightness(1.15)}@keyframes dice-chip-in{from{opacity:0;transform:translateX(-15px)}to{opacity:1;transform:none}}
.dice-settings{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) minmax(0,1fr);gap:12px;background:#142335;border-radius:6px;padding:14px}.dice-settings label{font-size:10px;margin-bottom:7px}.dice-number-field{display:flex;align-items:center;min-width:0;height:43px;padding:0 10px}.dice-number-field input{color:#e2f3ff;border:0;background:transparent;font:700 13px Manrope,Arial,sans-serif;width:100%;min-width:0;outline:none;font-variant-numeric:tabular-nums;padding:0}.dice-number-field:focus-within{outline:1px solid #66baff;border-color:#66baff}.dice-number-field span{color:#6e9ac1;font-size:13px;font-weight:750}.dice-number-field input::-webkit-inner-spin-button,.dice-panel input::-webkit-inner-spin-button{appearance:none}.dice-number-field input,.dice-panel input{appearance:textfield;-moz-appearance:textfield}
#dice-bound-inputs{display:grid;grid-template-columns:repeat(var(--bounds),minmax(0,1fr));gap:4px;position:relative}#dice-bound-inputs:has(.dice-flip){padding-right:28px}#dice-bound-inputs .dice-number-field{padding:0 8px;gap:6px}.dice-flip{position:absolute;right:0;top:0;height:43px;background:none;border:0;color:#80aed5;font-size:20px;width:27px;padding:0}.four-bounds{grid-column:1 / -1}
#dice-status{font-size:10px;color:#6d8da9;text-align:center;min-height:17px;padding-top:14px;font-variant-numeric:tabular-nums}.dice-shell [hidden]{display:none!important}.dice-shell button:disabled{cursor:default}.dice-shell input:disabled{opacity:.55}
.game-card.dice{background:#1a3049}.game-card.dice .artwork{inset:0 -2% 15%}
@media(min-width:901px){.dice-settings:has(.four-bounds){grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1100px){.dice-shell{grid-template-columns:250px minmax(0,1fr)}.dice-stage{padding:22px 20px 16px}.dice-settings{gap:8px;padding:10px}.dice-modes button{width:44px}}
@media(max-width:900px){.dice-shell{display:flex;flex-direction:column;min-height:0}.dice-stage{order:0;min-height:415px}.dice-panel{order:1;border-right:0;border-top:1px solid #263b50;padding:18px}.dice-tabs{margin:-18px -18px 5px}.dice-roll-area{min-height:205px}.dice-illustration{top:0;width:80px;height:80px}.dice-ruler{margin-top:68px}.dice-board-bottom{padding-top:18px}.dice-panel .bet-action{min-height:50px}.dice-auto-adjust button{padding:10px 12px}}
@media(max-width:500px){.dice-stage{padding:18px 12px 14px;min-height:400px}.dice-roll-area{padding:0 12px;min-height:205px}.dice-settings{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.dice-bound-fields{grid-column:1 / -1}.dice-settings label{font-size:10px}.dice-settings .dice-number-field{height:39px}.dice-modes{display:flex;justify-content:space-between}.dice-modes button{width:20%;height:34px}.dice-history{margin:12px 0;min-height:26px}.dice-result-marker strong{font-size:17px;min-width:62px}.dice-ticks{font-size:10px}.dice-result-marker{bottom:64px}.dice-panel label{font-size:11px}}
@media(prefers-reduced-motion:reduce){.dice-result-marker{transition:none}.rolling .dice-illustration,.dice-roll-chip{animation:none}}
