/* =====================================================================
   Homepage - "Shop by platform"
   =====================================================================
   Four tiles under the SEO block, one per platform landing page. The whole tile opens the
   landing page through the CTA's stretched link; the category links sit above it. Logical
   properties throughout, so the layout mirrors in Arabic. */

.hp { padding-block: 16px 14px; }
.hp__title { font-size: 32px; font-weight: 900; letter-spacing: -.5px; margin: 0; }
.hp__sub { margin: 6px 0 20px; color: #9aa6c4; font-size: 16px; }

/* Desktop: the heading is visually hidden - the SEO block above already heads this. */
@media (min-width: 576px) {
    .hp__title, .hp__sub {
        position: absolute !important; width: 1px; height: 1px; overflow: hidden;
        clip: rect(0 0 0 0); white-space: nowrap;
    }
}

/* Compact: one quiet row of four equal tiles (2x2 below 992px). */
.hp__grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto; gap: 12px;
}
.hp__tile--ps5 { grid-row: auto; grid-column: auto; }
.hp__tile--nsw { grid-row: auto; grid-column: auto; }

.hp__tile {
    position: relative; overflow: hidden; border-radius: 16px; padding: 18px 20px; min-height: 132px;
    display: flex; flex-direction: column; justify-content: space-between; isolation: isolate;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 24px 48px -24px rgba(0,0,0,.7);
    transition: transform .25s ease, box-shadow .25s ease;
}
.hp__tile:hover { transform: translateY(-2px); }

