:root {
    --bg-dark: #0f0f15;
    --bg-panel: rgba(20, 20, 30, 0.6);
    --grid-bg: #1a1a24;
    --grid-border: #2a2a3a;
    
    --neon-blue: #00d2ff;
    --neon-blue-dark: #006eb8;
    --neon-red: #ff0055;
    --neon-red-dark: #b8003d;
    
    --text-light: #e0e0e0;
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none; /* Metin seÃƒÂ§imini engelle (Oyun iÃƒÂ§in) */
    -webkit-tap-highlight-color: transparent; /* Mobil tÃ„Â±klama grisini kaldÃ„Â±r */
}

body {
    font-family: 'Inter', sans-serif;
    background: url('../img/bg_snake.png?v=1') center/cover no-repeat fixed;
    background-color: var(--bg-dark); /* Fallback */
    color: var(--text-light);
    height: 100vh;
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.game-wrapper {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 1200px;
    height: 100%;
    padding: 15px;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
    overflow-y: auto; /* Mobil taÅŸma Ã§Ã¶zÃ¼mÃ¼ */
    overflow-x: hidden;
}

/* --- OYUNCU PANELLERÃ„Â° (GLASSMORPHISM) --- */
.player-container {
    flex: 1;
    background: var(--bg-panel);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    height: 100%;
    width: 100%;
    transition: all 0.3s ease;
}

/* Durumlar (SÃ„Â±ra Bekleme / SÃ„Â±ra Bende) */
.player1-panel.active-panel {
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.2), inset 0 0 10px rgba(0, 210, 255, 0.1);
    border-color: rgba(0, 210, 255, 0.3);
}

.player2-panel.active-panel {
    box-shadow: 0 0 20px rgba(255, 0, 85, 0.2), inset 0 0 10px rgba(255, 0, 85, 0.1);
    border-color: rgba(255, 0, 85, 0.3);
}

.disabled-panel {
    opacity: 0.4;
    filter: grayscale(80%);
    transform: scale(0.95);
    pointer-events: none; /* TÃ„Â±klamalarÃ„Â± geÃƒÂ§ersiz kÃ„Â±l */
}

/* Tipografi ve IÃ…Å¸Ã„Â±k Efektleri */
.player-name { font-size: 1.5rem; font-weight: 900; letter-spacing: 2px; }
.player1-panel .player-name { color: var(--neon-blue); text-shadow: 0 0 5px var(--neon-blue); }
.player2-panel .player-name { color: var(--neon-red); text-shadow: 0 0 5px var(--neon-red); }

.glow-blue { color: var(--neon-blue); text-shadow: 0 0 10px var(--neon-blue); font-weight: bold; }
.glow-red { color: var(--neon-red); text-shadow: 0 0 10px var(--neon-red); font-weight: bold; }
.hidden { opacity: 0; }

.player-status { font-size: 0.9rem; text-transform: uppercase; margin-top: 5px; letter-spacing: 1px; }

/* --- KONTROL TUÃ…ÂLARI --- */
.d-pad {
    display: flex;
    justify-content: center;
    gap: 15px;
    width: 100%;
}

.control-btn {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(40, 40, 55, 0.8);
    color: white;
    box-shadow: inset 0 2px 5px rgba(255,255,255,0.1), 0 4px 10px rgba(0,0,0,0.5);
    transition: all 0.1s ease;
}

.control-btn:active {
    transform: translateY(4px);
    box-shadow: inset 0 2px 2px rgba(0,0,0,0.5), 0 0px 0px rgba(0,0,0,0.5);
}

/* SeÃƒÂ§ili OlduÃ„Å¸unda (Ãƒâ€“nizleme Aktifken) */
.p1-btn.selected { background: var(--neon-blue-dark); border: 2px solid var(--neon-blue); box-shadow: 0 0 15px var(--neon-blue); }
.p2-btn.selected { background: var(--neon-red-dark); border: 2px solid var(--neon-red); box-shadow: 0 0 15px var(--neon-red); }

.action-btn {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    border: none;
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 1px;
    cursor: pointer;
    color: white;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.action-btn.p1-btn { background: linear-gradient(135deg, var(--neon-blue), var(--neon-blue-dark)); box-shadow: 0 5px 15px rgba(0, 210, 255, 0.3); }
.action-btn.p2-btn { background: linear-gradient(135deg, var(--neon-red), var(--neon-red-dark)); box-shadow: 0 5px 15px rgba(255, 0, 85, 0.3); }

.action-btn:active { transform: scale(0.95); }

/* --- OYUN TAHTASI (GRID) --- */
.board-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.neon-title {
    font-size: 2rem;
    font-weight: 900;
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue);
    text-align: center;
    margin: 0;
    letter-spacing: 2px;
}

