/* Genel Ayarlar */
* { margin: 0; padding: 0; box-box: border-box; }
body { background-color: #0f172a; font-family: 'Poppins', sans-serif; color: white; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Oyun Masası Düzeni */
.game-table { 
    background: radial-gradient(circle, #065f46 0%, #064e3b 100%); 
    border: 10px solid #043d2e; 
    border-radius: 5rem; 
    position: relative;
    width: 100%;
    height: 650px; 
    margin: 20px auto;
    box-shadow: inset 0 0 100px rgba(0,0,0,0.6);
    perspective: 1200px;
    overflow: hidden;
}

/* Kart Temel Yapısı */
.card-container {
    width: 90px;
    height: 130px;
    position: absolute;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    transform-style: preserve-3d;
    z-index: 5;
}

.card-face {
    width: 100%;
    height: 100%;
    position: absolute;
    border-radius: 10px;
    backface-visibility: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    background-color: #fff;
    background-size: cover;
    border: 1px solid rgba(0,0,0,0.1);
}

.card-front { transform: rotateY(0deg); }
.card-back { 
    background: url('assets/cards/back.png') no-repeat center; 
    background-size: cover; 
    transform: rotateY(180deg); 
}

/* Konumlar */
.deck-pos { top: 50%; left: 8%; transform: translate(-50%, -50%) rotateY(180deg); }
.middle-pos { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.bot-hand-pos { top: 60px; left: 50%; transform: translateX(-50%) rotateY(180deg); }
.player-hand-pos { bottom: 60px; left: 50%; transform: translateX(-50%); }

.player-hand-pos:hover { transform: translateX(-50%) translateY(-15px) scale(1.05); z-index: 100; cursor: pointer; }

/* Üst Üste Binme */
.in-pile { z-index: calc(10 + var(--pile-index, 0)); }
.card-flip { transform: translate(-50%, -50%) rotateY(0deg) !important; }

/* Puan Uçuş Hedefleri */
.player-score-pos { bottom: -100px; left: 80%; opacity: 0; transform: scale(0.1); }
.bot-score-pos { top: -100px; left: 20%; opacity: 0; transform: scale(0.1); }

.pisti-notif {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 80px;
    font-weight: bold;
    color: #facc15; /* Altın sarısı */
    text-shadow: 0 0 20px rgba(0,0,0,0.5), 0 0 40px #e11d48;
    z-index: 999;
    pointer-events: none;
    animation: pistiAnim 1.2s ease-out forwards;
}

@keyframes pistiAnim {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}