body {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #1a1a1a;
    overflow: hidden;
    font-family: 'Segoe UI', 'Arial', 'Roboto', sans-serif;
}

#gameCanvas {
    display: block;
    background-color: #030303;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    aspect-ratio: 16/9;
    position: relative;
    z-index: 1;
}

.hud-panel {
    position: absolute;
    background: rgba(30,30,30,0.7);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
    padding: 18px 28px;
    color: #fff;
    z-index: 10;
    font-size: 1.1rem;
}
.hud-label {
    font-weight: 600;
    margin-right: 8px;
}
.hud-value {
    font-weight: 400;
    color: #FFD700;
}
.life-bar {
    width: 100%;
    height: 16px;
    background: #300;
    border-radius: 8px;
    margin-bottom: 6px;
    overflow: hidden;
}
.life-bar-inner {
    height: 100%;
    background: linear-gradient(90deg, #f00, #ff0);
    border-radius: 8px;
    transition: width 0.2s;
}

/* Pajzs csík */
.shield-bar {
    width: 100%;
    height: 16px;
    background: #112255;
    border-radius: 8px;
    margin-bottom: 6px;
    overflow: hidden;
}
.shield-bar-inner {
    height: 100%;
    background: linear-gradient(90deg, #00f, #0ff);
    border-radius: 8px;
    transition: width 0.2s;
}
.upgrade-panel {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: rgba(20,20,20,0.95);
    border-radius: 18px;
    box-shadow: 0 4px 32px #000a;
    padding: 36px 32px 32px 32px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.upgrade-btn {
    width: 340px;
    max-width: 80vw;
    background: #4CAF50;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    margin: 14px 0;
    padding: 18px 0;
    box-shadow: 0 2px 8px #0004;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}
.upgrade-btn:hover {
    background: #388e3c;
    transform: scale(1.04);
}
.upgrade-desc {
    color: #ccc;
    font-size: 1rem;
    margin-bottom: 4px;
}
.icon {
    width: 22px;
    height: 22px;
    vertical-align: middle;
    margin-right: 6px;
}

.language-toggle {
    position: fixed;
    top: 10px;
    right: 10px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: 2px solid #2196F3;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    z-index: 1000;
    transition: all 0.3s ease;
}

.language-toggle:hover {
    background: rgba(33, 150, 243, 0.3);
}

.end-game-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 20px;
    background: rgba(255, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s;
    z-index: 1000;
}

.end-game-btn:hover {
    background: rgba(255, 0, 0, 0.9);
}

.next-music-btn {
    padding: 8px 16px;
    background: rgba(0, 150, 255, 0.7);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background 0.3s;
    z-index: 1000;
}

.next-music-btn:hover {
    background: rgba(0, 150, 255, 0.9);
}

.next-music-btn:disabled {
    background: rgba(100, 100, 100, 0.5);
    cursor: not-allowed;
    opacity: 0.6;
}

.next-music-btn:disabled:hover {
    background: rgba(100, 100, 100, 0.5);
}

/* Boss warning animation */
@keyframes bossWarningPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.boss-warning {
    animation: bossWarningPulse 1s infinite;
}

/* Power-up glow */
@keyframes powerUpGlow {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 255, 255, 0.5); }
    50% { box-shadow: 0 0 20px rgba(255, 255, 255, 1); }
}

/* Combo text */
@keyframes comboScale {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Buff indicator */
.buff-indicator {
    position: fixed;
    bottom: 50px;
    left: 20px;
    z-index: 100;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    color: white;
    font-weight: bold;
    animation: comboScale 2s infinite;
}