/* Store, cart, and browser-game play pages. Loaded after desktop.css / mobile.css. */

/* ------------------------------------------------------------ header cart */

.main-nav a.cart-link {
    position: relative;
    min-width: 44px;
    width: 44px;
    padding: 0;
}

.cart-count {
    position: absolute;
    top: 3px;
    right: 0;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--gold);
    color: #140f03;
    font: 800 11px/18px "Source Sans 3", "Segoe UI", Arial, sans-serif;
    text-align: center;
    box-shadow: 0 0 0 2px var(--bg);
}

.cart-link.is-bumped svg {
    animation: gw-cart-bump 440ms ease;
}

@keyframes gw-cart-bump {
    0% { transform: scale(1); }
    35% { transform: scale(1.3) rotate(-9deg); }
    70% { transform: scale(0.94) rotate(3deg); }
    100% { transform: scale(1); }
}

.cart-fly {
    position: fixed;
    z-index: 140;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff6d8 0%, var(--gold-bright) 40%, var(--gold) 65%, transparent 72%);
    box-shadow: 0 0 22px rgba(244, 201, 107, 0.85);
    pointer-events: none;
}

.store-toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 130;
    max-width: min(360px, calc(100vw - 48px));
    padding: 14px 18px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: linear-gradient(145deg, rgba(14, 26, 34, 0.98), rgba(6, 12, 16, 0.98));
    color: #f4f7f8;
    font-weight: 700;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
    opacity: 0;
    transform: translateY(18px);
    pointer-events: none;
    transition: opacity 220ms ease, transform 220ms ease;
}

.store-toast.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.store-toast a {
    color: var(--gold-bright);
    margin-left: 6px;
}

.store-toast.is-error {
    border-color: rgba(255, 95, 103, 0.6);
    background: linear-gradient(145deg, rgba(60, 14, 18, 0.98), rgba(26, 6, 8, 0.98));
    color: #ffd9db;
}

/* ------------------------------------------------------------ cart drawer */

.cart-drawer {
    position: fixed;
    inset: 0;
    z-index: 120;
}

.cart-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 5, 8, 0.6);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 260ms ease;
}

.cart-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(420px, 100vw);
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--line);
    background: linear-gradient(180deg, var(--panel-2), var(--panel));
    box-shadow: -24px 0 60px rgba(0, 0, 0, 0.4);
    transform: translateX(100%);
    transition: transform 280ms cubic-bezier(.2, .8, .2, 1);
}

.cart-drawer.is-open .cart-drawer__backdrop { opacity: 1; }
.cart-drawer.is-open .cart-drawer__panel { transform: none; }

.cart-drawer__head,
.cart-drawer__foot {
    padding: 20px 22px;
    border-bottom: 1px solid var(--line);
}

.cart-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-drawer__head h2 {
    margin: 0;
    font-size: 22px;
}

.cart-drawer__close {
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: transparent;
    color: var(--text);
    font-size: 24px;
    cursor: pointer;
}

.cart-drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: 14px 22px;
}

.cart-drawer__foot {
    display: grid;
    gap: 14px;
    border-top: 1px solid var(--line);
    border-bottom: 0;
}

.cart-drawer__foot .primary-button {
    width: 100%;
    justify-content: center;
}

.cart-line {
    display: grid;
    grid-template-columns: 64px 1fr auto auto;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.cart-line img {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--line);
}

.cart-line__info {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.cart-line__info a {
    font-weight: 700;
    color: var(--text);
}

.cart-line__info span {
    color: var(--soft);
    font-size: 13px;
}

.cart-line__price {
    color: var(--gold-bright);
    font-size: 17px;
}

.cart-line__remove {
    width: 32px;
    height: 32px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: var(--soft);
    font-size: 22px;
    cursor: pointer;
}

.cart-line__remove:hover {
    border-color: rgba(255, 95, 103, 0.4);
    color: var(--red);
}

.cart-empty {
    color: var(--muted);
    padding: 20px 0;
}

.cart-empty a {
    color: var(--gold-bright);
}

.cart-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    color: var(--muted);
    font-weight: 700;
}

.cart-total strong {
    color: var(--text);
    font-size: 26px;
    font-family: Cinzel, Palatino, "Times New Roman", serif;
}

/* ------------------------------------------------------------ cart page */

.cart-page {
    width: min(90vw, 1180px);
    margin: 0 auto;
    padding: 40px 0 80px;
    display: grid;
    gap: 26px;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1.45fr 0.95fr;
    gap: 22px;
    align-items: start;
}

