/*
 * [Elysium] Marketplace — the store page in a template (MarketplaceStorefrontPage).
 *
 * The page header joins the theme's capsule navbar (Themes/standard _page-header.scss decides whether it is a
 * drawer under the bar or its second tier; with other navbars it stays the panel drawn here). Below it one of
 * three layouts: showcase, shelves and arsenal. Colours come from the theme and the card palettes; motion is
 * decoration only — everything is visible without it, and it stops for prefers-reduced-motion and the theme's
 * "animations off".
 */

.em-front,
.em-front-header {
    --emf-accent: var(--accent, #d7bc82);
    --emf-text: var(--text, #e8eef5);
    --emf-soft: color-mix(in srgb, var(--emf-text) 82%, transparent);
    --emf-muted: color-mix(in srgb, var(--emf-text) 58%, transparent);
    --emf-line: var(--transp-1, rgba(255, 255, 255, .1));
    --emf-line-soft: var(--transp-05, rgba(255, 255, 255, .05));
    --emf-surface: var(--blurred-background, rgba(19, 27, 35, .72));
    --emf-raised: color-mix(in srgb, var(--emf-text) 3%, var(--emf-surface));
    --emf-accent-soft: color-mix(in srgb, var(--emf-accent) 12%, transparent);
    --emf-accent-faint: color-mix(in srgb, var(--emf-accent) 5%, transparent);
    --emf-accent-line: color-mix(in srgb, var(--emf-accent) 34%, transparent);
    --emf-radius: 22px;
    --emf-radius-sm: 14px;
    --emf-gap: 16px;
    --emf-ease: cubic-bezier(.16, .84, .24, 1);
    --emf-spring: cubic-bezier(.34, 1.56, .64, 1);
    /* The page's blocks enter once the header has slid out from under the bar. */
    --emf-base: 260ms;
    --emf-later: 520ms;
    /* Clears the fixed navbar and the page header when the page scrolls to a category. */
    --emf-offset: calc(var(--site-header-bottom, 72px) + 96px);
}

.em-front *,
.em-front *::before,
.em-front *::after,
.em-front-header * {
    box-sizing: border-box;
}

.em-front [hidden] {
    display: none !important;
}

.em-front-header :focus-visible,
.em-front :focus-visible {
    outline: 2px solid var(--emf-accent);
    outline-offset: 3px;
}

.em-front-header svg {
    flex: none;
}

.em-sr {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.em-front__body {
    padding-top: var(--emf-gap);
    padding-bottom: 72px;
}

.em-front.is-interacted {
    --emf-base: 0ms;
    --emf-later: 0ms;
}

/* ================================================================ page header */

/* With the capsule navbar the theme turns the surface into a drawer or a second tier of the bar (its rules win
   over these); with other navbars it stays this panel. */
.em-front-header {
    padding: var(--emf-gap) calc(var(--bs-gutter-x, 1.5rem) * .5) 0;
}

.em-front-header__surface {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px var(--emf-gap);
    max-width: var(--max-content-width, 1360px);
    margin: 0 auto;
    padding: 10px 10px 10px 18px;
    border: 1px solid var(--emf-line);
    border-radius: var(--emf-radius);
    background: var(--emf-surface);
}

.em-front-header__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.em-front-header__icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--emf-accent-line);
    border-radius: 14px;
    background: var(--emf-accent-soft);
    color: var(--emf-accent);
}

.em-front-header__icon svg {
    width: 22px;
    height: 22px;
    animation: emf-pop .5s var(--emf-ease) .55s backwards;
}

.em-front-header__copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.em-front-header__title {
    margin: 0;
    color: var(--emf-text);
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.15;
}

.em-front-header__crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    color: var(--emf-muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    list-style: none;
}

/* The theme gives links and list items a loose 2.25. */
.em-front-header__crumbs li,
.em-front-header__crumbs a {
    line-height: inherit;
}

.em-front-header__crumbs li {
    display: inline-flex;
    gap: 6px;
}

.em-front-header__crumbs li + li::before {
    content: "/";
    opacity: .6;
}

.em-front-header__crumbs li[data-em-front-crumb] {
    animation: emf-crumb .32s var(--emf-ease);
}

.em-front-header__crumbs a {
    color: var(--emf-muted);
    text-decoration: none;
    transition: color .2s ease;
}

.em-front-header__crumbs a:hover,
.em-front-header__crumbs [aria-current] {
    color: var(--emf-text);
}

.em-front-header__end {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
}

.em-front-header__tabs {
    position: relative;
    display: flex;
    gap: 4px;
    min-width: 0;
    max-width: 100%;
    padding: 4px;
    overflow-x: auto;
    border: 1px solid var(--emf-line-soft);
    border-radius: 15px;
    background: color-mix(in srgb, var(--background, #0b0f14) 55%, transparent);
    scrollbar-width: none;
    isolation: isolate;
}

.em-front-header__tabs::-webkit-scrollbar {
    display: none;
}

/* The lit pill that travels to the picked tab (marketplace-storefront-page.js places it). */
.em-front-header__glider {
    position: absolute;
    z-index: -1;
    top: 4px;
    left: 0;
    width: var(--emf-glider-w, 0);
    height: calc(100% - 8px);
    border-radius: 11px;
    background: var(--emf-accent-soft);
    box-shadow: inset 0 0 0 1px var(--emf-accent-line), 0 6px 18px -10px var(--emf-accent);
    transform: translateX(var(--emf-glider-x, 0));
    opacity: 0;
    pointer-events: none;
}

.em-front-header__tabs.has-glider .em-front-header__glider {
    opacity: 1;
}

.em-front-header__tabs.is-gliding .em-front-header__glider {
    transition:
        transform .42s var(--emf-ease),
        width .42s var(--emf-ease);
}

.em-front-header__tab {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 13px;
    border-radius: 11px;
    color: var(--emf-muted);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s ease, background .2s ease;
}

.em-front-header__tab svg {
    width: 17px;
    height: 17px;
    transition: transform .3s var(--emf-spring), filter .3s ease;
}

.em-front-header__tab:hover {
    background: var(--transp-05, rgba(255, 255, 255, .05));
    color: var(--emf-text);
}

.em-front-header__tab.is-active {
    background: var(--emf-accent-soft);
    box-shadow: inset 0 0 0 1px var(--emf-accent-line);
    color: var(--emf-accent);
}

/* With the glider the pill does the highlighting. */
.em-front-header__tabs.has-glider .em-front-header__tab.is-active {
    background: transparent;
    box-shadow: none;
}

.em-front-header__tab.is-active svg {
    filter: drop-shadow(0 0 6px color-mix(in srgb, var(--emf-accent) 55%, transparent));
    transform: scale(1.08);
}

.em-front-header__count {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--transp-1, rgba(255, 255, 255, .1));
    font-size: 11px;
    font-weight: 800;
}

.em-front-header__cart {
    position: relative;
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 8px;
    min-height: 50px;
    padding: 0 16px;
    border: 1px solid var(--emf-line);
    border-radius: 15px;
    background: color-mix(in srgb, var(--background, #0b0f14) 55%, transparent);
    color: var(--emf-text);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, transform .2s var(--emf-ease);
}

.em-front-header__cart svg {
    width: 19px;
    height: 19px;
    color: var(--emf-accent);
}

.em-front-header__cart:hover {
    border-color: var(--emf-accent-line);
    background: var(--emf-accent-faint);
}

.em-front-header__cart:active {
    transform: scale(.97);
}

.em-front-header__cart.is-bumped {
    animation: elysium-press-pop 420ms var(--emf-spring);
}

.em-front-header__cart-count {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--emf-accent);
    color: var(--background, #0b0f14);
    font-size: 11px;
    font-weight: 800;
}

@media (max-width: 1100px) {
    .em-front-header__end {
        flex: 1 1 100%;
    }

    .em-front-header__tabs {
        flex: 1 1 auto;
    }
}

@media (max-width: 640px) {
    .em-front-header__surface {
        padding-left: 12px;
    }

    .em-front-header__icon {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .em-front-header__title {
        font-size: 17px;
    }

    .em-front-header__cart {
        min-height: 50px;
        padding: 0 14px;
    }

    .em-front-header__cart-label {
        display: none;
    }

    .em-front-header__tab {
        padding: 0 11px;
    }
}

/* ================================================================ entrances */

.em-front-rise {
    animation: emf-rise .7s var(--emf-ease) var(--emf-base) backwards;
}

.em-front-rise--later {
    animation-delay: var(--emf-later);
}

/* Groups enter with the page. A group below the fold is held back by the script (.is-waiting) and comes in
   when it scrolls into view (.is-in); without the script everything is simply there. */
.em-front-group .em-shelf__head {
    animation: emf-rise .6s var(--emf-ease) var(--emf-base) backwards;
}

.em-front-group .em-shelf__item {
    animation: emf-rise .6s var(--emf-ease) calc(var(--emf-later) + min(var(--em-shelf-index, 0), 6) * 60ms) backwards;
}

.em-front-group.is-waiting :is(.em-shelf__head, .em-shelf__item) {
    animation: none;
    opacity: 0;
}

.em-front-group.is-in .em-shelf__head {
    animation: emf-rise .6s var(--emf-ease) backwards;
}

.em-front-group.is-in .em-shelf__item {
    animation: emf-rise .6s var(--emf-ease) calc(80ms + min(var(--em-shelf-index, 0), 6) * 60ms) backwards;
}

/* =================================================================== showcase */

.em-front-showcase {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.em-front-showcase__hero .em-slider {
    margin-top: 0;
}

/* The cart lives in the page header; the catalog keeps its count. */
.em-front-showcase .em-store__head-actions [data-em-cart-open] {
    display: none;
}

/* =================================================================== shelves */

.em-front-shelves {
    display: flex;
    flex-direction: column;
    gap: 44px;
}

/* ---------------------------------------------------------------- spotlight */

.em-spotlight {
    --em-spotlight-delay: 7s;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    gap: 14px;
}

.em-spotlight__stage {
    position: relative;
    min-height: clamp(320px, 32vw, 420px);
    overflow: hidden;
    border: 1px solid var(--emf-line);
    border-radius: 26px;
    background: color-mix(in srgb, var(--background, #0b0f14) 70%, #000);
    isolation: isolate;
}

.em-spotlight__slide {
    --em-accent: var(--em-card-accent, var(--emf-accent));
    --em-glow: var(--em-card-glow, var(--em-accent));
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .7s var(--emf-ease), visibility 0s linear .7s;
}

.em-spotlight__slide.is-active {
    z-index: 1;
    opacity: 1;
    visibility: visible;
    transition: opacity .7s var(--emf-ease), visibility 0s;
}

.em-spotlight__art {
    position: absolute;
    inset: 0 0 0 38%;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 26%);
    mask-image: linear-gradient(90deg, transparent, #000 26%);
}

.em-spotlight__art .em-store-picture,
.em-spotlight__art .em-store-picture picture {
    width: 100%;
    height: 100%;
}

.em-spotlight__art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% 50%;
}

/* Slow drift of the active picture over the time it is on stage. */
.em-spotlight__slide.is-active .em-spotlight__art .em-store-picture {
    animation: emf-drift calc(var(--em-spotlight-delay) + 1s) ease-out both;
}

/* Glow of the product's palette behind the copy. */
.em-spotlight__slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(70% 90% at 0% 100%, color-mix(in srgb, var(--em-glow) 26%, transparent), transparent 70%),
        linear-gradient(90deg, color-mix(in srgb, var(--background, #0b0f14) 82%, transparent) 20%, transparent 70%);
    pointer-events: none;
}

.em-spotlight__body {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: start;
    gap: 12px;
    max-width: min(520px, 62%);
    padding: 34px 38px;
}

.em-spotlight__slide.is-active .em-spotlight__body > * {
    animation: emf-rise .7s var(--emf-ease) backwards;
}

.em-spotlight__slide.is-active .em-spotlight__body > :nth-child(2) { animation-delay: 60ms; }
.em-spotlight__slide.is-active .em-spotlight__body > :nth-child(3) { animation-delay: 120ms; }
.em-spotlight__slide.is-active .em-spotlight__body > :nth-child(4) { animation-delay: 180ms; }
.em-spotlight__slide.is-active .em-spotlight__body > :nth-child(5) { animation-delay: 240ms; }
.em-spotlight__slide.is-active .em-spotlight__body > :nth-child(6) { animation-delay: 300ms; }

.em-spotlight__flags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.em-spotlight__eyebrow {
    color: var(--em-accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.em-front .em-spotlight__title {
    margin: 0;
    color: var(--emf-text);
    font-size: clamp(30px, 4vw, 52px);
    font-weight: 850;
    letter-spacing: -.045em;
    line-height: 1;
}

.em-front .em-spotlight__text {
    max-width: 44ch;
    margin: 0;
    color: var(--emf-soft);
    font-size: 14px;
    line-height: 1.55;
}

.em-spotlight__price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    color: var(--em-accent);
    font-size: 30px;
    font-weight: 850;
    letter-spacing: -.03em;
}

.em-spotlight__price s {
    color: var(--emf-muted);
    font-size: 16px;
}

.em-spotlight__price .em-cur {
    margin-left: 2px;
    color: var(--emf-muted);
    font-size: 16px;
}

.em-spotlight__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.em-spotlight__actions .em-store-button {
    min-height: 46px;
    padding-inline: 22px;
}

.em-spotlight__picks {
    display: grid;
    align-content: stretch;
    gap: 10px;
}

.em-spotlight__pick {
    --em-accent: var(--em-card-accent, var(--emf-accent));
    position: relative;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 72px;
    padding: 8px 14px 8px 8px;
    overflow: hidden;
    border: 1px solid var(--emf-line);
    border-radius: 18px;
    background: color-mix(in srgb, var(--em-card, var(--emf-raised)) 80%, transparent);
    color: var(--emf-soft);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition:
        border-color .25s ease,
        background .25s ease,
        transform .35s var(--emf-ease);
}

.em-spotlight__pick:hover {
    border-color: color-mix(in srgb, var(--em-accent) 40%, var(--emf-line));
    transform: translateX(-3px);
}

.em-spotlight__pick.is-active {
    border-color: color-mix(in srgb, var(--em-accent) 60%, var(--emf-line));
    background: color-mix(in srgb, var(--em-accent) 9%, var(--em-card, var(--emf-raised)));
    color: var(--emf-text);
}

.em-spotlight__thumb {
    display: block;
    width: 56px;
    height: 56px;
    overflow: hidden;
    border-radius: 12px;
    background: color-mix(in srgb, var(--em-accent) 14%, #000);
}

.em-spotlight__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% 50%;
    transition: transform .5s var(--emf-ease);
}

.em-spotlight__pick:hover .em-spotlight__thumb img,
.em-spotlight__pick.is-active .em-spotlight__thumb img {
    transform: scale(1.1);
}

.em-spotlight__pick-body {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.em-spotlight__pick-body b {
    overflow: hidden;
    color: inherit;
    font-size: 14px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.em-spotlight__pick-body small {
    overflow: hidden;
    color: var(--emf-muted);
    font-size: 11px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.em-spotlight__pick-price {
    color: var(--em-accent);
    font-size: 14px;
    font-weight: 850;
    white-space: nowrap;
}

.em-spotlight__pick-price .em-cur {
    margin-left: 1px;
    color: var(--emf-muted);
    font-size: 11px;
}

.em-spotlight__progress {
    position: absolute;
    inset: auto 14px 0;
    height: 2px;
    overflow: hidden;
    border-radius: 2px;
}

.em-spotlight__progress::after {
    content: "";
    display: block;
    height: 100%;
    background: var(--em-accent);
    box-shadow: 0 0 10px var(--em-accent);
    transform: scaleX(0);
    transform-origin: left;
}

/* The line fills over the time a pick stays on stage; its end moves the stage on (the script listens). */
.em-spotlight.is-playing .em-spotlight__pick.is-active .em-spotlight__progress::after {
    animation: emf-progress var(--em-spotlight-delay) linear forwards;
}

.em-spotlight.is-paused .em-spotlight__pick.is-active .em-spotlight__progress::after {
    animation-play-state: paused;
}

/* -------------------------------------------------------------------- shelf */

.em-shelf {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.em-shelf__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px 16px;
}

.em-shelf__copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.em-shelf__title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--emf-text);
    font-size: clamp(20px, 2.2vw, 26px);
    font-weight: 850;
    letter-spacing: -.03em;
    line-height: 1.15;
}

.em-shelf__count {
    display: inline-grid;
    place-items: center;
    min-width: 28px;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--emf-accent-soft);
    color: var(--emf-accent);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0;
}

.em-shelf__text {
    margin: 0;
    color: var(--emf-muted);
    font-size: 13px;
    line-height: 1.5;
}

.em-shelf__controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.em-shelf__expand,
.em-shelf__nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    border: 1px solid var(--emf-line);
    background: color-mix(in srgb, var(--em-card, var(--emf-raised)) 80%, transparent);
    color: var(--emf-text);
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
    transition:
        border-color .2s ease,
        background .2s ease,
        opacity .2s ease,
        transform .2s var(--emf-ease);
}

.em-shelf__expand {
    padding: 0 16px;
    border-radius: 14px;
}

.em-shelf__nav {
    width: 44px;
    padding: 0;
    border-radius: 999px;
}

.em-shelf__expand svg,
.em-shelf__nav svg {
    width: 16px;
    height: 16px;
    transition: transform .35s var(--emf-ease);
}

.em-shelf__expand:hover,
.em-shelf__nav:hover:not(:disabled) {
    border-color: var(--emf-accent-line);
    background: var(--emf-accent-faint);
}

.em-shelf__expand:hover svg {
    transform: translateX(3px);
}

.em-shelf__expand[aria-expanded="true"] svg {
    transform: rotate(-90deg);
}

.em-shelf__nav:active:not(:disabled) {
    transform: scale(.92);
}

.em-shelf__nav:disabled {
    opacity: .35;
    cursor: default;
}

.em-shelf.is-expanded .em-shelf__nav {
    opacity: 0;
    pointer-events: none;
}

.em-shelf__viewport {
    position: relative;
    min-width: 0;
    /* Hover lift and glow of the cards need room above and below the scroller. */
    margin: -16px -6px -28px;
}

.em-shelf__viewport.can-next {
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 72px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 72px), transparent);
}

.em-shelf__viewport.can-prev {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 72px);
    mask-image: linear-gradient(90deg, transparent, #000 72px);
}

.em-shelf__viewport.can-prev.can-next {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 72px, #000 calc(100% - 72px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 72px, #000 calc(100% - 72px), transparent);
}

.em-shelf__track {
    display: grid;
    grid-auto-columns: clamp(232px, calc((100% - 3 * 16px) / 4), 320px);
    grid-auto-flow: column;
    gap: 16px;
    padding: 16px 6px 28px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-behavior: smooth;
    scroll-padding-inline: 6px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.em-shelf__track::-webkit-scrollbar {
    display: none;
}

.em-shelf__item {
    display: flex;
    min-width: 0;
    scroll-snap-align: start;
}

.em-shelf__item > .em-store-card {
    flex: 1;
}

/* Opened into a grid: the cards wrap and come in again. */
.em-shelf.is-expanded .em-shelf__viewport {
    -webkit-mask-image: none;
    mask-image: none;
}

.em-shelf.is-expanded .em-shelf__track {
    grid-auto-flow: row;
    grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
    overflow: visible;
}

.em-shelf.is-expanding .em-shelf__item {
    animation: emf-rise .55s var(--emf-ease) calc(min(var(--em-shelf-index, 0), 12) * 35ms) backwards;
}

.em-shelf.is-spotted .em-shelf__title {
    animation: emf-spot 1.1s var(--emf-ease);
}

/* ================================================================== arsenal */

.em-front-arsenal {
    display: grid;
    grid-template-columns: minmax(380px, 500px) minmax(0, 1fr);
    align-items: start;
    gap: 22px;
}

@media (max-width: 1279px) {
    .em-front-arsenal {
        grid-template-columns: minmax(340px, 420px) minmax(0, 1fr);
    }
}

/* ----------------------------------------------------------------- showroom */

.em-room {
    position: sticky;
    top: calc(var(--site-header-bottom, 72px) + 92px);
    overflow: hidden;
    border: 1px solid var(--emf-line);
    border-radius: 26px;
    background: var(--em-card, var(--emf-raised));
}

/* No room for it under the bars: it scrolls with the page. */
@media (max-height: 820px) {
    .em-room {
        position: relative;
        top: auto;
    }
}

.em-room__panel {
    --em-accent: var(--em-card-accent, var(--emf-accent));
    --em-glow: var(--em-card-glow, var(--em-accent));
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, color-mix(in srgb, var(--em-card-wash, var(--em-accent)) 30%, transparent), transparent 55%);
}

.em-room__stage {
    position: relative;
    height: 340px;
    overflow: hidden;
    perspective: 1000px;
}

/* The Elysium mark lies flat under the card like a pedestal of light: its ring turns, the star turns back. */
.em-room__pedestal {
    position: absolute;
    left: 50%;
    bottom: 8px;
    width: 300px;
    height: 300px;
    margin-left: -150px;
    transform: rotateX(72deg);
    transform-origin: 50% 100%;
    pointer-events: none;
}

.em-room__pedestal::after {
    content: "";
    position: absolute;
    inset: -4%;
    border: 2px dashed color-mix(in srgb, var(--em-glow) 38%, transparent);
    border-radius: 50%;
    animation: emf-spin 60s linear infinite reverse;
}

.em-room__halo {
    position: absolute;
    inset: -14%;
    border-radius: 50%;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--em-glow) 48%, transparent), transparent 70%);
    animation: emf-breathe 3.4s ease-in-out infinite;
}

.em-room__mark.em-emblem {
    --em-emblem-size: 100%;
    position: absolute;
    inset: 0;
}

.em-room__mark .em-emblem__ring {
    animation: emf-spin 16s linear infinite;
}

.em-room__mark .em-emblem__star {
    opacity: .85;
    animation: emf-spin 40s linear infinite reverse;
}

/* A product's own logo lies in the pedestal like the mark: inside the turning ring, still, lit by the halo. */
.em-room__logo {
    position: absolute;
    inset: 10%;
    width: 80%;
    height: 80%;
    object-fit: contain;
    filter: drop-shadow(0 0 16px color-mix(in srgb, var(--em-glow) 55%, transparent));
}

/* No pedestal: the card floats lower over the light it casts on the floor, with a dark core where it would land;
   the pool tightens as the card rises and spreads as it sinks. */
.em-room__panel[data-em-pedestal="none"] .em-room__stage {
    height: 320px;
}

.em-room__shadow {
    position: absolute;
    left: 50%;
    bottom: 10px;
    width: min(70%, 340px);
    height: 40px;
    border-radius: 50%;
    background:
        radial-gradient(closest-side, rgba(0, 0, 0, .7) 20%, transparent 62%),
        radial-gradient(closest-side, color-mix(in srgb, var(--em-glow) 46%, transparent), color-mix(in srgb, var(--em-glow) 12%, transparent) 70%, transparent);
    translate: -50% 0;
    animation: emf-shadow 4.2s ease-in-out infinite;
    pointer-events: none;
}

/* Sparks rise from the pedestal behind the card. */
.em-room__sparks i {
    position: absolute;
    bottom: 52px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--em-glow) 35%, #fff);
    box-shadow: 0 0 8px var(--em-glow);
    opacity: 0;
    animation: emf-spark 3.4s linear infinite;
    pointer-events: none;
}

.em-room__sparks i:nth-child(1) { left: 31%; }
.em-room__sparks i:nth-child(2) { left: 45%; animation-delay: .8s; }
.em-room__sparks i:nth-child(3) { left: 61%; animation-delay: 1.6s; }
.em-room__sparks i:nth-child(4) { left: 70%; animation-delay: 2.4s; }
.em-room__sparks i:nth-child(5) { left: 38%; width: 3px; height: 3px; animation-delay: 2s; }

/* The card floats over the pedestal. The float moves the wrapper; the frame only tilts on hover, without a
   scale, so the picture is never resampled and stays sharp once the pointer leaves. */
.em-room__float {
    position: absolute;
    top: 22px;
    left: 0;
    right: 0;
    width: min(78%, 380px);
    margin-inline: auto;
    animation: emf-float 4.2s ease-in-out infinite;
}

.em-room__frame {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--em-card-edge, var(--em-accent)) 45%, transparent);
    border-radius: 20px;
    background: color-mix(in srgb, var(--em-card-wash, var(--em-surface, #0b0f14)) 80%, #000);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, .3),
        0 26px 50px -18px rgba(0, 0, 0, .8),
        0 0 46px -10px color-mix(in srgb, var(--em-glow) 70%, transparent);
    transition: transform .7s var(--emf-ease), box-shadow .5s ease, filter .5s ease;
}

/* Under the pointer the card does what the owner picked (MarketplaceCardHover, data-em-card-hover), the same as
   the picture in the product window; a shine crosses it in all but "none". */
.em-room__panel[data-em-card-hover="tilt"] .em-room__stage:hover .em-room__frame {
    transform: perspective(900px) rotateY(-7deg) rotateX(4deg);
}

/* marketplace-fx.js writes where the pointer is, from -1 to 1 across the stage. */
.em-room__panel[data-em-card-hover="follow"] .em-room__frame {
    transition: transform .2s ease-out;
}

.em-room__panel[data-em-card-hover="follow"] .em-room__stage:hover .em-room__frame {
    transform: perspective(900px) rotateY(calc(var(--em-tilt-x, 0) * 9deg)) rotateX(calc(var(--em-tilt-y, 0) * -6deg));
}

.em-room__panel[data-em-card-hover="lift"] .em-room__stage:hover .em-room__frame {
    transform: translateY(-8px);
}

.em-room__panel[data-em-card-hover="glow"] .em-room__stage:hover .em-room__frame {
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--em-glow) 70%, transparent),
        0 26px 50px -18px rgba(0, 0, 0, .8),
        0 0 70px -6px var(--em-glow);
    filter: brightness(1.06);
}

.em-room__panel[data-em-card-hover="none"] .em-room__shine {
    display: none;
}

.em-room__frame .em-store-picture {
    height: 100%;
}

.em-room__frame .em-store-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.em-room__shine {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .16) 48%, transparent 60%);
    transform: translateX(-120%);
    pointer-events: none;
}

