/* Base Styles */
:root {
    --primary-color: #ff4655;
    --secondary-color: #0f1923;
    --accent-color: #ece8e1;
    --dark-bg: #111a21;
    --neon-blue: #00f0ff;
    --neon-pink: #ff2a6d;
    --text-color: #ffffff;
    --success-color: #4caf50;
    --error-color: #ff3e3e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-color);
    overflow: hidden;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.game-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Canvas */
#gameCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: 100vw;
    max-height: 100vh;
    background-color: var(--secondary-color);
    cursor: none;
    z-index: 1;
    object-fit: contain;
}

#gameCanvas.menu-active {
    cursor: default;
}

/* HUD Styles - Valorant Style */
.hud {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    font-family: 'Montserrat', sans-serif;
}

.hud-left {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: row;
    gap: 25px;
}

.hud-right {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-end;
}

.hud-right > div:first-child {
    display: flex;
    flex-direction: row;
    gap: 25px;
}

/* Abilities Inventory */
.abilities-inventory {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.ability-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(255, 70, 85, 0.9), rgba(255, 100, 100, 0.8));
    padding: 10px 15px;
    border-radius: 4px;
    border: 2px solid #FF4655;
    box-shadow: 0 0 20px rgba(255, 70, 85, 0.5), 0 4px 10px rgba(0, 0, 0, 0.5);
    animation: abilityPulse 2s ease-in-out infinite;
}

.ability-icon {
    font-size: 24px;
}

.ability-key {
    background: rgba(0, 0, 0, 0.6);
    color: #FFD700;
    padding: 4px 10px;
    border-radius: 3px;
    font-weight: bold;
    font-size: 16px;
    border: 1px solid #FFD700;
}

.ability-name {
    color: #FFFFFF;
    font-weight: bold;
    font-size: 14px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

@keyframes abilityPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 70, 85, 0.5), 0 4px 10px rgba(0, 0, 0, 0.5);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 70, 85, 0.8), 0 4px 15px rgba(0, 0, 0, 0.7);
    }
}

.hud-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    background: linear-gradient(135deg, rgba(15, 25, 35, 0.85), rgba(20, 30, 40, 0.75));
    padding: 8px 16px;
    border-radius: 2px;
    border-left: 3px solid var(--neon-blue);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hud-label {
    font-size: 8px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.hud-value {
    font-size: 24px;
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    line-height: 1;
    font-family: 'Courier New', monospace;
}

/* Health Bar - Valorant Style */
.health-bar {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(15, 25, 35, 0.85), rgba(20, 30, 40, 0.75));
    padding: 8px 16px;
    border-radius: 2px;
    border-left: 3px solid #4caf50;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.bar-container {
    width: 100px;
    height: 8px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    transition: width 0.3s ease, background 0.3s ease;
    position: relative;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.bar-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(180deg, rgba(255,255,255,0.4), transparent);
}

/* Crosshair (not used - drawn on canvas) */
#crosshair {
    width: 20px;
    height: 20px;
    border: 2px solid var(--neon-blue);
    border-radius: 50%;
    position: relative;
    pointer-events: none;
}

#crosshair::before,
#crosshair::after {
    content: '';
    position: absolute;
    background-color: var(--neon-blue);
}

#crosshair::before {
    width: 2px;
    height: 12px;
    left: 50%;
    top: -14px;
    transform: translateX(-50%);
}

#crosshair::after {
    width: 12px;
    height: 2px;
    top: 50%;
    right: -14px;
    transform: translateY(-50%);
}

/* Buttons */
.btn {
    background: transparent;
    color: var(--text-color);
    border: 2px solid var(--neon-blue);
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    margin: 10px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn:hover {
    background-color: rgba(0, 240, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 0 15px var(--neon-blue);
}

.btn:active {
    transform: translateY(0);
}

/* Game Over & Start Screen */
.game-over,
.start-screen,
.menu-screen,
.pause-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(15, 25, 35, 0.95);
    z-index: 1500;
    text-align: center;
    padding: 20px;
    overflow-y: auto;
}

/* Z-index hierarchy */
#startScreen {
    z-index: 1000 !important;
}

