.store-home {
    --store-ink: var(--kh-ink, #0e3157);
    --store-blue: var(--kh-blue, #13599b);
    --store-muted: var(--kh-muted, #465e74);
    --store-line: var(--kh-border, #c6dfef);
    --store-surface: #fff;
    --store-ice: #f2f7fc;
    color: var(--store-ink);
}

.store-home__container {
    container: storefront / inline-size;
    padding-block: clamp(1rem, 2.25vw, 2rem) clamp(2rem, 4vw, 4rem);
}

.store-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    background: #edf5fc;
    border: 1px solid #c6dfef;
    border-radius: 1rem;
    overflow: hidden;
}

.store-hero__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-inline-size: 0;
    padding: clamp(1.65rem, 4.15cqi, 3.65rem);
}

.store-hero h1 {
    margin: 0;
    color: #0e3157;
    font-size: clamp(2.2rem, 4.6cqi, 4.35rem);
    font-weight: 800;
    line-height: 1.23;
    letter-spacing: -.025em;
}

.store-hero h1 span { color: #13599b; }

.store-hero p {
    margin: clamp(.65rem, 1.15cqi, .95rem) 0 0;
    max-inline-size: 34ch;
    color: #405b74;
    font-size: clamp(1rem, 1.45cqi, 1.18rem);
    line-height: 1.65;
    text-wrap: pretty;
}

.store-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-block-start: clamp(1.1rem, 2cqi, 1.75rem);
}

.store-hero__actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-block-size: 2.85rem;
    padding: .65rem 1.15rem;
    color: #fff;
    background: #13599b;
    border: 1px solid #13599b;
    border-radius: .5rem;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
}

.store-hero__actions a + a {
    color: #134b7d;
    background: #fff;
    border-color: #91b3ce;
}

.store-hero__actions a:hover { color: #fff; background: #0e4172; }
.store-hero__actions a + a:hover { color: #0e3157; background: #e0edf7; }
.store-hero__actions .kh-nav-icon { font-size: 1.18em; }

.store-hero__art {
    position: relative;
    display: block;
    min-inline-size: 0;
    min-block-size: clamp(20rem, 32.5cqi, 26rem);
    overflow: hidden;
    background: #d9e8f4;
}

.store-hero__art img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.store-browse,
.store-home__section {
    margin-block-start: clamp(1.75rem, 3.4cqi, 2.9rem);
}

.store-browse h2,
.store-home__section-heading h2 {
    margin: 0;
    color: var(--store-ink);
    font-size: clamp(1.37rem, 2.4cqi, 2rem);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.4;
}

.store-browse ul {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin: clamp(.7rem, 1.3cqi, 1rem) 0 0;
    padding: 0;
    overflow: hidden;
    list-style: none;
    background: var(--store-surface);
    border: 1px solid var(--store-line);
    border-radius: .85rem;
}

.store-browse li + li { border-inline-start: 1px solid var(--store-line); }

.store-shortcut {
    display: flex;
    height: 100%;
    min-block-size: 6.25rem;
    flex-flow: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: 1rem .5rem;
    color: var(--store-ink);
    font-size: clamp(.95rem, 1.3cqi, 1.12rem);
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
}

.store-shortcut:is(:hover, :focus-visible) {
    color: var(--store-blue);
    background: var(--store-ice);
}

.store-shortcut__icon {
    display: inline-grid;
    flex: none;
    place-items: center;
    inline-size: 2.75rem;
    block-size: 2.75rem;
    color: #13599b;
    background: #eaf3fb;
    border-radius: .7rem;
}

.store-shortcut__icon .kh-nav-icon { font-size: 1.55rem; }
.store-browse a:focus-visible { outline-offset: -4px; }

.store-home__section-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .4rem .85rem;
    margin-block-end: clamp(.65rem, 1.2cqi, 1rem);
}

.store-home__section-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: var(--store-blue);
    font-weight: 700;
    font-size: .94rem;
    text-decoration: underline;
    text-decoration-color: #83a9c8;
    text-underline-offset: .25em;
}

.store-home__section-heading > a { min-block-size: 2.75rem; }
.store-home__section-link:hover { color: #0e4172; text-decoration-color: currentColor; }

.store-games {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr));
    gap: clamp(.7rem, 1.6cqi, 1.3rem);
}

