/* ── GENERAL & PRESETS ──────────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    overscroll-behavior-y: none !important;
    overscroll-behavior-x: none !important;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    min-height: 100dvh;
    font-family: 'Poppins', sans-serif;
    color: #fcf9f2;
    overflow: hidden;
}

:root {
    --bg-green-felt: radial-gradient(circle at center, #1b4d22 0%, #08210e 100%);
    --bg-dark-panel: rgba(19, 10, 31, 0.88);
    /* Deep violet-tinted black */
    --panel-border: rgba(217, 0, 255, 0.25);
    /* Purple border tint */
    --accent-gold: #d900ff;
    /* Purple accent to inherit where gold was used */
    --accent-purple-deep: #7209b7;
    /* Deep purple */
    --accent-red: #e05b5b;
    --accent-green: #2ecc71;
    --text-muted: #abb1a9;
    --font-heading: 'Russo One', sans-serif;
}

body {
    /* Oyun Ekranı - Masaüstü (PC) arka plan görseli */
    background: linear-gradient(rgba(10, 5, 20, 0.3), rgba(10, 5, 20, 0.5)), url('images/blof_bg.png') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px env(safe-area-inset-right) 20px env(safe-area-inset-left);
    padding-top: max(20px, env(safe-area-inset-top));
    padding-bottom: max(20px, env(safe-area-inset-bottom));
}

/* Lobi / Bekleme ekranlarında PC PNG arka planı */
body.lobby-bg {
    background: url('images/bg_blof_desktop.png') no-repeat center center fixed;
    background-size: cover;
    justify-content: flex-start;
    padding-top: 40px;
    overflow-y: auto;
    /* İçerik taşarsa dikey kaydırmaya izin ver */
}

/* Mobil Cihazlar İçin Arka Plan Görselleri (768px ve altı ekranlar) */
@media (max-width: 768px) {
    body {
        /* Oyun Ekranı - Mobil arka plan görseli */
        background: linear-gradient(rgba(10, 5, 20, 0.3), rgba(10, 5, 20, 0.5)), url('images/blof_mobil.png') no-repeat center center fixed;
        background-size: cover;
    }

    body.lobby-bg {
        /* Lobi Ekranı - Mobil arka plan görseli */
        background: url('images/bg_mobil.png') no-repeat center center fixed;
        background-size: cover;
        justify-content: center;
        padding-top: 0;
    }
}

/* Lobi ekranındayken html elementinin taşma davranışını düzelt */
html:has(body.lobby-bg) {
    overflow-y: auto;
}

/* ── TYPOGRAPHY ────────────────────────────────────────────────────────────── */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 10px 0;
}

h1 {
    color: var(--accent-gold);
    font-size: 2.5rem;
    text-shadow: 2px 2px 0px #000, -1px -1px 0px #000, 1px -1px 0px #000, -1px 1px 0px #000;
}

.subtitle {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

.text-highlight {
    color: var(--accent-gold);
    font-weight: 700;
}

/* ── PANELS & LOBBY ────────────────────────────────────────────────────────── */
#lobby-screen {
    display: none !important;
}

.panel {
    background: var(--bg-dark-panel);
    padding: 30px;
    border-radius: 16px;
    border: 3px solid var(--accent-gold);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), inset 0 2px 10px rgba(255, 255, 255, 0.1);
    text-align: center;
    width: 90%;
    max-width: 480px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.input-group {
    display: none !important;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

input {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 14px;
    color: #fff;
    font-size: 1.1rem;
    text-align: center;
    outline: none;
    transition: border-color 0.2s;
}

input:focus {
    border-color: var(--accent-gold);
}

/* ── BUTTONS ───────────────────────────────────────────────────────────────── */
button {
    font-family: var(--font-heading);
    padding: 15px;
    font-size: 1.2rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, #d900ff 0%, #7209b7 100%);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(217, 0, 255, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #f033ff 0%, #8915db 100%);
    color: #fff;
    box-shadow: 0 6px 20px rgba(217, 0, 255, 0.55);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(1px);
}

#btn-start-game {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.82rem;
    padding: 16px 22px;
    border-radius: 12px;
    border: 1px solid #4cc9f0;
    border-bottom: 5px solid #0077b6;
    /* 3D Depth */
    background: linear-gradient(135deg, #00f2fe 0%, #0077b6 100%);
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.3);
    width: 100%;
    transition: all 0.1s ease;
    position: relative;
    top: 0;
    outline: none;
    cursor: pointer;
}

#btn-start-game:hover {
    background: linear-gradient(135deg, #00f5d4 0%, #00b4d8 100%);
    box-shadow: 0 8px 25px rgba(0, 245, 212, 0.55);
    transform: translateY(-2px);
    border-bottom: 7px solid #0077b6;
    /* raises depth */
}

#btn-start-game:active {
    transform: translateY(3px);
    /* moves down by 3px */
    border-bottom: 2px solid #0077b6;
    /* depresses 3D bottom border */
    box-shadow: 0 3px 10px rgba(0, 242, 254, 0.2);
}

.btn-warning {
    background: #e67e22;
    color: #fff;
    padding: 8px 20px;
    font-size: 1rem;
}

.btn-warning:hover {
    background: #d35400;
}

/* ── PREMIUM GAME OVER SCREEN ────────────────────────────────────────── */
.game-over-panel {
    background: radial-gradient(ellipse at center, rgba(35, 10, 50, 0.96) 0%, rgba(12, 4, 20, 0.98) 100%) !important;
    border: 3px solid rgba(255, 215, 0, 0.6) !important;
    outline: 2px solid rgba(0, 0, 0, 0.9) !important;
    border-radius: 24px !important;
    padding: 32px 28px !important;
    max-width: 520px !important;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.9),
        0 0 30px rgba(255, 215, 0, 0.25),
        inset 0 0 25px rgba(255, 215, 0, 0.08) !important;
    backdrop-filter: blur(16px) !important;
    animation: gameOverModalPop 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes gameOverModalPop {
    0% {
        opacity: 0;
        transform: scale(0.85) translateY(20px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.game-over-header {
    margin-bottom: 20px;
    text-align: center;
}

.game-over-badge {
    display: inline-block;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.55rem;
    font-weight: 700;
    color: #00ffcc;
    background: rgba(0, 255, 204, 0.1);
    border: 1px solid rgba(0, 255, 204, 0.3);
    border-radius: 20px;
    padding: 4px 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.game-over-title {
    font-family: 'Russo One', 'Poppins', sans-serif !important;
    font-size: 1.8rem !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    margin: 4px 0 0 0 !important;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 215, 0, 0.3) !important;
}

/* Winner Hero Box */
.winner-hero-box {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.12) 0%, rgba(217, 0, 255, 0.12) 100%);
    border: 2px solid var(--accent-gold);
    border-radius: 18px;
    padding: 20px 16px;
    margin: 16px 0 24px 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(255, 215, 0, 0.15);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.winner-hero-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 45%, rgba(255, 215, 0, 0.08) 50%, transparent 55%);
    animation: shineSweep 4s infinite linear;
    pointer-events: none;
}

@keyframes shineSweep {
    0% {
        transform: translate(-30%, -30%) rotate(0deg);
    }

    100% {
        transform: translate(30%, 30%) rotate(0deg);
    }
}

.winner-crown-label {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--accent-gold);
    letter-spacing: 2px;
    margin-bottom: 8px;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.winner-hero-name {
    font-family: 'Russo One', sans-serif !important;
    font-size: 1.75rem !important;
    font-weight: 900 !important;
    background: linear-gradient(135deg, #fff5cc 0%, #ffd700 50%, #ffaa00 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.9);
    display: inline-block;
    padding: 4px 10px;
    animation: winnerNamePulse 2.4s infinite ease-in-out !important;
}

/* Winner Name Subtle Pulse Scaling Animation */
@keyframes winnerNamePulse {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.3));
    }

    50% {
        transform: scale(1.08);
        filter: drop-shadow(0 0 16px rgba(255, 215, 0, 0.8));
    }

    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.3));
    }
}

.game-over-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.section-label {
    display: block;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.52rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-align: left;
}

.winner-list-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.winner-item-card {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    border: 1.5px solid rgba(255, 215, 0, 0.25);
    border-radius: 10px;
    padding: 8px 14px;
    transition: all 0.2s ease;
}

.winner-item-card:first-child {
    border-color: var(--accent-gold);
    background: rgba(255, 215, 0, 0.08);
}

.rank-number {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-gold);
    width: 24px;
}

.winner-player-name {
    font-family: 'Poppins', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    color: #ffffff;
}

.loser-name-badge {
    background: rgba(255, 71, 87, 0.12);
    border: 1.5px solid rgba(255, 71, 87, 0.4);
    border-radius: 10px;
    padding: 10px 14px;
    color: #ff4757;
    font-family: 'Poppins', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    text-align: left;
}

.game-over-actions {
    display: flex;
    gap: 12px;
    width: 100%;
    margin-top: 18px;
}

