/* ==========================================================================
   PSN HEAVEN — Core stylesheet
   Built FLEXBOX-ONLY for a clean 1:1 rebuild in Elementor.
   No CSS grid. Every section = a flex container -> Elementor Container widget.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --ink:            #07070C;   /* page background            */
  --surface:        #0F0F18;   /* cards / raised panels      */
  --surface-2:      #161622;   /* hover + nested panels      */
  --line:           #23233A;   /* hairline borders           */

  --violet:         #8B5CF6;   /* primary accent             */
  --violet-lt:      #A78BFA;
  --violet-dk:      #6D28D9;
  --blue:           #38BDF8;   /* secondary accent           */
  --green:          #34D399;   /* success / savings          */

  --text:           #FFFFFF;
  --text-soft:      #B9B9CC;
  --text-mute:      #7A7A93;

  /* Type */
  --font-head: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing rhythm */
  --gap-xs: 8px;
  --gap-sm: 16px;
  --gap-md: 24px;
  --gap-lg: 40px;
  --gap-xl: 72px;
  --section-y: 104px;

  --radius:    14px;
  --radius-lg: 22px;

  --shadow:      0 18px 44px rgba(0, 0, 0, .5);
  --glow-violet: 0 0 0 1px rgba(139, 92, 246, .35), 0 14px 40px rgba(139, 92, 246, .22);

  --wrap: 1200px;
}

/* --------------------------------------------------------------------------
   2. RESET
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* `height: auto` is essential: the width/height HTML attributes are
   presentation hints that otherwise pin the rendered height, squashing images
   and cancelling any aspect-ratio set further down. */
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0 0 var(--gap-sm);
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }
h4 { font-size: 1.05rem; }
p  { margin: 0 0 var(--gap-sm); color: var(--text-soft); }

:focus-visible { outline: 2px solid var(--violet-lt); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--violet); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   3. LAYOUT PRIMITIVES  (all flexbox — maps to Elementor Containers)
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: var(--section-y) 0; }
.section--tight { padding: 64px 0; }

/* Vertical flex stack */
.stack { display: flex; flex-direction: column; }

/* Horizontal flex row that wraps — the workhorse */
.row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-md);
}
.row--lg   { gap: var(--gap-lg); }
.row--center { align-items: center; }
.row--middle { justify-content: center; }

/* Column widths (percentage-based, exactly how Elementor handles them) */
.col-2  { width: calc(50%    - (var(--gap-md) / 2)); }
.col-3  { width: calc(33.333% - (var(--gap-md) * 2 / 3)); }
.col-4  { width: calc(25%    - (var(--gap-md) * 3 / 4)); }
.col-2-lg { width: calc(50%  - (var(--gap-lg) / 2)); }
.col-3-lg { width: calc(33.333% - (var(--gap-lg) * 2 / 3)); }

.text-center { text-align: center; }

/* Section heading block */
.head { max-width: 720px; margin: 0 auto var(--gap-lg); }
.head--left { margin-left: 0; text-align: left; }
.head p { font-size: 1.08rem; margin-bottom: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--violet-lt);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--violet);
  border-radius: 2px;
}
.head.text-center .eyebrow::before { display: none; }

/* --------------------------------------------------------------------------
   4. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .97rem;
  letter-spacing: .01em;
  padding: 15px 30px;
  border-radius: 100px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  white-space: nowrap;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(135deg, var(--violet) 0%, var(--violet-dk) 100%);
  color: #fff;
  box-shadow: var(--glow-violet);
}
.btn--primary:hover { box-shadow: 0 0 0 1px rgba(139,92,246,.6), 0 18px 46px rgba(139,92,246,.4); }

.btn--ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255,255,255,.02);
}
.btn--ghost:hover { border-color: var(--violet); background: rgba(139,92,246,.1); }

.btn--tg { background: #229ED9; color: #fff; }
.btn--tg:hover { background: #1c8ec2; box-shadow: 0 14px 36px rgba(34,158,217,.34); }

.btn--sm    { padding: 11px 22px; font-size: .88rem; }
.btn--block { width: 100%; }

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* --------------------------------------------------------------------------
   5. HEADER + NAV
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 7, 12, .82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-md);
  min-height: 76px;
}

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { width: 42px; height: 42px; }
.brand__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.16rem;
  letter-spacing: .04em;
  line-height: 1.1;
}
.brand__name span { color: var(--violet-lt); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 9px 15px;
  border-radius: 8px;
  font-size: .95rem;
  color: var(--text-soft);
  transition: color .16s ease, background .16s ease;
}
.nav a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav a.is-active { color: var(--text); font-weight: 600; }

.header__actions { display: flex; align-items: center; gap: 12px; }

.lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: .84rem;
  font-weight: 600;
  color: var(--text-soft);
  transition: border-color .16s ease, color .16s ease;
}
.lang:hover { border-color: var(--violet); color: var(--text); }

/* Header cart. Not a .btn, so it stays visible below 1024px where the
   header's buttons are hidden. The count badge shows only when non-zero. */