.em-room__stage:hover .em-room__shine {
    transform: translateX(120%);
    transition: transform .9s var(--emf-ease);
}

.em-room__flags {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 12px;
    right: 62px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Favourites: a round button in the picture's corner. */
.em-front .em-room__heart {
    z-index: 3;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border-color: rgba(255, 255, 255, .2);
    background: rgba(9, 12, 16, .62);
    color: #fff;
    transition: transform .25s var(--emf-spring), color .16s ease, border-color .16s ease, background-color .16s ease;
}

.em-front .em-room__heart:hover {
    transform: scale(1.08);
}

.em-front .em-room__heart svg {
    width: 19px;
    height: 19px;
}

.em-room__info {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 2px 24px 24px;
}

/* The picked product comes in: the picture from the right, the copy line by line. */
.em-room__panel.is-entering .em-room__float {
    animation: emf-swap .7s var(--emf-ease) backwards, emf-float 4.2s ease-in-out .7s infinite;
}

.em-room__panel.is-entering .em-room__info > * {
    animation: emf-rise .55s var(--emf-ease) backwards;
}

.em-room__panel.is-entering .em-room__info > :nth-child(2) { animation-delay: 60ms; }
.em-room__panel.is-entering .em-room__info > :nth-child(3) { animation-delay: 120ms; }
.em-room__panel.is-entering .em-room__info > :nth-child(4) { animation-delay: 180ms; }
.em-room__panel.is-entering .em-room__info > :nth-child(5) { animation-delay: 240ms; }
.em-room__panel.is-entering .em-room__info > :nth-child(n + 6) { animation-delay: 300ms; }

.em-room__cat {
    color: var(--em-accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.em-front .em-room__name {
    margin: 0;
    color: var(--emf-text);
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -.035em;
    line-height: 1.04;
    overflow-wrap: anywhere;
}

.em-front .em-room__text {
    margin: 0;
    color: var(--emf-soft);
    font-size: 14px;
    line-height: 1.55;
}

.em-room__feat {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 2px 0 0;
    padding: 0;
    list-style: none;
}

/* The chip itself is .em-perk-chip (marketplace-store.css); the showroom gives it the page's own lines. */
.em-room__feat .em-perk-chip {
    border-color: var(--emf-line-soft);
    background: color-mix(in srgb, var(--background, #0b0f14) 40%, transparent);
    color: var(--emf-soft);
}

.em-room__feat .em-perk-chip.is-highlight {
    border-color: color-mix(in srgb, var(--em-perk-color, var(--em-accent)) 40%, transparent);
    color: var(--emf-text);
}

.em-room__owned {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--em-accent);
    font-size: 12px;
    font-weight: 700;
}

.em-room__owned svg {
    width: 16px;
    height: 16px;
}

/* Price on the left, whether it can be bought on the right; the buttons get a row of their own. */
.em-room__buy {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px 14px;
    margin-top: 4px;
    padding-top: 16px;
    border-top: 1px solid var(--emf-line);
}

.em-room__price {
    display: grid;
    gap: 4px;
}

.em-room__price strong {
    color: var(--em-accent);
    font-size: 34px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.03em;
    line-height: 1;
    text-shadow: 0 0 26px color-mix(in srgb, var(--em-glow) 40%, transparent);
}

.em-room__price .em-cur {
    margin-left: 3px;
    color: var(--emf-muted);
    font-size: 17px;
}

.em-room__price s {
    color: var(--emf-muted);
    font-size: 13px;
    font-weight: 700;
}

.em-room__state {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}

.em-room__stock {
    --em-dot: 8px;
    --em-dot-x: 11px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    padding: 5px 12px 5px 11px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--em-dot-color, var(--em-accent)) 12%, transparent);
    color: color-mix(in srgb, var(--em-dot-color, var(--em-accent)) 62%, #fff);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.2;
}

.em-room__stock::before {
    content: "";
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--em-dot-color, var(--em-accent));
}

.em-room__actions {
    display: flex;
    gap: 8px;
}

.em-room__actions .em-store-button {
    min-height: 48px;
    padding-inline: 18px;
    border-radius: 14px;
}

.em-room__cta {
    flex: 1;
}

/* ---------------------------------------------------------------- inventory */

.em-inv {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.em-inv__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.em-inv__heading {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.em-front .em-inv__title {
    margin: 0;
    color: var(--emf-text);
    font-size: 24px;
    font-weight: 850;
    letter-spacing: -.03em;
}

.em-inv__count {
    color: var(--emf-muted);
    font-size: 13px;
    font-weight: 600;
}

.em-inv__group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.em-front .em-inv__name {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--emf-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.em-inv__name::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--emf-line);
}

/* As many tiles as fit without cutting their names short. */
.em-inv__tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 12px;
}

.em-tile {
    --em-accent: var(--em-card-accent, var(--emf-accent));
    --em-glow: var(--em-card-glow, var(--em-accent));
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--emf-line);
    border-radius: 16px;
    background: var(--em-card, var(--emf-raised));
    color: var(--emf-text);
    text-decoration: none;
    transition:
        transform .35s var(--emf-ease),
        border-color .3s ease,
        box-shadow .35s var(--emf-ease);
}

.em-front-group .em-tile {
    animation: emf-tile-in .5s var(--emf-ease) calc(var(--emf-later) + min(var(--em-tile-index, 0), 8) * 40ms) backwards;
}

/* Sorted tiles move to their new places (marketplace-storefront-page.js) instead of coming in again. */
.em-inv__group.is-sorted .em-tile {
    animation: none;
}

.em-inv__group.is-entering .em-tile {
    animation: emf-tile-in .45s var(--emf-ease) calc(min(var(--em-tile-index, 0), 8) * 35ms) backwards;
}

.em-tile:hover {
    color: var(--emf-text);
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--em-accent) 45%, var(--emf-line));
}

