/* =========================================
   1. DEĞİŞKENLER & TEMALAR
   ========================================= */
:root {
    /* --- DARK MODE --- */
    --bg-gradient: linear-gradient(to bottom, #4b79a1 0%, #283e51 100%);
    --bg-color: #2c3e50;
    --panel-color: #34495e;
    --red: #e74c3c;
    --blue: #3498db;
    --text-color: #ecf0f1;
    --desc-color: #bdc3c7;
    --cloud-color: rgba(255, 255, 255, 0.15);
    --card-bg: rgba(0,0,0,0.4);
    --btn-bg: #34495e;
    --btn-border: #7f8c8d;
    --modal-bg: rgba(0,0,0,0.85);
    --storm-color: #7f8c8d;
}

:root[data-theme="light"] {
    /* --- LIGHT MODE --- */
    --bg-gradient: linear-gradient(to bottom, #a1c4fd 0%, #c2e9fb 100%);
    --bg-color: #eef2f3;
    --panel-color: #f0f3f6;
    --red: #c0392b;
    --blue: #2980b9;
    --text-color: #2c3e50;
    --desc-color: #576574;
    --cloud-color: rgba(255, 255, 255, 0.9);
    --card-bg: rgba(255, 255, 255, 0.7);
    --btn-bg: #dbe4ee;
    --btn-border: #7f8c8d;
    --modal-bg: rgba(255, 255, 255, 0.98);
    --storm-color: #95a5a6;
}

* { box-sizing: border-box; }

/* =========================================
   2. TEMEL YAPI
   ========================================= */
html, body {
    height: 100%; width: 100%;
    margin: 0; padding: 0;
    overflow: hidden;
    position: fixed;
}

body {
    font-family: 'Press Start 2P', cursive;
    background: var(--bg-gradient);
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: background 0.5s ease, color 0.5s ease;
}

/* --- ARKA PLAN EFEKTLERİ --- */
.pixel-background { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.pixel-cloud {
    position: absolute; background: var(--cloud-color);
    box-shadow: 4px 4px 0 rgba(0,0,0,0.1); width: 60px; height: 20px;
    animation: moveClouds linear infinite;
}
.pixel-cloud::after { content: ''; position: absolute; top: -10px; left: 10px; width: 30px; height: 15px; background: var(--cloud-color); }

.pixel-cloud.storm { background: var(--storm-color); color: var(--storm-color); z-index: 5; animation: moveClouds linear infinite, lightning-flash 8s infinite; }
.pixel-cloud.storm::after { background: var(--storm-color); }
.pixel-cloud.storm::before {
    content: ''; position: absolute; top: 50%; left: 10px; width: 60%; height: 80px; z-index: -1; opacity: 0.6;
    background: repeating-linear-gradient(transparent 0px, transparent 10px, #3498db 10px, #3498db 14px);
    background-size: 100% 20px; animation: rain-fall 1.5s linear infinite;
}

@keyframes moveClouds { from { transform: translateX(100vw); } to { transform: translateX(-150px); } }
@keyframes rain-fall { from { background-position: 0 0; } to { background-position: 0 40px; } }
@keyframes lightning-flash {
    0%, 22%, 50%, 55%, 90%, 95%, 100% { background-color: var(--storm-color); box-shadow: 4px 4px 0 rgba(0,0,0,0.1); }
    20% { background-color: #fff; box-shadow: 0 0 500px 200px rgba(255, 255, 255, 0.6); }
    52% { background-color: #fff; box-shadow: 0 0 600px 300px rgba(255, 255, 255, 0.8); }
    92% { background-color: #fff; box-shadow: 0 0 400px 150px rgba(255, 255, 255, 0.5); }
}

/* =========================================
   3. EKRAN YAPISI
   ========================================= */
.screen {
    display: none;
    flex-direction: column; align-items: center; justify-content: center;
    width: 100%; height: 100%;
    position: absolute; top: 0; left: 0; z-index: 10;
    padding: 20px;
    overflow-y: auto;
}
.screen.active { display: flex !important; }

h1, h2 { text-align: center; line-height: 1.5; margin-bottom: 20px; font-size: 18px; text-shadow: 2px 2px 0 rgba(0,0,0,0.2); flex-shrink: 0; }

button {
    font-family: 'Press Start 2P', cursive;
    background: var(--btn-bg); border: 4px solid var(--text-color); color: var(--text-color);
    padding: 15px; margin: 5px; cursor: pointer; font-size: 12px;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.3);
    pointer-events: auto; position: relative; z-index: 50;
}
button:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 rgba(0,0,0,0.3); }
button:hover { opacity: 0.8; }

.btn-red { background-color: var(--red); border-color: #c0392b; }
.btn-blue { background-color: var(--blue); border-color: #2980b9; }
.btn-help { background-color: #f39c12; border-color: #d35400; font-size: 10px; }

.btn-quit {
    position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
    padding: 8px 12px; font-size: 8px; background-color: #c0392b; border-color: #e74c3c; color: #fff;
    z-index: 50; white-space: nowrap; box-shadow: 2px 2px 0 rgba(0,0,0,0.3); transition: none;
}
.btn-quit:active { transform: translate(-50%, 2px) !important; box-shadow: none !important; }

input {
    font-family: 'Press Start 2P'; padding: 15px; font-size: 14px;
    text-align: center; margin-bottom: 20px;
    border: 4px solid var(--text-color); background: var(--panel-color); color: var(--text-color);
    outline: none;
}
input::placeholder { color: var(--desc-color); opacity: 0.7; }

.warning-msg { color: #e74c3c; font-size: 8px; display: none; margin-top: -15px; margin-bottom: 15px; animation: pulse-warning 0.5s infinite alternate; }
@keyframes pulse-warning { from { opacity: 1; transform: scale(1); } to { opacity: 0.7; transform: scale(0.98); } }

/* =========================================
   4. KARTLAR
   ========================================= */
.mode-grid { display: grid; grid-template-columns: 1fr; gap: 15px; width: 100%; max-width: 400px; pointer-events: auto; }
.mode-card, .char-card {
    background: var(--panel-color); border: 4px solid var(--text-color);
    padding: 15px 10px; display: flex; align-items: center; justify-content: space-between;
    cursor: pointer; transition: all 0.2s ease; position: relative; overflow: visible;
    pointer-events: auto; z-index: 20;
}
.char-card { background: var(--card-bg); flex-direction: column; justify-content: center; min-height: 150px; gap: 10px; padding-top: 25px; }
.mode-card:hover, .char-card:hover { transform: translateX(5px); border-color: #f1c40f; }
.mode-card:hover .vs-text { transform: scale(1.5) rotate(10deg); color: var(--red); }
.char-card.selected { border-color: #2ecc71; background: rgba(46, 204, 113, 0.3); }

.mode-visual { display: flex; align-items: center; gap: 10px; background: rgba(0,0,0,0.3); padding: 5px 10px; border-radius: 8px; min-width: 130px; justify-content: center; }
.vs-text { font-family: 'Press Start 2P'; font-size: 10px; color: var(--desc-color); font-weight: bold; transition: all 0.3s ease; }

.mode-info { display: flex; flex-direction: column; align-items: flex-end; text-align: right; flex-grow: 1; padding-left: 15px; }
.mode-title { font-size: 10px; color: #f1c40f; margin-bottom: 5px; }
.mode-desc { font-size: 7px; color: var(--desc-color); }

.char-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; max-width: 1000px; max-height: 70vh; overflow-y: auto; padding: 10px; flex: 1; min-height: 0; }
.card-title { font-size: 9px; color: #f1c40f; margin: 5px 0; }
.card-desc { font-size: 7px; line-height: 1.4; color: var(--desc-color); min-height: 40px; }
.select-badge { position: absolute; top: 5px; right: 5px; width: 20px; height: 20px; border-radius: 50%; background: #27ae60; color: white; border: 2px solid #fff; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: bold; z-index: 10; animation: popIn 0.3s; }
@keyframes popIn { from { transform: scale(0); } to { transform: scale(1); } }

/* =========================================
   5. AVATAR SİSTEMİ (GÖVDESİZ)
   ========================================= */
.avatar { width: 80px; height: 80px; position: relative; overflow: visible; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

.avatar-preview { margin: 0 auto 20px auto; border: 4px solid var(--text-color); width: 120px; height: 120px; position: relative; background: rgba(0,0,0,0.2); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.avatar-preview .char-head { width: 90px !important; height: 90px !important; margin: 0 !important; }
.avatar-preview .char-eye { top: 35px; width: 10px; height: 10px; }
.avatar-preview .eye-left { left: 20px; } .avatar-preview .eye-right { right: 20px; }
.avatar-preview .char-mouth { top: 60px; width: 30px; height: 6px; }

.mini-char { width: 40px; height: 40px; position: relative; display: flex; align-items: center; justify-content: center; }
.mini-char .char-head { width: 35px !important; height: 35px !important; margin: 0 !important; border-width: 2px; }
.mini-char .char-eye { top: 12px; width: 4px; height: 4px; }
.mini-char .eye-left { left: 8px; } .mini-char .eye-right { right: 8px; }
.mini-char .char-mouth { top: 22px; width: 10px; height: 2px; }

.char-base { width: 100%; height: 100%; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.char-head { width: 70px; height: 70px; background: #ffeaa7; border: 3px solid #000; border-radius: 50%; position: relative; z-index: 2; margin: 0; }
.char-body { display: none !important; }
.char-eye { width: 8px; height: 8px; background: black; position: absolute; top: 25px; }
.eye-left { left: 15px; } .eye-right { right: 15px; }
.char-mouth { width: 24px; height: 5px; background: black; position: absolute; top: 45px; left: 50%; transform: translateX(-50%); transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.happy .char-mouth { height: 12px; top: 45px; border-bottom-left-radius: 20px; border-bottom-right-radius: 20px; background: transparent; border: 4px solid black; border-top: none; }
.sad .char-mouth { height: 10px; top: 48px; border-top-left-radius: 15px; border-top-right-radius: 15px; background: transparent; border: 4px solid black; border-bottom: none; }

.player-color .char-head { background-color: #ffeaa7; } .player-color-2 .char-head { background-color: #fab1a0; }
.bot-color .char-head { background-color: #95a5a6; border-color: #2c3e50; } .bot-color-2 .char-head { background-color: #7f8c8d; border-color: #2c3e50; }

/* Aksesuarlar */
.char-copycat { animation: idle-float 2.5s infinite ease-in-out; } .char-copycat .hat { width: 40px; height: 30px; background: #c0392b; border: 2px solid #000; position: absolute; top: -20px; left: 12px; z-index: 5; } .char-copycat .tassel { width: 3px; height: 15px; background: #000; position: absolute; right: -4px; top: 0; transform-origin: top; animation: tassel-swing 1s infinite ease-in-out; } @keyframes tassel-swing { 0%,100%{transform:rotate(-10deg)} 50%{transform:rotate(10deg)} }
.char-angel { animation: idle-float 3s infinite ease-in-out; } .char-angel .halo { width: 50px; height: 10px; border: 3px solid #f1c40f; border-radius: 50%; position: absolute; top: -15px; left: 8px; }
.char-evil { animation: idle-sway 2s infinite ease-in-out; } .char-evil .char-head { background: #ff7675; } .char-evil .eye-left { transform: rotate(20deg); } .char-evil .eye-right { transform: rotate(-20deg); }
.char-grudger { animation: idle-breathe 4s infinite ease-in-out; } .char-grudger .horn { width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 20px solid #333; position: absolute; top: -15px; } .horn-l { left: 8px; transform: rotate(-20deg); } .horn-r { right: 8px; transform: rotate(20deg); }
.char-detective { animation: idle-breathe 3s infinite; } .char-detective .hat { width: 74px; height: 20px; background: #7f8c8d; border: 2px solid #000; position: absolute; top: -8px; left: -4px; border-radius: 50%; } .char-detective .hat-top { width: 40px; height: 20px; background: #7f8c8d; border: 2px solid #000; position: absolute; top: -20px; left: 12px; border-top-left-radius: 15px; border-top-right-radius: 15px; } .char-detective .monocle { width: 18px; height: 18px; border: 2px solid #f1c40f; border-radius: 50%; position: absolute; top: 20px; left: 10px; }
.char-copykitten { animation: idle-sway 3s infinite ease-in-out; } .char-copykitten .flower { width: 15px; height: 15px; background: #e84393; border-radius: 50%; position: absolute; top: -5px; right: 10px; }
.char-pavlov { animation: idle-shake 0.2s infinite; animation-play-state: paused; } .char-pavlov:hover { animation-play-state: running; }
.char-random { animation: idle-shake 0.5s infinite; } .char-random .eye-left { background: #e74c3c; animation: crazy-eye 1s infinite; } .char-random .eye-right { background: #3498db; animation: crazy-eye 1s infinite reverse; } @keyframes crazy-eye { 0%{top:25px} 50%{top:22px} 100%{top:28px} }
.char-alternator { animation: idle-shake 0.5s infinite; } .char-alternator .char-head { background: #bdc3c7; } .char-alternator .eye-left { background: var(--red); width: 10px; height: 10px; border-radius: 0; } .char-alternator .eye-right { background: var(--blue); width: 10px; height: 10px; border-radius: 0; }
.char-bully { animation: idle-sway 2s infinite; } .char-bully .char-head { background: #e67e22; } .char-bully .eyebrow { width: 15px; height: 5px; background: #000; position: absolute; top: 20px; z-index: 5; } .char-bully .brow-l { left: 12px; transform: rotate(20deg); } .char-bully .brow-r { right: 12px; transform: rotate(-20deg); } .char-bully .char-mouth { bottom: 18px; border-radius: 50% 50% 0 0; height: 8px; }
.char-calculator { animation: idle-float 4s infinite; } .char-calculator .char-head { background: #95a5a6; border-radius: 15px; } .char-calculator .glasses-bar { width: 50px; height: 6px; background: #333; position: absolute; top: 26px; left: 8px; } .char-calculator .char-eye { background: #2ecc71; width: 10px; height: 10px; top: 24px; border: 1px solid #000; }
.char-mystery { animation: idle-float 3s infinite ease-in-out; } .char-mystery .char-head { background: #34495e; border: 3px solid #fff; } .char-mystery .q-mark { font-family: 'Press Start 2P'; font-size: 40px; color: #fff; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }

@keyframes idle-float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-4px)} } @keyframes idle-sway { 0%,100%{transform:rotate(-1deg)} 50%{transform:rotate(1deg)} } @keyframes idle-breathe { 0%,100%{transform:scale(1)} 50%{transform:scale(1.02)} } @keyframes idle-shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(1px)} 75%{transform:translateX(-1px)} }

/* =========================================
   6. OYUN ALANI (BOARD)
   ========================================= */
.game-board {
    margin-top: 130px; width: 90%; max-width: 400px; height: 60vh;
    overflow-y: auto; border: 2px dashed rgba(255,255,255,0.3); padding: 20px;
    display: flex; flex-direction: column; scroll-behavior: smooth; background: rgba(0,0,0,0.4);
    align-items: center; margin-left: auto; margin-right: auto;
}
.round-row { display: flex; align-items: center; justify-content: center; margin: 12px 0; width: 100%; max-width: 300px; flex-shrink: 0; position: relative; }
@keyframes slideIn { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
.round-num { position: absolute; left: 0; top: 50%; transform: translateY(-50%); font-size: 10px; color: var(--desc-color); opacity: 0.8; }
.box-container { display: flex; gap: 20px; }
.box { width: 50px; height: 50px; border: 4px solid #bdc3c7; background: #34495e; box-shadow: 2px 2px 0 rgba(0,0,0,0.3); }
.box.red { background: var(--red); border-color: #c0392b; box-shadow: 0 0 10px var(--red); }
.box.blue { background: var(--blue); border-color: #2980b9; box-shadow: 0 0 10px var(--blue); }
.box.pending { background: #7f8c8d; border-color: #bdc3c7; color: rgba(255, 255, 255, 0.5); display: flex; align-items: center; justify-content: center; font-size: 20px; font-family: 'Press Start 2P', cursive; box-shadow: none; animation: pulse-gray 1.5s infinite ease-in-out; }
@keyframes pulse-gray { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }

/* Avatar ve Puanlar (Masaüstü Varsayılanı: Absolute) */
.avatar-container {
    position: absolute; top: 20px;
    display: flex; flex-direction: column; align-items: center;
    z-index: 20; width: 120px;
}
#player-area { left: 10px; }
#opponent-area { right: 10px; }

.name-tag { font-size: 8px; background: rgba(0,0,0,0.7); padding: 4px; margin-bottom: 5px; border-radius: 4px; color: #fff; }
.score { font-size: 10px; color: #f1c40f; background: rgba(0,0,0,0.7); padding: 2px 5px; border-radius: 4px; }
.score-anim { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 20px; opacity: 0; text-shadow: 2px 2px 0 #000; z-index: 100; pointer-events: none; }
.score-anim.active { animation: floatUp 1s forwards; }
@keyframes floatUp { 0% { opacity: 1; transform: translate(-50%, -50%); } 100% { opacity: 0; transform: translate(-50%, -150%); } }

.controls { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); text-align: center; z-index: 30; width: 100%; }
.controls p { font-size: 10px; margin-bottom: 5px; animation: pulse 2s infinite; text-shadow: 1px 1px 0 #000; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
::-webkit-scrollbar { width: 5px; } ::-webkit-scrollbar-thumb { background: var(--text-color); } ::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); }
.button-container { display: flex; flex-direction: column; align-items: center; width: 100%; margin-top: 10px; gap: 15px; }

/* Modallar */
.custom-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--modal-bg); z-index: 9999; align-items: center; justify-content: center; overflow-y: auto; }
.modal-content { background: var(--panel-color); border: 4px solid var(--text-color); padding: 20px; text-align: center; max-width: 80%; box-shadow: 0 0 20px rgba(0,0,0,0.5); max-height: 80vh; overflow-y: auto; }
.modal-buttons { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
.modal-content p { line-height: 2 !important; margin-bottom: 25px; font-size: 12px; }
.modal-buttons button { line-height: 1.5; padding: 15px 10px; white-space: normal; }
.help-content { width: 90%; max-width: 600px; }
.help-grid { display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 10px; text-align: center; font-size: 10px; border: 4px solid var(--text-color); padding: 15px; background: rgba(0,0,0,0.3); }
.h-head { font-weight: bold; color: #f1c40f; margin-bottom: 10px; text-decoration: underline; }
.h-cell { padding: 5px; display: flex; align-items: center; justify-content: center; }
.h-cell.red { color: var(--red); } .h-cell.blue { color: var(--blue); }
.h-cell.result { color: #ecf0f1; border-left: 2px dashed #7f8c8d; }

/* Footer */
.main-footer { display: flex; gap: 10px; width: 100%; justify-content: center; flex-wrap: wrap; margin-top: auto; padding-top: 20px; padding-bottom: 20px; position: relative; bottom: auto; flex-shrink: 0; }
.footer-btn { padding: 8px 12px; font-size: 8px; background: var(--btn-bg); border: 2px solid var(--btn-border); color: var(--text-color); cursor: pointer; display: flex; align-items: center; gap: 5px; transition: all 0.2s; opacity: 0.9; }
.footer-btn:hover { background: var(--text-color); color: var(--bg-color); border-color: var(--text-color); transform: translateY(-3px); opacity: 1; }
#lobby-controls { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 300px; margin: 0 auto; }
#lobby-controls p { text-align: center !important; width: 100%; margin-left: 0; margin-right: 0; }
.lobby-box { text-align: center; width: 100%; background: rgba(0,0,0,0.3); border: 2px solid var(--text-color); padding: 15px; border-radius: 10px; }
#join-room-input { text-align: center; }
#my-room-id { word-break: break-all; white-space: normal; text-align: center; line-height: 1.4; }

/* =========================================
   7. MOBİL UYUMLULUK (FİNAL DÜZELTME)
   ========================================= */
@media (max-width: 600px) {
    html, body { overflow: auto !important; position: static !important; height: auto !important; min-height: 100%; display: block; }

    .screen {
        position: relative !important; height: auto !important; min-height: 100vh; overflow: visible !important;
        display: none; flex-direction: column; justify-content: flex-start;
        padding: 40px 15px 120px 15px;
    }
    .screen.active { display: flex !important; }

    /* --- GRID OYUN EKRANI --- */
    #game-screen.active {
        display: grid !important;
        grid-template-columns: 1fr auto 1fr; /* 3 Sütun */
        grid-template-rows: auto 1fr auto;
        column-gap: 5px; row-gap: 15px;
        align-items: center;
    }
    #game-screen .btn-quit { grid-column: 2 / 3; grid-row: 1 / 2; margin: 0 auto; position: relative; top: auto; left: auto; transform: none; padding: 8px 4px; font-size: 7px; width: 70px; white-space: normal; text-align: center; line-height: 12px; }

    /* AVATAR KONTEYNER (MOBİLDE RELATIVE ve ORTALI) */
    .avatar-container {
        width: auto !important; margin: 0 !important;
        position: relative !important; top: auto !important; left: auto !important; right: auto !important;
        display: flex; flex-direction: column; align-items: center; transform: none;
    }
    #player-area { grid-column: 1 / 2; grid-row: 1 / 2; justify-self: start; }
    #opponent-area { grid-column: 3 / 4; grid-row: 1 / 2; justify-self: end; }

    /* PUAN ANİMASYONUNU KONTEYNERA KİLİTLE */
    .score-anim {
        position: absolute !important;
        top: 80% !important; /* Skorun hemen üzerine */
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 100px;
        text-align: center;
        z-index: 999;
    }

    .game-board { grid-column: 1 / -1; width: 100%; height: 65vh; margin: 0; margin-top: 10px; }
    .controls, #bot-status { grid-column: 1 / -1; width: 100%; margin-top: 5px; }

    .name-tag, .score { white-space: nowrap; font-size: 10px; width: 120%; text-align: center; }

    /* Diğer Ayarlar */
    body { padding: 0 15px; box-sizing: border-box; }
    .char-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; width: 100%; height: auto; max-height: none; overflow: visible; margin-bottom: 20px; padding-top: 15px; }
    .char-card { padding: 25px 5px 10px 5px; min-height: 160px; }
    .mode-grid { grid-template-columns: 1fr; width: 100%; }
    .mode-card { flex-direction: row !important; text-align: right; justify-content: space-between; align-items: center; gap: 10px; padding: 15px; min-height: 80px; }
    .main-footer { position: relative; margin-top: 20px; padding-bottom: 60px; width: 100%; justify-content: center; }
    .footer-btn { margin-bottom: 10px; flex: 1 1 40%; justify-content: center; }
    .button-container { flex-direction: row !important; flex-wrap: wrap; justify-content: center; gap: 10px; width: 100%; margin-top: 20px; margin-bottom: 40px; }
    .button-container button { flex: 1; min-width: 100px; margin: 0; font-size: 9px; padding: 10px 5px; line-height: 1.8; }
    .modal-content { width: 90%; max-width: none; padding: 15px; }

    /* Mobilde Avatar Boyutu */
    .avatar-container .avatar { width: 45px; height: 45px; margin-bottom: 8px; }
    .avatar-container .char-head { width: 35px; height: 35px; top: 5px; }
    .avatar-container .char-eye { top: 12px; width: 4px; height: 4px; }
    .avatar-container .char-mouth { top: 22px; width: 12px; height: 3px; }
    .avatar-container .hat { width: 22px; height: 18px; top: -12px; }
    .avatar-container .halo { width: 30px; height: 6px; top: -8px; }
}

/* =========================================
   8. MASAÜSTÜ / WEB ÖZEL DÜZENİ
   ========================================= */
@media (min-width: 601px) {
    .screen { justify-content: center; padding-top: 0; overflow-y: auto; }
    .game-board { margin-top: 0; height: 70vh; width: 400px; position: relative; z-index: 10; }
    .avatar-container { top: 50%; transform: translateY(-50%); width: 120px; text-align: center; transition: all 0.5s ease; }
    #player-area { left: 50%; margin-left: -360px; }
    #opponent-area { right: auto; left: 50%; margin-left: 240px; }
    .controls { bottom: 40px; }
    .btn-quit { top: 30px; left: 50%; transform: translateX(-50%); position: absolute; }
    .btn-quit:active { transform: translate(-50%, 2px) !important; box-shadow: none !important; }
    #screen-name { justify-content: center; padding-bottom: 60px; gap: 20px; }
    .avatar-preview { transform: scale(1.3); margin-bottom: 20px; border-width: 6px; }
    #screen-name h1 { font-size: 24px; margin-bottom: 30px; }
    .mode-grid { max-width: 500px; gap: 20px; }
    .mode-card { padding: 20px; }
    .mode-title { font-size: 12px; }
    .main-footer { position: absolute; bottom: 30px; margin-top: 0; width: 100%; padding: 0; }
    .footer-btn { padding: 12px 20px; font-size: 10px; }
}