:root {
    --bg-color: #080810;
    --panel-bg: rgba(15, 15, 30, 0.75);
    --panel-border: rgba(0, 240, 255, 0.2);
    
    /* Neon Colors */
    --cyan: #00f0ff;
    --purple: #d000ff;
    --magenta: #ff0055;
    --green: #39ff14;
    --gold: #ffd700;
    --text-color: #f0f3f8;
    --text-muted: #8a99ad;

    --font-title: 'Outfit', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
}

@keyframes pulseGlowAnim {
    0% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.22); filter: brightness(1.7) drop-shadow(0 0 12px var(--gold)); }
    100% { transform: scale(1); filter: brightness(1); }
}
.pulse-glow {
    animation: pulseGlowAnim 0.28s ease-out;
    display: inline-block;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #040209;
    color: var(--text-color);
    font-family: var(--font-body);
}

/* Background Ambient Glow Overlay */
.bg-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(208, 0, 255, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(0, 240, 255, 0.1) 0%, transparent 45%);
    pointer-events: none;
}

/* Canvas */
#game-canvas {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* UI Container */
#ui-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Screen Base */
.screen {
    position: absolute;
    width: 92%;
    max-width: 440px;
    padding: 1.6rem 1rem;
    border-radius: 24px;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 
                inset 0 1px 0 rgba(255, 255, 255, 0.1),
                0 0 30px rgba(0, 240, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 0;
    transform: scale(0.9) translateY(20px);
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.screen.active {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}

/* 🚀 SAVE SAVETHRON: ULTRA-CLEAN CYBERPUNK MAIN MENU STYLES */
.top-menu-container {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    width: 100%;
    margin-bottom: 1.2rem;
}

.top-menu-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 0.5rem;
}

.top-stat-pill {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.3rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
    overflow: hidden;
}

.pill-top-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 2px;
}

.coin-pill {
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.12);
}

