/* Shared framing, feedback and cosmetics. Game rules live in their original engines. */
.game-toolbar{display:flex;align-items:center;gap:6px;flex:none;min-height:34px;padding:4px 10px;background:#0d1d29;border-bottom:1px solid #2e454b;color:#e3f1ed;font:12px system-ui}
.game-toolbar>strong{margin-right:auto;letter-spacing:.03em}.game-toolbar button,.game-style-button{display:inline-flex;align-items:center;justify-content:center;min-width:30px;min-height:28px;padding:3px 8px;border:1px solid #668a8f45;border-radius:7px;color:#bdd7d8;background:#1c35414d;font:11px system-ui;cursor:pointer}
.game-toolbar button:hover,.game-style-button:hover{background:#315361}.game-style-button{font-size:19px;padding:1px 7px}.casino-game .game-wrapper{display:flex;flex-direction:column;padding:0;border-radius:10px;border-color:#2b414a;box-shadow:none}
.casino-game .game-layout{display:flex;flex-direction:column;flex:1;min-height:0;height:auto}.casino-game .main-column{flex:1;height:auto;min-height:90px}.casino-game .game-viewport{height:100%;border:0;border-radius:0;overflow:hidden}.casino-game #gameCanvas{display:block;width:100%;height:100%}
.casino-game .ui-bar{position:static;display:grid;grid-template-columns:1fr;gap:6px;flex:none;margin:0;padding:8px 12px;border:0;border-top:1px solid #314d52;border-radius:0;overflow:visible;white-space:normal;background:#0d2029;box-shadow:none}
.casino-game .hud{display:flex;flex-wrap:wrap;gap:4px 9px;min-width:0}.casino-game .hud .pill{border:0;background:none;padding:0;font-size:11px;gap:4px}.casino-game .hud .pill-label{font-size:10px;color:#9cb4b9}.casino-game .hud .pill-value{font-size:12px;font-variant-numeric:tabular-nums}.casino-game .hud .pill:last-child{display:none}
.casino-game .controls{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0;font-size:12px;min-width:0}.casino-game .controls label{gap:5px}.casino-game .controls input,.casino-game .controls select{min-width:0;width:70px;height:34px;padding:5px 7px;border-radius:7px;background:#091720;border:1px solid #456068;font-size:12px}.casino-game .controls select{width:125px}.casino-game .controls button{min-height:34px;padding:6px 10px;font:600 11px system-ui;text-transform:none;border-radius:7px;letter-spacing:0;box-shadow:none;background:#b4e5d6;color:#173e34}.casino-game .controls button:disabled{background:#29434b;color:#91a8ab}
.casino-game .message{display:block;max-width:100%;font-size:11px;line-height:1.35;color:#a5bdc3;white-space:normal;margin:0}.casino-game .sidebar{position:absolute;right:8px;top:8px;z-index:25;max-width:min(280px,calc(100% - 16px));width:280px;max-height:calc(100% - 16px);margin:0}.casino-game .sidebar[hidden]{display:none!important}.casino-game .leaderboard-card{max-height:100%;overflow:auto}.casino-game .leaderboard-footer .hint{display:none}
.casino-game button:focus-visible,.casino-game input:focus-visible,.casino-game select:focus-visible,.game-style-button:focus-visible,.game-wardrobe button:focus-visible,.game-wardrobe select:focus-visible{outline:2px solid #b4e5d6;outline-offset:2px}.casino-game .game-wrapper:fullscreen{width:100vw;height:100dvh;border-radius:0}
.game-wrapper,.slot-machine{isolation:isolate}.game-outcome{position:absolute;left:50%;top:44px;transform:translateX(-50%);z-index:21;display:flex;flex-direction:column;align-items:center;gap:3px;max-width:calc(100% - 20px);padding:8px 16px;border:1px solid #62897888;border-radius:10px;background:#0c2528ed;box-shadow:0 5px 20px #0004;pointer-events:none;text-align:center;font:11px system-ui;color:#b9d3cb}.game-outcome strong{font-size:21px;color:#bbecd2;white-space:nowrap}.game-outcome[data-tone=loss]{border-color:#ba8f7d66}.game-outcome[data-tone=loss] strong{color:#e9b7a5}.game-outcome[data-tone=neutral] strong{color:#c3cdd8}.game-outcome[hidden],.game-unlock[hidden]{display:none}.airlines-game .game-outcome{display:none}
.game-unlock{position:absolute;left:50%;bottom:110px;transform:translateX(-50%);z-index:28;width:max-content;max-width:calc(100% - 20px);padding:8px 12px;background:#202338f5;border:1px solid #a79bd85c;border-radius:9px;font:11px/1.4 system-ui;color:#e1dcf6;pointer-events:none;text-align:center}.game-sparkles{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:20}.game-sparkles i{position:absolute;left:50%;top:32%;width:5px;height:5px;background:#edce85;border-radius:1px;animation:game-spark .8s ease-out both;box-shadow:0 0 8px #e3c47644}
@keyframes game-spark{from{transform:translate(0,0) rotate(0);opacity:1}to{transform:translate(var(--dx),var(--dy)) rotate(var(--turn));opacity:0}}
.game-wardrobe{box-sizing:border-box;width:min(420px,calc(100vw - 20px));max-height:calc(100dvh - 20px);padding:0;color:#e3eee9;background:#10232d;border:1px solid #51717b;border-radius:13px;box-shadow:0 20px 80px #0008;font:12px/1.4 system-ui;overflow:auto}.game-wardrobe::backdrop{background:#020b13a6}.game-wardrobe header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 14px;background:#132a35;position:sticky;top:0;z-index:1}.game-wardrobe header button{border:0;background:transparent;color:#d1e3e4;font-size:23px;width:30px;height:30px;cursor:pointer}.wardrobe-body{padding:10px 14px 14px}.effect-option{display:flex;align-items:center;justify-content:space-between;gap:10px}.effect-option select{background:#091b26;color:#d9e9e6;border:1px solid #48616a;border-radius:6px;padding:6px}.game-wardrobe h3{font-size:11px;color:#99b5b8;letter-spacing:.04em;font-weight:600;margin:15px 0 7px}.skin-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.skin-option{display:flex;flex-direction:column;gap:4px;align-items:center;border:1px solid #41545e;background:#0b1c26;padding:9px 3px;border-radius:9px;color:#deebea;cursor:pointer;min-width:0}.skin-option::before{content:'✦';display:grid;place-items:center;width:28px;height:36px;border-radius:5px;background:linear-gradient(135deg,#13202e,var(--swatch));border:1px solid #ffffff36;color:#fff9;font-size:17px}.skin-option strong{font-size:10px;font-weight:500}.skin-option small{font-size:9px;color:#9eb5bc}.skin-option[aria-pressed=true]{border-color:#b7e4d6;background:#26443e}.skin-option:disabled{opacity:.5;cursor:default}.trail-list{display:flex;flex-wrap:wrap;gap:6px}.trail-list button{padding:7px 9px;border-radius:7px;border:1px solid #4b616b;background:#0c1c27;color:#d3e5e7;font:11px system-ui;cursor:pointer}.trail-list button[aria-pressed=true]{border-color:#b4e5d6}.trail-list button:disabled{opacity:.5;cursor:default}.badge-list{display:grid;grid-template-columns:1fr 1fr;gap:6px}.game-badge{padding:8px;border-radius:7px;background:#0c1b26;color:#819ca7;font-size:10px}.game-badge.earned{color:#e9d39c;background:#d9b66212}.wardrobe-note{font-size:10px;color:#91aab5;margin:13px 0 0}
.games-enhanced .slot-machine-header{gap:5px}.games-enhanced .slot-machine-header>span{flex:1;font-size:10px;line-height:1.6}.games-enhanced .slot-machine{width:300px;max-width:calc(100vw - 20px)}.games-enhanced .slot-machine-window{padding:8px}.games-enhanced .slot-reel{position:relative;overflow:hidden;height:60px;padding:0;display:block;background:linear-gradient(#101518,#050707 40%,#11191a);box-shadow:inset 0 8px 12px #0008,inset 0 -8px 12px #0008}.slot-strip{position:absolute;left:0;top:0;width:100%;will-change:transform}.slot-symbol{height:60px;display:grid;place-items:center;font-size:32px;line-height:1}.slot-reel.is-match{outline:1px solid #e4c47c;box-shadow:inset 0 0 16px #e4c47c22,0 0 12px #e4c47c22}.slot-reel.is-match::after{content:'';position:absolute;left:0;right:0;top:50%;height:2px;background:#e8ce8b66;pointer-events:none}.slot-stop{animation:slot-settle .2s ease-out}@keyframes slot-settle{0%{transform:translateY(-3px)}55%{transform:translateY(2px)}100%{transform:translateY(0)}}.games-enhanced .slot-machine .game-outcome{top:42px;z-index:25;padding:5px 12px}.games-enhanced .slot-machine .game-outcome strong{font-size:17px}.games-enhanced .slot-machine .game-unlock{bottom:8px}.games-enhanced .slot-lever:focus-visible{outline:2px solid #c0e8d5;outline-offset:4px}
.games-enhanced .game-panel{height:clamp(360px,55vh,540px)}.games-enhanced .header-right{gap:8px}
@media(max-width:768px){.games-enhanced #gameToggle,.games-enhanced #rouletteToggle,.games-enhanced #blackjackToggle,.games-enhanced #slotToggle{display:inline-flex!important;align-items:center;justify-content:center;min-width:34px;min-height:36px}.games-enhanced .header{gap:5px}.games-enhanced .header-right{gap:2px}.games-enhanced .game-panel.open{display:flex;position:fixed;left:8px;right:8px;top:max(66px,env(safe-area-inset-top));bottom:max(8px,env(safe-area-inset-bottom));transform:none;width:auto;height:auto;min-height:0;max-height:none;z-index:45;padding:9px}.games-enhanced #gamePanel.open{height:auto;min-height:0}.games-enhanced .slot-machine.open{position:fixed;left:50%;bottom:max(12px,env(safe-area-inset-bottom));z-index:45}.games-enhanced #userInfo{max-width:95px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.games-enhanced .brand{gap:4px}.games-enhanced .logo{max-width:32px}}
@media(max-width:480px){.casino-game .controls{gap:5px}.casino-game .controls button{min-height:38px;flex:1;padding:6px 7px}.casino-game .controls label{font-size:11px}.casino-game .ui-bar{padding:8px;gap:7px}.casino-game .controls input{width:62px}.casino-game .controls select{width:112px}.casino-game .hud .pill:nth-child(4){display:none}.casino-game .message{font-size:10px}.game-unlock{bottom:150px}.skin-list{gap:4px}}
@media(max-height:420px){.game-toolbar{min-height:30px;padding:2px 8px}.casino-game .ui-bar{padding:5px 8px;gap:4px}.casino-game .controls button,.casino-game .controls input,.casino-game .controls select{min-height:29px;height:29px}.casino-game .message{display:none}.game-outcome{top:35px;padding:5px 11px}.game-outcome strong{font-size:17px}}
html[data-game-effects=off] .game-sparkles{display:none}html[data-game-effects=off] .slot-stop{animation:none}html[data-game-effects=off] .slot-strip{will-change:auto}
@media(prefers-reduced-motion:reduce){.game-sparkles{display:none}.slot-stop{animation:none}}
@media(max-width:768px){
  .games-enhanced>header{gap:3px;padding:8px;height:58px;min-height:58px}
  .games-enhanced>header h1{font-size:12px;margin-right:auto;white-space:nowrap;min-width:0}
  .games-enhanced>header h1 .logo{width:26px;margin-right:4px}
  .games-enhanced #gameToggle,.games-enhanced #rouletteToggle,.games-enhanced #blackjackToggle,.games-enhanced #slotToggle{position:static;transform:none;flex:none;min-width:32px;width:32px;font-size:20px}
  .games-enhanced #userInfo{position:static;max-width:64px;display:block;font-size:10px;right:auto;margin-left:3px}
}
@media(max-width:350px){.games-enhanced #userInfo{max-width:30px}.games-enhanced>header h1{font-size:11px}}
.games-enhanced :is(#gamePanel,#roulettePanel,#blackjackPanel){height:min(clamp(360px,55vh,540px),calc(100dvh - 88px))}
@media(max-width:768px){.games-enhanced :is(#gamePanel,#roulettePanel,#blackjackPanel).open{height:auto;min-height:0}}
.game-coin-flight{position:absolute;left:50%;top:44%;width:15px;height:15px;border:2px dashed #ffffffa0;border-radius:50%;background:var(--game-accent,#e4c47c);box-shadow:0 2px 5px #0005}
@media(max-height:480px){.games-enhanced :is(#gamePanel,#roulettePanel,#blackjackPanel).open{position:fixed;left:8px;right:8px;top:64px;bottom:8px;transform:none;width:auto;height:auto;min-height:0;z-index:45;padding:6px}}
.profile-game-badge{display:inline-grid;place-items:center;min-width:18px;font-size:15px;color:var(--game-accent,#e4c47c);margin-left:5px;flex:none}.game-user-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.game-badge{border:1px solid transparent;text-align:left;font-family:inherit;cursor:pointer}.game-badge:disabled{cursor:default}.game-badge[aria-pressed=true]{border-color:#e4c47c80}.games-enhanced #userInfo:has(.profile-game-badge){display:flex}
.games-enhanced .slot-machine .game-unlock{bottom:calc(100% + 8px)}
.games-enhanced .slot-balances{display:block;white-space:normal;line-height:1.6}
.games-enhanced .slot-machine-header .slot-machine-close{order:3;flex:none;min-width:20px;min-height:28px}
.games-enhanced .slot-machine-header .game-style-button{order:2;flex:none}
