/* ==================== CASHFLIP CASINO UI ==================== */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Electric Teal & Gold — Cashflip Brand Palette */
    --teal: #00BFA6;
    --teal-dark: #009E8B;
    --teal-light: #4DD9C0;
    --gold: #F5C842;
    --gold-dark: #D4A72C;
    --neon-green: #00E676;
    --neon-blue: #4DD9C0;
    --neon-pink: #FF6B6B;
    --neon-purple: #8B5CF6;
    --casino-dark: #0D1117;
    --casino-surface: #161B26;
    --casino-card: #1C2333;
    --casino-border: #2A3345;
    --text-primary: #F0F4F8;
    --text-secondary: #8B95A5;
    --danger: #FF6B6B;
    --success: #00E676;
    --warning: #F5C842;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    width: 100%; height: 100%;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    background: var(--casino-dark);
    color: var(--text-primary);
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* Force landscape ONLY during gameplay */
@media (orientation: portrait) and (max-width: 768px) {
    #game-screen.active::after {
        content: '📱 Please rotate your device to landscape mode';
        position: fixed; inset: 0; z-index: 99999;
        background: var(--casino-dark);
        display: flex; align-items: center; justify-content: center;
        font-size: 1.2rem; color: var(--teal); text-align: center; padding: 2rem;
        font-family: 'Orbitron', sans-serif;
    }
}

/* Auth & lobby: allow portrait scrolling */
#auth-screen, #lobby-screen {
    overflow-y: auto; -webkit-overflow-scrolling: touch;
}
@media (orientation: portrait) and (max-width: 768px) {
    #auth-screen { align-items: flex-start; padding-top: 3rem; }
    .auth-panel { margin-bottom: 2rem; }
}

/* Country code picker row */
.phone-row {
    display: flex; gap: 0.5rem; align-items: center;
}
.phone-row #phone-input { flex: 1; min-width: 0; }

/* Custom country picker */
.country-picker { position: relative; flex-shrink: 0; z-index: 100; }
.country-toggle {
    display: flex; align-items: center; gap: 4px;
    padding: 0.7rem 0.5rem;
    background: var(--casino-surface) !important; border: 1px solid var(--casino-border);
    border-radius: 8px; color: var(--text-primary); font-size: 0.9rem;
    cursor: pointer; white-space: nowrap; min-width: 88px;
    -webkit-appearance: none; appearance: none;
    font-family: inherit; line-height: 1.2;
}
.country-toggle:focus { border-color: var(--teal); outline: none; }
.country-toggle:hover { border-color: var(--teal); }
#selected-flag { font-size: 1.15rem; line-height: 1; font-family: 'Apple Color Emoji','Segoe UI Emoji','Noto Color Emoji',sans-serif; }
#selected-code { font-weight: 600; font-size: 0.85rem; color: var(--text-primary); }
.picker-arrow { font-size: 0.6rem; color: var(--text-secondary); margin-left: 1px; }

.country-dropdown {
    position: absolute; top: calc(100% + 4px); left: 0;
    width: 260px; max-height: 280px;
    background: var(--casino-card); border: 1px solid var(--casino-border);
    border-radius: 10px; z-index: 1000;
    box-shadow: 0 12px 40px rgba(0,0,0,0.6);
    display: flex; flex-direction: column;
    overflow: hidden;
}
.country-dropdown.hidden { display: none; }
.country-search {
    padding: 0.6rem 0.75rem; border: none;
    border-bottom: 1px solid var(--casino-border);
    background: var(--casino-surface); color: var(--text-primary);
    font-size: 0.85rem; outline: none; width: 100%;
}
.country-search::placeholder { color: var(--text-secondary); }
.country-list {
    overflow-y: auto; flex: 1;
    scrollbar-width: thin; scrollbar-color: var(--casino-border) transparent;
}
.country-item {
    display: flex; align-items: center; gap: 8px;
    padding: 0.5rem 0.75rem; cursor: pointer;
    font-size: 0.85rem; color: var(--text-primary);
    transition: background 0.15s;
}
.country-item:hover, .country-item.active { background: rgba(0,191,166,0.1); }
.country-item .ci-flag { font-size: 1.1rem; line-height: 1; }
.country-item .ci-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.country-item .ci-code { color: var(--teal); font-weight: 600; font-size: 0.8rem; white-space: nowrap; }

/* ==================== SCREENS ==================== */
.screen { position: fixed; inset: 0; display: none; z-index: 1; }
.screen.active { display: flex; }

