/* --- Genel ve Temel Stiller --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #f0f0f0;
    background: url('https://images.pexels.com/photos/209956/pexels-photo-209956.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1') no-repeat center center/cover;
    background-attachment: fixed;
    padding: 40px 20px;
    overflow-y: auto; 
}

/* Arka planı karartmak için bir katman */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: -1;
}

/* --- Ana Konteyner --- */
.container {
    background-color: rgba(13, 27, 42, 0.9);
    padding: 30px 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    max-width: 700px;
    width: 100%;
    text-align: center;
    margin: 0 auto;
}

/* --- Başlık ve Logolar --- */
.game-header { }

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.logo {
    max-height: 40px;
}

.logo-separator {
    font-size: 2em;
    font-weight: bold;
}

h1 {
    font-size: 2.2em;
    font-weight: 900;
    margin-bottom: 20px;
    text-transform: uppercase;
}

/* --- Giriş ve Dil Seçimi --- */
.game-intro p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
}

.lang-switcher {
    margin-bottom: 20px;
}

.lang-switcher button {
    background: none;
    border: 1px solid #f0f0f0;
    color: #f0f0f0;
    padding: 8px 15px;
    margin: 0 5px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.lang-switcher button.active,
.lang-switcher button:hover {
    background-color: #007bff;
    border-color: #007bff;
}

/* --- Form Stilleri --- */
#player-info-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    background-color: rgba(0,0,0,0.3);
    border: 1px solid #444;
    border-radius: 5px;
    color: #f0f0f0;
    font-size: 1em;
}

.consent-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.consent-group input {
    width: auto;
}

#start-game-btn {
    padding: 15px;
    font-size: 1.2em;
    font-weight: bold;
    color: #fff;
    background-color: #28a745;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

#start-game-btn:hover {
    background-color: #218838;
}

#start-game-btn:disabled {
    background-color: #555;
    cursor: not-allowed;
    opacity: 0.7;
}

/* --- Ödül Bilgisi --- */
.rewards-info {
    margin-top: 30px;
    border-top: 1px solid #444;
    padding-top: 20px;
}

.rewards-info ul {
    list-style: none;
    padding: 0;
}

.rewards-info li {
    margin-bottom: 10px;
}

/* --- Gizleme ve Oyun Ekranı Stilleri --- */
.hidden {
    display: none !important;
}

#game-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#gameCanvas {
    background-color: #000;
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.5);
    border: 2px solid #007bff;
}

#mobile-instructions {
    display: none;
    position: absolute;
    bottom: 60px; /* GÜNCELLENDİ: Değeri artırıldı */
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 1em;
    font-weight: bold;
    text-align: center;
    z-index: 10;
    pointer-events: none;
}

/* --- Ödül Ekranı Stilleri --- */
#reward-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    color: #333;
}

.reward-box {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(255, 255, 255, 0.2);
    animation: fadeIn 0.5s ease-in-out;
}

.reward-box h2 {
    color: #FFC107;
    font-size: 2.5em;
    margin-bottom: 15px;
}

.reward-box p {
    font-size: 1.2em;
    margin-bottom: 25px;
    color: #555;
}

.reward-box button {
    display: block;
    width: 100%;
    padding: 15px;
    border-radius: 5px;
    border: none;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
    margin-top: 10px;
}

.reward-box button:hover {
    transform: scale(1.02);
}

#claim-reward-btn {
    background-color: #28a745;
    color: white;
}

#continue-game-btn {
    background-color: #6c757d;
    color: white;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* --- Mobil Uyum (Responsive Tasarım) --- */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    h1 {
        font-size: 1.8em;
    }

    .game-intro p {
        font-size: 1em;
    }

    .logo {
        max-height: 30px;
    }

    .reward-box {
        width: 90%;
        padding: 25px;
    }
    
    #mobile-instructions {
        display: block;
    }
}
