
/* Prevent pull-to-refresh on mobile */
html, body { overscroll-behavior-y: none !important; overscroll-behavior-x: none !important; }
/* style.css - Complete Redesign */

:root {
    --bg-color: #0b110d;
    --table-green: #0d4a2b; /* Rich felt green */
    --table-green-light: #166e42;
    --table-border: #4a2810; /* Dark wood/leather */
    
    --gold: #f2c94c;
    --gold-dark: #b8912d;
    --gold-light: #ffea99;
    
    --text-light: #e0e6ed;
    --text-white: #ffffff;
    --muted: #8b9d93;

    --panel-bg: rgba(10, 18, 14, 0.85);
    --panel-border: rgba(242, 201, 76, 0.2);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    --shadow-table: inset 0 0 100px rgba(0,0,0,0.8), 0 20px 50px rgba(0,0,0,0.5);
    --shadow-card: -4px 4px 10px rgba(0,0,0,0.5);
    --shadow-chip: 0 5px 10px rgba(0,0,0,0.4);

    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body, html {
  /* Safe area and 100dvh adjustments for mobile notches */
  min-height: 100vh;
  min-height: -webkit-fill-available;
  min-height: 100dvh;
  padding-top: env(safe-area-inset-top);
  width: 100%;
    height: 100dvh;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    background-image: radial-gradient(circle at 50% 0%, #15241b 0%, #080d0a 100%);
    color: var(--text-light);
}

/* ================== TYPOGRAPHY ================== */
h1, h2, h3, .logo-text, .table-center-text h2 {
    font-family: 'Cinzel', serif;
}

.sari-metin {
    color: var(--gold);
    text-shadow: 0 0 10px rgba(242, 201, 76, 0.3);
}

/* ================== COMMON BUTTONS ================== */
button {
    font-family: 'Inter', sans-serif;
    border: none;
    outline: none;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(0.5);
}

.btn-gold {
    background: linear-gradient(to bottom, var(--gold-light), var(--gold), var(--gold-dark));
    color: #000;
    font-weight: bold;
    border-radius: var(--radius-sm);
    padding: 10px 20px;
    box-shadow: 0 4px 15px rgba(242, 201, 76, 0.3);
}

.btn-gold:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 201, 76, 0.5);
}

.btn-gold-large {
    width: 100%;
    padding: 16px;
    font-size: 1.2rem;
    background: linear-gradient(to bottom, var(--gold-light), var(--gold), var(--gold-dark));
    color: #000;
    font-weight: 800;
    border-radius: var(--radius-md);
    text-transform: uppercase;
    box-shadow: 0 6px 20px rgba(242, 201, 76, 0.3);
}

.btn-green {
    background: linear-gradient(135deg, #1f8c54, #125732);
    color: white;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--radius-md);
}

.btn-green-large {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #1f8c54, #125732);
    color: white;
    font-weight: 700;
    border-radius: var(--radius-md);
    margin-top: 15px;
}

.btn-dark {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-md);
}

/* ================== LOBBY ================== */
#lobby {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lobby-header {
    text-align: center;
    margin-bottom: 40px;
}

.logo-text {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--gold);
    text-shadow: 0 2px 4px rgba(0,0,0,0.8), 0 0 20px rgba(242, 201, 76, 0.5);
    letter-spacing: 2px;
}

.lobby-header p {
    font-size: 1.2rem;
    color: var(--muted);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-top: 5px;
}

.lobi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    width: 100%;
    max-width: 1000px;
}

.lobi-sol, .lobi-sag {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-lg);
    padding: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.lobi-sol h3, .lobi-sag h2 {
    color: var(--gold);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

#hostAyarlari {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

#hostAyarlari, #bahisAlani {
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.05);
}

#desteSecimAlani {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    width: 100%;
}

.ayar-satir {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
}

input[type="number"], select {
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--panel-border);
    color: white;
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

input[type="number"]:focus, select:focus {
    outline: none;
    border-color: var(--gold);
}

.chip-butonlar {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 20px 0;
}

