/* ===== Design tokens (change the look of the whole site here) ===== */
:root {
  --bg: #0B0F19;
  --surface: #121829;
  --surface-2: #1A2136;
  --border: #242C44;
  --text: #E6E9F2;
  --muted: #8A93AD;
  --accent: #6366F1;   /* violet: buttons */
  --accent-2: #06B6D4; /* cyan: price cuts */
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; /* zero font downloads */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { width: min(1200px, 100% - 2rem); margin-inline: auto; }
.muted { color: var(--muted); font-size: .9rem; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* ===== Navbar ===== */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(11,15,25,.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav__inner { display: flex; align-items: center; gap: .75rem; padding-block: .75rem; flex-wrap: wrap; }
.logo { font-weight: 800; font-size: 1.4rem; letter-spacing: -.03em; background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.search { flex: 1 1 240px; display: flex; align-items: center; gap: .5rem; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 0 .75rem; color: var(--muted); order: 3; }
.search:focus-within { border-color: var(--accent); }
.search input { flex: 1; min-width: 0; background: none; border: 0; color: var(--text); font: inherit; padding: .6rem 0; outline: none; }
.dropdown { position: relative; margin-left: auto; }
.dropdown__menu { position: absolute; right: 0; top: calc(100% + .4rem); min-width: 190px; margin: 0; padding: .35rem; list-style: none; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.5); }
.dropdown__menu[hidden] { display: none; }
.dropdown__menu button, .dropdown__menu a { display: block; width: 100%; box-sizing: border-box; text-align: left; background: none; border: 0; color: var(--text); font: inherit; padding: .55rem .75rem; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.dropdown__menu button:hover, .dropdown__menu button[aria-current="true"], .dropdown__menu a:hover { background: var(--border); }
@media (min-width: 720px) { .search { order: 0; max-width: 420px; margin-inline: auto; } .dropdown { margin-left: 0; } }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font: inherit; font-weight: 600; border-radius: 10px; padding: .6rem 1rem; border: 1px solid transparent; cursor: pointer; transition: background .15s, transform .15s; }
.btn--ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); }

/* ===== Hero ===== */
.hero { padding: clamp(2.5rem, 8vw, 5.5rem) 0 2rem; background: radial-gradient(60% 120% at 20% 0%, rgba(99,102,241,.18), transparent 70%), radial-gradient(40% 100% at 90% 10%, rgba(6,182,212,.12), transparent 70%); }
.hero h1 { margin: 0 0 .75rem; font-size: clamp(2rem, 6vw, 3.6rem); line-height: 1.05; letter-spacing: -.035em; max-width: 16ch; }
.hero p { margin: 0; color: var(--muted); font-size: clamp(1rem, 2.4vw, 1.2rem); max-width: 52ch; }

/* ===== Deal grid ===== */
.grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 600px)  { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.empty { text-align: center; color: var(--muted); padding: 3rem 0; }

.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card__body { display: flex; flex-direction: column; gap: .75rem; padding: 1rem; flex: 1; }
.card__title { margin: 0; font-size: 1.02rem; font-weight: 650; line-height: 1.3; }

/* ===== Footer ===== */
.footer { margin-top: 4rem; padding: 2rem 0; border-top: 1px solid var(--border); background: var(--surface); font-size: .9rem; color: var(--muted); }
.footer p { margin: 0 0 .5rem; max-width: 70ch; }
.footer strong { color: var(--text); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ===== v2: cover art, overlay badges, pricing, sort pills, CTA ===== */
.grid-title { margin: 1.5rem 0 .75rem; font-size: 1.3rem; }
.grid-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; flex-wrap: wrap; }
.pills { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.pills::-webkit-scrollbar { display: none; }
.pill { flex: none; font: inherit; font-size: .88rem; font-weight: 500; color: var(--muted); background: transparent; border: 1px solid var(--border); border-radius: 999px; padding: .4rem .85rem; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.pill:hover, .pill[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

/* 16:9 cover. Image fills it; if it fails to load, the dark fallback + icon shows instead. */
.card__cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, #1A2136, #0F1424); }
.card__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card__cover img { transform: scale(1.04); }
.card__cover.is-fallback::after { content: ""; position: absolute; inset: 0; margin: auto; width: 44px; height: 44px; opacity: .35;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A93AD' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12h4M8 10v4M15 13h.01M18 11h.01'/%3E%3Crect x='2' y='6' width='20' height='12' rx='6'/%3E%3C/svg%3E"); }

/* Overlay badges: glassy dark chips pinned to the top corners of the cover */
.tag, .badge { position: absolute; top: .65rem; z-index: 1; font-size: .78rem; line-height: 1; padding: .38rem .6rem; border-radius: 8px;
  background: rgba(11,15,25,.68); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.14); text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.tag { left: .65rem; font-weight: 600; color: #fff; }
.badge { right: .65rem; font-weight: 800; color: #22D3EE; }

/* Pricing hierarchy: big bright deal price, small muted struck-through retail price */
.price { display: flex; align-items: baseline; gap: .55rem; margin-top: auto; }
.price__now { font-size: 1.25rem; line-height: 1.75rem; font-weight: 700; color: var(--accent-2); }
.price__old { font-size: .875rem; font-weight: 400; color: #64748B; text-decoration: line-through; }

/* CTA: scale + deepen on hover, arrow nudges forward */
.btn--primary { width: 100%; background: var(--accent); color: #fff; transition: transform .2s, background-color .2s, box-shadow .2s; }
.btn--primary:hover { background: #4338CA; transform: scale(1.03); box-shadow: 0 8px 22px rgba(99,102,241,.35); }
.btn--primary:active { transform: scale(.99); }
.btn--primary svg { transition: transform .2s; }
.btn--primary:hover svg { transform: translateX(3px); }

/* ===== v3: platform filter strip, in-grid empty message, store line ===== */
.filter-strip { margin-top: 1.25rem; }
.pill.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.grid > .empty { grid-column: 1 / -1; }
.card__store { margin: -.4rem 0 0; font-size: .8rem; color: var(--muted); }

/* ===== legal pages + footer links ===== */
.legal { max-width: 760px; padding-block: 2rem; }
.legal h1 { margin: 0 0 .25rem; font-size: clamp(1.7rem, 5vw, 2.4rem); letter-spacing: -.02em; }
.legal h2 { margin: 1.75rem 0 .5rem; font-size: 1.15rem; }
.legal p, .legal li { color: #C3C9DB; }
.legal a, .note a, .footer a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 2px; }
.legal code { background: var(--surface-2); padding: .1rem .35rem; border-radius: 4px; }
.note { margin: -.4rem 0 .9rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-bottom: .75rem; }

/* ===== v4: corner banner, platform toggles, edition dropdown ===== */
.banner { position: absolute; top: 0; left: 0; z-index: 2; padding: .45rem .85rem .45rem .75rem; border-radius: 0 0 14px 0;
  font-weight: 800; font-size: .85rem; letter-spacing: .02em; color: #fff; background: #334155; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.pf-pc { background: #1E293B; } .pf-xbox { background: #107C10; } .pf-playstation { background: #0070D1; } .pf-switch { background: #E60012; }
.toggles { display: flex; flex-wrap: wrap; gap: .35rem; }
.tog { font: inherit; font-size: .78rem; font-weight: 600; padding: .28rem .65rem; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.tog:hover { border-color: var(--accent); color: var(--text); }
.tog[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
/* platform tiles (multi-platform games): the visitor picks one, nothing pre-chosen; coloured top edge per platform */
.ptiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: .5rem; margin-bottom: .9rem; }
.ptile.tog { display: grid; gap: .15rem; text-align: left; padding: .7rem .8rem .65rem; border-radius: 10px; border: 1px solid var(--border); border-top: 3px solid #334155; background: var(--surface-2); color: var(--text); font-size: .9rem; }
.ptile.pf-pc { border-top-color: #64748B; } .ptile.pf-xbox { border-top-color: #107C10; } .ptile.pf-playstation { border-top-color: #0070D1; } .ptile.pf-switch { border-top-color: #E60012; }
.ptile.tog:hover { border-color: var(--accent); border-top-color: inherit; background: rgba(99,102,241,.08); }
.ptile.tog[aria-pressed="true"] { background: rgba(99,102,241,.16); border-color: var(--accent); color: var(--text); box-shadow: 0 0 0 1px var(--accent) inset; }
.ptile__name { font-weight: 700; }
.ptile__price { font-size: 1.05rem; font-weight: 700; color: var(--accent-2); }
.banner:empty { display: none; }   /* multi-platform games: no cover label until a platform is chosen */
.edition { width: 100%; font: inherit; font-size: .85rem; color: var(--text); background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: .5rem .6rem; }

/* store chips (compare stores for the chosen platform + edition) */
.stores { display: flex; flex-wrap: wrap; gap: .3rem; }
.chip { font: inherit; font-size: .72rem; padding: .25rem .5rem; border-radius: 6px; border: 1px solid var(--border); background: transparent; color: var(--muted); cursor: pointer; }
.chip:hover { border-color: var(--accent-2); color: var(--text); }
.chip[aria-pressed="true"] { border-color: var(--accent-2); color: var(--text); background: rgba(6,182,212,.12); }

/* ===== game pages ===== */
a.card__cover { display: block; }
.card__title a { color: inherit; } .card__title a:hover { color: var(--accent-2); }
.game { padding-block: 1.5rem 0; }
.game__top { display: grid; gap: 1.25rem; grid-template-columns: 1fr; margin-bottom: 1rem; }
@media (min-width: 760px) { .game__top { grid-template-columns: minmax(0, 420px) 1fr; } }
.game__cover { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: linear-gradient(135deg, #1A2136, #0F1424); border: 1px solid var(--border); }
.game__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.game h1 { margin: 0 0 .75rem; font-size: clamp(1.6rem, 5vw, 2.4rem); letter-spacing: -.02em; }
.game h2 { margin: 1.75rem 0 .75rem; font-size: 1.2rem; }
.facts, .req dl { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: 0; font-size: .92rem; }
.facts dt, .req dt { color: var(--muted); } .facts dd, .req dd { margin: 0; }
.buy { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .9rem 1rem; margin-bottom: .75rem; }
.buy h3 { margin: 0 0 .5rem; font-size: 1rem; }
.offers { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.offers li { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.offers__store { flex: 1 1 140px; font-weight: 600; } .offers__store em { font-style: normal; font-size: .72rem; color: var(--accent-2); border: 1px solid var(--accent-2); border-radius: 6px; padding: .05rem .35rem; margin-left: .35rem; }
.offers .price { margin: 0; } .offers__disc { color: var(--accent-2); font-weight: 700; font-size: .85rem; }
.offers .btn--primary { width: auto; padding-inline: 1.1rem; }
.reqs { display: grid; gap: 1rem; grid-template-columns: 1fr; } @media (min-width: 760px) { .reqs { grid-template-columns: 1fr 1fr; } }
.req { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .9rem 1rem; } .req h3 { margin: 0 0 .6rem; font-size: 1rem; }

/* ===== game page: buy box, trailer, screenshots ===== */
.game__cover .banner { z-index: 2; } .game__cover .badge { z-index: 2; }
.buybox { display: grid; gap: .7rem; margin-top: 1rem; max-width: 420px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; }
.buybox .card__store { margin: 0; } .buybox .price { margin: .25rem 0 0; }
/* same width as the screenshot grid below it; YouTube and Steam trailers share this look (build-pages trailerHTML) */
.trailer { position: relative; aspect-ratio: 16 / 9; width: 100%; border-radius: var(--radius); overflow: hidden; background: linear-gradient(135deg, #1A2136, #0F1424); border: 1px solid var(--border); }
.trailer button { all: unset; box-sizing: border-box; position: relative; cursor: pointer; width: 100%; height: 100%; display: grid; place-content: center; justify-items: center; text-align: center; gap: .75rem; color: var(--text); }
.trailer__cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: opacity .2s, transform .4s; }
.trailer button:hover .trailer__cover { opacity: .7; transform: scale(1.02); }
.trailer__play { position: relative; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); box-shadow: 0 10px 30px rgba(0,0,0,.45); transition: transform .2s, background .2s; }
.trailer button:hover .trailer__play { transform: scale(1.08); background: #4338CA; }
.trailer__play svg { width: 30px; height: 30px; fill: #fff; stroke: none; margin-left: 4px; }
.trailer__label { position: relative; display: grid; gap: .2rem; font-size: 1.2rem; font-weight: 700; text-shadow: 0 2px 10px rgba(0,0,0,.7); }
.trailer small { font-size: .8rem; font-weight: 500; color: #C3C9DB; }
.trailer iframe, .trailer video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.shots { display: grid; gap: .6rem; grid-template-columns: repeat(2, 1fr); } @media (min-width: 760px) { .shots { grid-template-columns: repeat(4, 1fr); } }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); display: block; transition: transform .2s; } .shot:hover img { transform: scale(1.02); }
#lightbox { max-width: min(96vw, 1200px); padding: .5rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); }
#lightbox::backdrop { background: rgba(0,0,0,.8); } #lightbox img { width: 100%; height: auto; display: block; border-radius: 8px; }
#lightbox form { text-align: right; margin-top: .5rem; } #lightbox button { font: inherit; padding: .4rem .9rem; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); cursor: pointer; }


.more { text-align: center; margin-top: 1.5rem; }
.more .btn { padding-inline: 1.6rem; }

/* the hidden attribute must win over .btn display rules */
[hidden] { display: none !important; }

/* ===== v5: simpler cards, gallery arrows ===== */
.price__from { color: var(--muted); font-size: .8rem; }
.lb { position: relative; }
.lb-prev, .lb-next { font-size: 2.2rem; padding-bottom: .25rem; position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(11,15,25,.7); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lb-prev { left: .6rem; } .lb-next { right: .6rem; } .lb-prev:hover, .lb-next:hover { background: var(--accent); }
.lb-bar { display: flex; align-items: center; justify-content: space-between; margin-top: .5rem; color: var(--muted); font-size: .9rem; }
.lb-bar form { margin: 0; }
.about { margin: 0 0 .9rem; color: #C3C9DB; max-width: 62ch; } .about small { display: block; margin-top: .3rem; color: var(--muted); }

/* ===== currency picker (navbar) ===== */
.nav__tools { display: flex; gap: .4rem; margin-left: auto; }
.nav__tools:not(:has(.picker:not([hidden]))) { display: none; }
/* header dropdowns (language with flags, currency) */
.picker { position: relative; }
/* fixed height so the language box (flag only on phones) and the currency box always match */
.picker__btn { display: inline-flex; align-items: center; gap: .45rem; box-sizing: border-box; height: 40px; font: inherit; font-size: .9rem; line-height: 1; font-weight: 600; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 0 .65rem; cursor: pointer; white-space: nowrap; }
.picker__btn:hover, .picker__btn[aria-expanded="true"] { border-color: var(--accent); }
.picker__chev { width: 14px; height: 14px; color: var(--muted); }
.picker__list { position: absolute; right: 0; top: calc(100% + .35rem); z-index: 70; min-width: 100%; margin: 0; padding: .3rem; list-style: none; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.5); }
.picker__list button { display: flex; align-items: center; gap: .55rem; width: 100%; padding: .5rem .65rem; border: 0; border-radius: 8px; background: none; color: var(--text); font: inherit; font-size: .9rem; text-align: left; white-space: nowrap; cursor: pointer; }
.picker__list button:hover, .picker__list button[aria-current="true"] { background: var(--border); }
/* every flag the same size: same 3:2 canvas, fixed box */
.flag { width: 21px; height: 14px; flex: none; stroke: none; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.18); }
@media (max-width: 480px) { .picker--lang .picker__btn > span { display: none; } }   /* phones: flag only in the button */

/* ===== platform menu bar (second row of the navbar) ===== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.menu { display: flex; gap: .25rem; padding-bottom: .4rem; }
.menu .dropdown { margin-left: 0; }
.menu__btn { display: inline-flex; align-items: center; gap: .3rem; font: inherit; font-size: .95rem; font-weight: 600; color: var(--muted); background: none; border: 0; border-radius: 8px; padding: .45rem .7rem; cursor: pointer; transition: color .15s, background .15s; }
.menu__btn svg { width: 14px; height: 14px; transition: transform .2s; }
.menu__btn:hover, .menu__item.is-open .menu__btn { color: var(--text); background: var(--surface); }
.menu__item.is-open .menu__btn svg { transform: rotate(180deg); }
.menu .dropdown__menu { display: none; top: 100%; left: 0; right: auto; z-index: 60; }
/* every dropdown lines up with the left edge of its menu button, phones included (owner, 16 Oct 2026); on a very
   narrow screen js/app.js + js/nav.js nudge it left only as far as needed to stay on screen (fitMenu) */
.menu__item.is-open .dropdown__menu { display: block; }
@media (hover: hover) { .menu__item:not(.no-hover):hover .dropdown__menu { display: block; } .menu__item:hover .menu__btn { color: var(--text); background: var(--surface); } }
.grid-title { scroll-margin-top: 9rem; }   /* land below the sticky two-row navbar */
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: -.25rem 0 .9rem; }
.fchip { display: inline-flex; align-items: center; gap: .35rem; font: inherit; font-size: .85rem; font-weight: 600; color: var(--text); background: rgba(99,102,241,.15); border: 1px solid var(--accent); border-radius: 999px; padding: .3rem .55rem .3rem .8rem; cursor: pointer; }
.fchip svg { width: 14px; height: 14px; color: var(--muted); }
.fchip:hover { background: var(--accent); } .fchip:hover svg { color: #fff; }
.fclear { font: inherit; font-size: .85rem; color: var(--accent-2); background: none; border: 0; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; padding: .3rem .4rem; }
.menu__soon { display: block; padding: .55rem .75rem; color: var(--muted); font-size: .9rem; white-space: nowrap; }
@media (max-width: 420px) { .menu { gap: 0; } .menu__btn { padding: .45rem .55rem; font-size: .9rem; } .menu__btn svg { display: none; } }

/* ===== vertical posters (cards + game page cover) ===== */
/* Tall 2:3 covers, 2 per row on phones up to 6 on desktop. Overrides the earlier 16:9 cover + 1-4 column grid. */
.grid { grid-template-columns: repeat(2, 1fr); gap: .9rem; }
@media (min-width: 600px)  { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(6, 1fr); } }
.card__cover { aspect-ratio: 2 / 3; }
.card__body { gap: .55rem; padding: .8rem; }
.card__title { font-size: .95rem; }
.card .price { flex-wrap: wrap; gap: .1rem .5rem; }
.card .btn--primary { padding: .55rem .6rem; font-size: .9rem; }
/* no tall poster on Steam: show the wide header whole, centred on the dark cover */
.card__cover.is-wide img, .game__cover.is-wide img { object-fit: contain; }
.card:hover .card__cover.is-wide img { transform: none; }
.game__cover { aspect-ratio: 2 / 3; max-width: 300px; width: 100%; }
@media (min-width: 760px) { .game__top { grid-template-columns: minmax(0, 300px) 1fr; } }
@media (max-width: 759px) { .game__cover { max-width: 240px; } }

/* ===== game page: section headings + full "About this game" ===== */
.game h2 { font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin: 2.25rem 0 1rem; }
/* Game page: content on the left, a thin line, then "We Recommend" on the right (stacks below on smaller screens) */
.game--recs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
@media (min-width: 1100px) { .game--recs { grid-template-columns: minmax(0, 1fr) 300px; gap: 0; } .game__body { padding-right: 2.25rem; } }
.recs { border-top: 1px solid var(--border); padding-top: 1rem; }
@media (min-width: 1100px) { .recs { border-top: 0; border-left: 1px solid var(--border); padding: 0 0 0 1.75rem; } .recs__list { position: sticky; top: 7rem; } }
.game .recs h2 { margin-top: .25rem; font-size: 1.3rem; }
.recs__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.rec { display: flex; gap: .75rem; align-items: center; padding: .5rem; border-radius: 10px; border: 1px solid transparent; transition: background .15s, border-color .15s; }
.rec:hover { background: var(--surface); border-color: var(--border); }
.rec__img { flex: none; width: 60px; aspect-ratio: 2 / 3; border-radius: 6px; overflow: hidden; background: linear-gradient(135deg, #1A2136, #0F1424); }
.rec__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rec__img.is-wide img { object-fit: contain; }
.rec__body { display: grid; gap: .3rem; min-width: 0; }
.rec__title { font-weight: 650; font-size: .92rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rec:hover .rec__title { color: var(--accent-2); }
.rec__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .35rem; }
.rec__price strong { color: var(--accent-2); }
.rec__price s { font-size: .78rem; color: #64748B; }

/* About this game: left edge in line with the poster, wide enough for long lines */
.about-section { max-width: 980px; }
.about-full { color: #C3C9DB; font-size: 1.02rem; }
.about-full p { margin: 0 0 .9rem; line-height: 1.7; }
.about-h { margin: 1.5rem 0 .5rem; font-size: 1.15rem; font-weight: 700; color: var(--text); }
/* long texts start folded (js/game.js adds .is-clamped + the button); the fade shows there is more */
.about-full.is-clamped { max-height: 22rem; overflow: hidden; -webkit-mask-image: linear-gradient(#000 65%, transparent); mask-image: linear-gradient(#000 65%, transparent); }
.about-toggle { display: flex; width: fit-content; margin: .25rem auto 0; }

/* ===== game page: seller list (replaces the store chips) ===== */
.buybox { max-width: 640px; }
.sellers__head { margin: .1rem 0 0; font-size: .85rem; color: var(--muted); }
.sellers { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.seller { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .5rem .9rem; padding: .7rem .8rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; }
.seller.is-best { border-color: var(--accent-2); background: rgba(6,182,212,.07); }
.seller__name { font-weight: 650; }
.seller__name em { font-style: normal; font-size: .7rem; font-weight: 700; color: var(--accent-2); border: 1px solid var(--accent-2); border-radius: 6px; padding: .05rem .35rem; margin-left: .35rem; white-space: nowrap; vertical-align: 1px; }
.seller__price { display: flex; align-items: baseline; gap: .45rem; justify-content: flex-end; white-space: nowrap; }
.seller__price strong { font-size: 1.15rem; color: var(--accent-2); }
.seller__price s { font-size: .8rem; color: #64748B; }
.seller__disc { font-size: .75rem; font-weight: 800; color: #0B0F19; background: var(--accent-2); border-radius: 6px; padding: .1rem .35rem; }
.seller__btn { grid-column: 1 / -1; width: 100%; padding: .5rem .9rem; }
@media (min-width: 560px) { .seller { grid-template-columns: 1fr auto auto; } .seller__btn { grid-column: auto; width: auto; } }

/* ===== home shelves (Best Sellers / Featured Deals) + listing "Home" link ===== */
.shelf { margin-top: 2.25rem; }
/* While the homepage loads its game list (index.html adds .is-loading, js/app.js removes it): show the sections the
   page will end up with, so nothing jumps (CLS). The grids start with invisible .card-ph placeholders (index.html),
   each the size of a card: poster (2:3 of a column) + text/price/button area. js/app.js replaces them with real cards. */
.is-loading.start-home #featured[hidden], .is-loading.start-home #home[hidden], .is-loading.start-list #listing[hidden] { display: block !important; }   /* beats the global [hidden] rule */
.is-loading.start-home .featured__arrow { display: none; }
.card-ph { box-sizing: content-box; aspect-ratio: 2 / 3; padding-bottom: 178px; border: 1px solid transparent; }   /* 178px = measured card text/price/button area */
.shelf__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem 1rem; margin-bottom: 1rem; }
.shelf__head h2 { margin: 0; font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.shelf__all, .back-home { display: inline-flex; align-items: center; gap: .2rem; font-weight: 600; font-size: .92rem; color: var(--accent-2); white-space: nowrap; }
.shelf__all:hover, .back-home:hover { text-decoration: underline; text-underline-offset: 3px; }
.shelf__all svg, .back-home svg { width: 16px; height: 16px; transition: transform .2s; }
.shelf__all:hover svg { transform: translateX(3px); }
.back-home { margin-top: 1.25rem; }
.note--foot { margin: 2rem auto 0; }

/* ===== featured carousel (homepage) ===== */
.featured { position: relative; margin-top: 1.25rem; }
.featured__track { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: linear-gradient(135deg, #1A2136, #0F1424); }
@media (min-width: 600px) { .featured__track { aspect-ratio: 16 / 7; } }
@media (min-width: 900px) { .featured__track { aspect-ratio: 21 / 8; } }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.03); transition: transform 6s ease-out; }
.slide.is-active img { transform: scale(1); }
/* dark fade behind the text: from the bottom on phones, from the left on wider screens */
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11,15,25,.95) 0%, rgba(11,15,25,.55) 45%, transparent 75%); }
@media (min-width: 600px) { .slide::after { background: linear-gradient(90deg, rgba(11,15,25,.95) 0%, rgba(11,15,25,.65) 38%, transparent 70%); } }
.slide__info { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; padding: 1.1rem; }
/* left padding keeps the text clear of the 44px prev arrow (.75rem from the edge) on every screen width */
@media (min-width: 600px) { .slide__info { right: auto; top: 0; justify-content: center; max-width: 32rem; padding: 2rem clamp(1.5rem, 4vw, 3.5rem) 2rem clamp(5.5rem, 7vw, 6.5rem); } }
.slide__kicker { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2); }
.slide__title { margin: 0; font-size: clamp(1.35rem, 3.4vw, 2.4rem); line-height: 1.1; letter-spacing: -.02em; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.slide .price { margin: 0; }
.slide__disc { font-size: .8rem; font-weight: 800; color: #0B0F19; background: var(--accent-2); border-radius: 6px; padding: .15rem .4rem; }
.slide__cta { width: auto; margin-top: .25rem; }
.slide:hover .slide__cta { background: #4338CA; box-shadow: 0 8px 22px rgba(99,102,241,.35); }
.slide:hover .slide__cta svg { transform: translateX(3px); }

/* centred on the banner itself: .featured also holds the dots bar below it (32px pause button + .4rem gap) */
.featured__arrow { position: absolute; top: calc((100% - 32px - .4rem) / 2); transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(11,15,25,.7); color: #fff; cursor: pointer; display: none; place-items: center; }
.featured__arrow svg { width: 22px; height: 22px; stroke-width: 2.5; }
.featured__arrow:hover { background: var(--accent); }
.featured__prev { left: .75rem; } .featured__next { right: .75rem; }
@media (min-width: 600px) { .featured__arrow { display: grid; } }
.featured__bar { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-top: .4rem; height: 32px; }
.featured__dots { display: flex; gap: .35rem; }
.dot { width: 36px; padding: 10px 0; border: 0; background: none; cursor: pointer; }
.dot span { display: block; height: 4px; border-radius: 2px; background: var(--border); overflow: hidden; }
.dot i { display: block; height: 100%; width: 0; background: var(--accent-2); }
.dot:hover span { background: var(--muted); }
.dot[aria-current="true"] i { animation: featured-progress 5s linear forwards; }
.featured.is-paused .dot i { animation-play-state: paused; }
@keyframes featured-progress { to { width: 100%; } }
.featured__pause { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--muted); cursor: pointer; }
.featured__pause:hover { color: var(--text); border-color: var(--accent); }
.featured__pause svg { width: 14px; height: 14px; }
.featured.is-single .featured__arrow, .featured.is-single .featured__bar { display: none; }

/* logo image in the nav */
.logo { display: inline-flex; align-items: center; line-height: 0; }
.logo img { display: block; height: 46px; width: auto; }   /* assets/logo-header.png is 2x for sharp screens */
@media (max-width: 480px) { .logo img { height: 38px; } }

/* ===== SEO revamp (16 Oct 2026): breadcrumbs, price summary, Browse block, landing pages (deals/, genre/) ===== */
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; list-style: none; margin: 0 0 1rem; padding: 0; font-size: .85rem; color: var(--muted); }
.crumbs li + li::before { content: "\203A"; margin-right: .3rem; color: var(--muted); }
.crumbs a { color: var(--muted); } .crumbs a:hover { color: var(--accent-2); }
.crumbs [aria-current="page"] { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }
.game__summary { margin: .85rem 0 0; font-size: .9rem; line-height: 1.55; color: #C3C9DB; max-width: 60ch; }
.browse { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.browse h2 { margin: 0 0 .5rem; font-size: clamp(1.3rem, 3.4vw, 1.6rem); font-weight: 800; letter-spacing: -.02em; }
.browse h3 { margin: 1.5rem 0 0; font-size: 1rem; font-weight: 700; }
.browse__intro { margin: 0; max-width: 75ch; color: #C3C9DB; line-height: 1.6; }
.browse__links { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: .75rem 0 0; padding: 0; }
a.pill { display: inline-block; color: var(--text); }
.footer__browse a { color: var(--text); }
.listpage { padding-block: 1.5rem 0; }
.page-title { margin: 0 0 1.25rem; font-size: clamp(1.8rem, 5vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.az__jump { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1.5rem; }
.az__jump a { display: grid; place-items: center; min-width: 2.1rem; height: 2.1rem; border: 1px solid var(--border); border-radius: 8px; font-weight: 700; color: var(--text); }
.az__jump a:hover { border-color: var(--accent); color: var(--accent-2); }
.az { columns: 3 240px; column-gap: 2rem; }
.az__group { break-inside: avoid-column; margin-bottom: 1.5rem; scroll-margin-top: 8rem; }
.az__group h2 { margin: 0 0 .4rem; font-size: 1.3rem; font-weight: 800; color: var(--accent-2); }
.az__group ul { list-style: none; margin: 0; padding: 0; }
.az__group li { padding: .2rem 0; line-height: 1.35; }
.az__group a { color: var(--text); } .az__group a:hover { color: var(--accent-2); text-decoration: underline; text-underline-offset: 2px; }
