.store-page {
    min-height: 100vh;
}

.store-page.has-modal {
    overflow: hidden;
}

.site-nav .is-active {
    color: var(--ink);
}

.store-header-actions {
    gap: 0.65rem;
}

.store-header-link,
.store-cart-button,
.footer-action-link {
    border: 1px solid var(--line);
    background: transparent;
    color: var(--muted-2);
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition:
        transform 160ms ease,
        background 160ms ease,
        border-color 160ms ease,
        color 160ms ease,
        box-shadow 160ms ease;
}

.store-header-link,
.store-cart-button {
    min-height: 2.35rem;
    padding: 0 0.8rem;
}

.store-cart-button {
    border-color: var(--line-strong);
    color: var(--diamond-bright);
}

.store-cart-button span {
    display: inline-grid;
    place-items: center;
    min-width: 1.35rem;
    min-height: 1.35rem;
    margin-left: 0.35rem;
    background: rgba(111, 223, 208, 0.14);
    color: var(--ink);
}

.store-header-link:hover,
.store-header-link:focus-visible,
.store-cart-button:hover,
.store-cart-button:focus-visible {
    border-color: rgba(111, 223, 208, 0.5);
    background: rgba(111, 223, 208, 0.08);
    color: var(--ink);
    outline: none;
    transform: translateY(-1px);
    box-shadow: 0 0.75rem 1.4rem rgba(0, 0, 0, 0.18);
}

.store-header-link:active,
.store-cart-button:active {
    transform: translateY(0);
}

.store-cart-button.is-added span {
    animation: store-count-pop 420ms ease both;
}

.store-scroll-top {
    position: fixed;
    right: max(1.25rem, calc((100vw - var(--max)) / 2 + 1.25rem));
    bottom: 1.25rem;
    z-index: 70;
    display: grid;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    border: 1px solid var(--line-strong);
    background: rgba(14, 18, 22, 0.92);
    box-shadow: var(--shadow);
    color: var(--diamond-bright);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(0.75rem) scale(0.96);
    will-change: opacity, transform;
    transition:
        opacity 180ms ease,
        transform 180ms ease,
        background 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.store-scroll-top::before {
    content: "";
    width: 0.85rem;
    height: 0.85rem;
    border-top: 3px solid currentColor;
    border-left: 3px solid currentColor;
    transform: translateY(0.2rem) rotate(45deg);
}

.store-scroll-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.store-scroll-top:hover,
.store-scroll-top:focus-visible {
    border-color: var(--diamond-bright);
    background: rgba(21, 64, 58, 0.9);
    outline: none;
}

.store-scroll-top.is-visible:hover,
.store-scroll-top.is-visible:focus-visible {
    transform: translateY(-0.12rem) scale(1.02);
    box-shadow: 0 1.1rem 2rem rgba(0, 0, 0, 0.34);
}

.store-scroll-top.is-visible:active {
    transform: translateY(0) scale(0.98);
}

.footer-action-link {
    display: block;
    margin-top: 0.55rem;
    padding: 0;
    border: 0;
    text-align: left;
}

.store-shell {
    width: min(var(--max), calc(100% - 3rem));
    margin: 0 auto;
    padding: 4rem 0 5rem;
}

.store-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(21rem, 0.46fr);
    gap: 2rem;
    align-items: stretch;
    margin-bottom: 1.5rem;
}

.store-hero-copy,
.store-account-panel,
.store-status,
.store-activity-panel,
.store-product,
.store-drawer-panel,
.product-modal-panel,
.store-return-panel {
    border: 1px solid var(--line);
    background: rgba(14, 18, 22, 0.88);
    box-shadow: var(--shadow);
}

.store-hero-copy {
    position: relative;
    min-height: 23rem;
    padding: 2.4rem;
    overflow: hidden;
}

.store-hero-copy::after {
    content: "";
    position: absolute;
    right: -7rem;
    bottom: -8rem;
    width: 28rem;
    height: 28rem;
    opacity: 0.2;
    background:
        linear-gradient(90deg, rgba(111, 223, 208, 0.18) 1px, transparent 1px),
        linear-gradient(0deg, rgba(111, 223, 208, 0.14) 1px, transparent 1px);
    background-size: 2.1rem 2.1rem;
    transform: rotate(8deg);
}

