.jh-game-store, .jh-game-checkout {
    --game-scale: 80rem;
    --game-base: #101518;
    --game-panel: #191f24;
    --game-line: #343e45;
    --game-title: #f6f7f8;
    --game-copy: #c1c9ce;
    --game-muted: #a9b4bd;
    --game-tint: #e3ddff;
    color: var(--game-title);
    background: var(--game-base);
}

.jh-game-store [hidden] { display: none !important; }
.jh-game-store ::selection { color: #161226; background: var(--game-tint); }
.jh-game-store :focus-visible { outline: 2px solid var(--game-tint); outline-offset: 4px; }
.jh-game-store [id] { scroll-margin-top: 6.4rem; }
.jh-game-store h1, .jh-game-store h2, .jh-game-store h3, .jh-game-store p { margin: 0; }

.jh-game-wrap, .jh-game-hero-inner {
    width: min(var(--game-scale), calc(100% - 80px));
    margin-inline: auto;
}

.jh-game-hero {
    position: relative;
    display: grid;
    align-items: center;
    min-height: clamp(23.75rem, 29.5vw, 26.5rem);
    overflow: hidden;
    isolation: isolate;
    background: #111923;
    border-bottom: 1px solid var(--game-line);
}

.jh-game-hero-art, .jh-game-hero-art img, .jh-game-hero::after {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.jh-game-hero-art { z-index: -2; }
.jh-game-hero-art img { object-fit: cover; object-position: 62% 47%; }
.jh-game-hero::after {
    z-index: -1;
    content: "";
    background: linear-gradient(90deg, #10171d 3%, #10171ded 25%, #10171da8 43%, transparent 76%);
    pointer-events: none;
}

.jh-game-hero-inner { padding-block: 3.1rem; }
.jh-game-hero h1 {
    max-width: 13ch;
    font-size: clamp(2.85rem, 5.4vw, 4.95rem);
    font-weight: 800;
    line-height: 1.01;
    letter-spacing: -.04em;
    text-wrap: balance;
}

.jh-game-hero h1 + p {
    max-width: 38ch;
    margin-top: 1.125rem;
    color: #d6dee4;
    font-size: 1.075rem;
    line-height: 1.64;
}

.jh-game-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-block: 1.5rem 1rem;
}

.jh-game-primary, .jh-game-secondary, .jh-game-package-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    min-height: 3rem;
    padding: .7rem 1.1rem;
    border-radius: 8px;
    font-weight: 800;
    line-height: 1.25;
    text-decoration: none;
}

.jh-game-primary, .jh-game-package-button {
    border: 1px solid var(--game-title);
    background: var(--game-title);
    color: var(--game-base);
}

.jh-game-primary:hover, .jh-game-package-button:hover {
    background: var(--game-tint);
    border-color: var(--game-tint);
    color: var(--game-base);
}

.jh-game-secondary {
    border: 1px solid #a0aab3;
    background: #151e26;
    color: var(--game-title);
}
.jh-game-secondary:hover { border-color: var(--game-title); background: #242e37; color: var(--game-title); }
.jh-game-hero .jh-game-hero-price { color: #d1dce3; font-size: .88rem; }
.jh-game-hero-price strong { color: var(--game-title); font-variant-numeric: tabular-nums; }

.jh-game-library { padding-block: 3.15rem 5rem; }
.jh-game-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.1rem 2rem;
    margin-bottom: 1.35rem;
}
.jh-game-section-heading h2 {
    font-size: clamp(1.9rem, 3.8vw, 3rem);
    font-weight: 800;
    letter-spacing: -.038em;
    line-height: 1.08;
    text-wrap: balance;
}
.jh-game-section-heading p { margin-top: .5rem; color: var(--game-copy); }

.jh-game-search {
    display: flex;
    align-items: center;
    gap: .55rem;
    width: min(100%, 20rem);
    min-height: 3rem;
    padding: .15rem .875rem;
    border: 1px solid var(--game-line);
    border-radius: 8px;
    background: var(--game-panel);
    color: var(--game-muted);
}
.jh-game-search:focus-within { outline: 2px solid var(--game-tint); outline-offset: 3px; }
.jh-game-search input {
    width: 100%;
    min-width: 0;
    min-height: 2.6rem;
    padding: 0;
    border: 0;
    outline: 0;
    color: var(--game-title);
    background: transparent;
    caret-color: var(--game-tint);
    font: inherit;
}
.jh-game-search input:focus-visible { outline: 0; }
.jh-game-search input::placeholder { color: var(--game-muted); }
.jh-game-search input::-webkit-search-cancel-button { color-scheme: dark; }

.jh-game-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .65rem 1rem;
    margin-block: .25rem 1.15rem;
}
.jh-game-filters { display: flex; flex-wrap: wrap; gap: .45rem; }
.jh-game-filters :is(button, a) {
    display: inline-flex;
    align-items: center;
    min-height: 2.5rem;
    padding: .35rem .85rem;
    border: 1px solid var(--game-line);
    border-radius: 8px;
    background: var(--game-panel);
    color: var(--game-copy);
    font-size: .875rem;
    font-weight: 750;
    cursor: pointer;
    text-decoration: none;
}
.jh-game-filters :is(button, a):hover { border-color: #919ea7; color: var(--game-title); }
.jh-game-filters :is([aria-pressed="true"], [aria-current="true"]) {
    border-color: var(--game-tint);
    background: var(--game-tint);
    color: #171326;
}
.jh-game-result-count { color: var(--game-muted); font-size: .875rem; font-variant-numeric: tabular-nums; }

.jh-game-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}
.jh-game-card { min-width: 0; }
.jh-game-card > :is(a, .jh-game-card-disabled) {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--game-line);
    border-radius: 12px;
    background: var(--game-panel);
    color: var(--game-title);
    text-decoration: none;
    transition: border-color 160ms ease-out;
}
.jh-game-card > a:hover, .jh-game-card > a[aria-current="true"] { border-color: #a29abf; color: var(--game-title); }
.jh-game-card-art {
    aspect-ratio: 5 / 3;
    overflow: hidden;
    background: #242d33;
}
.jh-game-card-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.jh-game-card-disabled .jh-game-card-art img { filter: saturate(.7) brightness(.78); }
.jh-game-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: .9rem 1rem .85rem;
}
.jh-game-card .jh-game-card-genre { color: var(--game-muted); font-size: .775rem; font-weight: 750; line-height: 1.35; }
.jh-game-card h3 { margin-block: .225rem .9rem; font-size: clamp(.96rem, 1.62vw, 1.25rem); font-weight: 800; line-height: 1.17; }
.jh-game-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .35rem;
    margin-top: auto;
    min-height: 2rem;
    color: var(--game-copy);
    font-size: .875rem;
    line-height: 1.3;
}
.jh-game-card-bottom strong { color: var(--game-title); font-weight: 800; }
.jh-game-card-bottom p > span { margin-left: .13rem; font-size: .8em; }
.jh-game-card-arrow {
    display: grid;
    flex: none;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border-radius: 7px;
    background: #283239;
    color: var(--game-title);
    transition: color 160ms ease-out, background-color 160ms ease-out;
}
.jh-game-card > a:hover .jh-game-card-arrow { color: #171326; background: var(--game-tint); }

.jh-game-packages {
    padding-block: 3.75rem 4.25rem;
    border-top: 1px solid var(--game-line);
    background: #151b20;
}
.jh-game-text-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    width: fit-content;
    min-height: 2.5rem;
    color: var(--game-tint);
    font-weight: 750;
    text-decoration: underline;
    text-underline-offset: .25em;
}
.jh-game-text-link:hover { color: var(--game-title); }
.jh-game-editions { margin-bottom: 1.25rem; }
.jh-game-setup {
    display: flex;
    align-items: start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem 1.5rem;
    margin-bottom: 1.25rem;
    padding: 1rem 1.15rem;
    border: 1px solid var(--game-line);
    border-radius: 8px;
    background: #222832;
    color: var(--game-copy);
}
.jh-game-setup a {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: var(--game-tint);
    font-weight: 750;
    text-underline-offset: .24em;
    text-decoration: underline;
}
.jh-game-package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
    gap: 1rem;
}
.jh-game-package:only-child { grid-column: 1 / -1; width: 100%; max-width: 26rem; }
.jh-game-package {
    display: flex;
    flex-direction: column;
    gap: .9rem;
    padding: 1.25rem;
    border: 1px solid var(--game-line);
    border-radius: 12px;
    background: var(--game-panel);
}
.jh-game-package h3 { font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; }
.jh-game-package-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .45rem; color: var(--game-copy); }
.jh-game-package-price strong {
    color: var(--game-title);
    font-size: clamp(2.2rem, 3.1vw, 2.9rem);
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.038em;
}
.jh-game-deal { color: var(--game-copy); font-size: .83rem; }
.jh-game-specs {
    display: grid;
    gap: .45rem;
    margin-block: .35rem .2rem;
    padding-top: .65rem;
    border-top: 1px solid var(--game-line);
    font-size: .9rem;
}
.jh-game-specs > div { display: flex; justify-content: space-between; gap: .7rem; }
.jh-game-specs dt { color: var(--game-copy); }
.jh-game-specs dd { margin: 0; font-weight: 750; font-variant-numeric: tabular-nums; }
.jh-game-package-button { margin-top: auto; justify-content: space-between; padding-inline: .75rem; }
.jh-game-package-unavailable { margin-top: auto !important; color: var(--game-muted); font-weight: 750; }
.jh-game-plan-note { margin-top: 1rem !important; color: var(--game-muted); font-size: .875rem; }
.jh-game-store .jh-game-empty {
    grid-column: 1 / -1;
    padding-block: 2rem;
    color: var(--game-copy);
}

