﻿/* ==========================================================================
   1. GENEL AYARLAR VE MOBİL OPTİMİZASYON
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
}

.tile, .key, .diff-btn, .btn-next-level, .btn-install, .btn-settings-restart {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --header-border: #e5e7eb;
    --tile-border: #d3d6da;
    --tile-bg: #ffffff;
    --tile-text: #1a1a1a;
    --key-bg: #d3d6da;
    --key-text: #1a1a1a;
    --color-green: #6aaa64;
    --color-yellow: #FFDC3D;
    --color-red: #eb131e;
    --stat-text: #ffffff;
}

[data-theme="dark"] {
    --bg-color: #121212;
    --text-color: #f8f9fa;
    --header-border: #2f2f30;
    --tile-border: #3a3a3c;
    --tile-bg: #121212;
    --tile-text: #f8f9fa;
    --key-bg: #818384;
    --key-text: #f8f9fa;
    --color-green: #538d4e;
    --color-yellow: #FFDC3D;
    --color-red: #eb131e;
}

[data-colorblind="true"] {
    --color-green: #85c1e9 !important;
    --color-yellow: #f39c12 !important;
    --color-red: #8400cd !important;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    height: 100dvh;
    overflow: hidden;
}

/* ==========================================================================
   2. YENİ SOLA HİZALI ÜST MENÜ (HEADER)
   ========================================================================== */
.game-header {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--header-border);
}

.header-buttons-left {
    display: flex;
    gap: 15px; /* Simgelerin yan yana durma mesafesi */
}

#help-btn, #settings-btn {
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
}

.game-header h1 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 1.5px; /* Kelimetrik isminin harf aralığını şıklaştırır */
    margin: 0;
    text-align: center;
    color: var(--text-color);
    flex: 1;
}

/* "TRİK" kısmını oyunun canlı sarı rengi yapar */
.highlight {
    color: var(--color-yellow) !important;
}

/* Zorluk Seçici Alt Konum Stili */
.difficulty-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 390px;
    margin: 5px auto 10px auto;
    padding: 0 10px;
}

.diff-btn {
    flex: 1;
    background-color: rgba(120, 124, 126, 0.1);
    border: 2px solid transparent;
    color: var(--text-color);
    padding: 8px 4px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 20px;
    cursor: pointer;
}

    .diff-btn.active {
        background-color: var(--color-green) !important;
        color: white !important;
        box-shadow: 0 2px 6px rgba(83, 141, 78, 0.2);
    }

/* ==========================================================================
   3. OYUN TAHTASI (GRID)
   ========================================================================== */
.game-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 10px 0 10px;
    min-height: 0;
}

.game-board {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    max-width: 390px;
    height: auto;
    max-height: 380px;
}

.board-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr) 120px;
    gap: 5px;
}

    .board-row.hidden-row {
        display: none !important;
    }

.tile {
    border: 2px solid var(--tile-border);
    background-color: var(--tile-bg);
    color: var(--tile-text);
    font-size: 20px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    text-transform: uppercase;
    border-radius: 4px;
    min-height: 44px;
    user-select: none;
}

    .tile[data-state="pop"] {
        transform: scale(1.05);
        border-color: var(--text-color);
    }

    .tile.marked-green {
        background-color: var(--color-green) !important;
        border-color: var(--color-green) !important;
        color: white !important;
    }

    .tile.marked-yellow {
        background-color: var(--color-yellow) !important;
        border-color: var(--color-yellow) !important;
        color: white !important;
    }

    .tile.marked-red {
        background-color: var(--color-red) !important;
        border-color: var(--color-red) !important;
        color: white !important;
    }

.row-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.stat-box {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 13px;
    font-weight: bold;
    color: var(--stat-text);
    border-radius: 6px;
    min-height: 44px;
}

    .stat-box.green {
        background-color: var(--color-green) !important;
    }

    .stat-box.yellow {
        background-color: var(--color-yellow) !important;
    }

    .stat-box.red {
        background-color: var(--color-red) !important;
    }

/* ==========================================================================
   4. KLAVYE VE PENCERELER (MODAL)
   ========================================================================== */
/* ==========================================================================
   MOBİL ODAKLI BÜYÜTÜLMÜŞ VE ESNEK KLAVYE MOTORU
   ========================================================================== */
#keyboard {
    margin: 20px auto 10px auto;
    width: 100%;
    max-width: 520px; /* Geniş ekranlarda taşmaması için koruma sınırı */
    padding: 0 8px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 8px; /* Satırlar arası boşluğu hafif artırdık */
}

.keyboard-row {
    display: flex;
    justify-content: center;
    width: 100%;
    gap: 5px; /* Butonlar arası yan boşluklar */
}

