/* ============================================================
 * GAMES FUTURISTIC SKIN
 * ------------------------------------------------------------
 * Overlay-Stylesheet, das das visuelle Erscheinungsbild von
 * Roulette, Blackjack und Coinflip modernisiert ohne die
 * existierenden IDs/Klassen oder die Spiel-Logik zu verändern.
 *
 * Geladen NACH styles.css, damit die Skin-Regeln Vorrang haben.
 * ============================================================ */

:root {
    --gx-cyan: #5eead4;
    --gx-cyan-soft: rgba(94, 234, 212, 0.55);
    --gx-magenta: #f472b6;
    --gx-violet: #a78bfa;
    --gx-gold: #ffb300;
    --gx-gold-soft: rgba(255, 179, 0, 0.55);
    --gx-red: #ff3b5c;
    --gx-green: #00d4a0;
    --gx-bg-1: #0a0a14;
    --gx-bg-2: #0f0f1f;
    --gx-bg-3: #14142a;
    --gx-line: rgba(255, 255, 255, 0.08);
    --gx-glass: rgba(255, 255, 255, 0.04);
}

/* === Gemeinsamer Modal-Backdrop === */
#roulette-game-modal,
#blackjack-game-modal,
#coinflip-game-modal {
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 179, 0, 0.10) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 50% 100%, rgba(94, 234, 212, 0.06) 0%, transparent 60%),
        linear-gradient(180deg, rgba(8, 8, 18, 0.96) 0%, rgba(0, 0, 0, 0.98) 100%) !important;
    backdrop-filter: blur(20px) saturate(1.2) !important;
    -webkit-backdrop-filter: blur(20px) saturate(1.2) !important;
}

/* dezente Scanline-Linie + Grid */
#roulette-game-modal::before,
#blackjack-game-modal::before,
#coinflip-game-modal::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px) 0 0/48px 48px,
        linear-gradient(0deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px) 0 0/48px 48px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
}


/* ============================================================
 * ROULETTE
 * ============================================================ */

#roulette-game-modal .roulette-container {
    background:
        radial-gradient(120% 80% at 50% 0%, rgba(255, 179, 0, 0.08) 0%, transparent 60%),
        linear-gradient(160deg, var(--gx-bg-3) 0%, var(--gx-bg-2) 60%, var(--gx-bg-1) 100%) !important;
    border: 1px solid rgba(255, 179, 0, 0.18) !important;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(255, 179, 0, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    position: relative;
}
#roulette-game-modal .roulette-container::after {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 200px;
    background: radial-gradient(closest-side, rgba(255, 179, 0, 0.18), transparent 70%);
    pointer-events: none;
    filter: blur(8px);
    z-index: 0;
}
#roulette-game-modal .roulette-header,
#roulette-game-modal .roulette-navbar,
#roulette-game-modal .roulette-main { position: relative; z-index: 1; }

#roulette-game-modal .roulette-title {
    font-weight: 900 !important;
    letter-spacing: -0.02em !important;
    background: linear-gradient(120deg, #fff 0%, #ffd57a 50%, #ffb300 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    text-shadow: 0 0 40px rgba(255, 179, 0, 0.25) !important;
    filter: drop-shadow(0 0 20px rgba(255, 179, 0, 0.18));
}

#roulette-game-modal .roulette-close {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.85) !important;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease !important;
    backdrop-filter: blur(8px);
}
#roulette-game-modal .roulette-close:hover {
    background: rgba(255, 59, 92, 0.18) !important;
    border-color: rgba(255, 59, 92, 0.55) !important;
    color: #fff !important;
    transform: rotate(90deg) !important;
}

#roulette-game-modal .roulette-navbar {
    background: linear-gradient(120deg, rgba(20, 20, 42, 0.8), rgba(15, 15, 31, 0.8)) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 8px 24px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
}

