@charset "utf-8";
/* CSS Document */
        body {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 100vh;
            margin: 0;
            background-color: #000;
            color: #fff;
            font-family: Verdana, sans-serif;
        }

        #text-container {
            position: absolute;
            top: 10px;
            left: 10px;
            color: #0ff;
            font-size: 14px;
            text-shadow: 0 0 6px #0ff;
        }

#main-container {
    display: flex;
    justify-content: center;
    align-items: center;       /* center vertically */
    gap: 30px;
    
    position: relative;
    top: 50%;                  /* move container halfway down the screen */
    transform: translateY(-53%); /* pull it up slightly so it's visually centered */
    
    margin-top: 0;             /* remove old spacing */
}


        #left-text,
#right-text {
    width: 180px;                 /* more breathing room */
    text-align: center;
    padding: 15px 10px;
    box-sizing: border-box;

    color: #0ff;
    text-shadow: 0 0 6px #0ff;

    font-size: 22px;
    line-height: 1.4;             /* improves readability */
    font-family: 'Courier New', monospace;

    background: rgba(0, 0, 0, 0.35); /* subtle neon panel */
    border: 2px solid #0ff;
    border-radius: 10px;

    box-shadow:
        0 0 8px #0ff,
        0 0 16px #0ff inset;

    animation: sidePanelPulse 3s ease-in-out infinite;
}

/* Neon breathing animation */
@keyframes sidePanelPulse {
    0% {
        box-shadow:
            0 0 8px #0ff,
            0 0 16px #0ff inset;
        border-color: #0ff;
    }
    50% {
        box-shadow:
            0 0 12px #ff00ff,
            0 0 22px #ff00ff inset;
        border-color: #ff00ff;
    }
    100% {
        box-shadow:
            0 0 8px #0ff,
            0 0 16px #0ff inset;
        border-color: #0ff;
    }
}

        #game-container {
            border: 2px solid #0ff;
            box-shadow: 0 0 20px #0ff;
            margin: 0 20px;
            background: radial-gradient(circle at top, #111 0%, #000 60%);
        }

        #footer {
            position: fixed;
            bottom: 10px;
            left: 10px;
            background-color: #111;
            padding: 10px 14px;
            border-radius: 5px;
            border: 1px solid #0ff;
            box-shadow: 0 0 10px #0ff;
            font-size: 11px;
        }

        #footer a {
            color: #0ff;
            text-decoration: none;
            font-family: Verdana, sans-serif;
            text-shadow: 0 0 6px #0ff;
        }

        .hud-line {
            margin-bottom: 4px;
        }

        .hud-label {
            color: #888;
        }

        .hud-value {
            color: #0ff;
        }

.overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #0ff;
    font-size: 24px;
    text-shadow: 0 0 10px #0ff;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.preloader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #0ff;
    font-size: 22px;
    text-align: center;
    text-shadow: 0 0 10px #0ff;
    padding: 20px 30px;
    border: 1px solid #0ff;
    box-shadow: 0 0 20px #0ff;
    background: rgba(0, 0, 0, 0.8);
    cursor: pointer;
}
.preloader.hidden {
    display: none;
}

.pulse {
    animation: pulse 0.6s ease-in-out infinite alternate;
}

@keyframes pulse {
    from { transform: translate(-50%, -50%) scale(1); }
    to   { transform: translate(-50%, -50%) scale(1.08); }
}

/* ============================
   PHASE 7 — NEON HUD UPGRADE
   ============================ */

#hud {
    position: absolute;
    top: 12px;
    left: 12px;
    font-family: 'Verdana', sans-serif;
    font-size: 22px;
    color: #eaffff;
    text-shadow: 0 0 8px #00ffff;
    line-height: 1.3;
    z-index: 9999;

    padding: 14px 20px;
    border: 3px solid #00ffff;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.45);
    box-shadow:
        0 0 12px #00ffff,
        inset 0 0 18px #0088aa;
    animation: hudPulse 2.2s ease-in-out infinite alternate;
}

@keyframes hudPulse {
    0% {
        box-shadow:
            0 0 12px #00ffff,
            inset 0 0 18px #0088aa;
    }
    100% {
        box-shadow:
            0 0 22px #00ffff,
            inset 0 0 28px #00aaff;
    }
}

.hud-line {
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
}

.hud-label {
    color: #66c7ff;
    font-weight: bold;
}

.hud-value {
    color: #ffffff;
    font-weight: bold;
    text-shadow: 0 0 6px #00ffff;
}

/* Score pulse animation */
.hud-value.score-pulse {
    animation: scorePulse 0.4s ease-out;
}