.btn-restart {
    flex: 1.2;
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%) !important;
    color: #031427 !important;
    font-family: 'Russo One', sans-serif !important;
    font-size: 0.85rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.5px !important;
    padding: 14px 16px !important;
    border-radius: 12px !important;
    border: 2px solid #00f2fe !important;
    border-bottom: 5px solid #0088cc !important;
    box-shadow: 0 8px 20px rgba(0, 242, 254, 0.4) !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.btn-restart:hover {
    transform: translateY(-3px) !important;
    background: linear-gradient(135deg, #38ef7d 0%, #11998e 100%) !important;
    color: #002b15 !important;
    border-color: #38ef7d !important;
    border-bottom-color: #0b663b !important;
    box-shadow: 0 12px 28px rgba(56, 239, 125, 0.55) !important;
}

.btn-restart:active {
    transform: translateY(2px) !important;
    border-bottom-width: 2px !important;
}

.btn-lobby {
    flex: 1;
    background: linear-gradient(135deg, #2f3542 0%, #1e222e 100%) !important;
    color: #ffffff !important;
    font-family: 'Russo One', sans-serif !important;
    font-size: 0.85rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.5px !important;
    padding: 14px 16px !important;
    border-radius: 12px !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    border-bottom: 5px solid #11141c !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5) !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.btn-lobby:hover {
    transform: translateY(-3px) !important;
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 10px 24px rgba(255, 255, 255, 0.15) !important;
}

.btn-lobby:active {
    transform: translateY(2px) !important;
    border-bottom-width: 2px !important;
}

#waiting-screen.panel {
    max-width: 640px;
}

/* ── LOBBY PLAYERS ─────────────────────────────────────────────────────────── */
.players-box {
    background: rgba(0, 0, 0, 0.45);
    border: 2px solid rgba(217, 0, 255, 0.25);
    border-radius: 16px;
    padding: 20px;
    margin: 25px 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 2px 8px rgba(255, 255, 255, 0.05);
}

.players-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.players-box li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.08) 100%);
    border: 1px solid rgba(217, 0, 255, 0.15);
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.players-box li:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.12) 100%);
    border-color: rgba(217, 0, 255, 0.45);
    transform: translateX(4px);
    box-shadow: 0 4px 15px rgba(217, 0, 255, 0.25);
}

/* ── LOBBY TABLE SEATING MAP (CYBERPUNK BLÖF MASASI) ────────────────────────── */
.lobby-seat-map {
    width: 100%;
    max-width: 520px;
    height: 340px;
    background: linear-gradient(to bottom right, #3d1466, #140526);
    border-radius: 40px;
    padding: 12px;
    margin: 25px auto;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), inset 0 0 20px rgba(0, 0, 0, 0.9), 0 0 15px rgba(217, 0, 255, 0.25);
    border: 3px solid rgba(217, 0, 255, 0.4);
}

.lobby-felt-board {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, #280b4d 0%, #0d031c 100%);
    border-radius: 28px;
    position: relative;
    box-shadow: inset 0 0 35px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.lobby-seat-pos {
    position: absolute;
    width: 135px;
    height: 70px;
    background: rgba(0, 0, 0, 0.65);
    border: 2px solid rgba(217, 0, 255, 0.25);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px;
    transition: all 0.25s ease;
    backdrop-filter: blur(6px);
}

/* Positions */
.seat-top {
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
}

.seat-bottom {
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
}

.seat-left {
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.seat-right {
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

/* Join Seat Button */
.seat-join-btn {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #abb1a9;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.65rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.seat-join-btn:hover {
    background: rgba(217, 0, 255, 0.1);
    border-color: #d900ff;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(217, 0, 255, 0.4);
    transform: scale(1.02);
}

/* Occupied Seat Card */
.seat-occupied {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    gap: 4px;
}

.seat-player-name {
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    margin: 0 auto;
    gap: 6px;
}

/* Leave Seat Button */
.seat-leave-btn {
    display: none;
    /* Hidden by default */
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e05b5b 0%, #c0392b 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-family: 'Russo One', sans-serif;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.1), 0 4px 10px rgba(0, 0, 0, 0.3);
}

.seat-leave-btn:hover {
    background: linear-gradient(135deg, #ff6b6b 0%, #d63031 100%);
    box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.1), 0 0 12px rgba(230, 91, 91, 0.5);
}

/* On hover of occupied seat, switch displays if leave button exists */
.seat-occupied:hover .seat-player-name {
    display: none !important;
}

.seat-occupied:hover .seat-leave-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/* Center Plate */
.lobby-felt-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(13, 3, 28, 0.85);
    border: 2px solid rgba(217, 0, 255, 0.35);
    border-radius: 50%;
    width: 110px;
    height: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8), 0 0 10px rgba(217, 0, 255, 0.2);
    backdrop-filter: blur(4px);
}

#seat-mode-info {
    font-family: 'Russo One', sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    color: #d900ff;
    letter-spacing: 0.5px;
    text-shadow: 0 0 5px rgba(217, 0, 255, 0.5);
}

.player-name-text {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    color: #fcf9f2;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.player-emoji {
    font-size: 1.1rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    display: inline-block;
    animation: floatEmoji 2s ease-in-out infinite alternate;
}

@keyframes floatEmoji {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-2px);
    }
}

.host-badge {
    background: linear-gradient(135deg, #d900ff 0%, #7209b7 100%);
    color: #fff;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(217, 0, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ── HAREKETLİ ARKA PLAN KARTLARI ─────────────────────────────────────────── */
.bg-cards-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.floating-bg-card {
    position: absolute;
    width: 60px;
    height: 85px;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 6px;
    user-select: none;
    will-change: left, top, transform;
}

.floating-bg-card.red-suit {
    color: #e05b5b;
}

.floating-bg-card.black-suit {
    color: #2c3e50;
}

.floating-bg-card .bg-card-value {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
    text-align: left;
}

.floating-bg-card .bg-card-suit {
    font-size: 1.8rem;
    align-self: center;
    line-height: 1;
}

.floating-bg-card .bg-card-value-bottom {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
    transform: rotate(180deg);
    align-self: flex-end;
}

.floating-bg-card.card-back {
    background: repeating-linear-gradient(45deg, #c0392b, #c0392b 8px, #b03a2e 8px, #b03a2e 16px);
    border: 2px solid #ffffff;
}

.settings-group {
    margin-bottom: 20px;
    text-align: left;
}

.settings-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--accent-gold);
}

.toggle-group {
    display: flex;
    gap: 10px;
}

.toggle-box {
    flex: 1;
    cursor: pointer;
}

.toggle-box input {
    display: none;
}

.toggle-box span {
    display: block;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    font-weight: 500;
    transition: all 0.2s;
}

.toggle-box input:checked+span {
    background: rgba(255, 215, 0, 0.15);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.pulse-text {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}

/* ── GAME LAYOUT ───────────────────────────────────────────────────────────── */
.game-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    padding: 10px;
    max-width: 900px;
}

/* Opponents Area */
.opponents-container {
    display: none !important;
    /* Hide old opponents bar */
}

/* Table Felt & Pile */
.table-felt {
    flex: 1;
    background: transparent;
    border: none;
    margin: 10px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: visible;
    /* Allow seat cards to slightly hang over edges safely */
}

/* Dining Table 3D Wrapper Container */
.dining-table-container {
    position: relative;
    width: 90%;
    max-width: 600px;
    height: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Realistic Drop Shadow on Floor */
.table-shadow {
    position: absolute;
    bottom: 10px;
    width: 60%;
    height: 70px;
    background: rgba(0, 0, 0, 0.48);
    border-radius: 50%;
    filter: blur(12px);
    z-index: 1;
}

/* 3D Oluklu Ahşap Sütun Ayak (Cylinder Base) */
.table-column-base {
    position: absolute;
    bottom: 25px;
    width: 140px;
    height: 170px;
    z-index: 2;
    border-radius: 0 0 16px 16px;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 30%, rgba(0, 0, 0, 0.2) 70%, rgba(0, 0, 0, 0.8) 100%),
        url('images/pixelart_dark_matte_wood.png') center/cover no-repeat;
    border: 1px solid #1a0b04;
    border-top: none;
    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.75),
        inset 0 -12px 25px rgba(0, 0, 0, 0.85);
    image-rendering: pixelated;
}

/* The Tabletop wrap to manage perspective */
.table-surface-wrap {
    position: relative;
    width: 100%;
    height: 250px;
    z-index: 3;
    perspective: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Table thickness rim (under tabletop) */
.table-surface-edge {
    position: absolute;
    top: 52%;
    width: 86%;
    height: 18px;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.8) 100%),
        url('images/pixelart_dark_matte_wood.png') center/cover no-repeat;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.75);
    image-rendering: pixelated;
}

/* Slanted Tabletop Surface with Pixel Art Dark Matte Wood Grain Texture */
.table-surface-top {
    position: absolute;
    top: 50%;
    width: 86%;
    height: 100%;
    transform: translateY(-50%) rotateX(32deg);
    border-radius: 50%;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(255, 255, 255, 0.07) 0%, rgba(0, 0, 0, 0.65) 95%),
        url('images/pixelart_dark_matte_wood.png') center/cover no-repeat;
    border: 4px solid #281408;
    box-shadow:
        inset 0 4px 14px rgba(255, 255, 255, 0.1),
        inset 0 -8px 22px rgba(0, 0, 0, 0.85),
        0 8px 30px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    image-rendering: pixelated;
}

/* Yerdeki Kart Yığını */
.pile-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: default;
    z-index: 10;
    transform: translateY(15px);
}

.card-back-stack {
    position: relative;
    width: 62px;
    height: 90px;
    margin-bottom: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}



.stack-card {
    position: absolute;
    width: 60px;
    height: 88px;
    background: url('images/cards/back.png') no-repeat center center;
    background-size: cover;
    border-radius: 6px;
    box-shadow:
        0 5px 10px rgba(0, 0, 0, 0.75),
        0 1px 3px rgba(0, 0, 0, 0.5);
    transition: transform 0.25s ease-out;
}