.casino-bg {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 30%, #0f2027 0%, #0D1117 70%);
    z-index: 0;
}
.casino-bg::before {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}
.casino-bg::after {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(0,191,166,0.06) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(245,200,66,0.04) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(139,92,246,0.03) 0%, transparent 50%);
    animation: ambientShift 12s ease-in-out infinite alternate;
}
@keyframes ambientShift {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

/* ==================== LOADING ==================== */
#loading-screen {
    align-items: center; justify-content: center;
    background: var(--casino-dark); flex-direction: column;
    overflow: hidden;
}
#loading-screen::before {
    content: ''; position: absolute; width: 300px; height: 300px;
    border-radius: 50%; background: radial-gradient(circle, rgba(0,191,166,0.15), transparent 70%);
    animation: loadOrb 3s ease-in-out infinite alternate;
    filter: blur(40px);
}
@keyframes loadOrb { from { transform: scale(0.8); } to { transform: scale(1.3); } }
.loader-container { text-align: center; position: relative; z-index: 1; }
.logo-glow {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem; font-weight: 900;
    color: var(--teal);
    text-shadow: 0 0 20px rgba(0,191,166,0.5), 0 0 40px rgba(0,191,166,0.3);
    animation: glow 2s ease-in-out infinite alternate;
    letter-spacing: 4px;
}
@keyframes glow {
    from { text-shadow: 0 0 20px rgba(0,191,166,0.5), 0 0 60px rgba(0,191,166,0.15); }
    to { text-shadow: 0 0 40px rgba(0,191,166,0.8), 0 0 80px rgba(0,191,166,0.3), 0 0 120px rgba(0,191,166,0.1); }
}
.loader-bar {
    width: 200px; height: 4px; background: var(--casino-border);
    border-radius: 2px; margin: 1.5rem auto; overflow: hidden;
}
.loader-fill {
    width: 0; height: 100%; background: linear-gradient(90deg, var(--teal), var(--gold));
    border-radius: 2px; animation: loadFill 1.5s ease forwards;
}
@keyframes loadFill { to { width: 100%; } }
.loader-text { color: var(--text-secondary); font-size: 0.85rem; }

/* ==================== AUTH ==================== */
#auth-screen { align-items: center; justify-content: center; }
.auth-panel {
    position: relative; z-index: 1;
    background: rgba(28,35,51,0.85); border: 1px solid rgba(42,51,69,0.6);
    border-radius: 20px; padding: 2rem;
    width: 90%; max-width: 400px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,191,166,0.08), inset 0 1px 0 rgba(255,255,255,0.04);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.logo-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem; font-weight: 900; text-align: center; color: var(--text-primary);
}
.logo-title .accent { color: var(--teal); }
.tagline { text-align: center; color: var(--text-secondary); margin: 0.5rem 0 1.5rem; font-size: 0.9rem; }

.auth-step { display: none; }
.auth-step.active { display: block; }

.input-group { margin-bottom: 1rem; }
.input-group label { display: block; font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 0.4rem; }
.input-group input, .input-group select {
    width: 100%; padding: 0.75rem 1rem;
    background: var(--casino-surface); border: 1px solid var(--casino-border);
    border-radius: 8px; color: var(--text-primary); font-size: 1rem;
    outline: none; transition: border 0.2s;
}
.input-group input:focus, .input-group select:focus { border-color: var(--teal); }

.otp-channels { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.channel-btn {
    flex: 1; padding: 0.6rem; border: 1px solid var(--casino-border);
    background: var(--casino-surface); color: var(--text-secondary);
    border-radius: 8px; cursor: pointer; font-size: 0.85rem; transition: all 0.2s;
}
.channel-btn.active { border-color: var(--teal); color: var(--teal); background: rgba(0,191,166,0.1); }

.btn-primary {
    width: 100%; padding: 0.85rem; background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    border: none; border-radius: 12px; color: #fff; font-weight: 700;
    font-size: 1rem; cursor: pointer; transition: transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(0,191,166,0.2), inset 0 1px 0 rgba(255,255,255,0.15);
    position: relative; overflow: hidden;
}
.btn-primary::after {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.1) 50%, transparent 60%);
    transition: transform 0.5s;
    transform: translateX(-100%);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,191,166,0.35); }
.btn-primary:hover::after { transform: translateX(100%); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-secondary {
    padding: 0.75rem 1.5rem; background: var(--casino-surface);
    border: 1px solid var(--casino-border); border-radius: 8px;
    color: var(--text-primary); cursor: pointer; font-size: 0.9rem;
}

.divider { display: flex; align-items: center; margin: 1.2rem 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--casino-border); }
.divider span { padding: 0 1rem; color: var(--text-secondary); font-size: 0.8rem; }