.em-tile.is-active {
    border-color: var(--em-accent);
    box-shadow: 0 0 0 1px var(--em-accent), 0 18px 40px -22px var(--em-glow);
}

.em-tile__art {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: color-mix(in srgb, var(--em-card-wash, var(--em-surface, #0b0f14)) 80%, #000);
}

.em-tile__art .em-store-picture {
    height: 100%;
    transition: filter .35s ease;
}

.em-tile__art .em-store-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hovering lights the picture without moving it: a zoom would cut the artwork's lettering and edges and leave
   the picture soft, so a gleam runs across it instead. */
.em-tile__art::after {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0;
    background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, .16) 48%, rgba(255, 255, 255, .05) 56%, transparent 68%);
    transform: translateX(-110%);
    pointer-events: none;
}

.em-tile:hover .em-tile__art::after {
    transform: translateX(110%);
    transition: transform .9s var(--emf-ease);
}

.em-tile:hover .em-tile__art .em-store-picture {
    filter: brightness(1.08) saturate(1.06);
}

/* The product's tags in the picture's top left corner, clear of the picked mark on the right. */
.em-tile__tags {
    position: absolute;
    z-index: 3;
    top: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    gap: 4px;
    min-width: 0;
    pointer-events: none;
}

/* One row: a long custom label gives way with an ellipsis, "+N" and the discount keep their size. */
.em-tile__tags .em-flag {
    flex: 0 1 auto;
    min-width: 0;
    padding: 4px 7px;
    font-size: 9.5px;
}

.em-tile__tags .em-flag > span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.em-tile__tags :is(.em-flag--sale, .em-tag--more, .is-icon) {
    flex: none;
}

/* The picked tile shows its check in the top right corner; the tags make room for it. */
.em-tile.is-active .em-tile__tags {
    right: 42px;
}

/* The picked mark lies above the picture (which sits on its own layer), always. */
.em-tile__check {
    position: absolute;
    z-index: 4;
    top: 8px;
    right: 8px;
    display: none;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--em-accent);
    color: var(--em-on-accent, #0b0f14);
    box-shadow: 0 0 0 3px rgba(9, 12, 16, .55), 0 6px 16px -6px var(--em-glow);
}

.em-tile__check svg {
    width: 13px;
    height: 13px;
}

.em-tile.is-active .em-tile__check {
    display: grid;
    animation: emf-pop .35s var(--emf-spring);
}

.em-tile__body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px 12px 12px;
}

