/* FreeGames home — dark storefront, one green accent for "free" */
:root {
  --bg: #0a0c11;
  --bg2: #0f1219;
  --card: #141823;
  --card2: #1a1f2c;
  --line: rgba(255, 255, 255, .08);
  --line2: rgba(255, 255, 255, .14);
  --text: #eef1f7;
  --muted: #98a1b3;
  --free: #3df5a0;
  --free-ink: #04140c;
  --steam: #66c0f4;
  --epic: #e9ecf2;
  --gog: #b67cff;
  --ubisoft: #3d8bff;
  --gamepass: #4fd34f;
  --r: 18px;
  --wrap: 1180px;
  --display: 'Sora', system-ui, sans-serif;
  --body: 'Geist', system-ui, sans-serif;
  color-scheme: dark;
}
.is-ar { --display: 'Alexandria', 'IBM Plex Sans Arabic', system-ui, sans-serif; --body: 'IBM Plex Sans Arabic', system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.fg {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -.02em; line-height: 1.15; }
.is-ar h1, .is-ar h2, .is-ar h3 { letter-spacing: 0; line-height: 1.35; }
:focus-visible { outline: 2px solid var(--free); outline-offset: 3px; border-radius: 6px; }

.fg-wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.fg-skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--free); color: var(--free-ink); padding: 8px 14px; border-radius: 10px; z-index: 100; font-weight: 600; }
.fg-skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.fg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 12px; border: 0; cursor: pointer;
  background: var(--free); color: var(--free-ink);
  font: 600 15px/1 var(--body); white-space: nowrap;
  box-shadow: 0 8px 28px -10px rgba(61, 245, 160, .6);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.fg-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -12px rgba(61, 245, 160, .75); }
.fg-btn:active { transform: translateY(0); }
.fg-btn--sm { height: 38px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.fg-btn--line { background: transparent; color: var(--free); box-shadow: inset 0 0 0 1.5px rgba(61, 245, 160, .55); }
.fg-btn--line:hover { background: rgba(61, 245, 160, .1); box-shadow: inset 0 0 0 1.5px var(--free); }
.fg-ghost {
  display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 10px;
  background: transparent; border: 1px solid var(--line2); color: var(--text);
  font: 500 14px/1 var(--body); cursor: pointer; transition: background .2s, border-color .2s;
}
.fg-ghost:hover { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .25); }
.fg-bot__cta .fg-ghost { height: 46px; padding: 0 20px; font-size: 15px; border-radius: 12px; }

/* ---------- nav ---------- */
.fg-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 12, 17, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.fg-nav.is-scrolled { border-color: var(--line); background: rgba(10, 12, 17, .9); }
.fg-nav__in { display: flex; align-items: center; gap: 24px; height: 66px; }
.fg-brand { display: flex; align-items: center; gap: 10px; font: 700 19px/1 var(--display); letter-spacing: -.02em; }
.fg-brand img { width: 34px; height: 34px; border-radius: 9px; object-fit: contain; }
.fg-brand b { color: var(--free); font-weight: 700; }
.fg-links { display: flex; gap: 4px; margin-inline-start: 8px; }
.fg-links a { padding: 8px 12px; border-radius: 9px; color: var(--muted); font-size: 14.5px; font-weight: 500; transition: color .2s, background .2s; }
.fg-links a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.fg-nav__end { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.fg-lang { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line2); font: 600 13px/1 var(--body); color: var(--muted); }
.fg-lang:hover { color: var(--text); }
.fg-user img { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line2); }