.stack-card.card-drop-anim {
    animation: dropCardIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes dropCardIn {
    0% {
        opacity: 0;
        transform: scale(1.4) translateY(-35px);
    }

    100% {
        opacity: 1;
    }
}

.pile-info {
    display: none !important;
}

.pile-count {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.declared-status {
    display: block;
    font-size: 0.78rem;
    opacity: 0.9;
    margin-top: 2px;
}

/* Game Seats Positioned flat around the 3D Table */
.game-seat {
    position: absolute;
    z-index: 15;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.game-seat.empty {
    display: none;
    /* Hide empty slots */
}

/* Seats Positioning Coordinates */
.seat-pos-bottom {
    bottom: 2%;
    left: 50%;
    transform: translateX(-50%);
}

.seat-pos-top {
    top: calc(2% - 15px);
    left: 50%;
    transform: translateX(-50%);
}

.seat-pos-left {
    left: 2%;
    top: 50%;
    transform: translateY(-50%);
}

.seat-pos-right {
    right: 2%;
    top: 50%;
    transform: translateY(-50%);
}

/* Seated Player Avatar Container */
/* Seated Player Avatar Container */
.seat-avatar-container {
    position: relative;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #091a0c;
    border: 3px solid #4a2810;
    outline: 2px solid #231206;
    margin: -42px auto 8px auto;
    box-shadow:
        0 0 0 2px #ffd700,
        0 6px 14px rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    z-index: 2;
    overflow: visible !important;
}

.seat-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* Premium Professional Green Velvet Felt & Wood Frame Player Box */
.seat-player-box {
    background:
        radial-gradient(ellipse at center, #1b5e20 0%, #0e3b13 70%, #062109 100%),
        repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.03) 0px, rgba(0, 0, 0, 0.03) 2px, transparent 2px, transparent 4px);
    border: 5px solid #4a2810;
    outline: 2px solid #231206;
    border-radius: 16px;
    padding: 34px 14px 12px 14px;
    min-width: 165px;
    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.85),
        inset 0 0 16px rgba(0, 0, 0, 0.85);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Fine Gold inner border accent */
.seat-player-box::before {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.35);
    pointer-events: none;
}

/* Active turn styles (Balanced Golden Corner Outer Glow) */
.game-seat.active-turn .seat-player-box {
    border-color: #7a421c;
    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.85),
        0 0 16px 2px rgba(255, 215, 0, 0.55),
        inset 0 0 16px rgba(0, 0, 0, 0.85);
    transform: none;
}

.game-seat.active-turn .seat-avatar-container {
    border-color: #7a421c;
    box-shadow:
        0 0 0 2px #ffd700,
        0 0 12px rgba(255, 215, 0, 0.7);
}

/* Dead styles (Dark Crimson Felt & Dark Mahogany) */
.game-seat.dead .seat-player-box {
    border-color: #2b0808;
    outline-color: #120303;
    background:
        radial-gradient(ellipse at center, #421212 0%, #260909 70%, #140404 100%);
    box-shadow: 0 0 0 2px #e74c3c, 0 8px 20px rgba(0, 0, 0, 0.9);
    opacity: 0.85;
}

.game-seat.dead .seat-avatar-container {
    border-color: #2b0808;
    box-shadow: 0 0 0 2px var(--accent-red);
    background: #2b0c0c;
}

/* Passed styles */
.game-seat.passed .seat-player-box {
    border-color: #381e0c;
    background:
        radial-gradient(ellipse at center, #16421a 0%, #0a260d 70%, #041407 100%);
    opacity: 0.8;
}

/* Player Name styling */
.seat-player-name {
    font-family: 'Poppins', sans-serif;
    font-size: 1.65rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 auto 8px auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-shadow:
        1px 1px 0 #000000,
        -1px -1px 0 #000000,
        1px -1px 0 #000000,
        -1px 1px 0 #000000,
        0 2px 8px rgba(0, 0, 0, 0.95);
}

/* Player Stats Pill Container */
.seat-player-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    border-top: 1.5px solid rgba(255, 215, 0, 0.25);
    padding-top: 8px;
    margin-top: 2px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    background: rgba(0, 0, 0, 0.55);
    padding: 3px 8px;
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.25);
}

.stat-val {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.62rem;
    font-weight: 700;
    color: #ffd700;
}

.card-count-stat {
    border-color: rgba(217, 0, 255, 0.3);
}

.card-count-stat .stat-val {
    color: var(--accent-gold);
}

.roulette-stat {
    border-color: rgba(224, 91, 91, 0.3);
}

.roulette-stat .stat-val {
    color: #ff4757;
}

/* Tilted Crown Icon on top-right of avatar head */
.seat-host-crown {
    position: absolute;
    top: -14px;
    right: -4px;
    font-size: 1.45rem;
    transform: rotate(24deg);
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.95));
    z-index: 10;
    pointer-events: none;
    animation: crownFloat 2s infinite alternate ease-in-out;
}

@keyframes crownFloat {
    0% {
        transform: rotate(24deg) translateY(0px);
    }

    100% {
        transform: rotate(28deg) translateY(-3px);
    }
}

/* Pass Badge styling */
.seat-pass-badge {
    position: absolute;
    top: 6px;
    right: 10px;
    background: #2f3542;
    color: #fff;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.5rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1.5px solid #000000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* Lobby List & Seat Avatars */
.lobby-list-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #110520;
    border: 1.5px solid var(--accent-gold);
    object-fit: cover;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.lobby-seat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #110520;
    border: 2px solid var(--accent-gold);
    margin-bottom: 6px;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    display: inline-block;
}

.lobby-seat-host-crown {
    font-size: 0.85rem;
    margin-right: 4px;
}

.last-action-info {
    display: none !important;
}

/* Bluff Reveal Overlay */
/* Bluff Reveal Overlay */
.reveal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 30;
    pointer-events: none;
    animation: fadeIn 0.3s forwards;
}

.reveal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 90%;
    pointer-events: auto;
}

#lbl-reveal-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.82rem;
    color: #ffffff;
    background: linear-gradient(135deg, #7209b7 0%, #3a0ca3 100%);
    border: 2px solid #d900ff;
    padding: 8px 20px;
    border-radius: 20px;
    box-shadow: 0 0 15px rgba(217, 0, 255, 0.4), 0 6px 12px rgba(0, 0, 0, 0.6);
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.revealed-cards {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 10px 0 16px 0;
    flex-wrap: wrap;
}

.revealed-cards .card {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.85), 0 0 0 3px var(--accent-gold) !important;
    animation: popInCard 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popInCard {
    0% {
        transform: scale(0.3) rotate(-10deg);
        opacity: 0;
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.reveal-result-msg {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    color: #ffffff !important;
    border-radius: 16px;
    padding: 14px 22px;
    letter-spacing: 0.5px;
    line-height: 1.55;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);
    max-width: 480px;
    border: 3px solid #000000 !important;
    box-shadow: 0 6px 0 #000000, 0 12px 25px rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: resultPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reveal-result-msg.caught-bluff {
    background: linear-gradient(135deg, #b31217 0%, #e52d27 100%) !important;
    color: #ffffff !important;
    border-color: #000000 !important;
    box-shadow: 0 6px 0 #000000, 0 12px 25px rgba(0, 0, 0, 0.85), 0 0 18px rgba(229, 45, 39, 0.6) !important;
}

.reveal-result-msg.honest-play {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%) !important;
    color: #00361a !important;
    border-color: #000000 !important;
    box-shadow: 0 6px 0 #000000, 0 12px 25px rgba(0, 0, 0, 0.85), 0 0 18px rgba(56, 239, 125, 0.6) !important;
}

@keyframes resultPop {
    0% {
        transform: scale(0.7) translateY(15px);
        opacity: 0;
    }

    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Log & Declare Wrapper Container */
.log-declare-wrapper {
    display: flex;
    gap: 12px;
    width: 100%;
    max-width: 600px;
    margin: 10px auto;
    box-sizing: border-box;
}

/* Log History */
.history-log-container {
    flex: 1;
    height: 195px;
    background:
        radial-gradient(ellipse at center, #1b5e20 0%, #0e3b13 70%, #062109 100%),
        repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.03) 0px, rgba(0, 0, 0, 0.03) 2px, transparent 2px, transparent 4px);
    border: 6px solid #4a2810;
    outline: 2px solid #231206;
    border-radius: 14px;
    padding: 6px 6px;
    margin-bottom: 0;
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.8),
        inset 0 0 16px rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-gold) rgba(0, 0, 0, 0.2);
}

/* Widescreen Spatial Alignment: Log above Left seat, Declare above Right seat */
@media (min-width: 900px) {
    .log-declare-wrapper {
        display: contents;
        /* Dissolve wrapper layout so children position absolutely relative to game-table */
    }

    .history-log-container {
        position: absolute;
        left: calc(2% + 105px);
        top: calc(50% - 295px);
        transform: translateX(-50%);
        width: 220px;
        height: 190px;
        margin: 0;
        z-index: 20;
    }

    .declare-bar-container {
        position: absolute;
        right: calc(2% + 105px);
        top: calc(50% - 295px);
        transform: translateX(50%);
        width: 220px;
        height: 190px;
        margin: 0;
        z-index: 20;
    }
}

/* Fallback flow for medium screens */
@media (max-width: 899px) {
    .log-declare-wrapper {
        display: flex;
        gap: 12px;
        width: 100%;
        max-width: 600px;
        margin: 10px auto;
        box-sizing: border-box;
    }

    .history-log-container,
    .declare-bar-container {
        position: static;
        transform: none;
        flex: 1;
        height: 195px;
        margin-bottom: 0;
        width: auto;
    }
}

