html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #f7f7f9;
    color: #17181c;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-right: env(safe-area-inset-right, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    padding-left: env(safe-area-inset-left, 0px);
    overscroll-behavior: none;
    -webkit-tap-highlight-color: transparent;
}

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

#loading {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #f7f7f9;
    transition: opacity 180ms ease;
}

.mark {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    margin-bottom: 10px;
    background: #4f5fd5;
    color: white;
    font-size: 28px;
    font-weight: 700;
    box-shadow: 0 12px 30px rgba(79, 95, 213, 0.22);
}

.loading-title {
    font-size: 20px;
    font-weight: 650;
}

.loading-detail {
    color: #656b75;
    font-size: 14px;
}

@media (prefers-color-scheme: dark) {
    html, body, #loading {
        background: #0d0f13;
        color: #f2f3f5;
    }
    .loading-detail { color: #aeb4be; }
}