.store-hero-copy h1 {
    position: relative;
    z-index: 1;
    max-width: 48rem;
    margin: 1rem 0;
    font-family: var(--font-display);
    font-size: clamp(4.4rem, 9vw, 8.5rem);
    font-weight: 400;
    line-height: 0.9;
    text-transform: uppercase;
}

.store-hero-copy > p:not(.mono-label) {
    position: relative;
    z-index: 1;
    max-width: 38rem;
    margin: 0;
    color: var(--muted-2);
    font-size: 1.08rem;
    line-height: 1.55;
}

.store-account-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.4rem;
}

.store-account-panel h2,
.store-drawer-header h2,
.product-modal-panel h2,
.store-return-panel h1 {
    margin: 0.55rem 0 0;
    font-family: var(--font-display);
    font-size: 2.35rem;
    font-weight: 400;
    line-height: 0.95;
    text-transform: uppercase;
}

.username-form label,
.cart-player-form label {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.username-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
}

.username-control input,
.cart-player-form input {
    min-width: 0;
    min-height: 2.65rem;
    padding: 0 0.85rem;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.035);
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 1rem;
    transition:
        border-color 160ms ease,
        background 160ms ease,
        box-shadow 160ms ease;
}

.cart-player-form input {
    width: 100%;
}

.username-control input:focus-visible,
.cart-player-form input:focus-visible {
    border-color: rgba(111, 223, 208, 0.58);
    background: rgba(111, 223, 208, 0.055);
    box-shadow: 0 0 0 3px rgba(111, 223, 208, 0.08);
    outline: none;
}

.cart-player-form input::placeholder {
    color: var(--muted);
    opacity: 0.76;
}

.store-form-message {
    min-height: 1.2rem;
    margin: 0.7rem 0 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.store-form-message[data-tone="error"],
.store-status[data-tone="error"] {
    color: #ff9b9b;
}

.store-form-message[data-tone="success"],
.store-status[data-tone="success"] {
    color: var(--green);
}

.store-form-message[data-tone="warn"],
.store-status[data-tone="warn"] {
    color: var(--gold);
}

.portal-button {
    width: 100%;
    margin-top: 1rem;
}

.store-status {
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    color: var(--muted-2);
    font-family: var(--font-mono);
    font-size: 0.78rem;
}

.store-unavailable {
    grid-column: 1 / -1;
    min-height: 16rem;
    padding: 2rem;
    border: 1px solid rgba(255, 155, 155, 0.32);
    background: rgba(32, 14, 16, 0.78);
    box-shadow: var(--shadow);
}

.store-unavailable h2 {
    max-width: 36rem;
    margin: 0.7rem 0;
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 400;
    line-height: 0.95;
    text-transform: uppercase;
}

.store-unavailable p:not(.mono-label) {
    margin: 0;
    color: var(--muted-2);
}

.store-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin: 0 0 1.5rem;
}

.store-category-tab {
    position: relative;
    display: grid;
    grid-template-columns: 4rem minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 0.9rem;
    align-items: center;
    min-height: 5.5rem;
    padding: 0.85rem;
    border: 1px solid var(--line);
    background: var(--bg-2);
    color: var(--ink);
    cursor: pointer;
    overflow: hidden;
    text-align: left;
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background 180ms ease,
        box-shadow 180ms ease;
}

.store-category-tab::after {
    content: "";
    position: absolute;
    right: 0.85rem;
    bottom: 0;
    left: 0.85rem;
    height: 2px;
    background: var(--diamond-bright);
    opacity: 0;
    transform: scaleX(0.35);
    transform-origin: left center;
    transition:
        opacity 180ms ease,
        transform 180ms ease;
}

.store-category-tab.is-active {
    border-color: var(--line-strong);
    background: rgba(111, 223, 208, 0.08);
}

.store-category-tab:hover,
.store-category-tab:focus-visible {
    border-color: rgba(111, 223, 208, 0.42);
    background: rgba(111, 223, 208, 0.065);
    outline: none;
    transform: translateY(-2px);
    box-shadow: 0 0.85rem 1.5rem rgba(0, 0, 0, 0.18);
}

