html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    overscroll-behavior: none;
    background: #fafafa;
    font-family: system-ui, -apple-system, "Hiragino Kaku Gothic ProN",
        "Noto Sans JP", "Yu Gothic", sans-serif;
}

/* Compose の描画キャンバスがブラウザのスクロール／ズームジェスチャを
   奪わないようにする（アプリ自身がポインタ操作を処理する）。 */
canvas {
    touch-action: none;
    outline: none;
    display: block;
}

#loading {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: #fafafa;
    color: #2b3a55;
    font-size: 14px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #d9dee8;
    border-top-color: #2b3a55;
    border-radius: 50%;
    animation: kakushito-spin 0.9s linear infinite;
}

@keyframes kakushito-spin {
    to { transform: rotate(360deg); }
}

noscript {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #fafafa;
    color: #2b3a55;
    text-align: center;
    font-size: 15px;
}