.cart-panel,
.checkout-panel,
.key-card,
.install-steps-panel,
.play-card,
.store-section {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: linear-gradient(145deg, rgba(12, 25, 33, 0.96), rgba(6, 13, 17, 0.94));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 22px 70px rgba(0, 0, 0, 0.22);
}

.cart-panel,
.checkout-panel {
    padding: 26px;
}

.cart-panel h2,
.checkout-panel h2 {
    margin: 0 0 12px;
    font-size: 24px;
}

.cart-continue {
    display: inline-block;
    margin-top: 16px;
    color: var(--muted);
}

.checkout-panel {
    position: sticky;
    top: 110px;
    display: grid;
    gap: 14px;
}

.checkout-field {
    display: grid;
    gap: 6px;
    font-weight: 700;
}

.checkout-field input {
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(3, 8, 11, 0.6);
    color: var(--text);
    font: inherit;
}

.checkout-field input:focus {
    outline: 2px solid var(--teal);
    outline-offset: 1px;
}

.checkout-agree {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.checkout-agree input {
    margin-top: 3px;
    accent-color: var(--gold);
}

.checkout-agree a {
    color: var(--gold-bright);
}

.paypal-slot {
    min-height: 150px;
}

body.cart-is-empty .paypal-slot {
    opacity: 0.45;
    pointer-events: none;
}

.checkout-divider {
    display: flex;
    align-items: center;
    margin: 18px 0;
    color: var(--soft);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.checkout-divider::before,
.checkout-divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.checkout-divider span {
    padding: 0 12px;
}

.stripe-pay-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    padding: 12px 18px;
    border: none;
    border-radius: 4px;
    background: #635bff;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(99, 91, 255, 0.35);
    transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.stripe-pay-button:hover {
    background: #7a73ff;
    box-shadow: 0 6px 18px rgba(99, 91, 255, 0.45);
    transform: translateY(-1px);
}

.stripe-pay-button:active {
    transform: translateY(0);
}

.stripe-pay-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

body.cart-is-empty .stripe-pay-button {
    opacity: 0.45;
    pointer-events: none;
}

.payment-methods {
    margin: 0;
    color: var(--soft);
    font-size: 13px;
    text-align: center;
}

.checkout-closed {
    padding: 16px;
    border: 1px dashed var(--line-strong);
    border-radius: 8px;
    background: rgba(215, 169, 71, 0.07);
}

.checkout-closed p {
    margin: 6px 0 0;
    color: var(--muted);
}

.checkout-assurances {
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
}

.checkout-assurances li::before {
    content: "\2713";
    margin-right: 8px;
    color: var(--green);
    font-weight: 800;
}

/* ------------------------------------------------------------ thank-you */

.thank-you-hero {
    position: relative;
    padding: 46px 40px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    background: radial-gradient(circle at 50% 0%, rgba(215, 169, 71, 0.18), transparent 60%), var(--panel);
}

.thank-you-hero h1 {
    margin: 8px 0 12px;
    font-size: clamp(30px, 4vw, 46px);
}

.thank-you-hero .hero-text {
    max-width: 640px;
    margin: 0 auto;
}

.thank-you-hero .hero-actions {
    justify-content: center;
    margin-top: 18px;
}

.thank-you-burst {
    position: absolute;
    inset: -40% -10% auto;
    height: 140%;
    background:
        radial-gradient(2px 2px at 20% 30%, var(--gold-bright), transparent),
        radial-gradient(2px 2px at 70% 20%, var(--teal), transparent),
        radial-gradient(3px 3px at 40% 70%, var(--gold), transparent),
        radial-gradient(2px 2px at 85% 60%, #fff, transparent),
        radial-gradient(2px 2px at 10% 80%, var(--teal), transparent);
    animation: gw-float-up 9s linear infinite;
    opacity: 0.8;
    pointer-events: none;
}

@keyframes gw-float-up {
    from { transform: translateY(20%); }
    to { transform: translateY(-20%); }
}

.key-list {
    display: grid;
    gap: 16px;
}

.key-card {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 18px;
    padding: 22px 26px;
}

.key-card h2 {
    margin: 4px 0 0;
    font-size: 22px;
}

.key-card--warn {
    grid-template-columns: 1fr;
    border-color: rgba(255, 95, 103, 0.4);
}

.key-value {
    display: flex;
    gap: 10px;
    align-items: center;
}

.key-value code {
    padding: 10px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: rgba(3, 8, 11, 0.7);
    color: var(--gold-bright);
    font: 700 17px/1 Consolas, "Courier New", monospace;
    letter-spacing: 0.06em;
    user-select: all;
}

.install-steps-panel {
    padding: 26px;
}

.install-steps {
    counter-reset: gw-step;
    margin: 14px 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.install-steps li {
    counter-increment: gw-step;
    position: relative;
    padding: 12px 14px 12px 56px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(3, 8, 11, 0.35);
    color: var(--muted);
    line-height: 1.5;
}

.install-steps li strong {
    color: var(--text);
}

.install-steps li::before {
    content: counter(gw-step);
    position: absolute;
    left: 14px;
    top: 50%;
    width: 30px;
    height: 30px;
    transform: translateY(-50%);
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, var(--gold-bright), var(--gold));
    color: #140f03;
    font-weight: 800;
}

/* ------------------------------------------------------------ Supporter Edition pages */

.store-page {
    width: min(90vw, 1260px);
    margin: 0 auto;
    padding: 34px 0 80px;
    display: grid;
    gap: 26px;
}

.store-hero {
    position: relative;
    isolation: isolate;
    min-height: 480px;
    display: grid;
    grid-template-columns: 1.45fr 0.8fr;
    align-items: end;
    gap: 30px;
    padding: 54px 48px 48px;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    overflow: hidden;
    color: #f4f7f8;
}

.store-hero__art {
    position: absolute;
    inset: -4%;
    z-index: -3;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
    animation: gw-hero-drift 26s ease-in-out infinite alternate;
}

.store-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(4, 8, 11, 0.95) 0%, rgba(4, 8, 11, 0.78) 45%, rgba(4, 8, 11, 0.35) 100%),
        linear-gradient(0deg, rgba(4, 8, 11, 0.92) 0%, transparent 55%);
}

.store-hero__embers {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        radial-gradient(2px 2px at 12% 80%, rgba(244, 201, 107, 0.9), transparent),
        radial-gradient(1.5px 1.5px at 32% 90%, rgba(41, 199, 212, 0.8), transparent),
        radial-gradient(2px 2px at 58% 85%, rgba(244, 201, 107, 0.7), transparent),
        radial-gradient(1.5px 1.5px at 76% 95%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(2.5px 2.5px at 90% 78%, rgba(244, 201, 107, 0.6), transparent);
    background-size: 100% 100%;
    animation: gw-embers 12s linear infinite;
    opacity: 0.75;
}

@keyframes gw-hero-drift {
    from { transform: scale(1.04) translate3d(-1.2%, 0, 0); }
    to { transform: scale(1.12) translate3d(1.2%, -1.2%, 0); }
}

@keyframes gw-embers {
    0% { transform: translateY(0); opacity: 0; }
    15% { opacity: 0.75; }
    100% { transform: translateY(-70%); opacity: 0; }
}

.store-hero h1 {
    margin: 8px 0 14px;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}

.store-hero h1 span {
    display: block;
    margin-top: 10px;
    color: var(--gold-bright);
    font-size: 0.36em;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.store-hero .hero-text {
    max-width: 620px;
    color: #d5dee2;
}

.store-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.store-platform {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    color: #cbd6db;
    font-size: 13px;
    font-weight: 700;
}

.price-card {
    display: grid;
    gap: 12px;
    padding: 26px;
    border: 1px solid rgba(244, 201, 107, 0.38);
    border-radius: 12px;
    background: linear-gradient(160deg, rgba(20, 30, 38, 0.86), rgba(6, 11, 15, 0.92));
    backdrop-filter: blur(14px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.price-card__label {
    margin: 0;
    color: var(--gold-bright);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.price-card__price {
    margin: 0 0 6px;
    font-family: Cinzel, Palatino, "Times New Roman", serif;
    font-size: 60px;
    line-height: 1;
    color: #fff;
}

.price-card__price span {
    font-size: 0.5em;
    vertical-align: top;
    margin-right: 2px;
    color: var(--gold-bright);
}

.price-card__price small {
    margin-left: 8px;
    font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    color: #9fb0b7;
}

.price-card .primary-button,
.price-card .secondary-button {
    width: 100%;
    justify-content: center;
}

.price-card__buy {
    position: relative;
    overflow: hidden;
    height: 52px;
    font-size: 17px;
}

.price-card__buy::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -60%;
    width: 40%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: skewX(-20deg);
    animation: gw-shimmer 4.5s ease-in-out infinite;
}

@keyframes gw-shimmer {
    0%, 60% { left: -60%; }
    100% { left: 130%; }
}

.price-card__points {
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 7px;
    color: #c3cfd4;
    font-size: 14px;
}

.price-card__points li::before {
    content: "\2713";
    margin-right: 8px;
    color: var(--green);
    font-weight: 800;
}

.price-card__standard {
    margin: 4px 0 0;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #9fb0b7;
    font-size: 13px;
}

.price-card__owned {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.price-card .muted-note a {
    color: var(--gold-bright);
}

.key-recover {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.key-recover > summary {
    cursor: pointer;
    color: var(--gold-bright);
    font-weight: 700;
    list-style: none;
}

.key-recover > summary::-webkit-details-marker {
    display: none;
}

.key-recover .support-form {
    margin-top: 12px;
}

.key-recover__keys {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.key-recover__keys .key-value {
    flex-wrap: wrap;
}

.key-recover__keys small {
    display: block;
    color: #9fb0b7;
    font-size: 12px;
}

.checkout-panel .key-recover {
    margin-top: 16px;
}

.store-split {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 22px;
    align-items: stretch;
}

.store-section {
    padding: 30px;
}

.store-section h2 {
    margin: 6px 0 14px;
    font-size: 30px;
}

.store-about p {
    color: var(--muted);
    line-height: 1.65;
}

.game-detail-media {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.game-detail-media .game-detail-slider {
    flex: 1;
}

.game-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 10px;
}

.game-thumbs button {
    padding: 0;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
    background: var(--panel);
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 160ms ease, border-color 160ms ease;
}

.game-thumbs button:hover,
.game-thumbs button.is-active {
    opacity: 1;
    border-color: var(--gold);
}

.game-thumbs img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-downloads {
    margin-top: 22px;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin: 6px 0 14px;
}

.download-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--teal-soft);
    color: var(--text);
    transition: border-color 160ms ease, transform 160ms ease;
}

.download-card:hover {
    border-color: var(--teal);
    transform: translateY(-2px);
}

.download-card strong {
    color: var(--teal);
    font-size: 17px;
}

.download-card span {
    color: var(--muted);
    font-size: 14px;
}

.download-card small {
    color: var(--soft);
    font-size: 12px;
}

.store-story {
    margin: 22px 0 6px;
    padding: 4px 0 4px 18px;
    border-left: 3px solid var(--gold);
}

.store-story h3 {
    margin: 0 0 6px;
    color: var(--gold-bright);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.store-story p {
    margin: 0 0 10px;
    font-style: italic;
}

.store-gallery {
    min-height: 340px;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.24);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.feature-card {
    position: relative;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(3, 8, 11, 0.4);
    transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(244, 201, 107, 0.4);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(244, 201, 107, 0.12);
}

.feature-card h3 {
    margin: 12px 0 8px;
    font-size: 19px;
}

.feature-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.feature-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid var(--line);
    color: var(--muted);
}

.feature-badge--se { color: var(--gold-bright); border-color: rgba(244, 201, 107, 0.45); background: rgba(215, 169, 71, 0.1); }
.feature-badge--early { color: var(--teal); border-color: rgba(41, 199, 212, 0.45); background: var(--teal-soft); }
.feature-badge--planned { color: var(--soft); border-style: dashed; }
.feature-badge--included { color: var(--green); border-color: rgba(66, 214, 136, 0.35); }

.compare-wrap {
    overflow-x: auto;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
}

.compare-table th,
.compare-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    text-align: center;
    color: var(--muted);
}

.compare-table thead th {
    color: var(--text);
    font-family: Cinzel, Palatino, "Times New Roman", serif;
    font-size: 18px;
}

.compare-table thead small {
    display: block;
    margin-top: 4px;
    font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
    font-size: 13px;
    color: var(--soft);
}

.compare-table tbody th {
    text-align: left;
    color: var(--text);
    font-weight: 700;
}

.compare-table .is-featured {
    background: rgba(215, 169, 71, 0.07);
}

.compare-table thead .is-featured {
    color: var(--gold-bright);
    box-shadow: inset 0 3px 0 var(--gold);
}

.compare-yes { color: var(--green); font-size: 20px; font-weight: 800; }
.compare-no { color: var(--soft); }

.store-faq details {
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
}

.store-faq summary {
    cursor: pointer;
    font-weight: 700;
    list-style: none;
}

.store-faq summary::-webkit-details-marker { display: none; }

.store-faq summary::before {
    content: "+";
    display: inline-block;
    width: 24px;
    color: var(--gold-bright);
    font-weight: 800;
    transition: transform 180ms ease;
}

.store-faq details[open] summary::before {
    transform: rotate(45deg);
}

.store-faq details p {
    margin: 10px 0 0 24px;
    color: var(--muted);
    line-height: 1.6;
}

.store-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 30px 34px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background:
        radial-gradient(circle at 100% 50%, rgba(215, 169, 71, 0.2), transparent 55%),
        linear-gradient(145deg, rgba(12, 25, 33, 0.96), rgba(6, 13, 17, 0.94));
}

.store-cta h2 {
    margin: 0 0 6px;
    font-size: 28px;
}

.store-cta p {
    margin: 0;
    color: var(--muted);
}

/* ------------------------------------------------------------ play pages */

.play-page {
    width: min(94vw, 1320px);
    margin: 0 auto;
    padding: 34px 0 80px;
    display: grid;
    gap: 22px;
}

.play-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.play-head h1 {
    margin: 6px 0 10px;
    font-size: clamp(34px, 4vw, 52px);
}

.play-head .hero-text {
    margin: 0;
}

.play-toolbar {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.play-stage {
    position: relative;
    height: var(--play-height, 720px);
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    overflow: hidden;
    background: #0b0f12;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.play-stage:fullscreen {
    height: 100vh;
    border-radius: 0;
}

.play-poster {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 18px;
    background-size: cover;
    background-position: center;
    transition: opacity 400ms ease, visibility 400ms;
}

.play-poster::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(4, 8, 11, 0.35), rgba(4, 8, 11, 0.85));
}

.play-stage.is-playing .play-poster {
    opacity: 0;
    visibility: hidden;
}

.play-launch {
    position: relative;
    width: 118px;
    height: 118px;
    border: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, var(--gold-bright), var(--gold));
    color: #140f03;
    cursor: pointer;
    box-shadow: 0 16px 50px rgba(215, 169, 71, 0.45);
    transition: transform 180ms ease;
}

.play-launch:hover {
    transform: scale(1.07);
}

.play-launch:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 4px;
}

.play-launch svg {
    width: 50px;
    height: 50px;
    margin-left: 6px;
    fill: currentColor;
}

.play-launch__ring {
    position: absolute;
    inset: -10px;
    border: 2px solid rgba(244, 201, 107, 0.6);
    border-radius: 50%;
    animation: gw-ring 2.2s ease-out infinite;
}

@keyframes gw-ring {
    0% { transform: scale(0.9); opacity: 0.9; }
    100% { transform: scale(1.45); opacity: 0; }
}

.play-poster__hint {
    position: relative;
    margin: 0;
    color: #e8eef0;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.play-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: #111;
}

.play-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.play-card {
    padding: 26px;
}

.play-card h2 {
    margin: 6px 0 14px;
    font-size: 26px;
}

.play-card > p {
    color: var(--muted);
    line-height: 1.6;
}

.controls-grid {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 10px 16px;
    margin: 0;
    align-items: center;
}

.controls-grid dt {
    margin: 0;
}

.controls-grid dd {
    margin: 0;
    color: var(--muted);
}

.controls-grid kbd {
    display: inline-block;
    min-width: 34px;
    padding: 5px 10px;
    border: 1px solid var(--line-strong);
    border-bottom-width: 3px;
    border-radius: 6px;
    background: rgba(3, 8, 11, 0.6);
    color: var(--text);
    font: 700 13px/1.2 "Source Sans 3", "Segoe UI", Arial, sans-serif;
    text-align: center;
}

.play-tips {
    margin: 0 0 18px;
    padding-left: 20px;
    color: var(--muted);
    line-height: 1.6;
}

/* ------------------------------------------------------------ scroll reveal */

.reveal-ready [data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 600ms ease, transform 600ms cubic-bezier(.2, .7, .2, 1);
}

.reveal-ready [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

/* ------------------------------------------------------------ small screens */

@media screen and (max-width: 900px) {
    .cart-layout,
    .store-hero,
    .store-split,
    .play-info {
        grid-template-columns: 1fr;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .store-hero {
        min-height: 0;
        padding: 30px 22px;
    }

    .checkout-panel {
        position: static;
    }

    .key-card {
        grid-template-columns: 1fr;
    }

    .play-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .play-stage {
        height: min(var(--play-height, 720px), 80vh);
    }

    .store-cta {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .store-hero__art,
    .store-hero__embers,
    .price-card__buy::after,
    .play-launch__ring,
    .thank-you-burst,
    .cart-link.is-bumped svg {
        animation: none !important;
    }

    .cart-drawer__panel,
    .cart-drawer__backdrop,
    .store-toast,
    .feature-card,
    .play-poster {
        transition: none !important;
    }
}

/* ------------------------------------------------------------ shelf links (Games page) */

.shelf-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    margin: 0 0 24px;
}

.shelf-link {
    display: grid;
    gap: 4px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(9, 18, 23, 0.8);
    color: var(--text);
    transition: border-color 160ms ease, transform 160ms ease;
}

.shelf-link:hover {
    border-color: var(--teal);
    transform: translateY(-2px);
}

.shelf-link strong {
    color: var(--teal);
    font-size: 17px;
}

.shelf-link span {
    color: var(--muted);
    font-size: 14px;
}

.shelf-link--play {
    border-color: rgba(215, 169, 71, 0.45);
    background: rgba(215, 169, 71, 0.08);
}

.shelf-link--play strong {
    color: var(--gold-bright);
}

/* ------------------------------------------------------------ Play Free portal */

.play-portal {
    width: min(90vw, 1280px);
    margin: 0 auto;
    padding: 34px 0 80px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 22px;
    align-items: start;
}

.portal-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(12, 25, 33, 0.96), rgba(6, 13, 17, 0.94));
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.24);
    transition: border-color 180ms ease, transform 180ms ease;
}