@keyframes scorePulse {
    0%   { color: #ffffff; text-shadow: 0 0 6px #00ffff; }
    50%  { color: #00ffff; text-shadow: 0 0 14px #00ffff; }
    100% { color: #ffffff; text-shadow: 0 0 6px #00ffff; }
}

/* Lives icons */
.hud-lives {
    display: flex;
    gap: 6px;
}

.hud-life-icon {
    width: 22px;
    height: 22px;
    background: #ffff00;
    border-radius: 50%;
    box-shadow: 0 0 10px #ffff00;
}

/* Garlic timer bar */
#garlic-bar {
    margin-top: 6px;
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    overflow: hidden;
}

#garlic-fill {
    height: 100%;
    width: 0%;
    background: #00ffcc;
    box-shadow: 0 0 10px #00ffcc;
    transition: width 0.1s linear;
}

/* Boss HP bar (auto shown only during boss levels) */
#boss-hp {
    margin-top: 10px;
    width: 100%;
    height: 10px;
    background: rgba(255,0,128,0.2);
    border-radius: 6px;
    overflow: hidden;
    display: none;
}

#boss-hp-fill {
    height: 100%;
    width: 100%;
    background: #ff0088;
    box-shadow: 0 0 10px #ff0088;
    transition: width 0.2s ease-out;
}

/* Level badge */
#level-badge {
    margin-top: 8px;
    padding: 4px 10px;
    background: rgba(0,255,255,0.2);
    border: 2px solid #00ffff;
    border-radius: 6px;
    font-size: 18px;
    text-align: center;
    box-shadow: 0 0 10px #00ffff;
}

#playerName {
    font-size: 26px;      /* Slightly bigger for name */
    font-weight: bold;
    margin-bottom: 8px;
}

/* ============================
   PHASE 7B — PLAYER PANEL
   ============================ */

#player-panel {
    position: absolute;
    top: 12px;
    right: 12px;

    padding: 12px 18px;
    width: 180px;

    background: rgba(0, 0, 0, 0.45);
    border: 3px solid #00ffff;
    border-radius: 10px;

    font-family: Verdana, sans-serif;
    color: #eaffff;
    text-shadow: 0 0 8px #00ffff;

    box-shadow:
        0 0 12px #00ffff,
        inset 0 0 18px #0088aa;

    animation: playerPanelPulse 2.2s ease-in-out infinite alternate;
    z-index: 9999;
}

@keyframes playerPanelPulse {
    0% {
        box-shadow:
            0 0 12px #00ffff,
            inset 0 0 18px #0088aa;
    }
    100% {
        box-shadow:
            0 0 22px #00ffff,
            inset 0 0 28px #00aaff;
    }
}

#player-panel-title {
    font-size: 16px;
    font-weight: bold;
    color: #66c7ff;
    margin-bottom: 6px;
}

#player-panel-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 4px;
}

#player-panel-version {
    font-size: 14px;
    color: #88ffff;
}


/* BACKSTORY OVERLAY */
#backstory-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s ease;
    cursor: pointer;
}

/* BACKSTORY PANEL */
#backstory-box {
    width: 70%;
    max-width: 900px;
    padding: 30px 40px;
    color: #ffffff;
    font-family: 'Courier New', monospace;
    font-size: 18px;
    line-height: 1.5;
    text-align: center;

    border: 4px solid #00ffff;
    border-radius: 12px;

    box-shadow:
        0 0 12px #00ffff,
        0 0 24px #00ffff,
        inset 0 0 12px #00ffff;

    animation: neonPulse 2.5s ease-in-out infinite;
    background: rgba(0, 0, 0, 0.55);
}

#backstory-box h1 {
    margin-top: 0;
    font-size: 32px;
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
}

#backstory-box p {
    margin: 12px 0;
}

#backstory-box .start-hint {
    margin-top: 20px;
    font-size: 22px;
    color: #ff00ff;
    text-shadow: 0 0 10px #ff00ff;
}

/* Neon border animation */
@keyframes neonPulse {
    0% {
        box-shadow:
            0 0 12px #00ffff,
            0 0 24px #00ffff,
            inset 0 0 12px #00ffff;
        border-color: #00ffff;
    }
    50% {
        box-shadow:
            0 0 18px #ff00ff,
            0 0 36px #ff00ff,
            inset 0 0 18px #ff00ff;
        border-color: #ff00ff;
    }
    100% {
        box-shadow:
            0 0 12px #00ffff,
            0 0 24px #00ffff,
            inset 0 0 12px #00ffff;
        border-color: #00ffff;
    }
}

/* GAME PRELOADER (inside canvas area) */
.preloader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
    cursor: pointer;
    z-index: 500;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.level-up {
    font-size: 48px;
    color: #00ffff;
    text-shadow: 0 0 20px #00ffff;
    font-family: 'Courier New', monospace;
}

/* ============================
   PHASE 7C — STATUS PANEL
   ============================ */

