.site-header nav a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    white-space: nowrap;
}

.site-header nav a::after { bottom: 3px; }

@media (max-width: 420px) {
    .site-header nav { justify-content: flex-start; gap: 2px 12px; }
}

.landing-page .hero-scene {
    position: relative;
    isolation: isolate;
    width: 100%;
    padding: 0;
}

.home-hero-frame {
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border: 1px solid #88729e;
    border-radius: 12px;
    background: #24172f;
    box-shadow: 0 20px 55px #120a237a, 0 0 34px #a976d22a;
}

.home-hero-frame img,
.home-feature-art img,
.home-world-art img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-hero-frame::after {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 45% 78%, #ce8eef2a, transparent 52%);
    animation: home-light 8s ease-in-out infinite alternate;
    pointer-events: none;
    content: "";
}

.home-spark {
    position: absolute;
    inset-inline-start: var(--spark-x);
    inset-block-start: var(--spark-y);
    z-index: 1;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ffe0a4;
    box-shadow: 0 0 8px 3px #ffe0a45e;
    pointer-events: none;
    animation: home-spark-drift 6s ease-in-out infinite alternate;
}

.home-spark-near { --spark-x: 11%; --spark-y: 26%; }
.home-spark-far { --spark-x: 84%; --spark-y: 21%; animation-delay: -1.4s; }
.home-spark-low { --spark-x: 75%; --spark-y: 74%; animation-delay: -3.2s; }

.landing-page .card-top {
    position: relative;
    display: grid;
    min-height: 96px;
    margin-bottom: 19px;
    place-items: center;
    isolation: isolate;
    overflow: hidden;
    border-radius: 6px;
    background: radial-gradient(ellipse at center, #8359aa4a, transparent 68%), #271b37;
}

.landing-page .card-top::before,
.landing-page .card-top::after {
    position: absolute;
    inset: 12% 19%;
    z-index: -1;
    border: 1px solid #be9be451;
    border-radius: 50%;
    content: "";
    transform: rotate(-17deg);
    transition: transform .35s ease;
}

.landing-page .card-top::after { inset: 20% 12%; transform: rotate(19deg); border-color: #ffdc981f; }
.landing-page .game-symbol { width: 54px; height: 54px; background: #443052; border-color: #ad8fbd5e; }
.landing-page .game-symbol .nav-icon { width: 30px; height: 30px; }
.landing-page .game-card:hover .card-top::before,
.landing-page .game-card:focus-visible .card-top::before { transform: rotate(-28deg) scale(1.08); }
.landing-page .game-card:hover .card-top::after,
.landing-page .game-card:focus-visible .card-top::after { transform: rotate(29deg) scale(1.08); }

.landing-page .feature-card { display: flex; flex-direction: column; padding: 0; }
.home-feature-art { aspect-ratio: 16 / 9; overflow: hidden; background: #25172e; border-bottom: 1px solid var(--panel-edge); }
.home-feature-art img { transition: transform .4s ease; }
.home-feature-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 11px; padding: clamp(18px, 3vw, 28px); }
.home-feature-copy h3 { max-width: none; margin: 0; font-size: clamp(22px, 3vw, 30px); }
.home-feature-copy > p:not(.eyebrow) { max-width: 58ch; font-size: 14px; }
.home-feature-copy .feature-detail { margin-top: 0; }
.landing-page .home-feature-copy .text-link { margin-top: auto; padding-top: 8px; }

.landing-page .world-strip {
    display: grid;
    grid-template-columns: minmax(0, .7fr) minmax(0, 1fr) minmax(155px, .53fr);
    align-items: center;
    gap: clamp(18px, 3vw, 34px);
    padding: clamp(16px, 3vw, 30px);
}

.home-world-art { aspect-ratio: 3 / 2; overflow: hidden; border: 1px solid var(--panel-edge); border-radius: 6px; }
.landing-page .world-links { min-width: 0; }

@media (hover: hover) {
    .feature-card:hover .home-feature-art img { transform: scale(1.045); }
}

@media (max-width: 850px) {
    .landing-page .world-strip { grid-template-columns: 1fr 1fr; }
    .landing-page .world-links { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
    .landing-page .hero-scene { width: min(520px, 100%); }
    .landing-page .card-top { min-height: 78px; }
    .landing-page .world-strip { grid-template-columns: minmax(0, 1fr); }
}

@keyframes home-light {
    from { opacity: .2; transform: translateX(-5%); }
    to { opacity: .7; transform: translateX(6%); }
}

@keyframes home-spark-drift {
    from { opacity: .3; transform: translateY(3px); }
    to { opacity: .85; transform: translateY(-7px); }
}

.motion-paused .home-hero-frame::after,
.motion-paused .home-spark { animation: none; }
.motion-paused .landing-page .game-card .card-top::before,
.motion-paused .landing-page .game-card .card-top::after,
.motion-paused .feature-card .home-feature-art img { transition: none; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .home-hero-frame::after, .home-spark { animation: none; }
    :root .landing-page .game-card .card-top::before,
    :root .landing-page .game-card .card-top::after,
    .landing-page .feature-card .home-feature-art img { transition: none; transform: none; }
}