.jh-game-checkout-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(14rem, 23%);
    align-items: center;
    gap: 1.4rem 2rem;
    margin-bottom: 1.5rem;
    padding: 1.6rem;
    border: 1px solid var(--game-line);
    border-radius: 12px;
    background: var(--game-panel);
}
.jh-game-checkout-intro h1 {
    margin: .7rem 0 .25rem;
    color: var(--game-title);
    font-size: clamp(1.85rem, 4vw, 3.1rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.038em;
}
.jh-game-checkout-intro p { color: var(--game-copy); }
.jh-game-back {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: var(--game-tint);
    font-size: .875rem;
    text-decoration: underline;
    text-underline-offset: .25em;
}
.jh-game-checkout-intro figure { position: relative; margin: 0; overflow: hidden; border-radius: 8px; }
.jh-game-checkout-intro img { display: block; width: 100%; height: auto; aspect-ratio: 5/2.8; object-fit: cover; }
.jh-game-checkout-intro figcaption {
    position: absolute;
    inset: auto 0 0;
    padding: 1.25rem .75rem .5rem;
    background: linear-gradient(transparent, #0f151cec);
    color: var(--game-title);
    font-size: .85rem;
    font-weight: 800;
}
.jh-game-checkout-specs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
    margin: 0;
    padding-block: .65rem;
    border-block: 1px solid var(--game-line);
}
.jh-game-checkout-specs > div { padding-inline: .35rem; }
.jh-game-checkout-specs dt { color: var(--game-copy); font-size: .8rem; }
.jh-game-checkout-specs dd { margin: .1rem 0 0; font-weight: 800; font-variant-numeric: tabular-nums; }
.jh-game-checkout-key { margin: 0; color: var(--game-copy); }
.jh-game-checkout-key a { color: var(--game-tint); text-decoration: underline; text-underline-offset: .25em; }
.jh-game-checkout .summary-btn > span[wire\:loading\.remove] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
}

