:root {
    --bg-dark: #0f172a;
    --card-bg: rgba(15, 23, 42, 0.75);
    --border-color: rgba(255, 255, 255, 0.1);
    --text-light: #f8fafc;
    --budgie-blue: #38bdf8;
    --crow-dark: #64748b;
    --accent-green: #4ade80;
    --accent-orange: #fb923c;
    --btn-hover: #0284c7;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    background: #0f172a;
    color: var(--text-light);
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

#game-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

header {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    z-index: 5;
    pointer-events: none;
}

h1 {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--budgie-blue) 0%, #a5f3fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hud {
    display: flex;
    gap: 20px;
    font-size: 1.1rem;
    pointer-events: auto;
}

.score-board {
    display: flex;
    gap: 15px;
}

.blue-text {
    color: var(--budgie-blue);
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
}

.dark-text {
    color: #e2e8f0;
    text-shadow: 0 0 8px rgba(226, 232, 240, 0.3);
}

.level-board {
    background: rgba(251, 146, 60, 0.2);
    color: var(--accent-orange);
    padding: 2px 10px;
    border-radius: 8px;
    border: 1px solid rgba(251, 146, 60, 0.3);
}

#canvas-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

#gameCanvas {
    display: block;
    width: 100%;
    height: 100%;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    text-align: center;
    z-index: 10;
    transition: opacity 0.3s ease;
}

.overlay h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 800;
}

.overlay p {
    font-size: 1.2rem;
    max-width: 550px;
    margin-bottom: 15px;
    line-height: 1.6;
    color: #cbd5e1;
}

.warning-text {
    border-left: 3px solid var(--accent-orange);
    padding-left: 10px;
    text-align: left !important;
}

.overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.game-btn {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    border: none;
    padding: 14px 35px;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.game-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.5);
    background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
}

.game-btn:active {
    transform: translateY(1px);
}

.stats-summary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 15px 30px;
    border-radius: 8px;
    margin: 15px 0;
    display: flex;
    gap: 30px;
}

.stats-summary p {
    margin: 0;
}

#final-player-score {
    color: var(--budgie-blue);
    font-weight: bold;
}

#final-enemy-score {
    color: #e2e8f0;
    font-weight: bold;
}

footer {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    color: #94a3b8;
    font-size: 0.95rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 8px 20px;
    border-radius: 30px;
    backdrop-filter: blur(8px);
    z-index: 5;
    pointer-events: none;
    white-space: nowrap;
}

.hidden {
    display: none !important;
}
