/* --- ARAYÜZ (LOBBY & GAME OVER) - DÜZELTİLDİ --- */
#overlay,
#game-over-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 200;

    /* GÜNCELLEME: Simetri için sıkı Gap ve Padding ayarı */
    gap: 8px;
    padding: 8px;
    text-align: center;
    /* Her şeyi ortala */
}

/* Lobby: arka planı lobby-bg canvas sağlar */
#overlay {
    background: transparent;
}

/* Game-over: opak arka plan gerekir (oyun canvas'ı arkada görünmesin) */
#game-over-screen {
    background: rgba(5, 5, 10, 0.95);
}

/* Lobby arka plan canvas — overlay içinde mutlak konumlu, z-index 0 */
#lobby-bg-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    background: #03040b; /* JS başlamadan önce siyah fallback */
    pointer-events: none;
    z-index: 0;
}

/* Margin sıfırlama (Gap kullanıyoruz) */
#overlay>*,
#game-over-screen>* {
    margin: 0 !important;
}

/* Lobby canvas dışındaki flex içerik canvas'ın önünde görünür.
   scroll butonları (position:absolute) hariç tutulur — position'ları bozulmasın. */
#overlay > *:not(#lobby-bg-canvas):not(#scroll-right-btn):not(#scroll-left-btn) {
    position: relative;
    z-index: 1;
}

/* Başlık ayarları (Game Over başlığı için de geçerli) */
h1 {
    font-size: 3rem;
    color: #fff;
    text-shadow: 0 0 20px #00eaff;
    letter-spacing: 5px;
    line-height: 1.2;
    text-align: center;
}

.subtitle {
    color: #888;
    letter-spacing: 3px;
    font-size: 0.9rem;
}

/* Para göstergesi (Lobby) */
/* --- public/style.css --- */

.lobby-money {
    /* top-left-controls flex satırında yaşıyor — absolute yok */
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.1rem;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    background: rgba(0, 0, 0, 0.5);
    padding: 0 18px;
    height: var(--icon-btn-size, 40px);
    border-radius: 20px;
    border: 1px solid #ffd700;
    white-space: nowrap;
    flex-shrink: 0;
    animation: slideDown 0.5s ease-out;
}

/* Oyun içinde para #center-panel'dan okunur, lobby-money gizlenir */
body.in-game .lobby-money {
    display: none !important;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* GİRİŞ EKRANI İSİM KUTUSU - Eşitlendi */
#usernameInput {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #00eaff;
    color: #fff;
    padding: 14px;
    font-family: 'Orbitron';
    font-size: 1.3rem;
    text-align: center;
    width: 360px;
    /* Butonla aynı genişlik - daha da büyütüldü */
    outline: none;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 234, 255, 0.1);
}

/* style.css - Hangar Container Güncellemesi */

/* Hangar Wrapper - Geri butonu ve container'ı saran kutu */
.hangar-wrapper {
    position: relative;
    width: fit-content;
    max-width: 95%;
    margin: 0 auto;
    margin-top: -15px;
    /* Yukarı taşıma - detaylı rehbere yaklaştırma */
}

.hangar-container {
    display: flex;
    gap: 10px;
    padding: 15px;
    padding-top: 60px;
    /* Geri butonu için üstte boşluk */

    width: fit-content;
    max-width: 100%;

    overflow-x: auto;
    /* Yatay kaydırma */
    padding-bottom: 30px;
    /* Hover efekti için boşluk */
    align-items: stretch;
    /* Kart boylarını eşitle */

    /* Scrollbar Tasarımı */
    scrollbar-width: thin;
    scrollbar-color: #00eaff rgba(0, 0, 0, 0.5);
}

/* YENİ: SAĞ KAYDIRMA OKU */
#scroll-right-btn {
    display: none;
    /* Varsayılan olarak GİZLİ */
    position: absolute;
    right: 20px;
    top: 55%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: #00eaff;
    cursor: pointer;
    z-index: 210;
    opacity: 0.7;
    animation: bounceRight 1.5s infinite;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(0, 234, 255, 0.3);
    transition: 0.3s;
}

#scroll-right-btn:hover {
    background: rgba(0, 234, 255, 0.2);
    opacity: 1;
    box-shadow: 0 0 15px #00eaff;
}

@keyframes bounceRight {

    0%,
    100% {
        transform: translate(0, -50%);
    }

    50% {
        transform: translate(5px, -50%);
    }
}

/* --- GÜNCELLENMİŞ KART TASARIMI (DAHA BÜYÜK YAZILAR & NEON ANİMASYON) --- */

