/* Compact dice desk, scoped so the other game modes retain their layouts. */
[data-icon="backpack"]{color:inherit}
[data-icon="backpack"] svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.35}
#page-dice{padding:16px 0 50px}
#page-dice .dice-desk{display:grid;grid-template-columns:minmax(180px,220px) minmax(320px,440px) minmax(200px,250px);justify-content:center;align-items:center;gap:22px;max-width:1000px;margin:0 auto}
#page-dice .dice-machine{min-width:0;padding:22px 22px 18px;border:1px solid #513569;border-radius:24px;background:linear-gradient(160deg,#21122f,#130d1d 80%);box-shadow:0 16px 52px #0003,inset 0 1px 0 #ffffff06;overflow:visible}
#page-dice .dice-card-heading{display:flex;align-items:center;justify-content:center;gap:12px;margin-bottom:18px}
#page-dice .dice-card-heading h1{margin:0;font-size:25px;line-height:1.2;letter-spacing:-.8px;font-weight:900}
#page-dice .dice-card-heading p{margin:6px 0 0;color:#a696b7;font-size:12px}
#page-dice .dice-heading-icon{width:32px;height:32px;display:grid;place-items:center;border-radius:8px;background:#eadbff;color:#3d2457;font-size:26px;line-height:1}
#page-dice .dice-stake-control{padding:0;border:0;background:transparent}
#page-dice .dice-stake-row{flex-wrap:nowrap;gap:9px;margin:0}
#page-dice .dice-stake-picker{flex:1;flex-basis:auto;min-width:0;gap:9px;height:58px;padding:8px 12px;border:1px solid #493254;border-radius:13px;background:#281b34;box-shadow:none}
#page-dice .dice-stake-picker:hover{background:#30203e;border-color:#a475d2}
#page-dice .dice-stake-picker img{width:36px;height:40px;flex-shrink:0}
#page-dice .dice-stake-picker strong{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:12px}
#page-dice .dice-stake-picker small{margin-top:4px;font-size:10px;color:#aa9bb9}
#page-dice .dice-stake-picker b{font:20px var(--font);color:#b5a2c5}
#page-dice .dice-stake-row .case-speed-button{width:48px;min-width:48px;height:58px;min-height:0;padding:0;border-radius:13px;background:#281b34;border-color:#493254;box-shadow:none}
#page-dice .case-speed-track{display:none}
#page-dice #dice-stake-info{margin:9px 0 0;min-height:16px;text-align:center;font:10px/1.5 var(--font);color:#9987aa}
#page-dice .dice-board{--die-size:58px;gap:23px;min-height:124px;padding:30px 12px;margin:10px 0 8px;background:none}
#page-dice .color-die{perspective:700px}
#page-dice .color-die>small{display:none}
#page-dice .cube-face{border:1px solid #76538e;border-radius:14px;background:#24182e;box-shadow:inset 0 1px 0 #ffffff0a}
#page-dice .cube-face span{width:28px;height:28px;border-radius:50%;font-size:0;background:var(--ink);box-shadow:inset 0 2px 3px #ffffff40,inset 0 -2px 3px #0002}

#page-dice .dice-color-field{border:0;padding:0;margin:0 0 18px;min-width:0}
#page-dice .dice-color-field legend{float:none;width:100%;margin-bottom:9px;font:11px var(--font);letter-spacing:0;color:#aa98ba;text-align:center}
#page-dice #dice-colors{display:flex;justify-content:center;gap:6px}
#page-dice #dice-colors button{width:44px;height:44px;padding:5px;border:0;background:transparent;border-radius:50%}

