body {
    height: 100%;
    min-height: 100dvh;
}

.wrapper {
    min-height: 100dvh;
    opacity: 0;
    transition: opacity 1s ease-out;
}

.wrapper.show {
    opacity: 1;
}

.kv {
    width: 100%;
    height: 100dvh;

    position: absolute;
    left: 0;
    top: 0;
}

.hero__title {
    position: absolute;
}

.canvasarea {
    width: 100%;
    height: 100%;
    /* 必要に応じて position: absolute; left: 0; top: 0; など */
}

/* ==========================================================================
   Benchmark Control Panel (Backend Switch & Octaves Control)
   ========================================================================== */
.control-panel-container {
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 100000;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.backend-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    background: rgba(15, 18, 28, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 9999px;
    padding: 3px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.15);
    user-select: none;
}

.backend-btn {
    position: relative;
    z-index: 2;
    width: 78px;
    padding: 6px 0;
    text-align: center;
    background: transparent;
    border: none;
    outline: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    border-radius: 9999px;
    transition: color 0.25s ease;
}

.backend-btn:hover {
    color: rgba(255, 255, 255, 0.9);
}

.backend-btn.active {
    color: #ffffff;
}

.backend-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 78px;
    height: calc(100% - 6px);
    border-radius: 9999px;
    transition: transform 0.28s cubic-bezier(0.34, 1.4, 0.64, 1), background 0.25s ease, box-shadow 0.25s ease;
    z-index: 1;
    pointer-events: none;
}

/* WebGPU Active State */
.backend-switch[data-active="webgpu"] .backend-slider {
    transform: translateX(0);
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    box-shadow: 0 0 14px rgba(0, 198, 255, 0.6);
}

/* WebGL Active State */
.backend-switch[data-active="webgl"] .backend-slider {
    transform: translateX(78px);
    background: linear-gradient(135deg, #ff7e5f, #feb47b);
    box-shadow: 0 0 14px rgba(255, 126, 95, 0.6);
}

/* Octave Stress Control */
.octave-control {
    background: rgba(15, 18, 28, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 8px 12px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    gap: 6px;
    user-select: none;
}

.octave-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.control-label {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.02em;
}

.current-octaves-badge {
    font-size: 11px;
    font-weight: 700;
    color: #00e5ff;
    background: rgba(0, 229, 255, 0.15);
    padding: 1px 6px;
    border-radius: 4px;
}

.octave-buttons {
    display: flex;
    gap: 4px;
}

.octave-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.75);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.octave-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.octave-btn.active {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.45);
    color: #ffffff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.25);
}