* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
}

#canvas {
    display: block;
    width: 100vw;
    height: 100vh;
    background: #000;
}

#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    background: #000;
    color: #0ff;
    font-family: 'Noto Sans Canadian Aboriginal', 'Gadugi', monospace;
    font-size: 1.2rem;
    transition: opacity 0.5s ease-out;
}

#loading.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ── Info overlay ───────────────────────────────────────────────────────── */

#info-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    background: rgba(0, 0, 0, 0.82);
    transition: opacity 0.4s ease-out;
}

#info-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.info-content {
    max-width: 600px;
    padding: 2.5rem 2rem;
    text-align: center;
    font-family: 'Noto Sans Canadian Aboriginal', 'Gadugi', sans-serif;
    color: #b8e6c8;
    line-height: 1.6;
}

.info-content h1 {
    font-size: 1.8rem;
    color: #78dba0;
    margin-bottom: 0.3rem;
    letter-spacing: 0.05em;
}

.info-content .version {
    font-size: 0.8rem;
    color: #6a9;
    margin-bottom: 1.5rem;
    letter-spacing: 0.08em;
}

.info-content p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.info-content strong {
    color: #a0f0c0;
}

.info-hint {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: #6a9;
}

kbd {
    display: inline-block;
    padding: 0.15em 0.5em;
    font-family: monospace;
    font-size: 0.9em;
    color: #a0f0c0;
    background: rgba(120, 219, 160, 0.12);
    border: 1px solid rgba(120, 219, 160, 0.3);
    border-radius: 3px;
}

/* ── HUD indicator ─────────────────────────────────────────────────────── */

#hud-indicator {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1.2rem;
    font-family: 'Noto Sans Canadian Aboriginal', 'Gadugi', monospace;
    font-size: 0.9rem;
    color: #a0f0c0;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(120, 219, 160, 0.25);
    border-radius: 6px;
    pointer-events: none;
    z-index: 15;
    transition: opacity 0.4s ease-out;
    white-space: nowrap;
}

#hud-indicator.hud-visible { opacity: 1; }
#hud-indicator.hud-hidden  { opacity: 0; }

/* ── Info hint (startup) ──────────────────────────────────────────────── */

#info-hint {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
    font-family: 'Noto Sans Canadian Aboriginal', 'Gadugi', monospace;
    font-size: 0.85rem;
    color: #a0f0c0;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(120, 219, 160, 0.25);
    border-radius: 8px;
    cursor: pointer;
    z-index: 15;
    transition: opacity 0.8s ease-out;
}

#info-hint:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(120, 219, 160, 0.5);
}

#info-hint.hidden {
    opacity: 0;
    pointer-events: none;
}

#info-hint.visible {
    opacity: 1;
}