/* ---------- hero ---------- */
.fg-hero { position: relative; padding: 56px 0 40px; isolation: isolate; }
.fg-hero__glow {
  position: absolute; inset: -120px 0 auto; height: 620px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(520px 300px at 78% 20%, rgba(61, 245, 160, .14), transparent 70%),
    radial-gradient(560px 340px at 18% 0%, rgba(102, 192, 244, .12), transparent 70%);
}
.is-ar .fg-hero__glow { transform: scaleX(-1); }
.fg-hero__head { max-width: 760px; margin-bottom: 30px; }
.fg-kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px; padding: 6px 14px 6px 12px; border-radius: 99px; background: rgba(61, 245, 160, .08); border: 1px solid rgba(61, 245, 160, .25); color: var(--free); font-size: 13.5px; font-weight: 600; }
.fg-live { width: 8px; height: 8px; border-radius: 50%; background: var(--free); box-shadow: 0 0 0 0 rgba(61, 245, 160, .6); animation: fg-pulse 2s infinite; }
@keyframes fg-pulse { 70% { box-shadow: 0 0 0 9px rgba(61, 245, 160, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 245, 160, 0); } }
.fg-title { font-size: clamp(36px, 6vw, 68px); font-weight: 800; }
.fg-title em { font-style: normal; color: var(--free); }
.fg-save { margin: 16px 0 0; font-size: clamp(16px, 2vw, 19px); color: var(--muted); }
.fg-save strong { color: var(--text); font: 700 1.25em/1 var(--display); }

