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

body {
    background-color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    min-height: 100dvh; /* 動的ビューポート高さ */
    padding: 0;
}

canvas {
    border: none;
    /* サイズはJavaScriptで制御 */
    /* ピクセル補間を無効化（ピクセルアートの場合） */
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    position: relative;
    z-index: 1;
}

#preset-switcher {
    position: fixed;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px 15px;
    font-size: 18px;
    font-family: monospace;
    z-index: 1000;
    user-select: none;
    display:none
}

#preset-switcher a {
    color: white;
    text-decoration: none;
    margin: 0 8px;
    cursor: pointer;
    display: inline-block;
}

#preset-switcher a:hover {
    opacity: 0.8;
}

#preset-switcher a.active {
    text-decoration: underline;
}

/* フェードインオーバーレイ */
#fade-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    z-index: 9999;
    pointer-events: none;
    /* animationを削除してJSで制御 */
}

/* フェードアウト用クラス */
.fade-out {
    animation: fadeOut 1.0s ease-in forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* ステータス表示 */
#status-display {
    position: fixed;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 15px;
    font-size: 13px;
    font-family: monospace;
    z-index: 1000;
    user-select: none;
    line-height: 1.5;
    border-radius: 4px;
    display: block;
}