.diamond-pill {
    border-color: rgba(0, 240, 255, 0.4);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.pill-icon {
    font-size: 0.85rem;
    flex-shrink: 0;
}

.pill-label {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.pill-val {
    font-family: var(--font-title);
    font-size: 1.05rem;
    font-weight: 900;
    color: var(--cyan);
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.gold-txt {
    color: var(--gold) !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.diamond-txt {
    color: #00f0ff !important;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.main-brand-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 1.5rem;
}

.main-title {
    font-family: var(--font-title);
    font-size: 3.4rem;
    font-weight: 900;
    line-height: 0.92;
    letter-spacing: -1.5px;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    text-shadow: 0 0 25px rgba(0, 240, 255, 0.3), 0 0 50px rgba(208, 0, 255, 0.25);
}

.cyan-magenta-text {
    background: linear-gradient(135deg, var(--cyan), #d000ff, var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cyber-badge {
    font-family: var(--font-title);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 2.5px;
    color: var(--gold);
    background: rgba(255, 215, 0, 0.12);
    border: 1px solid rgba(255, 215, 0, 0.35);
    padding: 3px 14px;
    border-radius: 20px;
    margin-bottom: 0.8rem;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.25);
    animation: pulseBadge 2s infinite alternate;
}

@keyframes pulseBadge {
    0% { transform: scale(1); box-shadow: 0 0 12px rgba(255, 215, 0, 0.2); }
    100% { transform: scale(1.04); box-shadow: 0 0 22px rgba(255, 215, 0, 0.5); }
}

.main-desc {
    font-size: 0.88rem;
    line-height: 1.35;
    color: var(--text-muted);
    max-width: 320px;
}

.main-action-box {
    width: 100%;
    max-width: 360px;
    margin-bottom: 1.4rem;
}

.btn-launch-play {
    width: 100%;
    padding: 3px;
    border: none;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--cyan), #d000ff, var(--gold));
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.45), 0 0 15px rgba(208, 0, 255, 0.3);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: pulsePlayBtn 1.8s infinite alternate;
}

.btn-launch-play:active {
    transform: scale(0.96);
}

.btn-launch-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    padding: 1.1rem 1.8rem;
    border-radius: 19px;
    background: linear-gradient(135deg, #18112c, #0a0614);
}

.launch-icon {
    font-size: 1.3rem;
    color: var(--cyan);
    text-shadow: 0 0 10px var(--cyan);
}

.launch-text {
    font-family: var(--font-title);
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

@keyframes pulsePlayBtn {
    0% { transform: scale(1); }
    100% { transform: scale(1.03); box-shadow: 0 0 40px rgba(0, 240, 255, 0.6), 0 0 20px rgba(208, 0, 255, 0.5); }
}

.menu-nav-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    width: 100%;
    max-width: 380px;
}

.nav-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 0.5rem;
    border-radius: 16px;
    cursor: pointer;
    backdrop-filter: blur(12px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-card:active {
    transform: scale(0.96);
}

/* 🎓 NASIL OYNANIR / HOW TO PLAY (ALTIN YEŞİL NEON) */
.tutorial-card-btn {
    border: 1.5px solid #ffd700;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.16), rgba(57, 255, 20, 0.12));
    box-shadow: 0 0 16px rgba(255, 215, 0, 0.2);
}
.tutorial-card-btn .card-title {
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

/* 🌀 SEKTÖR SEÇİMİ / SECTORS (TURKUAZ NEON) */
.map-card-btn {
    border: 1.5px solid #00f0ff;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.16), rgba(0, 150, 255, 0.12));
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.2);
}
.map-card-btn .card-title {
    color: #00f0ff;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

/* 📜 GÖREV LİSTESİ / MISSIONS (MOR MAGENTA NEON) */
.missions-card-btn {
    border: 1.5px solid #d000ff;
    background: linear-gradient(135deg, rgba(208, 0, 255, 0.16), rgba(255, 0, 150, 0.12));
    box-shadow: 0 0 16px rgba(208, 0, 255, 0.2);
}
.missions-card-btn .card-title {
    color: #ff66ff;
    text-shadow: 0 0 8px rgba(208, 0, 255, 0.5);
}

/* 🛒 SİBER MAĞAZA / CYBER SHOP (AMBER TURUNCU NEON) */
.shop-card-btn {
    border: 1.5px solid #ffaa00;
    background: linear-gradient(135deg, rgba(255, 170, 0, 0.18), rgba(255, 85, 0, 0.14));
    box-shadow: 0 0 18px rgba(255, 170, 0, 0.25);
}
.shop-card-btn .card-title {
    color: #ffaa00;
    text-shadow: 0 0 8px rgba(255, 170, 0, 0.5);
}

.nav-card .card-icon {
    font-size: 1.6rem;
    margin-bottom: 0.35rem;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.4));
}

.nav-card .card-title {
    font-family: var(--font-title);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Stats Row */
.stats-row {
    display: flex;
    gap: 1rem;
    width: 100%;
    margin-bottom: 1.8rem;
}

.stat-badge {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.7rem 1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-badge .label {
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.stat-badge .value {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--cyan);
}

.coin-val {
    color: var(--gold) !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

/* Buttons & Button Groups */
.btn-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
    align-items: center;
}

.btn-row {
    display: flex;
    gap: 0.6rem;
    width: 100%;
    max-width: 280px;
}

.btn-sm {
    flex: 1;
    font-size: 0.85rem;
    padding: 0.75rem 0.5rem;
}

.btn {
    font-family: var(--font-title);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 0.9rem 2rem;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    width: 100%;
    max-width: 280px;
    transition: all 0.2s ease;
}

.btn:active {
    transform: scale(0.96);
}

.btn-primary {
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    color: #000;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--cyan);
}

.btn-danger {
    background: linear-gradient(135deg, var(--magenta), #ff5500);
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 0, 85, 0.3);
}

/* HUD Overlay */
.hud-container {
    position: absolute;
    top: 15px;
    top: calc(15px + env(safe-area-inset-top));
    width: 94%;
    max-width: 780px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 12;
}

.hud-container.active {
    opacity: 1;
}

.hud-item {
    background: var(--panel-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    backdrop-filter: blur(10px);
}

.hud-item .label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-right: 0.5rem;
}

.hud-item .value {
    font-family: var(--font-title);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--cyan);
}

.combo-item {
    background: rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.4);
}

.combo-val {
    color: var(--gold) !important;
    font-weight: 800;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
}

/* Wave HUD Badge */
.wave-hud {
    background: rgba(255, 0, 85, 0.15);
    border-color: rgba(255, 0, 85, 0.4);
    box-shadow: 0 0 15px rgba(255, 0, 85, 0.2);
}

.wave-hud .label {
    color: var(--magenta);
    font-weight: 800;
}

.wave-txt {
    color: var(--gold) !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.auto-badge-hud {
    background: rgba(208, 0, 255, 0.15);
    border-color: rgba(208, 0, 255, 0.4);
}

.auto-badge-hud .value {
    color: var(--gold);
}

/* Castle HP HUD Bar */
.castle-hp-hud {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hp-bar-outer {
    width: 75px;
    height: 10px;
    border-radius: 6px;
    background: rgba(255, 0, 85, 0.2);
    border: 1px solid rgba(255, 0, 85, 0.5);
    overflow: hidden;
}

.hp-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff0055, #ff5500, #39ff14);
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.5);
    transition: width 0.25s ease;
}

.hp-txt {
    font-family: var(--font-title);
    font-size: 0.78rem;
    font-weight: 800;
    color: #fff;
}

/* OYUN İÇİ YETENEKLER BAR & İPUCU */
.game-controls {
    position: absolute;
    bottom: 25px;
    bottom: calc(25px + env(safe-area-inset-bottom));
    width: 90%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    z-index: 15;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.game-controls.active {
    opacity: 1;
    pointer-events: auto;
}

.tap-hint {
    font-family: var(--font-title);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--gold);
    background: var(--panel-bg);
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
    animation: pulse 2s infinite ease-in-out;
    pointer-events: none;
}

.abilities-bar {
    display: flex;
    gap: 0.9rem;
    align-items: center;
}

.auto-badge-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.25), rgba(0, 150, 255, 0.15));
    border: 2px solid var(--cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
    backdrop-filter: blur(8px);
    animation: autoPillPulse 2s infinite alternate;
}