.portal-card:hover {
    border-color: rgba(215, 169, 71, 0.55);
    transform: translateY(-3px);
}

.portal-card__art {
    display: block;
    aspect-ratio: 16 / 10;
    background: var(--panel) center / cover no-repeat;
    border-bottom: 1px solid var(--line);
}

.portal-card__body {
    display: grid;
    gap: 10px;
    padding: 22px 24px 24px;
}

.portal-card__body h2 {
    margin: 0;
    font-size: 26px;
}

.portal-card__body p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.portal-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.portal-card__actions .primary-button,
.portal-card__actions .secondary-button {
    padding: 0 22px;
    white-space: nowrap;
}

.portal-howto {
    margin-top: 6px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(3, 8, 11, 0.45);
}

.portal-howto summary {
    cursor: pointer;
    color: var(--teal);
    font-weight: 700;
}

.portal-howto ol {
    margin: 12px 0 8px;
    padding-left: 20px;
    color: var(--muted);
    line-height: 1.6;
}

.portal-howto li + li {
    margin-top: 6px;
}

.portal-howto code {
    color: var(--gold-bright);
}

/* ------------------------------------------------------------ Backburner / Misc listings */

.shelf-list {
    display: grid;
    gap: 22px;
}

.shelf-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(12, 25, 33, 0.96), rgba(6, 13, 17, 0.94));
}

