:root {
  --bg: #0d1117; --bg2: #141a23; --card: #18202b; --line: #263142; --fg: #e8edf3; --muted: #93a1b3;
  --acc: #3ee6b0; --acc2: #ffb547; --red: #ff5f6d; --blue: #6aa8ff; --r: 12px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--acc); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, .logo { font-family: "Exo 2", Inter, system-ui, sans-serif; line-height: 1.2; text-wrap: balance; }
h1 { font-size: clamp(26px, 4vw, 40px); margin: 8px 0 14px; }
h2 { font-size: 22px; margin: 34px 0 14px; }
h3 { font-size: 17px; margin: 0 0 8px; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.muted { color: var(--muted); } .small { font-size: 14px; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: rgb(13 17 23 / 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 22px; min-height: 60px; }
.logo { color: var(--fg); font-weight: 800; font-size: 22px; letter-spacing: 0.02em; display: flex; align-items: center; gap: 8px; }
.logo:hover { text-decoration: none; }
.logo .mark { color: var(--acc); flex: none; transition: transform 0.4s cubic-bezier(.2,.7,.2,1); }
.logo b { color: var(--acc); font-weight: inherit; }
.logo:hover .mark { transform: rotate(90deg); }
.nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav a { color: var(--muted); font-weight: 500; padding: 8px 12px; border-radius: 8px; white-space: nowrap; }
.nav a:hover, .nav a[aria-current] { color: var(--fg); background: var(--card); text-decoration: none; }
.lang { border: 1px solid var(--line); color: var(--fg); font-size: 13px; font-weight: 700; padding: 5px 10px; border-radius: 8px; }
.lang:hover { border-color: var(--acc); text-decoration: none; }

/* home */
.hero { padding: 48px 0 18px; text-align: center; }
.hero h1 { font-size: clamp(30px, 5.5vw, 54px); margin-bottom: 8px; }
.hero h1::after { content: ""; display: block; width: 64px; height: 4px; margin: 16px auto 0; background: linear-gradient(90deg, var(--acc), var(--blue)); border-radius: 4px; }
.hero p { color: var(--muted); font-size: 18px; }
.search { display: flex; max-width: 560px; margin: 22px auto 0; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 5px; }
.search:focus-within { border-color: var(--acc); }
.search input { flex: 1; min-width: 0; background: none; border: 0; color: var(--fg); font: inherit; padding: 8px 16px; outline: none; }
.btn, .search button { display: inline-block; background: var(--acc); color: #06241a; font: 700 15px Inter, sans-serif; border: 0; border-radius: 999px; padding: 10px 20px; cursor: pointer; }
.btn:hover, .search button:hover { filter: brightness(1.1); text-decoration: none; }
.btn.ghost { background: none; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }
.sh { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 38px 0 14px; }
.sh h2 { margin: 0; }
.sh a { font-size: 14px; white-space: nowrap; }

/* cards */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.grid.wide { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { background: var(--card); border-radius: var(--r); overflow: hidden; color: var(--fg); display: flex; flex-direction: column; transition: transform 0.15s, box-shadow 0.15s; }
.card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 10px 28px rgb(0 0 0 / 0.4), 0 0 0 1px var(--acc); }
.card img { aspect-ratio: 460 / 215; object-fit: cover; width: 100%; background: var(--bg2); }
.card.epic img { aspect-ratio: 16 / 9; }
.cb { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.cb b { font-size: 15px; line-height: 1.3; }
.cb small { color: var(--muted); font-size: 13px; }
.badges { display: flex; gap: 6px; margin-top: auto; padding-top: 8px; flex-wrap: wrap; }
.b { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: var(--bg2); color: var(--fg); white-space: nowrap; }
.b.off { background: var(--acc); color: #06241a; }
.b.free { background: rgb(62 230 176 / 0.15); color: var(--acc); }
.b.soon { background: rgb(255 181 71 / 0.14); color: var(--acc2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { background: var(--card); color: var(--fg); padding: 7px 14px; border-radius: 999px; font-size: 14px; }
.chips a:hover { background: var(--line); text-decoration: none; }
.chips small { color: var(--muted); margin-left: 4px; }

/* game page */
.crumbs { font-size: 14px; color: var(--muted); margin: 18px 0 6px; }
.crumbs a { color: var(--muted); }
.ghero { display: grid; grid-template-columns: 460px 1fr; gap: 26px; align-items: start; margin-top: 10px; }
.ghero img { border-radius: var(--r); width: 100%; }
.lead { color: #c9d3df; }
.cta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 30px; align-items: start; }
.cols aside { position: sticky; top: 76px; margin-top: 34px; }
.reqs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.reqs > div { background: var(--card); border-radius: var(--r); padding: 16px; min-width: 0; }
.reqs h3 { color: var(--acc); font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; }
.reqs > div + div h3 { color: var(--acc2); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; vertical-align: top; padding: 7px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
tr:last-child th, tr:last-child td { border-bottom: 0; }
th { color: var(--muted); font-weight: 500; width: 38%; padding-right: 12px; }
.facts { background: var(--card); border-radius: var(--r); padding: 6px 16px; display: block; }
.facts tbody { display: table; width: 100%; }
.meta { background: #66cc33; color: #0b1a05; font-weight: 800; padding: 1px 7px; border-radius: 5px; }
.quote { margin: 0; background: var(--bg2); border-left: 3px solid var(--blue); padding: 14px 18px; border-radius: 0 var(--r) var(--r) 0; color: #c9d3df; }
.quote footer { margin-top: 8px; font-size: 13px; color: var(--muted); }
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.shots img { border-radius: 8px; aspect-ratio: 16 / 9; object-fit: cover; }
.grid.small { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* lists */
.filter { display: flex; gap: 10px; margin: 6px 0 20px; flex-wrap: wrap; }
.filter input, .filter select { background: var(--card); border: 1px solid var(--line); color: var(--fg); font: inherit; padding: 10px 14px; border-radius: 10px; }
.filter input { flex: 1; min-width: 200px; }
.filter input:focus, .filter select:focus { outline: none; border-color: var(--acc); }
.month { border-bottom: 1px solid var(--line); padding-bottom: 8px; color: var(--acc2); }
.rel { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.rel a { display: flex; gap: 12px; align-items: center; background: var(--card); border-radius: 10px; padding: 8px; color: var(--fg); }
.rel a:hover { background: var(--line); text-decoration: none; }
.rel img { width: 120px; aspect-ratio: 460 / 215; object-fit: cover; border-radius: 6px; flex: none; }
.rel span { display: flex; flex-direction: column; min-width: 0; }
.rel small { color: var(--muted); font-size: 13px; }
.newslist { display: flex; flex-direction: column; gap: 12px; }
.news { display: flex; gap: 16px; background: var(--card); border-radius: var(--r); padding: 14px; }
.news > div { min-width: 0; }
.nthumb { flex: none; width: 184px; }
.nthumb img { border-radius: 8px; aspect-ratio: 460 / 215; object-fit: cover; }
.news time { color: var(--muted); font-size: 13px; }
.news h3 { margin: 4px 0 6px; font-size: 17px; }
.news h3 a { color: var(--fg); }
.news p { margin: 0 0 6px; color: #c9d3df; font-size: 15px; }
.src { color: var(--muted); font-size: 12px; }
.legal { max-width: 720px; }

/* footer */
.foot { margin-top: 60px; border-top: 1px solid var(--line); background: var(--bg2); padding: 26px 0 34px; color: var(--muted); }
.foot b { color: var(--fg); }
.foot .links { display: flex; gap: 18px; flex-wrap: wrap; }

@media (max-width: 960px) {
  .grid, .grid.small { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ghero, .cols { grid-template-columns: 1fr; }
  .cols aside { position: static; margin-top: 10px; order: -1; }
}
@media (max-width: 680px) {
  .top .wrap { gap: 10px; flex-wrap: wrap; padding-top: 8px; }
  .nav { order: 3; flex-basis: 100%; margin: 0 -6px; }
  .lang { margin-left: auto; }
  .nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; text-align: center; }
  .nav a { padding: 6px 7px; font-size: 14px; }
  .grid, .grid.small { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .reqs, .shots { grid-template-columns: 1fr; }
  .news { flex-direction: column; }
  .nthumb { width: 100%; }
  .rel { grid-template-columns: 1fr; }
  .hero { padding-top: 28px; }
}
.card[hidden]{display:none}

/* mods */
.mods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mod { display: flex; flex-direction: column; background: var(--card); border-radius: var(--r); overflow: hidden; color: var(--fg); transition: transform 0.15s, box-shadow 0.15s; }
.mod:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 10px 28px rgb(0 0 0 / 0.4), 0 0 0 1px var(--acc); }
.mod[hidden] { display: none; }
.mod img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; background: var(--bg2); }
.mb { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.mb b { font-size: 15px; line-height: 1.3; }
.mm, .ms { color: var(--muted); font-size: 12px; }
.md { font-size: 14px; color: #c9d3df; line-height: 1.45; }
.ms { margin-top: auto; padding-top: 6px; }
.modcats { margin: 22px 0 16px; }
.modcats button { background: var(--card); color: var(--fg); border: 0; padding: 7px 14px; border-radius: 999px; font: 14px Inter, sans-serif; cursor: pointer; }
.modcats button.on { background: var(--acc); color: #06241a; font-weight: 700; }
.steps { padding-left: 20px; color: #c9d3df; } .steps li { margin: 6px 0; }
@media (max-width: 960px) { .mods { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .mods { grid-template-columns: 1fr; } }

/* home stage: slider over a blurred screenshot of the current game */
html { overflow-x: clip; }
.stage { position: relative; width: 100vw; margin-left: calc(50% - 50vw); padding: 28px max(16px, calc((100vw - 1200px) / 2 + 16px)) 10px; isolation: isolate; }
.stage-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.stage-bg::before { content: ""; position: absolute; inset: -60px; background: var(--bg) center / cover no-repeat; filter: blur(42px) saturate(1.4) brightness(0.55); transform: scale(1.1); transition: background-image 0.6s; }
.stage-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(13 17 23 / 0.25), rgb(13 17 23 / 0.55) 60%, var(--bg)); }
.stage-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; flex-wrap: wrap; }
.stage-top h1 { font-size: clamp(22px, 2.6vw, 30px); margin: 0; text-shadow: 0 2px 12px rgb(0 0 0 / 0.5); }
.stage-top .search { margin: 0; flex: 0 1 420px; background: rgb(24 32 43 / 0.75); backdrop-filter: blur(6px); }
.stage-in { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; }
.slides { position: relative; aspect-ratio: 16 / 8.2; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 60px rgb(0 0 0 / 0.5); background: var(--bg2); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s; pointer-events: none; }
.slide.on { opacity: 1; pointer-events: auto; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(8 11 16 / 0.92) 0%, rgb(8 11 16 / 0.6) 45%, transparent 75%), linear-gradient(0deg, rgb(8 11 16 / 0.7), transparent 45%); }
.slide-txt { position: absolute; z-index: 1; left: 0; bottom: 0; padding: 30px 34px; max-width: 560px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.slide-txt h2 { margin: 0; font-size: clamp(24px, 3.2vw, 42px); }
.slide-txt h2 a { color: #fff; }
.slide-txt p { margin: 0; color: #d6dde6; font-size: 15px; }
.kind { font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgb(255 255 255 / 0.12); backdrop-filter: blur(4px); }
.k-soon { color: var(--acc2); } .k-deal { color: var(--acc); }
.slide-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 13px; color: #c9d3df; }
.slide-meta > span:not(.b) { background: rgb(255 255 255 / 0.08); padding: 3px 8px; border-radius: 6px; }
.nav-b { position: absolute; z-index: 2; top: 50%; translate: 0 -50%; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgb(13 17 23 / 0.6); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity 0.2s; }
.slides:hover .nav-b { opacity: 1; } .nav-b:hover { background: var(--acc); color: #06241a; }
.prev { left: 12px; } .next { right: 12px; }
.thumbs { display: flex; flex-direction: column; gap: 8px; }
.thumb { position: relative; display: flex; gap: 10px; align-items: center; text-align: left; background: rgb(24 32 43 / 0.7); backdrop-filter: blur(6px); border: 0; border-radius: 12px; padding: 7px; color: var(--fg); cursor: pointer; font: inherit; overflow: hidden; flex: 1; min-height: 0; }
.thumb:hover, .thumb.on { background: rgb(38 49 66 / 0.9); }
.thumb.on { box-shadow: inset 0 0 0 1px var(--acc); }
.thumb img { width: 96px; aspect-ratio: 184 / 69; object-fit: cover; border-radius: 6px; flex: none; }
.thumb span { display: flex; flex-direction: column; min-width: 0; }
.thumb b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thumb small { color: var(--muted); font-size: 12px; }
.thumb i { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--acc); }
.thumb.on i { animation: prog 7s linear forwards; }
.stage.paused .thumb.on i { animation-play-state: paused; }
@keyframes prog { to { width: 100%; } }
.stage-note { text-align: center; color: var(--muted); font-size: 13px; margin: 16px 0 0; }
@media (max-width: 960px) {
  .stage-in { grid-template-columns: 1fr; }
  .thumbs { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .thumb { flex: 0 0 210px; }
}
@media (max-width: 680px) {
  .stage { padding-top: 16px; }
  .slides { aspect-ratio: 4 / 5; }
  .slide::after { background: linear-gradient(0deg, rgb(8 11 16 / 0.95) 10%, rgb(8 11 16 / 0.5) 55%, transparent 80%); }
  .slide-txt { padding: 18px; }
  .slide-txt p { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .nav-b { opacity: 1; top: 30%; }
  .stage-top .search { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { .slide, .stage-bg::before { transition: none; } }

/* card hover: picture zooms, a panel with rating, release, a short line and the minimum PC slides up */
.ci { position: relative; display: block; overflow: hidden; }
.ci img { transition: transform 0.5s cubic-bezier(.2,.7,.2,1), filter 0.4s; }
.ci::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / 0.18) 50%, transparent 65%); transform: translateX(-120%); pointer-events: none; }
.hov { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; background: linear-gradient(180deg, rgb(8 11 16 / 0.55), rgb(8 11 16 / 0.92) 55%); color: var(--fg); font-size: 12.5px; line-height: 1.4; opacity: 0; transform: translateY(14px); transition: opacity 0.25s, transform 0.3s cubic-bezier(.2,.7,.2,1); pointer-events: none; }
.hov i { font-style: normal; font-weight: 700; font-size: 11.5px; padding: 2px 7px; border-radius: 5px; background: rgb(255 255 255 / 0.1); white-space: nowrap; }
.hov i.up { background: rgb(62 230 176 / 0.2); color: var(--acc); } .hov i.mid { background: rgb(255 181 71 / 0.18); color: var(--acc2); } .hov i.down { background: rgb(255 95 109 / 0.18); color: var(--red); } .hov i.mc { background: #66cc33; color: #0b1a05; }
.ht, .hs { display: flex; flex-wrap: wrap; gap: 5px; }
.hd { color: #d5dde7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hs { margin-top: auto; }
.hm { color: var(--acc); font-weight: 700; font-size: 12px; }
.card .ht > *, .card .hd, .card .hs, .card .hm { opacity: 0; transform: translateY(8px); transition: opacity 0.3s, transform 0.35s; }
@media (hover: hover) {
  .card:hover .ci img { transform: scale(1.08); filter: saturate(1.2); }
  .card:hover .ci::after { transform: translateX(120%); transition: transform 0.8s ease; }
  .card:hover .hov { opacity: 1; transform: none; }
  .card:hover .ht > *, .card:hover .hd, .card:hover .hs, .card:hover .hm { opacity: 1; transform: none; }
  .card:hover .hd { transition-delay: 0.06s; } .card:hover .hs { transition-delay: 0.12s; } .card:hover .hm { transition-delay: 0.18s; }
  .card:hover .cb b { color: var(--acc); }
  .mod:hover img, .rel a:hover img, .nthumb:hover img { transform: scale(1.06); }
}
.mod img, .rel img, .nthumb img { transition: transform 0.4s; }
.mod, .rel a, .nthumb { overflow: hidden; }
.card .cb b { transition: color 0.2s; }

/* site backdrop: blurred game pictures that change by themselves, behind every page except home */
.bgfx { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bgfx i { position: absolute; inset: -60px; background: center / cover no-repeat; filter: blur(10px) saturate(1.35) brightness(0.8); opacity: 0; transition: opacity 2.2s ease; animation: drift 24s ease-in-out infinite alternate; }
.bgfx i.on { opacity: 0.85; }
.bgfx::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 30%, rgb(13 17 23 / 0.05), rgb(13 17 23 / 0.6) 75%), linear-gradient(180deg, rgb(13 17 23 / 0.1), rgb(13 17 23 / 0.45) 60%, rgb(13 17 23 / 0.75)); }
@keyframes drift { from { transform: scale(1.05) translate(0, 0); } to { transform: scale(1.15) translate(-2%, 1.5%); } }
.bgfx ~ main .card, .bgfx ~ main .news, .bgfx ~ main .reqs > div, .bgfx ~ main .facts, .bgfx ~ main .rel a, .bgfx ~ main .mod { background: rgb(24 32 43 / 0.82); backdrop-filter: blur(10px); }
@media (prefers-reduced-motion: reduce) { .bgfx i { animation: none; } .hov, .ci img, .ci::after { transition: none; } }