.ship-card {
    /* Boyutlar aynı */
    width: 200px !important;
    min-width: 200px;
    height: 310px !important;

    background: linear-gradient(180deg, rgba(0, 20, 40, 0.95), rgba(0, 10, 20, 0.98));
    border: 1px solid rgba(0, 234, 255, 0.3);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    padding: 12px;
    /* İç boşluğu biraz artırdık */
    position: relative;

    /* ANİMASYON GEÇİŞİ BURADA */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    overflow: hidden;
}

/* --- YENİ HOVER (ÜZERİNE GELME) EFEKTİ --- */
.ship-card:hover {
    transform: translateY(-8px) scale(1.02);
    /* Yukarı kalkma */
    border-color: #00eaff;
    /* Çerçeve parlasın */
    box-shadow:
        0 10px 25px rgba(0, 234, 255, 0.3),
        /* Dış gölge */
        inset 0 0 15px rgba(0, 234, 255, 0.1);
    /* İç neon parlaması */
    z-index: 10;
    /* Diğer kartların önüne geçsin */
}

/* Seçili Kart Efekti */
.ship-card.selected {
    border: 2px solid #00eaff;
    background: rgba(0, 234, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 234, 255, 0.4);
    transform: scale(1.02);
    /* Seçili kart hafif büyük dursun */
}

.ship-icon {
    width: 65px;
    /* İkonu çok az büyüttük */
    height: 65px;
    margin: 0 auto 5px auto;
    display: block;
    filter: drop-shadow(0 0 5px rgba(0, 234, 255, 0.6));
    pointer-events: none;
    flex-shrink: 0;
}

.ship-name {
    font-size: 1rem;
    /* İsim büyüdü (0.9 -> 1.0) */
    font-weight: 900;
    color: #fff;
    text-align: center;
    margin-bottom: 5px;
    flex-shrink: 0;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
}