.social-buttons { display: flex; gap: 0.5rem; }
.btn-social {
    flex: 1; padding: 0.7rem; border: 1px solid var(--casino-border);
    border-radius: 8px; color: #fff; cursor: pointer; display: flex;
    align-items: center; justify-content: center; gap: 0.5rem; font-size: 0.85rem;
    transition: all 0.2s;
}
.btn-social.google { background: #4285F4; border-color: #4285F4; }
.btn-social.facebook { background: #1877F2; border-color: #1877F2; }
.btn-social:hover { opacity: 0.9; }

.otp-inputs { display: flex; gap: 0.5rem; justify-content: center; margin: 1.5rem 0; }
.otp-digit {
    width: 48px; height: 56px; text-align: center; font-size: 1.5rem; font-weight: 700;
    background: var(--casino-surface); border: 2px solid var(--casino-border);
    border-radius: 10px; color: var(--teal); outline: none;
}
.otp-digit:focus { border-color: var(--teal); }
.otp-info { text-align: center; color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 0.5rem; }

.btn-link { background: none; border: none; color: var(--teal-light); cursor: pointer; font-size: 0.85rem; margin-top: 1rem; display: block; text-align: center; width: 100%; }
.error-msg { color: var(--danger); font-size: 0.85rem; text-align: center; margin-top: 0.75rem; min-height: 1.2rem; }

/* ==================== LOBBY ==================== */
#lobby-screen { flex-direction: column; overflow-y: auto; }
.lobby-header {
    position: relative; z-index: 1;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.75rem 1.5rem;
    background: rgba(22,27,38,0.85); border-bottom: 1px solid rgba(0,191,166,0.12);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.lobby-left, .lobby-right { display: flex; align-items: center; gap: 0.75rem; }
.lobby-center { position: absolute; left: 50%; transform: translateX(-50%); }
.lobby-logo { font-size: 1.3rem; }

.avatar-circle {
    width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg, var(--casino-surface), rgba(0,191,166,0.1));
    border: 2px solid var(--teal);
    display: flex; align-items: center; justify-content: center; font-size: 1rem;
    box-shadow: 0 0 12px rgba(0,191,166,0.2);
}
.player-info .player-name { font-weight: 600; font-size: 0.9rem; }
.wallet-display {
    background: linear-gradient(135deg, rgba(22,27,38,0.9), rgba(0,191,166,0.06));
    border: 1px solid rgba(0,191,166,0.35);
    border-radius: 12px; padding: 0.4rem 1rem; text-align: center;
    box-shadow: 0 0 16px rgba(0,191,166,0.1), inset 0 1px 0 rgba(255,255,255,0.04);
    position: relative; overflow: hidden;
}
.wallet-display::before {
    content: ''; position: absolute; inset: 0; border-radius: 12px;
    background: linear-gradient(135deg, transparent, rgba(0,191,166,0.05), transparent);
    animation: walletShimmer 4s ease-in-out infinite;
}
@keyframes walletShimmer { 0%,100% { opacity: 0; } 50% { opacity: 1; } }
.wallet-label { display: block; font-size: 0.65rem; color: var(--text-secondary); text-transform: uppercase; }
.wallet-amount { font-family: 'Orbitron', sans-serif; font-size: 1rem; color: var(--gold); font-weight: 700; }

.lobby-body {
    position: relative; z-index: 1;
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center; padding: 1rem; gap: 1rem;
}
.lobby-card {
    background: rgba(28,35,51,0.7); border: 1px solid rgba(42,51,69,0.5);
    border-radius: 20px; padding: 1.5rem; width: 100%; max-width: 420px;
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.04);
    position: relative; overflow: hidden;
}
.lobby-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,191,166,0.3), rgba(245,200,66,0.2), transparent);
}
.lobby-card h2 { font-family: 'Orbitron', sans-serif; font-size: 1.1rem; margin-bottom: 1rem; color: var(--teal); letter-spacing: 1px; }

.currency-selector select {
    width: 100%; padding: 0.6rem 1rem; background: var(--casino-surface);
    border: 1px solid var(--casino-border); border-radius: 8px;
    color: var(--text-primary); font-size: 0.9rem; margin-bottom: 0.75rem;
}
.stake-input-group label { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 0.4rem; display: block; }
.stake-row { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; }
.stake-row input {
    flex: 1; padding: 0.75rem 1rem; background: var(--casino-surface);
    border: 1px solid var(--casino-border); border-radius: 8px;
    color: var(--gold); font-size: 1.2rem; font-weight: 700; font-family: 'Orbitron', sans-serif;
}
.stake-row input:focus { border-color: var(--teal); outline: none; }
.currency-label { color: var(--text-secondary); font-size: 0.85rem; }

.quick-stakes { display: flex; gap: 0.4rem; margin-bottom: 1rem; flex-wrap: wrap; }
.quick-stake {
    padding: 0.4rem 0.75rem; background: rgba(22,27,38,0.6);
    border: 1px solid var(--casino-border); border-radius: 8px;
    color: var(--text-secondary); cursor: pointer; font-size: 0.8rem; transition: all 0.2s;
    position: relative; overflow: hidden;
}
.quick-stake:hover { border-color: var(--teal); color: var(--teal); background: rgba(0,191,166,0.08); box-shadow: 0 0 8px rgba(0,191,166,0.15); }
.quick-stake:active { transform: scale(0.95); }

.btn-large { padding: 1rem; font-size: 1.1rem; }

.lobby-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; }
.btn-action {
    padding: 0.6rem 1.2rem; background: rgba(28,35,51,0.6);
    border: 1px solid rgba(42,51,69,0.5); border-radius: 12px;
    color: var(--text-primary); cursor: pointer; font-size: 0.85rem;
    transition: all 0.2s; backdrop-filter: blur(8px);
    position: relative; overflow: hidden;
}
.btn-action::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, transparent, rgba(0,191,166,0.04), transparent);
    opacity: 0; transition: opacity 0.2s;
}
.btn-action:hover { border-color: rgba(0,191,166,0.4); color: var(--teal); box-shadow: 0 4px 16px rgba(0,191,166,0.1); }
.btn-action:hover::before { opacity: 1; }
.btn-action:active { transform: scale(0.97); }

/* ==================== GAME SCREEN ==================== */
#game-screen { background: #000; }
#game-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }

.game-hud { position: absolute; inset: 0; z-index: 10; pointer-events: none; }
.game-hud > * { pointer-events: auto; }

