/* FS-Portal Modern 1.6.72.17 — editorial HOME FSxx, not a global overlay.
   Ads, category roots, counts, and link targets remain owned by Core/Stage2. */
html body.home .fsp-home-game-block-v1356,
html body.front-page .fsp-home-game-block-v1356{--ed17-accent:var(--fsp-user-main,#d8a043);--ed17-line:rgba(var(--fsp-user-main-rgb,218,162,67),.3);--ed17-tint:rgba(var(--fsp-user-main-rgb,218,162,67),.09)}
html body.home .fsp-home-game-block-v1356[data-fsp-game="FS22"],
html body.front-page .fsp-home-game-block-v1356[data-fsp-game="FS22"]{--ed17-accent:#55caed;--ed17-line:rgba(85,202,237,.42);--ed17-tint:rgba(43,141,193,.11)}
html body.home .fsp-ed17-discovery,html body.front-page .fsp-ed17-discovery{display:grid;gap:18px;min-width:0;margin-top:19px}
html body.home .fsp-ed17-discovery__spotlight,html body.front-page .fsp-ed17-discovery__spotlight{display:grid;grid-template-columns:minmax(0,1.85fr) minmax(0,1fr);gap:15px;min-width:0}
html body.home .fsp-ed17-discovery__lead,html body.front-page .fsp-ed17-discovery__lead{min-width:0;min-height:375px}
html body.home .fsp-ed17-discovery__companions,html body.front-page .fsp-ed17-discovery__companions{display:grid;grid-template-rows:repeat(2,minmax(0,1fr));gap:15px;min-width:0}
html body.home .fsp-ed17-discovery__more,html body.front-page .fsp-ed17-discovery__more{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;min-width:0}
html body.home .fsp-ed17-card,html body.front-page .fsp-ed17-card{position:relative;display:block;min-width:0;min-height:0;margin:0!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important}
html body.home .fsp-ed17-card__link,html body.front-page .fsp-ed17-card__link{--ed17-x:50%;--ed17-y:25%;display:block;position:relative;isolation:isolate;height:100%;min-height:188px;overflow:hidden;border:1px solid rgba(255,255,255,.12);border-radius:17px;background:#16191b;text-decoration:none!important;color:#fff!important;box-shadow:0 9px 24px rgba(0,0,0,.18);transition:border-color .25s ease,box-shadow .25s ease,transform .25s ease}
html body.home .fsp-ed17-discovery__lead .fsp-ed17-card__link,html body.front-page .fsp-ed17-discovery__lead .fsp-ed17-card__link{min-height:375px}
html body.home .fsp-ed17-discovery__more .fsp-ed17-card__link,html body.front-page .fsp-ed17-discovery__more .fsp-ed17-card__link{height:218px;min-height:218px}
html body.home .fsp-ed17-card__link::after,html body.front-page .fsp-ed17-card__link::after{content:'';position:absolute;inset:0;pointer-events:none;z-index:1;background:radial-gradient(260px circle at var(--ed17-x) var(--ed17-y),rgba(255,255,255,.10),transparent 75%);opacity:0;transition:opacity .22s ease}
html body.home .fsp-ed17-card__link:hover,html body.front-page .fsp-ed17-card__link:hover{transform:translateY(-3px);border-color:var(--ed17-line);box-shadow:0 18px 33px rgba(0,0,0,.28),0 0 0 1px var(--ed17-tint)}
html body.home .fsp-ed17-card__link:hover::after,html body.front-page .fsp-ed17-card__link:hover::after{opacity:1}
html body.home .fsp-ed17-card__link:focus-visible,html body.front-page .fsp-ed17-card__link:focus-visible{outline:3px solid var(--ed17-accent);outline-offset:3px}
html body.home .fsp-ed17-card__image,html body.front-page .fsp-ed17-card__image{position:absolute;inset:0;width:100%;height:100%;max-width:none!important;object-fit:cover;display:block;transition:transform .6s cubic-bezier(.2,.8,.2,1);z-index:0}
html body.home .fsp-ed17-card__link:hover .fsp-ed17-card__image,html body.front-page .fsp-ed17-card__link:hover .fsp-ed17-card__image{transform:scale(1.055)}
html body.home .fsp-ed17-card__dim,html body.front-page .fsp-ed17-card__dim{position:absolute;z-index:0;inset:0;background:linear-gradient(180deg,rgba(6,9,11,.09) 2%,rgba(7,10,13,.02) 35%,rgba(4,7,10,.52) 67%,rgba(4,7,10,.94) 100%)}
html body.home .fsp-ed17-discovery__lead .fsp-ed17-card__dim,html body.front-page .fsp-ed17-discovery__lead .fsp-ed17-card__dim{background:linear-gradient(180deg,rgba(2,8,10,.15),transparent 33%,rgba(2,8,10,.45) 65%,rgba(3,8,10,.95) 100%)}
html body.home .fsp-ed17-card__copy,html body.front-page .fsp-ed17-card__copy{position:absolute;z-index:2;display:flex;flex-direction:column;gap:6px;bottom:0;left:0;right:0;padding:16px 17px 15px;color:#fff;line-height:1.3;min-width:0}
html body.home .fsp-ed17-discovery__lead .fsp-ed17-card__copy,html body.front-page .fsp-ed17-discovery__lead .fsp-ed17-card__copy{padding:25px 27px 22px;gap:10px}
html body.home .fsp-ed17-card__title,html body.front-page .fsp-ed17-card__title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;max-width:100%;font-size:clamp(15px,1.3vw,19px);font-weight:900;line-height:1.15;text-shadow:0 3px 10px rgba(0,0,0,.8);overflow-wrap:anywhere}
html body.home .fsp-ed17-discovery__lead .fsp-ed17-card__title,html body.front-page .fsp-ed17-discovery__lead .fsp-ed17-card__title{font-size:clamp(23px,2vw,32px);max-width:92%}
html body.home .fsp-ed17-card__meta,html body.front-page .fsp-ed17-card__meta{display:flex;align-items:center;flex-wrap:wrap;gap:5px 10px;font-size:11px;font-weight:700;color:#e9ebec;text-shadow:0 2px 8px #000}
html body.home .fsp-ed17-card__rating,html body.front-page .fsp-ed17-card__rating{color:#ffcf52;letter-spacing:1px;font-size:14px}
html body.home .fsp-ed17-card__time,html body.front-page .fsp-ed17-card__time{margin-left:auto;color:#cfd7d8}
html body.home .fsp-ed17-card__arrow,html body.front-page .fsp-ed17-card__arrow{position:absolute;top:16px;left:15px;z-index:3;display:grid;place-items:center;width:30px;height:30px;border:1px solid rgba(255,255,255,.24);border-radius:50%;background:rgba(7,15,18,.54);backdrop-filter:blur(9px);font-size:17px;line-height:1;opacity:0;transform:translateY(5px);transition:opacity .2s,transform .2s}
html body.home .fsp-ed17-card__link:hover .fsp-ed17-card__arrow,html body.front-page .fsp-ed17-card__link:hover .fsp-ed17-card__arrow,html body.home .fsp-ed17-card__link:focus-visible .fsp-ed17-card__arrow,html body.front-page .fsp-ed17-card__link:focus-visible .fsp-ed17-card__arrow{opacity:1;transform:translateY(0)}
/* Use the existing category icons and native 24h status markers on these new cards. */
html body.home .fsp-ed17-card .fsp-home-stage1-game-v1352,html body.front-page .fsp-ed17-card .fsp-home-stage1-game-v1352{position:absolute;z-index:4;right:11px;top:11px;left:auto;bottom:auto;width:31px;height:31px;display:grid;place-items:center}
html body.home .fsp-ed17-card .fsp-home-stage1-game-v1352 img,html body.front-page .fsp-ed17-card .fsp-home-stage1-game-v1352 img{max-width:100%;max-height:100%;width:100%;height:100%;object-fit:contain}
html body.home .fsp-ed17-card .fsp-home-stage1-status-v1352,html body.front-page .fsp-ed17-card .fsp-home-stage1-status-v1352{position:static!important;display:inline-flex;align-items:center;justify-content:center;align-self:flex-start;min-height:23px;margin:0 0 1px;padding:4px 10px!important;border-radius:20px;font-size:10px;line-height:1.2;letter-spacing:.015em;white-space:normal}
/* Real advertisement remains BETWEEN the feature and the final row. */
html body.home .fsp-ed17-discovery__ad,html body.front-page .fsp-ed17-discovery__ad{position:relative;display:flex;align-items:center;justify-content:center;width:100%;max-width:100%;min-height:0;margin:0;min-width:0;overflow:hidden}
html body.home .fsp-ed17-discovery__ad > .ls-premium-ad-banner,
html body.front-page .fsp-ed17-discovery__ad > .ls-premium-ad-banner,
html body.home .fsp-ed17-discovery__ad > .fsp-home-ad,
html body.front-page .fsp-ed17-discovery__ad > .fsp-home-ad{width:min(656px,100%)!important;max-width:656px!important;margin-inline:auto!important}
/* Bigger, truly rebuilt footer CTA: full width, roomy, separate activity badges. */
html body.home .fsp-ed17-footer,html body.front-page .fsp-ed17-footer{position:relative;isolation:isolate;display:grid;grid-template-columns:auto minmax(180px,1fr) auto auto;align-items:center;gap:22px;width:100%;min-width:0;min-height:108px;margin:23px 0 0;padding:18px 24px;overflow:hidden;border:1px solid var(--ed17-line);border-radius:19px;background:linear-gradient(100deg,rgba(31,34,37,.95),rgba(19,25,28,.95));text-decoration:none!important;color:#fff!important;box-sizing:border-box;box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 9px 25px rgba(0,0,0,.15);transition:border-color .25s,box-shadow .25s}
html body.home .fsp-ed17-footer::before,html body.front-page .fsp-ed17-footer::before{content:'';position:absolute;z-index:-1;inset:0 0 0 40%;background:linear-gradient(90deg,#1c2023,rgba(21,25,29,.78)),url('../images/header/split-horizon-landscape.webp') center/cover no-repeat;opacity:.5;pointer-events:none}
html body.home .fsp-ed17-footer:hover,html body.front-page .fsp-ed17-footer:hover{border-color:var(--ed17-accent);box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 14px 28px rgba(0,0,0,.2)}
html body.home .fsp-ed17-footer:focus-visible,html body.front-page .fsp-ed17-footer:focus-visible{outline:3px solid var(--ed17-accent);outline-offset:3px}
html body.home .fsp-ed17-footer__game,html body.front-page .fsp-ed17-footer__game{display:flex;align-items:center;justify-content:center;gap:4px;flex:none;min-width:83px;min-height:57px;padding:4px 8px;border:1px solid var(--ed17-line);border-radius:13px;background:var(--ed17-tint);font-size:25px;font-weight:900;font-style:italic}
html body.home .fsp-ed17-footer__game img,html body.front-page .fsp-ed17-footer__game img{width:36px;height:41px;object-fit:contain}
html body.home .fsp-ed17-footer__game em,html body.front-page .fsp-ed17-footer__game em{color:var(--ed17-accent);font-style:italic}
html body.home .fsp-ed17-footer__description,html body.front-page .fsp-ed17-footer__description{display:flex;flex-direction:column;min-width:0;gap:5px;text-align:left}
html body.home .fsp-ed17-footer__description small,html body.front-page .fsp-ed17-footer__description small{font-size:9px;font-weight:850;letter-spacing:.18em;color:var(--ed17-accent)}
html body.home .fsp-ed17-footer__description strong,html body.front-page .fsp-ed17-footer__description strong{font-size:clamp(17px,1.5vw,23px);font-weight:900;line-height:1.15;overflow-wrap:anywhere}
html body.home .fsp-ed17-footer__description>span,html body.front-page .fsp-ed17-footer__description>span{font-size:11px;color:#afb7ba}
html body.home .fsp-ed17-footer__counts,html body.front-page .fsp-ed17-footer__counts{display:grid;gap:8px;justify-items:end;min-width:0}
html body.home .fsp-ed17-footer .fsp-ed17-footer__counter,html body.front-page .fsp-ed17-footer .fsp-ed17-footer__counter{position:static!important;grid-column:auto!important;grid-row:auto!important;display:inline-flex!important;align-items:center;justify-content:center;white-space:nowrap;min-height:30px!important;margin:0!important;padding:6px 13px!important;border:1px solid rgba(255,255,255,.11);border-radius:999px;font-size:11px!important;font-weight:800;color:#fff!important;line-height:1.2;box-shadow:none!important;pointer-events:none}
html body.home .fsp-ed17-footer .fsp-ed17-footer__counter--new,html body.front-page .fsp-ed17-footer .fsp-ed17-footer__counter--new{background:#86283d!important}
html body.home .fsp-ed17-footer .fsp-ed17-footer__counter--update,html body.front-page .fsp-ed17-footer .fsp-ed17-footer__counter--update{background:#1c5268!important}
html body.home .fsp-ed17-footer__go,html body.front-page .fsp-ed17-footer__go{display:grid;place-items:center;width:51px;height:51px;flex:none;border-radius:50%;background:var(--ed17-tint);border:1px solid var(--ed17-line);color:var(--ed17-accent);font-size:27px;transition:transform .22s,background .22s}
html body.home .fsp-ed17-footer:hover .fsp-ed17-footer__go,html body.front-page .fsp-ed17-footer:hover .fsp-ed17-footer__go{transform:translateX(3px);background:rgba(255,255,255,.09)}
@media(max-width:1250px){html body.home .fsp-ed17-footer,html body.front-page .fsp-ed17-footer{grid-template-columns:auto minmax(0,1fr) auto;gap:12px;padding:16px}html body.home .fsp-ed17-footer__go,html body.front-page .fsp-ed17-footer__go{display:none}}
@media(max-width:1050px){html body.home .fsp-ed17-discovery__lead,html body.front-page .fsp-ed17-discovery__lead{min-height:330px}html body.home .fsp-ed17-discovery__lead .fsp-ed17-card__link,html body.front-page .fsp-ed17-discovery__lead .fsp-ed17-card__link{min-height:330px}html body.home .fsp-ed17-discovery__more .fsp-ed17-card__link,html body.front-page .fsp-ed17-discovery__more .fsp-ed17-card__link{height:185px;min-height:185px}html body.home .fsp-ed17-card__meta,html body.front-page .fsp-ed17-card__meta{font-size:10px;gap:5px 7px}html body.home .fsp-ed17-card__time,html body.front-page .fsp-ed17-card__time{margin-left:0}}
@media(max-width:850px){html body.home .fsp-ed17-discovery__spotlight,html body.front-page .fsp-ed17-discovery__spotlight{grid-template-columns:minmax(0,1fr) minmax(0,.8fr)}html body.home .fsp-ed17-footer,html body.front-page .fsp-ed17-footer{grid-template-columns:auto minmax(0,1fr);gap:12px 15px;min-height:94px}html body.home .fsp-ed17-footer__counts,html body.front-page .fsp-ed17-footer__counts{grid-column:1/-1;grid-row:2;display:flex;justify-content:flex-start;justify-items:unset;flex-wrap:wrap;border-top:1px solid rgba(255,255,255,.1);padding-top:12px}}
@media(max-width:650px){html body.home .fsp-ed17-discovery__spotlight,html body.front-page .fsp-ed17-discovery__spotlight{display:flex;flex-direction:column}html body.home .fsp-ed17-discovery__lead,html body.front-page .fsp-ed17-discovery__lead{min-height:auto}html body.home .fsp-ed17-discovery__lead .fsp-ed17-card__link,html body.front-page .fsp-ed17-discovery__lead .fsp-ed17-card__link{height:275px;min-height:275px}html body.home .fsp-ed17-discovery__companions,html body.front-page .fsp-ed17-discovery__companions{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:1fr}html body.home .fsp-ed17-discovery__companions .fsp-ed17-card__link,html body.front-page .fsp-ed17-discovery__companions .fsp-ed17-card__link{height:172px;min-height:172px}html body.home .fsp-ed17-discovery__more,html body.front-page .fsp-ed17-discovery__more{grid-template-columns:repeat(2,minmax(0,1fr))}html body.home .fsp-ed17-discovery__more .fsp-ed17-card__link,html body.front-page .fsp-ed17-discovery__more .fsp-ed17-card__link{height:172px;min-height:172px}html body.home .fsp-ed17-discovery__lead .fsp-ed17-card__title,html body.front-page .fsp-ed17-discovery__lead .fsp-ed17-card__title{font-size:24px}html body.home .fsp-ed17-discovery__lead .fsp-ed17-card__copy,html body.front-page .fsp-ed17-discovery__lead .fsp-ed17-card__copy{padding:20px}}
@media(max-width:390px){html body.home .fsp-ed17-discovery,html body.front-page .fsp-ed17-discovery{gap:11px}html body.home .fsp-ed17-discovery__spotlight,html body.front-page .fsp-ed17-discovery__spotlight{gap:11px}html body.home .fsp-ed17-discovery__companions,html body.front-page .fsp-ed17-discovery__companions{gap:9px}html body.home .fsp-ed17-discovery__more,html body.front-page .fsp-ed17-discovery__more{gap:9px}html body.home .fsp-ed17-card__copy,html body.front-page .fsp-ed17-card__copy{padding:10px}html body.home .fsp-ed17-card__title,html body.front-page .fsp-ed17-card__title{font-size:13px}html body.home .fsp-ed17-card__meta,html body.front-page .fsp-ed17-card__meta{font-size:9px}html body.home .fsp-ed17-card__rating,html body.front-page .fsp-ed17-card__rating{font-size:11px}html body.home .fsp-ed17-footer__game,html body.front-page .fsp-ed17-footer__game{min-width:64px;min-height:50px;font-size:19px}html body.home .fsp-ed17-footer__description strong,html body.front-page .fsp-ed17-footer__description strong{font-size:16px}html body.home .fsp-ed17-footer__counts,html body.front-page .fsp-ed17-footer__counts{gap:6px}html body.home .fsp-ed17-footer .fsp-ed17-footer__counter,html body.front-page .fsp-ed17-footer .fsp-ed17-footer__counter{font-size:10px!important;padding:6px 9px!important}}
@media(prefers-reduced-motion:reduce){html body.home .fsp-ed17-card__link,html body.front-page .fsp-ed17-card__link,html body.home .fsp-ed17-card__link::after,html body.front-page .fsp-ed17-card__link::after,html body.home .fsp-ed17-card__image,html body.front-page .fsp-ed17-card__image,html body.home .fsp-ed17-footer,html body.front-page .fsp-ed17-footer{transition:none!important}html body.home .fsp-ed17-card__link:hover,html body.front-page .fsp-ed17-card__link:hover{transform:none}}

/* Modern 1.6.72.18: catalogue CTA is a full-width GRID SIBLING, not a child of the mod column.
   Keep side ads, mod layout and trending unchanged. */
html body:is(.home,.front-page) .fsp-home-game-block-v1356 > .fsp-ed17-footer {
  grid-column:1 / -1;
  grid-row:2;
  justify-self:stretch;
  width:100%;
  max-width:none;
  margin:0;
  min-width:0;
  min-height:108px;
}
html body:is(.home,.front-page) .fsp-home-game-block-v1356 > .fsp-home-game-main-v1356 {
  grid-column:1;
  grid-row:1;
}
html body:is(.home,.front-page) .fsp-home-game-block-v1356.has-rail > .fsp-home-game-rail-v1356 {
  grid-column:2;
  grid-row:1;
}
html body:is(.home,.front-page) .fsp-home-game-block-v1356 > .fsp-home-trending-v1356 {
  grid-column:1 / -1;
  grid-row:3;
}
@media (max-width:1050px) {
  html body:is(.home,.front-page) .fsp-home-game-block-v1356 > .fsp-home-game-main-v1356 {grid-column:1;grid-row:auto;order:1}
  html body:is(.home,.front-page) .fsp-home-game-block-v1356 > .fsp-ed17-footer {grid-column:1;grid-row:auto;order:2}
  html body:is(.home,.front-page) .fsp-home-game-block-v1356 > .fsp-home-trending-v1356 {grid-column:1;grid-row:auto;order:3}
  html body:is(.home,.front-page) .fsp-home-game-block-v1356.has-rail > .fsp-home-game-rail-v1356 {grid-column:1;grid-row:auto;order:4}
}