.missile-pill {
    background: linear-gradient(135deg, rgba(255, 0, 85, 0.25), rgba(208, 0, 255, 0.15));
    border-color: #ff0055;
    box-shadow: 0 0 15px rgba(255, 0, 85, 0.4);
}

.pill-timer {
    font-family: var(--font-title);
    font-size: 0.82rem;
    font-weight: 800;
    color: #fff;
    margin-top: 1px;
}

@keyframes autoPillPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

/* Ability Buttons */
.ability-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(208, 0, 255, 0.2));
    border: 2px solid var(--purple);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(208, 0, 255, 0.3);
    transition: all 0.2s ease;
}

.ability-btn:active {
    transform: scale(0.9);
}

.ability-btn.disabled {
    opacity: 0.3;
    filter: grayscale(1);
    pointer-events: none;
    box-shadow: none;
}

.ability-btn.cooldown {
    opacity: 0.6;
    border-color: var(--magenta);
    pointer-events: none;
    box-shadow: none;
}

.magnet-ability-btn {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 85, 0, 0.2));
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.shockwave-ability-btn {
    border-color: #00f0ff;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.3), rgba(255, 0, 85, 0.3));
    box-shadow: 0 0 18px rgba(0, 240, 255, 0.5);
}

.ability-icon {
    font-size: 1.3rem;
    line-height: 1;
}

.ability-label {
    font-size: 0.5rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* Game Over Score Boxes */
.score-container {
    display: flex;
    gap: 1rem;
    width: 100%;
    margin-bottom: 2rem;
}

.score-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0.9rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.score-label {
    font-size: 0.68rem;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.score-value {
    font-family: var(--font-title);
    font-size: 1.7rem;
    font-weight: 800;
    color: #fff;
}

/* MAĞAZA & MODAL STİLLERİ */
.modal-screen {
    width: 95%;
    max-width: 530px;
    max-height: 88vh;
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0.8rem;
}

.modal-header h2 {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--cyan);
}

.cyber-wallet {
    background: rgba(255, 215, 0, 0.12);
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.subtitle-badge {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--gold);
}

.wallet-display {
    font-size: 0.9rem;
    font-weight: 700;
}

/* SİBERPUNK MAĞAZA SEKMELERİ NAVİGASYONU */
.shop-tabs-nav {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 0.6rem;
    margin-bottom: 0.8rem;
    border-bottom: 2px solid rgba(0, 240, 255, 0.15);
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox scrollbar gizleme */
    -ms-overflow-style: none; /* IE/Edge scrollbar gizleme */
}

.shop-tabs-nav:active {
    cursor: grabbing;
}

.shop-tabs-nav::-webkit-scrollbar {
    display: none !important; /* Chrome, Safari, Opera scrollbar gizleme */
}

.shop-tab-btn {
    flex-shrink: 0;
    font-family: var(--font-title);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 0.55rem 0.95rem;
    border-radius: 10px;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.shop-tab-btn.active {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.22), rgba(208, 0, 255, 0.22));
    border-color: var(--cyan);
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.35);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.shop-tab-btn[data-tab="diamonds"] {
    border-color: rgba(0, 240, 255, 0.35);
    color: #00f0ff;
}