.key {
    font-family: inherit;
    font-weight: 700;
    font-size: 1.15rem !important; /* Harf boyutunu büyüttük (Eski hali genelde 0.9rem veya 1rem'dir) */
    background-color: #818384; /* Karanlık moda yakışan nötr buton rengi */
    color: #ffffff;
    border: 0;
    padding: 0;
    /* YÜKSEKLİK: Mobilde parmağın tam oturması için ideal yükseklik 58px'e çıkarıldı! */
    height: 58px !important;
    /* Genişlik esnek olacak, 12 harfli ilk satırda ekranı tam kaplayacak */
    flex: 1;
    border-radius: 6px;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    transition: background-color 0.1s ease, transform 0.05s ease;
}

    /* ENTER ve SİL butonları daha kritik olduğu için onlara ekstra esneklik payı */
    .key.wide {
        flex: 1.6 !important; /* Diğer harf butonlarından daha geniş olmasını sağlar */
        font-size: 0.95rem !important; /* Kelime uzun olduğu için harfe göre hafif dengelendi */
        font-weight: 800;
        background-color: #565758; /* Daha belirgin olmaları için hafif koyu ton */
    }

    /* Dokunma Hissiyatı (Feedback Efektleri) */
    .key:active {
        transform: scale(0.95); /* Basıldığında hafifçe içeri çökerek fiziksel klavye hissi verir */
        background-color: #6e6f70 !important;
    }

/* Masaüstü için mouse ile üzerine gelme efekti */
@media (hover: hover) {
    .key:hover {
        background-color: #939596;
    }

    .key.wide:hover {
        background-color: #6a6b6c;
    }
}

/* Ekstra küçük eski model telefonlar için otomatik daralma koruması */
@media (max-width: 360px) {
    .key {
        height: 52px !important; /* Çok küçük ekranlarda taşmasın diye hafif esner */
        font-size: 1rem !important;
    }
}


    .key.wide {
        flex: 1.8;
        font-size: 11px;
    }

.modal, .game-over-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 12000;
}

.modal-content, .game-over-content {
    background-color: var(--bg-color);
    color: var(--text-color);
    padding: 25px;
    border-radius: 16px;
    width: 90%;
    max-width: 350px;
    position: relative;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    border: 1px solid var(--header-border);
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 26px;
    cursor: pointer;
}

/* Ayarlar İçi Yeniden Başlat Butonu Stili */
.btn-settings-restart {
    background-color: #ef4444;
    color: white;
    border: none;
    width: 100%;
    padding: 10px;
    font-size: 13px;
    font-weight: bold;
    border-radius: 20px;
    margin-top: 20px;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .btn-settings-restart:hover {
        background-color: #dc2626;
    }

/* Yardım (?) İçerikleri */
.help-intro {
    font-size: 13px;
    color: #787c7e;
    margin: 10px 0 15px 0;
    line-height: 1.4;
}

.example-board {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: rgba(120, 124, 126, 0.05);
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.example-row-preview {
    display: flex;
    gap: 4px;
}

.tile-preview {
    width: 30px;
    height: 30px;
    border: 2px solid var(--tile-border);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 13px;
    background-color: var(--tile-bg);
    border-radius: 4px;
}

.green-tile {
    background-color: var(--color-green) !important;
    color: white !important;
    border-color: var(--color-green) !important;
}

.yellow-tile {
    background-color: var(--color-yellow) !important;
    color: white !important;
    border-color: var(--color-yellow) !important;
}

.example-stats-preview {
    display: flex;
    gap: 3px;
    margin-left: 4px;
}

.stat-box-preview {
    width: 34px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    font-weight: bold;
    color: black;
    border-radius: 4px;
}

    .stat-box-preview.green {
        background-color: var(--color-green) !important;
    }

    .stat-box-preview.yellow {
        background-color: var(--color-yellow) !important;
    }

    .stat-box-preview.red {
        background-color: var(--color-red) !important;
    }

.help-rules {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.indicator {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    color: white;
    font-weight: bold;
    font-size: 11px;
    flex-shrink: 0;
}

    .indicator.green {
        background-color: var(--color-green) !important;
    }

    .indicator.yellow {
        background-color: var(--color-yellow) !important;
    }

    .indicator.red {
        background-color: var(--color-red) !important;
    }

.help-rules p {
    font-size: 12px;
    line-height: 1.4;
}

/* Ayarlar Switchleri */
.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
}

.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 22px;
}

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .2s;
    border-radius: 22px;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 16px;
        width: 16px;
        left: 3px;
        bottom: 3px;
        background-color: white;
        transition: .2s;
        border-radius: 50%;
    }

input:checked + .slider {
    background-color: var(--color-green) !important;
}

    input:checked + .slider:before {
        transform: translateX(24px);
    }

/* Başarı Pencereleri */
.game-over-content h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-green);
    margin-bottom: 6px;
}

.game-over-sub {
    font-size: 13px;
    color: #787c7e;
    margin-bottom: 15px;
}

.game-stats-card {
    background-color: rgba(120, 124, 126, 0.1);
    padding: 12px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.stat-label {
    font-size: 14px;
    font-weight: bold;
}

.stat-value {
    font-size: 16px;
    font-weight: 900;
    color: var(--color-green);
}

.btn-next-level {
    background-color: var(--color-green);
    color: white;
    border: none;
    width: 100%;
    padding: 12px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
}

/* Toast ve Bannerlar */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ef4444;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 15000;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.install-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--color-green);
    color: white;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: bold;
    z-index: 10000;
}

.btn-install {
    background-color: white;
    color: var(--color-green);
    border: none;
    padding: 6px 12px;
    font-weight: bold;
    border-radius: 15px;
    cursor: pointer;
}