#roulette-game-modal .roulette-level-box,
#roulette-game-modal .roulette-balance-box {
    background: rgba(0, 0, 0, 0.35) !important;
    border: 1px solid rgba(255, 179, 0, 0.18) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 0 14px rgba(255, 179, 0, 0.08) !important;
    backdrop-filter: blur(6px);
}

/* Wheel frame als Chrome-Look */
#roulette-game-modal .roulette-wheel-frame {
    position: relative;
}
#roulette-game-modal .roulette-wheel-frame::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 179, 0, 0.4), transparent 40%, rgba(255, 179, 0, 0.4));
    z-index: -1;
    filter: blur(2px);
    opacity: 0.7;
    pointer-events: none;
}

#roulette-game-modal .roulette-pointer {
    filter: drop-shadow(0 4px 8px rgba(255, 179, 0, 0.5)) drop-shadow(0 0 6px rgba(255, 179, 0, 0.4));
}

/* Status / Timer */
#roulette-game-modal .roulette-status-area #roulette-statusText {
    text-shadow: 0 0 14px rgba(94, 234, 212, 0.4);
    letter-spacing: 0.18em !important;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.95rem;
}
#roulette-game-modal .roulette-timer-track {
    background: rgba(0, 0, 0, 0.5) !important;
    border: 1px solid rgba(255, 179, 0, 0.18) !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}
#roulette-game-modal .roulette-timer-fill {
    background: linear-gradient(90deg, var(--gx-cyan) 0%, var(--gx-gold) 60%, var(--gx-red) 100%) !important;
    box-shadow: 0 0 18px rgba(94, 234, 212, 0.45);
}

/* Bet-Spalten als Glass-Cards mit Theme-Glow */
#roulette-game-modal .roulette-bet-col {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.012) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 18px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 14px 32px -10px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    position: relative;
    overflow: hidden;
}
#roulette-game-modal .roulette-bet-col::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--col-accent, var(--gx-gold));
    box-shadow: 0 0 14px var(--col-accent, var(--gx-gold));
    opacity: 0.85;
}
#roulette-game-modal .roulette-bc-red    { --col-accent: #ff3b5c; }
#roulette-game-modal .roulette-bc-green  { --col-accent: #00d4a0; }
#roulette-game-modal .roulette-bc-black  { --col-accent: #b8b8d4; }

#roulette-game-modal .roulette-bet-col:hover,
#roulette-game-modal .roulette-bet-col:focus-within {
    border-color: color-mix(in srgb, var(--col-accent) 50%, transparent) !important;
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--col-accent) 35%, transparent),
                0 18px 38px -10px color-mix(in srgb, var(--col-accent) 35%, transparent);
    transform: translateY(-2px);
}

#roulette-game-modal .roulette-col-header {
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Eingabefeld */
#roulette-game-modal .roulette-bet-in,
#roulette-game-modal .roulette-input-wrapper input {
    background: rgba(0, 0, 0, 0.45) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
    font-family: 'JetBrains Mono', ui-monospace, monospace !important;
    transition: border-color 0.2s, box-shadow 0.2s;
}
#roulette-game-modal .roulette-bet-in:focus,
#roulette-game-modal .roulette-input-wrapper input:focus {
    border-color: color-mix(in srgb, var(--col-accent, var(--gx-gold)) 60%, transparent) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--col-accent, var(--gx-gold)) 25%, transparent),
                inset 0 0 14px rgba(255, 255, 255, 0.04) !important;
    outline: none !important;
}

/* Chips als 3D-Pills */
#roulette-game-modal .roulette-chip {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 6px 14px -4px rgba(0, 0, 0, 0.45) !important;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease !important;
}
#roulette-game-modal .roulette-chip:hover {
    border-color: color-mix(in srgb, var(--col-accent, var(--gx-gold)) 60%, transparent) !important;
    background: linear-gradient(160deg, color-mix(in srgb, var(--col-accent, var(--gx-gold)) 22%, rgba(255,255,255,0.06)) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -4px color-mix(in srgb, var(--col-accent, var(--gx-gold)) 30%, transparent) !important;
}
#roulette-game-modal .roulette-chip:active { transform: translateY(0) scale(0.98); }