.hud-top-left {
    position: absolute; top: 0.75rem; left: 0.75rem;
    display: flex; align-items: center; gap: 0.75rem;
}
.icon-btn {
    background: rgba(22,27,38,0.7); border: 1px solid rgba(42,51,69,0.5);
    border-radius: 50%; width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 1.1rem; color: var(--text-primary);
    backdrop-filter: blur(8px); transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.icon-btn:hover { border-color: var(--teal); box-shadow: 0 0 12px rgba(0,191,166,0.2); }
.icon-btn.small { width: 32px; height: 32px; font-size: 0.9rem; }
.stake-display, .flip-counter {
    background: rgba(22,27,38,0.7); border: 1px solid rgba(42,51,69,0.5);
    border-radius: 10px; padding: 0.3rem 0.75rem; text-align: center;
    backdrop-filter: blur(10px); box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.hud-label { display: block; font-size: 0.6rem; color: var(--text-secondary); text-transform: uppercase; }
.stake-display span:last-child, .flip-counter span:last-child {
    font-family: 'Orbitron', sans-serif; font-size: 0.85rem; font-weight: 700;
}

.hud-top-center {
    position: absolute; top: 0.75rem; left: 50%; transform: translateX(-50%);
}
.denomination-display {
    background: rgba(22,27,38,0.7); border: 1px solid rgba(0,191,166,0.4);
    border-radius: 14px; padding: 0.4rem 1.5rem; text-align: center;
    min-width: 100px; opacity: 0; transition: opacity 0.3s, transform 0.3s;
    backdrop-filter: blur(12px); box-shadow: 0 4px 20px rgba(0,191,166,0.15);
    transform: translateY(-4px);
}
.denomination-display.show { opacity: 1; transform: translateY(0); }
#denom-value {
    font-family: 'Orbitron', sans-serif; font-size: 1.4rem; font-weight: 900; color: var(--gold);
}

.hud-top-right { position: absolute; top: 0.75rem; right: 0.75rem; }
.cashout-button {
    background: linear-gradient(135deg, var(--neon-green), #00C853);
    border: none; border-radius: 14px; padding: 0.5rem 1.2rem;
    cursor: pointer; text-align: center; transition: all 0.2s;
    box-shadow: 0 0 20px rgba(0,230,118,0.3), inset 0 1px 0 rgba(255,255,255,0.2);
    animation: cashout-pulse 2s ease-in-out infinite;
    position: relative; overflow: hidden;
}
.cashout-button::after {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.15) 50%, transparent 60%);
    animation: cashoutShine 3s ease-in-out infinite;
}
@keyframes cashoutShine { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.cashout-button:disabled { opacity: 0.4; animation: none; box-shadow: none; cursor: not-allowed; }
.cashout-label { display: block; font-size: 0.65rem; color: #000; font-weight: 700; text-transform: uppercase; }
.cashout-amount {
    font-family: 'Orbitron', sans-serif; font-size: 1.1rem; font-weight: 900; color: #000;
}
@keyframes cashout-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(0,230,118,0.3); }
    50% { box-shadow: 0 0 40px rgba(0,230,118,0.6); }
}

.hud-bottom {
    position: absolute; bottom: 1rem; left: 0; right: 0;
    display: flex; align-items: center; justify-content: center; gap: 1rem;
}
.btn-game-action {
    padding: 0.6rem 1rem; background: rgba(22,27,38,0.7);
    border: 1px solid rgba(42,51,69,0.5); border-radius: 12px;
    color: var(--text-primary); cursor: pointer; font-size: 0.8rem;
    backdrop-filter: blur(8px); transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.btn-game-action:hover:not(:disabled) { border-color: var(--teal); box-shadow: 0 0 10px rgba(0,191,166,0.15); }
.btn-game-action:disabled { opacity: 0.4; cursor: not-allowed; }

.flip-button {
    width: 84px; height: 84px; border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border: 3px solid rgba(255,255,255,0.25); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 30px rgba(245,200,66,0.4), 0 6px 20px rgba(0,0,0,0.4), inset 0 2px 0 rgba(255,255,255,0.3), inset 0 -2px 4px rgba(0,0,0,0.15);
    transition: all 0.15s;
    position: relative;
    transform: perspective(200px) rotateX(5deg);
}
.flip-button::before {
    content: ''; position: absolute; inset: -4px; border-radius: 50%;
    background: conic-gradient(var(--gold), var(--teal), var(--gold), var(--teal), var(--gold));
    z-index: -1; opacity: 0.5; filter: blur(6px);
    animation: flipRingRotate 4s linear infinite;
}
@keyframes flipRingRotate { to { transform: rotate(360deg); } }
.flip-button:hover:not(:disabled) { transform: perspective(200px) rotateX(0deg) scale(1.08); box-shadow: 0 0 50px rgba(245,200,66,0.6), 0 8px 24px rgba(0,0,0,0.4); }
.flip-button:active:not(:disabled) { transform: perspective(200px) scale(0.93); }
.flip-button:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }
.flip-button:disabled::before { display: none; }
.flip-text { font-family: 'Orbitron', sans-serif; font-size: 1rem; font-weight: 900; color: #000; text-shadow: 0 1px 0 rgba(255,255,255,0.3); }

.pulse-btn { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(0,191,166,0.3); }
    50% { box-shadow: 0 0 40px rgba(0,191,166,0.6); }
}

/* Result/Loss/Cashout Overlays */
.result-overlay, .loss-overlay, .cashout-overlay {
    position: absolute; inset: 0; z-index: 20;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.75); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hidden { display: none !important; }

.result-content { text-align: center; animation: resultPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
@keyframes resultPop { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.result-icon { font-size: 3rem; margin-bottom: 0.5rem; }
.result-value { font-family: 'Orbitron', sans-serif; font-size: 2rem; font-weight: 900; color: var(--gold); }
.result-balance { font-size: 0.9rem; color: var(--text-secondary); margin-top: 0.3rem; }

.loss-content, .cashout-content {
    text-align: center; background: rgba(28,35,51,0.9); border: 1px solid rgba(42,51,69,0.5);
    border-radius: 24px; padding: 2rem 3rem; animation: resultPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(16px); box-shadow: 0 20px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.04);
    position: relative; overflow: hidden;
}
.loss-content::before, .cashout-content::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}
.loss-icon { font-size: 4rem; }
.loss-content h2 { font-family: 'Orbitron', sans-serif; font-size: 2rem; color: var(--danger); margin: 0.5rem 0; }
.loss-content p { color: var(--text-secondary); margin: 0.3rem 0; }
.loss-stake { color: var(--danger); font-weight: 600; }
.loss-content button, .cashout-content button { margin-top: 1rem; margin-right: 0.5rem; min-width: 140px; }