.btn-close-banner {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.hidden {
    display: none !important;
}

@media (max-height: 650px) {
    .game-header {
        padding: 8px 15px;
    }

        .game-header h1 {
            font-size: 20px;
        }

    .difficulty-container {
        margin: 2px auto 5px auto;
    }

    .game-board {
        max-height: 280px;
        gap: 4px;
    }

    .tile, .stat-box {
        min-height: 38px;
        font-size: 16px;
    }

    .key {
        height: 34px;
        font-size: 11px;
    }
}

/* ==========================================================================
   ÜST MENÜ (HEADER) KUSURSUZ SİMETRİ VE MERKEZLEME DÜZENİ
   ========================================================================== */
.game-header {
    width: 100%;
    max-width: 600px; /* Bilgisayarda geniş ve ferah görünmesini sağlar */
    margin: 0 auto;
    display: flex;
    justify-content: space-between; /* Sol, orta ve sağ elemanları tam uçlara kilitler */
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--header-border);
}

/* Sol köşedeki yardım butonu */
#help-btn {
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    width: 40px; /* Sağdaki ayarlar grubuyla aynı genişlik (Denge için) */
    text-align: left;
}

/* Tam ortadaki başlık */
.game-header h1 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin: 0;
    text-align: center;
    color: var(--text-color);
    flex: 1; /* Ortadaki alanı tamamen kaplayarak metni tam merkeze odaklar */
}

/* Sağ köşedeki ayarlar butonu ve grubu */
.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 40px; /* Soldaki yardım butonuyla aynı genişlik (Simetri için) */
}

#settings-btn {
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
}

/* ==========================================================================
   KELİMETRİK KRONOMETRE VE SEKMELİ LİDERLİK TABLOSU STİLLERİ
   ========================================================================== */

/* Canlı Zamanlayıcı Alanı */
.timer-container {
    text-align: center;
    margin: 10px 0;
    font-family: 'Courier New', Courier, monospace; /* Dijital saat havası verir */
    font-weight: bold;
    font-size: 18px;
    color: var(--text-color);
    opacity: 0.85;
}

/* Liderlik Tablosu Sekme Grubu */
.leaderboard-tabs {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--header-border);
    padding-bottom: 8px;
}

/* Tekil Sekme Butonları */
.tab-btn {
    flex: 1;
    background: rgba(120, 124, 126, 0.1);
    border: none;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: bold;
    color: var(--text-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .tab-btn:hover {
        background: rgba(120, 124, 126, 0.2);
    }

    /* Aktif Olan Zorluk Sekmesi */
    .tab-btn.active {
        background-color: var(--color-green); /* Kelime bilindiğindeki o güzel yeşil */
        color: white;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

/* Tablo Düzenlemeleri */
.leaderboard-content {
    max-width: 420px !important; /* Sekmeler için biraz daha geniş alan */
}

.leaderboard-table th, .leaderboard-table td {
    padding: 12px 10px;
    text-align: center; /* Verileri daha nizami ortalar */
}

    .leaderboard-table th:nth-child(2), .leaderboard-table td:nth-child(2) {
        text-align: left; /* Oyuncu isimleri sola yaslı kalsın */
    }

/* ==========================================================================
   YENİ OYUN SONU LİDERLİK BUTONU VE ÇERÇEVE SIFIRLAMA
   ========================================================================== */
.btn-leaderboard-over {
    background-color: rgba(120, 124, 126, 0.1);
    color: var(--text-color);
    border: none; /* Çirkin çerçeveyi tamamen siler */
    outline: none; /* Tıklayınca çıkan mavi şeridi engeller */
    width: 100%;
    padding: 12px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    margin-bottom: 10px; /* Yeniden başlat butonuyla arasına boşluk */
    transition: background-color 0.2s, transform 0.1s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

    .btn-leaderboard-over:hover {
        background-color: rgba(120, 124, 126, 0.2);
    }

    .btn-leaderboard-over:active {
        transform: scale(0.98); /* Tıklayınca hafifçe içeri çökme efekti */
    }

/* Genel buton şablonlarındaki olası çerçeve kalıntılarını temizleme */
#help-btn, #settings-btn, #leaderboard-btn {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* ==========================================================================
   HEADER KUSURSUZ SİMETRİ VE KÖŞELERE KİLİTLEME DÜZENİ
   ========================================================================== */
.game-header {
    width: 100%;
    max-width: 600px; /* Bilgisayarda ferah bir alan sağlar */
    margin: 0 auto;
    display: flex;
    justify-content: space-between; /* Sol ve sağ butonları tam uçlara kilitler */
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--header-border);
}

/* Sol köşedeki yardım butonu */
#help-btn {
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    width: 40px; /* Sağdaki ayarlar butonuyla eşit genişlik (Simetri dengesi için) */
    text-align: left;
}

/* Tam ortadaki başlık */
.game-header h1 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin: 0;
    text-align: center;
    color: var(--text-color);
    flex: 1; /* Ortadaki boş alanı tamamen kaplayarak metni tam merkeze odaklar */
}

/* Sağ köşedeki ayarlar butonu */
#settings-btn {
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    width: 40px; /* Soldaki butonla eşit genişlik */
    text-align: right; /* İkonu en sağa yaslar */
}

/* Varsa eski kapsayıcıyı pasifize edelim */
.header-buttons-left {
    display: contents;
}

/* ==========================================================================
   ŞIK OYUN İÇİ İSİM GİRİŞ KUTUSU TASARIMI
   ========================================================================== */
.name-input-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 15px 0;
    width: 100%;
}

