@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;700;900&display=swap');

:root {
    --player-blue: #00d2ff;
    --enemy-red: #ff007f;
    --gold: #FFD700;
    --bg-dark: #0f0f0f;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    font-family: 'Outfit', sans-serif;
    color: white;
    overflow: hidden;
}

#game-container {
    position: relative;
    width: 800px;
    height: 450px;
    background: #000;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    overflow: hidden;
    border: 4px solid #333;
}

#game-canvas {
    display: block;
    image-rendering: pixelated;
}

/* HUD */
#hud {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    display: flex;
    justify-content: space-between;
    padding: 20px 40px;
    z-index: 10;
    pointer-events: none;
}

.status-box {
    width: 320px;
}

.status-box.right {
    text-align: right;
}

.name {
    font-size: 1.4rem;
    font-weight: 900;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 1px;
}

.hp-bar-outer {
    height: 24px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transform: skew(-15deg);
}

.hp-bar {
    height: 100%;
    width: 100%;
    transition: width 0.3s ease-out;
}

#player-hp-bar {
    background: linear-gradient(90deg, #0091ff, var(--player-blue));
}

#enemy-hp-bar {
    background: linear-gradient(-90deg, #d50000, var(--enemy-red));
}

/* Super Bar */
.super-bar-outer {
    height: 8px;
    background: rgba(0, 0, 0, 0.5);
    margin-top: 5px;
    border-radius: 4px;
    overflow: hidden;
}

.super-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ffd600, #ffeb3b);
    transition: width 0.3s;
}

#timer-box {
    position: absolute;
    left: 50%;
    top: 30px;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#round-timer {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--gold);
}

/* Screens */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: 0.5s;
}

.screen.active {
    opacity: 1;
    visibility: visible;
}

h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--player-blue), var(--enemy-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -2px;
}

p {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 40px;
}

.btn {
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    background: white;
    color: black;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    margin: 10px;
    transition: 0.3s;
}

.btn:hover {
    transform: scale(1.1);
    background: var(--gold);
}

#announcement {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 6rem;
    font-weight: 900;
    font-style: italic;
    color: white;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5), 5px 5px 0px rgba(0, 0, 0, 0.5);
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
}