.cashout-icon { font-size: 4rem; }
.cashout-content h2 { font-family: 'Orbitron', sans-serif; font-size: 2rem; color: var(--success); margin: 0.5rem 0; }
.cashout-total { font-family: 'Orbitron', sans-serif; font-size: 2.5rem; font-weight: 900; color: var(--gold); }
.cashout-content p { color: var(--text-secondary); }

/* Ad Overlay */
.ad-overlay {
    position: absolute; top: 0.5rem; right: 0.5rem; z-index: 15;
    pointer-events: auto;
}
.ad-container {
    background: var(--casino-card); border: 1px solid var(--casino-border);
    border-radius: 12px; padding: 0.5rem; max-width: 300px;
}
.ad-content { max-width: 280px; max-height: 160px; overflow: hidden; border-radius: 8px; }
.ad-content img { width: 100%; height: auto; }
.ad-timer { display: flex; align-items: center; justify-content: space-between; padding: 0.3rem 0.5rem; font-size: 0.75rem; color: var(--text-secondary); }

/* ==================== MODALS ==================== */
.modal {
    position: fixed; inset: 0; z-index: 50;
    display: flex; align-items: center; justify-content: center;
}
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); }
.modal-content {
    position: relative; z-index: 1;
    background: rgba(28,35,51,0.9); border: 1px solid rgba(42,51,69,0.5);
    border-radius: 20px; padding: 1.5rem; width: 90%; max-width: 420px;
    max-height: 90vh; overflow-y: auto;
    animation: modalIn 0.3s ease;
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.04);
}
.modal-content.wide { max-width: 600px; }
@keyframes modalIn { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.modal-header h3 { font-family: 'Orbitron', sans-serif; font-size: 1rem; }
.modal-close {
    background: none; border: none; color: var(--text-secondary); font-size: 1.2rem;
    cursor: pointer; padding: 0.3rem;
}
.modal-actions { display: flex; gap: 0.75rem; margin-top: 1rem; }

.tab-group { display: flex; gap: 0.3rem; margin-bottom: 1rem; }
.tab-btn {
    flex: 1; padding: 0.6rem; background: var(--casino-surface);
    border: 1px solid var(--casino-border); border-radius: 8px;
    color: var(--text-secondary); cursor: pointer; font-size: 0.85rem;
}
.tab-btn.active { border-color: var(--teal); color: var(--teal); background: rgba(0,191,166,0.1); }
.tab-content { display: none; }
.tab-content.active { display: block; }

.status-msg { margin-top: 0.75rem; font-size: 0.85rem; text-align: center; min-height: 1.2rem; }
.status-msg.success { color: var(--success); }
.status-msg.error { color: var(--danger); }

.btn-small { padding: 0.4rem 0.8rem; font-size: 0.8rem; background: var(--teal); color: #fff; border: none; border-radius: 6px; cursor: pointer; font-weight: 600; }

/* ==================== SLIDE PANEL ==================== */
.slide-panel {
    position: fixed; top: 0; left: 0; bottom: 0; width: 300px; z-index: 60;
    background: rgba(28,35,51,0.95); border-right: 1px solid rgba(0,191,166,0.1);
    transform: translateX(-100%); transition: transform 0.3s ease;
    overflow-y: auto; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    box-shadow: 10px 0 40px rgba(0,0,0,0.4);
}
.slide-panel.show { transform: translateX(0); }
.panel-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 1.25rem; border-bottom: 1px solid var(--casino-border);
}
.panel-close { background: none; border: none; color: var(--text-secondary); font-size: 1.2rem; cursor: pointer; }
.panel-body { padding: 1.25rem; }

.profile-section { text-align: center; margin-bottom: 1.5rem; }
.profile-avatar-large { font-size: 3rem; margin-bottom: 0.5rem; }
.text-muted { color: var(--text-secondary); font-size: 0.85rem; }

.profile-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin-bottom: 1.5rem; }
.stat { text-align: center; background: var(--casino-surface); border-radius: 10px; padding: 0.75rem; }
.stat-value { display: block; font-family: 'Orbitron', sans-serif; font-size: 1rem; font-weight: 700; color: var(--teal); }
.stat-label { font-size: 0.7rem; color: var(--text-secondary); text-transform: uppercase; }

.menu-item {
    display: block; width: 100%; text-align: left;
    padding: 0.75rem 1rem; background: var(--casino-surface);
    border: 1px solid var(--casino-border); border-radius: 8px;
    color: var(--text-primary); cursor: pointer; font-size: 0.9rem;
    margin-bottom: 0.5rem; transition: all 0.2s;
}
.menu-item:hover { border-color: var(--teal); }
.menu-item.danger { color: var(--danger); }
.menu-item.danger:hover { border-color: var(--danger); }

