/* ---------- base ---------- */
:root {
  --bg: #0b0a12;
  --bg-2: #12101c;
  --panel: #171425;
  --line: rgba(255, 255, 255, .08);
  --text: #f3f1fa;
  --muted: #a7a2bd;
  --accent: #ffb547;
  --radius: 20px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.025em; margin: 0; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .18em; font-size: 12px; font-weight: 700;
  color: var(--accent); margin: 0 0 14px;
}
.new {
  display: inline-block; vertical-align: middle; margin-left: 10px; padding: 3px 9px; border-radius: 99px;
  font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  background: var(--accent); color: #120e1c;
}

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(11, 10, 18, .72); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; text-decoration: none; font-size: 18px; }
.logo-mark { width: 28px; height: 28px; filter: drop-shadow(0 0 12px rgba(255, 160, 70, .45)); }
.nav nav { display: flex; gap: 6px; }
.nav nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; padding: 8px 14px; border-radius: 99px; transition: color .2s, background .2s; }
.nav nav a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
  font-weight: 700; font-size: 16px; padding: 14px 24px; border-radius: 99px; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn.primary { background: linear-gradient(135deg, #ffd36e, #ff8a3d); color: #1a1020; box-shadow: 0 10px 30px -8px rgba(255, 140, 60, .6); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px rgba(255, 140, 60, .75); }
.btn.ghost { border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .04); }
.btn.ghost:hover { background: rgba(255, 255, 255, .1); }
.btn.big { font-size: 18px; padding: 18px 30px; word-break: break-all; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(100svh, 940px); display: flex; align-items: center; padding: 110px 0 70px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg-img {
  position: absolute; inset: -60px; background-size: cover; background-position: center;
  filter: blur(60px) saturate(1.4) brightness(.55); opacity: 0; transform: scale(1.1); transition: opacity 1.2s ease;
}
.hero-bg-img.on { opacity: 1; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 40%, transparent 0%, rgba(11, 10, 18, .55) 55%, var(--bg) 100%),
              linear-gradient(to bottom, rgba(11, 10, 18, .3), var(--bg) 96%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: 1; opacity: .35;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}
.hero-inner { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; }
.hero h1 {
  font-size: clamp(44px, 6.4vw, 84px); font-weight: 850; letter-spacing: -.04em;
  background: linear-gradient(180deg, #fff 30%, #cfc8e8); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); max-width: 34em; margin: 22px 0 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-stage { position: relative; display: grid; }
.slide { grid-area: 1 / 1; opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .7s ease, transform .9s cubic-bezier(.2, .8, .2, 1); pointer-events: none; }
.slide.on { opacity: 1; transform: none; pointer-events: auto; }
.slide-art {
  display: block; border-radius: var(--radius); overflow: hidden; position: relative;
  box-shadow: 0 40px 90px -30px color-mix(in srgb, var(--accent) 70%, transparent), 0 0 0 1px rgba(255, 255, 255, .1);
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.slide-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255, 255, 255, .14), transparent 40%); pointer-events: none; }
.slide-art:hover { transform: translateY(-4px) rotate(-.4deg); }
.slide-art img { width: 100%; aspect-ratio: 2.05; object-fit: cover; }
.slide-meta { display: flex; gap: 16px; align-items: center; margin-top: 22px; }
.slide-icon { width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 8px 24px -6px rgba(0, 0, 0, .6); flex: none; }
.slide-meta h2 { font-size: 22px; }
.slide-meta h2 a { text-decoration: none; }
.slide-meta h2 a:hover { color: var(--accent); }
.slide-meta p { margin: 4px 0 0; color: var(--muted); font-size: 15px; line-height: 1.45; }
.dots { display: flex; gap: 8px; margin-top: 24px; }
.dots button {
  width: 28px; height: 6px; border-radius: 99px; border: 0; padding: 0; cursor: pointer;
  background: rgba(255, 255, 255, .18); transition: width .3s, background .3s; position: relative; overflow: hidden;
}
.dots button[aria-selected="true"] { width: 56px; background: rgba(255, 255, 255, .25); }
.dots button[aria-selected="true"]::after {
  content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: left;
  animation: fill var(--slide-ms, 6000ms) linear forwards;
}
.hero.paused .dots button::after { animation-play-state: paused; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: -20px; position: relative; z-index: 2;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.stats div { background: rgba(23, 20, 37, .85); backdrop-filter: blur(10px); padding: 26px 28px; display: flex; align-items: baseline; gap: 12px; }
.stats strong { font-size: 40px; font-weight: 850; letter-spacing: -.04em; background: linear-gradient(135deg, #ffd36e, #ff8a3d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { color: var(--muted); font-weight: 600; }

/* ---------- games grid ---------- */
section { scroll-margin-top: 80px; }
.games { padding: 120px 0 40px; }
.section-head h2, .about h2, .contact h2, .more h2 { font-size: clamp(34px, 4.4vw, 56px); font-weight: 850; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0 34px; }
.chip {
  font: inherit; font-size: 14px; font-weight: 700; color: var(--muted); cursor: pointer;
  padding: 9px 16px; border-radius: 99px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); transition: all .2s;
}
.chip:hover { color: var(--text); border-color: rgba(255, 255, 255, .2); }
.chip.on { color: #1a1020; background: var(--text); border-color: var(--text); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 22px; }
.card {
  position: relative; border-radius: var(--radius); overflow: hidden; background: var(--panel);
  border: 1px solid var(--line); display: flex; flex-direction: column;
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), border-color .3s, box-shadow .45s;
}
.card.hide { display: none; }
.card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 30px 70px -30px color-mix(in srgb, var(--accent) 65%, transparent); }
.card-link { position: absolute; inset: 0; z-index: 3; border-radius: inherit; }
.card-shot {
  position: relative; height: 230px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 120%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 70%), var(--bg-2);
  display: flex; justify-content: center; align-items: flex-end; gap: 12px; padding: 22px 18px 0;
}
.card-shot img {
  height: 100%; width: auto; max-width: 46%; object-fit: cover; object-position: top; border-radius: 12px 12px 0 0;
  box-shadow: 0 -10px 30px -10px rgba(0, 0, 0, .7); transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.card-shot img.s1, .card-shot img.s2 { transform: translateY(26px) scale(.9); opacity: .8; }
.card-shot img.s0 { z-index: 1; }
.card-shot:has(img.s0[src]) img { aspect-ratio: auto; }
.card:hover .card-shot img.s0 { transform: translateY(-6px); }
.card:hover .card-shot img.s1, .card:hover .card-shot img.s2 { transform: translateY(16px) scale(.92); opacity: 1; }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.card-head { display: flex; gap: 14px; align-items: center; margin-top: -52px; position: relative; z-index: 2; }
.card-icon { width: 64px; height: 64px; border-radius: 16px; border: 3px solid var(--panel); box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .7); flex: none; }
.card-head > div { padding-top: 26px; min-width: 0; }
.card h3 { font-size: 21px; }
.sub { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.tagline { margin: 0; color: #d6d2e6; font-size: 15.5px; line-height: 1.5; flex: 1; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.tags, .g-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span, .g-tags span:not(.new) {
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px;
  background: color-mix(in srgb, var(--accent) 16%, transparent); color: color-mix(in srgb, var(--accent) 80%, white);
}
.plats { display: flex; gap: 6px; }
.plat { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); padding: 4px 8px; border-radius: 8px; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; padding: 120px 0 60px; }
.about-copy p:not(.eyebrow) { color: var(--muted); font-size: 18px; }
.about-copy h2 { margin-bottom: 20px; }
.about-icons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; transform: rotate(-6deg); }
.about-icons img {
  border-radius: 22%; box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .8);
  animation: bob 6s ease-in-out infinite; animation-delay: calc(var(--i) * -.55s);
}
.about-icons img:nth-child(odd) { margin-top: 26px; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* ---------- contact ---------- */
.contact { padding: 60px 0 120px; }
.contact-card {
  text-align: center; padding: clamp(40px, 7vw, 80px) 24px; border-radius: 28px; border: 1px solid var(--line);
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 150, 60, .22), transparent 65%), var(--panel);
}
.contact-card p:not(.eyebrow) { color: var(--muted); font-size: 18px; margin: 14px 0 30px; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 34px 0; color: var(--muted); font-size: 14px; }
.foot-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot p { margin: 0; flex: 1; min-width: 240px; text-align: center; }
.foot a:not(.brand) { color: var(--muted); }