#authScreen {
    z-index: 2000 !important;
}

#shopScreen,
#leaderboardScreen,
#achievementsScreen,
#settingsScreen,
#howToPlayScreen,
#gameModeScreen {
    z-index: 1500 !important;
}

#pauseMenu {
    z-index: 1800 !important;
}

#gameOver,
#victoryScreen {
    z-index: 1700 !important;
}

/* Start Screen - Background Neon */
.start-screen {
    background-image: url('../assets/background/neonbg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Overlay escuro para melhor legibilidade */
.start-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 25, 35, 0.85), rgba(10, 15, 25, 0.9));
    z-index: -1;
}

/* Map Selection */
.map-selection-container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    overflow-y: auto;
    max-height: calc(100vh - 250px);
}

.map-subtitle {
    color: #999;
    margin-bottom: 20px;
    font-size: 14px;
}

.maps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 15px;
    margin-bottom: 30px;
}

.map-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.map-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 70, 85, 0.6);
    box-shadow: 0 8px 25px rgba(255, 70, 85, 0.4);
}

.map-card.selected {
    border-color: rgba(255, 70, 85, 1);
    box-shadow: 0 0 20px rgba(255, 70, 85, 0.6);
}

.map-preview {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-size: cover !important;
    background-position: center !important;
    background-color: #1a1a2e;
}

.map-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.7) 100%);
}

.map-name {
    position: relative;
    z-index: 1;
    color: white;
    font-weight: bold;
    font-size: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.map-select-btn {
    width: 100%;
    padding: 12px;
    background: rgba(255, 70, 85, 0.2);
    border: none;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.map-select-btn:hover {
    background: rgba(255, 70, 85, 0.4);
}

.map-select-btn.active {
    background: linear-gradient(135deg, #FF4655 0%, #FF7A85 100%);
    color: white;
}

/* Best Stats Container */
.best-stats-container {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    padding: 20px 30px;
    margin: 20px 0;
    max-width: 700px;
    width: 90%;
}

.best-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.best-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border-left: 3px solid #FFD700;
}

.best-stat-label {
    font-size: 14px;
    color: #CCCCCC;
    font-weight: 600;
}

.best-stat-value {
    font-size: 18px;
    color: #FFFFFF;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.game-over.active,
.start-screen.active,
.menu-screen.active,
.pause-menu.active {
    display: flex;
}

.game-over h2,
.start-screen h1,
.pause-menu h2 {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 70, 85, 0.5);
}

/* Pause Menu Stats */
.pause-stats-container {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    max-width: 800px;
}

.pause-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.pause-stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.pause-stat-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 215, 0, 0.5);
    transform: translateY(-3px);
}

.pause-stat-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.pause-stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #FFD700;
    margin-bottom: 5px;
}

.pause-stat-label {
    font-size: 12px;
    color: #CCC;
    text-transform: uppercase;
}

.pause-next-rank {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
}

.pause-progress-bar {
    width: 100%;
    height: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pause-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FFD700 0%, #FFA500 100%);
    transition: width 0.3s ease;
}