#page-dice #dice-colors button>span{width:32px;height:32px;font-size:0;border:0;box-shadow:inset 0 2px 3px #ffffff50,inset 0 -2px 4px #0003}
#page-dice #dice-colors button[aria-pressed=true]>span{outline:2px solid #eee2ff;outline-offset:3px}
#page-dice #dice-colors small{display:none}
#page-dice #roll-button{width:100%;max-width:none;margin:0;height:52px;min-height:52px;padding:12px;border-radius:13px;text-align:center;justify-content:center;font-size:16px;font-weight:900;box-shadow:none}
#page-dice #roll-button:disabled{opacity:.5}
#page-dice #dice-result{min-height:48px;align-content:center;gap:7px;margin:14px 0 0;padding:12px 6px 0;border:0;background:none}
#page-dice #dice-result>strong{font-size:12px;line-height:1.5;color:#c4afd8}
#page-dice #dice-result>p{font:10px/1.5 var(--font);color:#8e7b9e}
#page-dice #dice-result .result-sell-button{padding:7px 12px;font-size:11px}
#page-dice .dice-desk aside{min-width:0;margin:0;padding:21px 18px;border:1px solid #3f2a50;border-radius:21px;background:#17101f;box-shadow:none;transform:none}
#page-dice .dice-desk aside h2{margin:0 0 7px;font-size:16px;letter-spacing:-.25px}
#page-dice .dice-desk aside>p{margin:0 0 17px;font:10px/1.6 var(--font);color:#9785a8}
#page-dice #dice-rates{display:grid;grid-template-columns:1fr;gap:7px}
#page-dice .dice-payout{display:flex;flex-direction:row;justify-content:space-between;gap:8px;margin:0;padding:11px 12px;border:1px solid #503044;border-radius:11px;background:#291624;color:#d193a9;font:11px var(--font)}
#page-dice .dice-payout.pays{background:#192724;border-color:#304a43;color:#a1bdb1}
#page-dice .dice-payout strong,#page-dice .dice-payout.pays strong{font-size:13px;color:inherit}
#page-dice .dice-payout.pays strong{color:#9bddba}
#page-dice .dice-payout.is-result{outline:1px solid #d9b1ff;outline-offset:2px}
#page-dice .dice-rule-note{margin:16px 0 0!important;font-size:10px!important;color:#8d7b9d!important}
#page-dice .dice-payout-panel details{border-color:#392646;margin-top:15px;padding-top:13px;font:10px/1.7 var(--font);color:#a998b9}
#page-dice .dice-payout-panel summary{color:#c4acd9}
#page-dice .dice-log-panel{grid-column:auto}
#page-dice #dice-history{display:flex;flex-direction:column;gap:7px;max-height:365px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#543969 transparent}
#page-dice .dice-round{gap:9px;padding:10px 8px;border:1px solid #34243f;border-radius:11px;background:#21162b}
#page-dice .dice-round>img{width:28px;height:34px}
#page-dice .dice-round strong{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#page-dice .dice-round small{font:9px var(--font);color:#a28bb4}
#page-dice .dice-round>b{font:800 13px var(--font);color:#d592a6}
#page-dice .dice-round.won>b{color:#91d5ad}
#page-dice .dice-mini-faces{gap:4px;margin-top:6px}
#page-dice .dice-mini-faces span{width:9px;height:9px;border-radius:50%;font-size:0}
#page-dice .dice-empty{display:grid;place-content:center;gap:8px;min-height:130px;padding:16px;border:1px dashed #3c2b48;border-radius:12px;text-align:center;font:12px var(--font);color:#b4a0c6}
#page-dice .dice-empty span{font-size:10px;line-height:1.7;color:#8c799e}
@media(max-width:1050px){#page-dice .dice-desk{grid-template-columns:minmax(170px,210px) minmax(320px,440px);gap:18px}#page-dice .dice-log-panel{grid-column:1/-1}#page-dice #dice-history{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-height:260px}#page-dice .dice-empty{grid-column:1/-1;min-height:95px}}
@media(max-width:650px){#page-dice{padding:12px 0 35px}#page-dice .dice-desk{display:flex;flex-direction:column;gap:14px;max-width:440px}#page-dice .dice-machine{order:0;width:100%;padding:24px 18px 16px;border-radius:21px}#page-dice .dice-payout-panel{order:1;width:100%}#page-dice .dice-log-panel{order:2;width:100%}#page-dice .dice-card-heading h1{font-size:23px}#page-dice .dice-board{--die-size:58px;gap:20px;min-height:145px;padding:38px 10px}#page-dice #dice-rates{grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}#page-dice .dice-payout{flex-direction:column;padding:10px 3px;font-size:9px;gap:7px}#page-dice .dice-payout strong{font-size:11px}#page-dice .dice-rule-note br{display:none}#page-dice #dice-history{grid-template-columns:1fr}#page-dice .dice-desk aside{padding:18px 15px}}
@media(max-width:360px){#page-dice .dice-board{--die-size:48px;gap:18px}#page-dice .dice-machine{padding-inline:14px}#page-dice #dice-colors{gap:1px}#page-dice .dice-card-heading h1{font-size:20px}}
@media(min-width:1440px){
 #page-dice .dice-desk{zoom:1.25}
}

#page-dice .dice-color-field legend{position:absolute;width:1px;height:1px;padding:0;margin:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

#page-dice .dice-heading-icon{background:transparent;color:#d6b5f1}#page-dice .dice-heading-icon svg{width:29px;height:29px;fill:none;stroke:currentColor}

#page-dice .dice-card-heading{align-items:flex-start}#page-dice .dice-heading-icon{width:40px;height:40px;margin-top:-5px;flex-shrink:0}#page-dice .dice-heading-icon svg{width:40px;height:40px}@media(max-width:650px){#page-dice .dice-heading-icon,#page-dice .dice-heading-icon svg{width:38px;height:38px}}@media(max-width:360px){#page-dice .dice-heading-icon,#page-dice .dice-heading-icon svg{width:34px;height:34px}}
#page-dice #dice-skip{width:100%;margin-top:8px;min-height:36px;border:1px solid #725090;border-radius:9px;background:#2b1b3d;color:#e7cffc;font-size:12px;font-weight:800}#page-dice #dice-skip:hover:not(:disabled){background:#462860}#page-dice #dice-skip:disabled{opacity:.65}
@media(prefers-reduced-motion:no-preference){#page-dice #dice-skip:not([hidden]){animation:dice-skip-in .22s cubic-bezier(.22,.75,.22,1) both}@keyframes dice-skip-in{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}}
#page-dice .dice-card-heading{gap:4px}
