﻿/* Retro Man: Alpine Rush - global layout */
/* Future: theme variants, accessibility, mobile tweaks */

html, body {
    margin: 0;
    padding: 0;
    background: #02030a;
    color: #f5f5ff;
    font-family: "Verdana", system-ui, sans-serif;
    height: 100%;
    overflow: hidden;
}

#game-root {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at top, #1b2b4f 0%, #02030a 60%, #000000 100%);
}

/* Canvas fills screen minus HUD strip */
#game-canvas {
    position: absolute;
    left: 0;
    top: 0;
    width: 100vw;
    height: calc(100vh - 40px);
    display: block;
}

/* HUD strip at bottom */
#hud-root {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 40px;
    background: rgba(5, 10, 25, 0.95);
    border-top: 1px solid #3af2ff;
    box-shadow: 0 -0.4rem 1rem rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hud-row {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #e0faff;
}

.hud-row span {
    color: #7cf9ff;
}

/* Overlay root for preloader, backstory, etc. */
#overlay-root {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* Preloader overlay */
.overlay-preloader {
    pointer-events: auto;
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, #050816 0%, #000000 70%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #f5f5ff;
}

.overlay-preloader-title {
    font-size: 2.4rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 12px #00f7ff, 0 0 24px #ff00ff;
}

.overlay-preloader-sub {
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

/* Neon loading bar */
.preloader-bar-frame {
    width: 60%;
    max-width: 600px;
    height: 18px;
    border-radius: 999px;
    border: 2px solid #00f7ff;
    box-shadow: 0 0 12px #00f7ff;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.6);
}

.preloader-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00f7ff, #ff00ff, #ffe600);
    box-shadow: 0 0 16px #00f7ff;
    transition: width 0.2s ease-out;
}

/* Backstory overlay */
.overlay-backstory {
    pointer-events: auto;
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(5, 10, 25, 0.96), rgba(0, 0, 0, 0.98));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.backstory-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px #00f7ff;
}

.backstory-text {
    max-width: 720px;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 2rem;
}

.backstory-hint {
    font-size: 0.9rem;
    opacity: 0.8;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Future: pause overlay, level intro, etc. */