/* History-Bar als LED-Reihe */
#roulette-game-modal .roulette-history-bar {
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 14px !important;
    padding: 10px 12px !important;
    backdrop-filter: blur(8px);
    height: auto !important;
    min-height: 52px !important;
    align-items: center !important;
    gap: 8px !important;
}

/* Größere, lesbarere History-Badges */
#roulette-game-modal .roulette-hist-badge {
    width: 38px !important;
    height: 38px !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    font-family: 'JetBrains Mono', ui-monospace, monospace !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 2px 6px rgba(0, 0, 0, 0.5) !important;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.6) !important;
    transition: transform 0.2s ease !important;
    position: relative;
}
#roulette-game-modal .roulette-hist-badge:hover {
    transform: translateY(-2px) scale(1.05);
    z-index: 2;
}

/* Klare Farb-Definitionen mit kräftigen Gradienten + Border */
#roulette-game-modal .roulette-h-red {
    background: linear-gradient(160deg, #ff5b6e 0%, #d92638 100%) !important;
    color: #fff !important;
    border-color: rgba(255, 91, 110, 0.6) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 2px 8px rgba(217, 38, 56, 0.45) !important;
}
#roulette-game-modal .roulette-h-black {
    background: linear-gradient(160deg, #3a4250 0%, #1c2029 100%) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 2px 8px rgba(0, 0, 0, 0.5) !important;
}
#roulette-game-modal .roulette-h-green {
    background: linear-gradient(160deg, #14e08a 0%, #00a86b 100%) !important;
    color: #062014 !important;
    border-color: rgba(0, 255, 127, 0.55) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 0 14px rgba(0, 255, 127, 0.55), 0 2px 8px rgba(0, 168, 107, 0.5) !important;
    text-shadow: none !important;
}

/* Letztes (neuestes) Ergebnis hervorheben */
#roulette-game-modal .roulette-history-bar .roulette-hist-badge:last-child {
    transform: scale(1.12);
    outline: 2px solid rgba(255, 179, 0, 0.55);
    outline-offset: 2px;
    animation: rouletteHistPulse 1.4s ease-in-out infinite;
}
@keyframes rouletteHistPulse {
    0%, 100% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 0 0 0 rgba(255, 179, 0, 0.55); }
    50% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 0 0 6px rgba(255, 179, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
    #roulette-game-modal .roulette-history-bar .roulette-hist-badge:last-child {
        animation: none;
    }
}

/* Mobile: kompaktere Badges aber immer noch lesbar */
@media (max-width: 600px) {
    #roulette-game-modal .roulette-hist-badge {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.85rem !important;
    }
    #roulette-game-modal .roulette-history-bar {
        gap: 5px !important;
        padding: 8px 10px !important;
    }
}

/* Leaderboard-Tabs Layout + Live-Indikator */
#roulette-game-modal .roulette-lb-tabs {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}
#roulette-game-modal .roulette-lb-live {
    margin-left: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 0.7rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    color: #00ff7f !important;
    padding: 4px 10px !important;
    background: rgba(0, 255, 127, 0.08) !important;
    border: 1px solid rgba(0, 255, 127, 0.25) !important;
    border-radius: 999px !important;
    user-select: none;
}
#roulette-game-modal .roulette-lb-live-dot {
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background: #00ff7f !important;
    box-shadow: 0 0 8px #00ff7f !important;
    animation: rouletteLbLivePulse 1.6s ease-in-out infinite !important;
    display: inline-block !important;
}
@keyframes rouletteLbLivePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}
@media (prefers-reduced-motion: reduce) {
    #roulette-game-modal .roulette-lb-live-dot { animation: none !important; }
}

