/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0a1f12 0%, #163322 100%);
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(21, 83, 45, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(31, 97, 61, 0.3) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* ===== EPISCHES INTRO ===== */
.intro-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: radial-gradient(circle at 50% 30%, #1a3a2a, #0a1f12);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
}

.intro-content {
    text-align: center;
    padding: 20px;
}

.intro-icon {
    font-size: clamp(4rem, 15vw, 8rem);
    margin-bottom: 20px;
    filter: drop-shadow(0 0 30px #ffd700);
    animation: pulse 2s infinite;
}

.intro-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 8vw, 4.5rem);
    color: #f8e473;
    text-shadow: 
        0 0 20px rgba(248, 228, 115, 0.9),
        0 0 40px rgba(248, 228, 115, 0.5),
        0 0 80px rgba(212, 175, 55, 0.4);
    letter-spacing: 6px;
    margin-bottom: 20px;
}

.intro-sub,
.intro-dev {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1rem, 3vw, 1.8rem);
    color: #d4af37;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.8);
    margin-bottom: 10px;
}

.intro-dev strong {
    color: #fff;
    font-weight: 900;
}

.intro-spinner {
    margin: 30px auto 0;
    width: 50px;
    height: 50px;
    border: 4px solid rgba(212, 175, 55, 0.2);
    border-top-color: #f8e473;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ===== GAME LAYOUT ===== */
.game-layout {
    display: flex;
    gap: 20px;
    padding: 20px;
    max-width: 1920px;
    margin: 0 auto;
    height: calc(100vh - 40px);
    height: 100dvh;
}

/* ===== LEFT: POKER TABLE ===== */
.table-section {
    flex: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* GAME TITLE OVERLAY */
.game-title-overlay {
    position: absolute;
    top: 3%;
    left: 3%;
    z-index: 100;
}

.main-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    color: #f8e473;
    text-shadow: 
        0 0 20px rgba(248, 228, 115, 0.8),
        0 0 40px rgba(248, 228, 115, 0.4);
    margin-bottom: 5px;
    letter-spacing: 3px;
}

.main-title .poker-text {
    color: #4a90e2;
    text-shadow: 
        0 0 20px rgba(74, 144, 226, 0.8),
        0 0 40px rgba(74, 144, 226, 0.4);
}

.sub-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(0.8rem, 2vw, 1.5rem);
    color: #d4af37;
    letter-spacing: 2px;
    background: rgba(0, 0, 0, 0.6);
    padding: 5px 15px;
    border-radius: 10px;
    display: inline-block;
}

/* PHASE DISPLAY */
.phase-display {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(0.7rem, 1.8vw, 1.2rem);
    color: #f8e473;
    background: rgba(0, 0, 0, 0.85);
    padding: 6px 20px;
    border-radius: 20px;
    border: 2px solid #4a90e2;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: absolute;
    top: 12%;
    left: 3%;
    z-index: 101;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.phase-display i {
    color: #4a90e2;
    font-size: 1em;
}

/* ===== POKER TABLE (Grid-Layout) ===== */
.poker-table-wrapper {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, #1a472a 0%, #0d2d1c 100%);
    border-radius: 25px;
    border: 15px solid #8B4513;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.8),
        inset 0 0 100px rgba(0, 0, 0, 0.4),
        0 0 0 5px rgba(139, 69, 19, 0.5);
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr auto;
    padding: 20px;
}

.poker-table-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(45deg, rgba(139, 69, 19, 0.1) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(139, 69, 19, 0.1) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(139, 69, 19, 0.1) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(139, 69, 19, 0.1) 75%);
    background-size: 20px 20px;
    pointer-events: none;
    border-radius: 10px;
    z-index: 0;
}

