.marquee {
    position: relative;
}

.marquee__viewport {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.marquee__viewport::-webkit-scrollbar {
    display: none;
}

.marquee__track {
    display: flex;
    gap: var(--gap, 20px);
    width: max-content;
    margin: 0;
    padding: 12px 24px 16px;
    list-style: none;
}

.marquee__track > li {
    flex: 0 0 var(--card-w, 460px);
    width: var(--card-w, 460px);
}

.gcard {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line-2);
    border-radius: 16px;
    background: var(--surface);
}

.gcard__art {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.gcard__cap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 20px 0;
    padding: 0;
    color: var(--ink);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    transition: color .18s ease;
}

.gcard__cap:hover {
    color: var(--c-ink);
}

.gcard__cap .tile {
    width: 36px;
    height: 36px;
    border-radius: 9px;
}

.gcard__cap > span:not(.tile) {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

.gcard__go {
    width: 16px;
    height: 16px;
    color: var(--ink-3);
}

.gcard > p {
    margin: 10px 20px 20px;
    max-width: 48ch;
    color: var(--ink-2);
    font-size: 14px;
    line-height: 1.6;
}

.gcard__cap:last-child { margin-bottom: 18px; }

.s-gallery .marquee {
    padding-bottom: 8px;
}

@property --lift { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --pop { syntax: "<number>"; inherits: false; initial-value: 1; }

.s-gallery .marquee.is-curved .marquee__track > li {
    transform: perspective(1500px) translateY(var(--lift)) rotateY(calc(var(--k, 0) * -15deg)) scale(calc((1 - var(--a, 0) * .07) * var(--pop)));
    transform-origin: 50% 50%;
    transition: --lift .45s var(--ease), --pop .45s var(--ease), border-color .35s ease, box-shadow .45s ease;
    will-change: transform;
}

.s-gallery .marquee.is-curved .marquee__track > li.is-hot { --lift: -10px; --pop: 1.035; }

.s-gallery .marquee.is-curved .gcard { position: relative; }

.s-gallery .marquee.is-curved .gcard::after {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: #000;
    content: "";
    opacity: calc(var(--a, 0) * .42);
    pointer-events: none;
    transition: opacity .35s ease;
}

.s-gallery .gcard { transition: border-color .35s ease, box-shadow .45s ease; }
.s-gallery .gcard__art .cmp { transition: transform .8s var(--ease); will-change: transform; }
.s-gallery .gcard__go { transition: transform .3s var(--ease), color .3s ease; }

.s-gallery .gcard.is-hot,
.s-gallery .marquee:not(.is-curved) .gcard:hover {
    border-color: color-mix(in srgb, var(--c, #3d6bff) 45%, transparent);
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .95), 0 0 0 1px color-mix(in srgb, var(--c, #3d6bff) 22%, transparent);
}

.s-gallery .gcard.is-hot::after { opacity: 0; }
.s-gallery .gcard.is-hot .gcard__art .cmp,
.s-gallery .marquee:not(.is-curved) .gcard:hover .gcard__art .cmp { transform: scale(1.03); }
.s-gallery .gcard.is-hot .gcard__go { color: var(--c-ink); transform: translateX(3px); }

@media (max-width: 640px) {
    .s-gallery .marquee.is-curved .marquee__track > li { transform: perspective(1200px) rotateY(calc(var(--k, 0) * -9deg)); }
}

.fx-bar {
    display: flex;
    justify-content: center;
    scroll-margin-top: 92px;
}

.fx-tabs {
    position: relative;
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .02);
}

.fx-tabs__ind {
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 999px;
    background: color-mix(in srgb, var(--c, #3d6bff) 16%, #141417);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c, #3d6bff) 38%, transparent);
    opacity: 0;
    pointer-events: none;
    transition: transform .5s var(--ease), width .5s var(--ease), height .5s var(--ease), background-color .3s ease, box-shadow .3s ease;
}

.fx-tabs.has-ind .fx-tabs__ind {
    opacity: 1;
}

.fx-tab {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    height: 40px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: none;
    color: var(--ink-2);
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: color .2s ease;
}

.fx-tab .ic {
    width: 17px;
    height: 17px;
    color: var(--c-ink);
}

.fx-tab:hover,
.fx-tab[aria-selected="true"] {
    color: var(--ink);
}

.fx-tabs:not(.has-ind) .fx-tab[aria-selected="true"] {
    background: color-mix(in srgb, var(--c) 16%, #141417);
}

.fx-panel {
    margin-top: 40px;
    scroll-margin-top: 170px;
}

.fx-panel[hidden] {
    display: none;
}

.fx-lead {
    margin-bottom: 28px;
    color: var(--ink-2);
    font-size: 16px;
    text-align: center;
}

.fx-tour {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    align-items: center;
    gap: 48px;
}

.fx-steps {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fx-step {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 14px;
    width: 100%;
    padding: 16px 16px 20px;
    border: 0;
    border-radius: 14px;
    background: none;
    color: var(--ink-3);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background-color .3s ease, color .3s ease;
}

.fx-step:hover {
    color: var(--ink-2);
}

.fx-step[aria-pressed="true"] {
    background: rgba(255, 255, 255, .035);
    color: var(--ink);
}

.fx-step .tile {
    opacity: .55;
    transition: opacity .3s ease;
}

.fx-step[aria-pressed="true"] .tile {
    opacity: 1;
}

.fx-step__copy {
    min-width: 0;
    padding-top: 7px;
}

.fx-step__copy b {
    display: block;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
}

.fx-step__copy span {
    display: block;
    max-height: 0;
    overflow: hidden;
    color: var(--ink-2);
    font-size: 14.5px;
    line-height: 1.6;
    opacity: 0;
    transition: max-height .5s var(--ease), opacity .4s ease, margin-top .4s var(--ease);
}

.fx-step[aria-pressed="true"] .fx-step__copy span {
    max-height: 6.5em;
    margin-top: 6px;
    opacity: 1;
}

.fx-step__bar {
    position: absolute;
    right: 16px;
    bottom: 8px;
    left: 66px;
    height: 2px;
    overflow: hidden;
    border-radius: 2px;
    background: rgba(255, 255, 255, .07);
    opacity: 0;
}

.fx-tour.is-auto .fx-step[aria-pressed="true"] .fx-step__bar {
    opacity: 1;
}

.fx-step__bar::after {
    position: absolute;
    inset: 0;
    background: var(--c-ink);
    content: "";
    transform: scaleX(0);
    transform-origin: 0 50%;
}

.fx-tour.is-auto .fx-step.is-run .fx-step__bar::after {
    animation: fx-progress var(--tour-ms, 6.5s) linear forwards;
}

.fx-tour.is-auto.is-paused .fx-step.is-run .fx-step__bar::after {
    animation-play-state: paused;
}

@keyframes fx-progress {
    to { transform: scaleX(1); }
}

.fx-stage {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #0e0e11;
    box-shadow: 0 60px 110px -50px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .05);
    transform: perspective(1800px) rotateY(7deg) rotateX(2.5deg);
    will-change: transform;
    transform-origin: 0 50%;
    transition: transform .9s var(--ease);
}

.fx-tour:hover .fx-stage { transform: perspective(1800px) rotateY(2.5deg) rotateX(1deg); }

.fx-stage::after {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(115deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0) 38%);
    content: "";
    pointer-events: none;
}

.fx-view {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transform: perspective(1400px) translateX(4%) rotateY(-9deg) scale(.97);
    transition: opacity .55s var(--ease), transform 1s var(--ease);
}

.fx-view.is-on {
    opacity: 1;
    pointer-events: auto;
    transform: none;
}

.fx-view__backdrop {
    position: absolute;
    inset: -4%;
    filter: blur(6px) brightness(.85);
}

@keyframes fx-drift {
    from { transform: scale(1.04); }
    to { transform: scale(1.15) translate(-3%, -2%); }
}

.fx-view.is-on .fx-view__backdrop { animation: fx-drift 14s ease-in-out infinite alternate; }

.fx-view--poster .cmp--icon {
    position: relative;
    background: radial-gradient(48% 46% at 50% 50%, rgba(0, 0, 0, .82), rgba(0, 0, 0, .35) 70%, rgba(0, 0, 0, .2));
}

.fx-view--poster .cmp--icon b {
    font-size: clamp(20px, 2vw, 28px);
}

.fx-all {
    margin-top: 32px;
    border-top: 1px solid var(--line);
}

.fx-all summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 0;
    color: var(--ink-2);
    font-size: 15px;
    font-weight: 500;
    list-style: none;
    cursor: pointer;
}

.fx-all summary::-webkit-details-marker {
    display: none;
}

.fx-all summary:hover {
    color: var(--ink);
}

.fx-all__chev {
    width: 18px;
    height: 18px;
    transition: transform .2s var(--ease);
}

.fx-all[open] .fx-all__chev {
    transform: rotate(180deg);
}

.fx-all ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0 0 8px;
    list-style: none;
}

.fx-all li {
    display: flex;
    gap: 12px;
    padding: 18px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, .015);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .4s ease, transform .55s var(--ease);
}

.fx-all { interpolate-size: allow-keywords; }

.fx-all::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size .55s var(--ease), content-visibility .55s allow-discrete;
}

.fx-all[open]::details-content { block-size: auto; }

.fx-all[open] li {
    opacity: 1;
    transform: none;
    transition-delay: calc(var(--i, 0) * 35ms);
}

.fx-all li > div { min-width: 0; }

.fx-all b {
    display: block;
    font-size: 14.5px;
}

.fx-all div > span {
    display: block;
    margin-top: 6px;
    color: var(--ink-2);
    font-size: 13.5px;
    line-height: 1.6;
}

@media (max-width: 1080px) {
    .fx-tour {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .fx-stage,
    .fx-tour:hover .fx-stage {
        order: -1;
        transform: none;
    }
}

@media (max-width: 640px) {
    .fx-tabs {
        border-radius: 18px;
    }

    .fx-tab {
        padding: 0 14px;
    }

    .fx-step__bar {
        left: 16px;
    }

    .fx-stage {
        aspect-ratio: 1 / 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fx-view.is-on .fx-view__backdrop { animation: none; }
    .fx-all li { opacity: 1; transform: none; transition: none; }
    .fx-all::details-content { transition: none; }

    .fx-tabs__ind,
    .fx-stage,
    .fx-view,
    .fx-step,
    .fx-step .tile,
    .fx-step__copy span {
        transition: none;
    }
}
