/* GENEL AYARLAR */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #fff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#oyun-container {
    width: 100%;
    max-width: 800px;
    background: #1f1f1f;
    border: 3px solid #ff4444;
    border-radius: 10px;
    box-shadow: 0 10px 50px rgba(255, 68, 68, 0.3);
}

/* EKRAN SİSTEMİ */
.ekran {
    display: none;
    padding: 40px;
}

.ekran.aktif {
    display: block;
}

/* ANA MENÜ */
#ana-menu {
    text-align: center;
}

#ana-menu h1 {
    font-size: 3em;
    color: #ff4444;
    text-shadow: 0 0 20px rgba(255, 68, 68, 0.5);
    margin-bottom: 10px;
}

.altyazi {
    color: #888;
    font-size: 1.2em;
    margin-bottom: 50px;
}

.menu-butonlar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 300px;
    margin: 0 auto;
}

/* BUTONLAR */
.buton-buyuk {
    padding: 20px;
    font-size: 1.5em;
    font-weight: bold;
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.buton-buyuk:hover {
    background: #ff6666;
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 68, 68, 0.5);
}

.buton {
    padding: 15px 25px;
    font-size: 1.1em;
    background: #444;
    color: white;
    border: 2px solid #666;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
}

.buton:hover {
    background: #555;
    border-color: #ff4444;
    transform: translateY(-2px);
}

/* ÜST BAR (STATS) */
.ust-bar {
    display: flex;
    justify-content: space-around;
    background: #2a2a2a;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
    border: 2px solid #444;
}

.stat {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2em;
}

.ikon {
    font-size: 1.5em;
}

/* ANA İÇERİK */
.ana-icerik {
    text-align: center;
}

.ana-icerik h2 {
    color: #ff4444;
    margin-bottom: 20px;
    font-size: 2em;
}

.ana-icerik p {
    color: #aaa;
    font-size: 1.2em;
    margin-bottom: 40px;
}

.aksiyon-butonlar {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

/* MESAJ KUTUSU */
.mesaj-kutusu {
    background: #2a2a2a;
    border: 2px solid #ff4444;
    border-radius: 5px;
    padding: 30px;
    margin-top: 30px;
}

.mesaj-kutusu p {
    font-size: 1.3em;
    margin-bottom: 20px;
}

.gizli {
    display: none !important;
}

/* ANİMASYONLAR */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ekran.aktif {
    animation: fadeIn 0.5s;
}

/* HARİTA SİSTEMİ */
.harita-container {
    margin: 30px 0;
}

.mahalle-section {
    margin-bottom: 40px;
}

.mahalle-baslik {
    text-align: center;
    padding: 15px;
    border-left: 5px solid;
    background: #2a2a2a;
    margin-bottom: 20px;
}

.mahalle-baslik h3 {
    font-size: 1.8em;
    margin: 0;
}

.bolgeler-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.bolge-kart {
    background: #2a2a2a;
    border: 3px solid;
    border-radius: 10px;
    padding: 20px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.bolge-kart:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255,255,255,0.1);
}

.bolge-ikon {
    font-size: 3em;
    margin-bottom: 10px;
}

.bolge-isim {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 5px;
}

.bolge-sahip {
    font-size: 0.9em;
    opacity: 0.8;
}

/* ÇETE KARTLARI */
.cete-kartlar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.cete-kart {
    background: #2a2a2a;
    border: 3px solid;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.cete-logo {
    font-size: 4em;
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.cete-bilgi h4 {
    font-size: 1.3em;
    margin-bottom: 5px;
}

.cete-lider {
    color: #888;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.cete-stats {
    display: flex;
    justify-content: space-around;
    font-size: 1.1em;
    padding-top: 15px;
    border-top: 1px solid #444;
}

/* OYUN İÇİ MESAJ SİSTEMİ */
.oyun-mesaj-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s;
}

.oyun-mesaj-kutu {
    background: #1a1a1a;
    border: 3px solid #ff4444;
    border-radius: 15px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s;
}

.oyun-mesaj-kutu.basari {
    border-color: #00ff00;
}

.oyun-mesaj-kutu.bilgi {
    border-color: #4444ff;
}

.oyun-mesaj-kutu.uyari {
    border-color: #ffaa00;
}

.oyun-mesaj-ikon {
    font-size: 4em;
    text-align: center;
    margin-bottom: 20px;
}

.oyun-mesaj-baslik {
    font-size: 1.8em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
}

.oyun-mesaj-icerik {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 30px;
    text-align: center;
    white-space: pre-line;
}

.oyun-mesaj-butonlar {
    display: flex;
    gap: 15px;
    justify-content: center;
}

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

/* ÇETE KURMA */
.logo-secim:hover {
    transform: scale(1.1);
    background: #3a3a3a !important;
}

#cete-ismi-input:focus {
    border-color: #00ff00;
    outline: none;
}

