/* ============================================
   LAYOUT — HTML, BODY, KONTEYNER
   ============================================ */

html {
    background: var(--bg-dark);
}

body {
    background: radial-gradient(ellipse at 50% 30%, var(--bg-mid) 0%, var(--bg-dark) 70%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    touch-action: manipulation;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    padding:
        env(safe-area-inset-top)
        env(safe-area-inset-right)
        env(safe-area-inset-bottom)
        env(safe-area-inset-left);
}

/* ===== OYUN KONTEYNERI ===== */

.game-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 440px;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    overflow: hidden;
}

#gameCanvas {
    border: 1px solid rgba(100, 150, 255, 0.25);
    border-radius: 10px;
    box-shadow:
        0 0 30px rgba(80, 120, 255, 0.12),
        0 0 80px rgba(80, 120, 255, 0.06),
        inset 0 0 60px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: block;
    touch-action: none;
    width: 100%;
    height: 100%;
}

/* ===== OVERLAY (Menü & Game Over) ===== */

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    border-radius: 10px;
    overflow: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: env(safe-area-inset-bottom);
}

/* Harita zoom kontrolleri: css/campaign/campaign-map.css */