/* A folded-paper control tray. The playfield keeps its artwork and remaining height. */
.app[data-game="crash"] {--fold-edge:#edb888;--fold-wash:#3b2b30}
.app[data-game="plinko"] {--fold-edge:#8ae3c6;--fold-wash:#163633}
.app[data-game="dice"] {--fold-edge:#f0c892;--fold-wash:#432f36}
.app[data-game="mines"] {--fold-edge:#b0c7ff;--fold-wash:#252d4d}
.app[data-game="blast"] {--fold-edge:#96dce2;--fold-wash:#223a43}
.app[data-game="hilo"] {--fold-edge:#dfbdee;--fold-wash:#382d46}
.app[data-game] .bet-dock-container {
 background:linear-gradient(149deg,color-mix(in srgb,var(--fold-wash) 85%,#091522) 0%,#111b29 76%);
 border:1px solid color-mix(in srgb,var(--fold-edge) 38%,#29313d);border-radius:7px 17px 7px 15px;
 padding:7px 10px 9px;gap:5px;box-shadow:0 2px 12px #030b1645;backdrop-filter:none;
}
.turn-guide {list-style:none;display:flex;align-items:center;justify-content:center;gap:0;min-width:0;margin:0;padding:0;font:600 12px/1.3 system-ui;color:#bfc7cc}
.turn-guide li {display:flex;align-items:center;white-space:nowrap}
.turn-guide li:not(:last-child)::after {content:"";height:1px;width:clamp(13px,5vw,29px);margin:0 7px;background:color-mix(in srgb,var(--fold-edge) 40%,transparent)}
.turn-guide li[aria-current] {color:var(--fold-edge);font-weight:800}
.turn-guide li[aria-current]::before {content:"";height:7px;width:7px;transform:rotate(45deg);background:var(--fold-edge);margin-right:6px}
.app[data-game] .turn-stake {border:1px solid #ffffff2b;border-radius:7px;background:#09132160}
.turn-stake summary {box-sizing:border-box;display:flex;align-items:center;min-height:44px;gap:9px;padding:0 11px;font:600 13px/1.2 system-ui;color:#dce1e9;list-style:none;cursor:pointer}
.turn-stake summary::-webkit-details-marker {display:none}
.turn-stake summary strong {font:750 17px/1 system-ui;color:white;font-variant-numeric:tabular-nums}
.turn-stake .stake-edit {display:flex;align-items:center;gap:8px;margin-left:auto;color:var(--fold-edge)}
.stake-edit::after {content:"";width:7px;height:7px;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(45deg) translateY(-2px)}
.turn-stake[open] .stake-edit::after {transform:rotate(225deg)}
.turn-stake .bet-dock-tier-amount {box-sizing:border-box;padding:3px 6px 6px}
.app[data-game] .practice-supply {margin:0}
.app[data-game] button.practice-wallet {display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;
 border:1px solid color-mix(in srgb,var(--fold-edge) 55%,transparent);border-radius:5px 10px;background:#101e2a;color:#fff;opacity:1;padding:2px 8px;line-height:1;cursor:pointer}
.app[data-game] button.practice-wallet:disabled {opacity:1;cursor:default}
.practice-token {color:var(--fold-edge);text-shadow:1px 2px #ffffff40}
.app[data-game] .practice-wallet .hud-score small {color:var(--fold-edge);white-space:nowrap;font:650 10px/1.25 system-ui}
.app[data-game] .practice-wallet .hud-score strong {color:#fff;font:750 15px/1.2 system-ui;font-variant-numeric:tabular-nums}
.app[data-game] .refill-inline {border:1px solid var(--fold-edge);color:var(--fold-edge);background:#101c28;border-radius:7px;min-height:44px;padding:2px 10px;margin-inline-start:6px;font-weight:700}
.app[data-game] .bet-dock-tier-cta .bet-dock-cta-btn:not(:disabled) {border-radius:6px 12px;box-shadow:inset 0 -3px 0 #10182030}
.turn-stake summary:focus-visible,.practice-wallet:focus-visible,.refill-inline:focus-visible {outline:2px solid #fff;outline-offset:1px}
@media(max-height:620px){
 .app[data-game] .bet-dock-container {gap:3px;padding:4px 7px}
 .turn-guide {font-size:11px}
 .app[data-game] .turn-stake[open] {max-height:36dvh;overflow:auto}
}
@media(max-width:350px){
 .app[data-game] button.practice-wallet {gap:4px;padding:2px 5px}
 .practice-token {display:none}
}
@media(prefers-reduced-motion:no-preference){
 .turn-guide li[aria-current]::before {animation:fold-step .25s ease-out}
 @keyframes fold-step {from{opacity:.25;transform:translateY(-2px) rotate(15deg)}}
 .app[data-game] .bet-dock-cta-btn:not(:disabled):active {transform:translateY(1px)}
}
