* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    color: #f7fbff;
    background: #030611;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.demo-game {
    position: relative;
    width: 100%;
    height: 100%;
}

canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.hud {
    position: absolute;
    inset: 16px 16px auto 16px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    pointer-events: none;
}

.hud span,
.hint {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    padding: 8px 10px;
    background: rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(10px);
    font-weight: 800;
}

.hint {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    color: rgba(247, 251, 255, 0.82);
    text-align: center;
    font-size: 0.9rem;
    pointer-events: none;
}

@media (max-width: 520px) {
    .hud {
        inset: 10px 10px auto 10px;
    }

    .hint {
        left: 10px;
        right: 10px;
        bottom: 10px;
        font-size: 0.78rem;
    }
}

