* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
}

body {
    font-family: 'Arial Black', sans-serif;
    
    /* DEĞİŞİKLİK: Gradient yerine arkaplan resmi */
    background-image: url('bg.png');
    background-size: cover; /* Ekranı tamamen kaplaması için */
    background-position: center; /* Resmi ortalamak için */
    background-repeat: no-repeat; /* Resmin tekrarlanmasını engellemek için */

    min-height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.game-container {
    text-align: center;
    position: relative;
    width: 90vw;
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.score-board {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px 40px;
    border-radius: 20px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 30;
}

.score {
    font-size: 48px;
    color: #ff4757;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.target-area {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    cursor: crosshair;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    user-select: none;
}

.character-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.1s;
    position: relative;
    z-index: 1;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.punch-effect {
    position: absolute;
    width: 150px; /* Yumruk efekti boyutu */
    height: 150px;
    object-fit: contain;
    animation: punchAnim 0.6s ease-out forwards;
    pointer-events: none;
    z-index: 100;
}

@keyframes punchAnim {
    0% { transform: scale(0) rotate(-20deg); opacity: 1; }
    50% { transform: scale(1.5) rotate(10deg); }
    100% { transform: scale(1) rotate(0deg) translateY(-80px); opacity: 0; }
}

.damage-text {
    position: absolute;
    font-size: 45px;
    font-weight: bold;
    color: #fff;
    animation: damageFloat 1s ease-out forwards;
    pointer-events: none;
    z-index: 101;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
}

@keyframes damageFloat {
    0% { transform: translateY(0) scale(0.5); opacity: 1; }
    100% { transform: translateY(-120px) scale(1.5); opacity: 0; }
}

.shake {
    animation: shake 0.3s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-15px) rotate(-3deg); }
    75% { transform: translateX(15px) rotate(3deg); }
}

.fist-animation {
    position: absolute;
    width: 150px; /* Yumruk görseli boyutu */
    height: 150px;
    object-fit: contain;
    animation: fistPunch 0.4s ease-out forwards;
    pointer-events: none;
    z-index: 99;
}

@keyframes fistPunch {
    0% { transform: translate(-100px, 0) scale(0.5) rotate(-45deg); opacity: 0; }
    50% { transform: translate(0, 0) scale(1.2) rotate(0deg); opacity: 1; }
    100% { transform: translate(20px, 0) scale(1) rotate(5deg); opacity: 0; }
}

.hidden {
    display: none !important;
}

/* Karakter Seçim Ekranı */
#character-select-screen {
    width: 90vw;
    max-width: 1200px;
    text-align: center;
    background: rgba(0, 0, 0, 0.5); /* Arkaplanı hafif karart */
    padding: 30px;
    border-radius: 20px;
}

#character-select-screen h2 {
    font-size: 48px;
    color: #fff;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    margin-bottom: 30px;
}

.character-list {
    display: flex;
    flex-wrap: wrap; /* Sığmazsa alt satıra geç */
    justify-content: center;
    gap: 20px; /* Kartlar arası boşluk */
}

/* Karakter Kartı */
.character-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 200px; /* Kart genişliği */
    border: 5px solid transparent; /* Vurgu için yer ayır */
}

.character-card:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    border-color: #ff4757; /* Üzerine gelince kırmızı çerçeve */
}

.character-card img {
    width: 100%;
    height: 220px; /* Resim yüksekliği sabit olsun */
    object-fit: cover; /* Resimler oranı koruyarak sığsın (taşarsa kessin) */
    border-radius: 10px;
    background: #eee; /* Resim yüklenmezse diye */
}

.character-card h3 {
    margin-top: 10px;
    font-size: 20px;
    color: #333;
    white-space: nowrap; /* İsimlerin alt satıra kaymasını engelle */
    overflow: hidden;
    text-overflow: ellipsis; /* İsim sığmazsa ... koysun */
}
/* --- YENİ EKLENEN BUTON STİLİ --- */

#changeCharBtn {
    position: absolute; /* Oyun alanına göre konumlan */
    top: 20px;
    left: 20px;
    z-index: 50; /* Skor tabelasının (30) önünde dursun */
    padding: 10px 20px;
    font-size: 16px;
    font-family: 'Arial Black', sans-serif;
    color: #333;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
}

#changeCharBtn:hover {
    background: #fff;
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
