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

body {
    font-family: 'Arial', sans-serif;
    overflow: hidden;
    background: #0a0a0a;
    cursor: crosshair;
    margin: 0;
    padding: 0;
}

.game-container {
    width: 100vw;
    height: 100vh;
    position: relative;
    background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1e 100%);
}

/* FPS View */
.fps-view {
    width: 100%;
    height: 100%;
    position: relative;
    background: 
        radial-gradient(circle at 20% 50%, rgba(100, 150, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 100, 150, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, #1a1a2e 0%, #0f0f1e 100%);
    overflow: hidden;
    display: none;
}

.fps-view.active {
    display: block;
}

/* Crosshair - follows mouse */
.crosshair {
    position: fixed;
    width: 30px;
    height: 30px;
    pointer-events: none;
    z-index: 1000;
    transform: translate(-50%, -50%);
    transition: none;
}

.crosshair::before,
.crosshair::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 3px rgba(0, 255, 255, 0.8);
}

.crosshair::before {
    width: 2px;
    height: 20px;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
}

.crosshair::after {
    width: 20px;
    height: 2px;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
}

/* Game World */
.game-world {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Bot */
.bot {
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, #ff4444 0%, #cc0000 100%);
    border: 4px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 
        0 0 30px rgba(255, 68, 68, 0.8),
        inset 0 0 30px rgba(255, 255, 255, 0.3);
    z-index: 100;
    transition: transform 0.1s, opacity 0.5s;
    animation: botPulse 2s ease-in-out infinite;
}

.bot::before {
    content: '🤖';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 60px;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.8));
}

.bot::after {
    content: 'BOT';
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 68, 68, 0.8);
    white-space: nowrap;
}

.bot.hit {
    animation: botHit 0.3s ease-out;
}

.bot.dead {
    animation: botDeath 0.5s ease-out forwards;
}

@keyframes botPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 
            0 0 30px rgba(255, 68, 68, 0.8),
            inset 0 0 30px rgba(255, 255, 255, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 
            0 0 40px rgba(255, 68, 68, 1),
            inset 0 0 40px rgba(255, 255, 255, 0.5);
    }
}

@keyframes botHit {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2) rotate(10deg);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes botDeath {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(1.5) rotate(180deg);
        opacity: 0.7;
    }
    100% {
        transform: scale(0) rotate(360deg);
        opacity: 0;
    }
}

/* HUD */
.hud {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    z-index: 500;
    pointer-events: none;
}

.hud-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px 30px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.score-display,
.bot-status,
.timer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.label {
    font-size: 12px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.value {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.timer .value.warning {
    color: #ff4444;
    animation: timerPulse 0.5s ease-in-out infinite;
}

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

.controls-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 5px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.controls-hint p {
    color: #aaa;
    font-size: 12px;
    margin: 0;
}

/* Muzzle Flash */
.muzzle-flash {
    position: fixed;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    z-index: 999;
    transform: translate(-50%, -50%);
}

.muzzle-flash.active {
    animation: muzzleFlash 0.1s ease-out;
}

@keyframes muzzleFlash {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.5);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.5);
    }
}

/* Bullet Impact */
.bullet-impact {
    position: fixed;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(255, 255, 0, 0.8) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    z-index: 998;
    transform: translate(-50%, -50%);
}

.bullet-impact.active {
    animation: bulletImpact 0.3s ease-out;
}

@keyframes bulletImpact {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.5);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(2);
    }
}

/* Start Screen */
.start-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    cursor: default;
}

.start-content {
    text-align: center;
    color: white;
    padding: 40px;
}

.game-title {
    font-size: 64px;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    animation: titleGlow 2s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { text-shadow: 0 0 20px rgba(255, 255, 255, 0.5); }
    50% { text-shadow: 0 0 30px rgba(255, 255, 255, 0.8); }
}

.game-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.instructions {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.instructions p {
    margin: 10px 0;
    font-size: 16px;
}

.btn-start,
.btn-reset {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.btn-start:hover,
.btn-reset:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}

.btn-start:active,
.btn-reset:active {
    transform: translateY(0);
}

/* Success Screen */
.success-screen,
.fail-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(10px);
}

.success-content,
.fail-content {
    text-align: center;
    color: white;
    padding: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.victory-icon,
.fail-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: iconBounce 0.5s ease-out;
}

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

.success-content h2,
.fail-content h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.success-message,
.fail-message {
    font-size: 20px;
    margin-bottom: 20px;
    color: #4ecdc4;
    font-weight: bold;
}

.fail-message {
    color: #ff4444;
}

.stats {
    display: flex;
    justify-content: space-around;
    margin: 30px 0;
    gap: 20px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stat-label {
    font-size: 14px;
    color: #aaa;
    text-transform: uppercase;
}

.stat-value {
    font-size: 28px;
    font-weight: bold;
    color: #4ecdc4;
}

.token-display {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.token-display p {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 10px;
}

.token-display code {
    display: block;
    color: #4ecdc4;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    word-break: break-all;
}

/* Responsive */
@media (max-width: 768px) {
    .game-title {
        font-size: 40px;
    }
    
    .bot {
        width: 100px;
        height: 100px;
    }
    
    .bot::before {
        font-size: 40px;
    }
    
    .hud-top {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }
    
    .controls-hint {
        font-size: 10px;
        padding: 8px 15px;
    }
}