.shop-tab-btn[data-tab="diamonds"].active {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.3), rgba(208, 0, 255, 0.3));
    border-color: #00f0ff;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

/* 💎 ELMAS PROMO BANNER */
.diamond-promo-banner {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 1rem;
    margin-bottom: 0.8rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(208, 0, 255, 0.15));
    border: 1px solid rgba(0, 240, 255, 0.4);
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.diamond-promo-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.4);
}

.promo-icon {
    font-size: 1.4rem;
}

.promo-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.promo-title {
    font-family: var(--font-title);
    font-size: 0.78rem;
    font-weight: 900;
    color: #00f0ff;
}

.promo-desc {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.85);
}

.shop-tab-cont.hidden {
    display: none !important;
}

/* 👑 BOSS BATTLE HUD STYLES */
.boss-hud {
    position: absolute;
    top: 75px;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    max-width: 420px;
    background: rgba(18, 12, 28, 0.85);
    border: 2px solid var(--magenta);
    border-radius: 12px;
    padding: 8px 14px;
    box-shadow: 0 0 25px rgba(255, 0, 85, 0.5), inset 0 0 15px rgba(255, 0, 85, 0.2);
    backdrop-filter: blur(8px);
    z-index: 80;
    transition: all 0.3s ease;
}

.boss-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.boss-warning-tag {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--magenta);
    background: rgba(255, 0, 85, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 1px;
    animation: blink 1s infinite alternate;
}

.boss-name {
    font-size: 0.85rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 10px var(--magenta), 0 0 20px var(--magenta);
    letter-spacing: 1.5px;
}

.boss-hp-bar-outer {
    width: 100%;
    height: 10px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    overflow: hidden;
}

.boss-hp-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff0055, #d000ff, #ffaa00);
    box-shadow: 0 0 12px #ff0055;
    border-radius: 6px;
    transition: width 0.15s ease-out;
}

/* 🌊 DALGA BAŞLANGIÇ BANNERI (AUTOFADE) STİLLERİ */
.wave-banner {
    position: absolute;
    top: 38%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(18, 12, 28, 0.88);
    border: 2px solid var(--cyan);
    border-radius: 20px;
    padding: 10px 28px;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.4), inset 0 0 15px rgba(0, 240, 255, 0.15);
    backdrop-filter: blur(10px);
    z-index: 95;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
    display: none;
}

.wave-banner h2 {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--cyan);
    text-shadow: 0 0 15px var(--cyan);
    letter-spacing: 2px;
    margin: 0;
}

/* 🎓 İNTERAKTİF EĞİTİM MODU STİLLERİ */
.btn-tutorial {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(0, 240, 255, 0.15));
    border: 1px solid var(--gold) !important;
    color: var(--gold) !important;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.25);
    font-weight: 800;
}

.tutorial-overlay {
    position: absolute;
    top: 75px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 440px;
    z-index: 120;
    pointer-events: auto;
    animation: bounceTutorial 0.4s ease;
}

.tutorial-card {
    position: relative;
    background: rgba(15, 10, 26, 0.92);
    border: 2px solid var(--gold);
    border-radius: 16px;
    padding: 14px 18px;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.35), inset 0 0 15px rgba(255, 215, 0, 0.12);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.tutorial-step-badge {
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    color: #000;
    background: var(--gold);
    padding: 2px 10px;
    border-radius: 12px;
    margin-bottom: 6px;
}

.tutorial-card h3 {
    font-family: var(--font-title);
    font-size: 1.05rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 4px;
    text-shadow: 0 0 10px var(--gold);
}