.poker-table-wrapper::after {
    content: '';
    position: absolute;
    top: 30px;
    left: 30px;
    right: 30px;
    bottom: 30px;
    background: 
        radial-gradient(circle at 50% 50%, #1e4620 0%, #2d7d32 100%),
        repeating-linear-gradient(0deg, 
            rgba(0, 100, 0, 0.1) 0px, 
            rgba(0, 100, 0, 0.1) 1px, 
            transparent 1px, 
            transparent 4px);
    border-radius: 15px;
    box-shadow: 
        inset 0 0 50px rgba(0, 0, 0, 0.5),
        inset 0 0 0 2px rgba(0, 255, 0, 0.1);
    z-index: 0;
}

.dealer-area,
.community-area,
.player-area {
    position: relative;
    z-index: 1;
}

/* DEALER AREA – rechts oben */
.dealer-area {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-self: end;
    gap: 10px;
}

.dealer-tag {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.85);
    padding: 10px 20px;
    border-radius: 25px;
    border: 3px solid #4a90e2;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.6),
        0 0 0 3px rgba(74, 144, 226, 0.3);
}

.dealer-avatar {
    font-size: clamp(2rem, 5vw, 3.5rem);
    transition: transform 0.3s;
}

.dealer-name {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.8rem);
    font-weight: 900;
    color: #4a90e2;
    text-shadow: 0 0 15px rgba(74, 144, 226, 0.9);
    letter-spacing: 1.5px;
}

.dealer-cards {
    display: flex;
    gap: 10px;
}

/* COMMUNITY AREA – Mitte */
.community-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.pot-display {
    background: rgba(0, 0, 0, 0.85);
    padding: 10px 30px;
    border-radius: 50px;
    border: 3px solid #d4af37;
    text-align: center;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.7),
        0 0 0 6px rgba(212, 175, 55, 0.3),
        inset 0 0 25px rgba(212, 175, 55, 0.2);
}

.pot-label {
    font-size: clamp(0.7rem, 1.5vw, 1.1rem);
    color: #aaf;
    margin-bottom: 5px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.pot-amount {
    font-size: clamp(1.2rem, 3vw, 2.2rem);
    font-weight: bold;
    color: #4caf50;
    text-shadow: 0 0 15px rgba(76, 175, 80, 0.9);
    font-family: 'Orbitron', sans-serif;
}

.community-label-above {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(0.8rem, 1.8vw, 1.4rem);
    color: #f8e473;
    text-shadow: 0 0 15px rgba(248, 228, 115, 0.8);
    letter-spacing: 2px;
    background: rgba(0, 0, 0, 0.7);
    padding: 6px 20px;
    border-radius: 25px;
    border: 2px solid rgba(248, 228, 115, 0.4);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.community-slots {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.card-slot {
    position: relative;
    width: clamp(55px, 10vw, 90px);
    height: clamp(75px, 13vw, 125px);
}

.slot-shadow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    box-shadow: 
        inset 0 0 25px rgba(0, 0, 0, 0.7),
        0 0 0 2px rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.2);
}

/* PLAYER AREA – links unten */
.player-area {
    display: flex;
    align-items: center;
    justify-self: start;
    gap: 20px;
}

.player-info-left {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.player-tag {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.85);
    padding: 10px 20px;
    border-radius: 25px;
    border: 3px solid #d4af37;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.6),
        0 0 0 3px rgba(212, 175, 55, 0.3);
    position: relative;
}

.player-avatar {
    font-size: clamp(2rem, 5vw, 3.5rem);
    transition: all 0.3s ease;
}

.player-name {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.6rem);
    font-weight: 900;
    color: #d4af37;
    text-shadow: 0 0 12px rgba(212, 175, 55, 0.9);
    letter-spacing: 1.5px;
}

.player-streak {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #ff5722, #e64a19);
    padding: 6px 10px;
    border-radius: 20px;
    border: 2px solid #ff9800;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(255, 87, 34, 0.4);
}

.player-streak i {
    color: #ffd700;
    font-size: 0.8rem;
}

.player-streak span {
    color: white;
    font-size: 0.9rem;
    font-family: 'Orbitron', sans-serif;
}

.player-cards-right {
    display: flex;
    gap: 10px;
}

/* ===== KARTEN (skalieren dynamisch) ===== */
.card {
    width: clamp(55px, 8vw, 75px);
    height: clamp(75px, 11vw, 105px);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.2rem, 2.5vw, 2.2rem);
    font-weight: bold;
    font-family: 'Cinzel', serif;
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.6),
        inset 0 0 15px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8);
}

