html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #05060c;
    color: #e8ecf4;
    font-family: "Segoe UI", "DejaVu Sans", sans-serif;
}

/* The game's window: the canvas fills the viewport. */
#canvasHolder {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
}

#theCanvas {
    display: block;
    width: 100%;
    height: 100%;
    outline: none;
}

/* The landing panel sits over the canvas until the first frame is drawn. */
#landing {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, #141a33 0%, #05060c 70%);
    z-index: 10;
}

.panel {
    text-align: center;
    width: min(32rem, 90vw);
}

.panel h1 {
    margin: 0 0 0.25rem;
    font-size: 3rem;
    letter-spacing: 0.35em;
    font-weight: 600;
}

.tagline {
    margin: 0 0 2.5rem;
    color: #8f9bb8;
    letter-spacing: 0.15em;
}

#play {
    font: inherit;
    font-size: 1.5rem;
    letter-spacing: 0.3em;
    padding: 0.8rem 3rem 0.8rem 3.3rem;
    color: #05060c;
    background: #f2c94c;
    border: 0;
    border-radius: 0.25rem;
    cursor: pointer;
}

#play:hover {
    background: #ffd966;
}

.bar {
    width: 100%;
    height: 0.75rem;
    background: #1b2240;
    border-radius: 0.375rem;
    overflow: hidden;
}

#bar-fill {
    width: 0;
    height: 100%;
    background: #f2c94c;
    transition: width 0.15s linear;
}

#label {
    margin-top: 0.75rem;
    color: #8f9bb8;
    font-size: 0.95rem;
}

#error {
    margin-top: 1rem;
    color: #ff8a80;
    white-space: pre-wrap;
    text-align: left;
    font-size: 0.9rem;
}

#blazor-error-ui {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.75rem 1.25rem;
    background: #5a1d1d;
    color: #ffd9d9;
    z-index: 20;
}

#blazor-error-ui a {
    color: #fff;
    margin-left: 1rem;
}
