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

body {
    font-family: 'Arial', sans-serif;
    background: #000;
    color: #fff;
    overflow: hidden;
    user-select: none;
    cursor: default !important;
}

body.game-active {
    cursor: none !important;
}

.game-container {
    width: 100vw;
    height: 100vh;
    position: relative;
}

/* PUBG Style HUD */
.pubg-hud {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

/* Sol Üst - Sağlık ve Zırh */
.hud-left {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.health-bar-container,
.armor-bar-container {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 200px;
}

.bar-label {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    min-width: 40px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.bar-bg {
    flex: 1;
    height: 20px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.bar-fill {
    height: 100%;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.health-bar {
    background: linear-gradient(90deg, #00ff00 0%, #00cc00 100%);
    width: 100%;
}

.armor-bar {
    background: linear-gradient(90deg, #0066ff 0%, #0044cc 100%);
    width: 0%;
}

.bar-value {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    min-width: 40px;
    text-align: right;
}

/* Sağ Üst - Mermi ve Silah */
.hud-right {
    position: absolute;
    top: 20px;
    right: 20px;
    text-align: right;
}

.ammo-display {
    font-size: 48px;
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    line-height: 1;
}

.current-ammo {
    color: #fff;
}

.ammo-separator {
    color: rgba(255, 255, 255, 0.5);
    font-size: 32px;
}

.total-ammo {
    color: rgba(255, 255, 255, 0.7);
    font-size: 32px;
}

.weapon-name {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    gap: 5px;
}

#weaponIcon {
    font-size: 20px;
}

/* Silah Seçim Menüsü */
.weapon-selector {
    margin-top: 15px;
}

.weapon-slots {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    max-width: 200px;
}

.weapon-slot {
    width: 35px;
    height: 35px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.2s;
}

.weapon-slot.has-weapon {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(0, 0, 0, 0.8);
}

.weapon-slot.active {
    background: rgba(255, 68, 68, 0.8);
    border-color: #ff4444;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
    transform: scale(1.1);
}

.weapon-slot:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.8);
}

/* Sol Alt - Harita */
.hud-map {
    position: absolute;
    bottom: 20px;
    left: 20px;
}

.mini-map {
    width: 200px;
    height: 200px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    position: relative;
    overflow: hidden;
}

#mapCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

.player-marker {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #00ff00;
    border: 2px solid #fff;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px #00ff00;
}

/* Sağ Alt - Öldürme Sayısı */
.hud-kills {
    position: absolute;
    bottom: 20px;
    right: 20px;
}

.kills-display {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 20px;
    border-radius: 5px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.kills-icon {
    font-size: 28px;
}

/* Alt Orta - Zone Timer */
.hud-zone {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.zone-timer {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 20px;
    border-radius: 5px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 10px;
}

.zone-warning {
    font-size: 16px;
    color: #ff0000;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    display: none;
}

.zone-warning.active {
    display: block;
    animation: zonePulse 1s infinite;
}

@keyframes zonePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Üst Orta - Oyun Bilgisi */
.hud-top-center {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.game-info {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 20px;
    border-radius: 5px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Crosshair (Nişangah) */
.crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    pointer-events: none;
    z-index: 200;
    display: none;
    opacity: 0;
    transition: opacity 0.2s;
}

body.game-active .crosshair {
    display: block;
    opacity: 1;
}

.crosshair-line {
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.8);
}

.crosshair-top {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 8px;
}

.crosshair-bottom {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 8px;
}

.crosshair-left {
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 2px;
}

.crosshair-right {
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 2px;
}

.crosshair-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
}

/* Oyun Ekranı */
.game-screen {
    width: 100%;
    height: 100%;
    position: relative;
}

.view {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.view.active {
    display: block;
    transition: transform 0.05s ease-out;
}

/* Oyun Arka Planı */
.game-background {
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Oyun Alanı */
.play-area {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#gameCanvas {
    width: 100%;
    height: 100%;
    display: block;
    cursor: crosshair !important;
}

body.game-active #gameCanvas {
    cursor: none !important;
}

/* Damage Indicator */
.damage-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
    opacity: 0;
    transition: opacity 0.3s;
}

.damage-indicator.active {
    opacity: 0.3;
    background: radial-gradient(circle, rgba(255, 0, 0, 0.5) 0%, transparent 70%);
    animation: damageFlash 0.5s;
}

@keyframes damageFlash {
    0% { opacity: 0.5; }
    100% { opacity: 0; }
}

/* Blood Overlay */
.blood-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 40;
    opacity: 0;
    transition: opacity 0.5s ease-out;
    background: radial-gradient(circle at center, rgba(139, 0, 0, 0.3) 0%, transparent 70%);
}

/* Devil Warning Indicator */
.devil-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 300;
    pointer-events: none;
    display: none;
}

.devil-warning {
    background: rgba(139, 0, 0, 0.9);
    border: 3px solid #ff0000;
    border-radius: 10px;
    padding: 20px 40px;
    text-align: center;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.8);
}

.devil-emoji {
    font-size: 48px;
    display: block;
    margin-bottom: 10px;
    animation: devilPulse 1s infinite;
}

.warning-text {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 10px #ff0000;
}

@keyframes devilPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Silah Görünümü (First Person) */
.weapon-view {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 300px;
    pointer-events: none;
    z-index: 250;
    transform-origin: center bottom;
}

.weapon-model {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.weapon-hands {
    position: absolute;
    bottom: 0;
    width: 200px;
    height: 150px;
    background: radial-gradient(ellipse, rgba(139, 69, 19, 0.8) 0%, transparent 70%);
    border-radius: 50% 50% 0 0;
}

/* Geri Tepme Göstergesi */
.recoil-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
    opacity: 0;
}

.recoil-indicator.active {
    animation: recoilKick 0.1s ease-out;
}

@keyframes recoilKick {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) rotate(2deg) translateY(-5px);
        opacity: 0.3;
    }
    100% {
        transform: translate(-50%, -50%) rotate(0deg);
        opacity: 0;
    }
}

