.player-cards {
    display: flex; /* Karten nebeneinander anordnen */
    gap: 5px; /* Abstand zwischen den Karten */
    justify-content: center; /* Karten horizontal zentrieren */
    align-items: center; /* Karten vertikal zentrieren */
    min-height: 80px; /* Ausreichend Höhe für zwei Karten übereinander (falls nötig) */
    flex-wrap: wrap;
    min-width: 120px; /* Mindestbreite für zwei Karten nebeneinander */
    max-width: 150px; /* Maximalbreite, um nicht zu viel Platz einzunehmen */
}

.player-stack {
    min-width: 80px; /* Mindestbreite für Platzhalter */
    border: none;
    color: #ffd700;
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 5px;
}

.community-cards {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px dashed rgba(255, 255, 255, 0.5);
    padding: 10px;
    min-width: 200px; /* Mindestbreite für Platzhalter */
    min-height: 80px; /* Mindesthöhe für Platzhalter */
    display: flex; /* Karten nebeneinander anordnen */
    gap: 10px; /* Abstand zwischen Gemeinschaftskarten */
    justify-content: center;
    align-items: center;
    z-index: 5; /* Unter Spielern und Dealer */
}

.pot {
    position: absolute;
    top: 8%; /* Nach ganz oben über den Dealer verschoben */
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 1.5rem;
    font-weight: bold;
    z-index: 5;
}

.pot span {
    color: #ffd700;
}

.controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    width: 80%;
    max-width: 500px;
}

.controls button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.fold-button {
    background-color: #e74c3c;
    color: #fff;
}

.fold-button:hover {
    background-color: #c0392b;
}

.check-button {
    background-color: #3498db;
    color: #fff;
}

.check-button:hover {
    background-color: #2980b9;
}

.bet-button {
    background-color: #2ecc71;
    color: #fff;
}

.bet-button:hover {
    background-color: #27ae60;
}

.bet-amount {
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    width: 100px;
    text-align: center;
}

/* Dealer Styling */
.dealer-comic {
    width: 100px;
    height: 100px;
    background: url('../images/dealer-placeholder.png') no-repeat center center;
    background-size: contain;
    margin: 0 auto 10px auto;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.3));
}

/* Animierter Poker Hintergrund */
.poker-background::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    background: radial-gradient(circle, rgba(17, 107, 71, 0.2) 0%, transparent 60%);
    animation: poker-background-pulse 15s infinite ease-in-out;
    z-index: 1;
}

@keyframes poker-background-pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

/* Styling für Karten */
.card {
    width: 50px; /* Breite der Karte */
    height: 70px; /* Höhe der Karte */
    /* background-color: #fff; *//* Weiße Rückseite (Platzhalter) */
    border: 1px solid #000; /* Schwarzer Rand */
    border-radius: 5px; /* Abgerundete Ecken */
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3); /* Schatten */
    margin: 2px; /* Kleiner Abstand, wenn mehrere Karten nebeneinander liegen */
    box-sizing: border-box;
    perspective: 1000px; /* Für 3D-Transformation */
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.card-back,
.card-front {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card-back {
    background-color: #c0392b; /* Rote Rückseite (Beispiel) */
    background-image: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%); /* Glanz-Effekt */
}

.card-front {
    background-color: #fff;
    transform: rotateY(180deg); /* Vorderseite ist standardmäßig um 180 Grad gedreht */
    color: #000; /* Standardtextfarbe für Symbole */
    font-weight: bold;
}

.card-rank {
    font-size: 1.5rem;
    line-height: 1;
}

.card-suit {
    font-size: 1.2rem;
    line-height: 1;
}

/* Wenn die Karte 'umgedreht' ist */
.card.is-flipped .card-inner {
    transform: rotateY(180deg);
}

/* Standardmäßig Vorderseite bei Bots verstecken und Rückseite zeigen */
.player-area.player-bot .card-front {
    backface-visibility: hidden;
    transform: rotateY(180deg); /* Sicherstellen, dass die Vorderseite in der richtigen Startposition ist */
}