.cart-link {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--text-soft);
  transition: border-color .16s ease, color .16s ease;
}
.cart-link:hover { border-color: var(--violet); color: var(--text); }
.cart-link svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cart-link__count {
  position: absolute; top: -4px; inset-inline-end: -4px;
  min-width: 19px; height: 19px; padding: 0 5px; border-radius: 100px;
  display: flex; align-items: center; justify-content: center;
  font-size: .68rem; font-weight: 700; background: var(--violet); color: #fff;
}
.cart-link__count[hidden] { display: none; }
/* The cart icon added ~54px to the header, which pushed the burger 11px off a
   375px phone (measured 30 Sep). Tighten the header on narrow screens only. */
@media (max-width: 767px) {
  .header__inner { gap: 12px; }
  .header__actions { gap: 8px; }
  .cart-link { width: 38px; height: 38px; }
  /* 30 Sep: the account icon joined the cart. The language pill steps aside on
     phones - the mobile menu already carries the other-language link. */
  .header__actions .lang { display: none; }
  .brand { gap: 9px; }
  .brand img { width: 36px; height: 36px; }
  .brand__name { font-size: 1.02rem; }
}

/* Hamburger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 11px;
}
.burger span {
  display: block; height: 2px; width: 100%;
  background: var(--text); border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 12px 24px 26px;
  border-bottom: 1px solid var(--line);
  background: var(--ink);
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  padding: 14px 4px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  border-bottom: 1px solid rgba(35,35,58,.6);
}
.mobile-nav .btn { margin-top: 18px; }

/* --------------------------------------------------------------------------
   6. HERO
   -------------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media video,
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7,7,12,.72) 0%, rgba(7,7,12,.82) 45%, var(--ink) 100%),
    radial-gradient(70% 55% at 22% 45%, rgba(109,40,217,.4) 0%, transparent 70%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 640px;
  padding: 120px 0 96px;
  max-width: 760px;
}
.hero h1 { margin-bottom: 22px; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--violet-lt), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead { font-size: 1.2rem; max-width: 560px; margin-bottom: 32px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }

.hero__proof { display: flex; flex-wrap: wrap; gap: 30px; }
.hero__proof li { display: flex; flex-direction: column; }
.hero__proof strong {
  font-family: var(--font-head);
  font-size: 1.7rem;
  line-height: 1.1;
}
/* Direct child only — a nested span (e.g. an LTR-isolated number inside the
   <strong>) must keep the heading size, not shrink to the label size. */
.hero__proof li > span { font-size: .84rem; color: var(--text-mute); }

/* --------------------------------------------------------------------------
   7. CARDS + ICON BOXES  (-> Elementor Icon Box widget)
   -------------------------------------------------------------------------- */
.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(139,92,246,.5); background: var(--surface-2); }
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }

.icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(139,92,246,.14);
  border: 1px solid rgba(139,92,246,.3);
  margin-bottom: 20px;
  flex-shrink: 0;
}
.icon svg { width: 24px; height: 24px; stroke: var(--violet-lt); }
.icon--blue { background: rgba(56,189,248,.13); border-color: rgba(56,189,248,.3); }
.icon--blue svg { stroke: var(--blue); }
.icon--green { background: rgba(52,211,153,.13); border-color: rgba(52,211,153,.3); }
.icon--green svg { stroke: var(--green); }