/* Leaderboard-Liste mit Scroll für viele Einträge */
#roulette-game-modal .roulette-lb-list {
    max-height: 380px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 179, 0, 0.4) rgba(255, 255, 255, 0.04);
}
#roulette-game-modal .roulette-lb-list::-webkit-scrollbar {
    width: 8px;
}
#roulette-game-modal .roulette-lb-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
}
#roulette-game-modal .roulette-lb-list::-webkit-scrollbar-thumb {
    background: rgba(255, 179, 0, 0.4);
    border-radius: 4px;
}
#roulette-game-modal .roulette-lb-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 179, 0, 0.6);
}

/* Top-3 Rang-Badges hervorheben */
#roulette-game-modal .roulette-lb-rank.roulette-r-1 {
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%) !important;
    color: #1a1300 !important;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
    font-weight: 900 !important;
}
#roulette-game-modal .roulette-lb-rank.roulette-r-2 {
    background: linear-gradient(135deg, #e0e0e0 0%, #a0a0a0 100%) !important;
    color: #1a1a1a !important;
    box-shadow: 0 0 8px rgba(192, 192, 192, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
    font-weight: 900 !important;
}
#roulette-game-modal .roulette-lb-rank.roulette-r-3 {
    background: linear-gradient(135deg, #cd7f32 0%, #8b5a2b 100%) !important;
    color: #fff !important;
    box-shadow: 0 0 8px rgba(205, 127, 50, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    font-weight: 900 !important;
}

/* Win-Card / Modal-Effekte */
#roulette-game-modal .roulette-win-card {
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(255, 179, 0, 0.22) 0%, transparent 60%),
        linear-gradient(160deg, var(--gx-bg-3) 0%, var(--gx-bg-1) 100%) !important;
    border: 1px solid rgba(255, 179, 0, 0.45) !important;
    box-shadow:
        0 30px 80px rgba(255, 179, 0, 0.30),
        0 0 0 1px rgba(255, 179, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}


/* ============================================================
 * BLACKJACK
 * ============================================================ */

#blackjack-game-modal .bj-container {
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0, 212, 160, 0.10) 0%, transparent 50%),
        radial-gradient(ellipse 60% 80% at 50% 100%, rgba(255, 179, 0, 0.06) 0%, transparent 60%),
        linear-gradient(160deg, #0a2a1c 0%, #07201a 50%, #051512 100%) !important;
    border: 1px solid rgba(0, 212, 160, 0.22) !important;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.65),
        0 0 0 1px rgba(0, 212, 160, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

#blackjack-game-modal .bj-title {
    background: linear-gradient(120deg, #fff 0%, #b6f4e1 50%, var(--gx-green) 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    text-shadow: none !important;
    filter: drop-shadow(0 0 12px rgba(0, 212, 160, 0.25));
    font-weight: 900 !important;
    letter-spacing: -0.01em !important;
}

#blackjack-game-modal .bj-close {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.85) !important;
    transition: transform 0.25s ease, background 0.25s, color 0.25s, border-color 0.25s !important;
}
#blackjack-game-modal .bj-close:hover {
    background: rgba(255, 59, 92, 0.18) !important;
    border-color: rgba(255, 59, 92, 0.55) !important;
    color: #fff !important;
    transform: rotate(90deg) !important;
}

#blackjack-game-modal .bj-balance {
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(0, 212, 160, 0.25) !important;
    color: #b6f4e1 !important;
    box-shadow: 0 0 14px rgba(0, 212, 160, 0.10);
}

/* Bereiche als Glass-Cards */
#blackjack-game-modal .bj-dealer-area,
#blackjack-game-modal .bj-player-area {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.04) 0%, rgba(0, 0, 0, 0.18) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 8px 24px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
}
#blackjack-game-modal .bj-player-area {
    border-color: rgba(0, 212, 160, 0.22) !important;
}