/* AÇIKLAMA KUTUSU (Genişletildi) */
.ship-desc {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 6px 8px;

    /* YAZI BÜYÜDÜ */
    font-size: 0.75rem;
    /* (0.65 -> 0.75) Okunabilir oldu */
    color: #ddd;
    line-height: 1.3;
    text-align: center;

    /* KUTU YÜKSEKLİĞİ ARTTI */
    height: 55px;
    /* (40px -> 55px) Boşluğu doldurmak için */

    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* İSTATİSTİK ALANI */
.stat-container {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    padding: 8px;
    border-radius: 4px;

    /* Margin-top: auto, bu kutuyu en alta iter. 
       Yukarıdaki yazı büyüdüğü için aradaki boşluk artık azalacaktır. */
    margin-top: auto;

    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-label {
    /* ETİKETLER BÜYÜDÜ */
    font-size: 0.7rem;
    /* (0.55 -> 0.7) Artık "ZIRH" rahat okunur */
    color: #bbb;
    margin-bottom: 2px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-bar {
    width: 100%;
    height: 4px;
    /* Bar kalınlığı hafif arttı (3px -> 4px) */
    background: #222;
    border-radius: 2px;
    overflow: hidden;
}

/* --- EKSİK OLAN KISIM BURASI --- */
.stat-fill {
    height: 100%;
    /* Bunu yazmadığımız için barlar 0px boyunda kalıyordu */
    width: 0;
    /* JS ile dolacak */
    border-radius: 2px;
    transition: width 0.5s ease-out;
    /* Dolarken şık bir animasyon olsun */
}

.ship-price,
.ship-owned {
    font-size: 0.85rem;
    margin-top: 8px;
    font-weight: bold;
    text-align: center;
}

/* ELITE KARTLAR */
.elite-card {
    border-color: #aa00ff;
    background: linear-gradient(180deg, rgba(30, 0, 50, 0.9), rgba(10, 0, 20, 0.95));
}

.elite-card .ship-icon {
    color: #d000ff;
    filter: drop-shadow(0 0 8px #aa00ff);
}

.elite-card .ship-name {
    color: #e0aaff;
    text-shadow: 0 0 10px #aa00ff;
}

.elite-card .ship-desc {
    border-color: rgba(170, 0, 255, 0.3);
    background: rgba(20, 0, 40, 0.6);
    color: #e0aaff;
}

.elite-card .stat-fill {
    background: #d000ff;
    box-shadow: 0 0 8px #d000ff;
}

.elite-card .stat-label {
    color: #d000ff;
}

.elite-card:hover {
    border-color: #d000ff;
    box-shadow: 0 10px 30px rgba(170, 0, 255, 0.4);
}

.elite-card.selected {
    border-color: #d000ff;
    background: rgba(170, 0, 255, 0.2);
}

.ship-card:last-child.elite-card {
    border: 2px solid #ffd700;
    background: linear-gradient(180deg, rgba(40, 30, 0, 0.9), rgba(10, 5, 0, 0.95));
}

.ship-card:last-child.elite-card .ship-icon {
    color: #ffd700;
    filter: drop-shadow(0 0 10px #ffd700);
}

.ship-card:last-child.elite-card .ship-name {
    color: #ffd700;
}

.ship-card:last-child.elite-card .stat-fill {
    background: #ffd700;
    box-shadow: 0 0 10px #ffd700;
}

.ship-card:last-child.elite-card .stat-label {
    color: #ffd700;
}

/* Elite Gate - Özel Gemiler Kartı */
.elite-gate {
    width: 140px !important;
    border: 2px dashed #ffd700;
    background: rgba(255, 215, 0, 0.05);
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 15px 10px !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

.elite-gate:hover {
    background: rgba(255, 215, 0, 0.15);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.elite-gate .ship-icon.elite-gem-icon {
    width: 60px !important;
    height: 60px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 10px !important;
}

.elite-gate .ship-icon.elite-gem-icon i {
    font-size: 2.5rem !important;
    color: #ffd700 !important;
    text-shadow: 0 0 15px #ffaa00 !important;
    animation: gemPulse 2s ease-in-out infinite;
}

.elite-gate .ship-name {
    font-size: 0.85rem !important;
    margin-top: 5px !important;
    text-align: center !important;
}

.elite-gate-desc {
    font-size: 0.6rem;
    color: #aaa;
    margin-top: 5px;
    text-align: center;
}

@keyframes gemPulse {

    0%,
    100% {
        transform: scale(1);
        filter: brightness(1);
    }

    50% {
        transform: scale(1.1);
        filter: brightness(1.3);
    }
}

.back-card {
    width: 100px !important;
    border: 2px dashed #00eaff;
    justify-content: center;
    align-items: center;
    opacity: 0.7;
}

/* --- BİLDİRİM SİSTEMİ --- */
#notification-area {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    z-index: 9999;
    width: 80%;
}

.kill-msg {
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 15px;
    border-radius: 10px;
    border: 1px solid rgba(0, 234, 255, 0.3);
    text-align: center;
    margin-bottom: 8px;
    backdrop-filter: blur(2px);
    animation: popIn 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards, fadeOut 0.5s ease-in 2.5s forwards;
}

.kill-text {
    font-size: 1.3rem;
    color: #fff;
    text-shadow: 0 0 10px #00eaff;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.kill-sub {
    font-size: 2.2rem;
    color: #ffd700;
    text-shadow: 0 0 20px #ff0000;
    font-weight: 900;
    margin: 2px 0;
    animation: shake 0.5s infinite;
}

.kill-reward {
    font-size: 1rem;
    color: #00ff88;
    font-weight: bold;
    margin-top: 2px;
}

@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

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

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

@keyframes shake {
    0% {
        transform: translate(1px, 1px) rotate(0deg);
    }

    10% {
        transform: translate(-1px, -2px) rotate(-1deg);
    }

    50% {
        transform: translate(-1px, 2px) rotate(-1deg);
    }

    100% {
        transform: translate(1px, -2px) rotate(-1deg);
    }
}

/* MOBİL KONTROLLER */
#mobile-controls {
    position: absolute;
    bottom: 80px;
    width: 100%;
    display: none;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 15;
    pointer-events: none;
}

.joystick-area {
    width: 100px;
    height: 100px;
    position: relative;
    pointer-events: auto;
    opacity: 0.6;
}

.stick-base {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.stick-handle {
    width: 40px;
    height: 40px;
    background: #00eaff;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px #00eaff;
}

/* Masaüstü için mobil kontrolleri gizle */
/* pointer: fine = mouse/trackpad (PC), pointer: coarse = dokunmatik (mobil/tablet) */
@media (pointer: fine) {
    #mobile-controls {
        display: none !important;
    }
}

/* Dokunmatik cihazlarda (tablet dahil) landscape modda joystick göster */
@media (pointer: coarse) and (orientation: landscape) {
    #mobile-controls {
        display: flex !important;
        z-index: 200 !important;
    }
}

/* Portrait mod artık CSS ile landscape'e dönüştürülüyor (yukarıdaki transform kuralı) */

/* --- OYUN MODLARI BUTON CONTAINER --- */
.game-modes-container {
    display: flex;
    align-items: stretch;
    width: 360px;
    /* usernameInput ile aynı genişlik - daha da büyütüldü */
    height: 68px;
    /* Yükseklik daha da büyütüldü */
    position: relative;
    margin-top: 5px;
}

/* Ortak mod butonu stili */
.mode-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 10px 8px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.95rem;
    /* Font daha da büyütüldü */
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.mode-btn i {
    font-size: 1.35rem;
    /* İkon daha da büyütüldü */
    margin-bottom: 3px;
}

/* Hayatta Kal butonu - Sol taraf (mavi/cyan) */
.survival-btn {
    background: linear-gradient(135deg, rgba(0, 40, 60, 0.9), rgba(0, 80, 100, 0.8));
    color: #00eaff;
    border-radius: 4px 0 0 4px;
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
    padding-right: 15px;
    box-shadow: 0 0 15px rgba(0, 234, 255, 0.3);
}

.survival-btn:hover {
    background: linear-gradient(135deg, rgba(0, 60, 80, 0.95), rgba(0, 100, 120, 0.9));
    box-shadow: 0 0 25px rgba(0, 234, 255, 0.6);
    text-shadow: 0 0 10px #00eaff;
}

/* Takım Savaşı butonu - Sağ taraf (kırmızı/turuncu) */
.tdm-btn {
    background: linear-gradient(135deg, rgba(100, 20, 0, 0.9), rgba(150, 40, 0, 0.8));
    color: #ff6600;
    border-radius: 0 4px 4px 0;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
    padding-left: 15px;
    box-shadow: 0 0 15px rgba(255, 68, 0, 0.3);
}

.tdm-btn:hover {
    background: linear-gradient(135deg, rgba(130, 30, 0, 0.95), rgba(180, 50, 0, 0.9));
    box-shadow: 0 0 25px rgba(255, 68, 0, 0.6);
    text-shadow: 0 0 10px #ff6600;
}

/* Çapraz ayırıcı - ortada */
.mode-divider {
    position: absolute;
    left: 50%;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #00eaff, #ff6600);
    transform: translateX(-50%) skewX(-15deg);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    z-index: 5;
}

/* GAME OVER BUTONU */
#game-over-screen button {
    background: rgba(0, 20, 40, 0.8);
    color: #ff0055;
    border: 1px solid #ff0055;
    width: 280px;
    padding: 12px 0;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 0, 85, 0.2);
    transition: all 0.3s ease;
    border-radius: 4px;
}

#game-over-screen button:hover {
    background: rgba(255, 0, 85, 0.15);
    box-shadow: 0 0 20px rgba(255, 0, 85, 0.6);
    text-shadow: 0 0 8px #ff0055;
    transform: translateY(-2px);
}

/* --- YENİ HANGAR KONTROLLERİ --- */

/* 1. Sabit Geri Butonu - Elite modda görünür */
#fixed-back-btn {
    position: absolute;
    left: 15px;
    /* Sol kenardan minik aralık */
    top: 10px;
    /* Üstten minik aralık */

    background: rgba(255, 0, 85, 0.2);
    border: 1px solid #ff0055;
    color: #ff0055;
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Orbitron';
    font-size: 0.9rem;
    font-weight: bold;
    transition: 0.3s;
    z-index: 220;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

#fixed-back-btn:hover {
    background: #ff0055;
    color: #fff;
    box-shadow: 0 0 15px #ff0055;
}