.tutorial-card p {
    font-size: 0.82rem;
    color: var(--text-color);
    line-height: 1.35;
    margin-bottom: 10px;
}

.tutorial-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.tutorial-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--cyan));
    box-shadow: 0 0 10px var(--gold);
    transition: width 0.3s ease;
}

.btn-skip {
    position: absolute;
    top: 8px;
    right: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 8px;
    cursor: pointer;
}

.btn-skip:hover {
    background: rgba(255, 0, 85, 0.2);
    color: var(--magenta);
    border-color: var(--magenta);
}

@keyframes bounceTutorial {
    0% { transform: translate(-50%, -20px); opacity: 0; }
    100% { transform: translate(-50%, 0); opacity: 1; }
}

.shop-tab-content {
    display: none;
    width: 100%;
}

.shop-tab-content.active {
    display: block;
    animation: fadeInTab 0.25s ease;
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.shop-content {
    overflow-y: auto;
    width: 100%;
    padding-right: 5px;
    margin-bottom: 1rem;
}

.shop-content::-webkit-scrollbar {
    width: 5px;
}
.shop-content::-webkit-scrollbar-thumb {
    background: rgba(0, 240, 255, 0.3);
    border-radius: 4px;
}

/* GALAKSİ HARİTASI KARTLARI */
.map-grid {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.map-card {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.25s ease;
}

.map-card.active {
    border-color: var(--cyan);
    background: rgba(0, 240, 255, 0.08);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
}

.map-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-right: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.map-info {
    flex: 1;
}

.map-info h4 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 0.15rem;
}

.map-info p {
    font-size: 0.74rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.map-bonus {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--cyan);
}

.bonus-gold {
    color: var(--gold) !important;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.btn-map-select {
    font-family: var(--font-title);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.5rem 0.8rem;
    border-radius: 10px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    cursor: pointer;
    white-space: nowrap;
}

.map-card.active .btn-map-select {
    background: var(--cyan);
    color: #000;
}

/* GÖREV İLERLEME BARI */
.mission-progress-bar {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.3rem 0;
    overflow: hidden;
}

.mission-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--cyan), var(--green));
    transition: width 0.3s ease;
}

.shop-grid {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.shop-card {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    transition: all 0.25s ease;
}

.shop-card:hover {
    border-color: rgba(0, 240, 255, 0.4);
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.12);
}

.card-icon {
    font-size: 1.8rem;
    margin-right: 0.9rem;
}

.card-info {
    flex: 1;
}

.card-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.card-info p {
    font-size: 0.74rem;
    color: var(--text-muted);
}

.lvl-badge {
    font-size: 0.7rem;
    color: var(--cyan);
    font-weight: 800;
}

.btn-buy {
    font-family: var(--font-title);
    font-size: 0.88rem;
    font-weight: 800;
    padding: 0.55rem 1rem;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, var(--gold), #ffaa00);
    color: #000;
    cursor: pointer;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    white-space: nowrap;
}

.btn-buy:active {
    transform: scale(0.92);
}

.btn-buy.owned {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    box-shadow: none;
    cursor: default;
}

.btn-buy.maxed {
    background: rgba(57, 255, 20, 0.2);
    color: var(--green);
    border: 1px solid var(--green);
    box-shadow: none;
    cursor: default;
}

.skins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(85px, 1fr));
    gap: 0.6rem;
}

.skin-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.8rem 0.5rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.2s ease;
    cursor: pointer;
}

.skin-card.active {
    border-color: var(--cyan);
    background: rgba(0, 240, 255, 0.08);
}

.skin-preview {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    margin-bottom: 0.4rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 240, 255, 0.4);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.skin-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.skin-card span {
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.btn-skin-select, .btn-bullet-select {
    font-family: var(--font-title);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    cursor: pointer;
}

.skin-card.active .btn-skin-select,
.skin-card.active .btn-bullet-select {
    background: var(--cyan);
    color: #000;
}

.btn-close-modal {
    max-width: 100%;
}

/* 🎁 GÜNLÜK ÖDÜL BANNER'I */
.daily-reward-bar {
    width: 90%;
    max-width: 480px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 110, 0, 0.25));
    border: 1px solid rgba(255, 215, 0, 0.6);
    border-radius: 14px;
    padding: 0.6rem 1rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    backdrop-filter: blur(12px);
    animation: dailyPulse 2s infinite ease-in-out;
}

