/* =========================================
   GAMES.CSS - Liquid Glass Game Elements
   ========================================= */

/* --- KRS МОНЕТА ИКОНКА --- */
.krs-coin {
    width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, var(--chrome-light) 0%, var(--chrome) 40%, var(--chrome-dark) 100%);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 7px; font-weight: 900; color: #0a0e1a;
    font-family: var(--font-head); letter-spacing: -0.3px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5), inset 0 1px 2px rgba(255,255,255,0.7), inset 0 -1px 1px rgba(0,0,0,0.25);
    position: relative;
}
.krs-coin::after {
    content: ''; position: absolute; top: 2px; left: 3px;
    width: 9px; height: 4px; border-radius: 50%;
    background: rgba(255,255,255,0.4);
    transform: rotate(-20deg);
}

/* --- ИГРОВОЙ БАЛАНС (LIQUID GLASS) --- */
.glass-bal {
    position: absolute; top: 40px; right: 20px;
    background: var(--bg-glass);
    backdrop-filter: blur(var(--glass-blur)); -webkit-backdrop-filter: blur(var(--glass-blur));
    border: var(--border-glass); box-shadow: var(--shadow-glass);
    padding: 8px 14px; border-radius: var(--rad-full);
    font-weight: var(--btn-weight); font-size: 15px; color: var(--text-main);
    z-index: 300; display: flex; align-items: center; gap: 7px; font-family: var(--font-num);
}
.game-bal { display: inline-block; transition: transform 0.2s; color: var(--chrome-light); }

/* --- УНИФИЦИРОВАННЫЙ ЗАГОЛОВОК ИГРЫ --- */
.game-modal-header {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    margin-bottom: 16px;
}
.game-modal-title {
    font-size: 11px; font-weight: 900; letter-spacing: 2.5px;
    text-transform: uppercase; color: var(--text-muted);
    font-family: var(--font-head); text-align: center;
}
[data-theme="light"] .game-modal-title {
    color: var(--text-main);
}
.game-modal-subtitle {
    font-size: 10px; color: var(--text-muted);
    font-family: var(--font-head); letter-spacing: 1px; text-transform: uppercase;
    opacity: 0.65;
}
[data-theme="light"] .game-modal-subtitle {
    opacity: 1;
    color: var(--text-secondary);
}

/* --- БЫСТРЫЕ СТАВКИ (LIQUID GLASS) --- */
.quick-row { display: flex; gap: 8px; margin-bottom: 20px; }
.q-btn {
    flex: 1;
    background: var(--bg-glass);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border: var(--border-glass); border-radius: var(--btn-radius);
    padding: 12px; color: var(--text-secondary); font-size: 13px;
    font-weight: var(--btn-weight); font-family: var(--font-head);
    transition: var(--btn-transition); cursor: pointer; text-transform: uppercase;
    box-shadow: var(--shadow-glass);
}
.q-btn:active { background: var(--blue); color: #fff; border-color: var(--blue); transform: scale(0.92); }
.safe-avail { text-align: right; font-size: 12px; color: var(--text-muted); margin-bottom: 8px; font-weight: 700; font-family: var(--font-head); }

.controls-row { display: flex; gap: 10px; margin-top: 10px; }
.auto-btn, .turbo-btn {
    width: 25%;
    background: var(--bg-glass);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border: var(--border-glass);
    font-size: 12px; color: var(--text-secondary); border-radius: var(--btn-radius);
    font-weight: var(--btn-weight); font-family: var(--font-head);
    transition: var(--btn-transition); cursor: pointer;
    box-shadow: var(--shadow-glass);
    padding: 10px 0;
}
.auto-btn:active, .turbo-btn:active { transform: scale(0.92); }
.auto-btn.active { background: rgba(192,198,208,0.15); color: var(--chrome-light); border-color: var(--chrome); }
.turbo-btn.active { background: rgba(47,128,237,0.2); color: var(--neon-blue); border-color: var(--neon-blue); }

.bet-input-group { position: relative; }
.bet-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; margin-bottom: 5px; font-weight: var(--btn-weight); padding-left: 5px; font-family: var(--font-head); }