.shelf-card__art {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
    border-right: 1px solid var(--line);
}

.shelf-card__body {
    display: grid;
    align-content: center;
    gap: 10px;
    padding: 26px 28px;
}

.shelf-card__body h2 {
    margin: 0;
    font-size: 28px;
}

.shelf-card__body p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.shelf-card__body .shelf-card__note {
    padding: 10px 14px;
    border-left: 3px solid var(--gold);
    background: rgba(215, 169, 71, 0.08);
    color: var(--text);
}

.shelf-footer-note {
    margin-top: 22px;
    text-align: center;
}

@media (max-width: 760px) {
    .shelf-card {
        grid-template-columns: 1fr;
    }

    .shelf-card__art {
        min-height: 200px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .play-portal {
        grid-template-columns: 1fr;
    }
}

/* Home hero: the Play Free button stands out from the teal primary. */
.primary-button.play-free-button {
    color: #1a1204;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold));
    box-shadow: 0 12px 34px rgba(215, 169, 71, 0.28);
}

.shelf-card__body .tag {
    justify-self: start;
}

/* ------------------------------------------------------------ Donate + donation thank-you */

.donate-feature {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
    gap: 28px;
    align-items: center;
    margin-top: 28px;
    padding: 30px 32px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background:
        radial-gradient(circle at 85% 50%, rgba(215, 169, 71, 0.16), transparent 16rem),
        linear-gradient(145deg, rgba(12, 25, 33, 0.96), rgba(6, 13, 17, 0.94));
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.24);
}