@keyframes dailyPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 15px rgba(255, 215, 0, 0.3); }
    50% { transform: scale(1.02); box-shadow: 0 0 25px rgba(255, 215, 0, 0.5); }
}

.daily-reward-icon {
    font-size: 1.4rem;
}

.daily-reward-text {
    font-family: var(--font-title);
    font-size: 0.85rem;
    font-weight: 800;
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

.btn-claim-daily {
    font-family: var(--font-title);
    font-size: 0.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffd700, #ff7700);
    color: #000;
    border: none;
    border-radius: 10px;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
    transition: transform 0.2s ease;
}

.btn-claim-daily:hover {
    transform: scale(1.06);
}

/* 🛸 SAVAŞ GEMİLERİ HANGAR KARTLARI */
.ship-card {
    background: rgba(12, 10, 24, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.ship-card:hover {
    border-color: var(--cyan);
    transform: translateY(-2px);
}

.ship-card.active {
    border-color: var(--cyan);
    background: rgba(0, 240, 255, 0.12);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.25);
}

.ship-icon-box {
    width: 64px;
    height: 64px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ship-icon-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.6));
}

.ship-title {
    font-family: var(--font-title);
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
    color: var(--text-color);
}

.ship-desc {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.6rem;
    line-height: 1.2;
}

.ship-stats {
    width: 100%;
    margin-bottom: 0.6rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.2rem;
}

.stat-bar-outer {
    width: 50%;
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    background: var(--cyan);
    border-radius: 3px;
}

@media (max-width: 600px) {
    .screen {
        width: 95%;
        padding: 1.4rem 0.6rem;
    }
    .top-menu-bar {
        gap: 0.3rem;
    }
    .top-stat-pill {
        padding: 0.35rem 0.2rem;
    }
    .pill-icon {
        font-size: 0.8rem;
    }
    .pill-label {
        font-size: 0.55rem;
        letter-spacing: 0.3px;
    }
    .pill-val {
        font-size: 0.95rem;
    }

    /* 📱 Mobil Oyun İçi Top HUD ve Buton Parlatma */
    .hud-container {
        width: 98%;
        top: calc(6px + env(safe-area-inset-top));
        gap: 3px;
        justify-content: space-evenly;
    }

    .hud-item {
        padding: 0.25rem 0.4rem;
        border-radius: 8px;
    }

    .hud-item .label {
        font-size: 0.55rem;
        letter-spacing: 0px;
        margin-right: 0.2rem;
    }

    .hud-item .value {
        font-size: 0.82rem;
    }

    .wave-hud {
        padding: 0.25rem 0.45rem;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 4px;
        white-space: nowrap;
    }

    .wave-hud .label {
        font-size: 0.62rem;
        margin-right: 0;
    }

    .wave-hud .value {
        font-size: 0.82rem;
    }

    /* Mobilde klavye kısayolu metinlerini gizle */
    .ability-btn .ability-label small,
    .tap-hint span {
        display: none !important;
    }

    .tap-hint {
        font-size: 0.78rem;
        padding: 0.35rem 0.9rem;
    }

    .abilities-bar {
        gap: 0.4rem;
    }

    .ability-btn {
        min-width: 62px;
        padding: 0.5rem 0.4rem;
    }

    .ability-icon {
        font-size: 1.2rem;
    }

    /* 🛒 Mobil Mağaza Yükseklik & 2 Katlı Sekme Düzeni */
    .modal-screen {
        width: 96%;
        max-height: 94vh;
        padding: 1.1rem 0.75rem;
    }

    .modal-header {
        padding-bottom: 0.5rem;
        margin-bottom: 0.6rem;
    }

    .modal-header h2 {
        font-size: 1.25rem;
    }

    .cyber-wallet {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 2px;
        padding: 0.35rem 0.65rem;
        border-radius: 10px;
        background: rgba(255, 215, 0, 0.1);
        border: 1px solid rgba(255, 215, 0, 0.35);
    }

    .cyber-wallet span {
        font-size: 0.8rem;
        font-weight: 800;
    }

    /* 📱 Mobilde Tüm Sekmeler Yan Yana Eşit Sığar (Kısa Başlıklar Sayesinde Sıfır Kesilme!) */
    .shop-tabs-nav {
        display: flex;
        justify-content: space-between;
        gap: 0.25rem;
        width: 100%;
        overflow-x: visible;
        white-space: nowrap;
        padding-bottom: 0.3rem;
        margin-bottom: 0.7rem;
        border-bottom: 2px solid rgba(0, 240, 255, 0.15);
    }

    .shop-tab-btn {
        flex: 1;
        min-width: 0;
        font-size: 0.64rem;
        padding: 0.5rem 0.1rem;
        height: 35px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        font-weight: 800;
        white-space: nowrap;
        text-align: center;
    }

    .shop-content {
        max-height: 64vh;
    }

    .diamond-promo-banner {
        padding: 0.6rem 0.85rem;
        gap: 0.6rem;
        margin-bottom: 0.7rem;
    }

    .promo-icon {
        font-size: 1.3rem;
    }

    .promo-title {
        font-size: 0.76rem;
        line-height: 1.3;
        margin-bottom: 2px;
    }

    .promo-desc {
        font-size: 0.65rem;
        line-height: 1.25;
    }

    .shop-card {
        padding: 0.8rem 0.7rem;
    }

    .shop-card .card-info h4 {
        font-size: 0.88rem;
    }

    .shop-card .card-info p {
        font-size: 0.7rem;
    }
}