/* Custom Scrollbar for Chrome/Safari/Edge */
.history-log-container::-webkit-scrollbar {
    width: 5px;
}

.history-log-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.history-log-container::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 4px;
}

.history-log {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.8rem;
    font-family: var(--font-body);
}

.log-item {
    padding: 4px 8px;
    border-radius: 4px;
    line-height: 1.35;
    animation: fadeInLog 0.25s ease-out;
}

@keyframes fadeInLog {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.log-item.system {
    background: rgba(241, 196, 15, 0.1);
    color: #ffd83b;
    font-weight: 600;
    border-left: 3px solid #f1c40f;
}

.log-item.play {
    background: rgba(52, 152, 219, 0.1);
    color: #5dade2;
    border-left: 3px solid #3498db;
}

.log-item.bluff {
    background: rgba(231, 76, 60, 0.15);
    color: #ff6b6b;
    font-weight: 600;
    border-left: 3px solid #e74c3c;
}

.log-item.pass {
    background: rgba(149, 165, 166, 0.1);
    color: #bdc3c7;
    border-left: 3px solid #95a5a6;
}

/* Turn Banner - 40% Büyütülmüş PixelArt Font & Tümünü Büyük Harf */
.turn-status-banner {
    position: relative;
    width: fit-content;
    max-width: 480px;
    margin: 6px auto 12px auto;
    padding: 14px 34px 14px 52px;
    border-radius: 40px;
    font-family: 'Press Start 2P', monospace !important;
    font-size: 0.91rem !important;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    text-transform: uppercase !important;
    border: 4px solid #000000 !important;
    box-shadow: 0 8px 0 0 #000000, 0 12px 24px rgba(0, 0, 0, 0.85) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    user-select: none;
    opacity: 1 !important;
    letter-spacing: 0.5px;
}

.turn-status-banner::before {
    content: '';
    position: absolute;
    left: 18px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 2px solid #000000;
}

/* Sıra Rakipte İken: Buton YEŞİL, İçindeki Metin TEMİZ KIRMIZI (Siyah kontur yok) */
.turn-status-banner,
.turn-status-banner.opponent-turn {
    background: #00e676 !important;
    /* Canlı Yeşil */
    color: #ff0033 !important;
    /* Canlı Temiz Kırmızı */
    text-shadow: none !important;
    /* Siyah kontur/şerit kaldırıldı */
}

.turn-status-banner::before,
.turn-status-banner.opponent-turn::before {
    background-color: #ff0033;
    box-shadow: 0 0 8px #ff0033;
    animation: turnDotPulse 1s infinite alternate;
}

/* Sıra Oyuncunun Kendisinde İken: Buton KIRMIZI, İçindeki Metin CANLI YEŞİL */
.turn-status-banner.my-turn {
    background: #ff1744 !important;
    /* Canlı Kırmızı */
    color: #00ff66 !important;
    /* Canlı Yeşil */
    text-shadow: none !important;
    animation: myTurnPillPulse 1.2s infinite alternate;
}

.turn-status-banner.my-turn::before {
    background-color: #00ff66;
    box-shadow: 0 0 8px #00ff66;
    animation: myTurnDotPulse 0.7s infinite alternate;
}

@keyframes turnDotPulse {
    0% {
        transform: scale(0.8);
        opacity: 0.7;
    }

    100% {
        transform: scale(1.3);
        opacity: 1;
    }
}

@keyframes myTurnPillPulse {
    0% {
        box-shadow: 0 6px 0 0 #000000, 0 8px 16px rgba(255, 23, 68, 0.4);
    }

    100% {
        box-shadow: 0 6px 0 0 #000000, 0 12px 26px rgba(255, 23, 68, 0.8), 0 0 14px rgba(0, 255, 102, 0.5);
    }
}

@keyframes myTurnDotPulse {
    0% {
        transform: scale(0.7);
        box-shadow: 0 0 3px #00ff66;
    }

    100% {
        transform: scale(1.4);
        box-shadow: 0 0 12px #00ff66;
    }
}

/* ── MY HAND AREA ──────────────────────────────────────────────────────────── */
.my-hand-area {
    background: transparent;
    border-radius: 0;
    padding: 4px 0;
    margin-bottom: 8px;
}

/* ── DECLARE BAR STYLES (PREMIUM WOOD FRAME & GREEN FELT BOARD) ────────────── */
.declare-bar-container {
    flex: 1;
    height: 195px;
    background:
        radial-gradient(ellipse at center, #1b5e20 0%, #0e3b13 70%, #062109 100%),
        repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.03) 0px, rgba(0, 0, 0, 0.03) 2px, transparent 2px, transparent 4px);
    border: 6px solid #4a2810;
    outline: 2px solid #231206;
    border-radius: 14px;
    padding: 6px 4px;
    margin-bottom: 0;
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.8),
        inset 0 0 16px rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow: visible;
}

.declare-bar-title {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    font-family: 'Press Start 2P', monospace;
    color: #ffd700;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
    text-align: center;
    text-shadow: 1px 1px 2px #000000, 0 0 8px rgba(255, 215, 0, 0.4);
}

.declare-bar-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px 4px;
    justify-items: center;
    padding-bottom: 2px;
}

.declare-bar-card {
    position: relative;
    border-radius: 5px;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    cursor: pointer;
    width: 35px;
    height: 50px;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.6);
    user-select: none;
    transition: transform 0.18s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
    flex-shrink: 0;
}

.declare-bar-card[data-rank="A"] {
    background-image: url('images/cards/kupa_A.png');
}

.declare-bar-card[data-rank="2"] {
    background-image: url('images/cards/kupa_2.png');
}

.declare-bar-card[data-rank="3"] {
    background-image: url('images/cards/sinek_3.png');
}

.declare-bar-card[data-rank="4"] {
    background-image: url('images/cards/karo_4.png');
}

.declare-bar-card[data-rank="5"] {
    background-image: url('images/cards/maca_5.png');
}

.declare-bar-card[data-rank="6"] {
    background-image: url('images/cards/kupa_6.png');
}

.declare-bar-card[data-rank="7"] {
    background-image: url('images/cards/sinek_7.png');
}

.declare-bar-card[data-rank="8"] {
    background-image: url('images/cards/karo_8.png');
}

.declare-bar-card[data-rank="9"] {
    background-image: url('images/cards/maca_9.png');
}

.declare-bar-card[data-rank="10"] {
    background-image: url('images/cards/kupa_10.png');
}

.declare-bar-card[data-rank="J"] {
    background-image: url('images/cards/sinek_J.png');
}

.declare-bar-card[data-rank="Q"] {
    background-image: url('images/cards/karo_Q.png');
}

.declare-bar-card[data-rank="K"] {
    background-image: url('images/cards/maca_K.png');
}

.declare-bar-card .mini-rank,
.declare-bar-card .mini-suit,
.declare-bar-card .mini-rank-bottom {
    display: none;
}

.declare-bar-card:hover {
    transform: scale(1.35);
    z-index: 50 !important;
    border-color: #00f2fe !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.9), 0 0 15px #00f2fe !important;
    filter: brightness(1.25) contrast(1.1) !important;
}

.declare-bar-card.selected {
    border-color: #00f2fe;
    box-shadow: 0 0 14px #00f2fe, inset 0 0 6px #00f2fe;
}

.declare-bar-card.disabled {
    opacity: 1 !important;
    filter: none !important;
    cursor: default;
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.declare-bar-card.locked {
    cursor: default;
    border-color: #ffd700;
    box-shadow: 0 0 12px #ffd700, inset 0 0 4px #ffd700;
    opacity: 1 !important;
    filter: none !important;
}

.hand-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 6px;
    width: 100%;
    text-align: center;
}

.hand-header h3 {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.card-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: visible;
    padding: 10px 15px 25px 15px;
    min-height: 140px;
    position: relative;
    scrollbar-width: none;
}

.card-fan-row {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    position: relative;
    margin-top: -74px;
    padding: 2px 0;
    transition: margin-top 0.25s ease;
}

.card-fan-row:first-child {
    margin-top: 0;
}

.card-container::-webkit-scrollbar {
    display: none;
}

/* ── REALISTIC PLAYING CARDS (HALF-MOON HAND FAN) ──────────────────────────── */
.card {
    position: relative;
    width: 68px;
    height: 100px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 7px;
    box-shadow: -2px 4px 12px rgba(0, 0, 0, 0.45);
    cursor: pointer;
    flex-shrink: 0;
    user-select: none;
    transform-origin: 50% 120%;
    --rot: 0deg;
    --dip: 0px;
    transform: translateY(var(--dip)) rotate(var(--rot));
    transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.2s ease;
}

.card.red {
    color: #e74c3c;
}

.card:hover {
    transform: translateY(calc(var(--dip) - 2.5px)) rotate(var(--rot));
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.45);
    z-index: 25 !important;
}

.card.selected {
    transform: translateY(calc(var(--dip) - 12px)) rotate(var(--rot));
    box-shadow: 0 7px 16px rgba(0, 0, 0, 0.55), 0 0 0 3px #00f2fe;
    z-index: 100 !important;
}