/* Trust strip */
.trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(139,92,246,.05), transparent);
}
.trust .row { gap: var(--gap-md); }
.trust__item { display: flex; align-items: flex-start; gap: 14px; }
.trust__item .icon { width: 42px; height: 42px; margin-bottom: 0; border-radius: 11px; }
.trust__item .icon svg { width: 20px; height: 20px; }
/* Card headings are h2 for a valid outline (I-12); font-size is restated here
   because the base h2 rule is display-sized and would balloon them. */
.trust__item h2 { margin: 0 0 3px; font-family: var(--font-head); font-size: 1.05rem; }
.trust__item p { margin: 0; font-size: .88rem; color: var(--text-mute); }

/* Numbered steps */
.step__num {
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(150deg, var(--violet-lt), var(--violet-dk));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}

/* --------------------------------------------------------------------------
   8. GAME CARDS
   -------------------------------------------------------------------------- */
.game {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.game:hover {
  transform: translateY(-6px);
  border-color: rgba(139,92,246,.55);
  box-shadow: var(--shadow);
}
.game__art { position: relative; overflow: hidden; }
/* Since 30 Sep the art and title link to the product page (PLAN-SHOP §3.1). */
a.game__art { display: block; }
.game__title a:hover { color: var(--violet-lt); }
/* Square tiles. The stored image is already composed as a 1:1 tile (cover art
   centred over a blurred backdrop of itself), so nothing is cropped here. */
.game__art img {
  width: 100%;
  height: auto;          /* REQUIRED: the width/height HTML attributes are
                            presentation hints and would otherwise pin the
                            height, making aspect-ratio below do nothing. */
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform .5s ease;
}
.game:hover .game__art img { transform: scale(1.05); }

.game__tag {
  position: absolute;
  top: 14px; left: 14px;
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 100px;
  font-family: var(--font-head);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: rgba(7,7,12,.8);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
}
.game__save {
  position: absolute;
  top: 14px; right: 14px;
  padding: 6px 12px;
  border-radius: 100px;
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 700;
  background: var(--green);
  color: #04231A;
}

/* Pre-order (unreleased) cards — amber instead of the green savings badge, so
   "can't ship yet" is obvious at a glance rather than buried in the copy. */
.game__soon {
  position: absolute;
  top: 14px; right: 14px;
  padding: 6px 12px;
  border-radius: 100px;
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  background: #FBBF24;
  color: #2A1A00;
}
.game--soon { border-color: rgba(251, 191, 36, .32); }
.game--soon:hover { border-color: rgba(251, 191, 36, .6); }

.btn--soon {
  background: rgba(251, 191, 36, .14);
  border: 1px solid rgba(251, 191, 36, .5);
  color: #FBBF24;
}
.btn--soon:hover {
  background: rgba(251, 191, 36, .22);
  border-color: #FBBF24;
  box-shadow: 0 14px 34px rgba(251, 191, 36, .18);
}

.game__body { display: flex; flex-direction: column; flex-grow: 1; padding: 22px; }
.game__title { font-size: 1.08rem; margin-bottom: 6px; }
.game__meta { font-size: .82rem; color: var(--text-mute); margin-bottom: 18px; }

.game__price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 18px; }
.game__now {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
}
.game__was { font-size: .95rem; color: var(--text-mute); text-decoration: line-through; }

.game__body .btn { margin-top: auto; }