/* 2. Sol Ok Butonu (Sağ ok ile aynı stilde ama solda) */
#scroll-left-btn {
    display: none;
    /* JS ile açılacak */
    position: absolute;
    left: 20px;
    /* Solda */
    top: 55%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: #00eaff;
    cursor: pointer;
    z-index: 210;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(0, 234, 255, 0.3);
    transition: 0.3s;
}

#scroll-left-btn:hover {
    background: rgba(0, 234, 255, 0.2);
    box-shadow: 0 0 15px #00eaff;
}

/* 3. Soluklaştırma (Pasif Buton) Efekti */
.scroll-disabled {
    opacity: 0.2 !important;
    pointer-events: none;
    /* Tıklanmasın */
    filter: grayscale(100%);
}

/* --- MINI TUTORIAL (LOBI) --- */
.mini-tutorial {
    display: flex;
    gap: 20px;
    background: rgba(0, 20, 40, 0.6);
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid rgba(0, 234, 255, 0.2);
    margin-bottom: 10px;
}

.tut-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ccc;
    font-size: 0.8rem;
}

.tut-item i {
    color: #00eaff;
    font-size: 1rem;
}

.key-box {
    border: 1px solid #fff;
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    color: #fff;
}

.guide-link-btn {
    background: transparent;
    border: none;
    color: #888;
    font-size: 0.8rem;
    text-decoration: underline;
    cursor: pointer;
    font-family: 'Orbitron';
    letter-spacing: 1px;
    transition: 0.3s;
    margin-bottom: 10px;
}

