:root {
    --shell-bg: #0d0a08;
    --shell-panel: rgba(24, 19, 15, 0.82);
    --shell-line: rgba(214, 182, 128, 0.16);
    --shell-line-strong: rgba(214, 182, 128, 0.34);
    --shell-text: #f6ecde;
    --shell-muted: #bfaf98;
    --shell-accent: #d9ad67;
    --shell-shadow: 0 26px 80px rgba(0, 0, 0, 0.38);
    --shell-radius: 28px;
    --shell-pill: 999px;
}

html {
    background: var(--shell-bg);
}

body {
    color: var(--shell-text);
}

.app-shell,
.world100,
.lab120,
.hall-page,
.page6 {
    width: min(1380px, calc(100vw - 2rem));
    margin: 0 auto;
}

.page-switcher {
    position: sticky;
    top: 0.8rem;
    z-index: 30;
}

.page-switcher__head strong {
    font-size: 1rem;
    line-height: 1.5;
}

.site-utility {
    margin: 0 0 1.25rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--shell-line);
    border-radius: var(--shell-radius);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02)),
        var(--shell-panel);
    box-shadow: var(--shell-shadow);
    backdrop-filter: blur(18px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-utility__copy,
.site-utility__actions {
    display: flex;
    gap: 0.7rem;
    align-items: center;
    flex-wrap: wrap;
}

.site-utility__copy {
    flex-direction: column;
    align-items: flex-start;
}

.site-utility__copy strong {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 600;
    line-height: 1.1;
}

.site-utility__copy p,
[data-install-status] {
    margin: 0;
    color: var(--shell-muted);
    line-height: 1.6;
}

[data-install-trigger] {
    white-space: nowrap;
}

[data-install-trigger][disabled] {
    opacity: 0.58;
    cursor: not-allowed;
}

.page-switcher__jump a,
.page-switcher__rail a,
.topbar__links a,
.button,
.preset,
.switch {
    min-height: 2.9rem;
}

.hero,
.method,
.deck,
.loops,
.score,
.reference-bar,
.world-section,
.page-fixed-player-shell,
.catalog-shell,
.benchmark-shell,
.control-shell,
.page-map-shell {
    position: relative;
    overflow: hidden;
}

.hero::after,
.method::after,
.deck::after,
.loops::after,
.score::after,
.reference-bar::after,
.world-section::after,
.catalog-shell::after,
.benchmark-shell::after,
.control-shell::after,
.page-map-shell::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.03), transparent 22%),
        radial-gradient(circle at top right, rgba(217, 173, 103, 0.08), transparent 28%);
    pointer-events: none;
}

.hero > *,
.method > *,
.deck > *,
.loops > *,
.score > *,
.reference-bar > *,
.world-section > *,
.catalog-shell > *,
.benchmark-shell > *,
.control-shell > *,
.page-map-shell > * {
    position: relative;
    z-index: 1;
}

.topbar__links a:hover,
.button:hover,
.preset:hover,
.switch:hover,
.page-switcher__jump a:hover,
.page-switcher__rail a:hover {
    transform: translateY(-1px);
}

.topbar__links a,
.button,
.preset,
.switch,
.page-switcher__jump a,
.page-switcher__rail a {
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.topbar__links a:hover,
.button:hover,
.preset:hover,
.switch:hover {
    border-color: var(--shell-line-strong);
}

.page-switcher__rail a.is-current,
.topbar__links a[aria-current="page"] {
    border-color: var(--shell-line-strong);
    background: linear-gradient(180deg, rgba(217, 173, 103, 0.12), rgba(255, 255, 255, 0.03));
}

.section-heading p:last-child,
.hero p:last-child,
.hero__side p,
.hero-art__copy p {
    max-width: 65ch;
}

@media (max-width: 860px) {
    .site-utility {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-utility__actions {
        width: 100%;
    }

    [data-install-trigger] {
        width: 100%;
    }
}

@media (max-width: 720px) {
    .app-shell,
    .world100,
    .lab120,
    .hall-page,
    .page6 {
        width: min(100vw - 1rem, 100%);
    }

    .page-switcher {
        position: static;
    }

    .site-utility {
        padding: 0.95rem;
        border-radius: 22px;
    }

    .topbar {
        align-items: flex-start;
    }

    .topbar__links a,
    .page-switcher__jump a,
    .page-switcher__rail a {
        width: 100%;
    }
}