#player-name-field {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--tile-border);
    background-color: var(--tile-bg);
    color: var(--tile-text);
    font-size: 14px;
    font-weight: bold;
    border-radius: 25px;
    text-align: center;
    outline: none;
    text-transform: uppercase; /* Yazılan harfleri otomatik büyük yapar */
}

    #player-name-field:focus {
        border-color: var(--color-green);
    }

.btn-save-cloud {
    background-color: var(--color-green);
    color: white;
    border: none;
    width: 100%;
    padding: 12px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .btn-save-cloud:hover {
        background-color: #538d4e;
    }

/* ==========================================================================
   KELİMETRİK DASHBOARD (ANA SAYFA) VE İSTATİSTİK STİLLERİ
   ========================================================================== */

/* Ana Arka Plan Kapsayıcısı */
.dashboard-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(18, 18, 18, 0.95); /* Karanlık tema uyumlu arka plan */
    backdrop-filter: blur(10px); /* Şık arka plan bulanıklığı */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Her şeyin en üstünde durması için */
    padding: 20px;
}

/* Dashboard Merkez Kutusu */
.dashboard-box {
    background-color: var(--tile-bg);
    border: 1px solid var(--tile-border);
    border-radius: 24px;
    padding: 30px 25px;
    width: 100%;
    max-width: 440px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.dashboard-header h1 {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.dashboard-tagline {
    font-size: 13px;
    color: #787c7e;
    margin-bottom: 25px;
}

.dashboard-section {
    margin-bottom: 25px;
    text-align: left;
}

    .dashboard-section h3 {
        font-size: 14px;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: #787c7e;
        margin-bottom: 10px;
        padding-left: 5px;
    }

/* Zorluk Butonları Izgarası */
.difficulty-selection {
    display: flex;
    gap: 8px;
}

.diff-btn {
    flex: 1;
    background-color: rgba(120, 124, 126, 0.1);
    color: var(--text-color);
    border: none;
    outline: none;
    padding: 10px 5px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .diff-btn.active {
        background-color: var(--color-yellow); /* Aktif zorluk canlı sarı renkle parlasın */
        color: #121212;
    }

/* İstatistik Kartları Izgarası */
.stats-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.stat-dash-card {
    background-color: rgba(120, 124, 126, 0.05);
    border: 1px solid var(--tile-border);
    padding: 12px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-dash-num {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-color);
}

.stat-dash-label {
    font-size: 11px;
    color: #787c7e;
    margin-top: 3px;
}

/* Dev Ana Başlat Butonu */
.btn-main-start {
    background-color: var(--color-green);
    color: white;
    border: none;
    outline: none;
    width: 100%;
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(106, 170, 100, 0.3);
    transition: background-color 0.2s, transform 0.1s;
}

    .btn-main-start:hover {
        background-color: #538d4e;
    }

    .btn-main-start:active {
        transform: scale(0.98);
    }

/* Ekran gizleme sınıfı */
.hidden {
    display: none !important;
}

/* Oyun Sonu İkili Buton Düzeni */
.game-over-actions {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-top: 15px;
}

    .game-over-actions button {
        flex: 1; /* İki buton da eşit genişlikte olsun */
        margin: 0 !important; /* Eğer eski kodlardan gelen margin varsa sıfırla */
    }

/* Zorluk Değiştir Butonu Özel Stili */
.btn-change-diff {
    background-color: rgba(120, 124, 126, 0.2);
    color: var(--text-color);
    border: 1px solid var(--tile-border);
    outline: none;
    padding: 12px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .btn-change-diff:hover {
        background-color: rgba(120, 124, 126, 0.3);
    }

/* ==========================================================================
   KELİMETRİK AYARLAR MENÜSÜ GÜVENLİ VE BAĞIMSIZ SABİTLEME MOTORU
   ========================================================================== */

/* 1. Arka plan perdesi: Ekranı tamamen kaplar ve arkasını bulanıklaştırır */
#settings-modal.modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(18, 18, 18, 0.7) !important; /* Yarı şeffaf koyu perde */
    backdrop-filter: blur(8px) !important; /* İşte aradığın şık buzlu cam efekti */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 99999 !important; /* Her şeyin (klavyenin bile) en üstünde durması için */
}

/* 2. Beyaz Ayarlar Kutusu: Ekranın tam ortasında süzülen panel */
#settings-modal .settings-content {
    position: relative !important;
    background-color: var(--tile-bg, #ffffff) !important;
    border: 1px solid var(--tile-border, #e5e7eb) !important;
    border-radius: 20px !important;
    width: 90% !important;
    max-width: 400px !important;
    padding: 30px 24px 24px 24px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
    box-sizing: border-box !important;
    display: block !important; /* İç elemanların nizamî alt alta dizilmesi için */
}

/* 3. Kapatma Çarpısı (&times;) Konumu */
#settings-modal .close-btn {
    position: absolute !important;
    top: 14px !important;
    right: 20px !important;
    font-size: 28px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    color: #787c7e !important;
    line-height: 1 !important;
    z-index: 10 !important;
}

/* 4. Ayarlar Başlığı */
#settings-modal h2 {
    text-align: center !important;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    font-size: 20px !important;
    font-weight: bold !important;
    letter-spacing: 0.5px !important;
}

/* 5. Zorluk Satırı Genel Yapısı */
.settings-row-block {
    display: block !important;
    padding: 12px 0 !important;
    border-bottom: 1px solid var(--tile-border, rgba(120, 124, 126, 0.2)) !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.settings-text-meta {
    text-align: left !important;
    margin-bottom: 10px !important;
}

.settings-title {
    display: block !important;
    font-size: 15px !important;
    font-weight: 600 !important;
}

.settings-desc {
    display: block !important;
    font-size: 11px !important;
    color: #787c7e !important;
    margin-top: 2px !important;
}

/* 6. Ayarlar İçi Butonların Esnek Düzeni */
.settings-diff-flex {
    display: flex !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.settings-btn-choice {
    flex: 1 !important;
    background-color: rgba(120, 124, 126, 0.12) !important;
    color: var(--text-color) !important;
    border: none !important;
    outline: none !important;
    padding: 10px 0 !important;
    font-size: 13px !important;
    font-weight: bold !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
}

/* 7. Standart Ayar Satırları (Tema ve Renk Körü) */
#settings-modal .setting-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 14px 0 !important;
    border-bottom: 1px solid var(--tile-border, rgba(120, 124, 126, 0.2)) !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

/* 8. AKTİF BUTON RENK GARANTİSİ (Hafıza Çakışmalarını Ezmek İçin) */
.diff-btn.active,
.settings-btn-choice.active {
    background-color: var(--color-yellow, #c9b458) !important;
    color: #121212 !important;
}

/* Eğer ayarlar modalı gizliyse tamamen yok olsun */
#settings-modal.hidden {
    display: none !important;
}

/* Ayarlar İçi Ana Menüye Dön Butonu */
.btn-settings-nav {
    background-color: var(--color-green, #6aaa4c) !important;
    color: white !important;
    border: none !important;
    outline: none !important;
    width: 100% !important;
    padding: 12px !important;
    font-size: 14px !important;
    font-weight: bold !important;
    border-radius: 30px !important;
    cursor: pointer !important;
    margin-top: 10px !important;
    transition: background-color 0.2s ease !important;
}

    .btn-settings-nav:hover {
        background-color: #538d4e !important;
    }

/* ==========================================================================
   KELİMETRİK EVRENSEL KARANLIK TEMA PARLAMA EFEKTLERİ (GLOW MOTORU)
   ========================================================================== */

/* 1. ANA MENÜ / AYARLAR İÇİNDEKİ AKTİF (SEÇİLİ) ZORLUK BUTONLARININ PARLAMASI */
.diff-btn.active,
.settings-btn-choice.active,
.tab-btn.active {
    background-color: var(--color-yellow, #c9b458) !important;
    color: #121212 !important;
    font-weight: bold !important;
    /* Sarı neon parlama efekti */
    box-shadow: 0 0 15px rgba(201, 180, 88, 0.6) !important;
    border: 1px solid rgba(201, 180, 88, 0.8) !important;
    transition: all 0.3s ease-in-out !important;
}

/* 2. AYARLAR İÇİNDEKİ YEŞİL "ANA MENÜYE DÖN" BUTONUNUN PARLAMASI */
#settings-back-to-menu-btn.btn-settings-nav {
    background-color: var(--color-green, #6aaa4c) !important;
    color: white !important;
    /* Yeşil neon parlama efekti */
    box-shadow: 0 0 15px rgba(106, 170, 76, 0.5) !important;
    border: 1px solid rgba(106, 170, 76, 0.7) !important;
    transition: all 0.3s ease-in-out !important;
}

    #settings-back-to-menu-btn.btn-settings-nav:hover {
        background-color: #538d4e !important;
        box-shadow: 0 0 22px rgba(106, 170, 76, 0.8) !important;
    }

/* 3. OYUN BİTTİ (GAME OVER) EKRANINDAKİ AKSİYON BUTONLARININ PARLAMASI */
#restart-game-btn,
#change-diff-btn,
#leaderboard-btn {
    transition: all 0.3s ease-in-out !important;
}

/* Oyun sonu bir daha oyna/yeniden başla butonu yeşil parlasın */
#restart-game-btn {
    box-shadow: 0 0 12px rgba(106, 170, 76, 0.4) !important;
}

    #restart-game-btn:hover {
        box-shadow: 0 0 20px rgba(106, 170, 76, 0.7) !important;
    }

/* Oyun sonu zorluk değiştir butonu sarı parlasın */
#change-diff-btn {
    box-shadow: 0 0 12px rgba(201, 180, 88, 0.4) !important;
}

    #change-diff-btn:hover {
        box-shadow: 0 0 20px rgba(201, 180, 88, 0.7) !important;
    }