.store-games--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.store-game,
.store-home .store-story,
.store-home .store-promo,
.store-gift-card {
    color: var(--store-ink);
    background: var(--store-surface);
    border: 1px solid var(--store-line);
    border-radius: .75rem;
    text-decoration: none;
    overflow: hidden;
}

.store-game,
.store-gift-card,
a.store-story { transition: border-color .16s ease, box-shadow .16s ease; }

:is(.store-game, .store-gift-card, a.store-story):is(:hover, :focus-visible) {
    border-color: #82a9c9;
    box-shadow: 0 .35rem 1rem rgba(14, 49, 87, .08);
    color: var(--store-blue);
}

.store-game { display: flex; flex-direction: column; }
.store-game__art, .store-story__art, .store-promo__art {
    display: block;
    width: 100%;
    background: var(--store-ice);
    object-fit: cover;
}

.store-game__art { aspect-ratio: 5 / 4; }
.store-games--wide .store-game__art { aspect-ratio: 640 / 241; }

.store-game__caption {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-block-size: 3.1rem;
    padding: .7rem .95rem;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.store-games--wide .store-game__caption { font-size: clamp(1rem, 1.65cqi, 1.3rem); }
.store-game__caption img { flex: none; border-radius: .45rem; }

.store-home__flash-icon { color: var(--store-blue); }
.store-story__art, .store-promo__art { aspect-ratio: 16 / 9; }

.store-story__body,
.store-promo__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .55rem;
    padding: clamp(.9rem, 1.7cqi, 1.35rem);
}

.store-story__body h3,
.store-promo__body h3 {
    margin: 0;
    color: var(--store-ink);
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.45;
}

.store-story__body p,
.store-promo__body p {
    margin: 0;
    color: var(--store-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.store-promo__ribbon {
    position: absolute;
    inset: .7rem auto auto .7rem;
    padding: .28rem .65rem;
    border-radius: .35rem;
    color: #fff;
    background: var(--store-blue);
    font-size: .875rem;
    font-weight: 700;
}

.store-promo__price {
    color: var(--store-blue);
    font-size: 1.4rem;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
}
.store-promo__regular { color: var(--store-muted); }

.store-promo__progress {
    --bs-progress-height: .4rem;
    --bs-progress-bg: #dcebf6;
    --bs-progress-bar-bg: var(--store-blue);
    align-self: stretch;
}

.kh-flash-sale-card .store-home__section-link {
    align-self: stretch;
    justify-content: center;
    min-block-size: 2.75rem;
    border-radius: .5rem;
    color: #fff;
    background: var(--store-blue);
    text-decoration: none;
}

.kh-flash-sale-card .store-home__section-link:hover { color: #fff; background: #0e4172; }

.store-gift-card {
    display: flex;
    align-items: center;
    gap: .7rem;
    height: 100%;
    min-height: 4.1rem;
    padding: .65rem .8rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.store-gift-card img {
    flex: none;
    inline-size: 2.75rem;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: .45rem;
}

@container storefront (width < 48rem) {
    .store-hero { grid-template-columns: 1fr; }
    .store-hero__copy { padding: clamp(1.15rem, 5cqi, 2rem); }
    .store-hero h1 { font-size: clamp(2rem, 6.3cqi, 3.15rem); }
    .store-hero p { max-inline-size: 40ch; }
    .store-hero__art { min-block-size: 0; aspect-ratio: 2.15 / 1; }
    .store-hero__art img { object-position: 50% 55%; }
    .store-browse ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .store-browse li:nth-child(3n+1) { border-inline-start: 0; }
    .store-browse li:nth-child(n+4) { border-block-start: 1px solid var(--store-line); }
    .store-shortcut { min-block-size: 5.4rem; padding: .65rem .3rem; }
}

@container storefront (width < 35rem) {
    .store-games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .store-games--wide { grid-template-columns: 1fr; }
    .store-game__caption { padding: .55rem .65rem; }
    .store-games--wide .store-game__art { aspect-ratio: 3 / 1; }
    .store-hero__actions { gap: .5rem; }
    .store-hero__actions a { padding-inline: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
    .store-game, .store-gift-card, a.store-story { transition: none; }
}