@media (max-width: 768px) {
    .pause-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.start-screen h1 {
    font-size: 5rem;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

/* Garantir que todos os elementos do start-screen fiquem acima do overlay */
.start-screen > * {
    position: relative;
    z-index: 1;
}

.stats {
    margin: 30px 0;
    font-size: 1.5rem;
}

.stats div {
    margin: 10px 0;
}

.controls {
    margin: 20px 0 40px;
    line-height: 1.6;
    color: var(--accent-color);
}

/* Settings Screen */
.settings-layout {
    display: flex;
    gap: 40px;
    margin: 30px 0;
    max-width: 1200px;
}

.settings-preview {
    flex: 0 0 300px;
}

.settings-preview h3 {
    color: var(--neon-blue);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.settings-preview canvas {
    background: #1a1a2e;
    border: 2px solid var(--neon-blue);
    border-radius: 4px;
}

.settings-panel {
    flex: 1;
    text-align: left;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 20px;
}

.setting-group {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(20, 30, 40, 0.5);
    border-radius: 4px;
    border-left: 3px solid var(--neon-blue);
}

.setting-group h3 {
    color: var(--neon-blue);
    margin-bottom: 15px;
    font-size: 1rem;
    letter-spacing: 2px;
}

.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    gap: 20px;
}

.setting-row label {
    flex: 0 0 150px;
    color: var(--text-color);
    font-size: 0.9rem;
}

.setting-input,
.setting-slider {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: var(--text-color);
    padding: 8px;
    border-radius: 2px;
}

.setting-slider {
    padding: 0;
}

.setting-value {
    flex: 0 0 50px;
    text-align: center;
    color: var(--neon-blue);
    font-weight: 600;
}

.setting-checkbox {
    width: 20px;
    height: 20px;
}

.code-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.code-buttons .btn {
    flex: 1;
    padding: 8px 16px;
    font-size: 0.8rem;
    margin: 0;
}

.code-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: var(--text-color);
    padding: 10px;
    border-radius: 2px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

/* Settings Header */
.settings-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(255, 70, 85, 0.1));
    border-radius: 10px;
    border: 1px solid rgba(0, 240, 255, 0.3);
}

.settings-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(90deg, var(--neon-blue), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.settings-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin: 0;
}

/* Settings Tabs */
.settings-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.tab-btn {
    flex: 1;
    background: rgba(20, 30, 40, 0.5);
    color: var(--text-color);
    border: 2px solid rgba(0, 240, 255, 0.3);
    padding: 15px 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.tab-icon {
    font-size: 1.5rem;
}

.tab-btn.active {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.3), rgba(0, 240, 255, 0.1));
    border-color: var(--neon-blue);
    color: var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
    transform: translateY(-2px);
}

.tab-btn:hover:not(.active) {
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--neon-blue);
    transform: translateY(-1px);
}

.settings-tab {
    display: none;
}

.settings-tab.active {
    display: block;
}

/* Sensitivity Container */
.sensitivity-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.sensitivity-info {
    margin-top: 30px;
    padding: 20px;
    background: rgba(0, 240, 255, 0.1);
    border-left: 3px solid var(--neon-blue);
    border-radius: 4px;
}

.sensitivity-info h4 {
    color: var(--neon-blue);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.sensitivity-info p {
    color: var(--text-color);
    margin: 8px 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Presets */
.presets-container {
    padding: 20px;
}

.presets-container h3 {
    color: var(--neon-blue);
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.presets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.preset-card {
    background: linear-gradient(135deg, rgba(15, 25, 35, 0.9), rgba(20, 30, 40, 0.8));
    border: 2px solid rgba(0, 240, 255, 0.3);
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.preset-card:hover {
    border-color: var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
    transform: translateY(-5px);
}

.preset-preview {
    background: #1a1a2e;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 10px;
}

.preset-preview canvas {
    display: block;
    margin: 0 auto;
}

.preset-info h4 {
    color: var(--neon-blue);
    margin: 10px 0 5px 0;
    font-size: 1.1rem;
}

.preset-info p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    font-size: 0.9rem;
}

.preset-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.preset-actions .btn {
    flex: 1;
    max-width: 250px;
}

/* Settings Footer */
.settings-footer {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 2px solid rgba(0, 240, 255, 0.3);
    margin-top: 30px;
}

.btn-secondary {
    background: rgba(100, 100, 100, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(120, 120, 120, 0.7);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-primary {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.3), rgba(0, 200, 255, 0.3));
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.5), rgba(0, 200, 255, 0.5));
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.6);
}