/* Karten realistischer */
#blackjack-game-modal .bj-card {
    background: linear-gradient(160deg, #fdfdfb 0%, #ebe8e0 100%) !important;
    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.40),
        inset 0 0 0 1px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(0, 0, 0, 0.18) !important;
}
#blackjack-game-modal .bj-card.hidden {
    background:
        repeating-linear-gradient(45deg, rgba(255, 179, 0, 0.06) 0 6px, transparent 6px 12px),
        linear-gradient(160deg, #1a3d2e 0%, #0a2018 100%) !important;
    border-color: rgba(255, 179, 0, 0.45) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45),
                inset 0 0 0 1px rgba(255, 179, 0, 0.18),
                inset 0 0 24px rgba(0, 0, 0, 0.5) !important;
}

#blackjack-game-modal .bj-total {
    color: var(--gx-green) !important;
    text-shadow: 0 0 10px rgba(0, 212, 160, 0.4) !important;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    letter-spacing: 0.04em;
}

/* Buttons */
#blackjack-game-modal .bj-btn-hit {
    background: linear-gradient(145deg, #00d4a0, #008f6d) !important;
    box-shadow: 0 6px 20px rgba(0, 212, 160, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}
#blackjack-game-modal .bj-btn-stand {
    background: linear-gradient(145deg, #2a2a3e, #1a1a28) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 4px 14px rgba(0, 0, 0, 0.4) !important;
}
#blackjack-game-modal .bj-btn-double {
    background: linear-gradient(145deg, #ff8c00, #d96a00) !important;
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}
#blackjack-game-modal .bj-btn:hover:not(:disabled) {
    transform: translateY(-2px) !important;
    filter: brightness(1.08);
}

#blackjack-game-modal .bj-deal-btn,
#blackjack-game-modal .bj-next-round-btn {
    background: linear-gradient(135deg, #ffb300 0%, #ff8c00 100%) !important;
    box-shadow:
        0 8px 26px rgba(255, 179, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Chips realistischer */
#blackjack-game-modal .bj-chip {
    box-shadow:
        inset 0 0 0 6px rgba(255, 255, 255, 0.10),
        inset 0 0 0 7px rgba(0, 0, 0, 0.35),
        inset 0 -8px 16px rgba(0, 0, 0, 0.25),
        0 6px 16px rgba(0, 0, 0, 0.35) !important;
    border: 3px dashed rgba(255, 255, 255, 0.5) !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Result-Glow */
#blackjack-game-modal .bj-result.win {
    background: rgba(0, 255, 127, 0.18) !important;
    box-shadow: 0 0 30px rgba(0, 255, 127, 0.25), inset 0 0 24px rgba(0, 255, 127, 0.10);
    text-shadow: 0 0 14px rgba(0, 255, 127, 0.45);
}
#blackjack-game-modal .bj-result.lose {
    background: rgba(255, 71, 71, 0.18) !important;
    box-shadow: 0 0 30px rgba(255, 71, 71, 0.20), inset 0 0 24px rgba(255, 71, 71, 0.08);
}

/* Leaderboard Tabs */
#blackjack-game-modal .bj-lb-tab.active {
    background: linear-gradient(145deg, rgba(255, 179, 0, 0.30), rgba(255, 179, 0, 0.18)) !important;
    border-color: rgba(255, 179, 0, 0.55) !important;
    box-shadow: 0 0 14px rgba(255, 179, 0, 0.25);
}


/* ============================================================
 * COINFLIP
 * ============================================================ */

#coinflip-game-modal .cf-wrap {
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 122, 24, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse 60% 80% at 50% 100%, rgba(94, 234, 212, 0.06) 0%, transparent 60%),
        linear-gradient(165deg, var(--gx-bg-3) 0%, var(--gx-bg-2) 60%, var(--gx-bg-1) 100%) !important;
    border: 1px solid rgba(255, 179, 0, 0.18) !important;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.65),
        0 0 0 1px rgba(255, 179, 0, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
    position: relative;
    overflow: hidden;
}
#coinflip-game-modal .cf-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0/40px 40px,
        linear-gradient(0deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0/40px 40px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
    pointer-events: none;
    z-index: 0;
}
#coinflip-game-modal .cf-wrap > * { position: relative; z-index: 1; }

