/**
 * Game Shared CSS — Components used across ALL casino game pages.
 * Requires: app.css (loaded first via head.php)
 *
 * Covers:
 *  1. Game header (back button replaces nav)
 *  2. Game layout (main-content for games)
 *  3. Game title
 *  4. Controls card + styled inputs + quick bets
 *  5. Action buttons (play/roll/flip/spin)
 *  6. Result display
 *  7. Win flash overlay
 *  8. Error toast
 *  9. Collapsible panels (history, provably-fair)
 * 10. History items
 * 11. Verify rows
 * 12. Panel base
 * 13. Scanlines overlay
 * 14. Info rows / stat pills
 * 15. Balance bounce animation
 */

/* ==========================================================================
   1. GAME HEADER (back-btn + balance)
   ========================================================================== */
.back-btn {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(168, 85, 247, 0.1));
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: var(--cyan);
    padding: 10px 18px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 800;
    font-size: 13px;
    transition: all .2s;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.15), inset 0 0 8px rgba(6, 182, 212, 0.05);
    letter-spacing: .5px;
    text-transform: uppercase;
    min-height: 44px;
}
.back-btn:active {
    background: rgba(6, 182, 212, 0.2);
    border-color: var(--cyan);
    transform: scale(0.94) translateX(-2px);
    box-shadow: 0 0 20px var(--cyan-glow);
}

