.audio-control{position:relative;display:inline-flex;align-items:center}.volume-popover{display:none;position:absolute;top:100%;right:0;z-index:60;width:220px;padding:16px;background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:16px;box-shadow:0 12px 30px #163c5833}.audio-control:hover .volume-popover,.audio-control:focus-within .volume-popover{display:block}.volume-popover label{display:flex;justify-content:space-between;align-items:center;font-size:14px;margin:0 0 12px;font-weight:700}.volume-popover output{font-size:12px;background:var(--card);padding:4px 8px;border-radius:7px}.volume-popover input[type=range]{appearance:none;-webkit-appearance:none;width:100%;height:9px;min-height:0;padding:0;border:0;border-radius:10px;background:linear-gradient(to right,#efbd26 0%,#ffdd65 var(--volume-fill,60%),var(--line) var(--volume-fill,60%),var(--line) 100%);cursor:pointer}.volume-popover input::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:20px;height:20px;border-radius:50%;background:#fff;border:3px solid #e7b326;box-shadow:0 2px 6px #163c5833}.volume-popover input::-moz-range-thumb{width:15px;height:15px;border-radius:50%;background:#fff;border:3px solid #e7b326;box-shadow:0 2px 6px #163c5833}.settings-motion{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0;margin-bottom:12px;border-bottom:1px solid var(--line);font-size:14px}.settings-motion button{min-height:44px;padding:8px 14px;border:1px solid var(--line);border-radius:12px;background:var(--card);color:var(--text);font-size:14px}.table-tools>button,.table-tools .audio-control>button{width:46px;height:46px;padding:8px;font-size:21px;border-radius:12px}.table-tools{gap:8px}.sandbox-warning{border:1px solid #d9b52b;background:#fff0b5;color:#5b4507;padding:10px 12px;border-radius:12px;font-size:13px;line-height:1.5;margin:12px 0}.sandbox-warning:empty{display:none}

/* Challenge motion is shared and survives unrelated game renders. */
#challengeCards .challenge-card,#bjChallenges .bj-challenge{animation:none!important}

.quest-heading{display:flex;justify-content:space-between;gap:8px;align-items:flex-start}.quest-heading strong{font-size:16px;line-height:1.4}.quest-heading b{font-size:14px;color:#45370a;background:#ffda57;padding:3px 7px;border-radius:7px;white-space:nowrap}.quest-progress{display:flex;align-items:center;gap:10px}.quest-progress progress{width:100%;min-width:0;height:8px;accent-color:#3186b3}.quest-progress small{white-space:nowrap;font-size:12px;margin:0}.bj-challenge{min-width:0}.bj-challenge p{font-size:14px;line-height:1.5}.bj-challenge.collected{border-color:#45a776}#challengeCards .bj-challenge{padding:16px;background:var(--card);border:1px solid var(--line);border-radius:14px;flex:1;display:flex;flex-direction:column;justify-content:center}#challengeCards .bj-challenge p{color:var(--muted);margin:10px 0 14px}#challengeCards .bj-challenge,#bjChallenges .bj-challenge,#raceChallenges .bj-challenge{animation:none!important}nav{flex-wrap:wrap}.table-tools{position:relative;z-index:5}@media(max-width:600px){.quest-heading{flex-wrap:wrap}.game-nav{display:flex;flex-wrap:wrap;gap:8px}}
.casino-celebration{position:fixed;inset:0;width:100vw;height:100vh;pointer-events:none;z-index:1000}button,a,input,select{touch-action:manipulation}.reel-strip{will-change:transform}.playing-card{backface-visibility:hidden}

.quest-bank{flex:none;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--panel);display:flex;flex-direction:column;gap:4px}.quest-bank>span{font-size:10px;letter-spacing:1px;color:var(--muted)}.quest-bank>strong{font-size:20px}.quest-bank>small{font-size:12px;line-height:1.5;color:var(--muted)}
.quest-bank{grid-column:1/-1}

.balance,#balance,#homeBalance,#best,.return-preview strong{min-width:0;max-width:100%;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}#bet,#betInput{min-width:0;max-width:100%}.quest-heading{min-width:0;flex-wrap:wrap}.quest-heading b{max-width:100%;overflow-wrap:anywhere}.message,.challenge-notice,#rewardMessage{overflow-wrap:anywhere}