#coinflip-game-modal .cf-title {
    background: linear-gradient(120deg, #fff 0%, #ffd57a 50%, #ff7a18 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    filter: drop-shadow(0 0 14px rgba(255, 122, 24, 0.25));
    font-weight: 900 !important;
}

#coinflip-game-modal .cf-close {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.85) !important;
    transition: transform 0.25s ease, background 0.25s, border-color 0.25s, color 0.25s !important;
}
#coinflip-game-modal .cf-close:hover {
    background: rgba(255, 59, 92, 0.18) !important;
    border-color: rgba(255, 59, 92, 0.55) !important;
    color: #fff !important;
    transform: rotate(90deg) !important;
}

#coinflip-game-modal .cf-balance {
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 179, 0, 0.25) !important;
    box-shadow: 0 0 14px rgba(255, 179, 0, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
    backdrop-filter: blur(8px);
}

/* Lobby-Cards */
#coinflip-game-modal .cf-lobby-list,
#coinflip-game-modal #cf-my-active-wrap {
    background: rgba(0, 0, 0, 0.25) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    backdrop-filter: blur(10px);
}
#coinflip-game-modal #cf-my-active-wrap {
    background: linear-gradient(160deg, rgba(255, 179, 0, 0.10), rgba(255, 122, 24, 0.04)) !important;
    border: 1px solid rgba(255, 179, 0, 0.22) !important;
    box-shadow: 0 8px 24px rgba(255, 122, 24, 0.10);
}

#coinflip-game-modal .cf-lobby-row {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s !important;
    position: relative;
    overflow: hidden;
}
#coinflip-game-modal .cf-lobby-row::before {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    bottom: 0;
    width: 60%;
    background: linear-gradient(90deg, transparent, rgba(255, 179, 0, 0.10), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
}
#coinflip-game-modal .cf-lobby-row:hover {
    border-color: rgba(255, 179, 0, 0.45) !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -8px rgba(255, 179, 0, 0.30);
}
#coinflip-game-modal .cf-lobby-row:hover::before { left: 100%; }

/* Buttons */
#coinflip-game-modal .cf-btn-primary,
#coinflip-game-modal .cf-btn-join {
    background: linear-gradient(135deg, #ffc24a 0%, #ff7a18 100%) !important;
    color: #1a0e00 !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 800 !important;
    box-shadow:
        0 8px 22px rgba(255, 122, 24, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease !important;
}
#coinflip-game-modal .cf-btn-primary:hover,
#coinflip-game-modal .cf-btn-join:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 12px 28px rgba(255, 122, 24, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}
#coinflip-game-modal .cf-btn-secondary,
#coinflip-game-modal .cf-btn-watch {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 179, 0, 0.30) !important;
    color: #ffd080 !important;
    backdrop-filter: blur(8px);
    transition: background 0.2s, border-color 0.2s !important;
}
#coinflip-game-modal .cf-btn-secondary:hover,
#coinflip-game-modal .cf-btn-watch:hover {
    background: rgba(255, 179, 0, 0.10) !important;
    border-color: rgba(255, 179, 0, 0.55) !important;
}

/* Color-Swatches als 3D-Orbs */
#coinflip-game-modal .cf-color-swatch {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.06) 0%, rgba(0, 0, 0, 0.25) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    backdrop-filter: blur(8px);
    transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s !important;
}
#coinflip-game-modal .cf-color-swatch:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 200, 100, 0.45) !important;
}
#coinflip-game-modal .cf-color-swatch.is-selected {
    border-color: rgba(255, 179, 0, 0.85) !important;
    box-shadow: 0 0 0 1px rgba(255, 179, 0, 0.35), 0 12px 28px -6px rgba(255, 179, 0, 0.45) !important;
}
#coinflip-game-modal .cf-swatch-dot {
    box-shadow:
        inset 0 0 0 2px rgba(0, 0, 0, 0.25),
        inset 0 -3px 6px rgba(0, 0, 0, 0.4),
        inset 0 3px 6px rgba(255, 255, 255, 0.35),
        0 4px 12px rgba(0, 0, 0, 0.5) !important;
    border: none !important;
    width: 28px !important;
    height: 28px !important;
}