.btn-valorant {
    background: linear-gradient(135deg, #ff4655, #ff1744);
    border-color: #ff4655;
    color: white;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(255, 70, 85, 0.4);
    transition: all 0.3s ease;
}

.btn-valorant:hover {
    background: linear-gradient(135deg, #ff1744, #d50000);
    box-shadow: 0 0 25px rgba(255, 70, 85, 0.7);
    transform: translateY(-2px);
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 10px rgba(0, 240, 255, 0.3); }
    50% { box-shadow: 0 0 20px rgba(0, 240, 255, 0.6); }
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Valorant Export Modal */
.valorant-modal-content {
    background: linear-gradient(135deg, #0f1923 0%, #1a1a2e 100%);
    border: 2px solid #ff4655;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 0 50px rgba(255, 70, 85, 0.5);
    animation: modalSlideIn 0.4s ease;
}

.modal-header {
    background: linear-gradient(135deg, #ff4655, #ff1744);
    padding: 20px;
    border-radius: 13px 13px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    color: white;
    font-size: 1.8rem;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
    color: white;
}

.success-message {
    background: rgba(76, 175, 80, 0.2);
    border-left: 4px solid #4caf50;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-size: 1.1rem;
}

.code-display {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 70, 85, 0.5);
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    overflow-x: auto;
}

.code-display code {
    color: #00ffff;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    word-break: break-all;
}

.instructions {
    margin: 25px 0;
}

.instructions h3 {
    color: #ff4655;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.instructions ol {
    padding-left: 25px;
}

.instructions li {
    margin: 12px 0;
    line-height: 1.6;
    font-size: 1rem;
}

.instructions strong {
    color: #00ffff;
}

.modal-tip {
    background: rgba(0, 240, 255, 0.1);
    border-left: 4px solid #00ffff;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
}

.modal-footer {
    padding: 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 70, 85, 0.3);
}

.modal-btn-close {
    padding: 12px 40px;
    font-size: 1.1rem;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes hitEffect {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hud {
        padding: 10px;
    }
    
    .hud-left, .hud-right {
        padding: 10px;
        gap: 15px;
    }
    
    .hud-label {
        font-size: 12px;
    }
    
    .hud-value {
        font-size: 20px;
    }
    
    .start-screen h1 {
        font-size: 3rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Target Styles */
.target {
    position: absolute;
    border-radius: 50%;
    background-color: var(--primary-color);
    transform: translate(-50%, -50%);
    cursor: crosshair;
    transition: transform 0.1s ease;
}

.target.hit {
    animation: hitEffect 0.3s forwards;
}

.target.boss {
    background: linear-gradient(45deg, #ff4655, #ff2a6d);
    box-shadow: 0 0 20px rgba(255, 70, 85, 0.7);
}

.target.moving {
    background-color: var(--neon-blue);
}

.target.scaling {
    background-color: #4caf50;
    animation: scaleDown 3s linear forwards;
}

@keyframes scaleDown {
    to {
        transform: translate(-50%, -50%) scale(0.1);
        opacity: 0;
    }
}

/* Crosshair Sub-Tabs (VCRDB Style) */
.crosshair-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    border-bottom: 2px solid #444;
    padding: 0 10px;
}

.crosshair-tab-btn {
    background: none;
    border: none;
    color: #aaa;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    position: relative;
}

.crosshair-tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.crosshair-tab-btn.active {
    color: #ffa;
}

.crosshair-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #ffa;
}

.xh-tab-content {
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Randomizer Button */
.btn-random {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.btn-random:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Notification Animations */
@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Preset Copy Button */
.preset-copy-btn {
    margin-top: 8px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #00f0ff 0%, #00c8ff 100%);
    color: #0f1923;
    border: none;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.preset-copy-btn:hover {
    background: linear-gradient(135deg, #00c8ff 0%, #00f0ff 100%);
    transform: translateY(-2px);
}

/* How To Play Screen */
.how-to-play-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    overflow-y: auto;
    max-height: 70vh;
}

.rules-section, .characters-section, .difficulty-section, .tips-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.rules-section h2, .characters-section h2, .difficulty-section h2, .tips-section h2 {
    color: #ff4655;
    margin-bottom: 15px;
    font-size: 24px;
    text-align: center;
}

.rule-item, .difficulty-item, .tip-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 12px;
    margin: 10px 0;
    border-radius: 5px;
    border-left: 3px solid #00f0ff;
}

.character-card {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    border-left: 4px solid #888;
    transition: transform 0.2s;
}

.character-card:hover {
    transform: translateX(5px);
}

.character-card.ally {
    border-left-color: #4A90E2;
    background: rgba(74, 144, 226, 0.1);
}

.character-card.enemy {
    border-left-color: #FF4655;
    background: rgba(255, 70, 85, 0.1);
}

.character-card.neutral {
    border-left-color: #888;
}

.char-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.char-icon {
    font-size: 24px;
    margin-right: 10px;
}

.char-name {
    font-weight: 700;
    font-size: 18px;
    flex: 1;
}

.char-hp {
    color: #4caf50;
    font-weight: 600;
    background: rgba(76, 175, 80, 0.2);
    padding: 4px 8px;
    border-radius: 4px;
}

.char-ability, .char-strategy {
    margin: 8px 0;
    padding: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    font-size: 14px;
}

.char-ability strong, .char-strategy strong {
    color: #00f0ff;
}

.difficulty-item ul {
    margin-left: 20px;
    margin-top: 10px;
}

.difficulty-item li {
    margin: 5px 0;
}

.how-to-play-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.how-to-play-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Boss Waves Section */
.boss-waves-section, .ranking-section, .features-section, .controls-section {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.boss-wave-item, .rank-item, .feature-item, .control-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 15px;
    margin: 10px 0;
    border-radius: 8px;
    border-left: 3px solid #9D4DFF;
    transition: all 0.3s ease;
}

.boss-wave-item:hover, .rank-item:hover, .feature-item:hover, .control-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.boss-wave-item strong, .rank-item strong, .feature-item strong, .control-item strong {
    color: #FFD700;
    display: block;
    margin-bottom: 5px;
}

/* Audio Settings Button */
.audio-settings-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.audio-settings-btn:hover {
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
    box-shadow: 0 4px 12px rgba(240, 147, 251, 0.4);
}

/* Victory Screen (1 Million Points) */
.victory-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: victoryFadeIn 1s ease-out;
}

.victory-screen.active {
    display: flex;
}

.victory-content {
    background: rgba(0, 0, 0, 0.95);
    border: 3px solid #FFD700;
    border-radius: 20px;
    padding: 40px;
    max-width: 700px;
    text-align: center;
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.5), 0 0 100px rgba(255, 215, 0, 0.3);
    animation: victoryPulse 2s ease-in-out infinite;
}

.victory-title {
    font-size: 48px;
    font-weight: 700;
    color: #FFD700;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 40px rgba(255, 215, 0, 0.5);
    animation: victoryGlow 1.5s ease-in-out infinite;
}

.victory-subtitle {
    font-size: 24px;
    color: #00f0ff;
    margin-bottom: 30px;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.8);
}

.victory-score {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
}

.score-label {
    font-size: 16px;
    color: #000;
    font-weight: 600;
    margin-bottom: 5px;
}

.score-value {
    font-size: 56px;
    font-weight: 700;
    color: #000;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.3);
}

.victory-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 30px 0;
}

.victory-stat {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-icon {
    font-size: 32px;
}

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

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #FFD700;
}

.victory-message {
    background: rgba(0, 240, 255, 0.1);
    border: 2px solid rgba(0, 240, 255, 0.3);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.victory-message p {
    font-size: 18px;
    margin: 10px 0;
    color: #fff;
    font-weight: 600;
}

.victory-btn {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    font-size: 20px;
    padding: 15px 40px;
    margin-top: 20px;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
}

.victory-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.6);
}

@keyframes victoryFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes victoryGlow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 40px rgba(255, 215, 0, 0.5);
    }
    50% {
        text-shadow: 0 0 30px rgba(255, 215, 0, 1), 0 0 60px rgba(255, 215, 0, 0.8);
    }
}