.text-red {
    color: var(--neon-red);
    text-shadow: 0 0 10px var(--neon-red);
}

.board-container {
    flex: 1; /* Ortadaki boslugu tamamen doldurur */
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 5px 0;
    overflow: hidden; /* Tasma onleyici */
}

.grid-board {
    display: grid;
    /* FAZ 24: Ekrani kaplayan dinamik board — JS ile set edilir. CSS'te kati ebat verilmez. */
    margin: auto;
    grid-template-columns: repeat(20, 1fr);
    grid-template-rows: repeat(20, 1fr);
    gap: 1px;
    background-color: var(--grid-border);
    border: 2px solid var(--glass-border);
    padding: 1px;
    border-radius: 6px;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    transform-origin: 0 0;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform;
    /* FAZ 24.1: Bulanikligi Onleyen (Anti-Blur) Render Komutlari */
    image-rendering: crisp-edges;
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: pixelated;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

.cell {
    background-color: var(--grid-bg);
    border-radius: 2px;
    transition: background-color 0.2s ease;
    backface-visibility: hidden; /* FAZ 24.1: Donanim Hizlandirmasi / Keskinlik */
}

/* JavaScript'ten gelecek durum sÃ„Â±nÃ„Â±flarÃ„Â± */
.cell.player1 { background-color: var(--neon-blue) !important; box-shadow: 0 0 5px var(--neon-blue); }
.cell.player2 { background-color: var(--neon-red) !important; box-shadow: 0 0 5px var(--neon-red); }

/* YÃ„Â±lan BaÃ…Å¸larÃ„Â± */
.cell.head-p1 { background-color: #fff !important; box-shadow: 0 0 10px var(--neon-blue); border: 1px solid var(--neon-blue);}
.cell.head-p2 { background-color: #fff !important; box-shadow: 0 0 10px var(--neon-red); border: 1px solid var(--neon-red);}

/* FAZ 20.5: KOSTUM SISTEMI — Dis cerceve oyuncu rengi, ic dolgu skin rengi */
/* Neon Yesili */
.cell.player1.skin-green { background-color: #38ef7d !important; border: 1.5px solid var(--neon-blue); box-shadow: 0 0 6px var(--neon-blue), inset 0 0 4px rgba(56,239,125,0.5); }
.cell.player2.skin-green { background-color: #38ef7d !important; border: 1.5px solid var(--neon-red); box-shadow: 0 0 6px var(--neon-red), inset 0 0 4px rgba(56,239,125,0.5); }
.cell.head-p1.skin-green { background-color: #a8ffce !important; border: 2px solid var(--neon-blue); box-shadow: 0 0 12px var(--neon-blue); }
.cell.head-p2.skin-green { background-color: #a8ffce !important; border: 2px solid var(--neon-red); box-shadow: 0 0 12px var(--neon-red); }

/* Altin Kral */
.cell.player1.skin-gold { background-color: #FFD700 !important; border: 1.5px solid var(--neon-blue); box-shadow: 0 0 6px var(--neon-blue), inset 0 0 4px rgba(255,215,0,0.5); }
.cell.player2.skin-gold { background-color: #FFD700 !important; border: 1.5px solid var(--neon-red); box-shadow: 0 0 6px var(--neon-red), inset 0 0 4px rgba(255,215,0,0.5); }
.cell.head-p1.skin-gold { background-color: #fff4b0 !important; border: 2px solid var(--neon-blue); box-shadow: 0 0 12px var(--neon-blue); }
.cell.head-p2.skin-gold { background-color: #fff4b0 !important; border: 2px solid var(--neon-red); box-shadow: 0 0 12px var(--neon-red); }

/* Siber Mor */
.cell.player1.skin-purple { background-color: #9b59b6 !important; border: 1.5px solid var(--neon-blue); box-shadow: 0 0 6px var(--neon-blue), inset 0 0 4px rgba(155,89,182,0.5); }
.cell.player2.skin-purple { background-color: #9b59b6 !important; border: 1.5px solid var(--neon-red); box-shadow: 0 0 6px var(--neon-red), inset 0 0 4px rgba(155,89,182,0.5); }
.cell.head-p1.skin-purple { background-color: #d2a8e8 !important; border: 2px solid var(--neon-blue); box-shadow: 0 0 12px var(--neon-blue); }
.cell.head-p2.skin-purple { background-color: #d2a8e8 !important; border: 2px solid var(--neon-red); box-shadow: 0 0 12px var(--neon-red); }

/* Ãƒâ€“nizleme Hayalet Kareleri */
.cell.preview-p1 { background-color: rgba(0, 210, 255, 0.4) !important; }
.cell.preview-p2 { background-color: rgba(255, 0, 85, 0.4) !important; }

.game-footer {
    height: 45px;
    min-height: 45px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    overflow: hidden;
}

.turn-indicator {
    padding: 10px 20px;
    border-radius: 20px;
    border: 1px solid transparent;
    font-weight: bold;
    letter-spacing: 1px;
    text-align: center;
    color: white;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    transition: all 0.3s ease;
}

.bg-blue { background-color: rgba(0, 210, 255, 0.2); border: 1px solid var(--neon-blue); box-shadow: 0 0 10px rgba(0, 210, 255, 0.2); }
.bg-red { background-color: rgba(255, 0, 85, 0.2); border: 1px solid var(--neon-red); box-shadow: 0 0 10px rgba(255, 0, 85, 0.2); }

/* MOBÃ„Â°L (DÃ„Â°KEY EKRAN) UYUMU */
@media (max-width: 768px) {
    .game-wrapper {
        flex-direction: column;
        padding: 5px;
        gap: 10px;
    }
    .grid-board {
        /* JS set eder, burada override etme */
    }
    .neon-title { font-size: 1.5rem; }
    .control-btn { width: 50px; height: 50px; font-size: 1.2rem; }
    .action-btn { font-size: 1rem; padding: 10px; }
    
    .player-container { flex-direction: row; padding: 10px; flex-wrap: wrap;}
    .player-info { width: 100%; display: flex; justify-content: space-between; align-items: center;}
    .player-name { font-size: 1.2rem; }
}

/* YENÃ¯Â¿Â½ SÃ¯Â¿Â½NGLE PLAYER PERSPECTÃ¯Â¿Â½VE EKRAN TASARIMLARI (FAZ 6) */

.full-screen-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: transparent;
    display: none; /* JS ile 'active-screen' olunca gÃ¯Â¿Â½sterilir */
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.active-screen {
    display: flex !important;
}

.lobby-card {
    background: var(--bg-panel);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-width: 400px;
}

.input-group input {
    width: 100%;
    padding: 15px;
    margin: 20px 0;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    background: rgba(0,0,0,0.3);
    color: white;
    font-size: 1.1rem;
    text-align: center;
}

#game-screen {
    display: none; /* Lobby bitince aÃ¯Â¿Â½Ã¯Â¿Â½lÃ¯Â¿Â½r */
    flex-direction: column;
    justify-content: space-between;
    height: 100dvh; /* Tum ekrani kaplamasini garantile */
    width: 100%;
    padding: 10px 5px;
}
#game-screen.active-screen {
    display: flex !important;
}

/* RAKÃ¯Â¿Â½P BARI (YUKARIDA KÃ¯Â¿Â½Ã¯Â¿Â½Ã¯Â¿Â½K) */
.opponent-hud {
    display: flex;
    align-items: center;
    background: var(--bg-panel);
    border: 1px solid var(--glass-border);
    padding: 10px 15px;
    border-radius: 15px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    gap: 15px;
    opacity: 0.8;
}
.opponent-hud .avatar {
    font-size: 24px;
    color: #888;
}
.opp-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    flex: 1;
}
.opponent-hud .name { font-weight: bold; font-size: 1.1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;}
.opponent-hud .status { font-size: 0.8rem; text-transform: uppercase; color: #888; white-space: nowrap; }
.opponent-hud.p1-theme .name { color: var(--neon-blue); }
.opponent-hud.p2-theme .name { color: var(--neon-red); }

/* BENÃ¯Â¿Â½M KONTROLLERÃ¯Â¿Â½M (AÃ¯Â¿Â½AÃ¯Â¿Â½IDA BÃ¯Â¿Â½YÃ¯Â¿Â½K) */
.my-controls-hud {
    background: var(--bg-panel);
    border: 1px solid var(--glass-border);
    padding: 20px;
    border-radius: 20px;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: all 0.3s ease;
}

.my-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
}
.my-info .name { 
    font-size: 1.2rem; 
    font-weight: bold; 
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    margin-right: 10px;
}
.my-info .status { 
    font-size: 1rem; 
    font-weight: bold; 
    white-space: nowrap;
    flex-shrink: 0;
    padding: 2px 8px;
    border-radius: 8px;
    border: 1px solid transparent;
}

.p1-theme .status, .p1-theme .selected { box-shadow: 0 0 15px var(--neon-blue) !important; border-color: var(--neon-blue) !important; }
.p2-theme .status, .p2-theme .selected { box-shadow: 0 0 15px var(--neon-red) !important; border-color: var(--neon-red) !important; }

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid var(--neon-blue);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 15px auto;
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.bg-dark { background-color: #333 !important; box-shadow: none !important; color: #aaa !important; }


/* MARKET STORE UI STYLES */
.card-store { padding: 25px; }
.store-item { background: rgba(0,0,0,0.5); border: 2px solid var(--glass-border); border-radius: 12px; padding: 15px; display: flex; flex-direction: column; align-items: center; gap: 10px; transition: all 0.2s ease; width: 100%; box-sizing: border-box; text-align: center; }
.store-item:hover { border-color: var(--neon-blue); transform: translateY(-3px); }
.store-item.owned { border-color: #38ef7d; box-shadow: 0 0 10px rgba(56, 239, 125, 0.2); }
.store-item.equipped { border-color: gold; box-shadow: 0 0 15px rgba(255, 215, 0, 0.5); }
.skin-preview { width: 50px; height: 50px; border-radius: 8px; border: 1px solid white; margin: 0 auto; }
.btn-buy { background: linear-gradient(135deg, #f7b733, #fc4a1a); padding: 8px; border:none; border-radius:8px; color:white; font-weight:bold; cursor:pointer; width:100%; transition: all 0.2s; font-size: 0.8rem; }
.btn-buy:active { transform: scale(0.95); }
.btn-equip { background: var(--neon-blue); padding: 8px; border:none; border-radius:8px; color:white; font-weight:bold; cursor:pointer; width:100%; font-size: 0.8rem; }
.btn-equipped { background: rgba(255,255,255,0.2); padding: 8px; border:none; border-radius:8px; color:#aaa; font-weight:bold; width:100%; cursor:not-allowed; font-size: 0.75rem; }
.item-name { color: white; font-weight: 700; font-size: 0.9rem; }
/* MAGAZA ONIZLEME RENKLERI */
.skin-preview.skin-green { background-color: #38ef7d !important; box-shadow: 0 0 10px #38ef7d !important; }
.skin-preview.skin-gold { background-color: #FFD700 !important; box-shadow: 0 0 15px #FFD700 !important; }
.skin-preview.skin-purple { background-color: #9b59b6 !important; box-shadow: 0 0 15px #9b59b6 !important; }



/* EKRAN YUKSEKLIGINE GORE SIKISTIRMA (OVERLAP ÇÖZÜMÜ) */
@media (max-height: 850px) {
    .my-controls-hud { padding: 10px; gap: 10px; }
}
@media (max-height: 700px) {
    .my-controls-hud { padding: 8px; gap: 5px; }
    .my-info .name { font-size: 1rem; }
    .control-btn { width: 40px; height: 40px; font-size: 1rem; }
    .action-btn { padding: 6px; font-size: 0.9rem; }
    .opponent-hud { padding: 5px; margin-bottom: 2px; }
    .opponent-hud .name { font-size: 0.9rem; }
    .neon-title { font-size: 1.2rem; }
    .game-footer { height: 35px; min-height: 35px; flex-shrink: 0; }
    .turn-indicator { padding: 5px 10px; font-size: 0.8rem; margin: 0; border: 1px solid transparent; }
}


/* FAZ 15: POWER-UP HUCRE STILLERI */
.cell.food { background: radial-gradient(circle, #FFD700, #FFA500) !important; box-shadow: 0 0 8px #FFD700, 0 0 15px rgba(255, 215, 0, 0.5); border-radius: 50%; animation: foodPulse 1s infinite; }
.cell.mine { background: radial-gradient(circle, #FF0000, #8B0000) !important; box-shadow: 0 0 8px #FF0000, 0 0 15px rgba(255, 0, 0, 0.5); border-radius: 3px; animation: minePulse 0.8s infinite; }
.cell.turbo { background: radial-gradient(circle, #00FFFF, #0066FF) !important; box-shadow: 0 0 8px #00FFFF, 0 0 15px rgba(0, 255, 255, 0.5); border-radius: 50%; animation: turboPulse 0.6s infinite; }

@keyframes foodPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }
@keyframes minePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }
@keyframes turboPulse { 0%, 100% { transform: scale(1); box-shadow: 0 0 8px #00FFFF; } 50% { transform: scale(1.2); box-shadow: 0 0 15px #00FFFF, 0 0 25px rgba(0, 255, 255, 0.8); } }

/* FAZ 15 UPGRADE: PREMIUM POWER-UP IKONLARI */
.cell.food { background: radial-gradient(circle, #FFD700, #FF8C00) !important; box-shadow: 0 0 10px #FFD700, 0 0 20px rgba(255, 165, 0, 0.6), inset 0 0 5px rgba(255,255,255,0.3); border-radius: 50%; position: relative; overflow: visible; z-index: 5; }
.cell.food::after { content: '\1F34E'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: clamp(10px, 2.2vw, 18px); filter: drop-shadow(0 0 4px #FFD700); animation: foodFloat 2s ease-in-out infinite; z-index: 6; }
.cell.mine { background: radial-gradient(circle, #ff3333, #660000) !important; box-shadow: 0 0 10px #FF0000, 0 0 20px rgba(255, 0, 0, 0.5); border-radius: 4px; position: relative; overflow: visible; z-index: 5; }
.cell.mine::after { content: '\1F4A3'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: clamp(10px, 2.2vw, 18px); filter: drop-shadow(0 0 4px #FF0000); animation: mineShake 0.5s ease-in-out infinite; z-index: 6; }
.cell.turbo { background: radial-gradient(circle, #00FFFF, #0044FF) !important; box-shadow: 0 0 10px #00FFFF, 0 0 25px rgba(0, 255, 255, 0.6), inset 0 0 5px rgba(255,255,255,0.4); border-radius: 50%; position: relative; overflow: visible; z-index: 5; }
.cell.turbo::after { content: '\26A1'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: clamp(10px, 2.2vw, 18px); filter: drop-shadow(0 0 6px #00FFFF); animation: turboSpin 1.5s linear infinite; z-index: 6; }

@keyframes foodFloat { 0%,100% { transform: translate(-50%,-50%) scale(1); } 50% { transform: translate(-50%,-60%) scale(1.2); } }
@keyframes mineShake { 0%,100% { transform: translate(-50%,-50%) rotate(0deg); } 25% { transform: translate(-48%,-50%) rotate(-3deg); } 75% { transform: translate(-52%,-50%) rotate(3deg); } }
@keyframes turboSpin { 0% { transform: translate(-50%,-50%) rotate(0deg) scale(1); } 50% { transform: translate(-50%,-50%) rotate(180deg) scale(1.3); } 100% { transform: translate(-50%,-50%) rotate(360deg) scale(1); } }

/* PICKUP (ALMA) ANIMASYONU */
.pickup-effect { position: absolute; pointer-events: none; font-size: 24px; font-weight: 900; z-index: 100; animation: pickupFly 0.8s ease-out forwards; }
@keyframes pickupFly { 0% { opacity: 1; transform: translateY(0) scale(1); } 100% { opacity: 0; transform: translateY(-60px) scale(1.8); } }

/* FAZ 15.2 MAYIN FIX - Unicode Escape */
.cell.mine { background: radial-gradient(circle, #ff3333, #660000) !important; box-shadow: 0 0 10px #FF0000, 0 0 20px rgba(255, 0, 0, 0.5); border-radius: 4px; position: relative; overflow: visible; z-index: 5; }

/* FAZ 17: ODA LİSTESİ (SERVER BROWSER) STİLLERİ */
.room-list-item {
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    transition: all 0.2s ease;
    flex-wrap: wrap;
    gap: 10px;
}
.room-list-item:hover {
    border-color: var(--neon-blue);
    background: rgba(0, 210, 255, 0.1);
}
.room-info {
    text-align: left;
}
.room-name-display {
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 5px;
}
.room-creator {
    color: #aaa;
    font-size: 0.8rem;
}
.room-rules {
    display: flex;
    gap: 8px;
    margin-top: 5px;
}
.rule-badge {
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
}
.btn-join-room {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-blue-dark));
    border: none;
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}
.btn-join-room:active {
    transform: scale(0.95);
}.cell.mine::after { content: '\1F4A3'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: clamp(10px, 2.2vw, 18px); filter: drop-shadow(0 0 4px #FF0000); animation: mineShake 0.5s ease-in-out infinite; z-index: 6; }

/* MAYIN BOMBA IKONU FIX V2 */
.cell.mine::after { content: '\1F4A3'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: clamp(10px, 2.2vw, 18px); filter: drop-shadow(0 0 4px #FF0000); animation: mineShake 0.5s ease-in-out infinite; z-index: 6; }

/* =========================================================
   FAZ 18: MODERN MOBİL GAMING MENÜ ARAYÜZÜ
   ========================================================= */

.mobile-layout-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

/* ÜST BAR (HUD) */
.mobile-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
}

.top-player-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-avatar-box {
    position: relative;
    width: 60px;
    height: 60px;
    background: #2a2a3a;
    border-radius: 12px;
    border: 2px solid #00d2ff;
    box-shadow: 0 0 10px #00d2ff;
}

.top-avatar-emoji {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 2rem;
    border-radius: 10px;
}

/* AVATAR SECICI (AYARLAR) */
.avatar-option {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: rgba(0,0,0,0.5);
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.avatar-option:hover {
    border-color: #9b59b6;
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(155,89,182,0.4);
}
.avatar-option.selected {
    border-color: #00d2ff;
    box-shadow: 0 0 15px #00d2ff;
    background: rgba(0,210,255,0.15);
    transform: scale(1.15);
}

.top-level-badge {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff0055;
    color: white;
    font-size: 0.6rem;
    font-weight: 900;
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid white;
    white-space: nowrap;
}

.top-name-box {
    display: flex;
    flex-direction: column;
}

.top-username {
    font-size: 1.1rem;
    font-weight: 900;
    color: white;
    text-shadow: 0 0 5px #00d2ff;
}

.top-exp-bar {
    width: 80px;
    height: 6px;
    background: rgba(0,0,0,0.5);
    border-radius: 3px;
    margin-top: 5px;
    border: 1px solid rgba(255,255,255,0.2);
}

.top-exp-fill {
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, #00d2ff, #00ff88);
    border-radius: 3px;
}

.top-resources {
    display: flex;
    gap: 10px;
}

.res-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    font-size: 0.85rem;
}

.top-settings-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    text-shadow: 0 0 5px rgba(255,255,255,0.5);
    transition: transform 0.2s;
}
.top-settings-btn:hover {
    transform: rotate(90deg);
}

/* ORTA ALAN: ANA KAMPANYA EKRANI */
.mobile-center-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 20px;
}

.compact-options-panel {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    background: rgba(0,0,0,0.4);
    padding: 10px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}

.compact-options-panel label {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.75rem;
    color: #ccc;
    cursor: pointer;
}

.main-play-button {
    background: linear-gradient(135deg, #FF416C, #FF4B2B);
    border-radius: 25px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(255, 75, 43, 0.5), inset 0 0 10px rgba(255,255,255,0.3);
    border: 2px solid rgba(255,255,255,0.2);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.main-play-button::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: linear-gradient(to bottom right, rgba(255,255,255,0.2) 0%, transparent 40%, transparent 100%);
    transform: rotate(30deg);
    pointer-events: none;
}

.main-play-button:active {
    transform: translateY(5px) scale(0.98);
    box-shadow: 0 5px 15px rgba(255, 75, 43, 0.5);
}

.side-modes-container {
    display: flex;
    gap: 15px;
    justify-content: space-between;
}

.side-mode-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 5px;
    border-radius: 15px;
    color: white;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.15);
    transition: transform 0.2s;
}
.side-mode-btn i {
    font-size: 1.8rem;
    margin-bottom: 8px;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}
.side-mode-btn:active { transform: scale(0.95); }

.bg-bot { background: linear-gradient(135deg, #8E2DE2, #4A00E0); }
.bg-tables { background: linear-gradient(135deg, #11998e, #38ef7d); }
.bg-private { background: linear-gradient(135deg, #f12711, #f5af19); }

/* ALT NAVIGASYON BAR */
.mobile-bottom-nav {
    display: flex;
    justify-content: space-around;
    background: rgba(15, 15, 25, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #777;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
}

.nav-item i {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.nav-item span {
    font-size: 0.7rem;
    font-weight: 700;
}

.nav-item:hover, .nav-item.active {
    color: #00d2ff;
    transform: translateY(-3px);
}
.nav-item.active i {
    text-shadow: 0 0 10px #00d2ff;
}


