@font-face {
    font-family: 'OyunFontum';
    src: url('fonts/piveal-font.woff2') format('woff2'); /* Uzantılar ve format değişti */
    font-weight: normal;
    font-style: normal;
}
:root {
    --bg: #00bf63;       
    --card: #00bf63;     
    --primary: #167246;
    --primary-dark: #167246;
    --secondary: #167246;
     --secondary-dark:#167246;
    --accent: #38E54D;   
    --danger: #FF4B4B;   
    --outline: #000000;  
    --text: #000000;     
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'OyunFontum', sans-serif; 
    
    /* 1. HARFLERİN ARASINI AÇMAK İÇİN (Yapışıklığı giderir) */
    letter-spacing: 1px; 
    
    /* 2. KESKİNLİĞİ AZALTMAK İÇİN (Kenarlara çok hafif bir sis atar) */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-shadow: 0 0 1px rgba(0, 0, 0, 0.3) !important; 
}


body {
    background-color: var(--bg);
    background-image: url('logo-pattern.png');
    background-repeat: no-repeat;
    background-size: cover; 
    background-position: center;
    background-attachment: fixed;
    display: flex; justify-content: center; align-items: center; min-height: 100vh;
    color: var(--text); padding: 20px;
}

/* LOGO KÜÇÜLTÜLDÜ */
.top-left-logo { position: absolute; top: 20px; left: 30px; z-index: 100; transition: 0.3s; }
.main-logo { max-width: 280px; height: auto; filter: drop-shadow(3px 4px 0 var(--outline)); cursor: pointer; transition: transform 0.2s; }
.main-logo:hover { transform: scale(1.05) rotate(-3deg); }
.logo { font-size: 2.5rem; color: var(--primary); text-shadow: 2px 2px 0 var(--outline); letter-spacing: 1px; margin: 0; }

/* KUTULAR DARALTILDI */
.container, .lobby-container, .game-container {
    background: var(--card); padding: 30px; border-radius: 20px;
    border: 4px solid var(--outline); box-shadow: 6px 8px 0 var(--outline);
    width: 100%; text-align: center; position: relative; z-index: 10;
}

.container { max-width: 750px; }
.lobby-container, .game-container { max-width: 850px; }