/* ---------- game page ---------- */
.g-hero { position: relative; padding: 120px 0 60px; overflow: hidden; isolation: isolate; }
.g-hero-bg {
  position: absolute; inset: -80px; z-index: -1; background-size: cover; background-position: center;
  filter: blur(50px) saturate(1.5) brightness(.5); transform: scale(1.1);
}
.g-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(11, 10, 18, .2), var(--bg)); }
.back { display: inline-block; color: var(--muted); text-decoration: none; font-weight: 600; margin-bottom: 30px; }
.back:hover { color: var(--text); }
.g-title { display: flex; gap: 28px; align-items: center; }
.g-icon { width: 128px; height: 128px; border-radius: 28px; box-shadow: 0 24px 60px -16px color-mix(in srgb, var(--accent) 70%, black); flex: none; }
.g-title h1 { font-size: clamp(40px, 6vw, 76px); font-weight: 850; letter-spacing: -.04em; margin-top: 10px; }
.g-sub { margin: 6px 0 0; font-size: clamp(18px, 2vw, 24px); color: color-mix(in srgb, var(--accent) 70%, white); font-weight: 600; }
.g-tags .new { margin-left: 0; }
.g-tagline { font-size: clamp(18px, 1.8vw, 22px); color: #ddd8ee; max-width: 40em; margin: 28px 0; }
.badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.badge { display: block; transition: transform .2s, filter .2s; border-radius: 9px; }
.badge img { height: 44px; width: auto; }
.badges.big .badge img { height: 56px; }
.badge:hover { transform: translateY(-2px); filter: drop-shadow(0 8px 18px color-mix(in srgb, var(--accent) 50%, transparent)); }
.g-plats { color: var(--muted); font-size: 14px; margin: 14px 0 0; }

.shots { padding: 10px 0 30px; }
.shots-track {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px max(20px, calc((100vw - 1200px) / 2)) 24px;
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .2) transparent;
}
.shot { flex: none; scroll-snap-align: start; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 18px; overflow: hidden; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .9), 0 0 0 1px var(--line); transition: transform .3s; }
.shot:hover { transform: translateY(-4px); }
.shot img { height: min(560px, 70vh); width: auto; }

