/* Production homepage V2. Every rule is scoped to .homepage-v2 or its homepage marker. */
.homepage-v2 {
  --home-v2-panel: #111118;
  --home-v2-panel-raised: #191922;
  --home-v2-line: rgba(255,255,255,.09);
  --home-v2-soft: #b6b6c2;
  --home-v2-max: 1220px;
  overflow: hidden;
  background: radial-gradient(circle at 85% 8%, rgba(249,115,22,.09), transparent 28rem), #07070a;
  font-family: "Noto Sans Arabic", Tahoma, Arial, sans-serif;
}

.homepage-v2 .container { width: min(calc(100% - 36px), var(--home-v2-max)); }
.homepage-v2 a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.home-v2-intro { padding-block: 26px 14px; }
.home-v2-hero-offers { padding-bottom: 12px; }
.home-v2-hero { padding-block: 26px 22px; }
.home-v2-hero-heading { max-width: 680px; margin-bottom: 16px; text-align: right; }
.home-v2-hero-heading h1 { margin: 0; font-size: clamp(38px,3.2vw,42px); line-height: 1.16; letter-spacing: -.035em; }
.home-v2-hero-heading p { margin: 8px 0 0; color: var(--home-v2-soft); font-size: .98rem; }
.home-v2-hero-grid { display: grid; grid-template-columns: minmax(0,.74fr) minmax(0,1.26fr); grid-template-rows: repeat(2,minmax(176px,1fr)); grid-template-areas: "secondary-1 primary" "secondary-2 primary"; gap: 14px; direction: ltr; }
.home-v2-hero-card { position: relative; display: flex; min-width: 0; min-height: 0; grid-area: var(--home-v2-hero-area); isolation: isolate; overflow: hidden; border-radius: 20px; background: var(--home-v2-panel); color: #fff; direction: rtl; transition: transform .2s ease, box-shadow .2s ease; }
.home-v2-hero-card:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(0,0,0,.28); }
.home-v2-hero-card.is-primary { display: grid; grid-template-columns: minmax(0,1.12fr) minmax(280px,.88fr); min-height: 350px; direction: ltr; }
.home-v2-hero-art, .home-v2-hero-art img, .home-v2-hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.home-v2-hero-art { z-index: -2; background: #20202a; }
.home-v2-hero-art img { object-fit: cover; object-position: center; opacity: .98; }
.home-v2-hero-card.is-primary .home-v2-hero-art { position: relative; inset: auto; grid-column: 1; grid-row: 1; min-height: 350px; z-index: 0; }
.home-v2-hero-card.is-primary .home-v2-hero-art::after { position: absolute; inset: 0; background: linear-gradient(90deg,rgba(5,5,8,0),rgba(5,5,8,.12)); content: ''; }
.home-v2-hero-card.is-primary .home-v2-hero-art img { opacity: 1; }
.home-v2-hero-card.is-primary .home-v2-hero-shade { display: none; }
.home-v2-hero-content { display: flex; flex: 1; flex-direction: column; justify-content: end; align-items: flex-start; min-width: 0; padding: clamp(20px,3vw,36px); text-align: right; }
.home-v2-hero-card.is-primary .home-v2-hero-content { grid-column: 2; grid-row: 1; z-index: 1; justify-content: center; padding: 34px; background: linear-gradient(145deg,#1d1d27,#111118 76%); direction: rtl; }
.home-v2-hero-card.is-secondary .home-v2-hero-content { padding: 20px 22px; }
.home-v2-hero-shade { z-index: -1; background: linear-gradient(90deg,rgba(5,5,8,.9),rgba(5,5,8,.28)),linear-gradient(0deg,rgba(5,5,8,.82),transparent 76%); }
.home-v2-tags, .home-v2-deal-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.home-v2-tags span, .home-v2-tags bdi, .home-v2-deal-meta span { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 9px; border-radius: 999px; background: rgba(12,12,17,.64); color: #e7e7ed; font-size: .7rem; font-weight: 700; }
.home-v2-tags bdi, .home-v2-discount, .home-v2-deal-badge { direction: ltr; unicode-bidi: isolate; }
.home-v2-tags bdi { background: var(--accent); color: #1a0d05; }
.home-v2-hero-content h2 { max-width: 760px; margin: 12px 0 13px; overflow-wrap: anywhere; font-size: clamp(1.35rem,3.2vw,3.25rem); line-height: 1.12; }
.home-v2-hero-card.is-primary .home-v2-hero-content h2 { max-width: 100%; margin-block: 14px 18px; }
.home-v2-hero-card.is-secondary h2 { margin: 9px 0 10px; font-size: clamp(1.02rem,1.55vw,1.45rem); }
.home-v2-hero-bottom { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 12px; }
.home-v2-hero-bottom strong { color: #fff; font-size: clamp(1.05rem,1.8vw,1.4rem); }
.home-v2-primary-action { display: inline-flex; align-items: center; gap: 9px; min-height: 38px; padding: 7px 13px 7px 8px; border-radius: 999px; background: var(--accent); color: #1a0d05; font-size: .78rem; font-weight: 900; white-space: nowrap; }
.home-v2-primary-action > span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(26,13,5,.14); }
.home-v2-hero-card.is-secondary .home-v2-primary-action { min-height: 30px; padding: 4px 8px 4px 5px; font-size: .68rem; }
.home-v2-hero-card.is-secondary .home-v2-primary-action > span { width: 20px; height: 20px; }
.home-v2-hero-note { margin-top: 6px; color: #dedee5; font-size: .72rem; }
.home-v2-section { padding-top: 48px; }
.home-v2-games { padding-top: 42px; }
.home-v2-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 22px; }
.home-v2-eyebrow { display: block; margin-bottom: 5px; color: var(--accent); font-size: .7rem; font-weight: 800; letter-spacing: .04em; line-height: 1.6; }
.home-v2-section-heading h2 { margin: 0; font-size: clamp(1.65rem,3.1vw,2.5rem); line-height: 1.38; letter-spacing: -.035em; }
.home-v2-section-heading > a { flex: 0 0 auto; color: var(--accent); font-size: .84rem; font-weight: 800; }
.home-v2-category-section { padding-top: 24px; }
.home-v2-category-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; }
.home-v2-category-card { display: flex; align-items: center; min-width: 0; min-height: 104px; gap: 13px; padding: 15px; border-radius: 16px; background: var(--home-v2-panel); color: #fff; transition: transform .18s ease, background-color .18s ease; }
.home-v2-category-card:hover { transform: translateY(-2px); background: var(--home-v2-panel-raised); }
.home-v2-category-icon { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; border-radius: 13px; background: #20202a; color: var(--accent); }
.home-v2-category-icon.is-brand { background: rgba(255,255,255,.07); }
.home-v2-category-icon img, .home-v2-category-icon svg { width: 31px; height: 31px; object-fit: contain; }
.home-v2-category-copy { display: grid; min-width: 0; gap: 3px; }
.home-v2-category-copy strong { overflow-wrap: anywhere; font-size: .9rem; }
.home-v2-category-copy small { color: var(--home-v2-soft); font-size: .72rem; }
.home-v2-arrow { margin-inline-start: auto; color: var(--accent); font-size: 1.1rem; }
.home-v2-scroll-hint { display: none; }
.home-v2-type-strip { display: flex; align-items: center; gap: 22px; padding-top: 20px; padding-bottom: 8px; }
.home-v2-type-label { display: flex; flex: 0 0 auto; align-items: baseline; gap: 9px; }
.home-v2-type-label > span { color: #f3f3f6; font-size: .98rem; font-weight: 900; }
.home-v2-type-label small { color: var(--home-v2-soft); font-size: .7rem; }
.home-v2-type-links { display: flex; flex: 1 1 auto; flex-wrap: wrap; gap: 8px; min-width: 0; }
.home-v2-type-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 7px 11px; border: 1px solid var(--home-v2-line); border-radius: 999px; background: rgba(255,255,255,.035); color: #f3f3f6; }
.home-v2-type-links a:hover { border-color: var(--accent); background: rgba(249,115,22,.1); }
.home-v2-type-links strong { font-size: .74rem; line-height: 1.2; }
.home-v2-type-links small { color: var(--home-v2-soft); font-size: .64rem; white-space: nowrap; }
.home-v2-type-links a > span { color: var(--accent); font-size: .82rem; }
.home-v2-deal-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 12px; }
.home-v2-deal-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border-radius: 17px; background: var(--home-v2-panel); transition: transform .18s ease, background-color .18s ease; }
.home-v2-deal-card:hover { transform: translateY(-3px); background: var(--home-v2-panel-raised); }
.home-v2-deal-art { position: relative; display: grid; place-items: center; aspect-ratio: 2/3; overflow: hidden; background: #0b0b10; }
.home-v2-deal-art img { width: 100%; height: 100%; padding: 10px; object-fit: contain; }
.home-v2-deal-badge { position: absolute; z-index: 1; top: 10px; inset-inline-start: 10px; padding: 4px 8px; border-radius: 999px; background: var(--accent); color: #1a0d05; font-size: .7rem; font-weight: 900; }
.home-v2-deal-body { display: flex; min-width: 0; flex: 1; flex-direction: column; padding: 12px; }
.home-v2-deal-meta { min-width: 0; }
.home-v2-deal-meta span { max-width: 100%; min-height: 21px; overflow: hidden; padding: 2px 7px; background: #22222c; color: #cfcfd7; font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
.home-v2-deal-body h3 { min-height: 4.5em; margin: 10px 0 9px; overflow-wrap: anywhere; font-size: .88rem; line-height: 1.5; }
.home-v2-deal-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.home-v2-deal-price strong { font-size: 1rem; }
.home-v2-deal-price del { color: #7f7f8b; font-size: .72rem; }
.home-v2-deal-action { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; color: var(--accent); font-size: .74rem; font-weight: 800; }
.home-v2-curated { padding-top: 48px; }
.home-v2-curated-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.home-v2-trust-strip { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; padding-top: 18px; }
.home-v2-trust-strip > div { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; min-width: 0; padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.035); }
.home-v2-trust-strip > div > span { grid-row: span 2; color: var(--accent); font-size: 1.25rem; }
.home-v2-trust-strip strong { font-size: .86rem; }
.home-v2-trust-strip small { color: var(--home-v2-soft); font-size: .68rem; }
.home-v2-trust-link { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; color: var(--home-v2-soft); font-size: .74rem; }
.home-v2-trust-link p { margin: 0; }
.home-v2-trust-link a { color: var(--accent); font-weight: 800; }
.home-v2-leading-games { margin-top: 24px; }
.home-v2-leading-games .home-v2-section-heading { margin-bottom: 14px; }
.home-v2-post-browse-offers { margin-top: 24px; }
.home-v2-games .featured-games-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: stretch; gap: 14px; direction: rtl; }
.home-v2-games .featured-game-card { min-height: 390px; }
.home-v2-games .featured-game-card.is-coming-soon { min-height: 390px; filter: none; }
.home-v2-games .featured-game-card.is-coming-soon .featured-game-art { filter: none; }
.home-v2-games .featured-game-card.is-coming-soon .featured-game-art-placeholder { place-items: start center; padding-top: clamp(30px,5vw,58px); background: radial-gradient(circle at 72% 20%,rgba(249,115,22,.38),transparent 30%),radial-gradient(circle at 18% 78%,rgba(105,75,180,.32),transparent 35%),linear-gradient(135deg,#24243b,#0d0d13 72%); }
.home-v2-games .featured-game-card.is-coming-soon .featured-game-art-placeholder strong { opacity: .22; color: #f0b48a; font-size: clamp(3rem,7vw,6rem); }
.home-v2-games .featured-game-card.is-coming-soon .featured-game-overlay { background: linear-gradient(90deg,rgba(7,7,11,.9),rgba(7,7,11,.3) 70%,rgba(7,7,11,.08)),linear-gradient(0deg,rgba(7,7,11,.78),transparent 62%); }
.home-v2-games .featured-game-card.is-coming-soon .featured-game-content { padding: clamp(22px,3vw,34px); }
.home-v2-games .featured-game-card.is-coming-soon h3 { font-size: clamp(2rem,4vw,3.5rem); line-height: 1.05; }
.home-v2-subscriptions { padding-bottom: 24px; }
.home-v2-subscription-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.home-v2-subscription-card { display: flex; align-items: center; min-width: 0; gap: 14px; min-height: 86px; padding: 14px 16px; border-radius: 16px; background: linear-gradient(135deg,rgba(249,115,22,.12),rgba(255,255,255,.035)); }
.home-v2-subscription-mark { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; border-radius: 15px; background: #24242e; }
.home-v2-subscription-mark img { width: 34px; height: 34px; object-fit: contain; }
.home-v2-subscription-copy { display: grid; min-width: 0; gap: 2px; }
.home-v2-subscription-copy small, .home-v2-subscription-copy em { color: var(--home-v2-soft); font-size: .7rem; font-style: normal; }
.home-v2-subscription-copy strong { overflow-wrap: anywhere; font-size: 1rem; }
.home-v2-subscription-action { display: inline-flex; align-items: center; gap: 6px; margin-inline-start: auto; color: var(--accent); font-size: .72rem; font-weight: 800; white-space: nowrap; }
.home-v2-flash-deals { padding-top: 24px; padding-bottom: 24px; }
.home-v2-flash-grid { gap: 12px; }
.homepage-v2 .card-discount { direction: ltr; unicode-bidi: isolate; }
body:has(.homepage-v2) .site-footer { margin-top: 22px; padding-top: 28px; }
body:has(.homepage-v2) .site-footer .footer-grid { gap: 20px; }
body:has(.homepage-v2) .site-footer .footer-brand p { max-width: 300px; margin: 7px 0; font-size: .75rem; line-height: 1.6; }
body:has(.homepage-v2) .site-footer .footer-grid nav a { margin-block: 4px; font-size: .75rem; }
@media (min-width: 900px) { body:has(.homepage-v2) .site-footer .footer-grid { grid-template-columns: minmax(0,1.5fr) repeat(3,minmax(0,1fr)); gap: 26px; } }
@media (min-width: 760px) and (max-width: 1199px) { .home-v2-category-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } .home-v2-deal-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 759px) {
  .homepage-v2 .container { width: min(calc(100% - 24px), var(--home-v2-max)); }
  .homepage-v2 .home-v2-hero-grid { width: 100%; min-width: 0; max-width: 100%; grid-template-columns: minmax(0,1fr); overflow: hidden; }
  .homepage-v2 .home-v2-hero-card, .homepage-v2 .home-v2-hero-content, .homepage-v2 .home-v2-hero-bottom { min-width: 0; max-width: 100%; }
  .homepage-v2 .home-v2-primary-action { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .home-v2-intro { padding-block: 24px 12px; }
  .home-v2-hero-offers { padding-bottom: 4px; }
  .home-v2-hero { padding-block: 28px 16px; }
  .home-v2-hero-heading { margin-bottom: 29px; }
  .home-v2-hero-heading h1 { font-size: clamp(28px,8.2vw,32px); }
  .home-v2-hero-heading p { margin-top: 5px; font-size: .83rem; }
  .home-v2-hero-grid { grid-template-columns: minmax(0,1fr); grid-template-rows: auto; grid-template-areas: "primary" "secondary-1" "secondary-2"; gap: 10px; }
  .home-v2-hero-card.is-primary { grid-template-columns: 1fr; grid-template-rows: minmax(178px,auto) auto; min-height: 0; direction: rtl; }
  .home-v2-hero-card.is-primary .home-v2-hero-art { grid-column: 1; grid-row: 1; min-height: 178px; }
  .home-v2-hero-card.is-primary .home-v2-hero-art::after { background: linear-gradient(0deg,rgba(5,5,8,.08),transparent 58%); }
  .home-v2-hero-card.is-primary .home-v2-hero-content { grid-column: 1; grid-row: 2; min-height: 125px; padding: 14px 16px 15px; background: #15151d; }
  .home-v2-hero-card.is-primary .home-v2-hero-content h2 { margin-block: 7px 9px; font-size: 1.08rem; line-height: 1.25; }
  .home-v2-hero-card.is-secondary { display: grid; grid-template-rows: 118px minmax(86px,1fr); min-height: 204px; direction: rtl; }
  .home-v2-hero-card.is-secondary .home-v2-hero-art { position: relative; inset: auto; grid-row: 1; min-height: 0; }
  .home-v2-hero-card.is-secondary .home-v2-hero-art img { object-position: center 35%; }
  .home-v2-hero-card.is-secondary .home-v2-hero-shade { display: none; }
  .home-v2-hero-card.is-secondary .home-v2-hero-content { grid-row: 2; justify-content: space-between; padding: 9px 10px 10px; background: #15151d; }
  .home-v2-hero-card.is-secondary .home-v2-tags { gap: 3px; }
  .home-v2-hero-card.is-secondary .home-v2-tags span, .home-v2-hero-card.is-secondary .home-v2-tags bdi { min-height: 18px; padding: 2px 5px; font-size: .56rem; }
  .home-v2-hero-card.is-secondary h2 { margin: 5px 0 6px; font-size: .76rem; line-height: 1.3; }
  .home-v2-hero-card.is-secondary .home-v2-hero-bottom { gap: 5px; }
  .home-v2-hero-card.is-secondary .home-v2-hero-bottom strong { font-size: .78rem; }
  .home-v2-hero-card.is-secondary .home-v2-primary-action { min-height: 25px; padding: 3px 5px 3px 4px; gap: 4px; font-size: .58rem; }
  .home-v2-hero-card.is-secondary .home-v2-primary-action > span { width: 17px; height: 17px; }
  .home-v2-category-section { padding-top: 20px; }
  .home-v2-section-heading { align-items: flex-start; gap: 12px; }
  .home-v2-section-heading h2 { font-size: clamp(22px,6.8vw,32px); }
  .home-v2-section-heading > a { padding-top: 8px; text-align: left; }
  .home-v2-category-grid { display: flex; gap: 9px; margin-inline: -2px; padding: 2px 2px 8px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x proximity; scrollbar-width: thin; }
  .home-v2-category-card { flex: 0 0 150px; min-height: 88px; padding: 11px; scroll-snap-align: start; }
  .home-v2-category-icon { flex-basis: 40px; width: 40px; height: 40px; }
  .home-v2-category-icon img, .home-v2-category-icon svg { width: 25px; height: 25px; }
  .home-v2-category-copy strong { font-size: .78rem; }
  .home-v2-category-copy small { font-size: .65rem; }
  .home-v2-arrow { font-size: .95rem; }
  .home-v2-scroll-hint { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; color: var(--accent); font-size: .7rem; }
  .home-v2-type-strip { display: block; padding-top: 20px; padding-bottom: 4px; }
  .home-v2-type-label { gap: 8px; margin-bottom: 9px; }
  .home-v2-type-label > span { font-size: .9rem; }
  .home-v2-type-links { flex-wrap: nowrap; gap: 7px; margin-inline: -2px; padding: 2px 2px 7px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; }
  .home-v2-type-links a { flex: 0 0 auto; min-height: 34px; padding: 7px 10px; }
  .home-v2-type-links strong { font-size: .7rem; }
  .home-v2-deals { padding-top: 34px; }
  .home-v2-deal-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .home-v2-deal-body { padding: 11px; }
  .home-v2-deal-meta { gap: 4px; }
  .home-v2-deal-meta span { font-size: .56rem; }
  .home-v2-deal-body h3 { min-height: 4.2em; margin: 8px 0 7px; font-size: .76rem; }
  .home-v2-deal-price strong { font-size: .88rem; }
  .home-v2-deal-action { font-size: .67rem; }
  .home-v2-trust-strip { grid-template-columns: 1fr; gap: 8px; padding-top: 14px; }
  .home-v2-trust-strip > div { padding: 12px 14px; }
  .home-v2-trust-link { display: grid; gap: 4px; padding-top: 8px; }
  .home-v2-leading-games { margin-top: 20px; }
  .home-v2-games .featured-games-grid { grid-template-columns: 1fr; gap: 10px; }
  .home-v2-games .featured-game-card { min-height: 260px; }
  .home-v2-games .featured-game-card.is-coming-soon { min-height: 210px; }
  .home-v2-games .featured-game-card.is-coming-soon .featured-game-content { padding: 18px; }
  .home-v2-games .featured-game-card.is-coming-soon h3 { font-size: 2rem; }
  .home-v2-subscriptions { padding-top: 28px; }
  .home-v2-subscription-grid { grid-template-columns: 1fr; gap: 8px; }
  .home-v2-subscription-card { min-height: 72px; padding: 12px; }
  .home-v2-subscription-mark { flex-basis: 42px; width: 42px; height: 42px; }
  .home-v2-subscription-mark img { width: 30px; height: 30px; }
  .home-v2-subscription-copy strong { font-size: .88rem; }
  .home-v2-subscription-action { font-size: .64rem; }
  .home-v2-curated { padding-top: 34px; }
  .home-v2-curated-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .home-v2-flash-deals { padding-top: 22px; }
  .home-v2-flash-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body:has(.homepage-v2) .site-footer .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 20px; }
  body:has(.homepage-v2) .site-footer .footer-brand { grid-column: 1/-1; }
  body:has(.homepage-v2) .site-footer .footer-grid > nav[aria-labelledby="footer-contact"] { grid-column: 1/-1; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 18px; row-gap: 4px; }
  body:has(.homepage-v2) .site-footer .footer-grid > nav[aria-labelledby="footer-contact"] h2 { flex: 0 0 100%; }
  body:has(.homepage-v2) .site-footer .footer-grid > nav[aria-labelledby="footer-contact"] a { margin-block: 0; }
  body:has(.homepage-v2) .site-footer .footer-logo { width: 80px; height: 40px; }
  body:has(.homepage-v2) .site-footer .copyright { display: grid; gap: 5px; margin-top: 20px; }
}
@media (prefers-reduced-motion: reduce) { .homepage-v2 .home-v2-hero-card, .homepage-v2 .home-v2-category-card, .homepage-v2 .home-v2-deal-card { transition: none; } }