.em-tile__body b {
    overflow: hidden;
    font-size: 13px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.em-tile__price {
    color: var(--em-accent);
    font-size: 14px;
    font-weight: 850;
}

.em-tile__price .em-cur {
    margin-left: 2px;
    color: var(--emf-muted);
    font-size: 11px;
}

/* The colour strip of the product's palette, like a rarity line. */
.em-tile__rarity {
    height: 3px;
    margin-top: auto;
    background: var(--em-accent);
    box-shadow: 0 0 12px var(--em-glow);
}

.em-tile.is-sold-out .em-tile__art {
    filter: grayscale(.7);
}

/* =================================================================== offers */

/* The offers above the arsenal: a deals showcase, a fan of cards or a ticker (storefront/offers.blade.php). */
.em-offers {
    position: relative;
    margin-bottom: 22px;
}

.em-offer,
.em-offers__pick,
.em-fan,
.em-tick {
    --em-accent: var(--em-card-accent, var(--emf-accent));
    --em-glow: var(--em-card-glow, var(--em-accent));
}

/* --------------------------------------------------------------- showcase */

/* The stage is its own layer: its rounded clip stays the same while the slides fade over each other, and
   nothing outside makes it repaint. */
.em-offers__stage {
    position: relative;
    display: grid;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--emf-accent) 26%, var(--emf-line));
    border-radius: 24px;
    background: var(--emf-raised);
    isolation: isolate;
    transform: translateZ(0);
}