.card-corner {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.card-value {
    font-weight: 700;
    font-size: 1rem;
}

.card-suit-mini {
    font-size: 0.75rem;
}

.card-center-suit {
    align-self: center;
    font-size: 1.5rem;
    margin-bottom: 3px;
    line-height: 1;
}

/* Action Controls Bar (PREMIUM WOOD FRAME & GREEN FELT BOARD) */
.action-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 350px;
    margin: 5px auto 12px auto;
    padding: 8px 10px;
    background:
        radial-gradient(ellipse at center, #1b5e20 0%, #0e3b13 70%, #062109 100%),
        repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.03) 0px, rgba(0, 0, 0, 0.03) 2px, transparent 2px, transparent 4px);
    border: 5px solid #4a2810;
    outline: 2px solid #231206;
    border-radius: 12px;
    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.8),
        inset 0 0 14px rgba(0, 0, 0, 0.85);
    box-sizing: border-box;
}

.action-bar button {
    flex: 1;
    /* Equal size for all three buttons */
    padding: 9px 5px;
    font-size: 0.58rem;
    font-family: 'Press Start 2P', monospace;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
    border: 3px solid #000000 !important;
    box-shadow: 0 0 0 2px #000000, 0 4px 0 0 #000000, 0 8px 16px rgba(0, 0, 0, 0.95) !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);
}

.action-bar button:focus,
.action-bar button:focus-visible,
.action-bar button:active {
    outline: none !important;
}

.btn-play {
    background: linear-gradient(135deg, #00d2ff 0%, #0066ff 100%) !important;
    color: #fff !important;
}

.btn-play:not(:disabled):hover {
    background: linear-gradient(135deg, #00e5ff 0%, #0052d4 100%) !important;
    box-shadow: 0 0 0 2px #000000, 0 6px 0 0 #000000, 0 10px 20px rgba(0, 0, 0, 0.9) !important;
    transform: translateY(-2px);
}

.btn-play:not(:disabled):active {
    transform: translateY(3px);
    box-shadow: 0 0 0 2px #000000, 0 1px 0 0 #000000 !important;
}

.btn-bluff {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%) !important;
    color: #fff !important;
}

.btn-bluff:not(:disabled):hover {
    background: linear-gradient(135deg, #ff4b2b 0%, #ff416c 100%) !important;
    box-shadow: 0 0 0 2px #000000, 0 6px 0 0 #000000, 0 10px 20px rgba(0, 0, 0, 0.9) !important;
    transform: translateY(-2px);
}

.btn-bluff:not(:disabled):active {
    transform: translateY(3px);
    box-shadow: 0 0 0 2px #000000, 0 1px 0 0 #000000 !important;
}

.btn-pass {
    background: linear-gradient(135deg, #434343 0%, #090909 100%) !important;
    color: #fff !important;
}

.btn-pass:not(:disabled):hover {
    background: linear-gradient(135deg, #535353 0%, #151515 100%) !important;
    box-shadow: 0 0 0 2px #000000, 0 6px 0 0 #000000, 0 10px 20px rgba(0, 0, 0, 0.9) !important;
    transform: translateY(-2px);
}

.btn-pass:not(:disabled):active {
    transform: translateY(3px);
    box-shadow: 0 0 0 2px #000000, 0 1px 0 0 #000000 !important;
}

button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
    filter: grayscale(80%);
}

.action-bar button:disabled {
    opacity: 1 !important;
    filter: none !important;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: 0 0 0 2px #000000, 0 3px 0 0 #000000 !important;
}

/* ── MODALS & OVERLAYS ─────────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.modal-box {
    background: var(--bg-dark-panel);
    border: 3px solid var(--accent-gold);
    border-radius: 16px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.declare-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 15px;
}

.btn-declare-option {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 5px;
    font-size: 0.9rem;
    border-radius: 6px;
}

.btn-declare-option:hover {
    background: var(--accent-gold);
    color: #000;
    border-color: var(--accent-gold);
}

/* ── GAME OVER SCREEN ──────────────────────────────────────────────────────── */
.winner-title {
    color: var(--accent-gold);
    font-size: 2.2rem;
}

.podium {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.podium ol {
    padding-left: 20px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.podium li {
    font-size: 1.1rem;
    font-weight: 600;
}

.loser-box {
    margin-bottom: 25px;
}

.loser-box p {
    font-size: 1.5rem;
    margin: 5px 0 0 0;
}

/* ── FLOATING RULES BUTTON & MODAL ────────────────────────────────────────── */
.global-how-to-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 44px;
    height: 44px;
    background: var(--accent-gold);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 99;
    border: 2px solid #000;
}

.global-how-to-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.global-how-to-modal.hidden {
    display: none;
}

.global-how-to-box {
    background: #112d17;
    border: 3px solid var(--accent-gold);
    color: #fff;
    padding: 25px;
    border-radius: 15px;
    width: 90%;
    max-width: 450px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.global-how-to-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    color: var(--accent-gold);
    font-size: 2rem;
    cursor: pointer;
    box-shadow: none;
    padding: 0;
    width: auto;
}

.global-how-to-title {
    color: var(--accent-gold);
    font-size: 1.4rem;
    text-align: center;
    margin-bottom: 15px;
}

.global-how-to-text {
    font-size: 0.9rem;
    line-height: 1.5;
}

.global-how-to-text ul {
    padding-left: 20px;
}

.global-how-to-text li {
    margin-bottom: 6px;
}

/* ── LANDSCAPE BLOCKER ─────────────────────────────────────────────────────── */
#landscape-blocker {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #08210e;
    z-index: 9999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.rotate-device-icon {
    font-size: 4rem;
    animation: rotatePhone 2s infinite ease-in-out;
}

@keyframes rotatePhone {
    0% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(-90deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

@media (orientation: landscape) and (max-height: 500px) {
    #landscape-blocker {
        display: flex;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes bounce {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-5px);
    }
}

/* Toasts */
.toast-msg {
    position: fixed;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: #e74c3c;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: top 0.4s ease;
}

.toast-msg.show {
    top: 20px;
}

/* ── ELIMINATED PLAYER STYLES ─────────────────────────────────────────────── */
.opponent-card.dead {
    opacity: 0.55;
    background: rgba(45, 15, 15, 0.8) !important;
    border-color: #ff4757 !important;
    box-shadow: 0 0 10px rgba(255, 71, 87, 0.3) !important;
    animation: none !important;
}

.opponent-card.dead .opponent-name {
    text-decoration: line-through;
    color: #ff4757;
}

.opponent-card.dead .opponent-cards-info {
    color: #ff4757;
    font-size: 0.8rem;
}

/* ── ROULETTE BADGES ──────────────────────────────────────────────────────── */
.my-roulette-badge {
    background: rgba(255, 71, 87, 0.25);
    border: 1px solid #ff4757;
    color: #ff4757;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-left: 12px;
    font-weight: 700;
    display: inline-block;
    vertical-align: middle;
    text-shadow: 0 0 5px rgba(255, 71, 87, 0.5);
    box-shadow: 0 0 10px rgba(255, 71, 87, 0.2);
}

.opponent-roulette-badge {
    margin-top: 6px;
    background: rgba(241, 196, 15, 0.15);
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    display: inline-block;
    box-shadow: 0 0 5px rgba(241, 196, 15, 0.25);
}

.opponent-card.dead .opponent-roulette-badge {
    background: rgba(255, 71, 87, 0.2) !important;
    border-color: #ff4757 !important;
    color: #ff4757 !important;
    box-shadow: none !important;
}

/* ── RUSSIAN ROULETTE OVERLAY ─────────────────────────────────────────────── */
/* ── RUSSIAN ROULETTE OVERLAY & PREMIUM TACTICAL UI ───────────────────────── */
.roulette-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(90, 15, 20, 0.96) 0%, rgba(12, 4, 6, 0.98) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: fadeIn 0.3s forwards;
}

.roulette-modal-box {
    background: linear-gradient(145deg, rgba(24, 28, 36, 0.95) 0%, rgba(10, 12, 16, 0.98) 100%);
    border: 3px solid rgba(255, 71, 87, 0.55);
    border-radius: 24px;
    padding: 28px 24px;
    max-width: 440px;
    width: 92%;
    text-align: center;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.95),
        0 0 35px rgba(255, 71, 87, 0.35),
        inset 0 0 25px rgba(0, 0, 0, 0.85),
        inset 0 1px 1px rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.roulette-modal-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff4757 0%, #e84118 50%, #ff4757 100%);
}

.roulette-title {
    color: #ff4757;
    font-size: 1.5rem;
    letter-spacing: 1.5px;
    text-shadow: 0 0 12px rgba(255, 71, 87, 0.6), 2px 2px 4px rgba(0, 0, 0, 0.9);
    margin-bottom: 15px;
    font-family: 'Russo One', sans-serif;
    text-transform: uppercase;
}

/* Multiline Structured Description Formatting */
.roulette-desc {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 15px 0 22px 0;
    width: 100%;
}

.roulette-desc-card {
    text-align: center;
    box-sizing: border-box;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: all 0.25s ease;
}

.roulette-desc-card.desc-line-header {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.25) 0%, rgba(192, 57, 43, 0.45) 100%);
    border: 1.5px solid #ff4757;
    color: #ffffff;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.76rem;
    padding: 10px 14px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6), 0 0 10px rgba(255, 71, 87, 0.3);
    letter-spacing: 0.5px;
}

.roulette-desc-card.desc-line-body {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    font-size: 0.92rem;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 12px;
    line-height: 1.45;
    box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.05);
}

