html,
body {
    margin: 0;
    min-height: 100%;
}

body:has(.velorah-page) {
    overflow: hidden;
    background: #111311;
}

body:has(.velorah-page) .lpx-mobile-navbar-container,
body:has(.velorah-page) .lpx-sidebar-container,
body:has(.velorah-page) .lpx-topbar-container,
body:has(.velorah-page) .lpx-footbar-container {
    display: none;
}

body:has(.velorah-page) .lpx-content-container,
body:has(.velorah-page) .lpx-content {
    min-height: 100vh;
    margin-left: 0;
    padding: 0;
    background: #111311;
}

.velorah-page,
.velorah-hint-layer {
    --paper: #f3f1e9;
    --lime: #d8ff47;
    --muted: rgba(243, 241, 233, 0.66);
    --line: rgba(243, 241, 233, 0.22);
}

.velorah-page {
    position: relative;
    isolation: isolate;
    display: grid;
    min-height: 100svh;
    overflow: hidden;
    color: var(--paper);
    background: #111311;
    font-family: "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
}

.velorah-video,
.velorah-scrim,
.velorah-grain {
    position: absolute;
    inset: 0;
}

.velorah-video {
    z-index: -3;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 56% center;
    filter: saturate(0.7) contrast(1.12) brightness(0.6);
    transform: scale(1.012);
}

.velorah-scrim {
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(12, 14, 12, 0.91) 0%, rgba(12, 14, 12, 0.64) 42%, rgba(12, 14, 12, 0.13) 82%),
        linear-gradient(0deg, rgba(12, 14, 12, 0.78) 0%, transparent 38%, rgba(12, 14, 12, 0.27) 100%);
}

.velorah-grain {
    z-index: -1;
    pointer-events: none;
    opacity: 0.34;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.36'/%3E%3C/svg%3E");
    mix-blend-mode: soft-light;
}

.velorah-shell {
    display: grid;
    grid-template-rows: auto 1fr auto;
    width: min(100% - 4.5rem, 1440px);
    min-height: 100svh;
    margin: 0 auto;
}

.velorah-nav,
.velorah-brand,
.velorah-nav-actions {
    display: flex;
    align-items: center;
}

.velorah-nav {
    justify-content: space-between;
    min-height: 6.25rem;
    border-bottom: 1px solid var(--line);
}

.velorah-brand {
    gap: 0.7rem;
    color: var(--paper);
    font-family: "Bodoni Moda", "Noto Serif SC", STSong, serif;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.07em;
    text-decoration: none;
}

.velorah-brand-mark {
    display: grid;
    width: 1.35rem;
    height: 1.35rem;
    place-items: center;
    border: 1px solid var(--lime);
    border-radius: 50%;
    color: var(--lime);
    font-family: Georgia, serif;
    font-size: 0.8rem;
}

.velorah-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.velorah-brand-sub {
    margin-top: 0.28rem;
    color: var(--muted);
    font-family: "IBM Plex Mono", Consolas, monospace;
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 0.3em;
}

.velorah-nav-actions {
    gap: clamp(0.9rem, 2vw, 1.6rem);
}

.velorah-nav-actions a,
.velorah-login {
    color: var(--paper);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-decoration: none;
    transition: color 180ms ease;
}

.velorah-nav-actions a:hover,
.velorah-nav-actions a:focus-visible,
.velorah-login:hover,
.velorah-login:focus-visible {
    color: var(--lime);
}

.velorah-user {
    color: var(--muted);
    font-size: 0.68rem;
    letter-spacing: 0.06em;
}

.velorah-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(21rem, 0.85fr);
    gap: clamp(2rem, 6vw, 6rem);
    align-items: center;
    align-self: center;
    padding: 3.5rem 0 3rem;
    animation: velorah-rise 800ms cubic-bezier(.2, .8, .2, 1) both;
}

.velorah-eyebrow,
.velorah-caption,
.velorah-specs span {
    font-family: "IBM Plex Mono", Consolas, monospace;
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.13em;
}

.velorah-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0 0 1.5rem;
    color: var(--lime);
}

.velorah-eyebrow::before {
    width: 2.1rem;
    height: 1px;
    background: currentColor;
    content: "";
}

