/* Gamesrift storefront — production additions on top of the design files
   (style, variants, main, home, pages, listing come from the approved mockups). */

/* chosen type: Sora + Nunito Sans (mockup font "G") */
:root { --display: "Sora", sans-serif; --body: "Nunito Sans", system-ui, sans-serif; }

/* flash messages */
.flashes { padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.flash { padding: 12px 16px; border-radius: var(--radius-s); font-weight: 600; font-size: 14px; border: 1px solid; }
.flash--ok { background: #e8f8f1; border-color: #b9ebd5; color: #0b7a52; }
.flash--bad { background: #fff0ee; border-color: #ffd3cc; color: #b42318; }

/* toast */
.gr-toast { position: fixed; z-index: 120; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 12px; background: var(--ink); color: #fff; font: 600 14px var(--body); box-shadow: 0 14px 34px -12px rgba(0, 0, 0, .5); transition: opacity .2s, transform .2s; }
.gr-toast.show { opacity: 1; transform: translate(-50%, 0); }
.gr-toast--bad { background: #b42318; }

/* out-of-stock cards and search results */
.cardA.is-oos .cardA__img img { filter: grayscale(.5); opacity: .85; }
.price--oos span { font: 700 14px var(--body); color: var(--mute); }
.s__oos { font-style: normal; font-size: 12px; font-weight: 700; color: var(--mute); }

/* logged-in header button */
.hdr__login--in { gap: 8px; }

/* login window: inline error */
.aw__err { margin: 4px 0 10px; padding: 10px 12px; border-radius: 10px; background: #fff0ee; color: #b42318; font-size: 13px; font-weight: 600; }
.aw__err[hidden] { display: none; }

/* FAQ answers are HTML from the admin */
.faq .faq__a { padding: 0 18px 16px; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.faq .faq__a p { margin: 0 0 8px; }
.faq[hidden] { display: none; }


/* the "equal halves" rule must not override the one-column layout on narrow screens */
@media (max-width: 980px) { .ftrX { grid-template-columns: 1fr; } }

/* listing: filters, sort, view and pages are links (crawlable, work without JS) */
.lview a { width: 36px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: var(--mute); }
.lview a.on { background: var(--ink); color: #fff; }
.dd__menu a { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; height: 40px; padding: 0 12px; border-radius: 10px; font: 500 14px var(--body); color: var(--ink-2); }
.dd__menu a:hover { background: var(--paper); color: var(--ink); }
.dd__menu a.on { color: var(--ink); font-weight: 700; background: var(--brand-soft); }
.dd__menu a.on::after { content: ""; width: 6px; height: 11px; border: solid var(--brand); border-width: 0 2.4px 2.4px 0; transform: rotate(45deg) translateY(-2px); }
.lpager__nums a, .lpager__nums .is-off { min-width: 40px; height: 40px; display: inline-grid; place-items: center; padding: 0 6px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-weight: 600; }
.lpager__nums a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.lpager__nums .is-off { opacity: .4; }
a.lpager__more { display: inline-flex; justify-content: center; }
.chips a.chip { display: inline-flex; align-items: center; }
a.fc, a.sw { color: inherit; }
.fc input[disabled] + .fc__box { opacity: 1; }
.fg__hid { display: contents; }
.fg__hid[hidden] { display: none; }
.lsub { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 18px; }
.lsub .chip { background: var(--card); color: var(--ink-2); border: 1px solid var(--line); display: inline-flex; align-items: center; }
.lsub .chip:hover { border-color: var(--ink); color: var(--ink); }
.lseo { margin-top: 40px; padding: 24px 26px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; color: var(--ink-2); font-size: 15px; line-height: 1.65; }
.lseo h2, .lseo h3 { color: var(--ink); margin: 18px 0 8px; }
.lseo > :first-child { margin-top: 0; }

/* listing.css prints "Out of stock" itself on sold-out cards */
.is-oos .price.price--oos::before { content: none; }

/* product page */
.pd__live[hidden] { display: none; }
.pd__nForm[hidden], .pd__nOk[hidden] { display: none; }
.pd__rating .tp__stars { display: inline-flex; gap: 2px; }
.pd__rating .tp__stars i { width: 18px; height: 18px; border-radius: 2px; }

/* cart / checkout / order */
.cl__it--bad { border-color: #ffd3cc; }
.cl__tags .bad { color: #b42318; font-weight: 700; }
.btn.is-disabled { opacity: .5; pointer-events: none; }
.btn.is-loading { opacity: .7; pointer-events: none; }
.pcode__ok { margin: 6px 0 0; font-size: 13px; color: #0b7a52; }
.pcode__err[hidden] { display: none; }
.chk .chk__edit[hidden] { display: none; }
.chk--locked .chk__body, .chk--locked .chk__next, .chk--done .chk__body, .chk--done > .af, .chk--done > .chk__note, .chk--done > .ac, .chk--done > .chk__next, .chk--done > .aw__err { display: none; }
.chk--done .who, .chk--done .who + input + .chk__note { display: flex; }
.cred { flex-wrap: wrap; }
.cred code { word-break: break-all; white-space: pre-wrap; }
.cred--file img { max-width: 100%; border-radius: 8px; border: 1px solid var(--line); }
.thanks--wait .thanks__ok--wait { background: var(--brand-soft); color: var(--brand-ink); }
.pf2__btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* account + auth pages */
.oc[hidden] { display: none; }
.empty--sm { padding: 34px 20px; }
.yi__img { max-width: 100%; border-radius: 8px; border: 1px solid var(--line); }
.tk { color: inherit; }
.authPage { display: flex; justify-content: center; padding: 20px 0 40px; }
.authPage .auth__box { position: static; transform: none; width: min(460px, 100%); max-height: none; box-shadow: var(--shadow); }
.authPage .aw__tabs a { flex: 1; display: grid; place-items: center; height: 40px; border-radius: 10px; font-weight: 600; color: var(--mute); }
.authPage .aw__tabs a.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }

/* content pages */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
#faqList details[hidden], #blogList .bp[hidden] { display: none; }
.faqP__list .empty[hidden], #blogNone[hidden] { display: none; }
.rvP { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin: 18px 0; }
.rvP .rv { width: auto; }
.rvP__f a { display: inline-flex; align-items: center; }
.rvP__form { margin-top: 30px; padding: 22px; }
.rvP__form h2 { margin-bottom: 12px; }
.art__share a, .art__share button { display: inline-flex; }

/* account alert: icon on the left, text, button on the right (the generic span rule stretched the icon) */
.alert > .ic { flex: none; width: 22px; height: 22px; }
.alert > .ic svg { width: 22px; height: 22px; }
/* header: the customer's name centred and cut with an ellipsis */
.hdr__login--in { justify-content: center; max-width: 220px; }
.hdr__login--in .hdr__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* product page bundles: the track slides by one card */
.bun__track { transition: transform .35s ease; }

/* social sign-in */
a.as__b { display: inline-flex; align-items: center; justify-content: center; gap: 10px; color: var(--ink); text-decoration: none; }
.as--full { display: flex; flex-direction: column; gap: 8px; }
.as--full .as__b { width: 100%; }
a.gbtn { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--ink); text-decoration: none; }
/* mini cart: bundle line is secondary; three advantages fit one line */
.mc__sum--save { padding-top: 10px; padding-bottom: 0; }
.mc__sum--save b { font: 700 15px var(--body); color: #0b7a52; }
.mc__sum--save + .mc__sum { border-top: 0; padding-top: 6px; }
.mc__trust { gap: 10px; flex-wrap: wrap; }
.mc__trust span { white-space: nowrap; font-size: 11.5px; }

/* ---------- mobile fixes (review 30 Oct) ---------- */
/* checkout notes: icon + one text block */
.chk__note > span:last-child { flex: 1; min-width: 0; line-height: 1.45; }
.chk__note .ic { flex: none; }
/* search suggestions: close button */
.s__head { align-items: center; }
.s__x { margin-left: 10px; width: 30px; height: 30px; border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 18px; line-height: 1; display: grid; place-items: center; flex: none; }
/* product chips never squeeze to a sliver */
.pf > span { flex-shrink: 0; max-width: 100%; }
@media (max-width: 640px) {
  /* banner: text sits at the left edge and only fades in (no sliding on phones) */
  .heroG .heroG__it .heroG__panel, .heroG--seal .heroG__it.on .heroG__panel, .heroG--seal .heroG__it:not(:first-child).on .heroG__panel { left: 20px; right: 20px; transform: none; }
  .heroG__it.on .heroG__panel { transition: opacity .35s; }
  .heroG__t { font-size: 30px; }
  /* reviews: one card at a time, centred, swipe sideways */
  .marq { mask: none; overflow: visible; }
  .marq__row { animation: none; width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 4px 8px; scrollbar-width: none; }
  .marq__row::-webkit-scrollbar { display: none; }
  .marq__row .rv { width: calc(100vw - 56px); scroll-snap-align: center; }
  .marq__row .rv[aria-hidden="true"] { display: none; }
  .marq__row--2 { display: none; }
  /* account: horizontal tabs, log out without the divider of the desktop list */
  .acc__nav .acc__out { margin-top: 0; border-top: 0; border-radius: 12px !important; }
}
@media (max-width: 480px) {
  /* header: the logged-in button shows the person icon (the name is hidden on phones) */
  .hdr__login--in .hdr__name { display: none; }
  .hdr__login--in .hdr__userIc { display: block; }
}
@media (max-width: 640px) {
  /* checkout: who is buying — name and e-mail on the left, log out under them */
  .who { flex-wrap: wrap; }
  .who > span:nth-child(2) { flex: 1; min-width: 0; }
  .who b, .who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .who .chk__edit { margin-left: 0; flex-basis: 100%; text-align: right; }
  /* account: all tabs visible as a 2-column grid */
  .acc__nav nav { display: grid !important; grid-template-columns: 1fr 1fr; gap: 6px; overflow: visible !important; }
  .acc__nav nav a { white-space: nowrap; }
}

/* ---------- review 31 Oct ---------- */
/* no dark flash on tap (iOS paints links with a grey box, the logo looked like a black square) */
html { -webkit-tap-highlight-color: transparent; }
.hdr__logo:focus:not(:focus-visible) { outline: none; }

/* card chips (platform · type · region) stay on one line; on narrow cards the globe icon goes first,
   then the platform keeps only its logo */
.cardA__body, .cardC__body { container-type: inline-size; }
.cardA__body .pf, .cardC__body .pf { flex-wrap: nowrap; overflow: hidden; }
.cardA__body .pf > span, .cardC__body .pf > span { flex: none; }
.cardA__body .pf > .pf__plat, .cardC__body .pf > .pf__plat { flex: 0 1 auto; min-width: 0; }
.cardA__body .pf__g, .cardC__body .pf__g { letter-spacing: .03em; }
@container (max-width: 290px) { .pf--chips .pf__g svg { display: none; } }
@container (max-width: 200px) {
  .pf--chips > span { padding: 0 6px; }
}
/* narrow cards (phone grid, phone list with the larger picture): the platform keeps only its logo */
@container (max-width: 220px) {
  .pf--chips .pf__plat:has(img) { font-size: 0; gap: 0; padding: 0 6px; }
}

@media (max-width: 640px) {
  /* category, list view: the cart button sits on the price line, so the text gets the full width */
  .lprods--list .cardC { align-items: stretch; }
  .lprods--list .cardC__img { aspect-ratio: auto; min-height: 80px; }
  .lprods--list .cardC__body { padding-right: 0; justify-content: center; gap: 6px; }
  .lprods--list .cardC__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; }
  .lprods--list .cardC .price { min-height: 36px; display: flex; align-items: center; padding-right: 46px; }
  .lprods--list .cardC .cartbtn { top: auto; bottom: 12px; margin-top: 0; width: 38px; height: 38px; }
  /* category, grid view: two compact cards per row */
  .lprods--grid .cardA__body { padding: 10px 10px 12px; }
  .lprods--grid .cardA__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
  .lprods--grid .cardA__foot { gap: 6px; }
  .lprods--grid .cardA__off { display: none; }
  .lprods--grid .cardA__foot .price s { font-size: 11px; }
  .lprods--grid .cardA .cartbtn { width: 36px; height: 36px; }

  /* category, list view: a bit smaller picture and chips so platform, type and region fit one line */
  .lprods--list .cardC { gap: 12px; }
  .lprods--list .cardC__img { width: 96px; }
  .lprods--list .pf--chips { gap: 4px; font-size: 11.5px; }
  .lprods--list .pf--chips > span { height: 24px; padding: 0 6px; }
  .lprods--list .pf--chips .pf__g { font-size: 10.5px; }
  /* home reviews: the card and the Trustpilot box take the full content width, one card per swipe */
  .marq__row { padding: 2px 0 8px; gap: 12px; }
  .marq__row .rv { width: calc(100vw - 32px); max-width: 100%; flex: none; scroll-snap-align: start; }
  .sec--reviews .tp { display: grid; width: 100%; }
  /* checkout: the three steps on one line, without the connecting bars */
  .steps3 { flex-wrap: nowrap; gap: 14px; font-size: 13px; white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
  .steps3 i { display: none; }
  .steps3 .on::before { margin-right: 5px; }
  /* checkout: "Not you? Log out" on the name line, top right */
  .who { flex-wrap: nowrap; align-items: flex-start; }
  .who > .acc__av { flex: none; }
  .who > span:nth-child(2) { padding-top: 4px; }
  .who .chk__edit { flex-basis: auto; margin-left: auto; padding-top: 4px; font-size: 13px; white-space: nowrap; text-align: right; }
}

/* product page: Edition / Platform pickers show 3 options, the rest open with "+N more" */
.pd__eds a.is-more { display: none; }
.pd__eds.open a.is-more { display: flex; }
.pd__edsMore { display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 10px 12px; border: 1.5px dashed var(--line-2); border-radius: 14px; background: none; font: 700 14px var(--body); color: var(--ink-2); cursor: pointer; }
.pd__edsMore:hover { border-color: var(--ink); color: var(--ink); }
.pd__pIc img { width: 100%; height: 100%; object-fit: contain; border-radius: 4px; }

/* How to activate: the instruction's own text under its steps */
.pd__insText { margin-top: 16px; }

/* Edition / Platform: on desktop "+N more" sits in the head line, the three options stay on one row
   (phones keep the button as a tile under the options) */
.pd__eds > .pd__edsHead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.pd__edsHead small { margin-bottom: 0; }
.pd__edsMore2 { padding: 2px 0; border: 0; background: none; font: 700 13px var(--body); color: var(--brand-ink); cursor: pointer; }
.pd__edsMore2:hover { text-decoration: underline; }
@media (min-width: 641px) { .pd__eds .pd__edsMore { display: none; } .pd__eds > div:last-child { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .pd__edsMore2 { display: none; } }
/* Platform option: icon and name on one line, the price under them */
.pd__platPick a { gap: 4px; }
.pd__pRow { display: flex; align-items: center; gap: 8px; min-width: 0; color: inherit !important; font-size: inherit !important; }
.pd__pRow .pd__pIc { flex: none; }
.pd__pRow b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* bundle deals: the product under the cursor is highlighted */
.bun__it { position: relative; border-radius: 20px; transition: background .2s, box-shadow .2s; }
.bun__it:hover { background: var(--brand-soft); box-shadow: inset 0 0 0 1.5px var(--brand); }
.bun__it:hover .bun__info > b { color: var(--brand-ink); }
.bun__it img { transition: transform .25s; }
.bun__it:hover img { transform: scale(1.03); }

/* category, list view on phones: every picture the same size (the stretched ones differed with the text height) */
@media (max-width: 640px) {
  .lprods--list .cardC { align-items: center; }
  .lprods--list .cardC__img { width: 96px; height: 72px; min-height: 0; aspect-ratio: auto; align-self: center; }
}

/* exactly 4 options: phones show all four (2×2) instead of "+1 more" */
@media (max-width: 640px) { .pd__eds--4 a.is-more { display: flex; } .pd__eds--4 .pd__edsMore { display: none; } }
/* desktop "+N more" a bit larger */
.pd__edsMore2 { font-size: 15px; }
/* category, list view on phones: larger pictures */
@media (max-width: 640px) { .lprods--list .cardC__img { width: 112px; height: 84px; } }

/* cards: wishlist heart next to the cart on hover; a bell on sold-out cards */
.cardA__buy { flex-direction: row; align-items: center; gap: 6px; }
.wishbtn { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); color: var(--ink-2); opacity: 0; transform: translateX(6px); transition: opacity .2s, transform .2s, color .2s, border-color .2s; flex: none; }
.wishbtn:hover { color: var(--brand); border-color: var(--brand); }
.wishbtn.on { color: var(--brand); opacity: 1; transform: none; }
.wishbtn.on svg path { fill: currentColor; }
.cardA:hover .wishbtn, .cardC:hover .wishbtn { opacity: 1; transform: none; }
@media (hover: none) { .wishbtn:not(.on) { display: none; } }
.cardA__buy .cartbtn { position: static; }
.cartbtn--bell { background: var(--paper); color: var(--ink-2); border: 1px solid var(--line); box-shadow: none; opacity: 1; transform: none; }
.cardA:hover .cartbtn--bell, .cardC:hover .cartbtn--bell { color: var(--brand); border-color: var(--brand); }
.cardC__buy { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 6px; }
.cardC__buy .cartbtn { position: static; margin: 0; }
@media (max-width: 640px) { .lprods--list .cardC__buy { top: auto; bottom: 12px; transform: none; } .lprods--list .cardC__buy .cartbtn { width: 38px; height: 38px; } }

/* "Out of stock" a bit bolder in cards and search results */
.price--oos span, .is-oos .price::before { font-weight: 800; color: var(--ink-2); }
.s__oos { font-weight: 800; color: var(--ink-2); }

/* category, list view on phones: pictures a little larger again */
@media (max-width: 640px) { .lprods--list .cardC__img { width: 124px; height: 93px; } }
/* room for the two buttons on the right of list cards */
.cardC__body { padding-right: 96px; }
@media (max-width: 640px) { .lprods--list .cardC__body { padding-right: 0; } .lprods--list .cardC .price { padding-right: 92px; } }
/* the bell keeps its quiet look (the card's hover paints cart buttons orange) */
.cardA .cartbtn--bell, .cardC .cartbtn--bell, .lprods--list .cartbtn--bell { background: var(--paper); color: var(--ink-2); border: 1px solid var(--line); box-shadow: none; opacity: 1; transform: none; }
.cardA:hover .cartbtn--bell, .cardC:hover .cartbtn--bell { background: var(--brand-soft); color: var(--brand); border-color: var(--brand); }
.cartbtn--bell svg { display: block; width: 19px; height: 19px; }
.cardA .wishbtn { width: 42px; height: 42px; }

/* Trustpilot box on phones: the stars right after "Excellent", not pushed to the far edge */
@media (max-width: 640px) { .tp { grid-template-columns: auto auto; justify-content: start; } }