.roulette-desc-card.desc-line-action {
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.2) 0%, rgba(114, 9, 183, 0.25) 100%);
    border: 1.5px solid #ff4757;
    color: #ff6b81;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.74rem;
    line-height: 1.65;
    padding: 14px 16px;
    border-radius: 14px;
    font-weight: 700;
    box-shadow: 0 0 14px rgba(255, 71, 87, 0.3), inset 0 0 8px rgba(255, 71, 87, 0.15);
    letter-spacing: 0.5px;
}

.cylinder-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 22px 0;
    perspective: 800px;
}

/* Realistic 3D Metallic Grey Gunmetal Cylinder */
.cylinder-graphic {
    position: relative;
    width: 155px;
    height: 155px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #282d33 0%, #7e8791 15%, #343a42 30%, #abb4bf 45%, #282d33 60%, #7e8791 75%, #343a42 90%, #282d33 100%);
    border: 4px solid #14171a;
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.95),
        0 0 30px rgba(255, 255, 255, 0.14),
        inset 0 0 15px rgba(255, 255, 255, 0.35),
        inset 0 0 30px rgba(0, 0, 0, 0.9);
    transition: transform 0.1s linear;
    will-change: transform;
}

/* Reduced spin speed by 50%: 0.9s per full revolution */
.cylinder-graphic.spinning {
    animation: spinCylinderInfinite 0.9s linear infinite;
}

@keyframes spinCylinderInfinite {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.cylinder-graphic.stopping {
    animation: stopCylinderMech 0.75s cubic-bezier(0.08, 0.82, 0.17, 1) forwards;
}

@keyframes stopCylinderMech {
    0% {
        transform: rotate(0deg);
    }

    75% {
        transform: rotate(450deg);
    }

    100% {
        transform: rotate(540deg);
    }
}

/* Premium Machined Square & Octagonal Center Hub Structure */
.cylinder-center-pin {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: radial-gradient(circle, #e6ebf0 0%, #99a2ab 45%, #424951 80%, #15181b 100%);
    border: 3px solid #1a1e22;
    box-shadow:
        0 5px 12px rgba(0, 0, 0, 0.9),
        inset 0 2px 4px rgba(255, 255, 255, 0.8),
        inset 0 -3px 6px rgba(0, 0, 0, 0.8);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Square Machined Steel Center Block Inside Cylinder */
.center-square-block {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: linear-gradient(135deg, #abb4bf 0%, #464f59 50%, #1e242a 100%);
    border: 2px solid #161a1e;
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.85),
        inset 0 1px 2px rgba(255, 255, 255, 0.7),
        inset 0 -2px 4px rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.center-screw {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(circle, #ff4757 0%, #b81424 60%, #4a0008 100%);
    border: 1px solid #280004;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.9);
    position: relative;
}

.center-screw::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 2px;
    background: #08090a;
}

/* 6 Chambers with Deep Cutouts & Steel Bevels */
.chamber {
    position: absolute;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: radial-gradient(circle, #060809 0%, #13171b 75%, #363e46 100%);
    border: 3px solid #2a3036;
    transform: translate(-50%, -50%);
    box-shadow:
        inset 0 6px 12px rgba(0, 0, 0, 0.98),
        0 2px 5px rgba(255, 255, 255, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.chamber-inner {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(circle, #3d464f 0%, #0a0c0e 85%);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.95);
}

/* Realistic 3D Brass Bullet Cartridge Head (Merminin Arkası) */
.loaded-chamber {
    background: radial-gradient(circle, #3d2f0a 0%, #171203 80%) !important;
    border-color: #735916 !important;
}

.bullet-casing {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, #f7e199 0%, #d4af37 40%, #aa820a 75%, #594200 100%);
    border: 1.5px solid #826200;
    box-shadow:
        0 0 5px rgba(0, 0, 0, 0.9),
        inset 0 1px 2px rgba(255, 255, 255, 0.8),
        inset 0 -2px 5px rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.bullet-primer {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fff0c2 0%, #cfab44 45%, #7a5e0b 90%);
    border: 1px solid #4d3b04;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.8),
        inset 0 1px 2px rgba(0, 0, 0, 0.9);
    position: relative;
}

.bullet-primer::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #2b2003;
    box-shadow: inset 0 1px 1px #000;
}

.ch-1 {
    top: 17%;
    left: 50%;
}

.ch-2 {
    top: 33.5%;
    left: 78.5%;
}

.ch-3 {
    top: 66.5%;
    left: 78.5%;
}

.ch-4 {
    top: 83%;
    left: 50%;
}

.ch-5 {
    top: 66.5%;
    left: 21.5%;
}

.ch-6 {
    top: 33.5%;
    left: 21.5%;
}

/* Premium Vurulma İhtimali Badge (Gümüş & Kırmızı Tema) */
.roulette-chance-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(35, 12, 16, 0.9) 0%, rgba(60, 18, 24, 0.95) 100%);
    border: 2px solid #ff4757;
    border-radius: 30px;
    padding: 10px 22px;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.78rem;
    font-weight: 700;
    color: #ff6b81;
    letter-spacing: 0.5px;
    margin: 10px 0 20px 0;
    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.85),
        0 0 16px rgba(255, 71, 87, 0.3),
        inset 0 1px 2px rgba(255, 107, 129, 0.4);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);
}

/* Ultra 3D Tactile Pushable Trigger Button */
.btn-roulette-action {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.88rem;
    letter-spacing: 0.5px;
    padding: 18px 24px;
    border-radius: 16px;
    border: 2px solid #ff7979;
    border-bottom: 6px solid #4a0808;
    background: linear-gradient(180deg, #ff4d4d 0%, #d63031 50%, #9e1c1c 100%);
    color: #ffffff;
    text-shadow: 2px 2px 0px #000000;
    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.8),
        0 0 22px rgba(255, 77, 77, 0.5),
        inset 0 2px 4px rgba(255, 255, 255, 0.4);
    width: 100%;
    cursor: pointer;
    transition: all 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    top: 0;
    outline: none;
    user-select: none;
}

.btn-roulette-action:hover {
    background: linear-gradient(180deg, #ff6666 0%, #e63946 50%, #b82222 100%);
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.9),
        0 0 32px rgba(255, 77, 77, 0.8),
        inset 0 2px 6px rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    border-bottom-width: 8px;
}

.btn-roulette-action:active {
    transform: translateY(4px);
    border-bottom-width: 2px;
    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.8),
        inset 0 2px 5px rgba(0, 0, 0, 0.6);
}

.btn-roulette-action:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    border-bottom-width: 4px;
    box-shadow: none;
}

.roulette-waiting-text {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7rem;
    color: #abb1a9;
    background: rgba(0, 0, 0, 0.4);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 12px;
    margin-top: 10px;
    line-height: 1.5;
}

/* ── SUPERSONIC BULLET FLYBY OVERLAY (LEFT TO RIGHT WITH AIR SHOCKWAVE) ─────── */
.bullet-flyby-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
    display: none;
}

.bullet-flyby-overlay.active {
    display: block;
}

.flying-bullet-container {
    position: absolute;
    top: 50%;
    left: -350px;
    transform: translateY(-50%);
    width: 320px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    will-change: left, transform;
}

.bullet-flyby-overlay.active .flying-bullet-container {
    animation: bulletFlybyLeftToRight 0.95s cubic-bezier(0.12, 0.75, 0.25, 1) forwards;
}

@keyframes bulletFlybyLeftToRight {
    0% {
        left: -350px;
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        left: calc(100vw + 350px);
        opacity: 0;
    }
}

/* 3D Realistic Metallic Copper/Gold Bullet Head */
.bullet-head {
    position: relative;
    width: 75px;
    height: 24px;
    background: linear-gradient(180deg, #ffe066 0%, #d4af37 35%, #b8860b 65%, #594200 100%);
    border-radius: 0 16px 16px 0;
    box-shadow:
        0 0 20px #ff4d4d,
        0 0 35px #ffa801,
        inset 0 2px 4px rgba(255, 255, 255, 0.9),
        inset 0 -3px 6px rgba(0, 0, 0, 0.8);
    z-index: 5;
    flex-shrink: 0;
}

.bullet-head::before {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 14px solid #ff5e36;
}

.bullet-tip-glow {
    position: absolute;
    right: -14px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow:
        0 0 15px #ffffff,
        0 0 30px #ff3838,
        0 0 50px #ff9f1a;
}

.bullet-body-brass {
    position: absolute;
    left: -20px;
    top: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(180deg, #d4af37 0%, #aa820a 50%, #594200 100%);
    border-right: 2px solid #3d2c00;
}

/* Fire & Smoke Exhaust Trail */
.bullet-fire-trail {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    width: 220px;
    height: 18px;
    background: linear-gradient(90deg, rgba(255, 77, 77, 0) 0%, rgba(255, 120, 0, 0.5) 30%, rgba(255, 230, 0, 0.95) 100%);
    border-radius: 20px;
    filter: blur(3px);
    z-index: 3;
}

/* Supersonic Mach Cone Air Wave (Hava Dalgası) */
.mach-cone-wave {
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 55px solid transparent;
    border-bottom: 55px solid transparent;
    border-left: 180px solid rgba(255, 255, 255, 0.18);
    filter: blur(4px);
    z-index: 2;
    mix-blend-mode: overlay;
}

/* Concentric Glassmorphic Refraction Air Rings (Supersonic Shockwave) */
.air-shockwave-ring {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) rotateY(45deg);
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.75);
    box-shadow:
        0 0 25px rgba(255, 255, 255, 0.8),
        0 0 45px rgba(0, 242, 254, 0.6),
        inset 0 0 15px rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 4;
    animation: pulseShockwave 0.3s ease-out infinite alternate;
}

.air-shockwave-ring.ring-1 {
    right: 15px;
    width: 45px;
    height: 75px;
}

.air-shockwave-ring.ring-2 {
    right: 65px;
    width: 65px;
    height: 95px;
    opacity: 0.75;
}

.air-shockwave-ring.ring-3 {
    right: 125px;
    width: 85px;
    height: 115px;
    opacity: 0.5;
}

@keyframes pulseShockwave {
    0% {
        transform: translateY(-50%) scale(0.92);
    }

    100% {
        transform: translateY(-50%) scale(1.08);
    }
}

/* ── SHAKE EFFECT FOR SHOCK ───────────────────────────────────────────────── */
@keyframes shake {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translate(-4px, 2px) rotate(-1.5deg);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translate(4px, -2px) rotate(1.5deg);
    }
}

/* Screen flash effects */
.roulette-modal-overlay.fired-effect {
    animation: flashRed 1.2s ease-out;
}

.roulette-modal-overlay.survived-effect {
    animation: flashGreen 0.8s ease-out;
}

@keyframes flashRed {
    0% {
        background: rgba(255, 0, 0, 1);
    }

    15% {
        background: rgba(255, 0, 0, 1);
    }

    100% {
        background: radial-gradient(circle, rgba(120, 20, 20, 0.95) 0%, rgba(20, 5, 5, 0.98) 100%);
    }
}

@keyframes flashGreen {
    0% {
        background: rgba(46, 204, 113, 1);
    }

    15% {
        background: rgba(46, 204, 113, 0.8);
    }

    100% {
        background: radial-gradient(circle, rgba(120, 20, 20, 0.95) 0%, rgba(20, 5, 5, 0.98) 100%);
    }
}

/* Cylinder center symbol indicator */
.cylinder-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    font-size: 2.2rem;
    pointer-events: none;
    z-index: 50;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cylinder-indicator.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

/* ── MOBILE RESPONSIVE LOBBY STYLES ───────────────────────────────────────── */
@media (max-width: 600px) {
    body.lobby-bg {
        /* Mobil arka plan görseli */
        background: url('images/blof_arkaplan_mobil.png') no-repeat center center fixed;
        background-size: cover;
    }

    #waiting-screen.panel {
        padding: 12px;
        width: 90%;
        border-radius: 20px;
    }

    .players-box {
        padding: 8px 10px;
        margin: 10px 0;
        border-radius: 10px;
    }

    .players-box h3 {
        font-size: 0.75rem;
        margin-bottom: 6px;
    }

    .players-box ul {
        gap: 6px;
    }

    .players-box li {
        padding: 6px 10px;
        font-size: 0.65rem;
        border-radius: 6px;
    }

    .lobby-seat-map {
        max-width: 100%;
        height: 220px;
        border-radius: 20px;
        padding: 4px;
        margin: 10px auto;
    }

    .lobby-felt-board {
        border-radius: 16px;
    }

    .lobby-seat-pos {
        width: 85px;
        height: 44px;
        padding: 3px;
        border-radius: 6px;
        border-width: 1px;
    }

    .seat-top {
        top: 6px;
    }

    .seat-bottom {
        bottom: 6px;
    }

    .seat-left {
        left: 6px;
    }

    .seat-right {
        right: 6px;
    }

    .seat-player-name {
        font-size: 0.55rem;
        gap: 2px;
    }

    .player-name-text {
        font-size: 0.5rem;
    }

    .seat-join-btn {
        font-size: 0.5rem;
    }

    .seat-leave-btn {
        font-size: 0.5rem;
    }

    .lobby-felt-center {
        width: 65px;
        height: 65px;
        padding: 2px;
        border-width: 1.5px;
    }

    #seat-mode-info {
        font-size: 0.65rem;
    }

    .lobby-felt-center div {
        font-size: 0.45rem !important;
        margin-top: 1px !important;
    }
}