.guide-link-btn:hover {
    color: #00eaff;
    text-shadow: 0 0 5px #00eaff;
}

/* --- GAME OVER IPUCU (GÜNCELLENDİ) --- */
.death-tip-text {
    /* Konumlandırma: TDM moduyla aynı - normal akışta */
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;

    /* Görünüm */
    font-size: 0.95rem;
    color: #ffd700;
    /* Altın Sarısı */
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
    /* Okunabilirlik için gölge */
    width: auto;
    /* TDM ile aynı */
    text-align: center;
    font-style: normal;
    /* TDM ile aynı */
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;

    /* Ortalanmış - TDM ile aynı */
    margin: 0 auto;

    /* Animasyon kapalı - TDM moduyla tutarlılık için */
    animation: none;
    opacity: 1;
}

/* --- MOBİL LANDSCAPE - SURVIVAL DEATH-TIP (TDM ile aynı) --- */
@media (pointer: coarse) and (orientation: landscape) {

    /* Survival modunda death-tip'i TDM ile aynı konumda göster - normal akışta */
    body:not(.tdm-mode) #game-over-screen .death-tip-text {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
        animation: none !important;
        opacity: 1 !important;
        width: auto !important;
        max-width: none !important;
        margin: 0 auto !important;
        font-style: normal !important;
    }

    /* Survival modunda butona margin-top ekle - TDM'deki MVP container'ın yerini doldurmak için */
    body:not(.tdm-mode) #game-over-screen button {
        margin-top: 0 !important;
    }
}

/* İpucunun aşağıdan yukarı süzülerek gelmesi için animasyon */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* --- DETAYLI REHBER MODAL --- */
.guide-modal-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 10000;
    /* En üstte */
    display: flex;
    justify-content: center;
    align-items: center;
}

.guide-content {
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    background: linear-gradient(180deg, #0a1015, #000);
    border: 1px solid #00eaff;
    border-radius: 10px;
    padding: 25px;
    overflow-y: auto;
    /* Kaydırma çubuğu */
    position: relative;
    box-shadow: 0 0 30px rgba(0, 234, 255, 0.2);
    color: #ddd;
    font-family: sans-serif;
    /* Okuma kolaylığı için */
}

.guide-content h2 {
    font-family: 'Orbitron';
    color: #00eaff;
    text-align: center;
    margin-top: 0;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.guide-section {
    margin-bottom: 20px;
}

.guide-section h3 {
    font-family: 'Orbitron';
    color: #ffd700;
    font-size: 1.1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.guide-section ul {
    padding-left: 20px;
    line-height: 1.6;
}

.guide-section li {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.close-guide {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #ff0055;
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.3s;
}

.close-guide:hover {
    transform: scale(1.2);
    text-shadow: 0 0 10px #ff0055;
}

.guide-footer {
    text-align: center;
    margin-top: 20px;
}

.guide-footer button {
    background: #00eaff;
    color: #000;
    border: none;
    padding: 10px 30px;
    font-family: 'Orbitron';
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
}

.guide-footer button:hover {
    background: #fff;
    box-shadow: 0 0 15px #00eaff;
}

/* Mobil Düzenleme */
@media (max-width: 600px) {
    .mini-tutorial {
        flex-direction: column;
        gap: 5px;
        padding: 10px;
        border-radius: 10px;
    }
}

/* --- BAR RENKLERİ VE PARLAMALARI --- */
/* !important kullanarak Elite temalarından etkilenmemesini sağlıyoruz */

/* Can Barı (Yeşil) */
.bar-hp {
    background: #00ff88 !important;
    box-shadow: 0 0 6px #00ff88 !important;
}

/* Hız Barı (Mavi) */
.bar-speed {
    background: #00eaff !important;
    box-shadow: 0 0 6px #00eaff !important;
}

/* Hasar Barı (Kırmızı) */
.bar-dmg {
    background: #ff0055 !important;
    box-shadow: 0 0 6px #ff0055 !important;
}

/* Serilik Barı (Sarı) */
.bar-fire {
    background: #ffd700 !important;
    box-shadow: 0 0 6px #ffd700 !important;
}