/* 4. SEÇENEKLERİN ÜZERİNE GELİNDİĞİNDE (HOVER) HAFİF KABARMA VE PARLAMA HİSSİ */
.settings-btn-choice:hover:not(.active),
.diff-btn:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-1px);
}

/* ==========================================================================
   OYUN İÇİ RENKLİ KUTULARA HAFİF NEON PARLAMA EFEKTLERİ
   ========================================================================== */

/* Doğru yerdeki harf kutusu (Yeşil) hafifçe parlasın */
.tile-correct,
.bg-green,
[style*="background-color: rgb(106, 170, 100)"],
[style*="background-color: #6aaa4c"] {
    box-shadow: 0 0 8px rgba(106, 170, 76, 0.4) !important;
    border: 1px solid rgba(106, 170, 76, 0.6) !important;
}

/* Yanlış yerdeki harf kutusu (Sarı) hafifçe parlasın */
.tile-present,
.bg-yellow,
[style*="background-color: rgb(201, 180, 88)"],
[style*="background-color: #c9b458"] {
    box-shadow: 0 0 8px rgba(201, 180, 88, 0.4) !important;
    border: 1px solid rgba(201, 180, 88, 0.6) !important;
}

/* Kelimede olmayan harf kutusu (Kırmızı / Gri-Siyah) hafifçe parlasın */
.tile-absent,
.bg-red,
[style*="background-color: rgb(120, 124, 126)"],
[style*="background-color: #787c7e"] {
    box-shadow: 0 0 6px rgba(120, 124, 126, 0.2) !important;
}