/* Kısa ekranlı bilgisayarlar / dizüstü bilgisayarlar için tasarım optimizasyonu */
@media (max-height: 800px) {
    .players-box {
        margin: 12px 0;
        padding: 12px;
    }

    .players-box li {
        padding: 8px 14px;
        gap: 6px;
    }

    .lobby-seat-map {
        height: 240px;
        margin: 12px auto;
        border-radius: 24px;
    }

    .lobby-felt-board {
        border-radius: 18px;
    }

    .lobby-seat-pos {
        width: 110px;
        height: 52px;
        padding: 4px;
    }

    .seat-join-btn {
        font-size: 0.55rem;
    }

    .seat-player-name {
        font-size: 0.6rem;
    }

    .player-name-text {
        font-size: 0.55rem;
    }

    .lobby-felt-center {
        width: 80px;
        height: 80px;
    }

    #seat-mode-info {
        font-size: 0.75rem;
    }

    .panel {
        padding: 20px;
    }
}

/* Çok kısa ekranlı tarayıcı pencereleri ve mobil cihazlar için ekstra dikey sıkıştırma */
@media (max-height: 600px) {
    .players-box {
        margin: 6px 0;
        padding: 8px 10px;
    }

    .players-box h3 {
        font-size: 0.85rem;
        margin-bottom: 4px;
    }

    .players-box li {
        padding: 6px 12px;
        font-size: 0.75rem;
        gap: 4px;
    }

    .lobby-seat-map {
        height: 180px;
        margin: 8px auto;
        border-radius: 16px;
    }

    .lobby-felt-board {
        border-radius: 12px;
    }

    .lobby-seat-pos {
        width: 95px;
        height: 42px;
        padding: 2px;
    }

    .seat-join-btn {
        font-size: 0.5rem;
    }

    .seat-player-name {
        font-size: 0.55rem;
    }

    .player-name-text {
        font-size: 0.5rem;
    }

    .lobby-felt-center {
        width: 60px;
        height: 60px;
    }

    #seat-mode-info {
        font-size: 0.6rem;
    }

    .lobby-felt-center div {
        font-size: 0.45rem !important;
        margin-top: 1px !important;
    }

    .panel {
        padding: 12px 20px;
    }

    .panel h1 {
        font-size: 1.8rem;
        margin-bottom: 5px;
    }

    .subtitle {
        margin-bottom: 10px;
        font-size: 0.85rem;
    }
}

