body {
    font-family: 'Roboto Mono', monospace; /* Monospace font şart dayı */
    background-color: #2c3e50;
    color: #ecf0f1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.container { width: 900px; text-align: center; }

/* --- GİRİŞ EKRANI --- */
#login-screen {
    background: #34495e;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* --- OYUN ALANI --- */
#game-screen {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.header {
    display: flex;
    justify-content: space-between;
    background: #34495e;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 24px;
    font-weight: bold;
}

/* --- YENİ KELİME ALANI (Pencere) --- */
.game-area {
    background: #ecf0f1;
    border-radius: 10px;
    padding: 20px;
    position: relative;
}

/* Kelimelerin göründüğü pencere (sadece 2-3 satır görünür) */
#words-window {
    height: 110px; /* Yaklaşık 2.5 satır sığacak kadar */
    overflow: hidden; /* Taşanı gizle */
    background: #fff;
    border-radius: 5px;
    padding: 10px;
    position: relative;
    text-align: left;
    font-size: 24px;
    line-height: 45px; /* Satır yüksekliği */
    border: 2px solid #bdc3c7;
    cursor: text;
}

/* Kelimelerin kapsayıcısı (Bunu yukarı aşağı kaydıracağız) */
#words-wrapper {
    display: flex;
    flex-wrap: wrap; /* Kelimeler yan yana dizilsin, sığmazsa aşağı insin */
    gap: 15px; /* Kelimeler arası boşluk */
    transition: transform 0.3s ease; /* Kayma animasyonu */
}

/* --- KELİME VE HARF STİLLERİ --- */
.word {
    display: flex;
    padding: 2px 5px;
    border-radius: 5px;
    position: relative;
}

.word.current {
    background-color: #dfe6e9; /* Aktif kelime GRİ */
    border: 1px solid #b2bec3;
}

.letter {
    color: #7f8c8d; /* Henüz yazılmamış harf (soluk gri) */
    position: relative;
}

/* HARF RENKLERİ (CANLI) */
.letter.correct { color: #27ae60; font-weight: bold; } /* Yeşil */
.letter.partial { color: #e67e22; font-weight: bold; } /* Turuncu */
.letter.wrong { color: #c0392b; font-weight: bold; text-decoration: underline; } /* Kırmızı */

/* GEÇMİŞ KELİME RENKLERİ (Onaylandıktan sonra) */
.word.done-perfect .letter { 
    color: #27ae60 !important; /* Yeşil - Harfleri boya */
    font-weight: bold;
}

.word.done-partial .letter { 
    color: #e67e22 !important; /* Turuncu - Harfleri boya */
    font-weight: bold;
}

.word.done-wrong .letter { 
    color: #c0392b !important; /* Kırmızı - Harfleri boya */
    font-weight: bold;
}

/* GİZLİ INPUT (Kullanıcı buraya yazacak ama görmeyecek) */
#hidden-input {
    position: absolute;
    opacity: 0;
    top: 0;
    left: 0;
}

/* Yan Panel (Leaderboard) - Aynı kaldı */
.main-content {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 20px;
}
.sidebar {
    background: #ecf0f1;
    color: #333;
    padding: 10px;
    border-radius: 10px;
    max-height: 400px;
    overflow-y: auto;
}
ul { list-style: none; padding: 0; }
li {
    background: white; margin: 5px 0; padding: 5px;
    display: flex; justify-content: space-between;
    border-radius: 4px; font-size: 14px;
}
.hidden { display: none !important; }

#visible-input {
    width: 100%;
    max-width: 600px; /* Çok geniş olmasın */
    padding: 15px;
    font-size: 24px;
    font-family: 'Roboto Mono', monospace;
    text-align: center;
    border: 2px solid #bdc3c7;
    border-radius: 8px;
    background-color: #f7f9f9;
    color: #2c3e50;
    outline: none;
    transition: border-color 0.3s;
}

#visible-input:focus {
    border-color: #3498db;
    background-color: #fff;
}

/* Yanlış yazınca inputun kenarı hafif kızarsın (opsiyonel) */
#visible-input.input-error {
    border-color: #e74c3c;
    background-color: #fadbd8;
}