/* Attack Mode Styles */

.attack-mode-container-top {
    position: fixed;
    bottom: 200px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    pointer-events: none;
}

.attack-mode-button {
    width: 100px;
    height: 60px;
    background: linear-gradient(135deg, #ff4444, #cc0000);
    color: white;
    border: 2px solid #ff4444;
    padding: 6px;
    border-radius: var(--border-radius-small);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.5);
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    pointer-events: auto;
}

.attack-mode-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 68, 68, 0.7);
}

.attack-mode-button:active {
    transform: translateY(0);
}

.attack-mode-button .button-icon {
    font-size: 20px;
    line-height: 1;
}

.attack-mode-button .button-text {
    font-size: 10px;
    text-align: center;
    line-height: 1.2;
}

/* Attack Mode Screen */
#attack-mode-screen {
    background: var(--background);
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 1000 !important;
    overflow: hidden;
    display: none !important;
}

#attack-mode-screen.active {
    display: block !important;
}

.attack-mode-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.attack-mode-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(10, 25, 41, 0.9);
    border-bottom: 2px solid var(--cyan-glow);
    z-index: 10;
}

.attack-back-button {
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--cyan-glow);
    padding: 8px 16px;
    border-radius: var(--border-radius-small);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.attack-back-button:hover {
    background: var(--surface-light);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.attack-score {
    color: var(--cyan-glow);
    font-size: 18px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.attack-health {
    display: flex;
    align-items: center;
    gap: 8px;
}

.attack-health-label {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 700;
}

.attack-health-bar-container {
    width: 100px;
    height: 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.attack-health-bar {
    height: 100%;
    width: 100%;
    background: #00ff88;
    transition: width 0.3s ease, background 0.3s ease;
    border-radius: 6px;
}

.attack-health-text {
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 700;
    min-width: 60px;
    text-align: right;
}

.attack-game-container {
    flex: 1;
    position: relative;
    width: 100%;
    overflow: hidden;
}

#attack-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Controls */
.attack-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(10, 25, 41, 0.9);
    border-top: 2px solid var(--cyan-glow);
    z-index: 10;
}

/* Joystick */
.joystick-container {
    width: 100px;
    height: 100px;
    position: relative;
    touch-action: none;
}

.joystick-base {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(0, 255, 255, 0.2);
    border: 3px solid var(--cyan-glow);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.joystick-knob {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan-glow), var(--cyan-dark));
    border: 2px solid var(--cyan-glow);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
    transition: transform 0.1s ease-out;
    pointer-events: none;
}

/* Shoot Button */
.shoot-button {
    width: 120px;
    height: 80px;
    background: linear-gradient(135deg, #ff4444, #cc0000);
    color: white;
    border: 3px solid #ff6666;
    border-radius: var(--border-radius);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.5), 0 0 20px rgba(255, 68, 68, 0.3);
    transition: all 0.1s;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.shoot-button:active {
    transform: scale(0.95);
    box-shadow: 0 2px 10px rgba(255, 68, 68, 0.3);
}

/* Game Over Overlay */
.attack-game-over {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    pointer-events: auto;
}

.game-over-content {
    text-align: center;
    background: var(--surface);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 2px solid var(--cyan-glow);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
}

.game-over-content h2 {
    color: var(--cyan-glow);
    font-size: 32px;
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.final-score {
    color: var(--text-primary);
    font-size: 20px;
    margin-bottom: 30px;
}

.final-score span {
    color: var(--cyan-glow);
    font-weight: 700;
    font-size: 24px;
}

.attack-restart-button {
    background: linear-gradient(135deg, var(--cyan-glow), var(--cyan-dark));
    color: var(--primary-color);
    border: 2px solid var(--cyan-glow);
    padding: 15px 30px;
    border-radius: var(--border-radius-small);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.4);
    transition: all 0.2s;
}

.attack-restart-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 255, 0.6);
}