.donate-feature h1,
.donate-feature h2 {
    margin: 6px 0 10px;
    font-size: 30px;
}

.donate-feature p {
    color: var(--muted);
    line-height: 1.6;
}

.donate-feature__button {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 24px 18px;
    border-radius: 10px;
    background: #f7f9fa;
}

.donate-feature__button form {
    margin: 0;
}

.donate-feature__button input[type="image"] {
    display: block;
    transform: scale(1.25);
    margin: 10px 0 6px;
}

.donate-secure {
    margin: 0;
    color: #4a5a63 !important;
    font-size: 13px;
    text-align: center;
}

.donate-perks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
    margin-top: 22px;
}

.donate-perks h2 {
    margin: 6px 0 10px;
    font-size: 24px;
}

.donate-perks p {
    color: var(--muted);
    line-height: 1.6;
}

.donate-perks a,
.donate-feature a {
    color: var(--gold-bright);
}

@media (max-width: 760px) {
    .donate-feature {
        grid-template-columns: 1fr;
        padding: 22px;
    }
}

.thank-you-hero h1 {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}


/* ================================================================ Light mode (all light-mode rules for this file)
   Colour tokens and the shared card, well and field styles are defined in desktop.css. */

/* Surfaces that stay dark in light mode keep the dark palette for their contents. */
.light-mode .store-hero,
.light-mode .play-stage,
.light-mode .store-toast {
    --text: #f4f7f8;
    --muted: #a4b3ba;
    --soft: #6f828c;
    --gold: #d7a947;
    --gold-bright: #f4c96b;
    --teal: #29c7d4;
    --green: #42d688;
    --red: #ff5f67;
    --line: rgba(129, 233, 238, 0.18);
    --line-strong: rgba(203, 163, 79, 0.42);
    --focus-ring: #f4c96b;
}