.bahis-aksiyon {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.bahis-aksiyon button {
    flex: 1;
}

#oyuncuListesi {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#oyuncuListesi li {
    background: rgba(0,0,0,0.4);
    border-left: 3px solid var(--gold);
    padding: 15px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* CHIPS */
.chip-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-weight: 800;
    color: white;
    border: 4px dashed rgba(255,255,255,0.5);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5), 0 5px 10px rgba(0,0,0,0.4);
    position: relative;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chip-btn:before {
    content: '';
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
}

.chip-btn:hover {
    transform: scale(1.1) rotate(15deg);
}

.chip-btn:active {
    transform: scale(0.95);
}

.chip-10 { background: radial-gradient(circle at 30% 30%, #e74c3c, #96281b); }
.chip-50 { background: radial-gradient(circle at 30% 30%, #3498db, #1f3a93); }
.chip-100 { background: radial-gradient(circle at 30% 30%, #2ecc71, #1e824c); }
.chip-500 { background: radial-gradient(circle at 30% 30%, #9b59b6, #674172); }

/* ================== GAME AREA ================== */
#game {
    width: 100%;
    height: 100%;
    height: 100dvh;
    min-height: -webkit-fill-available;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* CASINO TABLE */
.casino-table-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    perspective: 1000px;
    overflow: hidden;
}

.casino-table {
    width: 100%;
    max-width: 1200px;
    height: 100%;
    max-height: 800px;
    position: relative;
    border-radius: 200px 200px 40px 40px;
    background: var(--table-border);
    padding: 20px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
}

.table-felt {
    width: 100%;
    height: 100%;
    background-color: var(--table-green);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.15'/%3E%3C/svg%3E"), radial-gradient(circle at 50% 30%, var(--table-green-light) 0%, transparent 60%);
    border-radius: 180px 180px 20px 20px;
    box-shadow: var(--shadow-table);
    border: 2px solid rgba(255,255,255,0.1);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.table-center-text {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
    width: 80%;
}

.table-center-text h2 {
    font-size: clamp(1.5rem, 3vw, 3rem);
    letter-spacing: 5px;
    color: rgba(242, 201, 76, 0.5);
    margin-bottom: 10px;
}

.table-center-text p {
    font-size: clamp(0.8rem, 1.5vw, 1.2rem);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* MATS (Player Spots) */
.mat-konteyner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    z-index: 10;
    transition: var(--transition);
}

.oyuncu-mat {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* Dealer at top */
#dealerAlani {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
}

#dealerAlani .isim-etiket {
    background: linear-gradient(135deg, #c0392b, #8e44ad);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.2);
}

/* Other players curved */
.players-arc {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.players-arc > * {
    pointer-events: auto;
}

/* Slot Definitions for Other Players */
.spot-0 { position: absolute; left: 2%; bottom: 45%; transform: rotate(40deg); }
.spot-1 { position: absolute; left: 8%; bottom: 30%; transform: rotate(25deg); }
.spot-2 { position: absolute; left: 22%; bottom: 15%; transform: rotate(10deg); }
.spot-4 { position: absolute; right: 22%; bottom: 15%; transform: rotate(-10deg); }
.spot-5 { position: absolute; right: 8%; bottom: 30%; transform: rotate(-25deg); }
.spot-6 { position: absolute; right: 2%; bottom: 45%; transform: rotate(-40deg); }

/* Main player bottom */
.main-player-mat {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at bottom, rgba(242, 201, 76, 0.15), transparent 70%);
    padding: 20px 40px;
    border-radius: 50%;
}

.isim-etiket {
    background: rgba(0,0,0,0.6);
    color: var(--text-white);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    margin-bottom: 5px;
    border: 1px solid var(--panel-border);
}

.bilgi-etiket {
    background: rgba(0,0,0,0.8);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    text-align: center;
    margin-top: 15px;
    border: 1px solid rgba(255,255,255,0.1);
    min-width: 120px;
}

/* CARDS */
.kart-kutusu {
    position: relative;
    height: 140px;
    width: 100px;
    display: flex;
    justify-content: center;
}

.kartResim {
    position: absolute;
    width: 90px;
    border-radius: 6px;
    box-shadow: var(--shadow-card);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: bottom center;
}

.kart-yeni {
    animation: kartGel 0.5s ease-out backwards;
}

@keyframes kartGel {
    0% { transform: translateY(-300px) scale(1.5) rotate(180deg); opacity: 0; }
    100% { opacity: 1; }
}

/* CHIPS ON TABLE */
.oyuncu-chipleri {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: center;
    margin-top: -10px;
    margin-bottom: 5px;
    z-index: 5;
}

.chip-sutun {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin-left: -6px;
}
.chip-sutun:first-child {
    margin-left: 0;
}

.masa-chip {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.9), 0 0 3px rgba(0,0,0,1);
    background: radial-gradient(circle at 30% 30%, #f2c94c, #b8912d);
    border: 2px dashed rgba(255,255,255,0.65);
    box-shadow: 0 3px 6px rgba(0,0,0,0.65);
    position: relative;
    user-select: none;
}
.masa-chip-10 { background: radial-gradient(circle at 30% 30%, #e74c3c, #96281b); }
.masa-chip-50 { background: radial-gradient(circle at 30% 30%, #3498db, #1f3a93); }
.masa-chip-100 { background: radial-gradient(circle at 30% 30%, #2ecc71, #1e824c); }
.masa-chip-500 { background: radial-gradient(circle at 30% 30%, #9b59b6, #674172); }
.stacked-chip { margin-top: -26px; }

/* HIGHLIGHT ACTIVE PLAYER */
.active-turn {
    filter: drop-shadow(0 0 15px rgba(242, 201, 76, 0.8));
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { filter: drop-shadow(0 0 10px rgba(242, 201, 76, 0.5)); }
    50% { filter: drop-shadow(0 0 25px rgba(242, 201, 76, 1)); }
    100% { filter: drop-shadow(0 0 10px rgba(242, 201, 76, 0.5)); }
}

.busted .kartResim {
    filter: grayscale(0.8) brightness(0.6);
}

.blackjack-efekt {
    animation: goldGlow 1.5s infinite alternate;
}
@keyframes goldGlow {
    from { filter: drop-shadow(0 0 10px #f2c94c); }
    to { filter: drop-shadow(0 0 30px #f2c94c) drop-shadow(0 0 10px #fff); }
}

/* ACTIONS BAR */
#aksiyonAlani {
    position: absolute;
    bottom: calc(20px + env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 100;
    background: rgba(0,0,0,0.6);
    padding: 10px 20px;
    border-radius: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.oyun-aksiyon-btn {
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 8px 15px rgba(0,0,0,0.4);
    color: white;
}

.oyun-aksiyon-btn:hover:not(:disabled) {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.6);
}

.oyun-aksiyon-btn:active:not(:disabled) {
    transform: translateY(2px);
}

.btn-action-hit { background: linear-gradient(to bottom, #27ae60, #1e8449); }
.btn-action-stand { background: linear-gradient(to bottom, #e74c3c, #c0392b); }
.btn-action-double { background: linear-gradient(to bottom, #f39c12, #d35400); color: #000; }

#siraYazisi {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    padding: 10px 20px;
    border-radius: 20px;
    color: var(--gold);
    font-weight: bold;
    font-size: 1.2rem;
    z-index: 50;
    border: 1px solid var(--gold);
    box-shadow: 0 0 15px rgba(242, 201, 76, 0.4);
}

#bahisEkrani {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}

.bahis-overlay-icerik {
    background: var(--panel-bg);
    border: 1px solid var(--gold);
    padding: 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    max-width: 400px;
    width: 90%;
}

.bahis-overlay-icerik h2 {
    color: var(--gold);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.sayac-kutu {
    font-size: 3rem;
    font-weight: 900;
    color: #e74c3c;
    text-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
    margin-bottom: 20px;
}

.izleyici-notu {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 15px;
}

/* RESULT TEXT */
.kazanc-yazisi {
    position: absolute;
    font-size: 2.5rem;
    font-weight: 900;
    color: #2ecc71;
    text-shadow: 0 0 20px rgba(46, 204, 113, 0.8), 0 5px 5px rgba(0,0,0,0.8);
    pointer-events: none;
    animation: floatUp 2s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    z-index: 100;
}
.kayip-yazisi {
    color: #e74c3c;
    text-shadow: 0 0 20px rgba(231, 76, 60, 0.8), 0 5px 5px rgba(0,0,0,0.8);
}

@keyframes floatUp {
    0% { transform: translateY(20px) scale(0.5); opacity: 0; }
    20% { transform: translateY(0) scale(1.2); opacity: 1; }
    80% { transform: translateY(-60px) scale(1); opacity: 1; }
    100% { transform: translateY(-80px) scale(0.8); opacity: 0; }
}

/* ================== RESPONSIVE ================== */
@media (max-width: 992px) {
    .casino-table {
        border-radius: 100px 100px 20px 20px;
    }
    .table-felt {
        border-radius: 90px 90px 10px 10px;
    }
    .players-arc {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .casino-table-wrapper {
        padding: 5px;
    }
    .casino-table {
        border-radius: 40px 40px 15px 15px;
        padding: 10px;
    }
    .table-felt {
        border-radius: 30px 30px 10px 10px;
    }
    .lobi-grid { grid-template-columns: 1fr; }
    #aksiyonAlani {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        bottom: calc(25px + env(safe-area-inset-bottom));
        padding: 5px;
        border-radius: 15px;
        gap: 5px;
    }
    .oyun-aksiyon-btn {
        padding: 8px 10px;
        font-size: 0.8rem;
        flex: 1 1 45%;
        border-radius: 15px;
    }
    .kartResim { width: 55px; }
    .kart-kutusu { height: 80px; width: 55px; }
    #siraYazisi { font-size: 0.8rem; top: 5px; padding: 5px 10px; }
    
    #dealerAlani {
        top: 2%;
    }
    .players-arc {
        top: 0;
    }
    
    .spot-0 { left: -5%; bottom: auto; top: 15%; transform: rotate(45deg) scale(0.85); }
    .spot-1 { left: 2%; bottom: auto; top: 30%; transform: rotate(25deg) scale(0.85); }
    .spot-2 { left: 10%; bottom: auto; top: 45%; transform: rotate(10deg) scale(0.85); }
    .spot-4 { right: 10%; bottom: auto; top: 45%; transform: rotate(-10deg) scale(0.85); }
    .spot-5 { right: 2%; bottom: auto; top: 30%; transform: rotate(-25deg) scale(0.85); }
    .spot-6 { right: -5%; bottom: auto; top: 15%; transform: rotate(-45deg) scale(0.85); }
    .main-player-mat {
        bottom: 120px; /* Butonların altında ezilmemesi için yukarı alındı */
        padding: 10px;
    }
    
    .isim-etiket {
        font-size: 0.7rem;
        padding: 2px 8px;
    }
    .bilgi-etiket {
        font-size: 0.7rem;
        padding: 4px 8px;
        min-width: 90px;
        margin-top: 5px;
    }
    /* LOBBY MOBİL DÜZENLEMELERİ */
    #lobby {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding: 60px 10px 20px 10px;
        height: 100dvh;
        overflow-y: auto;
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    .lobby-header {
        display: none; /* Mobilde başlığı tamamen gizle */
    }
    .lobi-grid {
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    
    .ayar-satir, #desteSecimAlani {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    input[type="number"], select, .custom-select {
        width: 100%;
    }
    .lobi-sol, .lobi-sag {
        padding: 12px;
        box-shadow: none;
    }
    .chip-btn {
        width: 36px;
        height: 36px;
        font-size: 0.65rem;
        border-width: 2px;
    }
    .chip-butonlar {
        gap: 8px;
        margin: 10px 0;
    }
    .bahis-aksiyon {
        flex-direction: row; /* Alt alta yerine yan yana olsun, dikeyde yer kazanalım */
        gap: 10px;
        margin-bottom: 10px;
    }
    .bahis-aksiyon button {
        width: 100%;
        padding: 10px;
        font-size: 0.9rem;
    }
    #hostAyarlari, #bahisAlani {
        padding: 12px;
        margin-bottom: 10px;
    }
    .lobi-sol h3, .lobi-sag h2 {
        font-size: 1rem;
        margin-bottom: 10px;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* CANLI BAKIYE TABLOSU — Masada Transparan Overlay */
.canli-bakiye-tablosu {
    position: fixed;
    top: 65px;
    left: 15px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(242, 201, 76, 0.25);
    border-radius: var(--radius-md);
    padding: 12px;
    min-width: 160px;
    z-index: 150;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.05);
    transition: opacity 0.3s ease;
}

.bakiye-baslik {
    color: var(--gold);
    font-weight: 800;
    font-size: 0.95rem;
    margin-bottom: 8px;
    text-align: center;
    border-bottom: 1px solid rgba(242, 201, 76, 0.25);
    padding-bottom: 5px;
    font-family: 'Cinzel', serif;
}

#canliBakiyeListesi {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

#canliBakiyeListesi li {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: white;
    gap: 8px;
}

#canliBakiyeListesi li .b-isim {
    font-weight: 600;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#canliBakiyeListesi li .b-deger {
    color: #2ecc71;
    font-weight: bold;
}

@media (max-width: 768px) {
    .canli-bakiye-tablosu {
        top: 52px;
        left: 8px;
        padding: 8px;
        min-width: 130px;
    }
}

/* ================== TUR SKORU TABLOSU ================== */
.tur-skor-tablosu {
    position: fixed;
    top: 65px;
    left: 15px;
    background: rgba(0, 10, 30, 0.25);
    border: 1px solid rgba(100, 180, 255, 0.3);
    border-radius: var(--radius-md);
    padding: 12px;
    min-width: 175px;
    z-index: 150;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2), inset 0 1px 0 rgba(100,180,255,0.05);
}

.tur-skor-tablosu .bakiye-baslik {
    color: #64b5f6;
    border-bottom-color: rgba(100, 181, 246, 0.3);
}

.kalan-tur-info {
    font-size: 0.78rem;
    color: var(--muted);
    text-align: center;
    margin-bottom: 8px;
}

#turSkorListesi {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#turSkorListesi li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: white;
}

.tur-skor-deger {
    display: flex;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 700;
}

.skor-w { color: #2ecc71; }
.skor-l { color: #e74c3c; }
.skor-d { color: #f39c12; }

@media (max-width: 768px) {
    .tur-skor-tablosu {
        top: 52px;
        left: 8px;
        padding: 8px;
        min-width: 145px;
    }
}

/* ================== TUR SONU EKRANI ================== */
.tur-sonu-kutu {
    background: linear-gradient(160deg, rgba(10,18,14,0.99), rgba(5,10,7,0.99));
    border: 2px solid rgba(242, 201, 76, 0.7);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    max-width: 520px;
    width: 94%;
    box-shadow: 0 0 60px rgba(242,201,76,0.2), 0 25px 50px rgba(0,0,0,0.8);
    animation: slideInUp 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes slideInUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.tur-sonu-trofei {
    font-size: 4rem;
    margin-bottom: 10px;
    display: block;
    animation: trofeiGlow 2s infinite alternate;
}

@keyframes trofeiGlow {
    from { filter: drop-shadow(0 0 10px rgba(242,201,76,0.5)); transform: scale(1); }
    to { filter: drop-shadow(0 0 25px rgba(242,201,76,1)); transform: scale(1.05); }
}

.tur-sonu-baslik {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 2rem;
    margin-bottom: 25px;
    text-shadow: 0 0 20px rgba(242,201,76,0.5);
    letter-spacing: 3px;
}

.tur-sonu-liste {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.tur-sonu-satir {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: rgba(255,255,255,0.04);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.07);
    text-align: left;
    transition: var(--transition);
}

.tur-kazanan {
    background: rgba(242,201,76,0.12) !important;
    border-color: rgba(242,201,76,0.4) !important;
    box-shadow: 0 0 15px rgba(242,201,76,0.1);
}

.tur-sonu-medal {
    font-size: 1.6rem;
    min-width: 32px;
}

.tur-sonu-isim {
    flex: 1;
    font-weight: 700;
    font-size: 1rem;
}

.tur-sonu-skor {
    display: flex;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    .tur-sonu-kutu {
        padding: 25px 15px;
    }
    .tur-sonu-baslik {
        font-size: 1.4rem;
    }
    .tur-sonu-trofei {
        font-size: 3rem;
    }
    .tur-sonu-skor {
        gap: 5px;
        font-size: 0.8rem;
    }
}

/* ================== MOD SEÇİMİ (LOBİ) ================== */
.mod-secim {
    display: flex;
    gap: 8px;
    width: 100%;
    margin-bottom: 18px;
}

.mod-btn {
    flex: 1;
    padding: 10px 8px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.06);
    color: var(--muted);
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.08);
    transition: var(--transition);
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.mod-btn.aktif-mod {
    background: linear-gradient(135deg, rgba(242,201,76,0.18), rgba(242,201,76,0.06));
    color: var(--gold);
    border-color: rgba(242,201,76,0.5);
    box-shadow: 0 0 12px rgba(242,201,76,0.15);
}

.mod-btn:hover:not(.aktif-mod) {
    background: rgba(255,255,255,0.1);
    color: var(--text-light);
}

.turlu-mod-bilgi {
    background: rgba(100,180,255,0.08);
    border: 1px solid rgba(100,180,255,0.2);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-size: 0.82rem;
    color: #90caf9;
    line-height: 1.5;
    margin-bottom: 15px;
    text-align: center;
}

.ayar-aciklama {
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 4px;
    text-align: center;
    width: 100%;
}

@media (max-width: 768px) {
    .mod-btn {
        padding: 8px 5px;
        font-size: 0.78rem;
    }
    .mod-secim {
        gap: 5px;
        margin-bottom: 12px;
    }
}
/* --- NASIL OYNANIR GLOBAL BUTON VE MODAL --- */
.global-how-to-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #00b4d8, #0077b6);
    color: white;
    border: 2px solid #4cc9f0;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 99990;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    transition: transform 0.2s, box-shadow 0.2s;
}
.global-how-to-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 180, 216, 0.6);
}
.global-how-to-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    background: rgba(0,0,0,0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}
.global-how-to-modal:not(.hidden) {
    display: flex;
}
.global-how-to-modal.hidden {
    display: none !important;
}
.global-how-to-box {
    background: #1a0814;
    padding: 30px;
    border-radius: 20px;
    border: 3px solid #d900ff;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    box-shadow: 0 0 30px rgba(217,0,255,0.4);
    color: white;
    font-family: 'Quicksand', sans-serif;
}
.global-how-to-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #ff4757;
    font-size: 2rem;
    cursor: pointer;
    font-weight: bold;
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
}
.global-how-to-close:hover {
    color: #ff6b81;
}
.global-how-to-title {
    font-family: 'Fredoka One', cursive, sans-serif;
    color: #ffde00;
    margin-bottom: 15px;
    font-size: 1.6rem;
    letter-spacing: 1px;
}
.global-how-to-text {
    font-size: 1.1rem;
    line-height: 1.5;
}

/* ================== MAT BAKİYE / BAHİS OVERLAY ================== */
.mat-bakiye-tag {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: -3px;
    pointer-events: none;
    z-index: 10;
}

.bakiye-curve-svg {
    width: 155px;
    height: 36px;
    overflow: visible;
}

.bakiye-curve-text {
    font-size: 32px;
    font-weight: 800;
    fill: rgba(255, 255, 255, 0.5);
    letter-spacing: 2px;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.8));
}

/* Turlu mod için curved score stili */
.turlu-curve-svg {
    width: 175px;
    height: 36px;
}
.turlu-curve-text {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
}
.skor-w-curve {
    fill: rgba(46, 204, 113, 0.75);
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.85));
}
.skor-l-curve {
    fill: rgba(231, 76, 60, 0.75);
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.85));
}
.skor-d-curve {
    fill: rgba(243, 156, 18, 0.75);
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.85));
}

/* Masa ortası transparan turlu mod bilgisi */
.masa-turlu-bilgi {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
    z-index: 5;
    font-family: 'Cinzel', serif;
    letter-spacing: 3px;
    width: 80%;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.7));
}
.masa-turlu-baslik {
    font-size: clamp(1.4rem, 2.5vw, 2.2rem);
    font-weight: 800;
    color: rgba(242, 201, 76, 0.5);
    margin-bottom: 6px;
    text-transform: uppercase;
    text-shadow: 0 0 15px rgba(242, 201, 76, 0.2);
}
.masa-turlu-detay {
    font-size: clamp(0.85rem, 1.6vw, 1.25rem);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 2px;
}
.masa-turlu-sayi {
    color: rgba(242, 201, 76, 0.7);
    font-weight: 900;
}

/* chip-wrap: çipler + bahis rakamı için ortak konteyner */
.chip-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: -10px;
    margin-bottom: 5px;
}

/* bahis-rakam kaldırıldı */
.bahis-rakam {
    display: none !important;
}

@media (max-width: 768px) {
    .mat-bakiye-tag {
        margin-bottom: -2px;
    }
    .bakiye-curve-svg {
        width: 120px;
        height: 28px;
    }
    .bakiye-curve-text {
        font-size: 25px;
    }
    .turlu-curve-svg {
        width: 140px;
        height: 28px;
    }
    .turlu-curve-text {
        font-size: 20px;
    }
    .masa-turlu-bilgi {
        top: 38%;
        width: 90%;
    }
    .masa-turlu-baslik {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }
    .masa-turlu-detay {
        font-size: 0.8rem;
    }
    .oyuncu-chipleri {
        margin-top: -10px;
        margin-bottom: 5px;
    }
    .chip-sutun {
        margin-left: -4px;
    }
    .chip-sutun:first-child {
        margin-left: 0;
    }
    .masa-chip {
        width: 20px;
        height: 20px;
        font-size: 0.45rem;
        margin-left: 0;
        border-width: 1px;
    }
    .stacked-chip {
        margin-top: -16px;
    }
}


/* ================== İSİM GİRİŞ MODALI ================== */
.isim-giris-kutu {
    background: linear-gradient(160deg, rgba(12,22,16,0.99), rgba(6,12,8,0.99));
    border: 2px solid rgba(242, 201, 76, 0.5);
    border-radius: var(--radius-lg);
    padding: 45px 35px;
    text-align: center;
    max-width: 400px;
    width: 92%;
    box-shadow: 0 0 60px rgba(242,201,76,0.15), 0 25px 50px rgba(0,0,0,0.8);
    animation: slideInUp 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.isim-giris-ikon {
    font-size: 4rem;
    margin-bottom: 12px;
    display: block;
    filter: drop-shadow(0 0 15px rgba(242,201,76,0.6));
    animation: trofeiGlow 2s infinite alternate;
}

.isim-giris-baslik {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 1.8rem;
    letter-spacing: 3px;
    margin-bottom: 6px;
    text-shadow: 0 0 20px rgba(242,201,76,0.4);
}

.isim-giris-alt {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.isim-giris-input {
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(242, 201, 76, 0.3);
    border-radius: var(--radius-sm);
    color: white;
    font-size: 1.15rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    padding: 14px 18px;
    text-align: center;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.isim-giris-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(242,201,76,0.25);
}

.isim-giris-input.giris-hata {
    border-color: #e74c3c;
    box-shadow: 0 0 15px rgba(231,76,60,0.4);
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
}

@media (max-width: 768px) {
    .isim-giris-kutu {
        padding: 30px 20px;
    }
    .isim-giris-baslik {
        font-size: 1.4rem;
    }
    .isim-giris-ikon {
        font-size: 3rem;
    }
}

/* ================== LANDSCAPE BLOCKER ================== */
#landscape-blocker {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(19, 10, 31, 0.98);
    z-index: 999999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 20px;
    backdrop-filter: blur(15px);
}

#landscape-blocker .rotate-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    color: #d900ff;
    text-shadow: 0 0 20px rgba(217, 0, 255, 0.8);
    animation: rotatePhone 1.5s infinite ease-in-out alternate;
}

#landscape-blocker h2 {
    color: #ffde00;
    margin-bottom: 15px;
    font-size: 1.6rem;
    font-family: 'Fredoka One', cursive, sans-serif;
    letter-spacing: 1px;
    text-shadow: 0 0 15px rgba(255, 94, 0, 0.8);
}

#landscape-blocker p {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.1rem;
    line-height: 1.5;
    color: #e2e8f0;
    font-weight: 700;
}

@keyframes rotatePhone {
    0% { transform: rotate(-90deg) scale(0.9); }
    100% { transform: rotate(0deg) scale(1.1); }
}

@media screen and (max-width: 950px) and (orientation: landscape) and (pointer: coarse) and (hover: none) {
    #landscape-blocker {
        display: flex !important;
    }
}
