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

body {
    font-family: 'Orbitron', 'Courier New', monospace;
    background: #0a0a0f;
    color: #00ff00;
    overflow: hidden;
}

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0f, #1a1a2e);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
    padding: 2rem;
}

.loading-content h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    text-shadow: 0 0 20px #00ff00;
    animation: pulse 2s infinite;
}

.loading-text {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #00ff00;
}

.loading-bar {
    width: 400px;
    height: 30px;
    background: rgba(0, 255, 0, 0.1);
    border: 2px solid #00ff00;
    position: relative;
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, #00ff00, #00cc00);
    width: 0%;
    transition: width 0.3s;
    box-shadow: 0 0 20px #00ff00;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

#main-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0f, #1a1a2e);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.menu-content {
    max-width: 800px;
    width: 100%;
}

.main-title {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 30px #00ff00;
}

.subtitle {
    text-align: center;
    color: #00cc00;
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.rank-display {
    background: rgba(0, 255, 0, 0.1);
    border: 2px solid #00ff00;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.rank-label {
    font-size: 0.9rem;
    color: #00cc00;
    margin-bottom: 0.5rem;
}

.rank-name {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px #00ff00;
}

.xp-bar {
    width: 100%;
    height: 20px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #00ff00;
    margin-bottom: 0.5rem;
    position: relative;
    overflow: hidden;
}

.xp-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff00, #00cc00);
    width: 0%;
    transition: width 0.5s;
    box-shadow: 0 0 10px #00ff00;
}

.xp-text {
    font-size: 0.9rem;
    color: #00cc00;
}

.mode-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.mode-btn {
    background: rgba(0, 255, 0, 0.1);
    border: 2px solid #00ff00;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #00ff00;
    font-family: inherit;
    font-size: 1rem;
}

.mode-btn:hover {
    background: rgba(0, 255, 0, 0.2);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
    transform: scale(1.05);
}

.berry-mode {
    border-color: #ff1493;
    color: #ff1493;
}

.berry-mode:hover {
    box-shadow: 0 0 20px rgba(255, 20, 147, 0.5);
    background: rgba(255, 20, 147, 0.1);
}

.btn-icon {
    font-size: 2rem;
}

.btn-text {
    font-weight: bold;
    font-size: 1.1rem;
}

.btn-desc {
    font-size: 0.8rem;
    color: #00cc00;
    text-align: center;
}

.settings-panel {
    background: rgba(0, 255, 0, 0.05);
    border: 2px solid #00ff00;
    padding: 1.5rem;
}

.settings-panel h3 {
    margin-bottom: 1rem;
    text-align: center;
}

.settings-panel label {
    display: block;
    margin-bottom: 1rem;
    color: #00ff00;
}

.settings-panel input[type="range"] {
    width: 100%;
    margin-top: 0.5rem;
}

.settings-panel select {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #00ff00;
    color: #00ff00;
    padding: 0.5rem;
    font-family: inherit;
}

#game-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#hud {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

.hud-top-right {
    position: absolute;
    top: 2rem;
    right: 2rem;
}

.stat-panel {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #00ff00;
    padding: 1rem;
    margin-bottom: 1rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 0.5rem;
}

.stat-row:last-child {
    margin-bottom: 0;
}

.stat-label {
    color: #00cc00;
    font-size: 0.9rem;
}

.stat-value {
    color: #00ff00;
    font-size: 1.2rem;
    font-weight: bold;
    text-shadow: 0 0 10px #00ff00;
}

.stat-value.streak {
    color: #ff9900;
    text-shadow: 0 0 10px #ff9900;
}

.health-panel {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #00ff00;
    padding: 1rem;
}

.health-label {
    color: #00cc00;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.health-bar {
    width: 200px;
    height: 25px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #00ff00;
    margin-bottom: 0.5rem;
    position: relative;
    overflow: hidden;
}

.health-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff00, #00cc00);
    width: 100%;
    transition: width 0.3s, background 0.3s;
    box-shadow: 0 0 10px #00ff00;
}

.health-value {
    text-align: right;
    font-size: 1.2rem;
    color: #00ff00;
}

.hud-bottom {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.weapon-panel {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #00ff00;
    padding: 1rem 2rem;
    text-align: center;
}

.weapon-name {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.ammo-display {
    font-size: 1.5rem;
}

.ammo-current {
    color: #00ff00;
    font-weight: bold;
    text-shadow: 0 0 10px #00ff00;
}

.ammo-separator {
    color: #00cc00;
    margin: 0 0.5rem;
}

.ammo-reserve {
    color: #00cc00;
}

.weapon-wheel {
    display: flex;
    gap: 0.5rem;
}

.weapon-slot {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #00ff00;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.3s;
}

.weapon-slot.active {
    background: rgba(0, 255, 0, 0.3);
    box-shadow: 0 0 15px #00ff00;
}

.crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
}

.crosshair::before,
.crosshair::after {
    content: '';
    position: absolute;
    background: #00ff00;
    box-shadow: 0 0 5px #00ff00;
}

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

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

.hit-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: #ff0000;
    opacity: 0;
    transition: opacity 0.1s;
    text-shadow: 0 0 20px #ff0000;
    pointer-events: none;
}

#notifications {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 200;
    pointer-events: none;
}

.notification {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #00ff00;
    padding: 1.5rem 3rem;
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 1rem;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.5);
}

.notification.show {
    opacity: 1;
    transform: scale(1);
}

#pause-menu,
#game-over {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 300;
}

.pause-content,
.game-over-content {
    background: rgba(10, 10, 15, 0.95);
    border: 3px solid #00ff00;
    padding: 3rem;
    text-align: center;
    max-width: 600px;
}

.pause-content h2,
.game-over-content h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    text-shadow: 0 0 30px #00ff00;
}

.pause-content button,
.game-over-content button {
    background: rgba(0, 255, 0, 0.1);
    border: 2px solid #00ff00;
    color: #00ff00;
    padding: 1rem 2rem;
    font-family: inherit;
    font-size: 1.2rem;
    cursor: pointer;
    margin: 0.5rem;
    transition: all 0.3s;
    pointer-events: all;
}

.pause-content button:hover,
.game-over-content button:hover {
    background: rgba(0, 255, 0, 0.3);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

.stats-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-big-label {
    font-size: 0.9rem;
    color: #00cc00;
}

.stat-big-value {
    font-size: 2.5rem;
    color: #00ff00;
    font-weight: bold;
    text-shadow: 0 0 20px #00ff00;
}

.stat-big-value.xp-glow {
    color: #ffff00;
    text-shadow: 0 0 20px #ffff00;
}

#rankUpNotification {
    background: rgba(255, 255, 0, 0.1);
    border: 2px solid #ffff00;
    padding: 1.5rem;
    margin: 2rem 0;
}

#rankUpNotification h3 {
    color: #ffff00;
    text-shadow: 0 0 20px #ffff00;
    margin-bottom: 1rem;
}

#rankUpNotification p {
    color: #ffff00;
    font-size: 1.5rem;
}

.app-footer {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #00cc00;
    font-size: 0.9rem;
    z-index: 50;
}

.app-footer a {
    color: #00ff00;
    text-decoration: none;
    transition: all 0.3s;
}

.app-footer a:hover {
    text-shadow: 0 0 10px #00ff00;
}

@media (max-width: 768px) {
    .main-title {
        font-size: 2rem;
    }
    
    .mode-buttons {
        grid-template-columns: 1fr;
    }
    
    .stats-summary {
        grid-template-columns: 1fr;
    }
}