/* Wheel-Disk: Chrome-Ring + neon Glow */
#coinflip-game-modal .cf-wheel-disk {
    background: conic-gradient(
        from 0deg,
        rgba(255, 179, 0, 0.4),
        rgba(94, 234, 212, 0.3) 90deg,
        rgba(244, 114, 182, 0.3) 180deg,
        rgba(255, 179, 0, 0.4) 270deg,
        rgba(94, 234, 212, 0.3) 360deg
    ) !important;
    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 179, 0, 0.20),
        0 0 40px rgba(255, 179, 0, 0.18) !important;
    padding: 12px !important;
    /* Keine Dauerrotation: kollidiert mit dem Spin-Transform am Rotor (soll wie Roulette klar erkennbar drehen). */
}
#coinflip-game-modal #cf-wheel-inner {
    background: #0a0a14 !important;
}
#coinflip-game-modal .cf-wheel-hub {
    background: radial-gradient(circle at 30% 30%, #ffd57a, #ffb300 55%, #6a4500) !important;
    border: 3px solid rgba(0, 0, 0, 0.55) !important;
    box-shadow:
        inset 0 0 0 2px rgba(255, 255, 255, 0.2),
        inset 0 -4px 8px rgba(0, 0, 0, 0.45),
        0 0 18px rgba(255, 179, 0, 0.45) !important;
}
#coinflip-game-modal .cf-pointer {
    border-top-color: var(--gx-gold) !important;
    filter: drop-shadow(0 4px 8px rgba(255, 179, 0, 0.55)) drop-shadow(0 0 6px rgba(255, 179, 0, 0.45));
}