.velorah-hero h1 {
    max-width: 40rem;
    margin: 0;
    font-family: "Bodoni Moda", "Noto Serif SC", STSong, serif;
    font-size: clamp(3.2rem, 6.4vw, 6.9rem);
    font-weight: 700;
    letter-spacing: -0.095em;
    line-height: 0.88;
}

.velorah-hero h1 em {
    color: var(--lime);
    font-weight: 500;
}

.velorah-copy {
    max-width: 29rem;
    margin: 2rem 0 0;
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.85;
}

.velorah-dock {
    padding: 1.35rem 1.35rem 1.15rem;
    border: 1px solid var(--line);
    background: rgba(10, 12, 10, 0.42);
    backdrop-filter: blur(14px);
    box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.35);
}

.velorah-dock-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}

.velorah-dock-title {
    font-family: "Noto Serif SC", STSong, serif;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.velorah-dock-tag {
    color: var(--lime);
    font-family: "IBM Plex Mono", Consolas, monospace;
    font-size: 0.56rem;
    font-weight: 600;
    letter-spacing: 0.14em;
}

.velorah-platform {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.05rem 0;
    border-bottom: 1px solid var(--line);
}

.velorah-portable {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0 1.05rem;
    border-bottom: 1px solid var(--line);
}

.velorah-portable strong,
.velorah-portable span {
    display: block;
}

.velorah-portable strong {
    font-size: 0.78rem;
}

.velorah-portable span {
    margin-top: 0.25rem;
    color: var(--muted);
    font-size: 0.64rem;
}

.velorah-platform-info {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.velorah-platform-icon {
    display: grid;
    flex: none;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--paper);
}

.velorah-platform-info strong {
    display: block;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
}

.velorah-platform-info span:not(.velorah-platform-icon) {
    color: var(--muted);
    font-family: "IBM Plex Mono", Consolas, monospace;
    font-size: 0.6rem;
    letter-spacing: 0.06em;
}

.velorah-dl {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.6rem;
    padding: 0 1.15rem;
    border: 1px solid var(--lime);
    color: #101210;
    background: var(--lime);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.velorah-dl:hover,
.velorah-dl:focus-visible {
    box-shadow: 0 0.6rem 1.6rem rgba(216, 255, 71, 0.28);
    transform: translateY(-2px);
}

.velorah-dl--line {
    color: var(--paper);
    background: transparent;
}

.velorah-dl--line:hover,
.velorah-dl--line:focus-visible {
    color: #101210;
    background: var(--lime);
}

.velorah-qr {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.05rem;
}

.velorah-qr-tile {
    display: grid;
    flex: none;
    width: 5.9rem;
    height: 5.9rem;
    place-items: center;
    padding: 0.45rem;
    border-radius: 0.5rem;
    background: #f3f1e9;
}

.velorah-qr-tile img {
    display: block;
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
}

.velorah-qr-copy strong {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
}

.velorah-qr-copy span {
    color: var(--muted);
    font-size: 0.68rem;
    line-height: 1.7;
}

.velorah-hint-layer {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    place-items: center;
    padding: 1.5rem;
}

.velorah-hint-layer[hidden] {
    display: none;
}

.velorah-hint-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 10, 8, 0.62);
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 240ms ease;
}

.velorah-hint {
    position: relative;
    overflow: hidden;
    width: min(24rem, 100%);
    padding: 1.5rem 1.5rem 1.25rem;
    border-radius: 0.9rem;
    color: #171a15;
    background: var(--paper);
    box-shadow: 0 2.5rem 5rem rgba(0, 0, 0, 0.55);
    opacity: 0;
    transform: translateY(1rem) scale(0.97);
    transition: opacity 240ms ease, transform 240ms ease;
}

.velorah-hint::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 0.22rem;
    background: var(--lime);
    content: "";
}

.velorah-hint-layer.is-visible .velorah-hint-backdrop {
    opacity: 1;
}

.velorah-hint-layer.is-visible .velorah-hint {
    opacity: 1;
    transform: none;
}

.velorah-hint-close {
    position: absolute;
    top: 0.6rem;
    right: 0.7rem;
    padding: 0.25rem 0.5rem;
    border: 0;
    border-radius: 0.35rem;
    color: rgba(23, 26, 21, 0.5);
    background: transparent;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
    transition: color 160ms ease, background 160ms ease;
}