.store-category-tab:active {
    transform: translateY(0);
}

.store-category-tab.is-active::after,
.store-category-tab:hover::after,
.store-category-tab:focus-visible::after {
    opacity: 0.8;
    transform: scaleX(1);
}

.store-category-tab img {
    grid-row: 1 / 3;
    width: 4rem;
    height: 4rem;
    object-fit: contain;
    transition: transform 180ms ease, filter 180ms ease;
}

.store-category-tab:hover img,
.store-category-tab:focus-visible img {
    filter: drop-shadow(0 0.45rem 0.6rem rgba(0, 0, 0, 0.22));
    transform: translateY(-1px) scale(1.035);
}

.store-category-tab span {
    font-family: var(--font-display);
    font-size: 1.5rem;
    line-height: 1;
    text-transform: uppercase;
}

.store-category-tab small {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.64rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.store-shop-layout {
    display: grid;
    grid-template-columns: minmax(12rem, 0.58fr) minmax(0, 2.3fr) minmax(12rem, 0.58fr);
    gap: 1rem;
    align-items: start;
}

.store-activity {
    display: contents;
    overflow: visible;
}

.store-activity[hidden] {
    display: none;
}

.store-activity-panel {
    min-width: 0;
    padding: 1rem;
    position: sticky;
    top: 5.5rem;
}

.store-top-customer {
    grid-column: 1;
    grid-row: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
    align-items: end;
    min-height: 0;
    padding: 0;
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.store-recent-payments {
    grid-column: 3;
    grid-row: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    overflow: hidden;
}

.top-customer-copy {
    min-width: 0;
    padding: 1rem;
    border: 1px solid var(--line);
    background: rgba(14, 18, 22, 0.88);
    box-shadow: var(--shadow);
}

.activity-person {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    min-width: 0;
    margin-top: 0.75rem;
}

.activity-head,
.recent-payment-art img {
    width: 3rem;
    height: 3rem;
    flex: 0 0 auto;
    object-fit: cover;
    image-rendering: pixelated;
    border: 1px solid var(--line);
    background: #0b0f13;
}

.top-customer-render {
    position: relative;
    display: grid;
    place-items: end center;
    min-height: 17rem;
    margin: -2.4rem -0.35rem -0.65rem;
    overflow: visible;
    border: 0;
    background: transparent;
}

.top-customer-render::after {
    content: "";
    position: absolute;
    inset: auto 16% 1rem;
    height: 0.7rem;
    opacity: 0.42;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 999px;
    filter: blur(3px);
}

.skin-render {
    position: relative;
    z-index: 1;
    width: min(16rem, 118%);
    max-height: 21rem;
    object-fit: contain;
    transform-origin: 50% 94%;
    filter: drop-shadow(0 1rem 1rem rgba(0, 0, 0, 0.45));
}

.activity-person strong {
    display: block;
    overflow: hidden;
    color: var(--ink);
    font-size: 1.05rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.activity-person span {
    display: block;
    margin-top: 0.2rem;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.recent-payment-list {
    display: grid;
    gap: 0.55rem;
    margin: 0;
    overflow: hidden;
}

.recent-payment {
    display: grid;
    grid-template-columns: 2.4rem minmax(0, 1fr);
    gap: 0.65rem;
    align-items: center;
    min-width: 0;
}

.recent-payment-art {
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border: 1px solid var(--line);
    background: #0b0f13;
}

.recent-payment-art img {
    width: 2.4rem;
    height: 2.4rem;
    object-fit: cover;
    image-rendering: pixelated;
}

.recent-payment-name {
    width: 100%;
    overflow: hidden;
    color: var(--muted-2);
    font-size: 0.72rem;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.store-activity-panel.is-loaded {
    animation: store-sidebar-enter 360ms ease both;
}

.store-activity-panel.is-loading {
    overflow: hidden;
}

.store-top-customer.is-loading {
    padding: 1rem;
    border: 1px solid var(--line);
    background: rgba(14, 18, 22, 0.88);
    box-shadow: var(--shadow);
}

.sidebar-skeleton-line,
.sidebar-skeleton-person span,
.sidebar-skeleton-person i,
.sidebar-skeleton-render,
.sidebar-skeleton-payment span,
.sidebar-skeleton-payment i {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
}

.sidebar-skeleton-line::after,
.sidebar-skeleton-person span::after,
.sidebar-skeleton-person i::after,
.sidebar-skeleton-render::after,
.sidebar-skeleton-payment span::after,
.sidebar-skeleton-payment i::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(111, 223, 208, 0.14), transparent);
    transform: translateX(-100%);
    animation: store-sidebar-shimmer 1.25s ease-in-out infinite;
}

.sidebar-skeleton-line.is-label {
    width: 6.5rem;
    height: 0.65rem;
    margin-bottom: 0.85rem;
}

.sidebar-skeleton-person,
.sidebar-skeleton-payment {
    display: grid;
    grid-template-columns: 2.4rem minmax(0, 1fr);
    gap: 0.65rem;
    align-items: center;
}

.sidebar-skeleton-person span,
.sidebar-skeleton-payment span {
    width: 2.4rem;
    height: 2.4rem;
}

.sidebar-skeleton-person div {
    display: grid;
    gap: 0.45rem;
}

.sidebar-skeleton-person i,
.sidebar-skeleton-payment i {
    display: block;
    height: 0.7rem;
}

.sidebar-skeleton-person i:first-child {
    width: 80%;
}

.sidebar-skeleton-person i:last-child,
.sidebar-skeleton-payment i {
    width: 58%;
}

.sidebar-skeleton-render {
    min-height: 14rem;
    margin-top: 1rem;
}

.sidebar-skeleton-payment + .sidebar-skeleton-payment {
    margin-top: 0.55rem;
}

@keyframes store-sidebar-enter {
    from {
        opacity: 0;
        transform: translateY(0.5rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes store-sidebar-shimmer {
    to {
        transform: translateX(100%);
    }
}

@keyframes store-backdrop-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes store-drawer-in {
    from {
        opacity: 0;
        transform: translateX(1rem);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes store-modal-in {
    from {
        opacity: 0;
        transform: translate(-50%, calc(-50% + 0.5rem)) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes store-row-enter {
    from {
        opacity: 0;
        transform: translateY(0.35rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes store-chip-enter {
    from {
        opacity: 0;
        transform: translateY(0.2rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes store-card-confirm {
    35% {
        border-color: rgba(58, 255, 122, 0.5);
        box-shadow: 0 0 1.3rem rgba(58, 255, 122, 0.12);
    }
}

@keyframes store-button-confirm {
    35% {
        border-color: rgba(58, 255, 122, 0.58);
        background: rgba(58, 255, 122, 0.16);
        color: var(--ink);
    }
}

@keyframes store-count-pop {
    35% {
        background: rgba(58, 255, 122, 0.24);
        color: var(--ink);
        transform: scale(1.12);
    }
}

@keyframes store-products-fade-in {
    from {
        opacity: 0.62;
    }
    to {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .store-scroll-top {
        transition: none;
    }

    .store-activity-panel.is-loaded,
    .sidebar-skeleton-line::after,
    .sidebar-skeleton-person span::after,
    .sidebar-skeleton-person i::after,
    .sidebar-skeleton-render::after,
    .sidebar-skeleton-payment span::after,
    .sidebar-skeleton-payment i::after {
        animation: none;
    }
}

.store-products {
    grid-column: 2;
    grid-row: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.store-products.is-tab-enter {
    animation: store-products-fade-in 150ms ease-out both;
}

.store-products.is-rank-layout .store-product {
    grid-row: var(--rank-row);
}

.store-products.is-rank-layout .store-product.is-rank-vip {
    grid-column: 1;
}

.store-products.is-rank-layout .store-product.is-rank-mvp {
    grid-column: 2;
}

@media (min-width: 1200px) {
    .store-shell {
        padding-left: clamp(10.5rem, 15vw, 13.5rem);
        padding-right: clamp(10.5rem, 15vw, 13.5rem);
    }

    .store-shop-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .store-top-customer,
    .store-recent-payments {
        position: fixed;
        top: calc(var(--site-header-height) + 1rem);
        z-index: 30;
        width: clamp(10.75rem, 12vw, 13.5rem);
        max-height: calc(100vh - var(--site-header-height) - 2rem);
        padding: 0.85rem 0.75rem 1rem;
        border: 1px solid var(--line);
        background: rgba(14, 18, 22, 0.92);
        box-shadow: var(--shadow);
    }

    .store-top-customer {
        left: 0;
        border-left: 0;
    }

    .store-recent-payments {
        right: 0;
        grid-column: auto;
        border-right: 0;
    }

    .store-top-customer .top-customer-copy {
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .store-top-customer .activity-person {
        gap: 0.6rem;
    }

    .store-top-customer .activity-head {
        width: 2.5rem;
        height: 2.5rem;
    }

    .top-customer-render {
        min-height: 18rem;
        margin: 0;
    }

    .skin-render {
        width: min(11.5rem, 100%);
        max-height: 22rem;
    }

    .store-products {
        grid-column: 1;
    }
}

@media (min-width: 1600px) {
    .store-shell {
        padding-left: 0;
        padding-right: 0;
    }
}

.store-product {
    display: grid;
    grid-template-columns: 8.5rem minmax(0, 1fr);
    gap: 1.15rem;
    min-height: 14rem;
    padding: 1rem;
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background 180ms ease,
        box-shadow 180ms ease;
}

.store-product.is-featured {
    border-color: var(--line-strong);
    background:
        linear-gradient(135deg, rgba(111, 223, 208, 0.09), rgba(14, 18, 22, 0.9) 36%),
        var(--bg-2);
}

.store-product:hover,
.store-product:focus-within {
    border-color: rgba(111, 223, 208, 0.34);
    transform: translateY(-2px);
    box-shadow: 0 1rem 1.7rem rgba(0, 0, 0, 0.22);
}

.store-product.is-added {
    animation: store-card-confirm 520ms ease both;
}

.product-image-button {
    align-self: start;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    transition: transform 160ms ease;
}

.product-image-button:focus-visible {
    outline: 2px solid rgba(111, 223, 208, 0.64);
    outline-offset: 0.2rem;
}

.product-image-button img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    transition: transform 180ms ease, filter 180ms ease;
}

.store-product:hover .product-image-button img,
.store-product:focus-within .product-image-button img {
    filter: drop-shadow(0 0.65rem 0.8rem rgba(0, 0, 0, 0.2));
    transform: translateY(-1px) scale(1.025);
}

.product-card-body h2 {
    margin: 0.5rem 0 0.45rem;
    font-family: var(--font-display);
    font-size: 2.15rem;
    font-weight: 400;
    line-height: 0.95;
    text-transform: uppercase;
}

.product-card-body p:not(.mono-label) {
    margin: 0;
    color: var(--muted-2);
    line-height: 1.45;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
    align-items: baseline;
    margin-top: 1rem;
}

.product-meta strong,
.cart-total strong,
.product-modal-actions strong {
    color: var(--diamond-bright);
    font-family: var(--font-mono);
    font-size: 1rem;
}

.product-meta span {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.product-actions {
    grid-column: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-self: end;
}

.cart-chip {
    display: inline-flex;
    align-items: center;
    min-height: 2.375rem;
    padding: 0 0.7rem;
    color: var(--green);
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    animation: store-chip-enter 220ms ease both;
}

.store-page .primary-button,
.store-page .secondary-button,
.drawer-close,
.cart-row-actions button {
    transition:
        transform 150ms ease,
        background 150ms ease,
        border-color 150ms ease,
        color 150ms ease,
        box-shadow 150ms ease;
}

.store-page .secondary-button:hover,
.store-page .secondary-button:focus-visible,
.drawer-close:hover,
.drawer-close:focus-visible {
    border-color: rgba(111, 223, 208, 0.45);
    background: rgba(111, 223, 208, 0.08);
    color: var(--diamond-bright);
    outline: none;
    transform: translateY(-1px);
}

.store-page .primary-button:active:not(:disabled),
.store-page .secondary-button:active:not(:disabled),
.drawer-close:active,
.cart-row-actions button:active {
    transform: translateY(0) scale(0.98);
}

.store-page .primary-button.is-added {
    animation: store-button-confirm 520ms ease both;
}

.store-drawer[hidden],
.product-modal[hidden] {
    display: none;
}

.store-drawer,
.product-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
}

.store-drawer-backdrop,
.product-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
    animation: store-backdrop-in 160ms ease both;
}

.store-drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    width: min(100%, 30rem);
    height: 100%;
    padding: 1.25rem;
    overflow: auto;
    border-right: 0;
    animation: store-drawer-in 220ms cubic-bezier(0.2, 0.78, 0.28, 1) both;
}

.store-drawer-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.drawer-close {
    width: 2.35rem;
    height: 2.35rem;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.035);
    color: var(--muted-2);
    cursor: pointer;
    font-weight: 800;
}

.cart-player-form {
    display: grid;
    gap: 0.45rem;
    padding: 0.85rem;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.cart-player-form label {
    margin: 0;
}

.cart-items {
    display: grid;
    gap: 0.65rem;
    margin: 1rem 0;
}

.store-drawer-panel > .store-form-message {
    margin-top: auto;
}

.cart-empty {
    margin: 0;
    padding: 1.2rem;
    border: 1px solid var(--line);
    color: var(--muted);
    text-align: center;
}

.cart-row {
    display: grid;
    grid-template-columns: 3.75rem minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.025);
    animation: store-row-enter 190ms ease both;
    animation-delay: calc(var(--cart-row-index, 0) * 24ms);
    transition:
        transform 160ms ease,
        border-color 160ms ease,
        background 160ms ease;
}

.cart-row:hover,
.cart-row:focus-within {
    border-color: rgba(111, 223, 208, 0.28);
    background: rgba(111, 223, 208, 0.04);
    transform: translateX(-2px);
}

.cart-row img {
    width: 3.75rem;
    height: 3.75rem;
    object-fit: contain;
}

.cart-row strong,
.cart-row span {
    display: block;
}

.cart-row span {
    margin-top: 0.2rem;
    color: var(--muted);
    font-size: 0.78rem;
}

.cart-row-actions {
    display: grid;
    justify-items: end;
    gap: 0.25rem;
}

.cart-row-actions span {
    color: var(--diamond);
    font-family: var(--font-mono);
}

.cart-row-actions button {
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 0.76rem;
}

.cart-row-actions button:hover {
    color: var(--diamond-bright);
}

.cart-row-actions button:focus,
.cart-row-actions button:focus-visible {
    color: var(--diamond-bright);
    outline: 2px solid rgba(111, 223, 208, 0.58);
    outline-offset: 0.18rem;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin: 1rem 0;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.cart-total span {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.checkout-button {
    width: 100%;
    min-height: 3rem;
}

.checkout-button:disabled {
    cursor: progress;
    opacity: 0.64;
}

.product-modal-panel {
    position: absolute;
    inset: 50% auto auto 50%;
    display: grid;
    grid-template-columns: minmax(12rem, 0.42fr) minmax(0, 1fr);
    gap: 1.5rem;
    width: min(55rem, calc(100% - 2rem));
    max-height: calc(100svh - 2rem);
    padding: 1.25rem;
    overflow: auto;
    transform: translate(-50%, -50%);
    animation: store-modal-in 200ms cubic-bezier(0.2, 0.78, 0.28, 1) both;
}

.product-modal-panel > .drawer-close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
}

.product-modal-panel > img {
    width: 100%;
    align-self: start;
    aspect-ratio: 1;
    object-fit: contain;
    border: 0;
    background: transparent;
}

.product-modal-panel p:not(.mono-label) {
    color: var(--muted-2);
    line-height: 1.55;
}

.product-modal-panel ul {
    display: grid;
    gap: 0.65rem;
    margin: 1rem 0;
    padding: 0;
    list-style: none;
}

.product-modal-panel li {
    padding: 0.7rem 0;
    border-top: 1px solid var(--line);
    color: var(--muted-2);
}

.product-modal-panel li.product-perk-intro {
    padding-top: 0;
    border-top: 0;
    line-height: 1.55;
}

.product-modal-panel li.product-perk-heading {
    padding: 1rem 0 0;
    border-top: 1px solid var(--line);
    color: var(--diamond);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.product-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.store-return-panel {
    width: min(48rem, calc(100% - 3rem));
    margin: 5rem auto;
    padding: 2.5rem;
}

.store-return-panel p:not(.mono-label) {
    color: var(--muted-2);
    line-height: 1.55;
}

.store-return-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

@media (max-width: 1280px) {
    .store-hero,
    .store-products {
        grid-template-columns: 1fr;
    }

    .store-shop-layout {
        grid-template-columns: 1fr;
    }

    .store-activity-panel,
    .store-products,
    .store-top-customer,
    .store-recent-payments {
        grid-column: 1;
        grid-row: auto;
    }

    .store-activity-panel {
        position: static;
        top: auto;
    }

    .store-products {
        grid-row: 1;
    }

    .store-top-customer {
        grid-row: 2;
    }

    .store-recent-payments {
        grid-row: 3;
    }

    .store-products.is-rank-layout .store-product.is-rank-vip,
    .store-products.is-rank-layout .store-product.is-rank-mvp {
        grid-column: 1;
        grid-row: auto;
    }

    .store-category-tab {
        grid-template-columns: 3.5rem minmax(0, 1fr);
    }

    .store-category-tab img {
        width: 3.5rem;
        height: 3.5rem;
    }
}

@media (max-width: 720px) {
    .store-shell {
        width: min(100% - 2rem, var(--max));
        padding: 2rem 0 3rem;
    }

    .store-header-actions {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .store-header-link,
    .store-cart-button {
        justify-content: center;
        width: 100%;
    }

    .store-scroll-top {
        right: 1rem;
        bottom: 1rem;
        width: 2.85rem;
        height: 2.85rem;
    }

    .store-hero-copy,
    .store-account-panel {
        padding: 1.2rem;
    }

    .store-hero-copy {
        min-height: 18rem;
    }

    .store-hero-copy h1 {
        font-size: clamp(3.25rem, 14vw, 4.7rem);
    }

    .store-categories {
        grid-template-columns: 1fr;
    }

    .store-top-customer {
        grid-template-columns: 1fr;
    }

    .top-customer-render {
        min-height: 16rem;
        margin: 0;
    }

    .recent-payment-list {
        display: grid;
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .store-product {
        grid-template-columns: 5.75rem minmax(0, 1fr);
        min-height: auto;
    }

    .product-card-body h2 {
        font-size: 1.65rem;
    }

    .product-actions {
        grid-column: 1 / -1;
    }

    .product-modal-panel {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 420px) {
    .store-product {
        grid-template-columns: 1fr;
    }

    .product-image-button {
        width: 6rem;
    }

    .cart-row {
        grid-template-columns: 3rem minmax(0, 1fr);
    }

    .cart-row-actions {
        grid-column: 1 / -1;
        grid-template-columns: auto auto;
        justify-content: space-between;
    }
}

@media (prefers-reduced-motion: reduce) {
    .store-category-tab,
    .store-category-tab::after,
    .store-category-tab img,
    .store-products.is-tab-enter,
    .store-product,
    .product-image-button,
    .product-image-button img,
    .store-page .primary-button,
    .store-page .secondary-button,
    .drawer-close,
    .cart-row,
    .cart-row-actions button,
    .store-drawer-backdrop,
    .product-modal-backdrop,
    .store-drawer-panel,
    .product-modal-panel,
    .cart-chip,
    .store-product.is-added,
    .store-page .primary-button.is-added,
    .store-cart-button.is-added span {
        animation: none !important;
        transition: none !important;
    }

    .store-header-link:hover,
    .store-header-link:focus-visible,
    .store-cart-button:hover,
    .store-cart-button:focus-visible,
    .store-scroll-top.is-visible:hover,
    .store-scroll-top.is-visible:focus-visible,
    .store-scroll-top.is-visible:active,
    .store-category-tab:hover,
    .store-category-tab:focus-visible,
    .store-category-tab:active,
    .store-category-tab:hover img,
    .store-category-tab:focus-visible img,
    .store-product:hover,
    .store-product:focus-within,
    .store-product:hover .product-image-button img,
    .store-product:focus-within .product-image-button img,
    .store-page .primary-button:active:not(:disabled),
    .store-page .secondary-button:active:not(:disabled),
    .drawer-close:active,
    .cart-row:hover,
    .cart-row:focus-within,
    .cart-row-actions button:active {
        transform: none !important;
    }
}