/* Filter chips */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: var(--gap-lg); }
.chip {
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-soft);
  transition: all .18s ease;
}
.chip:hover { border-color: var(--violet); color: var(--text); }
.chip.is-active { background: var(--violet); border-color: var(--violet); color: #fff; }

/* Console sub-filter row (29 Aug 2026). Only rendered while Games or
   Pre-Orders is the active category - PS5/PS4 mean nothing for a gift card.
   Sits tight under the category row and reads as subordinate to it. */
.filters--sub { margin-top: calc(var(--gap-lg) * -1 + 10px); margin-bottom: var(--gap-lg); }
/* .filters sets display:flex, which BEATS the [hidden] attribute's default
   display:none - so the console row rendered on load despite being hidden.
   Explicit rule, or the attribute is decorative. */
.filters[hidden] { display: none; }
.chip--sm { font-size: .82rem; padding: 7px 18px; opacity: .92; }
.chip--sm.is-active { opacity: 1; }
.chip:disabled { opacity: .32; cursor: not-allowed; border-color: var(--line); }
.chip:disabled:hover { border-color: var(--line); color: inherit; }


/* --------------------------------------------------------------------------
   9. COMPARISON TABLE  (flex rows — Elementor-safe)
   -------------------------------------------------------------------------- */
.compare {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}
.compare__row { display: flex; border-bottom: 1px solid var(--line); }
.compare__row:last-child { border-bottom: 0; }
.compare__row--head { background: rgba(139,92,246,.09); }
.compare__row--head .compare__cell { font-family: var(--font-head); font-weight: 700; color: var(--text); }
.compare__cell {
  flex: 1 1 0;
  padding: 18px 22px;
  font-size: .95rem;
  color: var(--text-soft);
  border-right: 1px solid var(--line);
}
.compare__cell:last-child { border-right: 0; }
.compare__cell strong { color: var(--text); }

/* --------------------------------------------------------------------------
   10. TESTIMONIALS + STAR RATING
   -------------------------------------------------------------------------- */
.quote {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
}
.stars { display: flex; gap: 3px; margin-bottom: 16px; }
.stars svg { width: 17px; height: 17px; fill: #FBBF24; }
.quote__text { font-size: 1.05rem; color: var(--text); margin-bottom: 20px; flex-grow: 1; }
.quote__by { display: flex; align-items: center; gap: 12px; }
.quote__avatar {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(140deg, var(--violet), var(--violet-dk));
  font-family: var(--font-head); font-weight: 700; font-size: .9rem;
}
.quote__name { font-weight: 600; font-size: .92rem; line-height: 1.3; }
.quote__src { font-size: .8rem; color: var(--text-mute); }

/* --------------------------------------------------------------------------
   11. ACCORDION  (-> Elementor Accordion widget)
   -------------------------------------------------------------------------- */
.acc { display: flex; flex-direction: column; gap: 12px; max-width: 820px; margin: 0 auto; width: 100%; }
.acc__item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.acc__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 20px 24px;
  text-align: left;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.02rem;
}
.acc__q:hover { color: var(--violet-lt); }
.acc__q::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--violet-lt);
  transition: transform .25s ease;
  flex-shrink: 0;
  line-height: 1;
}
.acc__item.is-open .acc__q::after { transform: rotate(45deg); }
.acc__a { display: none; padding: 0 24px 22px; }
.acc__a p:last-child { margin-bottom: 0; }
.acc__item.is-open .acc__a { display: block; }

/* --------------------------------------------------------------------------
   12. CTA BAND
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(139,92,246,.35);
  background:
    radial-gradient(80% 130% at 12% 0%, rgba(109,40,217,.42) 0%, transparent 62%),
    var(--surface);
  padding: 64px 56px;
  overflow: hidden;
}
.cta-band .row { align-items: center; justify-content: space-between; }
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   13. FORMS
   -------------------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: var(--gap-sm); }
.field label { font-size: .88rem; font-weight: 600; color: var(--text-soft); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: .97rem;
  transition: border-color .16s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--violet); outline: none; }
.field textarea { resize: vertical; min-height: 130px; }
.field__hint { font-size: .8rem; color: var(--text-mute); }

.note {
  display: flex;
  gap: 12px;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(56,189,248,.3);
  background: rgba(56,189,248,.07);
  font-size: .9rem;
  color: var(--text-soft);
}
.note svg { width: 20px; height: 20px; stroke: var(--blue); flex-shrink: 0; margin-top: 2px; }

/* Order summary */
.summary {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky;
  top: 100px;
}
.summary__line { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; font-size: .95rem; color: var(--text-soft); }
.summary__line--total {
  border-top: 1px solid var(--line);
  margin-top: 10px; padding-top: 18px;
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
}
.summary__art {
  width: 100%; border-radius: var(--radius); overflow: hidden; margin-bottom: 20px;
  border: 1px solid var(--line);
}
.summary__art img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

/* --------------------------------------------------------------------------
   14. PAGE HEADER (inner pages)
   -------------------------------------------------------------------------- */
.page-head {
  padding: 76px 0 56px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(62% 130% at 50% 0%, rgba(109,40,217,.24) 0%, transparent 66%);
}
.page-head .head { margin-bottom: 0; }

