* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Orbitron', sans-serif;
    user-select: none;
}

body {
    background-color: #050505;
    color: #fff;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
}

#game-container {
    position: relative;
    width: 100%;
    height: 100%;
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #1a1a2e 0%, #05050a 100%);
}

/* UI Layer */
#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 10;
}

#score-display, #level-display {
    font-size: 24px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
    color: #e0ffff;
}

#health-bar-container {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    box-shadow: 0 0 15px rgba(255, 50, 50, 0.3);
}

#health-bar {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #ff3366, #ff9933);
    transition: width 0.2s ease-out;
}

#skills-display {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.skill-icon {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 255, 255, 0.5);
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 14px;
    color: #0ff;
    text-shadow: 0 0 5px #0ff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

/* Overlays */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 100;
}

.overlay.active {
    opacity: 1;
    pointer-events: all;
}

.overlay h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    background: linear-gradient(to right, #00f2fe, #4facfe);
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: 0 0 20px rgba(0, 242, 254, 0.5);
}

.overlay h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

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

.glow-btn {
    padding: 15px 40px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    background: rgba(0, 242, 254, 0.1);
    border: 2px solid #00f2fe;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.3), inset 0 0 10px rgba(0, 242, 254, 0.1);
}

.glow-btn:hover {
    background: rgba(0, 242, 254, 0.3);
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.6), inset 0 0 15px rgba(0, 242, 254, 0.3);
    transform: scale(1.05);
}

.instructions {
    margin-top: 30px;
    font-size: 1rem;
    color: #888;
}

/* Skill Selection */
.skill-container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.skill-card {
    background: rgba(20, 20, 40, 0.6);
    border: 1px solid rgba(100, 100, 255, 0.3);
    border-radius: 15px;
    padding: 30px 20px;
    width: 250px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 242, 254, 0.8);
    box-shadow: 0 15px 40px rgba(0, 242, 254, 0.3);
    background: rgba(30, 30, 60, 0.8);
}

.skill-card h3 {
    font-size: 1.5rem;
    color: #00f2fe;
    margin-bottom: 15px;
}

.skill-card p {
    font-size: 1rem;
    color: #aaa;
    margin-bottom: 0;
}