/* ANİMASYONLAR */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Para animasyonu */
@keyframes paraArti {
    0% {
        transform: scale(1);
        color: #00ff00;
    }
    50% {
        transform: scale(1.2);
        color: #00ff00;
    }
    100% {
        transform: scale(1);
        color: white;
    }
}

/* İtibar animasyonu */
@keyframes itibarPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
        color: #ffaa00;
    }
}

.para-artti {
    animation: paraArti 0.5s ease;
}

.itibar-artti {
    animation: itibarPulse 0.6s ease;
}

/* MESAJ TİPLERİ İÇİN RENKLER */
.oyun-mesaj-kutu.zafer {
    border: 2px solid #00ff00;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.3);
}

.oyun-mesaj-kutu.yenilgi {
    border: 2px solid #ff0000;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.3);
}

.oyun-mesaj-kutu.uyari {
    border: 2px solid #ffaa00;
    box-shadow: 0 0 30px rgba(255, 170, 0, 0.3);
}

.oyun-mesaj-kutu.basari {
    border: 2px solid #00aaff;
    box-shadow: 0 0 30px rgba(0, 170, 255, 0.3);
}

/* LOADING SPINNER */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #333;
    border-top-color: #00ff00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

/* EFEKTLER İÇİN CSS */
@keyframes paraYagmurAnim {
    to {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes kanFade {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

/* Progress Bar */
.progress-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s;
}

.progress-container {
    background: #1a1a1a;
    padding: 40px;
    border-radius: 15px;
    border: 2px solid #00ff00;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.3);
    min-width: 400px;
    text-align: center;
}

.progress-container h3 {
    margin-bottom: 20px;
    color: #00ff00;
    font-size: 1.5em;
}

.progress-bar-bg {
    width: 100%;
    height: 30px;
    background: #2a2a2a;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid #444;
    margin-bottom: 15px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff00, #00aa00);
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.progress-container p {
    color: #00ff00;
    font-size: 1.2em;
    font-weight: bold;
}

/* Pulsating glow effect */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 5px currentColor;
    }
    50% {
        box-shadow: 0 0 20px currentColor, 0 0 30px currentColor;
    }
}

.glow-effect {
    animation: pulse-glow 2s infinite;
}

/* ANA MENÜ BUTONLARI (OYUN İÇİ) */
.ana-menu-butonlar {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin: 30px 0;
}

.menu-buton {
    padding: 20px 10px;
    font-size: 1.1em;
    font-weight: bold;
    background: #2a2a2a;
    color: white;
    border: 2px solid #444;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.menu-buton:hover:not(:disabled) {
    background: #3a3a3a;
    border-color: #00ff00;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.menu-buton:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none !important;
}

/* SUÇ MENÜSÜ */
.suc-menu {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.suc-buton {
    background: #2a2a2a;
    border: 3px solid #444;
    border-radius: 10px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    z-index: 1;
}

.suc-buton * {
    pointer-events: none;
}

.suc-buton:hover {
    transform: translateY(-5px);
    border-color: #ff4444;
    box-shadow: 0 10px 30px rgba(255, 68, 68, 0.4);
}

.suc-ikon {
    font-size: 3em;
    margin-bottom: 10px;
}

.suc-isim {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 5px;
}

.suc-bilgi {
    color: #888;
    font-size: 0.9em;
}

/* SİLAH MENÜSÜ */
.silah-menu {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.silah-kart {
    background: #2a2a2a;
    border: 3px solid #444;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.silah-kart:hover {
    transform: translateY(-5px);
    border-color: #00ff00;
    box-shadow: 0 10px 25px rgba(0, 255, 0, 0.3);
}

.silah-ikon {
    font-size: 3em;
    margin-bottom: 10px;
}

.silah-isim {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 5px;
}

.silah-hasar {
    color: #ff4444;
    font-size: 0.9em;
    margin-bottom: 15px;
}

/* ÇETE EYLEM MENÜSÜ */
.cete-eylem-menu {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.cete-eylem-buton {
    background: #2a2a2a;
    border: 3px solid #444;
    border-radius: 10px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.cete-eylem-buton:hover {
    transform: translateY(-5px);
    border-color: #ff4444;
    box-shadow: 0 10px 30px rgba(255, 68, 68, 0.4);
}

.eylem-ikon {
    font-size: 3em;
    margin-bottom: 10px;
}

.eylem-isim {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 8px;
}

.eylem-bilgi {
    color: #888;
    font-size: 0.85em;
    line-height: 1.4;
}

/* SES KONTROL BUTONU */
#ses-kontrol:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

#ses-kontrol:active {
    transform: scale(0.95);
}

/* ============================================
   MOBİL UYUMLULUK - SADECE MOBİLDE SCROLL
   ============================================ */

@media screen and (max-width: 768px) {
    /* MOBİLDE MESAJ KUTULARINA SCROLL EKLE */
    .oyun-mesaj-kutu {
        padding: 25px;
        width: 95%;
        max-height: 85vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .oyun-mesaj-icerik {
        font-size: 1.1em;
        max-height: 50vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* GENEL MOBİL */
    #oyun-container {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .ekran {
        padding: 20px;
    }
    
    #ana-menu h1 {
        font-size: 2em;
    }
    
    /* HARİTA ve ÇETELER */
    .bolgeler-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .cete-kartlar {
        grid-template-columns: 1fr;
    }
    
    /* MENU BUTONLARI */
    .ana-menu-butonlar {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .menu-buton {
        padding: 15px 8px;
        font-size: 0.9em;
        min-height: 70px;
    }
    
    /* SUÇ ve ÇETE EYLEM MENÜSÜ */
    .suc-menu,
    .cete-eylem-menu {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* SİLAH MENÜSÜ */
    .silah-menu {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    /* BUTONLAR */
    .buton,
    .buton-buyuk {
        min-height: 50px;
        font-size: 1.1em;
        padding: 15px 20px;
        touch-action: manipulation;
    }
    
    /* ÜST BAR MOBİL */
    .ust-bar {
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px;
        font-size: 0.85em;
    }
    
    .stat {
        min-width: calc(50% - 4px);
        padding: 8px;
        font-size: 0.9em;
    }
    
    .oyun-mesaj-butonlar {
        flex-direction: column;
        gap: 10px;
    }
    
    /* PROGRESS BAR MOBİL */
    .progress-container {
        min-width: auto;
        width: 90%;
        padding: 25px;
    }
}

/* KÜÇÜK MOBİL (iPhone SE vb) */
@media screen and (max-width: 375px) {
    #ana-menu h1 {
        font-size: 1.8em;
    }
    
    .altyazi {
        font-size: 1em;
    }
    
    .oyun-mesaj-kutu {
        padding: 20px;
        max-height: 80vh;
    }
    
    .oyun-mesaj-icerik {
        font-size: 1em;
        max-height: 45vh;
    }
    
    .buton-buyuk {
        font-size: 1em;
        padding: 12px 15px;
    }
    
    .ust-bar {
        font-size: 0.75em;
    }
    
    .stat {
        font-size: 0.8em;
    }
    
    .menu-buton {
        font-size: 0.8em;
        padding: 12px 5px;
        min-height: 60px;
    }
}

/* YATAY MOD (Landscape) */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .oyun-mesaj-kutu {
        max-height: 90vh;
        padding: 20px;
    }
    
    .oyun-mesaj-icerik {
        max-height: 50vh;
    }
    
    .ust-bar {
        padding: 5px;
        font-size: 0.8em;
    }
    
    .ekran {
        padding: 15px;
    }
}

/* TABLET (iPad vb) */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .bolgeler-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .cete-kartlar {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ana-menu-butonlar {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ============================================
   SİLAH İKONLARI - PİXEL ART
   ============================================ */

.weapon-icon {
    width: 96px;        /* 48px → 96px (2 katı) */
    height: 96px;       /* 48px → 96px (2 katı) */
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    display: block;
    margin: 0 auto 15px;  /* 10px → 15px (daha fazla boşluk) */
}

/* Silah kartlarını büyüt */
.silah-kart {
    padding: 30px 20px !important;  /* Daha fazla iç boşluk */
}

.silah-ikon {
    height: 120px;  /* İkon alanını büyüt */
    display: flex;
    align-items: center;
    justify-content: center;
}

.silah-ikon img {
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

/* ============================================
   MOBİL ÜST BUTONLAR (TUR BİTİR & GERİ)
   ============================================ */

.mobil-ust-buton {
    display: none; /* Desktop'ta gizli */
    padding: 10px 15px;
    font-size: 1.5em;
    border: 2px solid #ffaa00;
    border-radius: 8px;
    background: #2a2a2a;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 50px;
    height: 50px;
}

.mobil-ust-buton:active {
    transform: scale(0.95);
    background: #3a3a3a;
}

/* TUR BİTİR - Yeşil */
.tur-buton {
    border-color: #00ff00 !important;
    background: linear-gradient(135deg, #00aa00, #00ff00);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.tur-buton:active {
    background: #00cc00;
}

/* GERİ - Turuncu */
.geri-buton {
    border-color: #ffaa00 !important;
    background: #ff6600;
}

.geri-buton:active {
    background: #ff8800;
}

/* ÜST BAR DÜZENİ */
.ust-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* MOBİLDE GÖRÜNÜR YAP */
@media screen and (max-width: 768px) {
    .mobil-ust-buton {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    
    /* Geri butonunu küçült */
    .geri-buton {
        min-width: 45px;
        height: 45px;
        font-size: 1.3em;
        padding: 8px;
    }
    
    /* Tur bitir daha büyük kalsın */
    .tur-buton {
        min-width: 55px;
        height: 55px;
        font-size: 1.6em;
        font-weight: bold;
    }
    
    /* Stats'ları küçült */
    .ust-bar {
        padding: 8px;
        gap: 5px;
    }
    
    .stat {
        font-size: 0.85em;
        padding: 6px;
    }
}

/* KÜÇÜK MOBİL */
@media screen and (max-width: 375px) {
    .mobil-ust-buton {
        min-width: 40px;
        height: 40px;
        font-size: 1.2em;
    }
    
    .tur-buton {
        min-width: 48px;
        height: 48px;
    }
}

/* ============================================
   MOBİL ÜST BAR OPTİMİZASYONU
   ============================================ */

/* MASAÜSTÜNDE MOBİL BUTONLARI GİZLE */
.mobil-ust-buton {
    display: none;
}

/* MOBİL OPTİMİZASYON */
@media screen and (max-width: 768px) {
    
    /* ÜST BAR - İKİ SATIR DÜZENİ */
    .ust-bar {
        display: grid !important;
        grid-template-columns: auto 1fr auto;
        grid-template-rows: auto auto;
        gap: 8px;
        padding: 10px !important;
        background: #1a1a1a;
        border-bottom: 2px solid #333;
    }
    
    /* GERİ BUTONU - SOL ÜST */
    #geri-btn-mobil {
        grid-column: 1;
        grid-row: 1 / 3;
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 45px;
        height: 100%;
        padding: 8px;
        font-size: 1.5em;
        border: 2px solid #ffaa00;
        border-radius: 8px;
        background: #ff6600;
        color: white;
        cursor: pointer;
    }
    
    /* TUR BİTİR - SAĞ ÜST */
    #tur-bitir-mobil {
        grid-column: 3;
        grid-row: 1 / 3;
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 55px;
        height: 100%;
        padding: 10px;
        font-size: 1.8em;
        font-weight: bold;
        border: 2px solid #00ff00;
        border-radius: 8px;
        background: linear-gradient(135deg, #00aa00, #00ff00);
        color: white;
        cursor: pointer;
        box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
    }
    
    /* STATS CONTAINER - ORTA */
    .ust-bar > .stat:nth-of-type(1) {
        grid-column: 2;
        grid-row: 1;
        display: flex;
        gap: 15px;
        justify-content: space-around;
        flex-wrap: wrap;
    }
    
    /* STATS AYARLARI */
    .stat {
        display: flex !important;
        align-items: center;
        gap: 5px;
        font-size: 0.85em !important;
        padding: 5px 8px !important;
        background: #2a2a2a;
        border-radius: 6px;
        white-space: nowrap;
    }
    
    .stat .ikon {
        font-size: 1.1em;
    }
    
    /* İKİNCİ SATIR - TUR VE CESARET */
    .ust-bar > .stat:nth-of-type(4),
    .ust-bar > .stat:nth-of-type(5) {
        grid-column: 2;
        grid-row: 2;
        display: inline-flex;
    }
    
    /* BUTON EFEKTLER */
    .mobil-ust-buton:active {
        transform: scale(0.95);
        opacity: 0.8;
    }
}

/* KÜÇÜK MOBİL (iPhone SE vb) */
@media screen and (max-width: 375px) {
    .ust-bar {
        gap: 5px;
        padding: 8px !important;
    }
    
    .stat {
        font-size: 0.75em !important;
        padding: 4px 6px !important;
        gap: 3px;
    }
    
    #geri-btn-mobil {
        width: 40px;
        font-size: 1.3em;
    }
    
    #tur-bitir-mobil {
        width: 48px;
        font-size: 1.5em;
    }
}

/* TABLET OPTİMİZASYON */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .ust-bar {
        padding: 15px;
    }
    
    .stat {
        font-size: 1em;
        padding: 8px 12px;
    }
}

/* ============================================
   MOBİL ÜST BAR - TAM SİMETRİK (2 SATIR, 4 BÖLÜM)
   ============================================ */

@media screen and (max-width: 768px) {
    /* ÜST BAR - GRİD DÜZENİ */
    .ust-bar {
        display: grid !important;
        grid-template-columns: 50px 1fr 1fr 50px;
        grid-template-rows: auto auto;
        gap: 8px;
        padding: 10px !important;
        background: #1a1a1a;
        border-bottom: 2px solid #333;
        align-items: center;
    }
    
    /* GERİ BUTONU - SOL (2 SATIR) */
    #geri-btn-mobil {
        grid-column: 1;
        grid-row: 1 / 3;
        display: flex !important;
        width: 50px;
        height: 100%;
        min-height: 85px;
    }
    
    /* TUR BİTİR - SAĞ (2 SATIR) */
    #tur-bitir-mobil {
        grid-column: 4;
        grid-row: 1 / 3;
        display: flex !important;
        width: 50px;
        height: 100%;
        min-height: 85px;
    }
    
    /* 1. SATIR - PARA ve TUR */
    .ust-bar > .stat:nth-of-type(1) {
        /* 💰 Para */
        grid-column: 2;
        grid-row: 1;
        justify-self: start;
    }
    
    .ust-bar > .stat:nth-of-type(5) {
        /* 📅 Tur */
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
    }
    
    /* 2. SATIR - GENÇ, İTİBAR, CESARET */
    .ust-bar > .stat:nth-of-type(2) {
        /* 👥 Genç */
        grid-column: 2;
        grid-row: 2;
        justify-self: start;
    }
    
    .ust-bar > .stat:nth-of-type(3) {
        /* ⭐ İtibar */
        grid-column: 2;
        grid-row: 2;
        justify-self: end;
    }
    
    .ust-bar > .stat:nth-of-type(4) {
        /* 💪 Cesaret */
        grid-column: 3;
        grid-row: 2;
        justify-self: center;
    }
    
    /* STATS GENEL */
    .stat {
        display: flex !important;
        align-items: center;
        gap: 5px;
        font-size: 0.85em !important;
        padding: 6px 10px !important;
        background: #2a2a2a;
        border-radius: 6px;
        white-space: nowrap;
    }
}

/* KÜÇÜK MOBİL */
@media screen and (max-width: 375px) {
    .ust-bar {
        grid-template-columns: 45px 1fr 1fr 45px;
        gap: 6px;
        padding: 8px !important;
    }
    
    #geri-btn-mobil,
    #tur-bitir-mobil {
        width: 45px;
        min-height: 80px;
    }
    
    .stat {
        font-size: 0.75em !important;
        padding: 5px 8px !important;
    }
}