/* Referral */
.referral-link-box { display: flex; gap: 0.5rem; margin: 1rem 0; }
.referral-link-box input {
    flex: 1; padding: 0.6rem; background: var(--casino-surface);
    border: 1px solid var(--casino-border); border-radius: 8px;
    color: var(--teal-light); font-size: 0.8rem;
}
.referral-stats { display: flex; gap: 1rem; margin: 1rem 0; }
.share-buttons { margin-top: 1rem; }
.btn-share {
    padding: 0.7rem 1.5rem; border: none; border-radius: 8px;
    cursor: pointer; font-size: 0.9rem; font-weight: 600;
}
.btn-share.whatsapp { background: #25D366; color: #fff; }

/* History */
.history-list { max-height: 400px; overflow-y: auto; }
.history-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.75rem; background: var(--casino-surface);
    border-radius: 8px; margin-bottom: 0.5rem; font-size: 0.85rem;
}
.history-item .hi-status { font-weight: 600; }
.history-item .hi-status.won { color: var(--success); }
.history-item .hi-status.lost { color: var(--danger); }

/* ==================== TOAST ==================== */
.toast {
    position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
    background: rgba(28,35,51,0.95); border: 1px solid rgba(0,191,166,0.2);
    border-radius: 12px; padding: 0.75rem 1.5rem; z-index: 100;
    font-size: 0.9rem; box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 0 1px rgba(0,191,166,0.05);
    animation: toastIn 0.3s ease;
    backdrop-filter: blur(12px);
}
@keyframes toastIn { from { transform: translateX(-50%) translateY(20px); opacity: 0; } to { transform: translateX(-50%) translateY(0); opacity: 1; } }