.home-layout { display: flex; gap: 30px; align-items: center; text-align: left; }
.home-info { flex: 1.2; background: #F8F9FA; padding: 20px; border-radius: 15px; border: 3px solid var(--outline); box-shadow: inset 3px 3px 0 rgba(0,0,0,0.05); }

/* AÇIKLAMA YAZILARI NORMALE DÖNDÜ */
.home-info h2 { color: var(--primary); font-size: 1.8rem; margin-bottom: 15px; }
.home-info p { font-size: 1.1rem; line-height: 1.5; font-weight: 500; margin-bottom: 15px; color: var(--text); }
.home-info ul { margin-left: 25px; font-size: 1.1rem; line-height: 1.6; font-weight: 600; color: var(--text); }
.home-info li { margin-bottom: 10px; }
.home-login { flex: 1; text-align: center; }

.subtitle { font-size: 1.2rem; margin-bottom: 20px; font-weight: 600; color: #302f2f; }

/* INPUT VE BUTONLAR KİBARLAŞTIRILDI */
input, select {
    width: 100%; padding: 14px; border-radius: 14px;
    border: 3px solid var(--outline); margin-bottom: 15px;
    font-size: 1.1rem; font-weight: 600; outline: none;
    box-shadow: inset 1.5px 1.5px 0 rgba(0,0,0,0.05);
}
.btn {
    width: 100%; padding: 14px; border-radius: 14px; border: 3px solid var(--outline);
    border-bottom-width: 7px; font-size: 1.2rem; font-weight: 700; cursor: pointer;
    transition: all 0.1s; color: white; text-transform: uppercase; letter-spacing: 1px;
}
.btn:active { border-bottom-width: 3px; transform: translateY(4px); }
.primary-btn { background: linear-gradient(to bottom, var(--primary) 0%, var(--primary-dark) 100%); text-shadow: 1px 1px 1px var(--primary-dark); }
.secondary-btn { background: var(--secondary); color: var(--text); border-bottom-color: #000000;}
.danger-btn { background: var(--danger); border-bottom-color: #CC0000;}

.lobby-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 3px dashed var(--outline); flex-wrap: wrap; gap: 15px; }
.lobby-header h2 { font-size: 1.8rem; }
.highlight-text { background: var(--secondary); padding: 5px 15px; border-radius: 10px; border: 3px solid var(--outline); font-weight: bold; letter-spacing: 2px; color: var(--text); }
.lobby-body { display: flex; gap: 20px; text-align: left; }
.lobby-left { flex: 1; background: #F8F9FA; padding: 20px; border-radius: 15px; border: 3px solid var(--outline); max-height: 350px; overflow-y: auto; }
.lobby-right { flex: 2; }

/* LOBİ YAZILARI DÜZELTİLDİ */
.section-title { font-size: 1.5rem; margin-bottom: 15px; color: var(--primary); }
.player-list { display: flex; flex-direction: column; gap: 10px; }
.player-badge { background: white; border: 3px solid var(--outline); padding: 8px 15px; border-radius: 12px; display: flex; align-items: center; gap: 12px; font-size: 1.1rem; font-weight: 600; box-shadow: 2px 2px 0 rgba(0,0,0,0.1); }
.avatar { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--outline); background: var(--bg); }
.game-selection { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.game-card { background: white; border: 3px solid var(--outline); border-bottom-width: 6px; border-radius: 15px; padding: 20px 15px; cursor: pointer; transition: 0.1s; text-align: center; }
.game-card h3 { font-size: 1.4rem; margin-bottom: 10px; color: var(--text); }
.game-card p { font-size: 1rem; line-height: 1.4; font-weight: 500; }
.game-card:hover { background: #fafafa; }
.game-card:active { border-bottom-width: 3px; transform: translateY(3px); }
.card-icon { font-size: 3rem; margin-bottom: 10px; }

/* OYUN İÇİ ALANLAR KÜÇÜLTÜLDÜ */
.action-area { background: #F8F9FA; padding: 25px; border-radius: 15px; border: 3px solid var(--outline); margin: 20px 0; }
.action-area h3 { font-size: 1.4rem; }
.status-text { display: inline-block; background: var(--secondary); padding: 8px 20px; border-radius: 10px; border: 3px solid var(--outline); font-weight: bold; margin-top: 10px; color: var(--text); font-size: 1.2rem; }
.lighter-icon { font-size: 5rem; margin-bottom: 10px; }
#lighterOwner { font-size: 1.2rem; font-weight: bold; }

/* BİLDİRİM EKRANI */
.custom-notification { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(26, 27, 65, 0.7); backdrop-filter: blur(8px); display: flex; justify-content: center; align-items: center; z-index: 9999; }
.notification-box { background: var(--card); padding: 30px; border-radius: 20px; border: 4px solid var(--outline); box-shadow: 6px 6px 0 var(--outline); text-align: center; width: 90%; max-width: 400px; animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
.notification-box h2 { color: var(--danger); margin-bottom: 15px; font-size: 1.8rem; }
.notification-box p { font-size: 1.2rem; margin-bottom: 25px; font-weight: 600; color: var(--text); line-height: 1.5; }
@keyframes popIn { 0% { transform: scale(0.5); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

/* MOBİL TASARIM (Görüş Engelleme Sorunu Çözüldü) */
@media (max-width: 768px) {
    body {
        flex-direction: column; /* İçerikleri alt alta dizer */
        justify-content: flex-start; /* Ekranın en üstünden başlatır */
        padding-top: 30px; 
        padding-bottom: 30px;
        height: auto;
    }
    
    .top-left-logo { 
        position: relative; /* Havada asılı kalmayı iptal ettik! */
        top: 0; 
        left: 0; 
        transform: none; 
        margin-bottom: 20px; /* Menüyle arasına nefes alacak boşluk koyduk */
        display: flex;
        justify-content: center;
    }
    
    .main-logo { max-width: 140px; }
    .container { margin-top: 0; } /* Eski itme payını sıfırladık */
    
    .lobby-body { flex-direction: column; }
    .home-layout { flex-direction: column; gap: 20px; }
    .home-info { order: 2; }
    .home-login { order: 1; }
}