.casino-icon     { width: 60px; height: 60px; font-size: 1.8rem; margin-right: 0; }
.casino-title    { font-size: 1.6rem; }
.casino-subtitle { color: var(--text-muted); margin: 0.2rem 0 0; font-weight: 600; font-size: 0.85rem; }

/* ── Balance ── */
.balance-card {
    text-align: center;
    padding: 1.2rem 2rem;
    margin-bottom: 1.5rem;
}
.balance-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}
.balance-amount {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #feca57, #ff9ff3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    display: inline-block;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.balance-amount.bump { transform: scale(1.12); }

/* ── Machine card ── */
.machine-card {
    padding: 2rem 2rem 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* ── Reel area ── */
.reels-frame {
    display: inline-flex;
    gap: 10px;
    background: rgba(0,0,0,0.35);
    border-radius: 20px;
    padding: 16px;
    border: 1px solid rgba(255,255,255,0.07);
    margin-bottom: 1.6rem;
    position: relative;
}

.reels-frame::before,
.reels-frame::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 3px;
    border-radius: 2px;
    background: rgba(254,202,87,0.5);
    box-shadow: 0 0 6px rgba(254,202,87,0.6);
}
.reels-frame::before { left: 4px; }
.reels-frame::after  { right: 4px; }

.reel-col {
    width: 112px;
    height: 336px;
    overflow: hidden;
    border-radius: 14px;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.09);
    position: relative;
    transition: box-shadow 0.4s ease;
}

.reel-col::before,
.reel-col::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    height: 120px;
    z-index: 2;
    pointer-events: none;
}
.reel-col::before {
    top: 0;
    background: linear-gradient(to bottom,
        rgba(8,8,12,1)   0%,
        rgba(8,8,12,0.9) 35%,
        rgba(8,8,12,0.4) 75%,
        transparent      100%);
}
.reel-col::after {
    bottom: 0;
    background: linear-gradient(to top,
        rgba(8,8,12,1)   0%,
        rgba(8,8,12,0.9) 35%,
        rgba(8,8,12,0.4) 75%,
        transparent      100%);
}

.reel-col .payline-bar {
    position: absolute;
    top: 112px;
    left: 0; right: 0;
    height: 112px;
    z-index: 1;
    pointer-events: none;
    border-top: 1px solid rgba(254,202,87,0.18);
    border-bottom: 1px solid rgba(254,202,87,0.18);
}

.reel-strip {
    display: flex;
    flex-direction: column;
    will-change: transform;
}

.reel-sym {
    width: 112px;
    height: 112px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.reel-sym img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    user-select: none;
    pointer-events: none;
    display: block;
}

.reel-col.win {
    box-shadow: 0 0 0 2px rgba(254,202,87,0.7), 0 0 28px rgba(254,202,87,0.4);
    animation: winPulse 0.7s ease-in-out infinite alternate;
}
.reel-col.jackpot {
    box-shadow: 0 0 0 2px rgba(255,107,107,1), 0 0 40px rgba(255,107,107,0.6);
    animation: jackpotPulse 0.3s ease-in-out infinite alternate;
}

@keyframes winPulse {
    from { box-shadow: 0 0 0 2px rgba(254,202,87,0.4), 0 0 16px rgba(254,202,87,0.2); }
    to   { box-shadow: 0 0 0 2px rgba(254,202,87,0.9), 0 0 36px rgba(254,202,87,0.5); }
}
@keyframes jackpotPulse {
    from { box-shadow: 0 0 0 2px rgba(255,107,107,0.7), 0 0 24px rgba(255,107,107,0.4); transform: scale(1); }
    to   { box-shadow: 0 0 0 3px rgba(255,107,107,1),   0 0 50px rgba(255,107,107,0.7); transform: scale(1.04); }
}

/* ── Controls ── */
.bet-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.4rem;
    flex-wrap: wrap;
}
.bet-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-right: 0.2rem;
}
.bet-btn {
    padding: 0.45rem 1.1rem;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.bet-btn:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.25); }
.bet-btn.active {
    background: rgba(254,202,87,0.15);
    border-color: rgba(254,202,87,0.65);
    color: #feca57;
    box-shadow: 0 0 14px rgba(254,202,87,0.2);
}