/* ── MOBILE GAME SCREEN LAYOUT (STEP-BY-STEP BUILD) ───────────────────────── */
@media (max-width: 768px) {

    /* 1. Ekrandaki diğer ögeler gizli kalır (Sadece oyun masası alanı aktiftir) */
    #game-screen>* {
        display: none !important;
    }

    #game-screen>#game-table {
        display: flex !important;
        flex-direction: column !important;
        position: relative !important;
        width: 100% !important;
        height: 100% !important;
        flex: 1 !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        overflow: hidden !important;
    }


    /* 2. Mobil 3D ahşap masa parçaları gizlenir (Kadife kadife zemin kullanılacak) */
    .table-shadow,
    .table-column-base,
    .table-surface-edge {
        display: none !important;
    }

    /* 3. Kişi kartları ekranın en üstünde ve oturma sırasına göre yerleşecek */

    /* Solunda oturan kişi -> Ekranın en üst solunda (sola yapışık) */
    .game-seat.seat-pos-left {
        display: flex !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        margin: 0 !important;
        z-index: 20 !important;
    }

    /* Karşısında oturan kişi -> Diğer iki kişi kartının ortasında */
    .game-seat.seat-pos-top {
        display: flex !important;
        position: absolute !important;
        top: 0 !important;
        left: 50% !important;
        right: auto !important;
        bottom: auto !important;
        transform: translateX(-50%) !important;
        margin: 0 !important;
        z-index: 20 !important;
    }

    /* Sağında oturan kişi -> Ekranın en üst sağında (sağa yapışık) */
    .game-seat.seat-pos-right {
        display: flex !important;
        position: absolute !important;
        top: 0 !important;
        right: 0 !important;
        left: auto !important;
        bottom: auto !important;
        transform: none !important;
        margin: 0 !important;
        z-index: 20 !important;
    }

    /* Boş koltuk slotları gizli */
    .game-seat.empty {
        display: none !important;
    }

    /* Mobil için Oyuncu Kartı (Box) Tasarımı */
    .seat-player-box {
        min-width: 0 !important;
        width: calc(33.3vw - 4px) !important;
        max-width: 115px !important;
        padding: 16px 2px 4px 2px !important;
        border: 2px solid #4a2810 !important;
        border-radius: 10px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.75) !important;
    }

    .seat-avatar-container {
        width: 34px !important;
        height: 34px !important;
        margin: -17px auto 2px auto !important;
        border: 2px solid #4a2810 !important;
    }

    .seat-host-crown {
        font-size: 0.75rem !important;
        top: -8px !important;
        right: -3px !important;
    }

    .seat-player-name {
        font-size: 0.6rem !important;
        font-weight: 700 !important;
        margin: 0 auto 2px auto !important;
        max-width: 100% !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .seat-player-stats {
        padding-top: 2px !important;
        margin-top: 1px !important;
        gap: 2px !important;
        border-top: 1px solid rgba(255, 215, 0, 0.2) !important;
        flex-direction: row !important;
        justify-content: center !important;
    }

    .stat-item {
        padding: 1px 3px !important;
        gap: 2px !important;
        border-radius: 8px !important;
    }

    .stat-icon {
        font-size: 0.5rem !important;
    }

    .stat-val {
        font-size: 0.48rem !important;
    }

    .seat-pass-badge {
        font-size: 0.4rem !important;
        padding: 1px 3px !important;
        top: 1px !important;
        right: 1px !important;
    }

    /* 4. Nasıl Oynanır (Help) Butonu -> Ekranın Sol Altına Alındı */
    .global-how-to-btn {
        left: 20px !important;
        right: auto !important;
        bottom: 20px !important;
    }

    /* 5. Kartlarım Bölgesi -> Yeşil kadife dokulu, kahverengi çerçeveli zemin ve düz yan yana kaydırılabilir kartlar */
    #game-screen>.my-hand-area {
        display: flex !important;
        flex-direction: column !important;
        position: absolute !important;
        bottom: 10px !important;
        left: 10px !important;
        right: 10px !important;
        width: calc(100% - 20px) !important;
        z-index: 50 !important;
        background:
            radial-gradient(ellipse at center, #1b5e20 0%, #0e3b13 70%, #062109 100%),
            repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.03) 0px, rgba(0, 0, 0, 0.03) 2px, transparent 2px, transparent 4px) !important;
        border: 4px solid #4a2810 !important;
        outline: 2px solid #231206 !important;
        border-radius: 16px !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.85), inset 0 0 16px rgba(0, 0, 0, 0.85) !important;
        padding: 8px 10px 10px 10px !important;
        box-sizing: border-box !important;
    }

    .my-hand-area::before {
        content: '' !important;
        position: absolute !important;
        inset: 3px !important;
        border-radius: 12px !important;
        border: 1px solid rgba(255, 215, 0, 0.35) !important;
        pointer-events: none !important;
    }

    .my-hand-area .hand-header {
        margin-bottom: 4px !important;
        position: relative !important;
        z-index: 2 !important;
    }

    .my-hand-area .hand-header h3 {
        font-size: 0.72rem !important;
        color: var(--text-muted) !important;
        gap: 8px !important;
        text-shadow: 1px 1px 2px #000 !important;
    }

    /* Kartlar kabı: Düz yatay hizalama, yarım ay kaldırıldı, kaydırılabilir overflow-x */
    .my-hand-area .card-container {
        display: flex !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        align-items: center !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-behavior: smooth !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 8px 4px 6px 4px !important;
        min-height: 110px !important;
        max-height: 120px !important;
        gap: 8px !important;
        width: 100% !important;
        position: relative !important;
        z-index: 2 !important;
    }

    .my-hand-area .card-fan-row {
        display: flex !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 0 !important;
        gap: 8px !important;
    }

    /* Gizli/ince scrollbar */
    .my-hand-area .card-container::-webkit-scrollbar {
        height: 4px !important;
    }

    .my-hand-area .card-container::-webkit-scrollbar-thumb {
        background: rgba(255, 215, 0, 0.4) !important;
        border-radius: 4px !important;
    }

    /* Kartlar mobilde dönmeyecek, yarım ay olmayacak, düz yan yana duracak */
    .my-hand-area .card {
        transform: none !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
        width: 62px !important;
        height: 92px !important;
    }

    .my-hand-area .card:hover {
        transform: translateY(-4px) !important;
    }

    .my-hand-area .card.selected {
        transform: translateY(-10px) !important;
        box-shadow: 0 7px 16px rgba(0, 0, 0, 0.6), 0 0 0 3px #00f2fe !important;
    }

    /* 6. Aksiyon Butonları (Hamle Butonları & Ahşap/Kadife Zemin) -> Kartlarım yapısının hemen üstüne alındı */
    #game-screen>#action-controls {
        display: flex !important;
        position: absolute !important;
        bottom: 190px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: calc(100% - 20px) !important;
        max-width: 350px !important;
        z-index: 50 !important;
        margin: 0 !important;
    }

    /* 7. Beyan Değeri Kutucuğu -> Butonların üstünde, sağına yapışık, 10px yükseltildi */
    .declare-bar-container {
        display: flex !important;
        flex-direction: column !important;
        position: absolute !important;
        bottom: 270px !important;
        right: 10px !important;
        left: auto !important;
        width: calc(50% - 15px) !important;
        max-width: 175px !important;
        height: 145px !important;
        z-index: 50 !important;
        margin: 0 !important;
        padding: 6px 4px !important;
        box-sizing: border-box !important;
    }

    .declare-bar-title {
        font-size: 0.58rem !important;
        margin-bottom: 4px !important;
    }

    .declare-bar-row {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px 4px !important;
        overflow-y: auto !important;
        max-height: 110px !important;
        padding: 2px 4px !important;
        justify-items: center !important;
        align-items: center !important;
    }

    .declare-bar-card {
        width: 48px !important;
        height: 72px !important;
        background-size: contain !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        border-radius: 5px !important;
        padding: 0 !important;
        margin: 0 auto !important;
        box-shadow: 0 3px 6px rgba(0, 0, 0, 0.6) !important;
    }

    /* 8. Mesajlar / Oyun Logları Kutucuğu -> Butonların üstünde, soluna yapışık, 10px yükseltildi, aralarında 10px boşluk var */
    .history-log-container {
        display: flex !important;
        flex-direction: column !important;
        position: absolute !important;
        bottom: 270px !important;
        left: 10px !important;
        right: auto !important;
        width: calc(50% - 15px) !important;
        max-width: 175px !important;
        height: 145px !important;
        z-index: 50 !important;
        margin: 0 !important;
        padding: 6px 4px !important;
        box-sizing: border-box !important;
    }

    .history-log {
        font-size: 0.6rem !important;
        gap: 4px !important;
        overflow-y: auto !important;
        height: 100% !important;
    }

    .log-item {
        padding: 3px 5px !important;
        font-size: 0.58rem !important;
        line-height: 1.2 !important;
    }

    /* 9. Sıra Kimde Banner'ı -> Ortadaki oyuncu kartının tam altında (10px temiz boşlukla) */
    #game-screen>#turn-banner {
        display: flex !important;
        position: absolute !important;
        top: 112px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 50 !important;
        margin: 0 !important;
        padding: 5px 12px 5px 22px !important;
        font-size: 0.54rem !important;
        white-space: nowrap !important;
    }

    #game-screen>#turn-banner::before {
        left: 8px !important;
        width: 8px !important;
        height: 8px !important;
    }

    /* 10. Yerdeki Kart Yığını -> Sıra Kimde Banner'ının tam 15px altında kırmızı kadife dokulu kahverengi çerçeveli zemin */
    .table-shadow,
    .table-column-base,
    .table-surface-edge {
        display: none !important;
    }

    .dining-table-container {
        display: flex !important;
        position: absolute !important;
        top: 115px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 135px !important;
        height: 115px !important;
        background:
            radial-gradient(ellipse at center, #8b0000 0%, #5a0000 65%, #2b0000 100%),
            repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.05) 0px, rgba(0, 0, 0, 0.05) 2px, transparent 2px, transparent 4px) !important;
        border: 4px solid #4a2810 !important;
        outline: 2px solid #231206 !important;
        border-radius: 14px !important;
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.85), inset 0 0 14px rgba(0, 0, 0, 0.9) !important;
        z-index: 30 !important;
        justify-content: center !important;
        align-items: center !important;
        overflow: hidden !important;
        padding: 4px !important;
        box-sizing: border-box !important;
    }

    .dining-table-container::before {
        content: '' !important;
        position: absolute !important;
        inset: 3px !important;
        border-radius: 10px !important;
        border: 1px solid rgba(255, 215, 0, 0.35) !important;
        pointer-events: none !important;
        z-index: 2 !important;
    }

    .table-surface-wrap,
    .table-surface-top {
        display: flex !important;
        position: relative !important;
        transform: none !important;
        width: 100% !important;
        height: 100% !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        perspective: none !important;
        justify-content: center !important;
        align-items: center !important;
    }

    #pile-container.pile-box {
        display: flex !important;
        transform: none !important;
        margin: 0 !important;
        justify-content: center !important;
        align-items: center !important;
        position: relative !important;
        width: 100% !important;
        height: 100% !important;
    }

    .card-back-stack {
        position: relative !important;
        width: 52px !important;
        height: 76px !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        transform: translateY(-40px) !important;
    }

    .stack-card {
        position: absolute !important;
        width: 50px !important;
        height: 74px !important;
    }

    /* 11. Blöf Açıklama Ekranı -> Blöf basılınca doğrudan aynı alanda (Banner altında) açılır */
    #bluff-reveal-overlay.reveal-overlay {
        position: absolute !important;
        top: 148px !important;
        left: 50% !important;
        bottom: auto !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        width: 90% !important;
        max-width: 300px !important;
        height: auto !important;
        z-index: 100 !important;
        background: transparent !important;
    }

    .reveal-content {
        background: rgba(15, 8, 30, 0.96) !important;
        border: 2.5px solid var(--accent-gold) !important;
        border-radius: 14px !important;
        padding: 10px 12px !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.95) !important;
        width: 100% !important;
    }

    #lbl-reveal-title {
        font-size: 0.72rem !important;
        margin-bottom: 6px !important;
    }

    #reveal-cards-container.revealed-cards {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 6px !important;
        margin: 6px 0 !important;
        flex-wrap: wrap !important;
    }

    #reveal-cards-container .card {
        width: 44px !important;
        height: 66px !important;
        transform: none !important;
        margin: 0 !important;
        background-size: contain !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
    }

    #lbl-reveal-result.reveal-result-msg {
        font-size: 0.65rem !important;
        padding: 4px 8px !important;
        margin-top: 4px !important;
    }
}