/* forcegamestudio.com — same portal skeleton as gamemax24h.com (dark, sticky header, hero, 3:4 card grid),
   recolored for Force Gaming (blaze orange + lightning yellow) and extended with APK game pages. */
:root {
  --bg: #0b0d12;
  --bg2: #12151d;
  --card: #191d28;
  --line: #262b39;
  --text: #eceff5;
  --muted: #8d95a7;
  --accent: #ff5a1f;
  --accent2: #ffd23f;
  --radius: 18px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: "Baloo 2", "Segoe UI", Roboto, Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 860px; }
.muted { color: var(--muted); }

/* header */
header.top { position: sticky; top: 0; z-index: 20; background: rgba(11,13,18,.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 28px; font-weight: 800; letter-spacing: .5px; white-space: nowrap; }
.brand img { border-radius: 9px; }
.brand b { margin-left: 6px; background: linear-gradient(90deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.search { flex: 1; max-width: 420px; margin-left: auto; }
.search input { width: 100%; height: 42px; border-radius: 21px; border: 1px solid var(--line); background: var(--bg2); color: var(--text); padding: 0 18px; font: inherit; font-size: 16px; outline: none; }
.search input:focus { border-color: var(--accent); }
.langsel { height: 42px; border-radius: 21px; border: 1px solid var(--line); background: var(--bg2); color: var(--text); font: inherit; font-weight: 700; padding: 0 12px; }
header.top .search + .langsel { margin-left: 8px; }

/* hero */
.hero { position: relative; margin: 24px 0; border-radius: 24px; overflow: hidden; min-height: 360px; display: flex; align-items: flex-end; background: var(--bg2) center/cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,13,18,.94) 0%, rgba(11,13,18,.6) 45%, rgba(11,13,18,0) 78%); }
.hero .in { position: relative; z-index: 1; padding: 32px; max-width: 580px; }
.hero-title { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.hero-title img { border-radius: 18px; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.hero h2 { font-size: 46px; margin: 0; line-height: 1; }
.hero p { color: #d6dbe6; font-size: 18px; line-height: 1.45; margin: 8px 0 18px; }
.tag { display: inline-block; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 10px; background: rgba(255,90,31,.15); color: #ff8a5c; margin: 0 6px 6px 0; }
.tag.free { background: rgba(255,210,63,.15); color: var(--accent2); }
.acts { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 28px; border-radius: 25px; font-weight: 800; font-size: 19px; color: #fff; background: linear-gradient(180deg, #ff7a3d, #e8440f); box-shadow: 0 6px 20px rgba(255,90,31,.35); border: none; cursor: pointer; font-family: inherit; }
.btn small { font-size: 13px; font-weight: 600; opacity: .85; margin-left: 4px; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: var(--card); color: var(--text); box-shadow: none; border: 1px solid var(--line); }
.btn.wide { width: 100%; margin-top: 12px; }

/* grid */
h2.sec { font-size: 24px; margin: 28px 0 14px; display: flex; align-items: center; gap: 10px; }
h2.sec small { color: var(--muted); font-size: 15px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { height: 34px; padding: 0 16px; border-radius: 17px; border: 1px solid var(--line); background: var(--bg2); color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; }
.chip.on { color: #fff; background: var(--accent); border-color: var(--accent); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; padding-bottom: 20px; }
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .15s, border-color .15s; }
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card .cv { aspect-ratio: 3/4; background: #222; position: relative; }
.card .cv img { width: 100%; height: 100%; object-fit: cover; }
.card .cv .ic { position: absolute; left: 10px; bottom: 10px; width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 4px 12px rgba(0,0,0,.6); }
.card .cv .new { position: absolute; top: 10px; left: 10px; background: var(--accent2); color: #2a1800; font-weight: 800; font-size: 12px; padding: 2px 8px; border-radius: 8px; }
.card .meta { padding: 10px 12px 12px; }
.card h3.t { margin: 0; font-weight: 800; font-size: 17px; line-height: 1.2; }
.card .s { color: var(--muted); font-size: 14px; }
.card[hidden] { display: none; }
.grid.mini { grid-template-columns: repeat(2, 1fr); padding: 6px 0 0; }
.empty, .soon { color: var(--muted); padding: 10px 0 30px; }

/* game page */
.crumbs { color: var(--muted); font-size: 14px; margin: 16px 0 10px; }
.crumbs a:hover { color: var(--accent); }
.gtop { position: relative; border-radius: 24px; overflow: hidden; background: var(--bg2) center/cover no-repeat; }
.gtop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,13,18,.95) 0%, rgba(11,13,18,.7) 55%, rgba(11,13,18,.35) 100%); }
.gtop .in { position: relative; z-index: 1; display: flex; gap: 22px; align-items: center; padding: 28px; }
.gic { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 10px 30px rgba(0,0,0,.55); flex: none; }
.gtxt h1 { margin: 4px 0 0; font-size: 44px; line-height: 1.05; }
.gtxt .sub { color: var(--muted); margin-bottom: 14px; }
.safe { color: #8fe0a0; font-size: 14px; margin-top: 10px; }
.gbody { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; padding: 20px 0 30px; }
.gbody > * { min-width: 0; }   /* the horizontal screenshot strip must not widen the column */
.media { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.vid { flex: none; width: 270px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.vid video { width: 100%; height: auto; aspect-ratio: 9/16; }
/* screenshot slider: whole slides only (3 per view desktop, 2 phone), arrows, dots, autoplay (js) */
.carousel { --per: 3; --gap: 12px; position: relative; flex: 1; min-width: 0; }
.shots { display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; border-radius: 16px; }
.shots::-webkit-scrollbar { display: none; }
.shot { flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); scroll-snap-align: start; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.shot img { width: 100%; height: 100%; aspect-ratio: 9/16; object-fit: cover; transition: transform .25s; }
.shot:hover img { transform: scale(1.03); }
.carousel .nav { position: absolute; top: calc(50% - 10px); transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18); background: rgba(11,13,18,.72); color: #fff; font-size: 30px; line-height: 40px; cursor: pointer;
  backdrop-filter: blur(4px); padding: 0; font-family: inherit; }
.carousel .nav:hover { background: var(--accent); border-color: var(--accent); }
.carousel .prev { left: 8px; }
.carousel .next { right: 8px; }
.carousel .dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.carousel .dots button { width: 9px; height: 9px; border-radius: 5px; border: 0; padding: 0; background: var(--line); cursor: pointer; transition: width .2s, background .2s; }
.carousel .dots button.on { width: 22px; background: var(--accent); }
/* lightbox */
.lb { position: fixed; inset: 0; z-index: 50; background: rgba(5,6,10,.92); display: flex; align-items: center; justify-content: center; }
.lb[hidden] { display: none; }
.lb img { max-height: 92vh; max-width: 92vw; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.lb .nav { position: fixed; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2);
  background: rgba(25,29,40,.8); color: #fff; font-size: 34px; cursor: pointer; padding: 0; }
.lb .prev { left: 18px; }
.lb .next { right: 18px; }
.lb .x { position: fixed; top: 14px; right: 18px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(25,29,40,.8); color: #fff; font-size: 26px; cursor: pointer; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 14px; }
.box h2 { font-size: 21px; margin: 0 0 8px; }
.box p, .box li { color: #d6dbe6; line-height: 1.55; }
.box ol, .box ul { padding-left: 22px; margin: 6px 0; }
ul.feat { list-style: none; padding-left: 0; }
ul.feat li { padding-left: 28px; position: relative; margin: 4px 0; }
ul.feat li::before { content: "⚡"; position: absolute; left: 0; }
details { border-top: 1px solid var(--line); padding: 10px 0; }
details:first-of-type { border-top: 0; }
summary { cursor: pointer; font-weight: 700; }
details p { margin: 8px 0 0; }
table.info { width: 100%; border-collapse: collapse; }
table.info th { text-align: left; color: var(--muted); font-weight: 600; padding: 6px 0; width: 45%; }
table.info td { padding: 6px 0; font-weight: 700; }
table.info tr + tr th, table.info tr + tr td { border-top: 1px solid var(--line); }

/* legal docs */
.doc h1 { font-size: 38px; margin: 6px 0; }
.doc h2 { font-size: 22px; margin: 24px 0 6px; }
.doc p { color: #d6dbe6; line-height: 1.6; }

/* ad slots (filled by js from /cfg/web-ads.json; empty = invisible) */
.ad { display: flex; justify-content: center; margin: 14px 0; }
.ad:empty { display: none; }

footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; padding: 22px 0 30px; margin-top: 10px; }
footer .intro { max-width: 820px; line-height: 1.5; margin: 0 0 12px; }
footer .legal, footer .langs { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 12px; font-size: 13px; }
footer a:hover { color: var(--accent); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.langlist { columns: 2; font-size: 20px; line-height: 2; }

@media (max-width: 920px) {
  .gbody { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .hero { min-height: 300px; }
  .hero .in { padding: 20px; }
  .hero h2 { font-size: 34px; }
  .brand { font-size: 22px; }
  .gtop .in { flex-direction: column; align-items: flex-start; padding: 20px; }
  .gtxt h1 { font-size: 34px; }
  .media { flex-direction: column; }
  .carousel { width: 100%; }
  .vid { width: 100%; max-width: 360px; margin: 0 auto; }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .search { display: none; }
  .langsel { height: 36px; font-size: 14px; margin-left: auto; max-width: 132px; }
  header.top .wrap { gap: 8px; }
  .brand { font-size: 19px; gap: 6px; }
  .brand img { width: 28px; height: 28px; }
  .brand b { margin-left: 3px; }
  .hero { min-height: 440px; }
  .hero::after { background: linear-gradient(0deg, rgba(11,13,18,.97) 35%, rgba(11,13,18,.4) 70%, rgba(11,13,18,0) 100%); }
  .hero p { font-size: 16px; }
  .btn { width: 100%; }
  .carousel { --per: 2; --gap: 10px; }
}


/* ---- play online (HTML5 builds) */
.btn.play { background: linear-gradient(180deg, #3ad17a, #1fa257); box-shadow: 0 6px 20px rgba(47,190,105,.35); }
.btn.wide small { display: none; }
.btn.play { white-space: nowrap; }
.box .btn.wide + .btn.wide { margin-top: 10px; }
.card .cv .web { position: absolute; bottom: 10px; right: 10px; background: rgba(31,162,87,.92); color: #fff; font-weight: 800; font-size: 12px; padding: 2px 8px; border-radius: 8px; }
.ptitle { font-size: clamp(22px, 3.2vw, 32px); margin: 6px 0 14px; }
.player { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 18px; }
.pframe { position: relative; width: min(100%, calc(min(78vh, 900px) * 9 / 16)); aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden;
  background: #000 center / cover no-repeat; box-shadow: 0 10px 40px rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.08); }
.player.land .pframe { width: min(100%, calc(min(72vh, 760px) * 16 / 9)); aspect-ratio: 16 / 9; }
.pframe iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #0b0d12; }
.pframe:fullscreen { width: 100vw; height: 100vh; border-radius: 0; aspect-ratio: auto; }
.pframe.max { position: fixed; inset: 0; z-index: 1000; width: 100vw; height: 100dvh; border-radius: 0; aspect-ratio: auto; }
.pstart { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; width: 100%;
  border: 0; cursor: pointer; color: #fff; font-family: inherit; background: linear-gradient(180deg, rgba(11,13,18,.15), rgba(11,13,18,.75)); }
.pstart .pbig { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; font-size: 40px; padding-left: 6px;
  background: linear-gradient(180deg, #3ad17a, #1fa257); box-shadow: 0 8px 30px rgba(47,190,105,.55); transition: transform .15s; }
.pstart:hover .pbig { transform: scale(1.08); }
.pstart b { font-size: 26px; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.pstart small { font-size: 13px; opacity: .85; }
.pbar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pbar .btn { min-height: 44px; font-size: 16px; padding: 0 20px; width: auto; }
.player .small { text-align: center; max-width: 640px; }
@media (max-width: 760px) { .pframe { width: 100%; max-height: 82vh; } .player.land .pframe { width: 100%; } }