/* deals */
.fg-deals { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 16px; }
.fg-deals--solo { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.fg-deals__side { display: grid; gap: 12px; align-content: start; }
.fg-deal { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color .25s, transform .25s; }
.fg-deal:hover { border-color: var(--line2); }
.fg-deal__media { display: block; overflow: hidden; background: var(--card2); }
.fg-deal__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.fg-deal:hover .fg-deal__media img { transform: scale(1.04); }
.fg-deal--big .fg-deal__media { aspect-ratio: 16 / 9; }
.fg-deal__body { padding: 18px 20px 20px; display: grid; gap: 10px; }
.fg-deal__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.fg-deal__title { font-size: clamp(20px, 2.4vw, 28px); font-weight: 700; }
.fg-deal__title a:hover { color: var(--free); }
.fg-deal__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fg-deal--row { display: grid; grid-template-columns: 42% 1fr; }
.fg-deal--row .fg-deal__media { height: 100%; min-height: 118px; }
.fg-deal--row .fg-deal__body { padding: 12px 14px; gap: 6px; align-content: center; }
.fg-deal--row .fg-deal__title { font-size: 16px; font-weight: 600; letter-spacing: 0; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

.fg-chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 8px; background: rgba(255, 255, 255, .06); font-size: 12.5px; font-weight: 600; color: var(--c, var(--text)); }
.fg-chip img { width: 14px; height: 14px; object-fit: contain; }
.fg-chip--steam { --c: var(--steam); }
.fg-chip--epic { --c: var(--epic); }
.fg-chip--gog { --c: var(--gog); }
.fg-chip--ubisoft { --c: var(--ubisoft); }
.fg-chip--gamepass { --c: var(--gamepass); }
.fg-timer { font: 500 13px/1 var(--body); color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fg-timer b { color: #ffcf5c; font-weight: 600; }
.fg-timer.is-urgent b { color: #ff7a6b; }
.fg-timer.is-ended { color: #ff7a6b; }
.fg-price { margin: 0; display: flex; align-items: baseline; gap: 10px; }
.fg-price s { color: var(--muted); font-size: 15px; }
.fg-price b { color: var(--free); font: 700 22px/1 var(--display); }
.fg-deal--row .fg-price b { font-size: 17px; }
.fg-deal--row .fg-price s { font-size: 13px; }

/* stats */
.fg-stats { display: flex; gap: 12px; margin: 26px 0 0; flex-wrap: wrap; }
.fg-stats div { display: flex; flex-direction: column-reverse; padding: 14px 20px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); min-width: 220px; }
.fg-stats dd { margin: 0; font: 700 28px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.fg-stats dt { color: var(--muted); font-size: 13.5px; }

/* ---------- sections ---------- */
.fg-sec { padding: 56px 0; }
.fg-sec__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.fg-sec h2 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 700; }
.fg-more { color: var(--muted); font-size: 14.5px; font-weight: 500; white-space: nowrap; }
.fg-more:hover { color: var(--free); }

/* rail */
.fg-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 280px); gap: 14px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding: 4px max(16px, (100% - var(--wrap)) / 2) 18px; scroll-padding-inline: max(16px, (100% - var(--wrap)) / 2);
  scrollbar-width: none; cursor: grab;
}
.fg-rail::-webkit-scrollbar { display: none; }
.fg-rail.is-drag { cursor: grabbing; scroll-snap-type: none; }
.fg-rail.is-drag .fg-card { pointer-events: none; }
.fg-card { scroll-snap-align: start; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; user-select: none; transition: transform .25s, border-color .25s; }
.fg-card:hover { transform: translateY(-4px); border-color: var(--line2); }
.fg-card__img { aspect-ratio: 460 / 215; background: var(--card2); overflow: hidden; }
.fg-card__img img { width: 100%; height: 100%; object-fit: cover; }
.fg-card__body { padding: 12px 14px 14px; display: grid; gap: 5px; }
.fg-card__top { display: flex; align-items: center; gap: 7px; color: var(--free); font-size: 12px; font-weight: 600; }
.fg-card__top img { width: 15px; height: 15px; object-fit: contain; opacity: .9; }
.fg-card__title { font-weight: 600; font-size: 15.5px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.fg-card__tags { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* stores */
.fg-stores { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.fg-store {
  position: relative; display: grid; gap: 4px; padding: 20px; border-radius: var(--r);
  background: var(--card); border: 1px solid var(--line); overflow: hidden;
  transition: transform .25s, border-color .25s;
}
.fg-store::after { content: ""; position: absolute; inset: auto -30% -60% auto; width: 160px; height: 160px; border-radius: 50%; background: var(--c, #fff); opacity: .08; filter: blur(30px); transition: opacity .3s; }
.fg-store:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c, #fff) 45%, transparent); }
.fg-store:hover::after { opacity: .2; }
.fg-store img { width: 40px; height: 40px; object-fit: contain; margin-bottom: 10px; }
.fg-store__name { font: 700 18px/1.2 var(--display); }
.fg-store__count { color: var(--muted); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.fg-store--steam { --c: var(--steam); }
.fg-store--epic { --c: var(--epic); }
.fg-store--gog { --c: var(--gog); }
.fg-store--ubisoft { --c: var(--ubisoft); }
.fg-store--gamepass { --c: var(--gamepass); }

/* bot */
.fg-bot { padding-bottom: 80px; }
.fg-bot__in { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 44px; border-radius: 26px; border: 1px solid var(--line); background: radial-gradient(500px 280px at 90% 10%, rgba(88, 101, 242, .18), transparent 70%), var(--bg2); }
.is-ar .fg-bot__in { background: radial-gradient(500px 280px at 10% 10%, rgba(88, 101, 242, .18), transparent 70%), var(--bg2); }
.fg-bot__copy p { color: var(--muted); font-size: 17px; margin: 14px 0 26px; max-width: 440px; }
.fg-bot__cta { display: flex; gap: 10px; flex-wrap: wrap; }

.fg-dc { background: #313338; border-radius: 14px; padding: 18px 18px 20px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); font-family: 'gg sans', var(--body); direction: ltr; text-align: left; }
.is-ar .fg-dc { direction: rtl; text-align: right; }
.fg-dc__msg { display: flex; gap: 14px; }
.fg-dc__av { width: 40px; height: 40px; border-radius: 50%; flex: none; background: #1e1f22; object-fit: contain; }
.fg-dc__main { min-width: 0; flex: 1; }
.fg-dc__name { margin: 0 0 6px; font-weight: 600; font-size: 15px; color: #f2f3f5; display: flex; align-items: center; gap: 6px; }
.fg-dc__tag { background: #5865f2; color: #fff; font-size: 10px; padding: 1px 5px; border-radius: 4px; font-weight: 600; }
.fg-dc__name time { color: #949ba4; font-size: 12px; font-weight: 400; }
.fg-dc__box { background: #2b2d31; border: 1px solid #3f4147; border-radius: 8px; padding: 14px 16px; max-width: 440px; color: #dbdee1; font-size: 14px; line-height: 1.45; }
.fg-dc__box hr { border: 0; border-top: 1px solid #3f4147; margin: 10px 0; }
.fg-dc__sec { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; }
.fg-dc__sec--btn { align-items: center; }
.fg-dc__thumb { width: 64px; height: 64px; border-radius: 8px; object-fit: contain; background: #1e1f22; padding: 8px; flex: none; }
.fg-dc__h2 { margin: 6px 0 2px; font-weight: 700; font-size: 16px; color: #f2f3f5; }
.fg-dc__h1 { margin: 0 0 2px; font-weight: 800; font-size: 21px; color: #f2f3f5; line-height: 1.25; }
.fg-dc__txt { margin: 0; }
.fg-dc__txt b { color: #f2f3f5; }
.fg-dc__txt s { color: #949ba4; }
.fg-dc__ts { background: rgba(255, 255, 255, .08); border-radius: 3px; padding: 0 3px; }
.fg-dc__media { border-radius: 6px; width: 100%; aspect-ratio: 16 / 8; object-fit: cover; margin-top: 10px; }
.fg-dc__button { display: inline-block; background: #4e5058; color: #fff; font-size: 13.5px; font-weight: 500; padding: 6px 12px; border-radius: 6px; white-space: nowrap; }
.fg-bot__logo { width: 88px; height: 88px; border-radius: 20px; margin-bottom: 18px; box-shadow: 0 14px 40px -16px rgba(0, 0, 0, .9); }

/* footer */
.fg-foot { border-top: 1px solid var(--line); padding: 26px 0 34px; color: var(--muted); font-size: 14px; }
.fg-foot__in { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.fg-foot p { margin: 0; }
.fg-foot nav { display: flex; gap: 18px; }
.fg-foot a:hover { color: var(--text); }

/* reveal (JS adds .fg-js on <html>) */
.fg-js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms), transform .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms); }
.fg-js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .fg-deals { grid-template-columns: minmax(0, 1fr); }
  .fg-deals__side { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
  .fg-bot__in { grid-template-columns: 1fr; padding: 28px; gap: 28px; }
}
@media (max-width: 820px) {
  .fg-links { display: none; }
}
@media (max-width: 560px) {
  .fg-hide-sm { display: none; }
  .fg-nav__in { height: 58px; gap: 12px; }
  .fg-hero { padding-top: 34px; }
  .fg-deal__body { padding: 14px 16px 16px; }
  .fg-deal__row { flex-wrap: wrap; }
  .fg-deal--big .fg-btn { width: 100%; }
  .fg-deals__side { grid-template-columns: minmax(0, 1fr); }
  .fg-deal--row { grid-template-columns: 38% 1fr; }
  .fg-deal--row .fg-deal__row .fg-btn { display: none; }
  .fg-stats div { flex: 1 1 140px; min-width: 0; padding: 12px 14px; }
  .fg-stats dd { font-size: 24px; }
  .fg-sec { padding: 40px 0; }
  .fg-rail { grid-auto-columns: 76%; }
  .fg-stores { grid-template-columns: 1fr 1fr; }
  .fg-bot__in { padding: 22px 18px; border-radius: 20px; }
  .fg-bot__cta > * { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .fg-js [data-reveal] { opacity: 1; transform: none; }
}

/* ================= inner pages ================= */
.fg-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fg-links a[aria-current] { color: var(--text); background: rgba(255, 255, 255, .07); }
.fg-tabs { display: none; }
.fg-page { padding: 34px 0 10px; min-height: 60vh; }
.fg-page__head { margin-bottom: 22px; }
.fg-page__head h1 { font-size: clamp(30px, 4.6vw, 48px); font-weight: 800; }
.fg-page__head p { color: var(--muted); margin: 8px 0 0; }
.fg-page__head strong { color: var(--free); }
.fg-reset { color: var(--free); }

.fg-filters { display: flex; gap: 10px; margin-bottom: 14px; }
.fg-search { flex: 1; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: var(--muted); transition: border-color .2s; }
.fg-search:focus-within { border-color: rgba(61, 245, 160, .5); }
.fg-search input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; color: var(--text); font: 400 15px var(--body); }
.fg-search input::placeholder { color: #6b7385; }
.fg-filters .fg-btn { height: 46px; }

.fg-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-bottom: 10px; }
.fg-chips::-webkit-scrollbar { display: none; }
.fg-chips--type { margin-bottom: 24px; }
.fg-pill { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line2); color: var(--muted); font-size: 14px; font-weight: 500; transition: color .2s, background .2s, border-color .2s; }
.fg-pill img { width: 16px; height: 16px; object-fit: contain; }
.fg-pill:hover { color: var(--text); border-color: rgba(255, 255, 255, .25); }
.fg-pill[aria-current] { background: var(--text); color: var(--bg); border-color: var(--text); }
.fg-pill--soft[aria-current] { background: rgba(61, 245, 160, .12); color: var(--free); border-color: rgba(61, 245, 160, .45); }

.fg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.fg-card__noimg { display: grid; place-items: center; height: 100%; padding: 12px; text-align: center; font: 700 16px/1.3 var(--display); color: var(--muted); background: linear-gradient(135deg, var(--card2), var(--bg2)); }
.fg-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 18px; }
.fg-card__was { color: var(--muted); font-size: 12.5px; flex: none; }
.fg-timer--card { font-size: 12px; }

.fg-empty { text-align: center; padding: 60px 20px; border: 1px dashed var(--line2); border-radius: var(--r); color: var(--muted); }
.fg-empty__title { margin: 0 0 6px; color: var(--text); font: 700 22px/1.3 var(--display); }
.fg-empty p { margin: 0 0 18px; }
.fg-empty--page { border: 0; padding: 70px 20px; }
.fg-empty--page img { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 20px; }
.fg-empty .fg-bot__cta { justify-content: center; }
.fg-center { text-align: center; margin-top: 26px; }

.fg-pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 34px 0 10px; }
.fg-pager a, .fg-pager span { min-width: 40px; height: 40px; padding: 0 12px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); color: var(--muted); font-variant-numeric: tabular-nums; font-size: 14.5px; }
.fg-pager a:hover { color: var(--text); border-color: var(--line2); }
.fg-pager span[aria-current] { background: var(--free); color: var(--free-ink); border-color: var(--free); font-weight: 700; }
.fg-pager span:not([aria-current]) { border: 0; }

/* game detail */
.fg-gd { position: relative; padding: 40px 0 30px; overflow: hidden; isolation: isolate; }
.fg-gd__bg { position: absolute; inset: -40px; z-index: -1; background-size: cover; background-position: center; filter: blur(60px) saturate(1.3); opacity: .28; }
.fg-gd::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, transparent 40%, var(--bg)); }
.fg-gd__in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.fg-gd__media { border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--card); border: 1px solid var(--line); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9); }
.fg-gd__media img { width: 100%; height: 100%; object-fit: cover; }
.fg-gd__info { display: grid; gap: 14px; }
.fg-gd__info .fg-deal__meta { justify-content: flex-start; }
.fg-gd__title { font-size: clamp(30px, 4vw, 46px); font-weight: 800; }
.fg-gd__timer { margin: 0; }
.fg-gd__timer .fg-timer { font-size: 15px; }
.fg-price--lg b { font-size: 30px; }
.fg-price--lg s { font-size: 18px; }
.fg-gd__cta { display: flex; gap: 10px; flex-wrap: wrap; }
.fg-gd__cta .fg-ghost { height: 46px; padding: 0 18px; font-size: 15px; border-radius: 12px; }
.fg-facts { margin: 6px 0 0; display: grid; border-top: 1px solid var(--line); }
.fg-facts div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.fg-facts dt { color: var(--muted); }
.fg-facts dd { margin: 0; text-align: end; }
.fg-sec--tight { padding-top: 20px; }
.fg-h3 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.fg-about { color: #c4cad6; max-width: 78ch; margin: 0 0 24px; font-size: 16px; }
.fg-rail--shots { grid-auto-columns: minmax(300px, 420px); }
.fg-shot { scroll-snap-align: start; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--card); border: 1px solid var(--line); }
.fg-shot img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 900px) {
  .fg-gd__in { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}
@media (max-width: 820px) {
  .fg-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 0 16px 10px; }
  .fg-tabs::-webkit-scrollbar { display: none; }
  .fg-tabs a { flex: none; padding: 6px 12px; border-radius: 99px; font-size: 13.5px; color: var(--muted); border: 1px solid var(--line); }
  .fg-tabs a[aria-current] { color: var(--text); border-color: var(--line2); background: rgba(255, 255, 255, .06); }
}
@media (max-width: 560px) {
  .fg-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .fg-grid .fg-card__body { padding: 10px; }
  .fg-grid .fg-card__title { font-size: 14px; }
  .fg-grid .fg-card__tags { display: none; }
  .fg-filters .fg-btn { padding: 0 14px; }
  .fg-gd { padding-top: 18px; }
  .fg-gd__cta > * { flex: 1 1 auto; }
  .fg-rail--shots { grid-auto-columns: 85%; }
  .fg-dc { padding: 14px 12px; }
  .fg-dc__av { width: 32px; height: 32px; }
}

/* English titles inside Arabic pages: keep their own direction, align with the page */
.is-ar .fg-card__title[dir="auto"], .is-ar .fg-deal__title[dir="auto"], .is-ar .fg-gd__title[dir="auto"] { text-align: right; }

/* lightbox (game page gallery) */
.fg-zoom { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; font: inherit; color: inherit; }
.fg-zoom img { width: 100%; height: 100%; object-fit: cover; }
.fg-lb-open, .fg-lb-open body { overflow: hidden; }
.fg-lb { position: fixed; inset: 0; z-index: 200; display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; background: rgba(5, 6, 9, .94); backdrop-filter: blur(6px); animation: fg-lb-in .2s ease; }
.fg-lb[hidden] { display: none; }
@keyframes fg-lb-in { from { opacity: 0; } }
.fg-lb__fig { grid-column: 2; margin: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 56px 0 24px; min-width: 0; }
.fg-lb__fig img { max-width: 100%; max-height: calc(100% - 30px); object-fit: contain; border-radius: 10px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .9); }
.fg-lb__count { direction: ltr; unicode-bidi: isolate; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; min-height: 18px; }
.fg-lb__nav, .fg-lb__close { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line2); background: rgba(255, 255, 255, .06); color: var(--text); font: 400 30px/1 var(--body); cursor: pointer; transition: background .2s; }
.fg-lb__nav:hover, .fg-lb__close:hover { background: rgba(255, 255, 255, .14); }
.fg-lb__prev { grid-column: 1; grid-row: 1; justify-self: center; }
.fg-lb__next { grid-column: 3; grid-row: 1; justify-self: center; }
.fg-lb__fig { grid-row: 1; }
.fg-lb__close { position: absolute; top: 14px; inset-inline-end: 14px; width: 42px; height: 42px; font-size: 18px; z-index: 1; }
.fg-lb.is-single .fg-lb__nav { visibility: hidden; }
@media (max-width: 560px) {
  .fg-lb { grid-template-columns: 0 1fr 0; }
  .fg-lb__fig { padding: 60px 8px 70px; }
  .fg-lb__nav { position: absolute; bottom: 18px; width: 52px; height: 52px; grid-column: auto; grid-row: auto; }
  .fg-lb__prev { right: calc(50% + 8px); }
  .fg-lb__next { left: calc(50% + 8px); }
  .is-ar .fg-lb__prev { right: auto; left: calc(50% + 8px); }
  .is-ar .fg-lb__next { left: auto; right: calc(50% + 8px); }
}