.velorah-hint-close:hover,
.velorah-hint-close:focus-visible {
    color: #171a15;
    background: rgba(23, 26, 21, 0.08);
}

.velorah-hint-title {
    display: block;
    margin-bottom: 0.75rem;
    padding-right: 1.6rem;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.velorah-hint-steps {
    display: grid;
    gap: 0.55rem;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: hint;
}

.velorah-hint-steps li {
    display: flex;
    gap: 0.6rem;
    align-items: baseline;
    color: rgba(23, 26, 21, 0.75);
    font-size: 0.76rem;
    line-height: 1.7;
    counter-increment: hint;
}

.velorah-hint-steps li::before {
    flex: none;
    padding: 0.08rem 0.34rem;
    border-radius: 0.28rem;
    color: #171a15;
    background: var(--lime);
    font-family: "IBM Plex Mono", Consolas, monospace;
    font-size: 0.6rem;
    font-weight: 700;
    content: "0" counter(hint);
}

.velorah-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem;
    align-items: end;
    padding: 1.45rem 0;
    border-top: 1px solid var(--line);
}

.velorah-caption {
    color: rgba(243, 241, 233, 0.55);
}

.velorah-specs {
    display: flex;
    gap: 1.45rem;
}

.velorah-specs span {
    color: var(--paper);
}

.velorah-specs span::before {
    margin-right: 0.4rem;
    color: var(--lime);
    content: "+";
}

@keyframes velorah-rise {
    from { opacity: 0; transform: translateY(1.4rem); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1024px) {
    .velorah-hero {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        align-content: center;
    }

    .velorah-dock { max-width: 30rem; }
}

@media (max-width: 760px) {
    body:has(.velorah-page) { overflow-x: hidden; overflow-y: auto; }

    .velorah-shell {
        width: min(100% - 2rem, 1440px);
        min-height: 100svh;
    }

    .velorah-nav { min-height: 4.25rem; }
    .velorah-brand { font-size: 1.25rem; }
    .velorah-login { font-size: 0.58rem; }

    .velorah-hero {
        grid-template-columns: 1fr;
        gap: 1.8rem;
        align-self: end;
        padding: 2.2rem 0 1.6rem;
    }

    .velorah-hero h1 {
        font-size: clamp(2.9rem, 14vw, 5rem);
        line-height: 0.93;
    }

    .velorah-eyebrow { margin-bottom: 1.1rem; }
    .velorah-copy { margin-top: 1.2rem; font-size: 0.85rem; }
    .velorah-dock { padding: 1.1rem 1rem 1rem; }
    .velorah-dl { min-height: 2.75rem; }
    .velorah-portable { align-items: flex-start; }
    .velorah-qr { display: none; }

    .velorah-hint-layer {
        place-items: end center;
        padding: 0;
    }

    .velorah-hint {
        width: 100%;
        max-height: 62svh;
        overflow-y: auto;
        padding: 1.4rem 1.25rem calc(1.2rem + env(safe-area-inset-bottom));
        border-radius: 1rem 1rem 0 0;
        transform: translateY(102%);
    }

    .velorah-hint::before {
        border-radius: 1rem 1rem 0 0;
    }

    .velorah-hint-layer.is-visible .velorah-hint {
        transform: translateY(0);
    }

    .velorah-hint-close {
        top: 0.7rem;
        right: 0.8rem;
        padding: 0.5rem 0.65rem;
        font-size: 1.3rem;
    }

    .velorah-footer { grid-template-columns: 1fr; gap: 0.8rem; }
    .velorah-specs { gap: 0.8rem; flex-wrap: wrap; }
    .velorah-specs span { font-size: 0.56rem; }
    .velorah-video { object-position: 62% center; }
    .velorah-scrim { background: linear-gradient(90deg, rgba(12, 14, 12, 0.82), rgba(12, 14, 12, 0.25)), linear-gradient(0deg, rgba(12, 14, 12, 0.9), rgba(12, 14, 12, 0.22)); }
}

@media (prefers-reduced-motion: reduce) {
    .velorah-hero { animation: none; }
    .velorah-video { display: none; }
    .velorah-page { background: radial-gradient(circle at 80% 0%, #33431a, #111311 58%); }
}