.card.back {
    background: linear-gradient(145deg, #8b0000, #b22222, #8b0000);
    color: rgba(255, 255, 255, 0.9);
    border: 4px solid #660000;
    font-size: clamp(1.5rem, 4vw, 3rem);
}

.card.back::before {
    content: '♠♥♦♣';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    opacity: 0.15;
    color: rgba(255, 255, 255, 0.8);
}

.card.back::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.5);
}

.card:not(.back) {
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
    color: #000;
    border: 4px solid #222;
}

.card .card-suit.spades { color: #000; }
.card .card-suit.hearts { color: #f44336; }
.card .card-suit.diamonds { color: #2196f3; }
.card .card-suit.clubs { color: #4caf50; }

.card.player:not(.back) {
    border-color: #d4af37;
    box-shadow: 
        0 8px 20px rgba(212, 175, 55, 0.4),
        inset 0 0 15px rgba(212, 175, 55, 0.2);
}

.card.dealer:not(.back) {
    border-color: #4a90e2;
    box-shadow: 
        0 8px 20px rgba(74, 144, 226, 0.4),
        inset 0 0 15px rgba(74, 144, 226, 0.2);
}

.card.community:not(.back) {
    border-color: #f8e473;
    box-shadow: 
        0 8px 20px rgba(248, 228, 115, 0.4),
        inset 0 0 15px rgba(248, 228, 115, 0.2);
}

/* ===== 3D AVATARE ===== */
.avatar-3d {
    width: clamp(50px, 10vw, 80px);
    height: clamp(50px, 10vw, 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 3px solid #fff;
    position: relative;
    font-size: clamp(2rem, 5vw, 3.5rem);
    transition: all 0.3s;
}

.avatar-3d::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.8), transparent 70%);
    opacity: 0.3;
    z-index: -1;
}

.player-3d {
    background: linear-gradient(135deg, #d4af37, #b8860b, #ffd700);
    box-shadow: 
        0 10px 30px rgba(212, 175, 55, 0.6),
        inset 0 0 20px rgba(255, 255, 255, 0.3),
        0 0 0 4px rgba(255, 255, 255, 0.2);
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.8));
}

.dealer-3d {
    background: linear-gradient(135deg, #4a90e2, #357ae8, #1e5bb8);
    box-shadow: 
        0 10px 30px rgba(74, 144, 226, 0.6),
        inset 0 0 20px rgba(255, 255, 255, 0.3),
        0 0 0 4px rgba(255, 255, 255, 0.2);
    filter: drop-shadow(0 0 10px rgba(74, 144, 226, 0.8));
}

.avatar-3d:hover {
    transform: scale(1.1) rotateY(15deg);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.5),
        inset 0 0 25px rgba(255, 255, 255, 0.4);
}

.avatar-horseman {
    background: linear-gradient(135deg, #000000, #333333, #8B4513);
    box-shadow: 
        0 10px 30px rgba(139, 69, 19, 0.7),
        inset 0 0 20px rgba(255, 140, 0, 0.4),
        0 0 0 4px rgba(255, 140, 0, 0.3);
    filter: drop-shadow(0 0 15px rgba(255, 140, 0, 0.6));
    position: relative;
}

.avatar-horseman::after {
    content: '🎃';
    position: absolute;
    font-size: 3rem;
    text-shadow: 
        0 0 20px #ff8c00,
        0 0 40px #ff4500;
    animation: glow 2s infinite alternate;
}

.avatar-rich {
    background: linear-gradient(135deg, #ffd700, #ffed4e, #ffdf00);
    box-shadow: 
        0 10px 30px rgba(255, 215, 0, 0.7),
        inset 0 0 20px rgba(255, 255, 255, 0.5),
        0 0 0 4px rgba(255, 255, 255, 0.3);
    filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.9));
}

.avatar-knight {
    background: linear-gradient(135deg, #c0c0c0, #a9a9a9, #808080);
    box-shadow: 
        0 10px 30px rgba(192, 192, 192, 0.6),
        inset 0 0 20px rgba(255, 255, 255, 0.4),
        0 0 0 4px rgba(255, 255, 255, 0.2);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.7));
}

