/* ══════════════════════════════════════════════════════
   CASINO — Eigenständiges Design, ignoriert Site-Theme
══════════════════════════════════════════════════════ */

:root {
    --casino-green:      #0d3d22;
    --casino-felt:       #0f4a2a;
    --casino-dark:       #060e08;
    --casino-gold:       #f5c542;
    --casino-gold-dim:   #c9a227;
    --casino-gold-dark:  #8b6914;
    --casino-red:        #c0392b;
    --casino-chrome:     #c8c8c8;
    --casino-neon-green: #00ff88;
}

/* ══════════════════════════════
   GLOBAL OVERRIDES
══════════════════════════════ */
body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
    background-color: #1a0a08 !important;
    background-image: none !important;
    background-attachment: fixed !important;
    color: #f0ebe0 !important;
    min-height: 100vh;
}

/* Überschreibt das Lila body::before aus main.css mit der echten Teppich-Textur */
body::before {
    background-color: #1a0a08 !important;
    background-image:
        linear-gradient(rgba(0,0,0,0.52), rgba(0,0,0,0.52)),
        url('carpet%20texture.jpg') !important;
    background-size: auto, 420px auto !important;
    background-repeat: repeat, repeat !important;
    background-attachment: fixed !important;
    background-position: center center !important;
}

/* Vignette + Deckenstrahler — sitzt über der Textur, unter .app */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 40% at 50% 0%, rgba(60,20,5,0.35) 0%, transparent 55%),
        radial-gradient(ellipse 65% 55% at 50% 50%, transparent 25%, rgba(0,0,0,0.6) 100%);
    pointer-events: none;
    z-index: 0;
}

/* Sternhimmel-Canvas ausblenden */
#star-canvas {
    opacity: 0 !important;
}

* { box-sizing: border-box; }

.app {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px 20px;
    margin-top: 7rem;
    position: relative;
    z-index: 1;
}

/* ══════════════════════════════
   HEADER — Neon-Schild Ästhetik
══════════════════════════════ */
.header {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-bottom: 28px;
    gap: 16px;
}

h1 {
    text-align: center;
    font-size: 2.1rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--casino-gold);
    margin: 0;
    text-shadow:
        0 0 6px  rgba(245, 197, 66, 1),
        0 0 14px rgba(245, 197, 66, 0.8),
        0 0 28px rgba(245, 197, 66, 0.5),
        0 0 55px rgba(245, 197, 66, 0.25);
    animation: neonFlicker 6s ease-in-out infinite;
}

@keyframes neonFlicker {
    0%, 92%, 96%, 100% {
        text-shadow:
            0 0 6px  rgba(245,197,66,1),
            0 0 14px rgba(245,197,66,0.8),
            0 0 28px rgba(245,197,66,0.5),
            0 0 55px rgba(245,197,66,0.25);
    }
    93%, 95% {
        text-shadow:
            0 0 2px  rgba(245,197,66,0.6),
            0 0 6px  rgba(245,197,66,0.3);
    }
}

/* ── Home Button ── */
.home-btn {
    align-self: flex-start;
    background: rgba(0,0,0,0.55);
    border: 1px solid rgba(245,197,66,0.35);
    padding: 7px 16px;
    border-radius: 8px;
    color: rgba(245,197,66,0.75) !important;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.03em;
}
.home-btn:hover {
    background: rgba(245,197,66,0.12);
    border-color: var(--casino-gold);
    color: var(--casino-gold) !important;
}

