html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: #010604;
    overflow: hidden;
    font-family: 'Consolas', 'Courier New', monospace;
}

#app { height: 100%; }
.page, .page main { height: 100%; }

/* ---- entry gate ---- */
.cs-gate {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(ellipse at 50% 30%, #062910 0%, #010604 75%);
    color: #39ff6a;
}

.cs-gate-inner { text-align: center; }

.cs-title {
    font-size: 4em;
    letter-spacing: 0.28em;
    margin: 0 0 0.2em 0;
    color: #7dffa4;
    text-shadow: 0 0 24px #39ff6a, 0 0 60px #1d9c46;
}

.cs-sub {
    letter-spacing: 0.35em;
    color: #1d9c46;
    margin-bottom: 2.2em;
}

.cs-play {
    font-family: inherit;
    font-size: 1.6em;
    letter-spacing: 0.2em;
    line-height: 1.35;
    padding: 0.8em 2.2em;
    color: #04180a;
    background: #39ff6a;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 0 32px #39ff6a88;
}
.cs-play:hover { background: #7dffa4; box-shadow: 0 0 48px #39ff6acc; }

.cs-controls {
    margin-top: 2.4em;
    font-size: 0.85em;
    line-height: 1.8;
    color: #2fbf5d;
}

.cs-credit {
    margin-top: 1.6em;
    font-size: 0.75em;
    letter-spacing: 0.2em;
    color: #17692f;
}

/* ---- game canvas: fixed backbuffer, CSS aspect-fit ---- */
.cs-holder {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.cs-holder canvas {
    max-width: 100vw;
    max-height: 100vh;
    width: auto;
    height: auto;
    aspect-ratio: attr(width) / attr(height);
    object-fit: contain;
}

#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #7a1f1f;
    color: #fff;
    padding: 0.5em 1em;
    font: 13px/1.4 monospace;
    z-index: 100;
}

.cs-dots { letter-spacing: 0.2em; }