.balance-badge.updated {
    animation: balanceBounce .5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes balanceBounce {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* ==========================================================================
   2. GAME LAYOUT
   ========================================================================== */
.game-content {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px 96px;
    position: relative;
    z-index: 5;
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
}

/* ==========================================================================
   3. GAME TITLE
   ========================================================================== */
.game-title {
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--gold), #ffaa00, var(--magenta));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 6s ease infinite;
    text-transform: uppercase;
    letter-spacing: 2px;
    filter: drop-shadow(0 0 10px var(--gold-glow));
}

.game-subtitle {
    font-size: 12px;
    color: var(--muted);
    text-align: center;
    margin-top: 2px;
}

/* ==========================================================================
   4. CONTROLS CARD + STYLED INPUTS + QUICK BETS
   ========================================================================== */
.controls-card {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 22px;
    padding: 18px;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    width: 100%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.controls-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 22px;
    padding: 1px;
    background: linear-gradient(180deg, rgba(168, 85, 247, 0.3), transparent 50%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.input-label {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: .5px;
}

.styled-input {
    width: 100%;
    background: rgba(5, 5, 20, 0.7);
    border: 1px solid rgba(168, 85, 247, 0.2);
    padding: 14px 16px;
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    outline: none;
    transition: all .25s;
}
.styled-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow), inset 0 0 10px rgba(168, 85, 247, 0.05);
}

.quick-bets {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.quick-bet-btn {
    flex: 1;
    min-width: 50px;
    min-height: 44px;
    padding: 10px 4px;
    border: 1px solid rgba(168, 85, 247, 0.25);
    background: rgba(168, 85, 247, 0.08);
    color: var(--text);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: all .15s;
}
.quick-bet-btn:active {
    background: rgba(168, 85, 247, 0.3);
    border-color: var(--primary);
    transform: scale(0.93);
    box-shadow: 0 0 12px var(--primary-glow);
}

/* ==========================================================================
   5. ACTION BUTTONS (Play/Roll/Flip/Spin/Bet)
   ========================================================================== */
.btn-play, .btn-roll, .btn-flip, .btn-spin, .btn-bet, .btn-deal, .btn-drop, .btn-race {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: all .2s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #7c3aed, #a855f7, #c084fc);
    color: #fff;
    box-shadow: 0 4px 20px var(--primary-glow), 0 0 40px rgba(168, 85, 247, 0.2);
    margin-top: 4px;
}
.btn-play:active, .btn-roll:active, .btn-flip:active, .btn-spin:active,
.btn-bet:active, .btn-deal:active, .btn-drop:active, .btn-race:active {
    transform: translateY(3px) scale(0.98);
    box-shadow: 0 2px 10px var(--primary-glow);
}
.btn-play:disabled, .btn-roll:disabled, .btn-flip:disabled, .btn-spin:disabled,
.btn-bet:disabled, .btn-deal:disabled, .btn-drop:disabled, .btn-race:disabled {
    background: rgba(30, 30, 50, 0.8);
    color: #555;
    box-shadow: none;
    cursor: not-allowed;
}

/* Sheen effect on action buttons */
.btn-play::before, .btn-roll::before, .btn-flip::before, .btn-spin::before,
.btn-bet::before, .btn-deal::before, .btn-drop::before, .btn-race::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: btnSheen 4s ease-in-out infinite;
}
.btn-play:disabled::before, .btn-roll:disabled::before, .btn-flip:disabled::before,
.btn-spin:disabled::before, .btn-bet:disabled::before, .btn-deal:disabled::before,
.btn-drop:disabled::before, .btn-race:disabled::before {
    display: none;
}
@keyframes btnSheen {
    0%, 100% { transform: translateX(-100%) rotate(45deg); }
    50%      { transform: translateX(100%) rotate(45deg); }
}

/* Cashout variant (green) */
.btn-cashout {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: all .2s;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: linear-gradient(135deg, #059669, #10b981);
    color: #fff;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}
.btn-cashout:active { transform: translateY(3px) scale(0.98); }
.btn-cashout:disabled { background: rgba(30, 30, 50, 0.8); color: #555; box-shadow: none; cursor: not-allowed; }

/* ==========================================================================
   6. RESULT DISPLAY
   ========================================================================== */
.result-display {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 16px;
    opacity: 0;
    transition: all .4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: var(--radius-md);
    padding: 8px 18px;
    text-align: center;
}
.result-display.show { opacity: 1; }
.result-display.win {
    color: var(--success);
    text-shadow: 0 0 20px var(--success-glow);
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.2);
}
.result-display.lose {
    color: var(--danger);
    text-shadow: 0 0 10px rgba(255, 51, 102, 0.3);
    background: rgba(255, 51, 102, 0.05);
    border: 1px solid rgba(255, 51, 102, 0.2);
}

/* Alias: result-msg (used by limbo, tower_climb) */
.result-msg { 
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    opacity: 0;
    transition: all .4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: var(--radius-md);
    padding: 8px 16px;
    text-align: center;
}
.result-msg.show { opacity: 1; }
.result-msg.win { color: var(--success); text-shadow: 0 0 20px var(--success-glow); background: rgba(0, 255, 136, 0.05); border: 1px solid rgba(0, 255, 136, 0.2); }
.result-msg.lose { color: var(--danger); text-shadow: 0 0 10px rgba(255, 51, 102, 0.3); background: rgba(255, 51, 102, 0.05); border: 1px solid rgba(255, 51, 102, 0.2); }

/* Extra variants — Blackjack specific */
.result-display.blackjack {
    color: var(--gold);
    text-shadow: 0 0 24px var(--gold-glow), 0 0 8px rgba(255,215,0,0.5);
    background: rgba(255, 215, 0, 0.06);
    border: 1px solid rgba(255, 215, 0, 0.3);
}
.result-display.push {
    color: var(--cyan);
    text-shadow: 0 0 16px var(--cyan-glow);
    background: rgba(6, 182, 212, 0.05);
    border: 1px solid rgba(6, 182, 212, 0.2);
}

/* ==========================================================================
   7. WIN FLASH OVERLAY
   ========================================================================== */
.win-flash {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.15) 0%, transparent 70%);
    z-index: 100;
    pointer-events: none;
    animation: screenFlash .5s ease-out forwards;
}
@keyframes screenFlash {
    0%   { opacity: 1; }
    100% { opacity: 0; }
}

/* ==========================================================================
   8. ERROR TOAST
   ========================================================================== */
.error-toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: rgba(255, 51, 102, 0.12);
    border: 1px solid rgba(255, 51, 102, 0.3);
    color: var(--danger);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 700;
    z-index: 200;
    opacity: 0;
    transition: all .3s;
    pointer-events: none;
    max-width: 90%;
    text-align: center;
}
.error-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   9. COLLAPSIBLE PANELS
   ========================================================================== */