.avatar-ninja {
    background: linear-gradient(135deg, #2c3e50, #34495e, #2c3e50);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.7),
        inset 0 0 20px rgba(255, 255, 255, 0.2),
        0 0 0 4px rgba(255, 255, 255, 0.1);
    filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.8));
}

.avatar-chill {
    background: linear-gradient(135deg, #4a90e2, #5fa3ff, #4a90e2);
    box-shadow: 
        0 10px 30px rgba(74, 144, 226, 0.6),
        inset 0 0 20px rgba(255, 255, 255, 0.4),
        0 0 0 4px rgba(255, 255, 255, 0.2);
    filter: drop-shadow(0 0 10px rgba(173, 216, 230, 0.8));
}

.avatar-bodyguard {
    background: linear-gradient(135deg, #8b4513, #a0522d, #8b4513);
    box-shadow: 
        0 10px 30px rgba(139, 69, 19, 0.7),
        inset 0 0 20px rgba(255, 255, 255, 0.3),
        0 0 0 4px rgba(255, 255, 255, 0.2);
    filter: drop-shadow(0 0 10px rgba(160, 82, 45, 0.8));
}

.avatar-none {
    background: linear-gradient(135deg, #9b59b6, #8e44ad, #9b59b6);
    box-shadow: 
        0 10px 30px rgba(155, 89, 182, 0.6),
        inset 0 0 20px rgba(255, 255, 255, 0.3),
        0 0 0 4px rgba(255, 255, 255, 0.2);
    filter: drop-shadow(0 0 10px rgba(155, 89, 182, 0.8));
}

@keyframes glow {
    from { filter: drop-shadow(0 0 10px #ff8c00); }
    to   { filter: drop-shadow(0 0 20px #ff4500); }
}

/* ===== RIGHT: VERTICAL CONTROL PANEL ===== */
.control-section {
    flex: 1.5;
    background: rgba(10, 25, 15, 0.95);
    border-radius: 25px;
    border: 3px solid rgba(212, 175, 55, 0.3);
    padding: clamp(10px, 2vw, 25px);
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 2vw, 20px);
    box-shadow: 
        inset 0 0 40px rgba(0, 0, 0, 0.6),
        0 10px 50px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    width: 100%;
    max-height: 100%;
    min-width: 0;
}

/* BALANCE PANEL */
.balance-panel {
    background: linear-gradient(135deg, rgba(26, 35, 50, 0.9), rgba(15, 25, 40, 0.9));
    border-radius: 15px;
    padding: 15px;
    border: 2px solid rgba(212, 175, 55, 0.4);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.balance-display {
    display: flex;
    align-items: center;
    gap: 15px;
}

.balance-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.9));
}

.balance-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.balance-label {
    font-size: 1rem;
    color: #aaf;
    letter-spacing: 1px;
    font-weight: 500;
}

.balance-amount {
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    font-weight: bold;
    color: #4caf50;
    text-shadow: 0 0 15px rgba(76, 175, 80, 0.8);
    font-family: 'Orbitron', sans-serif;
}

.balance-controls {
    display: flex;
    gap: 8px;
}

.balance-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-buyin  { background: linear-gradient(135deg, #4caf50, #388e3c); }
.btn-cashout { background: linear-gradient(135deg, #f44336, #d32f2f); }

.balance-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* START PANEL */
.start-panel {
    background: rgba(0, 20, 10, 0.8);
    border-radius: 15px;
    padding: 20px;
    border: 3px solid rgba(74, 144, 226, 0.4);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.start-panel .panel-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    color: #4a90e2;
    font-weight: bold;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(74, 144, 226, 0.3);
}

.start-panel .panel-title i { font-size: 1.7rem; }

.start-info {
    text-align: center;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.start-text { font-size: 1.1rem; color: #f8e473; margin-bottom: 8px; font-weight: 600; }
.start-note { font-size: 0.85rem; color: #aaa; font-style: italic; }

.start-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.start-amount {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 25px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #4a90e2;
}

.amount-label { font-size: 0.9rem; color: #aaa; margin-bottom: 3px; }
.amount-value { font-size: 1.7rem; font-weight: bold; color: #4caf50; font-family: 'Orbitron', sans-serif; }

.start-btn {
    padding: 16px 30px;
    background: linear-gradient(135deg, #4caf50, #388e3c);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.3rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

.start-btn:hover {
    background: linear-gradient(135deg, #388e3c, #2e7d32);
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(76, 175, 80, 0.5);
}

/* ACTION PANEL */
.bet-control-panel {
    background: rgba(0, 20, 10, 0.8);
    border-radius: 15px;
    padding: 20px;
    border: 3px solid rgba(74, 144, 226, 0.4);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bet-control-panel .panel-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    color: #4a90e2;
    font-weight: bold;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(74, 144, 226, 0.3);
}

.bet-control-panel .panel-title i { font-size: 1.7rem; }

.action-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 12px;
    height: 240px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 15px 5px;
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    min-height: 105px;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.7s;
}

.action-btn:hover::before { left: 100%; }
.action-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.btn-icon   { font-size: 2.5rem; font-weight: bold; }
.btn-label  { font-size: 1.2rem; letter-spacing: 1px; }

.btn-check-call { background: linear-gradient(135deg, #4caf50, #388e3c); grid-column: 1; grid-row: 1; }
.btn-bet-raise  { background: linear-gradient(135deg, #2196f3, #1976d2); grid-column: 2; grid-row: 1; }
.btn-fold       { background: linear-gradient(135deg, #f44336, #d32f2f); grid-column: 1; grid-row: 2; }
.btn-allin      { background: linear-gradient(135deg, #ff5722, #e64a19); grid-column: 2; grid-row: 2; }

/* BET INPUT PANEL */
.bet-input-panel {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.input-label {
    font-size: 1rem;
    color: #4a90e2;
    margin-bottom: 8px;
    font-weight: bold;
    text-align: center;
}

.input-box {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 8px;
    padding: 5px 15px;
    border: 3px solid #4a90e2;
    box-shadow: 
        0 4px 15px rgba(74, 144, 226, 0.3),
        inset 0 0 10px rgba(0, 0, 0, 0.1);
}

.bet-input {
    flex: 1;
    border: none;
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
    text-align: center;
    padding: 12px 0;
    background: transparent;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
}

.bet-input:focus { outline: none; }

.currency {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
    margin-left: 8px;
    font-family: 'Orbitron', sans-serif;
}

.quick-bets {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.quick-bet {
    flex: 1;
    min-width: 70px;
    padding: 10px;
    background: linear-gradient(135deg, #4a90e2, #357ae8);
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Orbitron', sans-serif;
}

.quick-bet:hover {
    background: linear-gradient(135deg, #357ae8, #2d6ac7);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.confirm-bet-btn {
    padding: 12px;
    background: linear-gradient(135deg, #4caf50, #388e3c);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.confirm-bet-btn:hover {
    background: linear-gradient(135deg, #388e3c, #2e7d32);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.4);
}

/* BOTTOM CONTROL BAR */
.bottom-control-bar {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.bottom-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.bottom-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: #d4af37;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn-ranking { background: linear-gradient(135deg, #795548, #5d4037); border: none; }
.btn-stats   { background: linear-gradient(135deg, #607d8b, #455a64); border: none; }

/* ===== LOG PANEL ===== */
.log-panel {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 12px;
    border: 2px solid rgba(74, 144, 226, 0.4);
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 180px;
    max-height: 400px;
    transition: min-height 0.3s ease;
}

.log-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background: rgba(0, 20, 10, 0.9);
    border-bottom: 2px solid rgba(74, 144, 226, 0.3);
}

.log-header h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #f8e473;
    font-size: 1rem;
    letter-spacing: 1px;
    margin: 0;
    flex: 1;
}

.log-header i { color: #4a90e2; font-size: 1.1rem; }

.log-controls { display: flex; align-items: center; gap: 8px; }

.log-expand-btn {
    background: rgba(74, 144, 226, 0.3);
    border: 2px solid #4a90e2;
    color: #aaf;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.log-expand-btn:hover { background: rgba(74, 144, 226, 0.5); transform: scale(1.1); }
.log-expand-btn.active i { transform: rotate(180deg); }
.log-expand-btn i { transition: transform 0.3s ease; }

.log-clear {
    background: rgba(244, 67, 54, 0.3);
    border: 2px solid #f44336;
    color: #ff8a80;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.log-clear:hover { background: rgba(244, 67, 54, 0.5); transform: scale(1.1); }

/* LOG SIZE SLIDER */
.log-slider-container {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.log-slider {
    flex: 1;
    -webkit-appearance: none;
    height: 6px;
    background: linear-gradient(to right, #4a90e2, #f8e473);
    border-radius: 3px;
    outline: none;
}

.log-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px; height: 18px;
    background: #f8e473;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid #fff;
}

.log-slider::-moz-range-thumb {
    width: 18px; height: 18px;
    background: #f8e473;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid #fff;
}

.log-size-label {
    color: #f8e473;
    font-size: 0.9rem;
    font-weight: bold;
    min-width: 50px;
    text-align: right;
    font-family: 'Orbitron', sans-serif;
}

.log-content {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.85rem;
    line-height: 1.4;
}

.log-entry {
    padding: 8px 10px;
    border-radius: 6px;
    border-left: 4px solid;
    background: rgba(255, 255, 255, 0.05);
    animation: fadeIn 0.3s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    min-height: 58px;
    max-height: 72px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(-10px); }
    to   { opacity: 1; transform: translateX(0); }
}

.log-entry.system { border-left-color: #d4af37; color: #f8e473; }
.log-entry.dealer { border-left-color: #4a90e2; color: #aaf; }
.log-entry.player { border-left-color: #4caf50; color: #a5d6a7; }
.log-entry.info   { border-left-color: #795548; color: #d7ccc8; }
.log-entry.warning{ border-left-color: #ff9800; color: #ffcc80; }
.log-entry.error  { border-left-color: #f44336; color: #ff8a80; }

/* ===== MODALS ===== */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active { display: flex; }

.modal-content {
    background: linear-gradient(135deg, #1a0e4a, #2d1b7a);
    padding: 25px;
    border-radius: 20px;
    border: 3px solid #d4af37;
    max-width: 800px;
    width: 100%;
    box-shadow: 
        0 0 50px rgba(212, 175, 55, 0.6),
        inset 0 0 30px rgba(0, 0, 0, 0.4);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content.large-modal { max-width: 900px; }
.modal-content.bank-modal  { max-width: 600px; max-height: 80vh; }

.modal-content h3 {
    color: #f8e473;
    margin-bottom: 20px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    text-align: center;
}

/* Bank Modal (unverändert) */
.bank-info {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
}

.current-balance {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 15px;
}

.current-balance span:first-child { color: #aaa; font-size: 1rem; }
.balance-value {
    font-size: 1.6rem;
    font-weight: bold;
    color: #4caf50;
    font-family: 'Orbitron', sans-serif;
}

.bank-input-section { margin-bottom: 20px; }
.bank-input-label { color: #4a90e2; margin-bottom: 8px; font-size: 1rem; font-weight: bold; }

.bank-input-box {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 8px;
    padding: 8px 15px;
    border: 3px solid #4a90e2;
    margin-bottom: 15px;
}

.bank-input {
    flex: 1;
    border: none;
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
    text-align: center;
    padding: 8px 0;
    background: transparent;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
}

.bank-input:focus { outline: none; }

.bank-currency {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
    margin-left: 8px;
    font-family: 'Orbitron', sans-serif;
}

/* Calculator (unverändert) */
.calculator {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 15px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.calculator-display {
    background: #222;
    color: #4caf50;
    font-size: 1.6rem;
    font-family: 'Orbitron', sans-serif;
    padding: 12px;
    border-radius: 6px;
    text-align: right;
    margin-bottom: 12px;
    border: 2px solid #4a90e2;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.calculator-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.calc-btn {
    background: linear-gradient(135deg, #4a90e2, #357ae8);
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    padding: 12px 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Orbitron', sans-serif;
}

.calc-btn:hover { background: linear-gradient(135deg, #357ae8, #2d6ac7); transform: translateY(-2px); }
.calc-btn[data-action="clear"]    { background: linear-gradient(135deg, #f44336, #d32f2f); }
.calc-btn[data-action="backspace"] { background: linear-gradient(135deg, #ff9800, #f57c00); }
.calc-operator { background: linear-gradient(135deg, #795548, #5d4037); font-size: 1.2rem; }
.calc-equals   { background: linear-gradient(135deg, #4caf50, #388e3c); font-size: 1.2rem; }

.quick-amounts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}

.quick-amount-btn {
    background: linear-gradient(135deg, #795548, #5d4037);
    border: none;
    border-radius: 6px;
    color: white;
    padding: 10px 5px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.quick-amount-btn:hover { background: linear-gradient(135deg, #5d4037, #4e342e); transform: translateY(-2px); }

.bank-result {
    background: rgba(0, 0, 0, 0.5);
    padding: 12px;
    border-radius: 8px;
    border: 2px solid #d4af37;
    text-align: center;
}

.result-label { color: #aaa; margin-bottom: 8px; font-size: 0.9rem; }
.result-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #4caf50;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 15px rgba(76, 175, 80, 0.8);
}

.bank-controls { display: flex; gap: 12px; }

.bank-cancel-btn {
    flex: 1;
    padding: 12px;
    background: linear-gradient(135deg, #f44336, #d32f2f);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.bank-confirm-btn {
    flex: 1;
    padding: 12px;
    background: linear-gradient(135deg, #4caf50, #388e3c);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.bank-cancel-btn:hover,
.bank-confirm-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); }

/* ===== STATS & SETTINGS MODAL ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 25px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid rgba(212, 175, 55, 0.2);
    transition: all 0.3s;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    border-color: #d4af37;
}

.stat-icon {
    font-size: 2rem;
    color: #f8e473;
    margin-bottom: 8px;
}

.stat-title {
    font-size: 0.85rem;
    color: #aaa;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4caf50;
    font-family: 'Orbitron', sans-serif;
}

/* ===== HAND RANKING LIST ===== */
.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 5px solid;
    transition: all 0.3s;
}

.ranking-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.ranking-item.royal { border-left-color: #ffd700; }
.ranking-item.straight-flush { border-left-color: #c0c0c0; }
.ranking-item.four { border-left-color: #cd7f32; }
.ranking-item.full-house { border-left-color: #9b59b6; }
.ranking-item.flush { border-left-color: #3498db; }
.ranking-item.straight { border-left-color: #2ecc71; }
.ranking-item.three { border-left-color: #e74c3c; }
.ranking-item.two-pair { border-left-color: #e67e22; }
.ranking-item.pair { border-left-color: #1abc9c; }
.ranking-item.high-card { border-left-color: #95a5a6; }

.rank-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: bold;
    color: #f8e473;
    min-width: 35px;
}

.rank-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: white;
    flex: 1;
}

.rank-cards {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: #aaf;
    min-width: 150px;
}

.rank-desc {
    font-size: 0.85rem;
    color: #aaa;
    font-style: italic;
    min-width: 180px;
}

/* ===== TUTORIAL, SKIN, SOUND ===== */
.tutorial-section {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.tutorial-section p {
    color: #aaa;
    margin-bottom: 15px;
    text-align: center;
}

.tutorial-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #4caf50, #388e3c);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
}

.tutorial-btn:hover {
    background: linear-gradient(135deg, #388e3c, #2e7d32);
    transform: translateY(-3px);
}

.tutorial-steps {
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 8px;
}

.tutorial-step {
    display: none;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    margin-bottom: 10px;
}

.tutorial-step.active {
    display: block;
}

.tutorial-step p {
    color: #f8e473;
    text-align: left;
    margin: 0;
}

.tutorial-next-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #4a90e2, #357ae8);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.tutorial-next-btn:hover {
    background: linear-gradient(135deg, #357ae8, #2d6ac7);
    transform: translateY(-3px);
}

.skin-selection {
    margin-bottom: 20px;
}

.skin-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 15px;
}

.skin-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid rgba(212, 175, 55, 0.2);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.skin-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.skin-item.active {
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.1);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.skin-avatar {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid #fff;
    font-size: 2.5rem;
    margin-bottom: 3px;
}

.skin-name {
    font-size: 0.9rem;
    font-weight: bold;
    color: #f8e473;
}

.skin-desc {
    font-size: 0.75rem;
    color: #aaa;
}

.sound-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 12px;
}

.volume-control label {
    color: #aaa;
    min-width: 100px;
}

.volume-slider {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    background: linear-gradient(to right, #4a90e2, #f8e473);
    border-radius: 3px;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #f8e473;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid #fff;
}

#volumeValue {
    color: #f8e473;
    font-weight: bold;
    min-width: 40px;
    text-align: right;
}

.sound-toggle-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #795548, #5d4037);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.sound-toggle-btn:hover {
    background: linear-gradient(135deg, #5d4037, #4e342e);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* ENTWICKLER / CREDITS */
.dev-credits {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 10px;
    border: 2px solid rgba(212, 175, 55, 0.4);
    text-align: center;
    margin-bottom: 20px;
}

.dev-credits p {
    color: #f8e473;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.dev-link {
    display: inline-block;
    color: #4a90e2;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: 0.3s;
}

.dev-link:hover {
    border-bottom-color: #4a90e2;
    text-shadow: 0 0 10px rgba(74, 144, 226, 0.7);
}

.modal-close {
    margin-top: 15px;
    padding: 12px 30px;
    background: linear-gradient(135deg, #f44336, #d32f2f);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s;
    letter-spacing: 1px;
}

.modal-close:hover {
    background: linear-gradient(135deg, #d32f2f, #c62828);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* SCROLLBAR */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #d4af37, #f8e473);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #f8e473, #d4af37);
}

/* ===== RESPONSIVE FÜR HANDYS (unter 900px) ===== */
@media (max-width: 900px) {
    html, body {
        overflow-y: auto;
    }

    #gameContainer {
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }

    .game-layout {
        flex-direction: column;
        height: auto;
        min-height: 100dvh;
        padding: 10px;
        gap: 10px;
    }

    .table-section {
        width: 100%;
        height: 50vh;
        flex-shrink: 0;
    }

    /* Tisch-Innenabstand verkleinern, damit Karten nicht überlappen */
    .poker-table-wrapper {
        padding: 10px;
    }

    /* Karten etwas schmaler machen */
    .card {
        width: clamp(45px, 8vw, 65px);
        height: clamp(65px, 11vw, 90px);
        font-size: clamp(1rem, 2vw, 1.8rem);
    }

    .card-slot {
        width: clamp(45px, 10vw, 75px);
        height: clamp(65px, 13vw, 105px);
    }

    .community-slots {
        gap: 6px;
    }

    .dealer-cards,
    .player-cards-right {
        gap: 6px;
    }

    /* Phasenschild weiter nach unten, damit es nicht den Titel überdeckt */
    .phase-display {
        top: 20%;
    }

    .control-section {
        width: 100%;
        height: auto;
        max-height: none;
        overflow-y: visible;
        padding: 15px;
        flex: 1 1 auto;
    }

    /* größere Buttons / Inputs auf Touchscreens */
    .action-btn {
        min-height: 80px;
        padding: 12px 5px;
    }

    .btn-icon {
        font-size: 2rem;
    }

    .btn-label {
        font-size: 0.9rem;
    }

    .bet-input {
        font-size: 1.4rem;
    }

    .quick-bet {
        font-size: 0.8rem;
        padding: 8px;
    }
}

/* Keyframes für Intro-Spinner */
@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}