/* ==================== MOMO VERIFICATION ==================== */
.network-badge {
    display: inline-block; margin-top: 4px; padding: 2px 10px;
    border-radius: 12px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.5px;
}
.network-badge.mtn { background: #ffcc00; color: #1a1a2e; }
.network-badge.vod { background: #e60000; color: #fff; }
.network-badge.air { background: #e60000; color: #fff; }
.verify-status {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.85rem; color: var(--casino-muted); padding: 4px 0;
}
.verify-status.error { color: #e74c3c; }
.spinner-sm {
    width: 14px; height: 14px; border: 2px solid var(--casino-border);
    border-top-color: var(--casino-gold); border-radius: 50%;
    animation: spin 0.6s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }
.verified-info { padding: 6px 0; }
.verified-name-card {
    display: flex; align-items: center; gap: 8px;
    background: rgba(39, 174, 96, 0.12); border: 1px solid rgba(39, 174, 96, 0.3);
    border-radius: 8px; padding: 8px 12px; font-size: 0.9rem; color: #27ae60;
}
.verified-icon { font-weight: bold; font-size: 1rem; }

/* ==================== LIVE FEED TICKER ==================== */
.live-feed-container {
    margin-top: 12px; border-radius: 10px;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
    overflow: hidden; max-width: 480px; width: 100%; align-self: center;
}
.live-feed-header {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 12px; background: rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.live-dot {
    width: 8px; height: 8px; border-radius: 50%; background: #e74c3c;
    animation: livePulse 1.5s ease-in-out infinite;
}
@keyframes livePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.live-label { font-size: 0.65rem; font-weight: 800; color: #e74c3c; letter-spacing: 1px; }
.live-feed {
    max-height: 140px; overflow-y: auto; scrollbar-width: none;
    -ms-overflow-style: none;
}
.live-feed::-webkit-scrollbar { display: none; }
.feed-placeholder { padding: 12px; text-align: center; color: #555; font-size: 0.8rem; }
.feed-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 5px 12px; font-size: 0.78rem;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    animation: feedSlideIn 0.3s ease-out;
}
@keyframes feedSlideIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.feed-item:last-child { border-bottom: none; }
.feed-player { color: #888; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-result { font-weight: 700; margin-left: 8px; white-space: nowrap; }
.feed-result.won { color: #27ae60; }
.feed-result.lost { color: #e74c3c; }
.feed-flips { color: #555; font-size: 0.7rem; margin-left: 6px; }
.feed-time { color: #444; font-size: 0.65rem; margin-left: 6px; white-space: nowrap; }

/* ==================== DEPOSIT CTA OVERLAY ==================== */
.deposit-cta-overlay {
    position: absolute; inset: 0; z-index: 50;
    display: flex; align-items: center; justify-content: center;
    pointer-events: all;
}
.deposit-cta-overlay.hidden { display: none; }
.cta-backdrop {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, rgba(13,17,23,0.45) 0%, rgba(13,17,23,0.65) 100%);
    backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.cta-content {
    position: relative; z-index: 2; text-align: center;
    padding: 2rem; max-width: 360px; width: 90%;
    animation: ctaFadeIn 0.6s ease-out;
}
@keyframes ctaFadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.cta-coin-stack { display: flex; justify-content: center; gap: -8px; margin-bottom: 1.2rem; }
.cta-coin {
    width: 48px; height: 48px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 1.2rem; color: #0D1117;
    animation: coinFloat 2s ease-in-out infinite;
}
.cta-coin.c1 { background: linear-gradient(135deg, #ffc800, #e6a800); animation-delay: 0s; margin-right: -8px; z-index: 3; }
.cta-coin.c2 { background: linear-gradient(135deg, #ffdd44, #ffc800); animation-delay: 0.2s; margin-right: -8px; z-index: 2; }
.cta-coin.c3 { background: linear-gradient(135deg, #ffe066, #ffdd44); animation-delay: 0.4s; z-index: 1; }
@keyframes coinFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.cta-title {
    font-size: 1.6rem; font-weight: 800; color: #fff;
    margin-bottom: 0.4rem;
    text-shadow: 0 0 30px rgba(255,200,0,0.3);
}
.cta-subtitle { color: #aaa; font-size: 0.9rem; margin-bottom: 1.5rem; line-height: 1.4; }

.cta-deposit-btn {
    position: relative; display: inline-block;
    padding: 14px 40px; border: none; border-radius: 12px;
    background: linear-gradient(135deg, #ffc800, #e6a800);
    color: #0D1117; font-size: 1.1rem; font-weight: 800;
    cursor: pointer; overflow: hidden;
    box-shadow: 0 4px 20px rgba(255,200,0,0.4), 0 0 40px rgba(255,200,0,0.15);
    transition: transform 0.2s, box-shadow 0.2s;
    transform: perspective(600px) rotateX(2deg);
}
.cta-deposit-btn:hover {
    transform: perspective(600px) rotateX(0deg) scale(1.05);
    box-shadow: 0 6px 30px rgba(255,200,0,0.5), 0 0 60px rgba(255,200,0,0.2);
}
.cta-deposit-btn:active { transform: perspective(600px) scale(0.97); }
.cta-btn-glow {
    position: absolute; inset: -2px; border-radius: 14px;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: btnGlow 2s linear infinite;
}
@keyframes btnGlow {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
.cta-btn-text { position: relative; z-index: 1; }
.cta-hint { color: #666; font-size: 0.75rem; margin-top: 1rem; }

/* ==================== PROFILE MOMO ACCOUNTS ==================== */
.section-title { font-size: 0.95rem; margin-bottom: 8px; color: #ccc; }
.momo-accounts-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.momo-account-card {
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px; padding: 8px 12px; font-size: 0.85rem;
}
.momo-account-card.primary { border-color: rgba(39,174,96,0.4); background: rgba(39,174,96,0.08); }
.momo-account-info { display: flex; flex-direction: column; gap: 2px; }
.momo-account-name { font-weight: 600; color: #e0e0e0; }
.momo-account-number { color: #999; font-size: 0.8rem; }
.momo-account-actions { display: flex; gap: 4px; align-items: center; }
.badge-primary { font-size: 0.65rem; background: #27ae60; color: #fff; padding: 2px 6px; border-radius: 4px; }
.badge-network { font-size: 0.65rem; padding: 2px 6px; border-radius: 4px; background: rgba(255,255,255,0.1); color: #ccc; }
.badge-network.mtn { background: rgba(255,204,0,0.2); color: #ffc800; }
.badge-network.vod, .badge-network.telecel { background: rgba(255,0,0,0.15); color: #f44; }
.badge-network.air, .badge-network.airteltigo { background: rgba(0,123,255,0.15); color: #4af; }
.btn-tiny { font-size: 0.7rem; padding: 2px 8px; border-radius: 4px; border: 1px solid rgba(255,255,255,0.15); background: transparent; color: #ccc; cursor: pointer; }
.btn-tiny:hover { background: rgba(255,255,255,0.1); }
.btn-tiny.danger { border-color: rgba(255,0,0,0.3); color: #f66; }
.btn-tiny.danger:hover { background: rgba(255,0,0,0.15); }
.add-momo-form { margin-bottom: 8px; }
.input-group.compact { margin-bottom: 4px; }
.input-group.compact input { padding: 6px 10px; font-size: 0.85rem; }
.btn-outline { font-size: 0.8rem; padding: 4px 12px; border: 1px dashed rgba(255,255,255,0.2); background: transparent; color: #aaa; border-radius: 6px; cursor: pointer; width: 100%; }
.btn-outline:hover { border-color: rgba(255,255,255,0.4); color: #fff; }
.small { font-size: 0.75rem; margin-top: 4px; }

/* Profile name edit */
#profile-name-display { display: flex; align-items: center; gap: 6px; justify-content: center; }
.name-edit-row { display: flex; align-items: center; gap: 4px; justify-content: center; margin-bottom: 4px; }
.name-edit-row input { padding: 4px 8px; font-size: 0.85rem; border-radius: 6px; border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.05); color: #fff; width: 140px; text-align: center; }

/* ==================== DAILY WHEEL ==================== */
.wheel-modal-content { max-width: 360px; }
.wheel-container {
    position: relative; display: inline-block; margin: 0.5rem 0;
}
.wheel-pointer {
    position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
    font-size: 1.6rem; color: #ffd700; z-index: 2;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
    filter: drop-shadow(0 0 6px rgba(255,215,0,0.5));
}
.btn-spin {
    margin-top: 0.75rem; padding: 0.75rem 3rem;
    font-family: 'Orbitron', sans-serif; font-size: 1.1rem; letter-spacing: 2px;
}
.wheel-result {
    margin-top: 0.75rem; font-size: 1.2rem; font-weight: 700; color: #ffd700;
    font-family: 'Orbitron', sans-serif;
    animation: streakPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.wheel-result.hidden { display: none; }
.btn-wheel-glow {
    animation: wheelGlow 2s ease-in-out infinite;
}
@keyframes wheelGlow {
    0%, 100% { box-shadow: 0 0 8px rgba(255,215,0,0.2); }
    50% { box-shadow: 0 0 16px rgba(255,215,0,0.5), 0 0 30px rgba(255,215,0,0.15); }
}

/* ==================== BADGES ==================== */
.badges-xp-bar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.5rem 0.75rem; margin-bottom: 0.75rem;
    background: rgba(139,92,246,0.1); border: 1px solid rgba(139,92,246,0.25);
    border-radius: 10px; font-size: 0.85rem;
}
.xp-label { color: #ffd700; font-weight: 700; font-family: 'Orbitron', sans-serif; }
.xp-count { color: var(--text-secondary); font-size: 0.8rem; }
.badges-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem;
    max-height: 380px; overflow-y: auto;
}
.badge-card {
    position: relative; padding: 0.75rem 0.5rem; text-align: center;
    border-radius: 10px; border: 1px solid rgba(255,255,255,0.08);
    background: rgba(22,27,38,0.6); transition: all 0.2s;
}
.badge-card.earned {
    background: rgba(0,191,166,0.08); border-color: rgba(0,191,166,0.25);
}
.badge-card.locked { opacity: 0.5; }
.badge-emoji { display: block; font-size: 1.6rem; margin-bottom: 4px; }
.badge-name { display: block; font-size: 0.75rem; font-weight: 700; color: #fff; margin-bottom: 2px; }
.badge-desc { display: block; font-size: 0.6rem; color: var(--text-secondary); line-height: 1.3; }
.badge-check { position: absolute; top: 4px; right: 6px; color: var(--success); font-weight: bold; font-size: 0.75rem; }
.badge-lock { position: absolute; top: 4px; right: 6px; font-size: 0.7rem; }

/* ==================== BADGE NOTIFICATION ==================== */
.badge-notification {
    position: fixed; top: -70px; left: 50%; transform: translateX(-50%);
    z-index: 210; padding: 12px 24px;
    background: linear-gradient(135deg, rgba(139,92,246,0.95), rgba(0,191,166,0.9));
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 30px; font-size: 0.9rem; color: #fff; font-weight: 600;
    box-shadow: 0 8px 30px rgba(139,92,246,0.4), 0 0 40px rgba(0,191,166,0.15);
    white-space: nowrap;
    transition: top 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.badge-notification.show { top: 20px; }
.badge-notif-emoji { margin-right: 6px; font-size: 1.1rem; }

/* ==================== STREAK FIRE BADGE ==================== */
.streak-badge {
    margin-top: 6px; padding: 4px 14px;
    border-radius: 20px; font-size: 0.8rem; font-weight: 700;
    text-align: center; white-space: nowrap;
    background: rgba(255,165,0,0.15); border: 1px solid rgba(255,165,0,0.3);
    color: #ffaa00;
    animation: streakPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(8px);
}
.streak-badge.hidden { display: none !important; }
.streak-badge.hot {
    background: rgba(255,120,0,0.2); border-color: rgba(255,120,0,0.5);
    color: #ff8800; box-shadow: 0 0 12px rgba(255,120,0,0.2);
}
.streak-badge.fire {
    background: rgba(255,60,0,0.25); border-color: rgba(255,60,0,0.5);
    color: #ff4400; box-shadow: 0 0 20px rgba(255,60,0,0.3);
    animation: streakPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), streakPulse 1s ease-in-out infinite;
}
.streak-badge.inferno {
    background: linear-gradient(135deg, rgba(255,30,0,0.3), rgba(255,200,0,0.2));
    border-color: rgba(255,60,0,0.6); color: #ff2200;
    box-shadow: 0 0 30px rgba(255,30,0,0.4), 0 0 60px rgba(255,200,0,0.15);
    animation: streakPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), streakPulse 0.6s ease-in-out infinite;
    font-size: 0.9rem;
}
.streak-count { font-family: 'Orbitron', sans-serif; font-weight: 900; }
.streak-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 1px; opacity: 0.8; margin-left: 2px; }
@keyframes streakPop { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes streakPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }

/* ==================== SOCIAL PROOF TOAST ==================== */
.social-toast {
    position: fixed; top: -60px; left: 50%; transform: translateX(-50%);
    z-index: 200; padding: 10px 20px;
    background: rgba(28,35,51,0.95); border: 1px solid rgba(0,230,118,0.3);
    border-radius: 30px; font-size: 0.85rem; color: #f0f4f8;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4), 0 0 20px rgba(0,230,118,0.1);
    backdrop-filter: blur(12px); white-space: nowrap;
    transition: top 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.social-toast.show { top: 16px; }
.social-emoji { margin-right: 4px; }
.social-amount { color: #ffd700; font-weight: 800; font-family: 'Orbitron', sans-serif; }

/* ==================== RESPONSIVE ==================== */

/* Mobile portrait: fix header overlap */
@media (max-width: 480px) {
    .lobby-header { padding: 0.5rem 0.75rem; gap: 0.25rem; }
    .lobby-left { gap: 0.4rem; }
    .player-info { display: none; }
    .lobby-logo { font-size: 1rem; }
    .lobby-center { position: static; transform: none; }
    .wallet-display { padding: 0.3rem 0.6rem; }
    .wallet-amount { font-size: 0.85rem; }
    .wallet-label { font-size: 0.55rem; }
    .avatar-circle { width: 32px; height: 32px; font-size: 0.85rem; }
    .icon-btn { width: 34px; height: 34px; }
    .lobby-card { padding: 1.2rem; }
    .lobby-card h2 { font-size: 1rem; }
    .btn-action { padding: 0.5rem 0.8rem; font-size: 0.8rem; }
}

@media (max-width: 360px) {
    .lobby-header { padding: 0.4rem 0.5rem; }
    .lobby-logo { font-size: 0.9rem; }
    .wallet-amount { font-size: 0.75rem; }
    .avatar-circle { width: 28px; height: 28px; font-size: 0.75rem; }
}

@media (max-height: 500px) {
    .lobby-card { padding: 1rem; }
    .lobby-card h2 { font-size: 0.95rem; }
    .flip-button { width: 64px; height: 64px; }
    .flip-text { font-size: 0.85rem; }
}