/* Eğer sağ taraftaki gösterge butonların özel bir sınıfa sahipse (Örn: .status-btn) */
.status-btn {
    font-size: 0 !important; /* İçindeki kazara kalan semboller varsa tamamen gizlensin */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ==========================================================================
   RENKLİ KUTULAR İÇİN GÖRÜNÜRLÜK VE KESKİN ÇERÇEVE GÜNCELLEMESİ
   ========================================================================== */

/* YEŞİL KUTULAR: Siyah kalın yazı ve belirgin beyaz/gri çerçeve */
.tile-correct,
.bg-green,
[style*="background-color: rgb(106, 170, 100)"],
[style*="background-color: #6aaa4c"] {
    color: #000000 !important; /* Sayıları ve harfleri tam siyah yapar */
    font-weight: 900 !important; /* Fontu maksimum kalınlığa getirir */
    border: 2px solid rgba(255, 255, 255, 0.4) !important; /* Ufak, şık bir iç çerçeve */
    box-shadow: 0 0 10px rgba(106, 170, 76, 0.5) !important;
}

/* SARI KUTULAR: Siyah kalın yazı ve belirgin çerçeve */
.tile-present,
.bg-yellow,
[style*="background-color: rgb(201, 180, 88)"],
[style*="background-color: #c9b458"] {
    color: #000000 !important;
    font-weight: 900 !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 0 10px rgba(201, 180, 88, 0.5) !important;
}

/* KIRMIZI / GRİ KUTULAR: Siyah kalın yazı ve çerçeve */
.tile-absent,
.bg-red,
[style*="background-color: rgb(120, 124, 126)"],
[style*="background-color: #787c7e"] {
    color: #000000 !important;
    font-weight: 900 !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 0 8px rgba(120, 124, 126, 0.3) !important;
}

/* Genel olarak tüm harf ve sayı kutularının font görünürlüğünü garantiye alalım */
.tile, .cell, .status-btn {
    text-shadow: none !important; /* Karanlık temadan kalan gölgeler okunabilirliği bozmasın */
    box-sizing: border-box !important;
}

/* ==========================================================================
   KELİMETRİK LOGO NEON PARLAMA MOTORU
   ========================================================================== */
header h1, .logo, #game-title {
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffffff !important; /* Logonun ana gövde rengi beyaz */
    /* Kelimetrik sarısı/turuncusu tonlarında harika bir neon parlama katmanı */
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.6), 0 0 12px var(--color-yellow, #c9b458), 0 0 24px #f39c12, 0 0 32px #e67e22 !important;
    animation: logoGlowEffect 3s ease-in-out infinite alternate; /* Canlı bir nefes alma efekti */
}

/* ==========================================================================
   KELİMETRİK LOGO VE DASHBOARD BAŞLIK NEON MOTORU (YENİ KISILMIŞ SÜRÜM)
   ========================================================================== */
/* Hem üstteki oyun içi başlığı hem de ana menüdeki (dashboard) büyük başlığı hedefler */
header h1,
.logo,
#game-title,
.dashboard-header h1,
.dashboard-title {
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffffff !important; /* Ana yazı rengi saf beyaz */
    /* Gözü yormaması için parlama gücü (px değerleri) yarı yarıya kısıldı */
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.5), 0 0 4px var(--color-yellow, #c9b458), 0 0 7px #f39c12 !important;
    animation: logoGlowEffect 4s ease-in-out infinite alternate; /* Animasyon hızı da sakinleştirildi */
}