/* Cards and panels */
.light-mode :is(.cart-panel, .checkout-panel, .key-card, .install-steps-panel, .play-card, .store-section,
    .portal-card, .shelf-card, .shelf-link) {
    background: var(--lm-card);
    box-shadow: var(--lm-card-shadow);
}

.light-mode .store-cta {
    background:
        radial-gradient(circle at 100% 50%, rgba(215, 169, 71, 0.16), transparent 55%),
        var(--lm-card);
    box-shadow: var(--lm-card-shadow);
}

.light-mode .donate-feature {
    background:
        radial-gradient(circle at 85% 50%, rgba(215, 169, 71, 0.14), transparent 16rem),
        var(--lm-card);
    box-shadow: var(--lm-card-shadow);
}

.light-mode .shelf-link--play {
    background: rgba(215, 169, 71, 0.12);
}

.light-mode .portal-card:hover {
    box-shadow: inset 0 1px 0 #ffffff, 0 22px 54px rgba(10, 20, 30, 0.14);
}

/* Inner wells and fields */
.light-mode :is(.feature-card, .install-steps li, .portal-howto, .controls-grid kbd) {
    background: var(--lm-well);
}

.light-mode .checkout-field input {
    background: var(--lm-field);
    border-color: var(--line-ui);
}

.light-mode .key-value code {
    background: #fff8e6;
    color: #7a5610;
}

/* Gold fills keep the brand colour */
.light-mode .cart-count { background: #d7a947; }
.light-mode .install-steps li::before { background: linear-gradient(145deg, #f4c96b, #d7a947); }
.light-mode .play-launch { background: linear-gradient(145deg, #f4c96b, #d7a947); }
.light-mode .primary-button.play-free-button { background: linear-gradient(135deg, #f4c96b, #d7a947); }

/* Links inside running text need more than a colour change */
.light-mode .checkout-assurances a { color: var(--teal); }
.light-mode :is(.store-about, .play-card, .checkout-agree, .checkout-closed, .checkout-assurances, .store-faq, .donate-perks,
    .donate-feature, .cart-empty, .portal-howto, .shelf-card__body, .key-card, .install-steps-panel,
    .store-cta p, .thank-you-hero .hero-text) a:not(.primary-button, .secondary-button, .card-view-btn, .danger-btn) {
    text-decoration: underline;
    text-underline-offset: 2px;
}