.collapsible-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 12px 14px;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 800;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    transition: border-color .2s;
    width: 100%;
}
.collapsible-head:active { border-color: var(--primary); }

.collapsible-body {
    display: none;
    padding: 12px;
    border: 1px solid var(--panel-border);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    background: rgba(5, 5, 20, 0.4);
}
.collapsible-body.open { display: block; }

.chev {
    transition: transform .2s;
    font-size: 10px;
}
.chev.open { transform: rotate(180deg); }

/* ==========================================================================
   10. HISTORY ITEMS
   ========================================================================== */
.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(139, 92, 246, 0.08);
    font-size: 12px;
}
.history-item:last-child { border-bottom: none; }

.h-mult {
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.h-mult.win { color: var(--success); }
.h-mult.loss { color: var(--danger); }

.h-time {
    color: var(--muted);
    font-size: 10px;
}

/* ==========================================================================
   11. VERIFY ROWS (Provably Fair)
   ========================================================================== */
.verify-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(139, 92, 246, 0.08);
    font-size: 11px;
}
.verify-row:last-child { border-bottom: none; }

.verify-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
}
.verify-status.valid { color: var(--success); }
.verify-status.invalid { color: var(--danger); }

.v-val {
    font-family: monospace;
    font-size: 10px;
    word-break: break-all;
    color: var(--muted);
    padding: 4px 8px;
    background: rgba(5, 5, 20, 0.5);
    border-radius: 6px;
}

/* ==========================================================================
   12. PANEL BASE (for game areas)
   ========================================================================== */
.panel {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-xl);
    padding: 14px;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    position: relative;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.panel-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Panel with gradient border (game areas like dice-area, coin-area, etc.) */
.game-area {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 24px;
    padding: 24px 20px;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    position: relative;
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.1), 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.game-area::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.4), transparent 40%, transparent 60%, rgba(6, 182, 212, 0.4));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* ==========================================================================
   13. SCANLINES OVERLAY
   ========================================================================== */
.scanlines {
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.03) 2px, rgba(0, 0, 0, 0.03) 4px);
    pointer-events: none;
    z-index: 9999;
}

/* ==========================================================================
   14. INFO ROWS / STAT PILLS
   ========================================================================== */
.game-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(168, 85, 247, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.15);
    border-radius: 10px;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.info-item .info-label {
    font-size: 10px;
    color: var(--muted);
    text-transform: uppercase;
    font-weight: 700;
}
.info-item .info-value {
    font-size: 14px;
    font-weight: 800;
    color: var(--cyan);
}
.info-item .info-value.gold { color: var(--gold); }

.stats-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.stat-pill {
    background: rgba(5, 5, 20, 0.5);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex: 1;
    min-width: 60px;
}
.stat-pill .stat-label {
    font-size: 9px;
    color: var(--muted);
    text-transform: uppercase;
    font-weight: 700;
}
.stat-pill .stat-value {
    font-size: 14px;
    font-weight: 800;
}

/* ==========================================================================
   15. ANIMATION ENGINE EFFECTS (shared across games)
   ========================================================================== */
.ae-locked { pointer-events: none; opacity: 0.7; }
.ae-loss-shake { animation: lossShake .4s ease-in-out; }
@keyframes lossShake {
    0%, 100% { transform: translateX(0); }
    20%      { transform: translateX(-6px); }
    40%      { transform: translateX(6px); }
    60%      { transform: translateX(-4px); }
    80%      { transform: translateX(4px); }
}
.ae-win-bounce { animation: winBounce .5s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
@keyframes winBounce {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.08); }
    100% { transform: scale(1); }
}

/* ==========================================================================
   16. SECTION LABEL (game-internal sections)
   ========================================================================== */
.section-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 10px;
    text-align: center;
}

/* ==========================================================================
   17. LAST RESULTS STRIP
   ========================================================================== */