.hp__tile--ps5 { background: radial-gradient(60% 55% at 70% 45%, rgba(0,112,209,.6), transparent 70%), linear-gradient(165deg,#0d3268,#040c1d); }
.hp__tile--ps4 { background: radial-gradient(70% 90% at 88% 20%, rgba(232,161,58,.3), transparent 60%), linear-gradient(165deg,#222a3d,#12151f); }
.hp__tile--nsw { background: radial-gradient(60% 90% at 85% 30%, rgba(255,255,255,.22), transparent 60%), linear-gradient(165deg,#ff2b3d,#a8000d); }
.hp__tile--pc  { background: radial-gradient(70% 90% at 88% 20%, rgba(164,198,57,.25), transparent 60%), linear-gradient(165deg,#1b2433,#0b1017); }

.hp__sym {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    overflow: visible;
    opacity: .7;
}
/* Small, quiet, in the top-end corner. */
.hp__tile--ps5 .hp__sym { inset-inline-end: 16px; top: 16px; bottom: auto; width: 64px; }
.hp__tile--nsw .hp__sym { inset-inline-end: 16px; top: 16px; transform: none; height: 60px; }
.hp__tile--ps4 .hp__sym { inset-inline-end: 16px; top: 18px; width: 52px; }
.hp__tile--pc  .hp__sym { inset-inline-end: 16px; top: 20px; width: 60px; }

.hp__top, .hp__bottom { position: relative; z-index: 1; }
.hp__kicker { display: block; font-size: 10px; letter-spacing: .18em; font-weight: 800; opacity: .72; text-transform: uppercase; color: #fff; }
.hp__wm {
    display: block; margin-top: 4px; font-weight: 800; letter-spacing: -1.5px; line-height: 1;
    background: linear-gradient(180deg,#fff 35%,rgba(255,255,255,.72));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hp__tile--ps5 .hp__wm,
.hp__tile--nsw .hp__wm,
.hp__tile--ps4 .hp__wm,
.hp__tile--pc .hp__wm { font-size: 40px; }

.hp__links { position: relative; z-index: 2; font-size: 13px; margin-top: 8px; font-weight: 600; color: rgba(255,255,255,.75); }
.hp__links a { color: inherit; text-decoration: none; }
.hp__links a:first-child { color: #fff; font-weight: 700; }
.hp__links a:hover { color: #fff; text-decoration: underline; }
.hp__links i { font-style: normal; opacity: .4; margin: 0 8px; }

.hp__cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-weight: 800; font-size: 14px; text-decoration: none; }
.hp__cta:hover { text-decoration: none; }
/* The whole tile is the CTA's link target; the category links above sit over it. */
.hp__cta::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.hp__bottom { position: static; }
.hp__cta span {
    display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
    background: rgba(255,255,255,.15); font-size: 14px; transition: transform .25s ease;
}
.hp__tile:hover .hp__cta span { transform: translateX(4px); }
.hp__tile--ps5 .hp__cta { color: #8fd0ff; }
.hp__tile--ps4 .hp__cta { color: #f0b35a; }
.hp__tile--nsw .hp__cta { color: #fff; }
.hp__tile--pc  .hp__cta { color: #c2e063; }

[dir="rtl"] .hp__cta span { transform: scaleX(-1); }
[dir="rtl"] .hp__tile:hover .hp__cta span { transform: translateX(-4px) scaleX(-1); }

@media (prefers-reduced-motion: reduce) {
    .hp__tile, .hp__cta span { transition: none; }
    .hp__tile:hover { transform: none; }
}

/* Tablet: 576-991 - two by two. */
@media (min-width: 576px) and (max-width: 991.98px) {
    .hp__grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile - two by two, links hidden, CTA only. */
@media (max-width: 575.98px) {
    .hp { padding-inline: 10px; }
    .hp__title { font-size: 24px; }
    .hp__sub { font-size: 13px; margin: 4px 0 14px; }
    .hp__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .hp__tile { padding: 14px; min-height: 104px; border-radius: 14px; }
    .hp__tile--ps5 .hp__wm,
    .hp__tile--nsw .hp__wm,
    .hp__tile--ps4 .hp__wm,
    .hp__tile--pc .hp__wm { font-size: 30px; }
    .hp__links { display: none; }
    .hp__cta { font-size: 13px; }
    .hp__tile--ps5 .hp__sym { inset-inline-end: 12px; top: 12px; width: 44px; }
    .hp__tile--nsw .hp__sym { inset-inline-end: 12px; top: 12px; height: 42px; }
    .hp__tile--ps4 .hp__sym { inset-inline-end: 12px; top: 12px; width: 38px; }
    .hp__tile--pc  .hp__sym { inset-inline-end: 12px; top: 12px; width: 42px; }
}

/* ---- Featured title banner (FC 27) above the platform grid ---- */
.hp-fc27 {
    display: flex; align-items: center; gap: 20px;
    padding: 20px 28px; margin-bottom: 16px; border-radius: 24px;
    color: #f2f4f6; text-decoration: none;
    background: linear-gradient(100deg, #0b0f13 0%, #0d1a13 60%, #0e5c2c 140%);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.hp-fc27:hover { color: #f2f4f6; text-decoration: none; }
.hp-fc27:focus-visible { outline: 2px solid #ffdc11; outline-offset: 3px; }
.hp-fc27__kicker { font-size: 11px; font-weight: 700; letter-spacing: .2em; color: #8e99a6; }
.hp-fc27__title { font-size: 28px; font-weight: 700; letter-spacing: -.02em; margin-inline-start: -8px; }
.hp-fc27__text { flex: 1; font-size: 14px; line-height: 1.5; color: #b9c2cc; }
.hp-fc27__cta {
    display: inline-flex; align-items: center; height: 44px; padding: 0 22px; border-radius: 12px;
    background: #ffdc11; color: #0b0f13; font-size: 15px; font-weight: 700; white-space: nowrap;
}
@media (max-width: 575px) {
    .hp-fc27 { flex-wrap: wrap; padding: 18px; }
    .hp-fc27__text { flex-basis: 100%; }
    .hp-fc27__cta { width: 100%; justify-content: center; }
}

/* The home trade-in band (.hp-trade) was replaced by the "Buy used | Sell yours" band (Shared/_UsedGamesPromo "split",
   g2.css .g2-upromo--split) in round 2 of /used-games; its CSS is removed. */