/* --- РАКЕТА (LIQUID GLASS) --- */
.rocket-stage {
    width: 100%; height: 250px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-radius: var(--rad-xl); position: relative; overflow: hidden;
    border: var(--border-glass); margin-bottom: 15px;
    box-shadow: var(--shadow-glass);
}
.rocket-stage::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; background: repeating-linear-gradient(transparent,transparent 49px,rgba(128,150,255,0.04) 50px),repeating-linear-gradient(90deg,transparent,transparent 49px,rgba(128,150,255,0.04) 50px); pointer-events: none; }
.rocket-svg-container { width: 100%; height: 100%; position: absolute; bottom: 0; left: 0; }
.rocket-line { fill: none; stroke: var(--blue); stroke-width: 4; stroke-linecap: round; filter: drop-shadow(0 0 12px var(--neon-blue)); transition: stroke 0.3s; }
.rocket-ship { position: absolute; font-size: 32px; filter: drop-shadow(0 0 10px rgba(255,255,255,0.5)); z-index: 10; transform: translate(-50%, 50%); transition: 0.1s linear; }
.rocket-stage.crashed .rocket-line { stroke: var(--red); filter: drop-shadow(0 0 12px var(--red)); }
.rocket-stage.crashed .rocket-val { color: var(--red); }
.rocket-val { position: absolute; top: 30px; left: 50%; transform: translateX(-50%); font-size: 48px; font-weight: 900; color: var(--text-main); z-index: 20; font-family: var(--font-num); text-shadow: 0 0 20px rgba(0,0,0,0.8); transition: color 0.3s; }
.rocket-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* --- МИНЫ (LIQUID GLASS) --- */
.mines-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 8px; margin-bottom: 15px; }
.mine-cell {
    aspect-ratio: 1;
    background: var(--bg-glass);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: var(--border-glass); border-radius: var(--rad-md); cursor: pointer;
    position: relative; overflow: hidden;
    transition: transform 0.1s cubic-bezier(0.25,1,0.5,1);
    box-shadow: var(--shadow-glass);
}
.mine-cell:active { transform: scale(0.85); }
.mine-cell.revealed { background: var(--bg-inset); backdrop-filter: none; transition: none; }
.mine-cell.gem::after { content: '💎'; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-size: 22px; animation: pop .2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
.mine-cell.bomb { background: rgba(255,59,48,0.3); border-color: var(--red); }
.mine-cell.bomb::after { content: '💣'; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-size: 22px; animation: pop .2s forwards; }
@keyframes pop { 0%{transform:translate(-50%,-50%) scale(0)} 80%{transform:translate(-50%,-50%) scale(1.2)} 100%{transform:translate(-50%,-50%) scale(1)} }

/* --- РУЛЕТКА (LIQUID GLASS) --- */
.roul-header { display:flex; flex-direction:column; gap:8px; margin-bottom:14px; }
.roul-title { font-size:11px; font-weight:900; letter-spacing:2px; text-transform:uppercase; color:var(--text-muted); text-align:center; font-family:var(--font-head); }
.roul-history { display:flex; gap:5px; justify-content:center; align-items:center; flex-wrap:wrap; min-height:22px; }
.roul-hist-dot {
    width:22px; height:22px; border-radius:50%; display:flex; align-items:center; justify-content:center;
    font-size:9px; font-weight:900; color:#fff; font-family:var(--font-num);
    flex-shrink:0; box-shadow:0 2px 6px rgba(0,0,0,0.4);
}

.roul-wrap {
    height: 90px;
    background: var(--bg-inset);
    border-radius: var(--rad-xl); margin-bottom: 12px;
    position: relative; overflow: hidden;
    border: var(--border-glass);
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.4), var(--shadow-glass);
}
.roul-strip { display:flex; height:100%; align-items:center; will-change:transform; }
.roul-item {
    flex-shrink:0; width:70px; height:72px; margin:0 3px;
    border-radius:10px;
    display:flex; align-items:center; justify-content:center;
    font-weight:900; font-size:22px; color:#fff; font-family:var(--font-num);
    border:1px solid rgba(255,255,255,0.12);
    box-shadow:inset 0 1px 0 rgba(255,255,255,0.15), 0 4px 10px rgba(0,0,0,0.4);
    letter-spacing:-1px;
}
.bg-red { background:linear-gradient(160deg,#c62828,#7f0000); }
.bg-black { background:linear-gradient(160deg,#2a2a2a,#111); }
.bg-green { background:linear-gradient(160deg,#2e7d32,#1b5e20); box-shadow:inset 0 1px 0 rgba(255,255,255,0.15), 0 0 10px rgba(46,125,50,0.4); }

.roul-pin { position:absolute; left:50%; transform:translateX(-50%); z-index:10; width:0; height:0; }
.roul-pin-top { top:0; border-left:7px solid transparent; border-right:7px solid transparent; border-top:10px solid var(--chrome-light); filter:drop-shadow(0 2px 4px rgba(192,198,208,0.5)); }
.roul-pin-bot { bottom:0; border-left:7px solid transparent; border-right:7px solid transparent; border-bottom:10px solid var(--chrome-light); filter:drop-shadow(0 -2px 4px rgba(192,198,208,0.5)); }

.roul-badge {
    display:flex; align-items:center; justify-content:center; gap:10px;
    border-radius:var(--rad-xl); padding:10px 20px; margin-bottom:12px;
    border:1px solid rgba(255,255,255,0.15);
    box-shadow:0 4px 20px rgba(0,0,0,0.4);
    animation:badge-in 0.35s cubic-bezier(0.34,1.5,0.64,1);
}
@keyframes badge-in { from{opacity:0;transform:scale(0.8)} to{opacity:1;transform:scale(1)} }
.roul-badge-win { box-shadow:0 0 25px rgba(52,199,89,0.3), 0 4px 20px rgba(0,0,0,0.4); }
.roul-badge-lose { box-shadow:0 0 20px rgba(255,59,48,0.2), 0 4px 20px rgba(0,0,0,0.4); }
.roul-badge-num { font-size:32px; font-weight:900; color:#fff; font-family:var(--font-num); line-height:1; }
.roul-badge-label { font-size:12px; font-weight:800; color:rgba(255,255,255,0.7); font-family:var(--font-head); text-transform:uppercase; letter-spacing:1.5px; }

.roul-board { display:flex; flex-direction:column; gap:7px; margin-bottom:12px; }
.rb-row { display:flex; gap:7px; }
.rb-btn {
    flex:1; padding:10px 8px;
    background:var(--bg-surface-solid);
    border:1px solid rgba(255,255,255,0.08); border-radius:var(--rad-md);
    color:var(--text-secondary);
    font-weight:800; font-size:11px; font-family:var(--font-head);
    transition:var(--btn-transition); position:relative; cursor:pointer;
    display:flex; align-items:center; gap:7px;
    box-shadow:0 2px 8px rgba(0,0,0,0.2);
}
.rb-btn:active { transform:scale(0.95); }
.rb-btn:disabled { opacity:0.45; cursor:not-allowed; transform:none; }

.rb-chip { width:22px; height:22px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:9px; font-weight:900; flex-shrink:0; }
.rb-chip-green { background:#2e7d32; color:#fff; border:1px solid #4caf50; }
.rb-chip-red   { background:#c62828; color:#fff; border:1px solid #ef5350; font-size:13px; line-height:1; }
.rb-chip-dark  { background:#1a1a1a; color:#fff; border:1px solid #555; font-size:13px; line-height:1; }
.rb-chip-blue  { background:var(--blue); color:#fff; border:none; font-size:8px; letter-spacing:-0.5px; }

.rb-name { flex:1; text-align:left; font-size:11px; color:var(--text-main); text-transform:uppercase; letter-spacing:0.5px; }
.rb-mult { font-size:11px; font-weight:900; color:var(--text-muted); font-family:var(--font-num); }

.rb-zero { background:rgba(46,125,50,0.12); border-color:rgba(46,125,50,0.3); }
.rb-red  { background:rgba(198,40,40,0.1); border-color:rgba(198,40,40,0.25); }
.rb-black { background:rgba(255,255,255,0.03); }

.rb-btn.active { border-color:var(--blue) !important; box-shadow:0 0 0 2px rgba(47,128,237,0.35) !important; }
.rb-btn.active .rb-name { color:var(--blue); }
.rb-btn.active .rb-mult { color:var(--chrome-light); }
.rb-btn.active.rb-zero { border-color:#4caf50 !important; box-shadow:0 0 0 2px rgba(76,175,80,0.3) !important; }
.rb-btn.active.rb-zero .rb-name { color:#4caf50; }
.rb-btn.active.rb-red { border-color:#ef5350 !important; box-shadow:0 0 0 2px rgba(239,83,80,0.3) !important; }
.rb-btn.active.rb-red .rb-name { color:#ef5350; }

.roul-bet-area { display:flex; flex-direction:column; gap:8px; margin-bottom:12px; }
.roul-quick { display:flex; gap:6px; }
.roul-quick .btn-mini { flex:1; background:var(--bg-surface-solid); color:var(--text-secondary); border:1px solid rgba(255,255,255,0.08); padding:8px 6px; font-size:11px; }
.roul-max-btn { color:var(--chrome-light) !important; border-color:rgba(192,198,208,0.2) !important; }

/* --- СЛОТЫ (LIQUID GLASS) --- */
.slot-machine-frame {
    background: var(--bg-glass);
    backdrop-filter: blur(var(--glass-blur)); -webkit-backdrop-filter: blur(var(--glass-blur));
    border: var(--border-glass); border-radius: var(--rad-xl);
    padding: 12px;
    box-shadow: var(--shadow-glass);
    position: relative; margin-bottom: 25px; transition: 0.3s;
}
.slot-window {
    overflow: hidden; height: 180px; position: relative;
    background: var(--bg-inset);
    backdrop-filter: blur(10px);
    border-radius: var(--rad-lg);
    box-shadow: inset 0 2px 15px rgba(0,0,0,0.2);
    display: flex; gap: 4px; padding: 4px;
}
.slot-window::before { content: ''; position: absolute; top: 50%; left: 0; width: 100%; height: 2px; background: rgba(255,0,0,0.5); z-index: 20; transform: translateY(-50%); box-shadow: 0 0 8px rgba(255,0,0,0.6); pointer-events: none; }
.slot-window.win-anim::before { background: var(--blue); box-shadow: var(--shadow-glow-blue); height: 4px; transition: 0.3s; }
.slot-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 70%, rgba(0,0,0,0.5) 100%); z-index: 10; pointer-events: none; border-radius: var(--rad-md); }
.reel-viewport { flex: 1; height: 100%; position: relative; perspective: 1200px; overflow: hidden; }
.reel-3d { position: absolute; top: 50%; left: 50%; width: 100%; height: 80px; transform-style: preserve-3d; transform: translate(-50%,-50%); }
.reel-face { position: absolute; width: 100%; height: 80px; display: flex; align-items: center; justify-content: center; font-size: 48px; font-weight: 900; color: var(--text-main); font-family: var(--font-num); backface-visibility: hidden; text-shadow: 0 0 10px rgba(255,255,255,0.2); border-top: var(--border-light); border-bottom: var(--border-light); }
.blur-spin .reel-face { filter: blur(2px); opacity: 0.8; }

.slot-machine-frame.jackpot-anim { animation: pulse-border 1.5s infinite; }
@keyframes pulse-border { 0%{box-shadow:var(--shadow-glass),inset 0 0 0 2px var(--blue),inset 0 0 20px rgba(47,128,237,0.4)} 50%{box-shadow:var(--shadow-glass),inset 0 0 0 5px var(--neon-blue),inset 0 0 50px rgba(47,128,237,0.9)} 100%{box-shadow:var(--shadow-glass),inset 0 0 0 2px var(--blue),inset 0 0 20px rgba(47,128,237,0.4)} }

/* --- СЕТКА ИГР (LIQUID GLASS) --- */
.games-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 10px; }
.game-card {
    background: var(--bg-glass);
    backdrop-filter: blur(var(--glass-blur)); -webkit-backdrop-filter: blur(var(--glass-blur));
    border: var(--border-glass); border-radius: var(--rad-xl); padding: 20px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    position: relative; height: 140px; transition: var(--btn-transition);
    box-shadow: var(--shadow-glass);
}
.game-card:active { transform: scale(0.92); }
.game-badge {
    position: absolute; top: 10px; right: 10px;
    background: rgba(47,128,237,0.2); color: var(--blue);
    font-size: 9px; padding: 3px 8px; border-radius: var(--rad-full);
    font-weight: var(--btn-weight); letter-spacing: 0.5px;
    font-family: var(--font-head); text-transform: uppercase;
    backdrop-filter: blur(10px);
}
.game-title {
    font-weight: var(--btn-weight); font-size: 12px; letter-spacing: 1px;
    text-transform: uppercase; margin-top: 5px;
    font-family: var(--font-head); color: var(--text-main);
}
.ico-svg { width: 48px; height: 48px; margin-bottom: 5px; transition: transform 0.3s; }
.game-card:active .ico-svg { transform: scale(0.9); }

/* =========================================
   FORTUNE WHEEL - Premium Liquid Glass
   ========================================= */
.fortune-modal {
    max-width: 400px; width: 95%; text-align: center; padding: 30px 20px;
}
.fortune-header { margin-bottom: 20px; }
.fortune-header .fortune-icon { font-size: 40px; margin-bottom: 5px; animation: fortunePulse 2s ease-in-out infinite; }
.fortune-header h2 {
    color: var(--chrome-light, #e0e8f0); font-family: var(--font-head); margin: 0; letter-spacing: 2px; font-size: 22px;
    text-shadow: 0 0 20px rgba(180,200,255,0.3);
}
.fortune-header p { color: var(--text-muted); font-size: 12px; margin: 8px 0 0; }

@keyframes fortunePulse { 0%,100% { transform: scale(1) rotate(0deg); } 50% { transform: scale(1.1) rotate(5deg); } }

.wheel-container { display: flex; justify-content: center; margin-bottom: 20px; }

.wheel-outer-ring {
    position: relative; width: 310px; height: 310px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #1a1a2e, #2a2a4e, #3a3a5e, #2a2a4e, #1a1a2e);
    padding: 5px;
    box-shadow: 0 0 40px rgba(180,200,255,0.12), 0 0 80px rgba(0,0,0,0.5), inset 0 0 20px rgba(0,0,0,0.3);
    transition: box-shadow 0.3s;
}
.wheel-outer-ring.spinning {
    animation: wheelGlow 1.2s ease-in-out infinite;
}
@keyframes wheelGlow {
    0%, 100% { box-shadow: 0 0 40px rgba(180,200,255,0.15), 0 0 80px rgba(0,0,0,0.5), inset 0 0 20px rgba(0,0,0,0.3); }
    50% { box-shadow: 0 0 60px rgba(180,200,255,0.6), 0 0 100px rgba(140,170,255,0.3), inset 0 0 20px rgba(0,0,0,0.3); }
}
.wheel-leds {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 50%; z-index: 2; pointer-events: none;
}
.wheel-led {
    position: absolute; width: 8px; height: 8px; border-radius: 50%;
    background: rgba(180,200,230,0.25);
    box-shadow: 0 0 4px rgba(180,200,230,0.15);
    transition: all 0.15s;
}
.wheel-led.on {
    background: #e0e8ff;
    box-shadow: 0 0 8px #e0e8ff, 0 0 16px rgba(180,200,255,0.5);
}

.wheel-inner {
    position: relative; width: 100%; height: 100%; border-radius: 50%; overflow: hidden;
    border: 3px solid rgba(180,200,230,0.35);
}

#wheel-pointer-top {
    position: absolute; top: -2px; left: 50%; transform: translateX(-50%);
    width: 0; height: 0;
    border-left: 14px solid transparent; border-right: 14px solid transparent;
    border-top: 28px solid var(--chrome-light, #e0e8f0);
    z-index: 10;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}
#wheel-pointer-top::after {
    content: ''; position: absolute; top: -28px; left: -10px;
    border-left: 10px solid transparent; border-right: 10px solid transparent;
    border-top: 22px solid #ffffff;
    opacity: 0.4;
}

#wheel-canvas { width: 100%; height: 100%; display: block; }

.wheel-center-cap {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 52px; height: 52px; border-radius: 50%;
    background: linear-gradient(145deg, #c0c8d8, #8890a0);
    border: 3px solid rgba(255,255,255,0.5);
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 12px; color: #1a1a2e; font-family: var(--font-head);
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5), inset 0 1px 2px rgba(255,255,255,0.4);
    z-index: 5;
}

.fortune-result {
    padding: 15px; border-radius: var(--rad-lg); margin-bottom: 15px;
    font-weight: 900; font-size: 18px; font-family: var(--font-head);
    animation: resultPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: linear-gradient(135deg, rgba(180,200,255,0.12), rgba(140,170,230,0.08));
    border: 1px solid rgba(180,200,255,0.25);
    color: var(--chrome-light, #e0e8f0);
}
@keyframes resultPop { 0% { transform: scale(0.5); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

.fortune-timer {
    color: var(--red); font-weight: bold; margin-bottom: 15px; font-size: 13px;
    background: rgba(255,59,48,0.08); padding: 12px; border-radius: var(--rad-md);
    border: 1px solid rgba(255,59,48,0.15);
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.fortune-timer .timer-icon { font-size: 16px; }

.fortune-spin-btn {
    background: linear-gradient(135deg, #3a5a8c, #2a4060) !important;
    color: #fff !important; font-weight: 900 !important; height: 55px; font-size: 16px;
    border: 1px solid rgba(180,200,255,0.2) !important;
    box-shadow: 0 4px 20px rgba(60,100,180,0.25);
    letter-spacing: 1px;
    transition: all 0.3s !important;
}
.fortune-spin-btn:disabled {
    opacity: 0.5; filter: grayscale(0.5);
}
.fortune-spin-btn.spinning {
    animation: none; pointer-events: none;
    background: linear-gradient(135deg, #555, #333) !important;
    color: #aaa !important;
}

@keyframes wheelSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(var(--spin-deg)); }
}

.coin-rain-container {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none; z-index: 99999; overflow: hidden;
}
.coin-particle {
    position: absolute; font-size: 18px; opacity: 1;
    animation: coinFly 1.8s cubic-bezier(0.25, 0, 0.5, 1) forwards;
}
@keyframes coinFly {
    0% { transform: translateY(0) translateX(0) scale(0.5) rotate(0deg); opacity: 1; }
    30% { transform: translateY(-120px) translateX(var(--cx)) scale(1.2) rotate(180deg); opacity: 1; }
    100% { transform: translateY(60vh) translateX(var(--cx)) scale(0.3) rotate(540deg); opacity: 0; }
}

/* =========================================
   FLAPPY BIRD (КРИСТЕР ПОЛЕТ) — Premium UI
   ========================================= */
.flappy-modal-wrap { padding-bottom: 20px; }

.flappy-top-bar {
    display: flex; align-items: flex-start; justify-content: space-between;
    margin-bottom: 18px;
}
.flappy-game-title {
    font-size: 16px; font-weight: 900; letter-spacing: 3px; text-transform: uppercase;
    color: var(--chrome-light); font-family: var(--font-head);
    text-shadow: var(--shadow-glow-chrome);
}
.flappy-game-sub {
    font-size: 10px; color: var(--text-muted); margin-top: 3px;
    font-family: var(--font-head); letter-spacing: 1px; text-transform: uppercase;
}

.flappy-stats-row {
    display: grid; grid-template-columns: 1fr 1.4fr 1fr;
    gap: 8px; margin-bottom: 14px;
}
.flappy-stat-box {
    background: var(--bg-glass);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border: var(--border-glass); border-radius: var(--rad-lg);
    padding: 10px 8px; text-align: center;
    box-shadow: var(--shadow-glass);
}
.flappy-score-box {
    background: var(--bg-glass);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(192,198,208,0.2); border-radius: var(--rad-lg);
    padding: 10px 8px; text-align: center;
    box-shadow: var(--shadow-glass), 0 0 15px rgba(192,198,208,0.05);
}
.flappy-stat-val {
    font-size: 15px; font-weight: 900; color: var(--chrome-light);
    font-family: var(--font-num); line-height: 1;
}
.flappy-score-num {
    font-size: 22px; font-weight: 900; color: var(--text-main);
    font-family: var(--font-num); line-height: 1;
    text-shadow: 0 0 10px rgba(255,255,255,0.15);
}
.flappy-stat-lbl {
    font-size: 9px; color: var(--text-muted); text-transform: uppercase;
    font-family: var(--font-head); letter-spacing: 0.8px; margin-top: 4px;
    font-weight: 700;
}
.flappy-dots-row {
    display: flex; gap: 6px; justify-content: center; align-items: center;
    min-height: 15px;
}
.flappy-dot {
    width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
    background: var(--bg-inset);
    border: 1px solid rgba(255,255,255,0.1);
    transition: background 0.3s, box-shadow 0.3s;
}
.flappy-dot.active {
    background: var(--neon-blue);
    box-shadow: 0 0 8px rgba(0,229,255,0.6);
    border-color: var(--neon-blue);
}

.flappy-canvas-area {
    position: relative; margin-bottom: 14px;
    border-radius: var(--rad-lg); overflow: hidden;
    border: var(--border-glass);
    box-shadow: inset 0 0 30px rgba(0,0,0,0.7), var(--shadow-glass);
}
.flappy-tap-hint {
    position: absolute; bottom: 12px; left: 0; width: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    color: rgba(255,255,255,0.55); font-family: var(--font-head);
    pointer-events: none; z-index: 10;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
    animation: hintBlink 2s ease-in-out infinite;
}
@keyframes hintBlink {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 1; }
}

.flappy-play-btn {
    background: linear-gradient(135deg, #0090cc, #00cfff) !important;
    border-color: rgba(0,207,255,0.4) !important;
    box-shadow: 0 4px 20px rgba(0,207,255,0.3) !important;
    color: #001a28 !important;
    font-size: 14px; letter-spacing: 2px;
}
.flappy-play-btn:disabled {
    background: var(--bg-surface) !important;
    border-color: var(--border-light) !important;
    box-shadow: none !important;
}
.flappy-info-line {
    text-align: center; font-size: 10px; color: var(--text-muted);
    font-family: var(--font-head); letter-spacing: 0.5px;
    margin-top: 10px; font-weight: 600;
}

/* ===================================
   СВЕТЛАЯ ТЕМА — игровые модули
   =================================== */
[data-theme="light"] .fortune-spin-btn {
    background: linear-gradient(135deg, #2a5fa0, #3a7acc) !important;
    border-color: rgba(58,122,204,0.3) !important;
    box-shadow: 0 4px 20px rgba(42,95,160,0.3) !important;
}
[data-theme="light"] .fortune-spin-btn.spinning {
    background: linear-gradient(135deg, #bbb, #999) !important;
    color: #fff !important;
}
[data-theme="light"] .rb-chip-dark {
    background: #4a5280 !important;
    border-color: #6070a0 !important;
}
[data-theme="light"] .mines-btn,
[data-theme="light"] .slots-btn {
    background: rgba(0,20,80,0.06) !important;
    color: var(--text-main) !important;
    border-color: rgba(0,20,80,0.12) !important;
}