/* ══════════════════════════════
   NAV — Physische Kasino-Knöpfe
══════════════════════════════ */
.game-selector-container {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.nav {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    background: #040a06;
    padding: 7px;
    border-radius: 16px;
    border: 1px solid var(--casino-gold-dark);
    box-shadow:
        inset 0 2px 8px rgba(0,0,0,0.8),
        0 0 0 1px rgba(0,0,0,0.6),
        0 4px 16px rgba(0,0,0,0.5);
}

.nav button {
    background: linear-gradient(180deg, #1a2a1a 0%, #0e1a0e 100%);
    border: 1px solid rgba(245,197,66,0.18);
    border-bottom: 2px solid rgba(0,0,0,0.5);
    padding: 9px 16px;
    border-radius: 10px;
    color: rgba(240,235,224,0.55);
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: all 0.15s ease;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.nav button:hover {
    color: var(--casino-gold);
    background: linear-gradient(180deg, #1f3020 0%, #122014 100%);
    border-color: rgba(245,197,66,0.4);
}
.nav button.active {
    background: linear-gradient(180deg, #e8b800 0%, #c9a227 45%, #9a7c1a 100%);
    color: #1a0e00;
    border-color: var(--casino-gold);
    border-bottom-color: #6a5010;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.3),
        0 0 14px rgba(245,197,66,0.35);
    text-shadow: none;
}

/* ══════════════════════════════
   CREDITS — Casino LED-Anzeige
══════════════════════════════ */
.credits {
    background: #020a04;
    border: 2px solid var(--casino-gold-dark);
    padding: 8px 20px;
    border-radius: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 0.82rem;
    color: rgba(240,235,224,0.45);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow:
        inset 0 3px 10px rgba(0,0,0,0.9),
        0 0 0 1px rgba(0,0,0,0.6),
        0 0 16px rgba(0,0,0,0.5);
}

.credit-value {
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--casino-neon-green);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.08em;
    text-shadow: 0 0 8px var(--casino-neon-green), 0 0 18px rgba(0,255,136,0.4);
    transition: color 0.2s;
}

@keyframes flashWin {
    0%,100% { color: var(--casino-neon-green); text-shadow: 0 0 8px var(--casino-neon-green); }
    50%     { color: #4ade80; text-shadow: 0 0 24px #4ade80, 0 0 48px rgba(74,222,128,0.5); }
}
@keyframes flashLose {
    0%,100% { color: var(--casino-neon-green); text-shadow: 0 0 8px var(--casino-neon-green); }
    50%     { color: #f87171; text-shadow: 0 0 18px #f87171; }
}
.credit-value.flash-win  { animation: flashWin  0.5s ease; }
.credit-value.flash-lose { animation: flashLose 0.5s ease; }

/* ══════════════════════════════
   BONUS
══════════════════════════════ */
.bonus-area { display: flex; align-items: center; }

.bonus-btn {
    background: linear-gradient(180deg, #2a9a50 0%, #1a6432 100%);
    border: 1px solid #4ade80;
    border-bottom: 2px solid #0e3c1e;
    padding: 9px 18px;
    border-radius: 10px;
    color: #e0ffe8;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    cursor: pointer;
    box-shadow: 0 0 14px rgba(74,222,128,0.25), inset 0 1px 0 rgba(255,255,255,0.2);
    animation: bonusPulse 2s ease-in-out infinite;
    transition: transform 0.15s ease;
}
.bonus-btn:hover { transform: translateY(-1px); box-shadow: 0 0 24px rgba(74,222,128,0.45); }
.bonus-btn:active { transform: translateY(1px); }

@keyframes bonusPulse {
    0%,100% { box-shadow: 0 0 14px rgba(74,222,128,0.25), inset 0 1px 0 rgba(255,255,255,0.2); }
    50%     { box-shadow: 0 0 28px rgba(74,222,128,0.5),  inset 0 1px 0 rgba(255,255,255,0.2); }
}

.bonus-countdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 7px 16px;
    border-radius: 10px;
    background: #020a04;
    border: 1px solid rgba(74,222,128,0.2);
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.7);
}
#bonus-timer {
    font-size: 0.95rem;
    font-weight: 700;
    color: #4ade80;
    text-shadow: 0 0 8px rgba(74,222,128,0.6);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.08em;
}

/* ══════════════════════════════
   SPIELTISCH — Kasino-Filz
══════════════════════════════ */
main {
    background-color: #0e3d22;
    background-image:
        /* Filz-Textur: winzige Punkte */
        radial-gradient(circle at 1px 1px, rgba(255,255,255,0.022) 1px, transparent 0),
        /* Lichtspot von oben */
        radial-gradient(ellipse 70% 40% at 50% 0%, rgba(25,100,55,0.7) 0%, transparent 65%),
        /* Dunklere Ränder */
        radial-gradient(ellipse 100% 80% at 50% 100%, rgba(4,12,7,0.6) 0%, transparent 55%),
        linear-gradient(160deg, #10472a 0%, #0a3018 55%, #071e10 100%);
    background-size: 4px 4px, 100% 100%, 100% 100%, 100% 100%;
    border-radius: 26px;
    /* Doppelter Gold-Rahmen für luxuriöses Kasino-Feeling */
    border: 3px solid var(--casino-gold);
    outline: 1px solid var(--casino-gold-dark);
    outline-offset: 4px;
    box-shadow:
        0 0 0 7px rgba(0,0,0,0.7),
        0 20px 70px rgba(0,0,0,0.9),
        0 0 120px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255,255,255,0.05),
        inset 0 0 80px rgba(0,0,0,0.4);
    padding: 36px;
    position: relative;
    overflow: hidden;
}

/* Deckenspot-Effekt auf dem Tisch */
main::before {
    content: '';
    position: absolute;
    top: -80px; left: 50%;
    transform: translateX(-50%);
    width: 280px; height: 160px;
    background: radial-gradient(ellipse, rgba(245,197,66,0.09) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

main > * { position: relative; z-index: 1; }

.game { display: none; }
.game.active { display: block; }

/* ══════════════════════════════
   STEUERELEMENTE
══════════════════════════════ */
.controls {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
    justify-content: center;
}

.controls label {
    font-size: 0.82rem;
    color: rgba(240,235,224,0.6);
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-weight: 700;
}

input[type=number] {
    width: 90px;
    padding: 9px 12px;
    border-radius: 8px;
    border: 1px solid var(--casino-gold-dark);
    background: #020a04;
    color: var(--casino-gold);
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.7);
}
input[type=number]:focus {
    outline: none;
    border-color: var(--casino-gold);
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.7), 0 0 0 2px rgba(245,197,66,0.2);
}

/* ── Haupt-Spielknopf — physisch/3D ── */
button.play {
    background: linear-gradient(180deg, #eec000 0%, #c9a227 40%, #8b6914 100%);
    border: 1px solid var(--casino-gold);
    border-bottom: 3px solid #5a4210;
    padding: 11px 28px;
    border-radius: 10px;
    color: #1a0e00;
    font-weight: 900;
    font-size: 0.92rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.1s ease;
    box-shadow:
        0 4px 16px rgba(0,0,0,0.6),
        inset 0 1px 0 rgba(255,255,255,0.35);
}
button.play:hover {
    background: linear-gradient(180deg, #f5c542 0%, #e0b020 40%, #a07818 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(0,0,0,0.6), 0 0 20px rgba(245,197,66,0.3), inset 0 1px 0 rgba(255,255,255,0.35);
}
button.play:active {
    transform: translateY(2px);
    border-bottom-width: 1px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

/* ── Sekundärer Knopf ── */
.secondary-button {
    background: linear-gradient(180deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid rgba(245,197,66,0.28);
    border-bottom: 2px solid rgba(0,0,0,0.5);
    padding: 11px 18px;
    border-radius: 10px;
    color: rgba(240,235,224,0.75);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
}
.secondary-button:hover {
    background: linear-gradient(180deg, rgba(245,197,66,0.14) 0%, rgba(245,197,66,0.06) 100%);
    border-color: rgba(245,197,66,0.55);
    color: var(--casino-gold);
}
.secondary-button:active { transform: translateY(1px); }

button:disabled {
    opacity: 0.32;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ══════════════════════════════
   MELDUNGEN
══════════════════════════════ */
.message {
    min-height: 32px;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    padding: 10px 20px;
    border-radius: 10px;
    letter-spacing: 0.04em;
    transition: all 0.3s ease;
}
.win {
    color: #4ade80;
    background: rgba(74,222,128,0.08);
    border: 1px solid rgba(74,222,128,0.3);
    text-shadow: 0 0 12px rgba(74,222,128,0.5);
}
.lose {
    color: #f87171;
    background: rgba(248,113,113,0.08);
    border: 1px solid rgba(248,113,113,0.28);
    text-shadow: 0 0 10px rgba(248,113,113,0.4);
}

/* ══════════════════════════════
   SLOTS — Spielautomat
══════════════════════════════ */
.slots {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}

/* Chrom-Gehäuse um die Rollen */
.reels-wrapper {
    background: linear-gradient(180deg, #282828 0%, #383838 15%, #2a2a2a 50%, #202020 85%, #181818 100%);
    padding: 18px 22px 22px;
    border-radius: 20px;
    border: 2px solid #505050;
    box-shadow:
        inset 0 3px 10px rgba(0,0,0,0.9),
        inset 0 -2px 6px rgba(255,255,255,0.06),
        0 0 0 1px #111,
        0 6px 28px rgba(0,0,0,0.8),
        0 0 50px rgba(0,0,0,0.5);
    position: relative;
}

/* JACKPOT-Label über den Rollen */
.reels-wrapper::before {
    content: '— JACKPOT —';
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--casino-gold-dark), var(--casino-gold), #ffe066, var(--casino-gold), var(--casino-gold-dark));
    color: #1a0e00;
    font-weight: 900;
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    padding: 4px 22px;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 0 16px rgba(245,197,66,0.55), 0 2px 4px rgba(0,0,0,0.6);
}

/* Gewinn-Linie — gold mit Glühen */
.reels-wrapper::after {
    content: '';
    position: absolute;
    top: 50%; left: 14px; right: 14px;
    height: 3px;
    background: linear-gradient(to right, transparent, rgba(245,197,66,0.85) 20%, rgba(245,197,66,0.85) 80%, transparent);
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 5;
    box-shadow: 0 0 10px rgba(245,197,66,0.7);
}

.reels {
    display: flex;
    gap: 12px;
}

.reel {
    width: 120px;
    height: 120px;
    border-radius: 10px;
    background: #060606;
    border: 2px solid #3a3a3a;
    box-shadow:
        inset 0 0 50px rgba(0,0,0,0.95),
        inset 0 2px 4px rgba(255,255,255,0.04);
    position: relative;
    overflow: hidden;
}
.reel::before, .reel::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    height: 38px;
    z-index: 2;
    pointer-events: none;
}
.reel::before { top: 0;    background: linear-gradient(to bottom, rgba(0,0,0,0.92), transparent); }
.reel::after  { bottom: 0; background: linear-gradient(to top,   rgba(0,0,0,0.92), transparent); }

.reel-inner {
    position: absolute;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.1s;
}
.reel-symbol {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    flex-shrink: 0;
}

/* ══════════════════════════════
   SPIELKARTEN
══════════════════════════════ */
.hand {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.card-wrapper { perspective: 600px; }

.card {
    width: 80px;
    height: 120px;
    border-radius: 10px;
    background: linear-gradient(165deg, #ffffff 0%, #f8f3ea 100%);
    color: #1a1a2e !important;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 6px 8px;
    font-weight: 700;
    position: relative;
    box-shadow:
        0 5px 18px rgba(0,0,0,0.7),
        0 0 0 1px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(255,255,255,0.95);
    border: 1px solid rgba(0,0,0,0.15);
    backface-visibility: hidden;
    transition: transform 0.35s ease;
}
.card.red-suit { color: #c0392b !important; }
.card span     { color: inherit; }
.card-rank     { font-size: 1rem; line-height: 1; }
.card-suit     { font-size: 0.85rem; line-height: 1; }
.card-center   { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-size: 1.6rem; }
.card-corner-br {
    position: absolute;
    bottom: 6px; right: 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    transform: rotate(180deg);
    font-size: 0.8rem;
    line-height: 1;
}

.card.back {
    background:
        repeating-linear-gradient(45deg, #1e3d9e 0px, #1e3d9e 4px, #142c7a 4px, #142c7a 8px);
    color: transparent !important;
    border-color: #0d1e5c;
    box-shadow:
        0 5px 18px rgba(0,0,0,0.7),
        inset 0 0 0 3px rgba(255,255,255,0.06);
}
.card.back::after {
    content: '🂠';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    font-size: 2.5rem;
    color: rgba(255,255,255,0.25);
}

@keyframes dealCard {
    from { transform: rotateY(90deg) scale(0.8); opacity: 0; }
    to   { transform: rotateY(0deg)  scale(1);   opacity: 1; }
}
.card.dealing { animation: dealCard 0.3s ease forwards; }

/* Hold-Knopf */
.hold {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 6px;
    background: rgba(0,0,0,0.82);
    padding: 3px 10px;
    border-radius: 6px;
    color: #bbb;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.12);
    transition: all 0.15s ease;
    white-space: nowrap;
    letter-spacing: 0.06em;
}
.hold.held {
    background: #16a34a;
    color: #fff;
    border-color: #22c55e;
    box-shadow: 0 0 12px rgba(34,197,94,0.6);
}

/* ══════════════════════════════
   VIDEO POKER
══════════════════════════════ */
.poker {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.poker-hand-name {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--casino-gold);
    min-height: 38px;
    text-align: center;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-shadow: 0 0 22px rgba(245,197,66,0.65);
}

.paytable-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 20px;
    font-size: 0.88rem;
}
.paytable-grid .pt-hand { color: rgba(240,235,224,0.8); }
.paytable-grid .pt-pay  { color: var(--casino-gold); font-weight: 700; text-align: right; }

/* ══════════════════════════════
   BLACKJACK
══════════════════════════════ */
.blackjack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.blackjack-hands-container {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}
.blackjack-hands-container > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.hand-label {
    font-size: 0.8rem;
    color: rgba(245,197,66,0.65);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 700;
}

.score-badge {
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(245,197,66,0.38);
    color: var(--casino-gold);
    font-weight: 900;
    padding: 3px 16px;
    border-radius: 20px;
    font-size: 0.95rem;
    text-shadow: 0 0 8px rgba(245,197,66,0.45);
    letter-spacing: 0.06em;
    box-shadow: inset 0 1px 4px rgba(0,0,0,0.6);
}

/* ══════════════════════════════
   ROULETTE
══════════════════════════════ */
.roulette {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.roulette-controls-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.roulette-bet-type {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.bet-type-btn {
    background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(0,0,0,0.2) 100%);
    border: 1px solid rgba(245,197,66,0.22);
    border-bottom: 2px solid rgba(0,0,0,0.5);
    padding: 8px 16px;
    border-radius: 9px;
    color: rgba(240,235,224,0.65);
    cursor: pointer;
    font-size: 0.83rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    transition: all 0.18s;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.bet-type-btn:hover {
    background: linear-gradient(180deg, rgba(245,197,66,0.14) 0%, rgba(245,197,66,0.04) 100%);
    color: var(--casino-gold);
    border-top-color: rgba(245,197,66,0.5);
}
.bet-type-btn.active {
    background: linear-gradient(180deg, rgba(245,197,66,0.2) 0%, rgba(245,197,66,0.08) 100%);
    border-color: var(--casino-gold);
    border-bottom-color: var(--casino-gold-dark);
    color: var(--casino-gold);
    box-shadow: 0 0 14px rgba(245,197,66,0.2), inset 0 1px 0 rgba(255,255,255,0.08);
    text-shadow: 0 0 10px rgba(245,197,66,0.5);
}

.roul-number-input { display: flex; align-items: center; gap: 6px; }

/* Rad-Container */
.roulette-wheel-container {
    position: relative;
    width: 300px;
    height: 300px;
}

/* Marker bei 12 Uhr */
.roulette-wheel-container::before {
    content: '';
    position: absolute;
    top: -2px; left: 50%;
    transform: translateX(-50%);
    width: 0; height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 18px solid var(--casino-gold);
    filter: drop-shadow(0 2px 8px rgba(245,197,66,0.9));
    z-index: 10;
}

#roul-svg {
    width: 300px;
    height: 300px;
    filter: drop-shadow(0 10px 35px rgba(0,0,0,0.95));
    transform-origin: center;
    transition: transform 3.5s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}

.roulette-ball {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ffffff, #e0e0e0, #999999);
    box-shadow: 0 2px 8px rgba(0,0,0,0.9), 0 0 5px rgba(255,255,255,0.25);
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    transition: left 3.5s cubic-bezier(0.17, 0.67, 0.12, 0.99), top 3.5s cubic-bezier(0.17, 0.67, 0.12, 0.99);
    z-index: 10;
}

.roulette-result-number {
    font-size: 1.9rem;
    font-weight: 900;
    color: var(--casino-gold);
    min-height: 48px;
    text-align: center;
    text-shadow: 0 0 24px rgba(245,197,66,0.65);
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.roul-dot {
    display: inline-block;
    width: 18px; height: 18px;
    border-radius: 50%;
    flex-shrink: 0;
}
.roul-dot.roul-red   { background: #c0392b; box-shadow: 0 0 10px rgba(192,57,43,0.8); }
.roul-dot.roul-green { background: #16a34a; box-shadow: 0 0 10px rgba(22,163,74,0.8); }
.roul-dot.roul-black { background: #1a1a1a; border: 2px solid #555; box-shadow: 0 0 6px rgba(0,0,0,0.8); }

/* Credits-Chip-Icon */
.icon-chip {
    flex-shrink: 0;
    display: block;
}

/* ══════════════════════════════
   MODAL — Auszahlungstabelle
══════════════════════════════ */
.modal-content {
    background: #040c06 !important;
    border: 2px solid var(--casino-gold) !important;
    border-radius: 18px !important;
    color: #f0ebe0 !important;
    box-shadow: 0 0 70px rgba(0,0,0,0.95), 0 0 40px rgba(245,197,66,0.08) !important;
}
.modal-header { border-bottom: 1px solid rgba(245,197,66,0.2) !important; padding: 16px 20px !important; }
.modal-title  { color: var(--casino-gold) !important; font-weight: 900 !important; letter-spacing: 0.06em !important; }

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
footer {
    margin-top: 22px;
    color: rgba(240,235,224,0.18);
    font-size: 0.76rem;
    text-align: center;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ══════════════════════════════
   SLOT WIN EFFEKTE
══════════════════════════════ */
@keyframes reelGoldPulse {
    0%,100% { box-shadow: inset 0 0 50px rgba(0,0,0,0.95); border-color: #3a3a3a; }
    50%     { box-shadow: inset 0 0 30px rgba(0,0,0,0.6), 0 0 22px 6px rgba(245,197,66,0.85); border-color: var(--casino-gold); }
}
@keyframes reelRainbow {
    0%   { box-shadow: 0 0 22px rgba(245,197,66,0.9),  0 0 0 2px #f5c542; }
    25%  { box-shadow: 0 0 22px rgba(248,113,113,0.9), 0 0 0 2px #f87171; }
    50%  { box-shadow: 0 0 22px rgba(74,222,128,0.9),  0 0 0 2px #4ade80; }
    75%  { box-shadow: 0 0 22px rgba(96,165,250,0.9),  0 0 0 2px #60a5fa; }
    100% { box-shadow: 0 0 22px rgba(245,197,66,0.9),  0 0 0 2px #f5c542; }
}
.reel.win-glow     { animation: reelGoldPulse 0.8s ease-in-out 3; }
.reel.jackpot-glow { animation: reelRainbow 0.5s linear infinite; }

/* ══════════════════════════════
   POKER WIN EFFEKTE
══════════════════════════════ */
@keyframes cardWinGlow {
    0%,100% { box-shadow: 0 5px 18px rgba(0,0,0,0.7), 0 0 0 1px rgba(0,0,0,0.2); }
    50%     { box-shadow: 0 5px 18px rgba(0,0,0,0.7), 0 0 0 3px #4ade80, 0 0 22px rgba(74,222,128,0.65); }
}
.card.win-highlight { animation: cardWinGlow 0.7s ease-in-out 3; }

@keyframes handNameReveal {
    from { opacity: 0; transform: scale(0.7); }
    to   { opacity: 1; transform: scale(1); }
}
.poker-hand-name.animate-in { animation: handNameReveal 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
.poker-hand-name.royal {
    color: #ffd700 !important;
    text-shadow: 0 0 30px rgba(255,215,0,0.95), 0 0 60px rgba(255,215,0,0.5);
}

/* ══════════════════════════════
   BLACKJACK EFFEKTE
══════════════════════════════ */
@keyframes bjWinFlash {
    0%,100% { background-color: transparent; }
    40%     { background-color: rgba(74,222,128,0.14); }
}
@keyframes bjBustShake {
    0%,100% { transform: translateX(0); }
    15% { transform: translateX(-9px); }
    30% { transform: translateX(9px); }
    45% { transform: translateX(-6px); }
    60% { transform: translateX(6px); }
    75% { transform: translateX(-3px); }
    90% { transform: translateX(3px); }
}
@keyframes bjLoseWash {
    0%,100% { background-color: transparent; }
    40%     { background-color: rgba(248,113,113,0.12); }
}
.blackjack.bj-win-flash  { animation: bjWinFlash  0.8s ease forwards; border-radius: 12px; }
#bj-player.bj-bust-shake { animation: bjBustShake 0.5s ease; }
.blackjack.bj-lose-wash  { animation: bjLoseWash  0.8s ease forwards; border-radius: 12px; }

/* ══════════════════════════════
   ROULETTE EFFEKTE
══════════════════════════════ */
@keyframes segmentPulse {
    0%,100% { stroke-width: 0.5; }
    50%     { stroke-width: 4; }
}
.roul-win-segment {
    stroke: #f5c542 !important;
    stroke-width: 4 !important;
    animation: segmentPulse 0.6s ease-in-out 4;
    filter: drop-shadow(0 0 8px rgba(245,197,66,1));
}

@keyframes resultPop {
    0%   { transform: scale(0.5); opacity: 0; }
    60%  { transform: scale(1.2); }
    100% { transform: scale(1);   opacity: 1; }
}
.roulette-result-number.pop { animation: resultPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }

/* ══════════════════════════════
   PARTIKEL-SYSTEM
══════════════════════════════ */
.particle {
    position: fixed;
    pointer-events: none;
    border-radius: 50%;
    z-index: 9999;
    will-change: transform, opacity;
}
@keyframes particleFly {
    0%   { opacity: 1; transform: translate(0, 0) scale(1); }
    100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.3); }
}

/* ══════════════════════════════
   SCRATCH CARD
══════════════════════════════ */
.scratch-card-game {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.scratch-canvas-wrapper {
    position: relative;
    width: 300px;
    height: 160px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 10px 36px rgba(0,0,0,0.8),
        0 0 0 2px var(--casino-gold-dark),
        0 0 0 5px rgba(0,0,0,0.5);
}
canvas#scratch-canvas {
    position: absolute;
    top: 0; left: 0;
    cursor: crosshair;
    border-radius: 16px;
    z-index: 2;
}
.scratch-symbols-row {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    font-size: 52px;
    background: linear-gradient(135deg, #1a3a1a, #0d2010);
    border-radius: 16px;
    z-index: 1;
}
.scratch-hint {
    font-size: 0.78rem;
    color: rgba(240,235,224,0.32);
    text-align: center;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

/* ══════════════════════════════
   WÜRFEL (DICE)
══════════════════════════════ */
.dice-game {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.dice-display {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: center;
    margin: 12px 0;
}
.die {
    width: 80px;
    height: 80px;
    background: linear-gradient(145deg, #f8f6f0, #e8e4d8);
    border-radius: 16px;
    box-shadow:
        0 10px 28px rgba(0,0,0,0.8),
        0 0 0 1px rgba(0,0,0,0.3),
        inset 0 2px 0 rgba(255,255,255,0.9),
        inset 0 -2px 0 rgba(0,0,0,0.12);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    padding: 12px;
    gap: 4px;
    transition: transform 0.15s ease;
}
.die-pip {
    background: #1a1a2e;
    border-radius: 50%;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.35);
}
.die-pip.hidden { background: transparent; box-shadow: none; }
@keyframes dieRoll {
    0%   { transform: rotate(0deg)   scale(1); }
    25%  { transform: rotate(90deg)  scale(0.9); }
    50%  { transform: rotate(180deg) scale(1.05); }
    75%  { transform: rotate(270deg) scale(0.95); }
    100% { transform: rotate(360deg) scale(1); }
}
.die.rolling { animation: dieRoll 0.25s ease-in-out infinite; }
.dice-bet-type {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}
.dice-sum-display {
    font-size: 1.7rem;
    font-weight: 900;
    color: var(--casino-gold);
    min-height: 48px;
    text-align: center;
    text-shadow: 0 0 22px rgba(245,197,66,0.65);
    letter-spacing: 0.12em;
}
.dice-specific-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: rgba(240,235,224,0.65);
}

/* ══════════════════════════════
   MOBILE
══════════════════════════════ */
@media (max-width: 600px) {
    .app { padding: 10px; margin-top: 4.5rem; }
    main { padding: 16px; }

    .reel { width: 90px; height: 90px; }
    .reel-symbol { height: 90px; font-size: 40px; }

    .card { width: 64px; height: 96px; }
    .card-center { font-size: 1.2rem; }

    .roulette-wheel-container { width: 250px; height: 250px; }
    #roul-svg { width: 250px; height: 250px; }

    .controls { flex-direction: column; width: 100%; }
    .controls label  { width: 100%; }
    .controls input[type=number] { width: 100%; }
    .controls button { width: 100%; }

    .blackjack-hands-container { gap: 20px; }

    .scratch-canvas-wrapper { width: 260px; height: 140px; }
    canvas#scratch-canvas    { width: 260px !important; height: 140px !important; }
    .die { width: 64px; height: 64px; padding: 10px; }
}
