body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* Daha gerçekçi yeşil çuha masa örtüsü (Radial Gradient) */
    background: radial-gradient(circle at center, #3c8d40 0%, #1e4d2b 100%);
    margin: 0;
    overflow: hidden;
    color: white;
    user-select: none;
}

/* Oyun Alanı */
#game-board {
    position: relative;
    width: 100vw;
    height: 100vh;
}

/* --- OYUNCU ALANLARI --- */
.player { 
    position: absolute; 
    text-align: center; 
    z-index: 10;
}

/* Botların Konumları ve İsim Etiketleri */
.bot-top { top: 20px; left: 50%; transform: translateX(-50%); }
.bot-left { top: 50%; left: 30px; transform: translateY(-50%); }
.bot-right { top: 50%; right: 30px; transform: translateY(-50%); }

.bot-hand {
    background: rgba(0,0,0,0.3);
    padding: 5px 10px;
    border-radius: 15px;
    margin-top: 5px;
    font-size: 14px;
    color: #ddd;
}

/* --- KULLANICI ISTAKASI (YENİ TASARIM) --- */
.user-bottom { 
    bottom: 30px; 
    left: 50%; 
    transform: translateX(-50%); 
    width: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Ahşap Istaka Görünümü */
#user-hand {
    display: flex;
    gap: 4px; /* Taşlar arası boşluk */
    padding: 15px 35px; /* Istaka kenar boşlukları */
    
    /* Ahşap Rengi ve Dokusu */
    background-color: #8B5A2B; 
    background-image: linear-gradient(to bottom, #A06833, #6F431B);
    
    /* 3D Derinlik Efekti */
    border-radius: 8px 8px 15px 15px;
    box-shadow: 
        inset 0 2px 10px rgba(0,0,0,0.6), /* İç gölge (oyuk hissi) */
        0 10px 20px rgba(0,0,0,0.5),      /* Masaya düşen gölge */
        0 5px 0 #523115;                  /* Alt kalınlık */
    
    border-top: 2px solid #C48E56; /* Üst kısma ışık vurması */
    border-bottom: 2px solid #3E240D;
    
    /* Taşları hizalamak için */
    min-width: 800px;
    min-height: 80px;
    justify-content: center;
    align-items: center;
}

/* --- TAŞ TASARIMI (GÜNCEL) --- */
.tile {
    width: 44px;
    height: 64px;
    background-color: #f4f1ea; /* Kemik rengi */
    border-radius: 6px;
    
    /* Taşın kendi 3D görüntüsü */
    box-shadow: 
        inset 0 0 5px rgba(0,0,0,0.1),
        1px 1px 0 #ccc,
        2px 2px 0 #bbb,
        3px 3px 2px rgba(0,0,0,0.3);
        
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    font-size: 28px;
    cursor: pointer;
    position: relative;
    transition: transform 0.1s, margin-top 0.1s;
    user-select: none;
}

/* Renkler */
.tile.red { color: #d32f2f; }
.tile.yellow { color: #f9a825; }
.tile.black { color: #212121; }
.tile.blue { color: #1565c0; }
.tile.joker { color: purple; font-size: 18px; }

/* Seçili Taş Efekti */
.tile.selected { 
    transform: translateY(-15px); /* Yukarı kalkar */
    box-shadow: 0 15px 10px rgba(0,0,0,0.4); 
    border: 2px solid #ffca28;
    z-index: 100;
}

/* Okey Taşı Parlaması */
.tile.real-okey {
    box-shadow: 0 0 10px gold, inset 0 0 5px gold;
    border: 1px solid goldenrod;
}

/* --- MASA ORTASI --- */
.center-area {
    position: absolute;
    top: 40%; left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 25px;
    background: rgba(0, 0, 0, 0.25); /* Hafif koyu zemin */
    padding: 30px 50px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 0 30px rgba(0,0,0,0.3);
}

.stack {
    width: 55px; height: 75px;
    border: 2px dashed rgba(255,255,255,0.4);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.stack:hover {
    background: rgba(255,255,255,0.1);
}

.stack.indicator { 
    border: 2px solid #ffd700; 
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

/* --- KONTROLLER --- */
#controls {
    position: absolute;
    bottom: 160px; /* Istakanın biraz üstü */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 20;
}

.action-btn {
    padding: 10px 25px;
    background: linear-gradient(to bottom, #ffb74d, #f57c00);
    border: none;
    border-bottom: 3px solid #e65100;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.3);
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

.action-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.action-btn:active { transform: translateY(2px); border-bottom: 0; }

/* --- BİLGİ PANELİ --- */
#info-panel {
    position: absolute;
    top: 20px; left: 20px;
    background: rgba(0,0,0,0.6);
    padding: 15px;
    border-radius: 10px;
    border-left: 5px solid #ffb74d;
    font-size: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}