.breadcrumb { display: flex; gap: 8px; font-size: .85rem; color: var(--text-mute); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--violet-lt); }

/* Long-form legal copy */
.prose { max-width: 800px; }
.prose h2 { font-size: 1.5rem; margin-top: 44px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { display: flex; flex-direction: column; gap: 10px; margin: 0 0 var(--gap-sm); }
/* Hanging em-dash marker. Deliberately NOT display:flex - that makes every
   inline child (<strong>, <a>) its own flex item, so any list item containing
   a link or bold run renders as several squeezed columns instead of a
   sentence. It had been doing exactly that on privacy.html since launch.
   Logical properties so the marker flips side automatically under dir="rtl". */
.prose li { position: relative; padding-inline-start: 22px; color: var(--text-soft); }
.prose li::before {
  content: "—"; color: var(--violet);
  position: absolute; inset-inline-start: 0; top: 0;
}

/* Checklists */
.checks { display: flex; flex-direction: column; gap: 13px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-soft); }
.checks svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 3px; stroke: var(--green); }
.checks--no svg { stroke: #F87171; }

/* --------------------------------------------------------------------------
   15. FOOTER
   -------------------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); padding: 64px 0 32px; background: #05050A; }
.footer__top { display: flex; flex-wrap: wrap; gap: var(--gap-lg); justify-content: space-between; margin-bottom: 48px; }
.footer__brand { width: 320px; max-width: 100%; }
.footer__brand p { font-size: .92rem; margin-top: 16px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; min-width: 150px; }
.footer__col h2 {
  font-family: var(--font-head);
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-mute); margin: 0 0 4px;
}
.footer__col a { font-size: .93rem; color: var(--text-soft); }
.footer__col a:hover { color: var(--violet-lt); }

.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border: 1px solid var(--line); border-radius: 11px;
  transition: all .18s ease;
}
.socials a:hover { border-color: var(--violet); background: rgba(139,92,246,.12); }
.socials svg { width: 19px; height: 19px; fill: currentColor; }

.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 14px;
  justify-content: space-between; align-items: center;
  padding-top: 26px; border-top: 1px solid var(--line);
  font-size: .84rem; color: var(--text-mute);
}
.disclaimer {
  margin-top: 18px;
  font-size: .78rem;
  line-height: 1.6;
  color: var(--text-mute);
}

/* --------------------------------------------------------------------------
   16. RESPONSIVE  (Elementor breakpoints: 1024 tablet / 767 mobile)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  :root { --section-y: 76px; }
  .nav, .header__actions .btn { display: none; }
  .burger { display: flex; }
  .col-3, .col-3-lg, .col-4 { width: calc(50% - (var(--gap-md) / 2)); }
  .cta-band { padding: 48px 36px; }
  .hero__inner { min-height: 560px; }
  .summary { position: static; }
}

@media (max-width: 767px) {
  body { font-size: 16px; }
  :root { --section-y: 60px; --gap-lg: 28px; }

  .col-2, .col-3, .col-4, .col-2-lg, .col-3-lg { width: 100%; }

  .hero__inner { min-height: 500px; padding: 76px 0 60px; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .hero__proof { gap: 22px; }
  .hero__proof li { width: calc(50% - 11px); }

  .card { padding: 26px; }
  .cta-band { padding: 38px 24px; }
  .cta-band .row { flex-direction: column; align-items: flex-start; }

  /* Comparison table stacks into rows on mobile */
  .compare__row { flex-direction: column; }
  .compare__cell { border-right: 0; border-bottom: 1px solid var(--line); padding: 14px 18px; }
  .compare__row:last-child .compare__cell:last-child { border-bottom: 0; }
  .compare__row--head { display: none; }
  .compare__cell[data-label]::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-head);
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-mute);
    margin-bottom: 4px;
  }

  .footer__top { gap: 32px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* --------------------------------------------------------------------------
   17. MOTION PREFERENCES
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Reveal-on-scroll (progressive enhancement — content is visible without JS) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   18. PRODUCT PAGE — /game/<slug>/  (PLAN-SHOP.md §3.1)
   Flexbox only, like everything above. Logical properties (inline-start/end)
   so the Arabic mirror needs no overrides in rtl.css.
   -------------------------------------------------------------------------- */
.pdp-hero {
  position: relative;
  padding: 40px 0 72px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  overflow: clip;   /* clip, not hidden: hidden makes this a scroll container and kills the sticky buy box */
  isolation: isolate;
}
/* Blurred first screenshot behind the hero, darkened to keep text contrast. */
.pdp-hero__bg {
  position: absolute; inset: -40px;
  z-index: -1;
  background-size: cover; background-position: center;
  filter: blur(38px) saturate(1.2);
  opacity: .32;
}
.pdp-hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,7,12,.55) 0%, var(--ink) 92%);
}
.pdp-hero .breadcrumb { margin-bottom: 22px; flex-wrap: wrap; }