/* Kısılmış parlama için arka plan nefes alma animasyonu */
@keyframes logoGlowEffect {
    from {
        text-shadow: 0 0 4px rgba(255, 255, 255, 0.4), 0 0 8px var(--color-yellow, #c9b458), 0 0 14px #f39c12;
    }

    to {
        text-shadow: 0 0 6px rgba(255, 255, 255, 0.6), 0 0 12px var(--color-yellow, #c9b458), 0 0 20px #f39c12;
    }
}

/* ==========================================================================
   ANA MENÜDEKİ İSMİN ALTINDAKİ YAZIYI HAFİF BÜYÜTME
   ========================================================================== */
/* Dashboard içindeki alt başlığı (Örn: "Kelime Tahmin Oyunu" veya benzeri açıklamayı) hedefler */
.dashboard-content p,
.dashboard-tagline,
.game-over-sub {
    font-size: 1.15rem !important; /* Yazı boyutu hafifçe büyütüldü (eski hali genelde 0.9rem veya 1rem'dir) */
    font-weight: 500 !important; /* Okunabilirliği artırmak için hafif kalınlaştırıldı */
    letter-spacing: 0.5px;
    color: #a0aec0 !important; /* Şık bir gri tonuyla karanlık moda uyum sağlar */
    margin-top: 10px;
}

/* ==========================================================================
   KELİMETRİK CANLI ANİMASYON MOTORU
   ========================================================================== */

/* 1. Harfe basıldığında hafifçe büyüme (Pop) efekti */
[data-state="pop"] {
    animation: tilePopEffect 0.1s ease-in-out;
}

@keyframes tilePopEffect {
    0% {
        transform: scale(1);
        border-color: #565758;
    }

    50% {
        transform: scale(1.15);
        border-color: #818384;
    }

    100% {
        transform: scale(1);
    }
}

/* ==========================================================================
   KUSURSUZ FLIP VE RENK GEÇİŞ MOTORU
   ========================================================================== */
.tile-flip-correct {
    /* JavaScript bu sınıfı harf doğruysa ekleyecek */
    animation: tileFlipCorrectEffect 0.5s ease-in-out forwards;
}

@keyframes tileFlipCorrectEffect {
    0% {
        transform: rotateX(0deg);
    }
    /* Kutunun tam arkasını döndüğü an (%50): Rengi yeşil yapıyoruz */
    50% {
        transform: rotateX(90deg);
        background-color: #6aaa4c !important;
        color: #000000 !important;
        font-weight: bold !important;
        border: 2px solid rgba(255, 255, 255, 0.5) !important;
        box-shadow: 0 0 10px rgba(106, 170, 76, 0.6) !important;
    }

    100% {
        transform: rotateX(0deg);
        background-color: #6aaa4c !important;
        color: #000000 !important;
        font-weight: bold !important;
        border: 2px solid rgba(255, 255, 255, 0.5) !important;
        box-shadow: 0 0 10px rgba(106, 170, 76, 0.6) !important;
    }
}

/* Eğer harf doğru değilse sadece normal takla atsın (Eski animasyonun) */
/* ==========================================================================
   KUSURSUZ FLIP VE BASKIN RENK GEÇİŞ MOTORU (ZORLAMALI SÜRÜM)
   ========================================================================== */

/* Seçiciyi çok daha spesifik hale getirerek diğer tüm CSS kurallarını eziyoruz */
.tile.tile-flip-correct,
#game-board .tile-flip-correct,
.tile-flip-correct {
    animation: tileFlipCorrectEffect 0.5s ease-in-out forwards !important;
}

@keyframes tileFlipCorrectEffect {
    0% {
        transform: rotateX(0deg);
    }
    /* Kutunun tam arkasını döndüğü an (%50) ve sonrasında rengi zorla dayatıyoruz */
    50% {
        transform: rotateX(90deg);
        background: #6aaa4c !important;
        background-color: #6aaa4c !important;
        color: #000000 !important;
        font-weight: 900 !important;
        border: 2px solid rgba(255, 255, 255, 0.6) !important;
        box-shadow: 0 0 12px rgba(106, 170, 76, 0.8) !important;
    }

    100% {
        transform: rotateX(0deg);
        background: #6aaa4c !important;
        background-color: #6aaa4c !important;
        color: #000000 !important;
        font-weight: 900 !important;
        border: 2px solid rgba(255, 255, 255, 0.6) !important;
        box-shadow: 0 0 12px rgba(106, 170, 76, 0.8) !important;
    }
}

/* Normal takla atanlar için de baskınlık ayarı */
/* Sadece standart takla atma animasyonu */
.tile-flip {
    animation: tileFlipEffect 0.5s ease-in-out forwards;
}

@keyframes tileFlipEffect {
    0% {
        transform: rotateX(0deg);
    }

    50% {
        transform: rotateX(90deg);
    }

    100% {
        transform: rotateX(0deg);
    }
}

/* Oyun kazanıldığında tüm satırı yeşile boyayan sınıf */
.tile-win-green {
    background-color: #6aaa4c !important;
    border-color: #6aaa4c !important;
    color: white !important;
    transition: background-color 0.5s ease;
}



/* 2. Takla atarken harfleri yeşile boyayan ve neon parlama veren sınıf */
.tile-correct-anim {
    background-color: #6aaa4c !important;
    color: #000000 !important;
    font-weight: bold !important;
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 0 10px rgba(106, 170, 76, 0.6) !important;
    transition: background-color 0.25s ease-in-out;
}

#kelimetrik-confetti-canvas {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999999 !important; /* Blur katmanını delip geçmesi için çok yüksek bir değer */
    pointer-events: none !important; /* Arkadaki butonlara tıklanmasını engellemez */
}

/* ==========================================================================
   KELİMETRİK BUTON BASMA ANİMASYONLARI
   ========================================================================== */

/* Oyun içi tüm butonların genel tıklama/dokunma geçiş yumuşaklığı */
.keyboard-key,
.menu-btn,
#save-score-cloud-btn,
#leaderboard-btn,
.setting-btn { /* Projende varsa ayarlar butonunun sınıfı */
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent; /* Mobildeki mavi tıklama gölgesini kaldırır */
}

/* BUTONA BASILDIĞI AN (Web'de tıklama, Mobilde dokunma anı) */
.keyboard-key:active,
.menu-btn:active,
#save-score-cloud-btn:active,
#leaderboard-btn:active,
.setting-btn:active {
    transform: scale(0.92) !important; /* Butonu içeri doğru hafifçe çökertir */
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.2) !important; /* İç gölgeyle basılma hissi verir */
}

