/* The page is a frame for the game's canvas, and the loader wears the game's own
   palette (internal/art): the night sky, its ink, and the lamp. */
:root {
    --sky-top: #0b0e1c;
    --sky-low: #222a45;
    --ink: #e8e4d8;
    --faint: #7c859c;
    --flame: #ffc86a;
    --ember: #ff7a2a;
}

html, body {
    margin: 0;
    padding: 0;
    background-color: var(--sky-top);
    overflow: hidden;
    overscroll-behavior: none;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
}

canvas {
    width: 100% !important;
    height: 100% !important;
    /* The canvas owns every gesture on it: without this the browser claims the pan
       and double-tap zooms on repeated taps. */
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
    outline: none;
}

#progress-container {
    width: 100%;
    height: 100%;
    background: linear-gradient(var(--sky-top), var(--sky-low));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--ink);
}

#title {
    font-size: 28px;
    letter-spacing: 0.2em;
    margin-bottom: 28px;
}

#progress-text {
    color: var(--faint);
    margin-top: 16px;
    font-size: 14px;
}

#progress-bar-container {
    width: 60%;
    max-width: 320px;
    height: 2px;
    background-color: rgba(124, 133, 156, 0.25);
}

#progress-bar {
    width: 0%;
    height: 100%;
    background-color: var(--flame);
    box-shadow: 0 0 8px var(--ember);
    transition: width 0.1s ease-out;
}

#error-container {
    text-align: center;
    color: var(--ink);
    padding: 0 16px;
}