.pdp { display: flex; flex-wrap: wrap; gap: var(--gap-lg); align-items: flex-start; }
.pdp__media { flex: 1 1 560px; min-width: 0; }
/* Grows to full width when it wraps under the gallery (tablet/phone), but
   never wider than a comfortable column beside it on desktop. */
.pdp__buy   { flex: 1 1 340px; min-width: 0; }
@media (min-width: 1025px) { .pdp__buy { max-width: 420px; } }

/* Gallery */
.gallery__main {
  position: relative; display: block; width: 100%;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface);
  cursor: zoom-in;
}
.gallery__main img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.gallery__zoom {
  position: absolute; inset-inline-end: 14px; bottom: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 100px;
  font-size: .75rem; font-weight: 600;
  background: rgba(7,7,12,.75); backdrop-filter: blur(8px);
  border: 1px solid var(--line);
}
.gallery__zoom svg { width: 14px; height: 14px; }
.gallery__thumbs {
  display: flex; gap: 10px; margin-top: 12px;
  overflow-x: auto; padding-bottom: 6px;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.gallery__thumb {
  flex: 0 0 116px; border-radius: 10px; overflow: hidden;
  border: 2px solid transparent; opacity: .6;
  transition: opacity .2s ease, border-color .2s ease;
}
.gallery__thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.gallery__thumb:hover { opacity: 1; }
.gallery__thumb[aria-current="true"] { opacity: 1; border-color: var(--violet); }

/* Buy box */
.buybox {
  display: flex; flex-direction: column;
  background: rgba(15,15,24,.86); backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px;
}
.buybox__plats { display: flex; gap: 8px; margin-bottom: 14px; }
.buybox__plat {
  padding: 5px 11px; border-radius: 100px;
  font-family: var(--font-head); font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  border: 1px solid var(--line); background: var(--surface-2);
}
.buybox h1 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin-bottom: 8px; }
.buybox__by { font-size: .88rem; color: var(--text-mute); margin-bottom: 20px; }