.player-area.player-bot .card-back {
     backface-visibility: hidden;
     transform: rotateY(0deg); /* Sicherstellen, dass die Rückseite in der richtigen Startposition ist */
}

/* Klasse zum Aufdecken der Bot-Karten */
.player-area.player-bot.revealed .card-inner {
    transform: rotateY(180deg); /* Dreht die Karte, um die Vorderseite zu zeigen */
}

/* Farbe für rote Symbole (Herz, Karo) */
.card-front.red-suit {
    color: #e74c3c; /* Rot */
}

/* Farbe für schwarze Symbole (Kreuz, Pik) */
.card-front.black-suit {
    color: #000; /* Schwarz */
}

.daily-rewards-container {
    position: relative;
    min-height: 500px;
    padding: 2rem;
    background: #1a1a1a;
    border-radius: 15px;
    overflow: hidden;
    color: #fff;
}

.daily-rewards-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #2c2c2c, #1a1a1a);
    z-index: 1;
}

.daily-rewards-background::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,215,0,0.1) 0%, transparent 70%);
    animation: background-shift 20s infinite linear;
}

.daily-rewards-content {
    position: relative;
    z-index: 2;
    text-align: center;
    min-height: 480px;
}

.daily-rewards-header {
    margin-bottom: 2rem;
}

.daily-rewards-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ffd700, #ffa500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.daily-rewards-coins {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 20px;
    font-size: 1.2rem;
}

.coin-icon {
    font-size: 1.5rem;
}

.daily-rewards-box {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
    perspective: 1000px;
    cursor: pointer;
}

.box-content {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.daily-rewards-box.available:hover .box-content {
    transform: rotateY(180deg);
}

.box-front,
.box-back,
.box-claimed {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 15px;
    padding: 1rem;
}

.box-back {
    transform: rotateY(180deg);
}

.box-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.coins-animation {
    position: relative;
    height: 100px;
}

.coin {
    position: absolute;
    font-size: 2rem;
    animation: coin-fall 1s ease-out forwards;
}

.coin:nth-child(1) { animation-delay: 0.1s; }
.coin:nth-child(2) { animation-delay: 0.3s; }
.coin:nth-child(3) { animation-delay: 0.5s; }

.countdown {
    font-size: 1.5rem;
    font-family: monospace;
    margin-top: 1rem;
}

@keyframes background-shift {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes coin-fall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100px) rotate(360deg);
        opacity: 0;
    }
}

/* Login/Register Form Styling */
.daily-rewards-login-required {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.daily-rewards-login-required a {
    color: #ffd700;
    text-decoration: none;
    font-weight: bold;
}

.daily-rewards-login-required a:hover {
    text-decoration: underline;
}

/* Login/Register Page Styling */
.daily-rewards-auth-container {
    position: relative;
    min-height: 600px;
    padding: 2rem;
    background: #1a1a1a;
    border-radius: 15px;
    overflow: hidden;
    color: #fff;
    max-width: 500px;
    margin: 2rem auto;
}

.daily-rewards-auth-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, #2e3192 0%, transparent 70%),
                radial-gradient(circle at 80% 70%, #1bffff 0%, transparent 70%),
                linear-gradient(120deg, #1a1a1a 60%, #232946 100%);
    overflow: hidden;
    z-index: 1;
}

.daily-rewards-auth-background::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,215,0,0.1) 0%, transparent 70%);
    animation: background-shift 20s infinite linear;
}

.daily-rewards-auth-content {
    position: relative;
    z-index: 2;
    box-shadow: 0 0 40px 10px #1bffff33, 0 0 0 2px #ffd70044;
    border-radius: 20px;
    background: rgba(30, 30, 60, 0.7);
    backdrop-filter: blur(4px);
    padding: 2rem 2.5rem;
    animation: fadeIn 1s cubic-bezier(.68,-0.55,.27,1.55);
}