/* The slides lie on top of each other; the stage is as tall as the tallest. */
.em-offer {
    position: relative;
    grid-area: 1 / 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    min-height: 320px;
    visibility: hidden;
    opacity: 0;
    transition: opacity .5s ease, visibility 0s linear .5s;
}

.em-offer.is-active {
    z-index: 1;
    visibility: visible;
    opacity: 1;
    transition: opacity .5s ease;
}

/* The slide is lit by its product's palette. No blur filter: a filter as large as the slide was redrawn with
   every repaint around it, and its edges shimmered along the border. A picture's own tiny placeholder (LQIP),
   when there is one, is already soft when stretched and lies over the light as is. */
.em-offer {
    background:
        radial-gradient(70% 120% at 78% 45%, color-mix(in srgb, var(--em-glow) 30%, transparent), transparent 72%),
        radial-gradient(60% 90% at 8% 100%, color-mix(in srgb, var(--em-accent) 12%, transparent), transparent 70%),
        var(--emf-raised);
}

.em-offer__bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(9, 12, 16, .6), rgba(9, 12, 16, .6)),
        var(--em-offer-bg) center / cover no-repeat;
    opacity: .9;
    pointer-events: none;
}

.em-offer::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(9, 12, 16, .5), transparent 62%);
    pointer-events: none;
}

.em-offer__copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    padding: 32px 20px 32px 40px;
}

.em-offer__eyebrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--em-accent);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.em-offer__eyebrow i {
    padding: 3px 9px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--em-accent) 22%, transparent);
    color: var(--emf-text);
    font-style: normal;
    letter-spacing: 0;
    text-transform: none;
}

.em-offer__eyebrow i.is-sale {
    background: var(--em-fx-danger, #ef6a6a);
    color: #fff;
}

.em-front .em-offer__title {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--emf-text);
    font-size: clamp(26px, 2.6vw, 38px);
    font-weight: 900;
    letter-spacing: -.02em;
    line-height: 1.06;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.em-front .em-offer__text {
    display: -webkit-box;
    max-width: 440px;
    margin: 0;
    overflow: hidden;
    color: var(--emf-soft);
    font-size: 14px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.em-offer__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
}

.em-offer__price b {
    color: var(--em-accent);
    font-size: 30px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.02em;
    line-height: 1.1;
}

.em-offer__price .em-cur {
    margin-left: 3px;
    color: var(--emf-muted);
    font-size: 16px;
}

.em-offer__price s {
    color: var(--emf-muted);
    font-size: 15px;
    font-weight: 700;
}

.em-offer__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

/* The call to action catches the light under the pointer (not on its own: a shine running all the time kept
   the slide repainting). */
.em-front .em-offer__cta {
    min-height: 46px;
    padding-inline: 20px;
    border-radius: 14px;
    background:
        linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%) 160% 0 / 250% 100% no-repeat,
        var(--em-accent);
    box-shadow: 0 16px 36px -18px var(--em-glow);
    font-size: 13.5px;
    transition: background-position 0s, filter .16s ease, transform .12s ease, box-shadow .16s ease;
}

.em-front .em-offer__cta:hover {
    background-position: -60% 0, 0 0;
    transition: background-position .9s var(--emf-ease), filter .16s ease, transform .12s ease, box-shadow .16s ease;
}

.em-timer {
    display: flex;
    gap: 4px;
}

.em-timer__cell {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 3px;
    min-width: 46px;
    height: 46px;
    padding: 0 6px;
    border: 1px solid var(--emf-line);
    border-radius: 12px;
    background: rgba(9, 12, 16, .62);
}