.spin-btn {
    padding: 1rem 4rem;
    border-radius: 100px;
    border: none;
    background: linear-gradient(135deg, #feca57, #ff9ff3);
    color: #111;
    font-family: var(--font-family);
    font-weight: 800;
    font-size: 1.15rem;
    cursor: pointer;
    letter-spacing: 1px;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, opacity 0.2s;
    box-shadow: 0 6px 28px rgba(254,202,87,0.35);
}
.spin-btn:hover:not(:disabled) { transform: scale(1.05) translateY(-2px); box-shadow: 0 10px 36px rgba(254,202,87,0.5); }
.spin-btn:active:not(:disabled) { transform: scale(0.97); }
.spin-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.result-msg {
    min-height: 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 1.1rem;
    color: transparent;
    transition: color 0.3s ease;
}
.result-msg.show-lose      { color: var(--text-muted); }
.result-msg.show-small     { color: #48dbfb; }
.result-msg.show-win       { color: #feca57; }
.result-msg.show-big       { color: #ff9ff3; }
.result-msg.show-broke     { color: #ff6b6b; }
.result-msg.show-category3 { color: #a29bfe; }
.result-msg.show-category2 { color: #74b9ff; }
.result-msg.show-jackpot {
    background: linear-gradient(135deg, #ff6b6b, #feca57, #ff9ff3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.5rem;
    animation: jackpotText 0.5s ease-in-out infinite alternate;
}
@keyframes jackpotText {
    from { letter-spacing: 0; }
    to   { letter-spacing: 4px; }
}

/* ── Reset ── */
.reset-btn {
    background: none;
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-muted);
    font-family: var(--font-family);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.4rem 1.1rem;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: block;
    margin: 0 auto 2rem;
}
.reset-btn:hover { background: rgba(255,255,255,0.05); color: var(--text-main); }

/* ── Fly overlay (jackpot + win burst) ── */
.fly-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    pointer-events: none;
    overflow: hidden;
}
.flying-sym {
    position: absolute;
    object-fit: contain;
    opacity: 0;
    animation: flyWC 2.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.flying-sym.quick {
    animation-duration: 1.6s;
}
@keyframes flyWC {
    0%   { opacity: 0;   transform: translate(0,0)                 rotate(0deg)       scale(0.2); }
    12%  { opacity: 1; }
    85%  { opacity: 0.9; }
    100% { opacity: 0;   transform: translate(var(--dx),var(--dy)) rotate(var(--rot)) scale(var(--sc)); }
}

/* ── Debug Panel ── */
.debug-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
}
.debug-panel {
    background: rgba(6, 10, 6, 0.98);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 16px;
    padding: 1.4rem 1.6rem 1.2rem;
    width: min(92vw, 400px);
    box-shadow: 0 0 60px rgba(0,255,136,0.12), 0 20px 60px rgba(0,0,0,0.9);
    font-family: 'Courier New', Courier, monospace;
    color: #00ff88;
    font-size: 0.82rem;
}
.debug-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    font-size: 0.88rem;
    font-weight: bold;
    letter-spacing: 2px;
    border-bottom: 1px solid rgba(0,255,136,0.15);
    padding-bottom: 0.8rem;
}
.debug-close {
    background: none;
    border: 1px solid rgba(0,255,136,0.3);
    color: #00ff88;
    border-radius: 6px;
    cursor: pointer;
    padding: 0.2rem 0.55rem;
    font-size: 0.78rem;
    font-family: 'Courier New', monospace;
    transition: background 0.15s;
}
.debug-close:hover { background: rgba(0,255,136,0.1); }
.debug-section { margin-bottom: 1.1rem; }
.debug-section-title {
    color: rgba(0,255,136,0.45);
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    margin-bottom: 0.55rem;
}
.debug-row {
    display: flex;
    gap: 0.38rem;
    margin-bottom: 0.45rem;
    flex-wrap: wrap;
}
.debug-btn {
    background: rgba(0,255,136,0.06);
    border: 1px solid rgba(0,255,136,0.22);
    color: #00ff88;
    border-radius: 8px;
    padding: 0.32rem 0.7rem;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 0.77rem;
    transition: all 0.15s;
    white-space: nowrap;
}
.debug-btn:hover { background: rgba(0,255,136,0.14); border-color: rgba(0,255,136,0.45); }
.debug-btn.danger { color: #ff6b6b; border-color: rgba(255,107,107,0.28); background: rgba(255,107,107,0.04); }
.debug-btn.danger:hover { background: rgba(255,107,107,0.14); }
.debug-btn.accent { color: #feca57; border-color: rgba(254,202,87,0.38); background: rgba(254,202,87,0.07); flex-grow: 1; text-align: center; }
.debug-btn.accent:hover { background: rgba(254,202,87,0.16); }
.debug-btn.toggle { min-width: 130px; }
.debug-btn.toggle.active { color: #00ff88; border-color: rgba(0,255,136,0.65); background: rgba(0,255,136,0.11); box-shadow: 0 0 10px rgba(0,255,136,0.18); }
.debug-select {
    background: rgba(0,255,136,0.04);
    border: 1px solid rgba(0,255,136,0.2);
    color: #00ff88;
    border-radius: 8px;
    padding: 0.28rem 0.35rem;
    font-family: 'Courier New', monospace;
    font-size: 0.72rem;
    flex: 1;
    min-width: 0;
}
.debug-select option { background: #060e06; }
.debug-force-status {
    font-size: 1.2rem;
    text-align: center;
    min-height: 1.6rem;
    color: rgba(0,255,136,0.35);
    margin-top: 0.25rem;
    letter-spacing: 5px;
}
.debug-force-status.active { color: #feca57; }
.debug-stats {
    display: flex;
    gap: 1.2rem;
    color: rgba(0,255,136,0.4);
    font-size: 0.72rem;
    margin-top: 0.35rem;
}

@media (max-width: 420px) {
    .reel-col { width: 90px; height: 270px; }
    .reel-col::before, .reel-col::after { height: 96px; }
    .reel-col .payline-bar { top: 90px; height: 90px; }
    .reel-sym { width: 90px; height: 90px; }
    .reel-sym img { width: 64px; height: 64px; }
}