/* ==========================================================================
   KELİMETRİK BUTON BASMA ANİMASYONLARI (KESİN SÜRÜM)
   ========================================================================== */

/* 1. Geçiş Yumuşaklığı: Bu sınıflara sahip tüm butonlara yumuşaklık ekler */
.keyboard-key,
.menu-btn,
#save-score-cloud-btn, /* Bir önceki fotoğrafta gördüğümüz buluta gönder butonu ID'si */
#leaderboard-btn,
.setting-btn {
    transition: transform 0.08s ease-in-out, box-shadow 0.08s ease-in-out !important;
    cursor: pointer;
    /* Mobilde dokunurken çıkan varsayılan mavi katmanı temizler */
    -webkit-tap-highlight-color: transparent !important;
}

    /* 2. BASILMA ANI EFECTİ: Web'de tıklarken, Mobilde dokunurken tetiklenir */
    .keyboard-key:active,
    .menu-btn:active,
    #save-score-cloud-btn:active,
    #leaderboard-btn:active,
    .setting-btn:active {
        transform: scale(0.93) !important; /* Butonu hafifçe içeri çökertir */
        box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25) !important; /* İç gölgeyle derinlik katar */
        opacity: 0.9; /* Hafif bir saydamlık değişikliği */
    }

/* ==========================================================================
   MANUEL İNDİRME BUTONU KONUMLANDIRMA VE STİLİ
   ========================================================================== */

#manual-install-btn {
    display: block; /* Alt alta düzgün sıralanması için */
    width: 100%; /* Menü genişliğine uyması için */
    max-width: 280px; /* Diğer butonlarla aynı boyutta kalması için */
    margin: 12px auto; /* Üstten ve alttan boşluk, ortalama */
    padding: 12px 20px; /* Butonun iç genişliği */
    text-align: center;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    /* NEON EFEKTLERİ */
    background-color: transparent; /* Arka planı boşalttık */
    border: 2px solid #00f0ff; /* Turkuaz neon çerçeve */
    color: #00f0ff; /* Turkuaz neon yazı */
    border-radius: 50px; /* Köşeleri yuvarlak neon tüp şeklinde yaptık */
    /* İçten ve dıştan mavi neon ışık patlaması */
    box-shadow: 0 0 12px #00f0ff, inset 0 0 8px #00f0ff;
    transition: all 0.3s ease;
}

    /* Butonun üzerine gelindiğinde (Hover) parlaması için bunu da hemen altına ekle: */
    #manual-install-btn:hover {
        background-color: #00f0ff;
        color: #000000; /* Yazı siyah olur */
        box-shadow: 0 0 25px #00f0ff, 0 0 40px #00f0ff;
    }


    /* JavaScript henüz hazır değilken butonun tamamen gizli kalmasını sağlayan sınıf */
    #manual-install-btn.hidden {
        display: none !important;
    }

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1a1a1a; /* Arka plan rengin */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* En kritik satırlar: Her şeyin ama her şeyin EN ÜSTÜNDE durmalı */
    z-index: 999999 !important;
    pointer-events: auto; /* Kullanıcının arkadaki oyuna dokunmasını engeller */
}

.loader-content {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loader-title {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 20px;
    font-family: sans-serif;
}

.progress-bar-container {
    width: 70%;
    max-width: 300px;
    height: 8px;
    background-color: #333333;
    border-radius: 4px;
    overflow: hidden;
}

#progress-bar {
    width: 0%; /* Başlangıçta sıfır */
    height: 100%;
    background-color: #007bff; /* Dolan çubuğun rengi */
    transition: width 0.1s linear; /* Dolan çubuğun pürüzsüz görünmesi için */
}

.loader-text {
    color: #aaaaaa;
    margin-top: 15px;
    font-size: 0.9rem;
    font-family: sans-serif;
}

.loader-logo {
    width: 150px; /* Logonun boyutunu buradan küçültebilirsin */
    height: auto; /* Orantıyı korur */
    max-width: 80%; /* Ekranı taşırmasını engeller */
    margin-bottom: 30px; /* Çubukla arasına mesafe koyar */
    display: block;
}

/* Başlık Genel Ayarı */
.neon-title {
    font-size: 3.5rem;
    font-weight: 900;
    font-family: 'Arial Black', sans-serif;
    letter-spacing: 2px;
    margin-bottom: 40px;
    text-transform: uppercase;
}

/* KELİME kısmı - Beyaz */
.white-part {
    color: #ffffff;
    filter: drop-shadow(0 0 5px #ffffff);
}

/* TRİK kısmı - Sarı */
.yellow-part {
    color: #ffea00;
    filter: drop-shadow(0 0 5px #ffea00);
}

/* YENİ: Turkuaz Neon Yükleniyor Yazısı */
.neon-loading-text {
    margin-top: 25px;
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 3px;
    color: #00f0ff; /* Turkuaz / Siber Mavi */
    text-transform: uppercase;
    filter: drop-shadow(0 0 8px #00f0ff);
    font-family: sans-serif;
    /* Hafif yanıp sönme (nefes alma) efekti istersen (isteğe bağlı) */
    animation: neonPulse 1.5s infinite alternate;
}

/* Yükleniyor yazısı için hafif yanıp sönme efekti */
@keyframes neonPulse {
    from {
        opacity: 0.6;
    }

    to {
        opacity: 1;
    }
}