/* Muzzle Flash */
@keyframes muzzleFlash {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(3);
    }
}

/* Mobil Kontroller */
.mobile-controls {
    display: none;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    z-index: 150;
    pointer-events: none;
}

@media (max-width: 768px) {
    .mobile-controls {
        display: block;
    }
}

.joystick-area {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    pointer-events: all;
    touch-action: none;
}

.joystick {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.action-buttons {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    pointer-events: all;
}

.action-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.action-btn:active {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0.95);
}

/* Jump Scare */
.jump-scare {
    background: #000;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    position: relative;
    overflow: hidden;
}

#jumpScareCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.jump-scare-blood {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(139, 0, 0, 0.9) 0%, rgba(139, 0, 0, 0.5) 50%, transparent 100%);
    z-index: 2;
    opacity: 0;
    animation: bloodSplash 1s ease-out;
    pointer-events: none;
}

@keyframes bloodSplash {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
    100% {
        opacity: 0.8;
        transform: scale(1);
    }
}

.jump-scare.active {
    display: flex;
}

.jump-scare-content {
    text-align: center;
    position: relative;
    z-index: 3;
    animation: contentShake 0.5s infinite;
}

@keyframes contentShake {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    10% { transform: translate(-10px, -5px) rotate(-1deg); }
    20% { transform: translate(10px, 5px) rotate(1deg); }
    30% { transform: translate(-8px, 3px) rotate(-0.5deg); }
    40% { transform: translate(8px, -3px) rotate(0.5deg); }
    50% { transform: translate(-5px, -2px) rotate(-0.3deg); }
    60% { transform: translate(5px, 2px) rotate(0.3deg); }
    70% { transform: translate(-3px, 1px) rotate(-0.2deg); }
    80% { transform: translate(3px, -1px) rotate(0.2deg); }
    90% { transform: translate(-2px, 0px) rotate(-0.1deg); }
}

.jump-scare-face {
    font-size: 250px;
    animation: jumpScare 1s ease-out;
    margin-bottom: 30px;
    filter: drop-shadow(0 0 30px #ff0000);
    text-shadow: 0 0 50px #ff0000;
}

@keyframes jumpScare {
    0% {
        transform: scale(0.1) rotate(0deg);
        opacity: 0;
        filter: blur(20px);
    }
    20% {
        transform: scale(1.5) rotate(10deg);
        opacity: 1;
        filter: blur(5px);
    }
    40% {
        transform: scale(1.2) rotate(-10deg);
        filter: blur(2px);
    }
    60% {
        transform: scale(1.3) rotate(5deg);
        filter: blur(1px);
    }
    80% {
        transform: scale(1.1) rotate(-3deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
        filter: blur(0px);
    }
}

.jump-scare-text {
    font-size: 64px;
    color: #ff0000;
    font-weight: bold;
    text-shadow: 0 0 30px #ff0000, 0 0 60px #ff0000;
    animation: textShake 0.2s infinite;
    margin-bottom: 20px;
}

.jump-scare-subtext {
    font-size: 32px;
    color: #ff6666;
    text-shadow: 0 0 20px #ff6666;
    animation: textShake 0.3s infinite;
    animation-delay: 0.1s;
}

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

/* Menü */
.menu,
.game-over {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    text-align: center;
    padding: 40px;
}

.menu h1,
.game-over h2 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #ff4444;
    text-shadow: 0 0 20px rgba(255, 68, 68, 0.5);
}

.menu-description {
    font-size: 18px;
    margin-bottom: 30px;
    color: #ccc;
    max-width: 600px;
    line-height: 1.6;
}

.level-selector {
    margin-bottom: 30px;
}

.level-selector label {
    display: block;
    margin-bottom: 10px;
    font-size: 18px;
    color: #ff4444;
}

.level-selector select {
    padding: 10px 20px;
    font-size: 18px;
    background: #2a0000;
    color: #fff;
    border: 2px solid #8b0000;
    border-radius: 5px;
    font-family: 'Arial', sans-serif;
}

.instructions {
    margin-top: 30px;
    padding: 20px;
    background: rgba(139, 0, 0, 0.2);
    border-radius: 10px;
    max-width: 500px;
    border: 1px solid #8b0000;
}

.instructions h3 {
    color: #ff4444;
    margin-bottom: 15px;
}

.instructions p {
    margin: 10px 0;
    color: #ccc;
    text-align: left;
}

button {
    padding: 15px 40px;
    font-size: 20px;
    font-weight: bold;
    background: #ff4444;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Arial', sans-serif;
    margin: 10px;
}

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

.final-score,
.final-time,
.final-level {
    font-size: 24px;
    margin: 10px 0;
    color: #ffd700;
}

/* Responsive */
@media (max-width: 768px) {
    .hud-left {
        top: 10px;
        left: 10px;
    }
    
    .hud-right {
        top: 10px;
        right: 10px;
    }
    
    .ammo-display {
        font-size: 36px;
    }
    
    .current-ammo {
        font-size: 36px;
    }
    
    .ammo-separator,
    .total-ammo {
        font-size: 24px;
    }
    
    .mini-map {
        width: 150px;
        height: 150px;
    }
    
    .hud-kills {
        bottom: 180px;
        right: 10px;
    }
    
    .hud-zone {
        bottom: 180px;
    }
}