.em-timer__cell b {
    display: block;
    color: var(--emf-text);
    font-size: 17px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.em-timer__cell b.is-tick {
    animation: emf-tick .35s var(--emf-ease);
}

.em-timer__cell small {
    color: var(--emf-muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .06em;
    line-height: 1;
    text-transform: uppercase;
}

.em-timer.is-over {
    opacity: .55;
}

.em-offer__art {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    min-width: 0;
    padding: 24px 26px 96px 0;
}

/* As tall as the room above the picks allows, so the picks never cover the picture. */
.em-offer__art .em-store-picture {
    width: min(100%, 320px);
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 30px 60px -30px #000, 0 0 50px -24px var(--em-glow);
}

.em-offer__art .em-store-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* A slide that comes in: the copy line by line, the picture from the right. */
.em-offer.is-entering .em-offer__copy > * {
    animation: emf-rise .55s var(--emf-ease) backwards;
}

.em-offer.is-entering .em-offer__copy > :nth-child(2) { animation-delay: 50ms; }
.em-offer.is-entering .em-offer__copy > :nth-child(3) { animation-delay: 100ms; }
.em-offer.is-entering .em-offer__copy > :nth-child(4) { animation-delay: 150ms; }
.em-offer.is-entering .em-offer__copy > :nth-child(5) { animation-delay: 200ms; }

.em-offer.is-entering .em-offer__art .em-store-picture {
    animation: emf-art-in .8s var(--emf-ease) backwards;
}

/* The picks over the picture's corner; the picked one's line runs out and the next one comes. */
.em-offers__picks {
    position: absolute;
    z-index: 3;
    right: 22px;
    bottom: 16px;
    display: flex;
    gap: 8px;
    max-width: calc(52% - 22px);
}

.em-offers__pick {
    position: relative;
    display: grid;
    flex: 0 1 132px;
    gap: 2px;
    min-width: 0;
    padding: 8px 10px 10px;
    overflow: hidden;
    border: 1px solid var(--emf-line);
    border-radius: 12px;
    background: rgba(9, 12, 16, .72);
    color: var(--emf-text);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color .2s ease, transform .25s var(--emf-ease);
}

.em-offers__pick:hover {
    transform: translateY(-2px);
}

.em-offers__pick.is-active {
    border-color: color-mix(in srgb, var(--em-accent) 60%, transparent);
}

.em-offers__pick b,
.em-offers__pick small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.em-offers__pick b {
    font-size: 12px;
    font-weight: 800;
}

.em-offers__pick small {
    color: var(--emf-muted);
    font-size: 11px;
    font-weight: 700;
}

.em-offers__line {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: var(--em-accent, var(--emf-accent));
    transform: scaleX(0);
    transform-origin: left;
}

.em-offers__pick.is-active .em-offers__line,
.em-offers__dot.is-active .em-offers__line {
    transform: scaleX(1);
}

.em-offers.is-playing :is(.em-offers__pick, .em-offers__dot).is-active .em-offers__line {
    transform: scaleX(0);
    animation: emf-progress var(--em-offers-delay, 7s) linear forwards;
}

.em-offers.is-paused :is(.em-offers__pick, .em-offers__dot).is-active .em-offers__line {
    animation-play-state: paused;
}

/* -------------------------------------------------------------------- fan */

.em-offers__fan {
    position: relative;
    height: 300px;
    overflow: hidden;
    border: 1px solid var(--emf-line);
    border-radius: 24px;
    background:
        radial-gradient(60% 80% at 50% 62%, color-mix(in srgb, var(--emf-accent) 13%, transparent), transparent),
        var(--emf-raised);
    perspective: 1100px;
}

/* The cards stand in a row by their place (--em-fan: 0 in the middle, −1 left, 1 right); the side ones turn to
   the middle and step back. The middle one stays flat and at its own size, so its picture is sharp. */
.em-fan {
    position: absolute;
    top: 24px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    width: min(330px, 68%);
    margin-inline: auto;
    overflow: hidden;
    border: 1px solid var(--emf-line);
    border-radius: 20px;
    background: var(--em-card, var(--emf-raised));
    box-shadow: 0 30px 60px -30px #000;
    opacity: 0;
    filter: brightness(.55);
    transform: translateX(calc(var(--em-fan, 0) * 92%)) translateZ(-160px) rotateY(calc(var(--em-fan, 0) * -28deg));
    pointer-events: none;
    transition: transform .7s var(--emf-ease), opacity .5s ease, filter .5s ease, border-color .3s ease;
}

.em-fan.is-near {
    z-index: 1;
    opacity: .78;
    transform: translateX(calc(var(--em-fan, 0) * 92%)) translateZ(-120px) rotateY(calc(var(--em-fan, 0) * -28deg));
    cursor: pointer;
    pointer-events: auto;
}

.em-fan.is-active {
    z-index: 2;
    border-color: color-mix(in srgb, var(--em-accent) 50%, transparent);
    opacity: 1;
    filter: none;
    transform: none;
    box-shadow: 0 30px 60px -30px #000, 0 0 50px -26px var(--em-glow);
    pointer-events: auto;
}

.em-fan__hit {
    position: absolute;
    z-index: 4;
    inset: 0;
    padding: 0;
    border: 0;
    border-radius: inherit;
    background: transparent;
    cursor: pointer;
}

.em-fan__art {
    position: relative;
    display: block;
    height: 150px;
    overflow: hidden;
    background: color-mix(in srgb, var(--em-card-wash, var(--em-surface, #0b0f14)) 80%, #000);
}

.em-fan__art .em-store-picture {
    height: 100%;
}

.em-fan__art .em-store-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.em-fan__badge {
    position: absolute;
    z-index: 3;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--em-accent) 85%, #000);
    color: var(--em-on-accent, #0b0f14);
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
}

.em-fan__badge.is-sale {
    background: var(--em-fx-danger, #ef6a6a);
    color: #fff;
}

.em-fan__body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px 14px;
}

.em-fan__name {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.em-fan__name b,
.em-fan__name small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.em-fan__name b {
    color: var(--emf-text);
    font-size: 15px;
    font-weight: 900;
}

.em-fan__name small {
    color: var(--emf-muted);
    font-size: 11px;
    font-weight: 700;
}

.em-fan__price {
    display: grid;
    justify-items: end;
    color: var(--em-accent);
    font-size: 16px;
    font-weight: 900;
    white-space: nowrap;
}

.em-fan__price s {
    color: var(--emf-muted);
    font-size: 11px;
    font-weight: 700;
}

.em-fan__price .em-cur {
    margin-left: 2px;
    color: var(--emf-muted);
    font-size: 12px;
}

.em-offers__dots {
    position: absolute;
    z-index: 5;
    left: 0;
    right: 0;
    bottom: 14px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.em-offers__dot {
    position: relative;
    width: 10px;
    height: 10px;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 5px;
    background: color-mix(in srgb, var(--emf-text) 25%, transparent);
    cursor: pointer;
    transition: width .35s var(--emf-ease), background-color .3s ease;
}

.em-offers__dot.is-active {
    width: 34px;
    background: color-mix(in srgb, var(--emf-accent) 30%, transparent);
}

.em-offers__dot .em-offers__line {
    top: 0;
    height: auto;
    background: var(--emf-accent);
}

/* ----------------------------------------------------------------- ticker */

.em-offers__ticker {
    overflow: hidden;
    padding: 14px 0;
    border: 1px solid var(--emf-line);
    border-radius: 24px;
    background: var(--emf-raised);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

/* Two copies of the line; moving by half of it brings the second exactly where the first was. */
.em-offers__track {
    display: flex;
    gap: 14px;
    width: max-content;
    padding-inline: 7px;
    animation: emf-ticker var(--em-ticker-time, 30s) linear infinite;
}

.em-offers__ticker:hover .em-offers__track,
.em-offers__ticker:focus-within .em-offers__track {
    animation-play-state: paused;
}

.em-tick {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 330px;
    padding: 10px;
    border: 1px solid var(--emf-line);
    border-radius: 18px;
    background: color-mix(in srgb, var(--emf-text) 3%, var(--emf-raised));
    color: var(--emf-text);
    font: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: transform .3s var(--emf-ease), border-color .2s ease;
}

.em-tick:hover {
    color: var(--emf-text);
    border-color: color-mix(in srgb, var(--em-accent) 50%, transparent);
    transform: translateY(-3px);
}

.em-tick__art {
    flex: none;
    width: 96px;
    height: 64px;
    overflow: hidden;
    border-radius: 12px;
    background: color-mix(in srgb, var(--em-card-wash, var(--em-surface, #0b0f14)) 80%, #000);
}

.em-tick__art .em-store-picture {
    height: 100%;
}

.em-tick__art .em-store-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.em-tick__body {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.em-tick__body b,
.em-tick__body small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.em-tick__body b {
    font-size: 14px;
    font-weight: 900;
}

.em-tick__body small {
    color: var(--emf-muted);
    font-size: 11.5px;
    font-weight: 700;
}

.em-tick__body em {
    justify-self: start;
    margin-top: 3px;
    padding: 3px 8px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--em-accent) 16%, transparent);
    color: color-mix(in srgb, var(--em-accent) 70%, #fff);
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
}

.em-tick__body em.is-sale {
    background: color-mix(in srgb, var(--em-fx-danger, #ef6a6a) 16%, transparent);
    color: #ffb3b3;
}

.em-tick__price {
    margin-left: auto;
    padding-right: 6px;
    color: var(--em-accent);
    font-size: 16px;
    font-weight: 900;
    white-space: nowrap;
}

.em-tick__price .em-cur {
    margin-left: 2px;
    color: var(--emf-muted);
    font-size: 12px;
}

/* ===================================================== recommended card ring */

/* The recommended card in the showcase and on the shelves: a light running round its border. */
.em-front .em-store-card.is-featured::before {
    content: "";
    position: absolute;
    z-index: 6;
    inset: -1px;
    padding: 1.5px;
    border-radius: inherit;
    background: conic-gradient(from var(--emf-angle, 0deg), transparent 0 60%, var(--em-accent) 78%, color-mix(in srgb, var(--em-accent) 30%, #fff) 82%, transparent 95%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    animation: emf-orbit 4.5s linear infinite;
    pointer-events: none;
}

/* ==================================================================== ladder */

/* The arsenal's sections one under another: ladders and the showroom with its tiles. A hidden one leaves no gap. */
.em-front-stack {
    display: flex;
    flex-direction: column;
    gap: 44px;
}

/* The picked tier's colour, carried by the band of light; registered so the colour travels with the band. */
@property --em-ladder-accent {
    syntax: '<color>';
    inherits: true;
    initial-value: transparent;
}

/* A category as a tier ladder (storefront/ladder.blade.php): the picked tier's panel on the left, the tiers in one
   row on the same floor, the comparison of their perks under them in the same columns. */
.em-ladder {
    --em-ladder-gap: 14px;
    --em-ladder-cols: minmax(260px, 1.1fr) repeat(var(--em-ladder-n, 3), minmax(0, 1fr));
    display: grid;
    gap: 18px;
    min-width: 0;
    scroll-margin-top: var(--emf-offset);
}

.em-ladder__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 20px;
}

.em-front .em-ladder__title {
    margin: 0;
    color: var(--emf-text);
    font-size: 24px;
    font-weight: 850;
    letter-spacing: -.03em;
    line-height: 1.15;
}

.em-front .em-ladder__text {
    max-width: 64ch;
    margin: 0;
    color: var(--emf-muted);
    font-size: 13px;
    font-weight: 600;
}

/* One grid for the panel, the cards and the rows: the table's own box steps aside (display: contents) so every row
   lines up with the cards above it, and the band of light is placed against this grid. */
.em-ladder__body {
    position: relative;
    display: grid;
    grid-template-columns: var(--em-ladder-cols);
    column-gap: var(--em-ladder-gap);
}

.em-ladder__table {
    display: contents;
}

.em-ladder__panels {
    grid-column: 1;
    grid-row: 1;
    align-self: end;
    min-width: 0;
    margin-bottom: 18px;
}

.em-ladder__steps {
    position: relative;
    z-index: 1;
    grid-column: 2 / -1;
    grid-row: 1;
    display: grid;
    grid-template-columns: repeat(var(--em-ladder-n, 3), minmax(0, 1fr));
    align-items: end;
    column-gap: var(--em-ladder-gap);
    padding: 14px 6px 22px;
    border-bottom: 1px solid var(--emf-line);
}

.em-ladder__rows {
    position: relative;
    z-index: 1;
    grid-column: 1 / -1;
    grid-row: 2;
}

/* ----------------------------------------------------------------- the band */

.em-ladder__light {
    position: absolute;
    z-index: 0;
    top: 0;
    bottom: -6px;
    left: 0;
    width: 0;
    border: 1px solid color-mix(in srgb, var(--em-ladder-accent) 30%, transparent);
    border-radius: 20px;
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--em-ladder-accent) 13%, transparent),
        color-mix(in srgb, var(--em-ladder-accent) 4%, transparent) 46%,
        color-mix(in srgb, var(--em-ladder-accent) 7%, transparent)
    );
    opacity: 0;
    pointer-events: none;
    transition:
        transform .38s cubic-bezier(.77, 0, .175, 1),
        opacity .3s ease,
        --em-ladder-accent .28s ease;
}

.em-ladder__light.is-placed {
    opacity: 1;
}

.em-ladder__light.is-instant {
    transition: none;
}

/* ----------------------------------------------------------------- the panel */

.em-ladder__panel {
    --em-accent: var(--em-card-accent, var(--emf-accent));
    --em-glow: var(--em-card-glow, var(--em-accent));
    display: grid;
    gap: 14px;
    padding: 20px;
    border: 1px solid var(--emf-line);
    border-radius: 22px;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--em-card-wash, var(--em-accent)) 26%, transparent), transparent 62%),
        var(--em-card, var(--emf-raised));
}

.em-ladder__panel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.em-front .em-ladder__name {
    min-width: 0;
    margin: 0;
    color: var(--emf-text);
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -.035em;
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.em-front .em-ladder__heart {
    position: relative;
    top: auto;
    right: auto;
    flex: none;
    width: 40px;
    height: 40px;
    border-color: var(--emf-line);
    background: color-mix(in srgb, var(--background, #0b0f14) 40%, transparent);
}

.em-front .em-ladder__heart svg {
    width: 19px;
    height: 19px;
}

.em-ladder__field {
    display: grid;
    gap: 8px;
}

.em-ladder__label-text {
    color: var(--emf-muted);
    font-size: 12px;
    font-weight: 700;
}

.em-front .em-ladder__choices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
    gap: 6px;
}

.em-front .em-ladder__choices .em-choice {
    min-height: 44px;
    padding: 7px 10px;
    border-radius: 12px;
}

.em-front .em-ladder__choices .em-choice strong {
    font-size: 12.5px;
}

.em-front .em-ladder__choices .em-choice span {
    color: var(--emf-muted);
    font-size: 11.5px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.em-front .em-ladder__choices .em-choice.is-on span {
    color: color-mix(in srgb, var(--em-on-accent, #0b0f14) 72%, var(--em-accent));
}

.em-ladder__buy {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px 14px;
    padding-top: 14px;
    border-top: 1px solid var(--emf-line);
}

.em-ladder__price {
    display: grid;
    gap: 4px;
}

.em-ladder__price strong {
    display: inline-flex;
    align-items: baseline;
    color: var(--em-accent);
    font-size: 32px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.03em;
    line-height: 1.1;
    text-shadow: 0 0 26px color-mix(in srgb, var(--em-glow) 40%, transparent);
}

.em-ladder__price .em-cur {
    margin-left: 4px;
    color: var(--emf-muted);
    font-size: 16px;
    text-shadow: none;
}

.em-ladder__price s {
    color: var(--emf-muted);
    font-size: 13px;
    font-weight: 700;
}

.em-ladder__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.em-ladder__actions .em-store-button {
    flex: 1 1 0;
    min-height: 46px;
    padding-inline: 14px;
    border-radius: 13px;
    transition: filter .16s ease, transform .14s cubic-bezier(.23, 1, .32, 1), box-shadow .16s ease;
}

.em-ladder__actions .em-store-button:active:not(:disabled) {
    transform: scale(.97);
}

.em-ladder__actions .em-ladder__cta {
    flex-basis: 100%;
}

.em-ladder__panel .em-store-status:empty {
    display: none;
}

/* The picked tier comes in: the copy settles line by line, quickly; the old panel is gone at once. */
.em-ladder__panel.is-entering > * {
    animation: emf-ladder-in .26s cubic-bezier(.23, 1, .32, 1) backwards;
}

.em-ladder__panel.is-entering > :nth-child(2) { animation-delay: 30ms; }
.em-ladder__panel.is-entering > :nth-child(3) { animation-delay: 60ms; }
.em-ladder__panel.is-entering > :nth-child(4) { animation-delay: 90ms; }
.em-ladder__panel.is-entering > :nth-child(n + 5) { animation-delay: 120ms; }

/* ----------------------------------------------------------------- the tiers */

/* Every tier stands on the same floor; the picked one is lit, not lifted. */
.em-step {
    --em-accent: var(--em-card-accent, var(--emf-accent));
    --em-glow: var(--em-card-glow, var(--em-accent));
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid var(--emf-line);
    border-radius: 16px;
    background: var(--em-card, var(--emf-raised));
    box-shadow: 0 20px 36px -26px rgba(0, 0, 0, .9);
    color: var(--emf-text);
    text-decoration: none;
    transition:
        transform .14s cubic-bezier(.23, 1, .32, 1),
        border-color .28s ease,
        box-shadow .28s ease;
}

/* The pool of light the picked tier casts on the floor. */
.em-step::after {
    content: "";
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: -34px;
    height: 24px;
    border-radius: 50%;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--em-glow) 60%, transparent), transparent);
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s ease;
}

.em-step:active {
    transform: scale(.98);
}

.em-step.is-active {
    border-color: color-mix(in srgb, var(--em-accent) 72%, transparent);
    box-shadow: 0 20px 36px -26px rgba(0, 0, 0, .9), 0 0 34px -14px var(--em-glow);
}

.em-step.is-active::after {
    opacity: 1;
}

.em-step__art {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
    background: color-mix(in srgb, var(--em-card-wash, var(--em-surface, #0b0f14)) 80%, #000);
}

.em-step__art .em-store-picture {
    height: 100%;
}

.em-step__art .em-store-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(.74) saturate(.82);
    transition: filter .28s ease;
}

.em-step.is-active .em-step__art .em-store-picture img {
    filter: none;
}

@media (hover: hover) and (pointer: fine) {
    .em-step:not(.is-active):hover {
        border-color: color-mix(in srgb, var(--em-accent) 40%, var(--emf-line));
    }

    .em-step:not(.is-active):hover .em-step__art .em-store-picture img {
        filter: brightness(.92) saturate(.95);
    }
}

.em-step__tags {
    position: absolute;
    z-index: 2;
    top: 8px;
    left: 8px;
    right: 40px;
    display: flex;
    gap: 4px;
    min-width: 0;
    pointer-events: none;
}

.em-step__tags .em-flag {
    flex: 0 1 auto;
    min-width: 0;
    padding: 4px 7px;
    font-size: 9.5px;
}

.em-step__tags .em-flag > span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.em-step__tags :is(.em-flag--sale, .em-tag--more, .is-icon) {
    flex: none;
}

.em-step__owned {
    position: absolute;
    z-index: 2;
    top: 8px;
    right: 8px;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--em-accent);
    color: var(--em-on-accent, #0b0f14);
    box-shadow: 0 0 0 3px rgba(9, 12, 16, .55);
}

.em-step__owned svg {
    width: 12px;
    height: 12px;
}

.em-step__body {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 14px 14px;
}

.em-step__name {
    overflow: hidden;
    font-size: 14px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.em-step__price {
    color: var(--em-accent);
    font-size: 14px;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.em-step__price .em-cur {
    margin-left: 2px;
    color: var(--emf-muted);
    font-size: 11px;
}

.em-step.is-sold-out .em-step__art {
    filter: grayscale(.7);
}

/* ------------------------------------------------------------------ the rows */

.em-ladder__row {
    display: grid;
    grid-template-columns: var(--em-ladder-cols);
    align-items: center;
    column-gap: var(--em-ladder-gap);
    min-height: 50px;
    border-bottom: 1px solid var(--emf-line-soft);
}

.em-ladder__perk {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding-block: 8px;
    color: var(--emf-soft);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

.em-ladder__perk-title {
    min-width: 0;
    overflow-wrap: anywhere;
}

.em-ladder__icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--em-perk-color, var(--emf-accent)) 12%, transparent);
    color: var(--em-perk-color, var(--emf-accent));
}

.em-ladder__icon svg {
    width: 15px;
    height: 15px;
}

.em-ladder__cell {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    padding: 8px 4px;
    color: var(--emf-soft);
    font-size: 13px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    text-align: center;
    overflow-wrap: anywhere;
    transition: color .28s ease;
}

.em-ladder__cell svg {
    width: 15px;
    height: 15px;
    color: color-mix(in srgb, var(--em-card-accent, var(--emf-accent)) 80%, var(--emf-text));
}

.em-ladder__cell.is-no {
    color: color-mix(in srgb, var(--emf-text) 34%, transparent);
    font-weight: 600;
}

/* What this tier adds or changes against the one below. */
.em-ladder__cell:is(.is-new, .is-changed) {
    color: var(--em-card-accent, var(--emf-accent));
}

.em-ladder__cell.is-col:not(.is-new, .is-changed, .is-no) {
    color: var(--emf-text);
}

/* ------------------------------------------------------------------ the price */

/* The price rolls from one tier (or term) to the next, digit by digit (marketplace-storefront-page.js). */
.em-odo {
    display: inline-flex;
    white-space: nowrap;
}

.em-odo__col,
.em-odo__sym {
    display: inline-block;
    height: 1.1em;
    line-height: 1.1em;
}

.em-odo__col {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent);
}

.em-odo__strip {
    display: flex;
    flex-direction: column;
}

.em-odo__strip > span {
    display: block;
    height: 1.1em;
    text-align: center;
}

.em-odo__sym {
    white-space: pre;
}

/* ---------------------------------------------------------------- entrances */

.em-ladder__head,
.em-ladder__panels {
    animation: emf-rise .6s var(--emf-ease) var(--emf-base) backwards;
}

.em-step {
    animation: emf-tile-in .5s var(--emf-ease) calc(var(--emf-base) + min(var(--em-step-index, 0), 6) * 60ms) backwards;
}

.em-ladder__row {
    animation: emf-ladder-in .4s var(--emf-ease) calc(var(--emf-later) + min(var(--em-row-index, 0), 10) * 30ms) backwards;
}

/* A header tab brings the ladder back: it comes in again, without the page's delays. */
.em-ladder.is-entering :is(.em-ladder__head, .em-ladder__panels) {
    animation: emf-rise .5s var(--emf-ease) backwards;
}

.em-ladder.is-entering .em-step {
    animation: emf-tile-in .45s var(--emf-ease) calc(min(var(--em-step-index, 0), 6) * 50ms) backwards;
}

.em-ladder.is-entering .em-ladder__row {
    animation: emf-ladder-in .35s var(--emf-ease) calc(120ms + min(var(--em-row-index, 0), 10) * 25ms) backwards;
}

/* ------------------------------------------------------------------ narrower */

@media (max-width: 1023px) {
    .em-ladder {
        --em-ladder-cols: minmax(220px, 1fr) repeat(var(--em-ladder-n, 3), minmax(0, 1fr));
    }

    .em-front .em-ladder__name {
        font-size: 26px;
    }
}

/* On a phone the panel goes first, the tiers and the rows share the full width under it; a row's title takes a line
   of its own above the values. A ladder of many tiers scrolls sideways inside its table, never the page. */
@media (max-width: 820px) {
    .em-ladder {
        --em-ladder-gap: 8px;
        --em-ladder-cols: repeat(var(--em-ladder-n, 3), minmax(0, 1fr));
    }

    .em-ladder__body {
        display: block;
    }

    .em-ladder__panels {
        margin-bottom: 18px;
    }

    .em-ladder__panel {
        padding: 18px 16px;
    }

    .em-ladder__table {
        position: relative;
        display: block;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .em-ladder__table::-webkit-scrollbar {
        display: none;
    }

    .em-ladder__steps,
    .em-ladder__rows {
        min-width: calc(var(--em-ladder-n, 3) * 96px + (var(--em-ladder-n, 3) - 1) * 8px);
    }

    .em-ladder__steps {
        padding: 10px 4px 20px;
    }

    .em-step {
        border-radius: 13px;
    }

    .em-step__art {
        border-radius: 12px 12px 0 0;
    }

    .em-step__body {
        flex-direction: column;
        gap: 1px;
        padding: 9px 10px 10px;
    }

    .em-step__name,
    .em-step__price {
        font-size: 12.5px;
    }

    .em-step__tags {
        right: 34px;
    }

    .em-step__tags .em-flag {
        padding: 4px;
    }

    .em-step__tags .em-flag > span:not(.em-sr) {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .em-ladder__row {
        row-gap: 2px;
        padding-block: 6px;
    }

    .em-ladder__perk {
        grid-column: 1 / -1;
        padding-block: 4px 0;
        font-size: 12px;
    }

    .em-ladder__icon {
        width: 22px;
        height: 22px;
        border-radius: 7px;
    }

    .em-ladder__icon svg {
        width: 13px;
        height: 13px;
    }

    .em-ladder__cell {
        padding-block: 4px;
        font-size: 12.5px;
    }
}

/* =================================================================== responsive */

@media (max-width: 1023px) {
    .em-spotlight {
        grid-template-columns: minmax(0, 1fr);
    }

    .em-spotlight__picks {
        grid-auto-columns: minmax(220px, 1fr);
        grid-auto-flow: column;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .em-spotlight__pick:hover {
        transform: none;
    }

    .em-front-arsenal {
        grid-template-columns: minmax(0, 1fr);
    }

    .em-room {
        position: relative;
        top: auto;
    }
}

@media (max-width: 720px) {
    .em-spotlight__stage {
        min-height: 440px;
    }

    .em-spotlight__slide {
        align-items: end;
    }

    .em-spotlight__art {
        inset: 0 0 38%;
        -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
        mask-image: linear-gradient(180deg, #000 55%, transparent);
    }

    .em-spotlight__slide::before {
        background:
            radial-gradient(90% 60% at 50% 100%, color-mix(in srgb, var(--em-glow) 24%, transparent), transparent 70%),
            linear-gradient(180deg, transparent 30%, color-mix(in srgb, var(--background, #0b0f14) 88%, transparent) 62%);
    }

    .em-spotlight__body {
        max-width: none;
        padding: 22px 20px;
    }

    .em-shelf__track {
        grid-auto-columns: min(78%, 280px);
    }

    .em-shelf__expand span {
        display: none;
    }

    .em-shelf__expand {
        width: 44px;
        padding: 0;
        border-radius: 999px;
    }

    .em-offer {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
    }

    .em-offer__art {
        order: -1;
        padding: 16px 16px 0;
    }

    .em-offer__art .em-store-picture {
        width: 100%;
        max-height: 180px;
    }

    .em-offer__copy {
        padding: 16px 18px 96px;
    }

    .em-offer::after {
        background:
            radial-gradient(90% 50% at 50% 20%, color-mix(in srgb, var(--em-glow) 22%, transparent), transparent 70%),
            linear-gradient(180deg, transparent 30%, rgba(9, 12, 16, .5));
    }

    .em-front .em-offer__title {
        font-size: 26px;
    }

    .em-offer__price b {
        font-size: 26px;
    }

    .em-offers__picks {
        left: 12px;
        right: 12px;
        bottom: 12px;
        max-width: none;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .em-offers__pick {
        flex: 0 0 124px;
    }

    .em-offer__row {
        width: 100%;
    }

    .em-front .em-offer__cta {
        flex: 1 1 auto;
    }

    .em-offers__fan {
        height: 280px;
    }

    .em-fan__art {
        height: 130px;
    }

    .em-tick {
        width: 280px;
    }

    .em-room__stage {
        height: 290px;
    }

    .em-room__panel[data-em-pedestal="none"] .em-room__stage {
        height: 260px;
    }

    .em-room__pedestal {
        width: 250px;
        height: 250px;
        margin-left: -125px;
    }

    .em-room__float {
        top: 18px;
        width: min(84%, 380px);
    }

    .em-room__info {
        padding: 0 18px 20px;
    }

    .em-front .em-room__name {
        font-size: 28px;
    }

    .em-room__feat {
        grid-template-columns: minmax(0, 1fr);
    }

    /* The line under the price takes a row of its own and starts from the left like the price. */
    .em-room__buy {
        flex-direction: column;
        align-items: flex-start;
    }

    .em-room__state {
        justify-content: flex-start;
    }

    .em-room__actions {
        flex-wrap: wrap;
    }

    .em-room__actions .em-room__cta {
        flex: 1 1 100%;
        order: -1;
    }

    .em-room__actions .em-room__more,
    .em-room__actions .em-room__cart {
        flex: 1 1 0;
    }

    .em-inv__tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 479px) {
    .em-inv__sort,
    .em-inv__sort .em-select {
        flex: 1 1 100%;
        width: 100%;
    }
}

/* =================================================================== keyframes */

@property --emf-angle {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

@keyframes emf-ladder-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
}

@keyframes emf-rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes emf-pop {
    from {
        opacity: 0;
        transform: scale(.4) rotate(-20deg);
    }
}

@keyframes emf-blink {
    50% {
        opacity: .35;
    }
}

@keyframes emf-crumb {
    from {
        opacity: 0;
        transform: translateX(-6px);
    }
}

@keyframes emf-orbit {
    to {
        --emf-angle: 360deg;
    }
}

@keyframes emf-breathe {
    0%,
    100% {
        opacity: .65;
        transform: scale(.94);
    }

    50% {
        opacity: 1;
        transform: scale(1.06);
    }
}

@keyframes emf-float {
    0%,
    100% {
        translate: 0 -6px;
    }

    50% {
        translate: 0 6px;
    }
}

@keyframes emf-shadow {
    0%,
    100% {
        opacity: .7;
        scale: .88 1;
    }

    50% {
        opacity: 1;
        scale: 1;
    }
}

@keyframes emf-spin {
    to {
        rotate: 360deg;
    }
}

@keyframes emf-spark {
    0% {
        opacity: 0;
        transform: translateY(0);
    }

    15% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateY(-210px);
    }
}

@keyframes emf-swap {
    from {
        opacity: 0;
        filter: blur(8px);
        transform: translateX(48px) scale(.92);
    }
}

@keyframes emf-art-in {
    from {
        opacity: 0;
        transform: translateX(30px) scale(.96);
    }
}

@keyframes emf-tick {
    from {
        opacity: .3;
        transform: translateY(-35%);
    }
}

@keyframes emf-ticker {
    to {
        transform: translateX(-50%);
    }
}

@keyframes emf-tile-in {
    from {
        opacity: 0;
        transform: translateY(16px) scale(.95);
    }
}

@keyframes emf-drift {
    from {
        transform: scale(1.1) translateX(2%);
    }

    to {
        transform: scale(1.02) translateX(0);
    }
}

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

@keyframes emf-spot {
    0%,
    100% {
        color: var(--emf-text);
    }

    35% {
        color: var(--emf-accent);
        text-shadow: 0 0 22px color-mix(in srgb, var(--emf-accent) 60%, transparent);
    }
}

/* =================================================================== motion off */

html[data-animations="false"] .em-room__stage:hover .em-room__frame {
    transform: none !important;
}

html[data-animations="false"] .em-front *,
html[data-animations="false"] .em-front *::before,
html[data-animations="false"] .em-front *::after,
html[data-animations="false"] .em-front-header * {
    animation: none !important;
    transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .em-front *,
    .em-front *::before,
    .em-front *::after,
    .em-front-header * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .em-front-group.is-waiting * {
        opacity: 1 !important;
    }

    .em-room__stage:hover .em-room__frame {
        transform: none !important;
    }
}