.particle {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd700, #1bffff, #ff6b6b);
    opacity: 0.7;
    filter: blur(1px);
    animation: particle-move 6s linear infinite;
}

@keyframes particle-move {
    0% {
        transform: translateY(0) scale(1) rotate(0deg);
        opacity: 0.7;
    }
    50% {
        opacity: 1;
        filter: blur(0px);
    }
    100% {
        transform: translateY(-600px) scale(1.2) rotate(360deg);
        opacity: 0;
    }
}

.auth-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.auth-tab {
    flex: 1;
    padding: 1rem;
    background: rgba(255, 215, 0, 0.1);
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(.68,-0.55,.27,1.55);
    font-size: 1.2rem;
    letter-spacing: 1px;
    box-shadow: 0 0 10px #ffd70033;
}

.auth-tab.active {
    background: linear-gradient(90deg, #ffd700 40%, #1bffff 100%);
    color: #232946;
    box-shadow: 0 0 30px #ffd70099, 0 0 10px #1bffff99;
    font-weight: bold;
    transform: scale(1.08);
}

.auth-form {
    display: none;
    animation: fadeIn 0.5s cubic-bezier(.68,-0.55,.27,1.55);
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ffd700;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 0 0 8px #ffd70055;
}

.form-group input {
    width: 100%;
    padding: 0.8rem 1.2rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid #ffd70044;
    border-radius: 8px;
    color: #fff;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(.68,-0.55,.27,1.55);
    box-shadow: 0 0 10px #ffd70022;
}

.form-group input:focus {
    outline: none;
    border-color: #1bffff;
    box-shadow: 0 0 20px #1bffff99, 0 0 10px #ffd70099;
    background: rgba(27,255,255,0.08);
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 38px;
    background: none;
    border: none;
    color: #ffd700;
    font-size: 1.3rem;
    cursor: pointer;
    transition: color 0.2s;
}
.password-toggle:hover {
    color: #1bffff;
}

.auth-submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(90deg, #ffd700 40%, #1bffff 100%);
    border: none;
    border-radius: 8px;
    color: #232946;
    font-weight: bold;
    cursor: pointer;
    font-size: 1.2rem;
    letter-spacing: 1px;
    box-shadow: 0 0 20px #ffd70099, 0 0 10px #1bffff99;
    transition: all 0.3s cubic-bezier(.68,-0.55,.27,1.55);
}

.auth-submit:hover {
    transform: scale(1.04) translateY(-2px) rotate(-1deg);
    box-shadow: 0 8px 30px #ffd700cc, 0 0 20px #1bffffcc;
    background: linear-gradient(90deg, #1bffff 40%, #ffd700 100%);
}

.auth-error {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #ff6b6b;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 0 10px #ff6b6b55;
    animation: shake 0.4s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
    10%, 90% { transform: translateX(-2px); }
    20%, 80% { transform: translateX(4px); }
    30%, 50%, 70% { transform: translateX(-8px); }
    40%, 60% { transform: translateX(8px); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Dashboard Animierter Hintergrund */
.daily-rewards-dashboard-bg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
    background: radial-gradient(circle at 20% 30%, #2e3192 0%, transparent 70%),
                radial-gradient(circle at 80% 70%, #1bffff 0%, transparent 70%),
                linear-gradient(120deg, #1a1a1a 60%, #232946 100%);
    overflow: hidden;
    pointer-events: none;
}

.daily-rewards-dashboard-bg::before,
.daily-rewards-dashboard-bg::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    pointer-events: none;
}
.daily-rewards-dashboard-bg::before {
    width: 400px; height: 400px;
    left: 10vw; top: 10vh;
    background: #ffd700;
    animation: dash-glow1 8s linear infinite alternate;
}
.daily-rewards-dashboard-bg::after {
    width: 300px; height: 300px;
    right: 10vw; bottom: 10vh;
    background: #1bffff;
    animation: dash-glow2 10s linear infinite alternate;
}
@keyframes dash-glow1 {
    0% { filter: blur(60px) brightness(1); }
    100% { filter: blur(100px) brightness(1.3); }
}
@keyframes dash-glow2 {
    0% { filter: blur(60px) brightness(1); }
    100% { filter: blur(120px) brightness(1.2); }
}

.daily-rewards-dashboard-container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 4rem auto 2rem auto;
    padding: 2.5rem 2rem 3rem 2rem;
    background: rgba(30, 30, 60, 0.85);
    border-radius: 30px;
    box-shadow: 0 0 60px 10px #1bffff33, 0 0 0 2px #ffd70044;
    backdrop-filter: blur(6px);
    animation: fadeIn 1.2s cubic-bezier(.68,-0.55,.27,1.55);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #ffd70033;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: #fff;
    text-shadow: 0 0 10px #ffd70055;
}

.dashboard-username {
    display: flex;
    align-items: center;
    font-size: 1.4rem;
    gap: 0.5rem;
    color: #ffd700;
    text-shadow: 0 0 10px #ffd70099;
    animation: dash-username-fade 2s infinite alternate;
}
@keyframes dash-username-fade {
    0% { text-shadow: 0 0 10px #ffd70099; }
    100% { text-shadow: 0 0 30px #ffd700cc; }
}

.dashboard-coins {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1.4rem;
    color: #1bffff;
    font-weight: bold;
    background: rgba(27,255,255,0.08);
    border-radius: 20px;
    padding: 0.5rem 1.2rem;
    box-shadow: 0 0 20px #1bffff55;
    position: relative;
}

.animated-coin {
    font-size: 2.1rem;
    animation: coin-spin 1.2s linear infinite, coin-glow 2s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 10px #ffd700cc);
}
@keyframes coin-spin {
    0% { transform: rotateY(0deg) scale(1); }
    50% { transform: rotateY(180deg) scale(1.2); }
    100% { transform: rotateY(360deg) scale(1); }
}
@keyframes coin-glow {
    0% { filter: drop-shadow(0 0 10px #ffd700cc); }
    100% { filter: drop-shadow(0 0 30px #ffd700ff); }
}

.dashboard-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    justify-content: center;
    margin-top: 2.5rem;
}

.dashboard-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, #232946 60%, #1bffff 100%);
    border-radius: 25px;
    box-shadow: 0 0 30px #1bffff55, 0 0 0 2px #ffd70044, 0 0 60px #ffd70022;
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(.68,-0.55,.27,1.55), box-shadow 0.3s, background 0.3s, filter 0.3s;
    cursor: pointer;
    animation: dash-card-pop 0.8s cubic-bezier(.68,-0.55,.27,1.55);;
}
.dashboard-category-card:hover {
    transform: scale(1.08) rotate(-2deg);
    box-shadow: 0 0 60px #ffd700cc, 0 0 30px #1bffffcc;
    background: linear-gradient(135deg, #ffd700 60%, #1bffff 100%);
    color: #232946;
    filter: brightness(1.1) drop-shadow(0 0 30px #ffd700cc);;
    animation: dash-card-hover-pop 0.4s cubic-bezier(.68,-0.55,.27,1.55);;
}
@keyframes dash-card-pop {
    0% { transform: scale(0.7) rotate(-10deg); opacity: 0; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
@keyframes dash-card-hover-pop {
    0% { transform: scale(1.08) rotate(-2deg); }
    50% { transform: scale(1.15) rotate(2deg); }
    100% { transform: scale(1.08) rotate(-2deg); }
}

.category-icon {
    font-size: 3.2rem;
    margin-bottom: 1.2rem;
    filter: drop-shadow(0 0 20px #ffd700cc) drop-shadow(0 0 10px #1bffff99);
    animation: dash-icon-bounce 1.5s infinite alternate, dash-icon-glow 2s infinite alternate;
}
@keyframes dash-icon-bounce {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-10px) scale(1.15); }
}
@keyframes dash-icon-glow {
    0% { filter: drop-shadow(0 0 20px #ffd700cc) drop-shadow(0 0 10px #1bffff99); }
    100% { filter: drop-shadow(0 0 40px #ffd700ff) drop-shadow(0 0 30px #1bffffcc); }
}

.category-title {
    font-size: 1.25rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-align: center;
    color: inherit;
    text-shadow: 0 0 10px #1bffff55;
}

/* Animierter Dashboard-Titel */
.dashboard-animated-title {
    text-align: center;
    font-size: 2.6rem;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 2.5rem;
    color: #ffd700;
    text-shadow: 0 0 30px #ffd700cc, 0 0 60px #1bffff99, 0 0 10px #fff;
    background: linear-gradient(90deg, #ffd700 30%, #1bffff 70%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: dash-title-glow 2.5s infinite alternate, dash-title-wave 4s infinite linear;
    position: relative;
}
@keyframes dash-title-glow {
    0% { text-shadow: 0 0 30px #ffd700cc, 0 0 60px #1bffff99, 0 0 10px #fff; }
    100% { text-shadow: 0 0 60px #ffd700ff, 0 0 120px #1bffffcc, 0 0 30px #fff; }
}
@keyframes dash-title-wave {
    0% { letter-spacing: 2px; transform: scale(1) skewX(0deg); }
    50% { letter-spacing: 6px; transform: scale(1.05) skewX(2deg); }
    100% { letter-spacing: 2px; transform: scale(1) skewX(0deg); }
}

/* Dashboard: Extra Partikel und Lichtstrahlen */
.daily-rewards-dashboard-bg .dash-particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.7;
    filter: blur(2px);
    animation: dash-particle-move 8s linear infinite;
}
@keyframes dash-particle-move {
    0% { transform: translateY(0) scale(1); opacity: 0.7; }
    50% { opacity: 1; } 
    100% { transform: translateY(-600px) scale(1.2); opacity: 0; }
}

.daily-rewards-dashboard-bg .dash-ray {
    position: absolute;
    width: 4px;
    height: 180px;
    background: linear-gradient(180deg, #ffd700cc 0%, transparent 100%);
    opacity: 0.4;
    left: 50%;
    top: 10%;
    transform: translateX(-50%) rotate(20deg);
    filter: blur(1px);
    animation: dash-ray-move 5s linear infinite;
}
@keyframes dash-ray-move {
    0% { top: 10%; opacity: 0.4; }
    50% { top: 60%; opacity: 0.7; }
    100% { top: 100%; opacity: 0; }
}

.back-to-dashboard-btn {
    position: absolute;
    right: 2.5rem;
    bottom: 2.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 1rem 2.2rem;
    background: linear-gradient(90deg, #ffd700 40%, #1bffff 100%);
    color: #232946;
    font-size: 1.3rem;
    font-weight: bold;
    border-radius: 12px;
    box-shadow: 0 0 20px #ffd70099, 0 0 10px #1bffff99;
    text-decoration: none;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(.68,-0.55,.27,1.55), box-shadow 0.3s, background 0.3s;
    overflow: hidden;
    animation: fadeIn 1.2s cubic-bezier(.68,-0.55,.27,1.55);
}
.back-to-dashboard-btn .back-icon {
    font-size: 1.5rem;
    animation: back-bounce 1.2s infinite alternate;
    filter: drop-shadow(0 0 8px #ffd700cc);
}
@keyframes back-bounce {
    0% { transform: translateX(0) scale(1); }
    100% { transform: translateX(-7px) scale(1.15); }
}
.back-to-dashboard-btn:hover {
    background: linear-gradient(90deg, #1bffff 40%, #ffd700 100%);
    color: #1a1a1a;
    box-shadow: 0 0 40px #ffd700cc, 0 0 30px #1bffffcc;
    transform: scale(1.06) translateY(-2px) rotate(-1deg);
    filter: brightness(1.1) drop-shadow(0 0 20px #ffd700cc);;
}

/* Poker Game Styling */
.poker-container {
    position: relative;
    min-height: 600px;
    padding: 2rem;
    background: #1a1a1a;
    border-radius: 15px;
    overflow: hidden;
    color: #fff;
    max-width: 90%;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.poker-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, #2d6f4b 0%, #1a4f32 100%);
    overflow: hidden;
    z-index: 1;
}

.poker-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90%;
    height: 70%;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    filter: blur(20px);
}

.poker-content {
    position: relative;
    z-index: 3;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.poker-header {
    margin-bottom: 2rem;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.poker-header h1 {
    font-size: 2.5rem;
    margin: 0;
    background: linear-gradient(45deg, #ffd700, #ffa500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glow 1.5s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 5px #ffd700, 0 0 10px #ffd700; }
    to { text-shadow: 0 0 10px #ffa500, 0 0 15px #ffa500; }
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 1.2rem;
}

.username {
    font-weight: bold;
}

.credits-amount {
    color: #ffd700;
}

.poker-game-area {
    width: 100%;
    flex-grow: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

.poker-table {
    position: absolute;
    width: 95%;
    max-width: 1000px;
    height: 85%;
    max-height: 600px;
    background: radial-gradient(ellipse at center, #3c8c5e 0%, #2d6f4b 100%);
    border: 10px solid #8B4513;
    border-radius: 50%; /* Macht den Tisch oval */
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* display: flex; */ /* Entfernt flexbox */
    /* justify-content: center; */
    /* align-items: center; */
    /* flex-direction: column; */
}

.dealer-area {
    position: absolute;
    top: 12%; /* Etwas weiter nach unten */
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #fff;
    z-index: 10;
}

.dealer-name {
    font-size: 1.2rem;
    font-weight: bold;
}

.player-area {
    position: absolute;
    text-align: center;
    color: #fff;
}

.player-area.player-1 {
    bottom: 0%; /* Weiter nach unten verschoben */
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

/* Positionierung für Bot Spieler */
.player-area.player-2 {
    top: 25%; /* Weiter oben */
    right: 15%; /* Weiter nach links */
    transform: translate(0, -50%); /* Nur vertikal zentrieren */
    z-index: 10;
}
.player-area.player-3 {
    top: 75%; /* Weiter unten */
    right: 15%; /* Weiter nach links */
    transform: translate(0, -50%); /* Nur vertikal zentrieren */
    z-index: 10;
}
.player-area.player-4 {
    top: 75%; /* Weiter unten */
    left: 15%; /* Weiter nach rechts */
    transform: translate(0, -50%); /* Nur vertikal zentrieren */
    z-index: 10;
}
.player-area.player-5 {
    top: 25%; /* Weiter oben */
    left: 15%; /* Weiter nach rechts */
    transform: translate(0, -50%); /* Nur vertikal zentrieren */
    z-index: 10;
}

.player-name {
    font-size: 1rem;
    margin-bottom: 5px;
}

.player-cards,
.player-bet,
.player-stack {
    border: 1px dashed rgba(255, 255, 255, 0.5);
    padding: 5px;
    margin-bottom: 5px;
    min-width: 80px;
}

.player-cards {
    display: flex; /* Karten nebeneinander anordnen */
    gap: 5px; /* Abstand zwischen den Karten */
    justify-content: center; /* Karten horizontal zentrieren */
    align-items: center; /* Karten vertikal zentrieren */
    min-height: 80px; /* Ausreichend Höhe für zwei Karten übereinander (falls nötig) */
}

.player-stack {
    min-width: 80px; /* Mindestbreite für Platzhalter */
    border: none;
    color: #ffd700;
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 5px;
}

.dealer-cards {
    /* Styling für Dealer Karten Container */
    display: flex;
    gap: 5px;
    justify-content: center;
    align-items: center;
    min-height: 80px;
    margin-top: 10px; /* Abstand vom Dealer Namen */
    border: 1px dashed rgba(255, 255, 255, 0.5); /* Platzhalter Border */
    padding: 5px;
}

.community-cards {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px dashed rgba(255, 255, 255, 0.5);
    padding: 10px;
    min-width: 200px; /* Mindestbreite für Platzhalter */
    min-height: 80px; /* Mindesthöhe für Platzhalter */
    display: flex; /* Karten nebeneinander anordnen */
    gap: 10px; /* Abstand zwischen Gemeinschaftskarten */
    justify-content: center;
    align-items: center;
    z-index: 5; /* Unter Spielern und Dealer */
}

.pot {
    position: absolute;
    top: 8%; /* Nach ganz oben über den Dealer verschoben */
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 1.5rem;
    font-weight: bold;
    z-index: 5;
}

.pot span {
    color: #ffd700;
}

.controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    width: 80%;
    max-width: 500px;
}

.controls button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.fold-button {
    background-color: #e74c3c;
    color: #fff;
}

.fold-button:hover {
    background-color: #c0392b;
}

.check-button {
    background-color: #3498db;
    color: #fff;
}

.check-button:hover {
    background-color: #2980b9;
}

.bet-button {
    background-color: #2ecc71;
    color: #fff;
}

.bet-button:hover {
    background-color: #27ae60;
}

.bet-amount {
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    width: 100px;
    text-align: center;
}

/* Dealer Styling */
.dealer-comic {
    width: 100px;
    height: 100px;
    background: url('../images/dealer-placeholder.png') no-repeat center center;
    background-size: contain;
    margin: 0 auto 10px auto;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.3));
}

/* Animierter Poker Hintergrund */
.poker-background::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    background: radial-gradient(circle, rgba(17, 107, 71, 0.2) 0%, transparent 60%);
    animation: poker-background-pulse 15s infinite ease-in-out;
    z-index: 1;
}

@keyframes poker-background-pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

/* Weitere Animationen und Effekte werden später hinzugefügt */

/* Slot Machine Styles */
.slot-machine-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(45deg, #1a1a1a, #2a2a2a);
}

.slot-machine-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/slot-bg.jpg') center/cover;
    opacity: 0.2;
    animation: backgroundPulse 10s infinite alternate;
}

@keyframes backgroundPulse {
    0% { opacity: 0.1; }
    100% { opacity: 0.3; }
}

.slot-machine-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 800px;
    padding: 2rem;
    text-align: center;
}

.slot-machine-header {
    margin-bottom: 2rem;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.slot-machine-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ffd700;
}

.user-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 1.2rem;
}

.slot-machine-area {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.slot-machine {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.reel-container {
    display: flex;
    gap: 1rem;
    background: #000;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: inset 0 0 10px rgba(255, 215, 0, 0.5);
}

.reel {
    width: 100px;
    height: 100px;
    background: #fff;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    overflow: hidden;
    position: relative;
}

.reel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 50%, rgba(0,0,0,0.5) 100%);
    pointer-events: none;
}

.win-display {
    font-size: 2rem;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    min-height: 3rem;
}

.controls {
    margin-top: 1rem;
}

#spin-button {
    background: linear-gradient(45deg, #ffd700, #ffa500);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    color: #000;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

#spin-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
}

#spin-button:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Symbol Styles */
.slot-symbol {
    font-size: 3rem;
    line-height: 1;
}

.symbol-7 { color: #ff0000; }
.symbol-bar { color: #ffd700; }
.symbol-cherry { color: #ff69b4; }
.symbol-lemon { color: #ffff00; }
.symbol-orange { color: #ffa500; }
.symbol-plum { color: #800080; }
.symbol-bell { color: #ffd700; }
.symbol-grape { color: #800080; }
.symbol-watermelon { color: #00ff00; }

/* Reel Animation */
@keyframes spin {
    0% { transform: translateY(0); }
    100% { transform: translateY(-1000%); }
}

.spinning {
    animation: spin 0.5s linear infinite;
}

/* Win Animation */
@keyframes winPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.win-animation {
    animation: winPulse 0.5s ease infinite;
}