.last-results {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}
.last-result-pill {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.last-result-pill.win { background: rgba(0, 255, 136, 0.08); color: var(--success); border: 1px solid rgba(0, 255, 136, 0.2); }
.last-result-pill.lose { background: rgba(255, 51, 102, 0.08); color: var(--danger); border: 1px solid rgba(255, 51, 102, 0.2); }

/* ==========================================================================
   18. MINI BUTTON (secondary actions)
   ========================================================================== */
.mini-btn {
    padding: 8px 14px;
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-sm);
    background: rgba(168, 85, 247, 0.06);
    color: var(--text);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all .15s;
}
.mini-btn:active {
    background: rgba(168, 85, 247, 0.2);
    border-color: var(--primary);
    transform: scale(0.95);
}


/* ==========================================================================
   VISUAL EFFECTS — restored from original inline styles
   ========================================================================== */

/* Action button pulse animation */
.btn-play, .btn-roll, .btn-flip, .btn-spin, .btn-bet, .btn-deal, .btn-drop, .btn-race {
    animation: actionBtnPulse 2.5s ease-in-out infinite;
}
@keyframes actionBtnPulse {
    0%, 100% { box-shadow: 0 4px 20px var(--primary-glow), 0 0 40px rgba(168, 85, 247, 0.2); }
    50%      { box-shadow: 0 4px 30px var(--primary-glow), 0 0 60px rgba(168, 85, 247, 0.3); }
}
.btn-play:disabled, .btn-roll:disabled, .btn-flip:disabled, .btn-spin:disabled,
.btn-bet:disabled, .btn-deal:disabled, .btn-drop:disabled, .btn-race:disabled {
    animation: none;
}

/* Balance badge bounce when updated */
.balance-badge.updated {
    animation: balanceBounce .5s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

/* Game area / dice-area / coin-area hover glow */
.game-area:hover, .controls-card:hover {
    border-color: rgba(139, 92, 246, 0.35);
}

/* Quick bet buttons active glow */
.quick-bet-btn:hover {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.4);
}

/* Styled input glow on focus */
.styled-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow), inset 0 0 10px rgba(168, 85, 247, 0.05);
}

/* Panel gradient border overlay */
.panel::before, .game-area::before, .controls-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.4), transparent 40%, transparent 60%, rgba(6, 182, 212, 0.4));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.5;
    transition: opacity .3s;
}

/* Result display scale animation */
.result-display.show, .result-msg.show {
    animation: resultPop .4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes resultPop {
    0%   { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Error toast slide in */
.error-toast.show {
    animation: toastSlideIn .3s ease-out;
}
@keyframes toastSlideIn {
    from { transform: translateX(-50%) translateY(-20px); opacity: 0; }
    to   { transform: translateX(-50%) translateY(0); opacity: 1; }
}

/* Collapsible head hover */
.collapsible-head:hover {
    border-color: rgba(168, 85, 247, 0.4);
    background: rgba(168, 85, 247, 0.05);
}

/* Back button hover glow */
.back-btn:hover {
    background: rgba(6, 182, 212, 0.15);
    border-color: var(--cyan);
    box-shadow: 0 0 20px var(--cyan-glow);
}

/* Game title shimmer */
.game-title {
    filter: drop-shadow(0 0 10px var(--gold-glow));
}

/* Cashout button pulse */
.btn-cashout:not(:disabled) {
    animation: cashoutPulse 2s ease-in-out infinite;
}
@keyframes cashoutPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4); }
    50%      { box-shadow: 0 4px 30px rgba(16, 185, 129, 0.6), 0 0 40px rgba(16, 185, 129, 0.2); }
}

/* ==========================================================================
   19. LOADING STATE — buton play în procesare
   ========================================================================== */

