﻿/* ----- layout ----------------------------------------------------------- */
html,
body {
    margin: 0;
    height: 100%;
    font-family: sans-serif;
    background: #111;
    color: #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ----- canvas ----------------------------------------------------------- */
#gameCanvas {
    background: #000;
    border: 2px solid #444;
    image-rendering: pixelated;
}

/* ----- HUD -------------------------------------------------------------- */
#hud {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: .5rem;
    font-size: 1rem;
    flex-wrap: wrap;
}

.hud-item {
    min-width: 5rem;
    text-align: center;
}

.hud-label {
    display: block;
    font-size: .75rem;
    color: #888;
}

.progress {
    height: .4rem;
    background: #222;
    border: 1px solid #444;
    margin-top: .2rem;
    position: relative;
}

    .progress > div {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        background: #0f0;
    }

/* ----- banner (instructions / pause) ----------------------------------- */
#banner {
    position: absolute;
    top: 45%;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 1.8rem;
    background: #000c;
    color: #eee;
    padding: 1rem 0;
    border-top: 2px solid #333;
    border-bottom: 2px solid #333;
    z-index: 10; /* ALWAYS on top */
}