.metascore {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; margin-bottom: 22px;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface-2);
  transition: border-color .2s ease;
}
.metascore:hover { border-color: rgba(139,92,246,.5); }
/* Metacritic's own colour bands, so the number reads the way players know it. */
.metascore__num {
  flex: 0 0 52px; height: 52px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 1.45rem; font-weight: 700;
  background: #66CC33; color: #0B1F00;
}
.metascore--mixed .metascore__num { background: #FFCC33; color: #2A1D00; }
.metascore--bad   .metascore__num { background: #FF6874; color: #2A0004; }
.metascore__label { display: flex; flex-direction: column; line-height: 1.35; }
.metascore__label strong { font-family: var(--font-head); font-size: .95rem; }
.metascore__label span { font-size: .8rem; color: var(--text-mute); }

.buybox__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px 12px; margin-bottom: 6px; }
.buybox__now { font-family: var(--font-head); font-size: 2.3rem; font-weight: 700; line-height: 1; }
.buybox__was { color: var(--text-mute); text-decoration: line-through; }
.buybox__save {
  padding: 5px 11px; border-radius: 100px;
  font-family: var(--font-head); font-size: .75rem; font-weight: 700;
  background: var(--green); color: #04231A;
}
.buybox__actions { display: flex; gap: 10px; }
.buybox__actions > .btn { flex: 1 1 0; min-width: 0; padding-left: 14px; padding-right: 14px; }
.btn--cart {
  border: 1px solid rgba(139,92,246,.55); color: var(--text);
  background: rgba(139,92,246,.1);
}
.btn--cart:hover { border-color: var(--violet); background: rgba(139,92,246,.2); }
.btn--cart svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.buybox__slot { font-size: .82rem; color: var(--text-mute); margin: 0 0 20px; }
.buybox__slot a { color: var(--violet-lt); }
.buybox__trust { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.buybox__trust li { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--text-soft); }
.buybox__trust svg { width: 18px; height: 18px; flex-shrink: 0; stroke: var(--green); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.buybox--soon { border-color: rgba(251, 191, 36, .4); }
.buybox__soon { color: #FBBF24; font-size: .88rem; font-weight: 600; margin: 0 0 20px; }

/* About + facts */
.pdp-about { display: flex; flex-wrap: wrap; gap: var(--gap-lg); }
.pdp-about__text { flex: 1 1 520px; min-width: 0; }
.pdp-about__text p { font-size: 1.08rem; color: var(--text-soft); }
.facts { flex: 0 1 360px; min-width: 0; display: flex; flex-direction: column; margin: 0;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); padding: 8px 22px; }
.facts__row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.facts__row:last-child { border-bottom: 0; }
.facts__row dt { color: var(--text-mute); flex-shrink: 0; }
.facts__row dd { margin: 0; text-align: end; }

/* Trailer: a thumbnail until pressed, so YouTube's ~1 MB of script never
   loads for visitors who don't play it. */
.trailer {
  position: relative; display: block; width: 100%; max-width: 960px;
  aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); background: #000;
}
.trailer img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .2s ease; }
.trailer:hover img { opacity: 1; }
.trailer__play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 84px; height: 84px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--violet); box-shadow: var(--glow-violet);
  transition: transform .2s ease;
}
.trailer:hover .trailer__play { transform: translate(-50%, -50%) scale(1.08); }
.trailer__play svg { width: 30px; height: 30px; fill: #fff; margin-left: 4px; }
.trailer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.trailer__cap { font-size: .82rem; color: var(--text-mute); margin-top: 12px; }

/* Reviews */
.reviews-empty {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 44px 24px; border: 1px dashed var(--line); border-radius: var(--radius-lg);
}
.reviews-empty .stars { display: flex; gap: 4px; margin-bottom: 14px; }
.reviews-empty .stars svg { width: 26px; height: 26px; fill: var(--surface-2); stroke: var(--line); }
.reviews-empty h3 { margin-bottom: 6px; }
.reviews-empty p { max-width: 460px; font-size: .95rem; margin: 0; }

/* Lightbox: native <dialog>, so Esc and focus trapping come for free. */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: rgba(4,4,8,.94); color: var(--text);
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: transparent; }
.lightbox img { max-width: min(92vw, 1920px); max-height: 86vh; width: auto; border-radius: 10px; }
.lightbox__btn {
  position: absolute; width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08); border: 1px solid var(--line);
}
.lightbox__btn:hover { background: rgba(139,92,246,.3); }
.lightbox__btn svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lightbox__close { top: 18px; inset-inline-end: 18px; }
.lightbox__prev  { inset-inline-start: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__next  { inset-inline-end: 18px; top: 50%; transform: translateY(-50%); }
/* Arrows point the reading direction's way. */
[dir="rtl"] .lightbox__prev svg, [dir="rtl"] .lightbox__next svg { transform: scaleX(-1); }
.lightbox__count { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; font-size: .85rem; color: var(--text-mute); }

/* Gift cards + PS Plus product pages: square art instead of a gallery. */
.sku-art {
  max-width: 520px; margin-inline: auto;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.sku-art img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

/* Numbered steps (gift card "How to redeem"). */
.steps { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 0; list-style: none; }
.steps li { display: flex; align-items: flex-start; gap: 14px; }
.steps p { margin: 0; color: var(--text-soft); }
.steps__n {
  flex: 0 0 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: .9rem;
  background: rgba(139,92,246,.16); border: 1px solid rgba(139,92,246,.5); color: var(--violet-lt);
}
.sku-other { padding: 20px 22px; align-self: flex-start; }
.sku-other h3 { font-size: 1rem; margin-bottom: 14px; }
.sku-other__chips { display: flex; flex-wrap: wrap; gap: 10px; }

/* PS Plus tier comparison. Flex rows, like .compare: no CSS grid. */
.tiers { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.tiers__row { display: flex; border-bottom: 1px solid var(--line); }
.tiers__row:last-child { border-bottom: 0; }
.tiers__cell {
  flex: 1 1 0; min-width: 0; padding: 14px 12px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: .92rem;
}
.tiers__feat { flex: 1.8 1 0; justify-content: flex-start; text-align: start; color: var(--text-soft); }
.tiers__cell.is-current { background: rgba(139,92,246,.1); }
.tiers__row--head .tiers__cell { flex-direction: column; gap: 2px; padding: 18px 10px; }
.tiers__head strong { font-family: var(--font-head); font-size: 1.05rem; }
.tiers__head span { font-family: var(--font-head); font-weight: 700; color: var(--green); }
.tiers__head em { font-style: normal; font-size: .75rem; color: var(--violet-lt); }
.tiers__head a { font-size: .8rem; color: var(--violet-lt); text-decoration: underline; }
.tiers__row--head .is-current { border-top: 3px solid var(--violet); }
.tiers__yes { width: 20px; height: 20px; fill: none; stroke: var(--green); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.tiers__no { color: var(--text-mute); }
@media (max-width: 767px) {
  .tiers__cell { padding: 12px 6px; font-size: .82rem; }
  .tiers__feat { flex-basis: 0; flex-grow: 1.5; padding-inline-start: 12px; }
  .tiers__head strong { font-size: .9rem; }
}

/* AR, 30 Sep 2026: the buy box is taller than the gallery, which left a wide
   empty band under it on desktop. The description now fills that band, and
   the buy box stays in view while the left column scrolls. */
.pdp__intro { margin-top: 32px; }
.pdp__intro h2 { font-size: 1.5rem; margin-bottom: 10px; }
.pdp__intro p { margin: 0; font-size: 1.05rem; color: var(--text-soft); }
@media (min-width: 1025px) { .pdp__buy { position: sticky; top: 100px; } }
/* Tablet and phone: one column, and .pdp__media dissolves so its two parts
   can be ordered around the buy box - gallery, price, then the description. */
@media (max-width: 1024px) {
  .pdp { flex-direction: column; align-items: stretch; }
  .pdp__media { display: contents; }
  .pdp__gallery { order: 1; min-width: 0; }
  .pdp__buy { order: 2; }
  .pdp__intro { order: 3; margin-top: 0; }
}

/* Details as a row of tiles below the hero (was a table beside the text). */
.facts--tiles {
  flex-direction: row; flex-wrap: wrap; gap: 12px;
  padding: 0; border: 0; background: none;
}
.facts--tiles .facts__row {
  /* 130px: all six fit one row on desktop, and pair up on a 375px phone. */
  flex: 1 1 130px; flex-direction: column; justify-content: flex-start; gap: 4px;
  padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
}
.facts--tiles .facts__row:last-child { border-bottom: 1px solid var(--line); }
.facts--tiles dt { font-size: .8rem; }
.facts--tiles dd { text-align: start; font-weight: 600; }

/* Store sections fold to three cards; main.js adds .is-folded. */
.is-folded { display: none !important; }
.fold { display: flex; justify-content: center; margin-top: 28px; }
.fold__btn[hidden] { display: none; }
.fold__btn svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.fold__btn.is-open svg { transform: rotate(180deg); }

/* Phones: the buy box sits below the gallery, so once its button scrolls
   away a slim bar keeps price + Buy one tap away. JS toggles [hidden]. */
.buybar { display: none; }
@media (max-width: 767px) {
  .buybar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(15,15,24,.96); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
  }
  .buybar[hidden] { display: none; }
  .buybar__info { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
  .buybar__info strong { font-family: var(--font-head); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .buybar__info > span { font-family: var(--font-head); font-weight: 700; color: var(--green); }
  .buybar__actions { display: flex; gap: 8px; flex-shrink: 0; }
  .buybar__cart { width: 44px; padding: 0; justify-content: center; }
  .pdp-hero { padding: 24px 0 48px; }
  .buybox { padding: 22px; }
  .gallery__thumb { flex-basis: 92px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 12px; transform: none; }
}