@media (max-width: 1000px) {
    .jh-game-wrap, .jh-game-hero-inner { width: calc(100% - 48px); }
    .jh-game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .jh-game-package-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
}

@media (max-width: 640px) {
    .jh-game-wrap, .jh-game-hero-inner { width: calc(100% - 36px); }
    .jh-game-hero { min-height: 21.5rem; align-items: end; }
    .jh-game-hero-art img { object-position: 60% 36%; }
    .jh-game-hero::after {
        background: linear-gradient(0deg, #10171df7 5%, #10171def 38%, #10171d9c 65%, #10171d18 100%);
    }
    .jh-game-hero-inner { padding-block: 4.35rem 1.45rem; }
    .jh-game-hero h1 { font-size: clamp(2.55rem, 10vw, 3.35rem); }
    .jh-game-hero h1 + p { margin-top: .7rem; font-size: .95rem; line-height: 1.53; }
    .jh-game-hero-actions { gap: .5rem; margin-block: 1.15rem .8rem; }
    .jh-game-hero-actions a { padding-inline: .7rem; font-size: .875rem; }
    .jh-game-library { padding-block: 2rem 3rem; }
    .jh-game-section-heading { margin-bottom: 1.05rem; gap: .875rem 1rem; }
    .jh-game-section-heading p { font-size: .92rem; line-height: 1.5; }
    .jh-game-search { width: 100%; }
    .jh-game-toolbar { margin-bottom: .95rem; }
    .jh-game-result-count { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .jh-game-filters { gap: .38rem; }
    .jh-game-filters :is(button, a) { min-height: 2.5rem; padding-inline: .65rem; font-size: .82rem; }
    .jh-game-grid, .jh-game-package-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
    .jh-game-card-body { padding: .7rem .65rem; }
    .jh-game-card h3 { margin-bottom: .6rem; overflow-wrap: anywhere; }
    .jh-game-card-bottom { font-size: .78rem; }
    .jh-game-card-arrow { width: 1.55rem; height: 1.55rem; }
    .jh-game-card-arrow svg { width: .85rem; height: .85rem; }
    .jh-game-packages { padding-block: 2.4rem 3rem; }
    .jh-game-package { padding: .85rem .75rem; }
    .jh-game-package-button { gap: .35rem; padding-inline: .5rem; font-size: .84rem; }
    .jh-game-checkout-intro { grid-template-columns: 1fr; padding: 1rem; gap: 1rem; }
    .jh-game-checkout-intro img { aspect-ratio: 5/2.1; }
}

@media (max-width: 355px) {
    .jh-game-package-grid { grid-template-columns: 1fr; }
    .jh-game-card-bottom { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
    .jh-game-store *, .jh-game-store *::before, .jh-game-store *::after { transition-duration: 0s !important; }
}