@media (max-width: 420px) {
    .screen {
        width: 95%;
        padding: 1.4rem 0.6rem;
    }
    .top-menu-bar {
        gap: 0.3rem;
    }
    .top-stat-pill {
        padding: 0.35rem 0.2rem;
    }
    .pill-icon {
        font-size: 0.8rem;
    }
}

/* 🏆 SİBER LİDERLİK TABLOSU & REKOR MODAL STİLLERİ */
.leaderboard-list-container {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0.4rem;
    max-height: 52vh;
    overflow-y: auto;
}

.leaderboard-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(18, 16, 35, 0.7);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 10px;
    padding: 0.65rem 0.9rem;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.leaderboard-row:hover {
    transform: scale(1.01);
    border-color: var(--cyan);
}

.leaderboard-row.rank-1 {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.22), rgba(18, 16, 35, 0.85));
    border: 1.5px solid #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.leaderboard-row.rank-2 {
    background: linear-gradient(90deg, rgba(192, 192, 192, 0.18), rgba(18, 16, 35, 0.85));
    border: 1.5px solid #c0c0c0;
}

.leaderboard-row.rank-3 {
    background: linear-gradient(90deg, rgba(205, 127, 50, 0.18), rgba(18, 16, 35, 0.85));
    border: 1.5px solid #cd7f32;
}

.leaderboard-row.is-current-player {
    border-color: #39ff14 !important;
    background: rgba(57, 255, 20, 0.12) !important;
}

.rank-badge-box {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 800;
}

.rank-num {
    font-size: 1.1rem;
    min-width: 28px;
    text-align: center;
}

.rank-player-name {
    font-family: var(--font-title);
    font-size: 1rem;
    letter-spacing: 0.5px;
    color: #fff;
}

.rank-stats-box {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.rank-wave-pill {
    font-size: 0.72rem;
    background: rgba(0, 240, 255, 0.15);
    color: var(--cyan);
    border: 1px solid rgba(0, 240, 255, 0.4);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-weight: 700;
}

.rank-score-val {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 1.1rem;
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

/* Modal Center Card for Record Entry */
.modal-card-center {
    background: rgba(12, 10, 25, 0.95);
    border: 2px solid #ffd700;
    box-shadow: 0 0 35px rgba(255, 215, 0, 0.4);
    border-radius: 16px;
    padding: 1.8rem 1.4rem;
    max-width: 420px;
    width: 90%;
    margin: auto;
    text-align: center;
}

.new-record-crown {
    font-size: 3rem;
    animation: pulseGlowAnim 1.2s infinite ease-in-out;
}

.nickname-input-group input {
    width: 100%;
    padding: 0.85rem;
    border-radius: 8px;
    border: 1.5px solid var(--cyan);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-family: var(--font-title);
    font-size: 1.1rem;
    text-align: center;
    outline: none;
    letter-spacing: 1px;
    box-shadow: inset 0 0 10px rgba(0, 240, 255, 0.2);
}

.nickname-input-group input:focus {
    border-color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}