/* Stare loading pe butoane — adauga clasa .btn-loading in JS */
.btn-play.btn-loading,
.btn-roll.btn-loading,
.btn-flip.btn-loading,
.btn-deal.btn-loading,
.btn-drop.btn-loading,
.btn-bet.btn-loading,
.btn-race.btn-loading {
    cursor: wait;
    pointer-events: none;
    opacity: 0.85;
    animation: none;
}
.btn-play.btn-loading::after,
.btn-roll.btn-loading::after,
.btn-flip.btn-loading::after,
.btn-deal.btn-loading::after,
.btn-drop.btn-loading::after,
.btn-bet.btn-loading::after,
.btn-race.btn-loading::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btnSpinner .6s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}
@keyframes btnSpinner {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   20. FLOATING WIN BADGE ("+X ⭐" care pluteste in sus)
   ========================================================================== */
.float-win-badge {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 90px;
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 900;
    color: var(--success);
    text-shadow: 0 0 20px var(--success-glow), 0 0 40px rgba(0,255,136,0.3);
    pointer-events: none;
    z-index: 9000;
    animation: floatWinUp 1.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    white-space: nowrap;
}
.float-win-badge.lose-badge {
    color: var(--danger);
    text-shadow: 0 0 15px rgba(255,51,102,0.5);
    animation: floatWinUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes floatWinUp {
    0%   { opacity: 0; transform: translateX(-50%) translateY(0) scale(0.5); }
    15%  { opacity: 1; transform: translateX(-50%) translateY(-10px) scale(1.15); }
    60%  { opacity: 1; transform: translateX(-50%) translateY(-60px) scale(1); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-110px) scale(0.85); }
}

/* ==========================================================================
   21. BALANCE DELTA FLASH (+X / -X langa balance badge)
   ========================================================================== */
.balance-delta {
    position: absolute;
    right: 0;
    top: -18px;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 900;
    pointer-events: none;
    animation: deltaFloat 1.8s ease-out forwards;
    white-space: nowrap;
}
.balance-delta.win  { color: var(--success); text-shadow: 0 0 10px var(--success-glow); }
.balance-delta.lose { color: var(--danger);  text-shadow: 0 0 8px rgba(255,51,102,0.5); }
@keyframes deltaFloat {
    0%   { opacity: 0;   transform: translateY(0); }
    15%  { opacity: 1;   transform: translateY(-6px); }
    70%  { opacity: 1;   transform: translateY(-22px); }
    100% { opacity: 0;   transform: translateY(-36px); }
}

/* ==========================================================================
   22. KENO NUMBER GRID (shared styles)
   ========================================================================== */
.keno-num {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1.5px solid var(--panel-border);
    background: rgba(15,10,40,0.5);
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: all .18s cubic-bezier(0.34, 1.56, 0.64, 1);
    user-select: none;
    min-height: 40px;
    position: relative;
}
.keno-num:active { transform: scale(0.88); }
.keno-num.selected {
    border-color: var(--primary);
    background: rgba(168,85,247,0.18);
    color: var(--primary);
    box-shadow: 0 0 14px rgba(168,85,247,0.4), inset 0 0 10px rgba(168,85,247,0.08);
    transform: scale(1.06);
    animation: kenoSelect .3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.keno-num.hit {
    border-color: var(--success);
    background: rgba(0,255,136,0.15);
    color: var(--success);
    box-shadow: 0 0 18px rgba(0,255,136,0.5);
    animation: kenoHit .4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.keno-num.miss {
    border-color: var(--danger);
    background: rgba(255,51,102,0.1);
    color: var(--danger);
    opacity: 0.6;
}
.keno-num.drawn:not(.selected) {
    border-color: rgba(255,215,0,0.4);
    background: rgba(255,215,0,0.06);
    color: var(--gold);
}
@keyframes kenoSelect {
    0%   { transform: scale(0.9); }
    60%  { transform: scale(1.12); }
    100% { transform: scale(1.06); }
}
@keyframes kenoHit {
    0%   { transform: scale(1);    box-shadow: 0 0 5px rgba(0,255,136,0.2); }
    40%  { transform: scale(1.25); box-shadow: 0 0 30px rgba(0,255,136,0.7); }
    100% { transform: scale(1);    box-shadow: 0 0 18px rgba(0,255,136,0.5); }
}