.g-body { display: grid; grid-template-columns: 1fr 320px; gap: 60px; padding: 40px 0 60px; align-items: start; }
.g-desc h2 { font-size: 32px; margin-bottom: 18px; }
.g-desc h3 { font-size: 20px; margin: 30px 0 8px; color: color-mix(in srgb, var(--accent) 70%, white); }
.g-desc p, .g-desc li { color: #cfcae0; }
.g-desc ul { padding-left: 1.2em; }
.g-desc li { margin: 6px 0; }
.g-desc li::marker { color: var(--accent); }
.g-side { position: sticky; top: 100px; }
.side-card { padding: 28px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); text-align: center; }
.side-card img:first-child { width: 72px; height: 72px; border-radius: 18px; margin: 0 auto 14px; }
.side-card h3 { margin-bottom: 18px; }
.side-card .badges { flex-direction: column; align-items: center; }
.side-card .badge img { height: 46px; width: auto; }
.more { padding: 30px 0 110px; }
.more h2 { margin-bottom: 30px; font-size: clamp(28px, 3.4vw, 40px); }
.grid.small { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid.small .card-shot { height: 180px; }
.grid.small .tagline { font-size: 14.5px; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgba(5, 4, 10, .88); backdrop-filter: blur(6px); }
.lightbox img { max-width: 96vw; max-height: 90vh; border-radius: 18px; }
.lb-close { position: fixed; top: 16px; right: 20px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 26px; cursor: pointer; }

.notfound { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-top: 120px; }
.notfound h1 { font-size: clamp(40px, 6vw, 72px); margin-bottom: 14px; }
.notfound p:not(.eyebrow) { color: var(--muted); margin: 0 0 28px; font-size: 18px; }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .9s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero { min-height: auto; padding-top: 100px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .about { grid-template-columns: 1fr; gap: 40px; padding-top: 90px; }
  .about-icons { grid-template-columns: repeat(6, 1fr); transform: none; gap: 10px; }
  .about-icons img:nth-child(odd) { margin-top: 0; }
  .g-body { grid-template-columns: 1fr; gap: 30px; }
  .g-side { position: static; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .nav nav a { padding: 8px 9px; font-size: 14px; }
  .brand span { font-size: 16px; }
  .nav nav a[href="/#about"] { display: none; }
  .stats { grid-template-columns: 1fr; margin-top: 0; }
  .stats div { padding: 18px 22px; }
  .stats strong { font-size: 32px; }
  .games { padding-top: 80px; }
  .grid, .grid.small { grid-template-columns: 1fr; }
  .card-shot { height: 210px; }
  .about-icons { grid-template-columns: repeat(4, 1fr); }
  .g-title { flex-direction: column; align-items: flex-start; gap: 18px; }
  .g-icon { width: 96px; height: 96px; border-radius: 22px; }
  .shot img { height: 440px; max-height: 64vh; }
  .badges.big .badge img { height: 50px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* newest-release tile in the stats strip */
.stats .stat-new { background: rgba(23, 20, 37, .85); padding: 20px 28px; display: flex; align-items: center; gap: 14px; text-decoration: none; transition: background .2s; }
.stats .stat-new:hover { background: rgba(40, 34, 60, .9); }
.stat-new img { width: 44px; height: 44px; border-radius: 11px; }
.stat-new span { display: flex; flex-direction: column; font-weight: 700; color: var(--text); line-height: 1.3; }
.stat-new em { font-style: normal; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); }

/* ---------- videos ---------- */
.slide-art video, .slide-art img { width: 100%; aspect-ratio: 2.2; object-fit: cover; display: block; background: #000; }
.g-hero.has-video { padding-bottom: 80px; }
.g-hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1;
  opacity: .5; filter: saturate(1.1);
  mask-image: linear-gradient(to right, transparent 0%, #000 45%), linear-gradient(to bottom, #000 60%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent 5%, #000 55%);
}
.g-hero.has-video::after { background: linear-gradient(90deg, rgba(11, 10, 18, .92) 0%, rgba(11, 10, 18, .55) 55%, rgba(11, 10, 18, .2) 100%), linear-gradient(to bottom, transparent 60%, var(--bg)); }
.shot.clip { cursor: default; position: relative; background: #000; }
.shot.clip video { height: min(560px, 70vh); width: auto; display: block; }
.shot.clip::after {
  content: "▶ Gameplay"; position: absolute; left: 12px; top: 12px; font-size: 12px; font-weight: 800; letter-spacing: .06em;
  padding: 5px 10px; border-radius: 99px; background: rgba(0, 0, 0, .55); backdrop-filter: blur(6px); color: #fff;
}
@media (max-width: 640px) {
  .shot.clip video { height: 440px; max-height: 64vh; }
  .g-hero-video { opacity: .35; -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent); }
}
@media (prefers-reduced-motion: reduce) { .g-hero-video { display: none; } }