/* Phase-Strip futuristisch — 4 Stufen: Lobby → Countdown → Spin → Ergebnis */
#coinflip-game-modal #cf-phase-strip .cf-ph {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(6px);
    position: relative;
}
#coinflip-game-modal #cf-phase-strip[data-step="0"] .cf-ph:nth-child(1),
#coinflip-game-modal #cf-phase-strip[data-step="1"] .cf-ph:nth-child(2),
#coinflip-game-modal #cf-phase-strip[data-step="2"] .cf-ph:nth-child(3),
#coinflip-game-modal #cf-phase-strip[data-step="3"] .cf-ph:nth-child(4) {
    background: linear-gradient(135deg, #ffc24a, #ff7a18) !important;
    border-color: rgba(255, 122, 24, 0.6) !important;
    box-shadow: 0 0 18px rgba(255, 122, 24, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    color: #1a0e00 !important;
}
/* Pulsierender Effekt für aktive Spin-Phase */
#coinflip-game-modal #cf-phase-strip[data-step="2"] .cf-ph:nth-child(3) {
    animation: cfPhasePulse 1.2s ease-in-out infinite;
}
@keyframes cfPhasePulse {
    0%, 100% { box-shadow: 0 0 18px rgba(255, 122, 24, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
    50% { box-shadow: 0 0 32px rgba(255, 200, 100, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
}
@media (prefers-reduced-motion: reduce) {
    #coinflip-game-modal #cf-phase-strip[data-step="2"] .cf-ph:nth-child(3) { animation: none !important; }
}

/* Pot-Card hervorheben */
#coinflip-game-modal .cf-match-pot-card {
    background:
        radial-gradient(ellipse 60% 80% at 50% 100%, rgba(255, 122, 24, 0.18), transparent 70%),
        linear-gradient(135deg, rgba(255, 200, 100, 0.18), rgba(255, 107, 40, 0.08)) !important;
    border: 1px solid rgba(255, 200, 100, 0.45) !important;
    box-shadow: 0 8px 24px rgba(255, 122, 24, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    animation: cfPotShine 3s ease-in-out infinite;
}
@keyframes cfPotShine {
    0%, 100% { box-shadow: 0 8px 24px rgba(255, 122, 24, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.1); }
    50% { box-shadow: 0 8px 32px rgba(255, 200, 100, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.15); }
}
@media (prefers-reduced-motion: reduce) {
    #coinflip-game-modal .cf-match-pot-card { animation: none !important; }
}

/* Outcome-Card-Layout (Title, Winner, Pot, Sub) */
#coinflip-game-modal .cf-outcome-title { font-size: 1.55rem !important; }
#coinflip-game-modal .cf-outcome-pot { color: #ffe09a !important; text-shadow: 0 0 18px rgba(255, 200, 100, 0.55); }
#coinflip-game-modal .cf-outcome.cf-won .cf-outcome-pot { color: #c5ffe1 !important; text-shadow: 0 0 18px rgba(0, 255, 127, 0.55); }

/* Gewinner-Markierung in Teilnehmerliste */
#coinflip-game-modal .cf-participant-winner {
    box-shadow: 0 0 18px rgba(0, 255, 127, 0.25);
    animation: cfWinnerPulse 1.6s ease-in-out infinite;
}
@keyframes cfWinnerPulse {
    0%, 100% { box-shadow: 0 0 18px rgba(0, 255, 127, 0.25); }
    50% { box-shadow: 0 0 28px rgba(0, 255, 127, 0.55); }
}
@media (prefers-reduced-motion: reduce) {
    #coinflip-game-modal .cf-participant-winner { animation: none !important; }
}

/* Match-Cards */
#coinflip-game-modal .cf-match-card {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.18)) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(8px);
}

/* Countdown */
#coinflip-game-modal .cf-countdown-track {
    background: rgba(0, 0, 0, 0.55) !important;
    border: 1px solid rgba(255, 122, 24, 0.20) !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}
#coinflip-game-modal #cf-countdown-bar {
    background: linear-gradient(90deg, var(--gx-gold) 0%, #ff4d00 100%) !important;
    box-shadow: 0 0 18px rgba(255, 77, 0, 0.45);
}

/* Outcome-Effekte */
#coinflip-game-modal .cf-outcome.cf-won {
    background: rgba(0, 255, 127, 0.16) !important;
    box-shadow: 0 0 36px rgba(0, 255, 127, 0.25), inset 0 0 24px rgba(0, 255, 127, 0.10);
    text-shadow: 0 0 14px rgba(0, 255, 127, 0.4);
    border: 1px solid rgba(0, 255, 127, 0.40) !important;
}
#coinflip-game-modal .cf-outcome.cf-lost {
    background: rgba(255, 71, 71, 0.18) !important;
    box-shadow: 0 0 36px rgba(255, 71, 71, 0.20), inset 0 0 24px rgba(255, 71, 71, 0.08);
    border: 1px solid rgba(255, 71, 71, 0.40) !important;
}

/* Inputs */
#coinflip-game-modal .cf-stake-row input,
#coinflip-game-modal .cf-code-row input,
#coinflip-game-modal .cf-max-row select {
    background: rgba(0, 0, 0, 0.45) !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    color: #fff !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    font-family: 'JetBrains Mono', ui-monospace, monospace !important;
}
#coinflip-game-modal .cf-stake-row input:focus,
#coinflip-game-modal .cf-code-row input:focus,
#coinflip-game-modal .cf-max-row select:focus {
    border-color: rgba(255, 179, 0, 0.55) !important;
    box-shadow: 0 0 0 3px rgba(255, 179, 0, 0.20), inset 0 0 14px rgba(255, 255, 255, 0.04) !important;
    outline: none !important;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    #coinflip-game-modal .cf-match-pot-card { animation: none !important; }
}