#status-panel {
    position: absolute;
    bottom: 12px;
    right: 12px;

    padding: 14px 20px;
    width: 220px;

    background: rgba(0, 0, 0, 0.45);
    border: 3px solid #00ffff;
    border-radius: 10px;

    font-family: Verdana, sans-serif;
    color: #eaffff;
    text-shadow: 0 0 8px #00ffff;

    box-shadow:
        0 0 12px #00ffff,
        inset 0 0 18px #0088aa;

    animation: statusPanelPulse 2.2s ease-in-out infinite alternate;
    z-index: 9999;
}

@keyframes statusPanelPulse {
    0% {
        box-shadow:
            0 0 12px #00ffff,
            inset 0 0 18px #0088aa;
    }
    100% {
        box-shadow:
            0 0 22px #00ffff,
            inset 0 0 28px #00aaff;
    }
}

#status-title {
    font-size: 16px;
    font-weight: bold;
    color: #66c7ff;
    margin-bottom: 10px;
}

.status-section {
    margin-bottom: 12px;
}

.status-label {
    font-size: 14px;
    color: #88ffff;
    margin-bottom: 4px;
}

/* Garlic bar */
#status-garlic-bar {
    width: 100%;
    height: 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    overflow: hidden;
}

#status-garlic-fill {
    height: 100%;
    width: 0%;
    background: #00ffcc;
    box-shadow: 0 0 10px #00ffcc;
    transition: width 0.1s linear;
}

/* Boss HP bar */
#status-boss-bar {
    width: 100%;
    height: 10px;
    background: rgba(255,0,128,0.2);
    border-radius: 6px;
    overflow: hidden;
}

#status-boss-fill {
    height: 100%;
    width: 100%;
    background: #ff0088;
    box-shadow: 0 0 10px #ff0088;
    transition: width 0.2s ease-out;
}

.status-icon {
    width: 22px;
    height: 22px;
    margin-right: 6px;
    vertical-align: middle;
    filter: drop-shadow(0 0 6px #00ffff);
    animation: iconPulse 1.6s ease-in-out infinite alternate;
}

@keyframes iconPulse {
    0%   { filter: drop-shadow(0 0 6px #00ffff); }
    100% { filter: drop-shadow(0 0 14px #00ffff); }
}

/* Boss skull uses red neon */
#icon-boss {
    filter: drop-shadow(0 0 6px #ff0088);
    animation: bossPulse 1.6s ease-in-out infinite alternate;
}

@keyframes bossPulse {
    0%   { filter: drop-shadow(0 0 6px #ff0088); }
    100% { filter: drop-shadow(0 0 14px #ff0088); }
}


.overlay {
    display: none;
}

.overlay.visible {
    display: block !important;
}

.leaderboard-overlay {
    width: 420px;
    max-height: 520px;
    overflow-y: auto;
    padding: 20px 26px;
    background: rgba(5, 7, 18, 0.92);
    border-radius: 14px;

    border: 2px solid rgba(74, 242, 197, 0.55);
    box-shadow:
        0 0 25px rgba(74, 242, 197, 0.45),
        0 0 45px rgba(255, 79, 216, 0.35),
        inset 0 0 18px rgba(74, 242, 197, 0.25);

    animation: leaderboardFade 0.35s ease-out forwards,
               leaderboardGlow 3s ease-in-out infinite alternate;

    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.leaderboard-overlay h2 {
    margin: 0 0 12px;
    font-size: 30px;
    color: #4af2c5;
    text-shadow: 0 0 14px rgba(255, 79, 216, 0.8);
}

#leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 22px;
}

#leaderboard-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#leaderboard-table td {
    padding: 6px 10px;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.35);
}

@keyframes leaderboardFade {
    0% { opacity: 0; transform: scale(0.85); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes leaderboardGlow {
    0% {
        box-shadow:
            0 0 20px rgba(74, 242, 197, 0.35),
            0 0 35px rgba(255, 79, 216, 0.25),
            inset 0 0 12px rgba(74, 242, 197, 0.2);
    }
    100% {
        box-shadow:
            0 0 30px rgba(74, 242, 197, 0.55),
            0 0 55px rgba(255, 79, 216, 0.45),
            inset 0 0 18px rgba(74, 242, 197, 0.35);
    }
}

#leaderboard-exit-hint {
    margin-top: 12px;
    padding-top: 8px;
    text-align: center;
    font-size: 18px;
    color: #00ffff;
    text-shadow: 0 0 8px #00ffff;
    opacity: 0.85;
}

.keycap {
    display: inline-block;
    padding: 2px 6px;
    border: 2px solid #00ffff;
    border-radius: 6px;
    background: rgba(0, 255, 255, 0.15);
    box-shadow: 0 0 6px #00ffff;
    font-weight: bold;
}



