:root {
  --bg: #07080d;
  --surface: #0e1018;
  --surface-2: #141724;
  --line: rgba(255, 255, 255, 0.09);
  --text: #eef0f6;
  --muted: #9ba1b5;
  --gold: #f3bd55;
  --sf: #ff9a3c;
  --sf-2: #b45cff;
  --sp: #35d39a;
  --sp-2: #d9a441;
  --accent: var(--gold);
  --display: "Unbounded", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* header */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px var(--gutter);
  background: rgba(7, 8, 13, 0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.top__brand img { height: 22px; width: auto; }
.top__nav { display: flex; gap: clamp(14px, 3vw, 32px); font-size: 14px; font-weight: 500; }
.top__nav a { text-decoration: none; color: var(--muted); transition: color .2s; }
.top__nav a:hover { color: var(--text); }

/* hero */
.hero { position: relative; min-height: min(88vh, 860px); display: grid; align-items: center; overflow: hidden; isolation: isolate; }
.hero__inner { max-width: 820px; margin: 0 auto; padding: 96px var(--gutter) 88px; text-align: center; }
.hero__logo { width: min(520px, 88%); margin: 0 auto 36px; filter: drop-shadow(0 6px 30px rgba(0, 0, 0, .6)); }
.hero h1 { font-size: clamp(28px, 4.6vw, 52px); }
.hero__lede { margin: 20px auto 0; max-width: 620px; color: #c9cddb; font-size: clamp(16px, 1.6vw, 18px); }
.hero__games { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; border-radius: 999px;
  font: 500 14px/1 var(--display); text-decoration: none; letter-spacing: .02em;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .04);
  transition: background .2s, border-color .2s, transform .2s;
}
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); }
.chip:hover { transform: translateY(-1px); border-color: var(--c); background: rgba(255, 255, 255, .07); }
.chip--sf { --c: var(--sf); }
.chip--sp { --c: var(--sp); }

/* featured-games hero */
.show { position: relative; height: calc(100svh - 51px); min-height: 600px; max-height: 1200px; overflow: hidden; isolation: isolate; background: #05060a; }
.show__static, .show__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.show__canvas { opacity: 0; transition: opacity 1.2s ease; }
.show--live .show__canvas { opacity: 1; }
.show--live .show__static { opacity: 0; transition: opacity 1.2s ease .3s; }
.show__scene { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.show[data-active="0"] .show__scene[data-scene="0"], .show[data-active="1"] .show__scene[data-scene="1"] { opacity: 1; }
.show__scene img { position: absolute; }
.show__bg { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.show__fg { bottom: -7%; left: 50%; height: 104%; width: auto; max-width: none; transform: translateX(-50%); }
.show__star { top: 50%; left: 50%; height: 74%; width: auto; max-width: none; transform: translate(-50%, -50%); }
.show__shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 6, 10, .88) 0%, rgba(5, 6, 10, .6) 28%, rgba(5, 6, 10, 0) 56%),
    linear-gradient(0deg, var(--bg) 0%, rgba(7, 8, 13, 0) 24%),
    linear-gradient(180deg, rgba(5, 6, 10, .55) 0%, rgba(5, 6, 10, 0) 18%);
}
.show__content {
  position: relative; z-index: 2; height: 100%;
  max-width: 1440px; margin: 0 auto; padding: 0 clamp(16px, 5vw, 72px) clamp(96px, 14vh, 150px);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.show__kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: #d9dcea; }
.show__kicker img { width: 26px; height: auto; }
.show__slides { display: grid; max-width: 600px; }
.show__slide {
  grid-area: 1 / 1; align-self: end;
  opacity: 0; transform: translateY(18px); pointer-events: none; visibility: hidden;
  transition: opacity .5s ease, transform .5s ease, visibility 0s linear .5s;
}
.show__slide.is-active { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity .8s ease .75s, transform .8s ease .75s, visibility 0s; }
.show__slide--sp { --accent: var(--sp); }
.show__slide--sf { --accent: var(--sf); }
.show__logo { width: auto; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .65)); }
.show__logo--sp { height: clamp(150px, 24vh, 250px); }
.show__logo--sf { width: min(560px, 100%); }
.show__tag { margin-top: 18px; max-width: 470px; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.55; color: #e3e6f0; text-shadow: 0 2px 16px rgba(0, 0, 0, .7); }
.show__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.show__slide .exclusive { margin-top: 18px; }
.btn.btn--ghost {
  color: var(--text); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: none; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.btn.btn--ghost:hover { background: rgba(255, 255, 255, .12); box-shadow: none; }
.btn--ghost::after { content: "↓"; }
.show__tabs { position: absolute; z-index: 3; right: clamp(16px, 5vw, 72px); bottom: clamp(32px, 6vh, 56px); display: flex; gap: 10px; }
.show__tab {
  position: relative; display: flex; align-items: center; gap: 10px; min-width: 190px;
  padding: 14px 18px 16px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px;
  background: rgba(8, 9, 15, .5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--muted); font: 500 14px/1 var(--body); cursor: pointer; overflow: hidden; transition: color .2s, border-color .2s;
}
.show__tab:hover, .show__tab.is-active { color: var(--text); border-color: rgba(255, 255, 255, .3); }
.show__num { font: 500 12px/1 var(--display); color: var(--gold); }
.show__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255, 255, 255, .08); }
.show__bar::after { content: ""; position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: var(--gold); }
.show__tab.is-active .show__bar::after { animation: show-progress 9s linear forwards; }
@keyframes show-progress { to { transform: scaleX(1); } }

/* studio intro */
.intro { padding: clamp(64px, 9vw, 120px) 0; border-bottom: 1px solid var(--line); }
.intro__inner { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.intro__logo { width: 100%; height: auto; }
.intro h1 { font-size: clamp(30px, 4.2vw, 52px); }
.intro p { margin-top: 18px; max-width: 620px; color: #c9cddb; font-size: clamp(16px, 1.6vw, 18px); }

/* game sections */
.game { position: relative; padding-bottom: clamp(72px, 10vw, 128px); }
.game--sf { --accent: var(--sf); --accent-2: var(--sf-2); }
.game--sp { --accent: var(--sp); --accent-2: var(--sp-2); }
.game__banner { position: relative; height: min(56.25vw, 86vh); min-height: 300px; overflow: hidden; }
.game__banner img { position: absolute; }
.game__bg { inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* The character and the star are sized to the banner height, so wide screens never crop them. */
.game__fg { bottom: -4%; left: 50%; height: 104%; width: auto; max-width: none; transform: translateX(-50%); }
.game__star { top: 50%; left: 50%; height: 78%; width: auto; max-width: none; transform: translate(-50%, -52%); }
.game__banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(7, 8, 13, 0) 55%, var(--bg)); }
.game__head { position: relative; margin-top: clamp(-96px, -6vw, -32px); max-width: 760px; }
.game__title img { width: auto; filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .55)); }
.game--sf .game__title img { width: min(520px, 100%); }
.game--sp .game__title img { width: min(300px, 70%); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.badge { letter-spacing: .06em; padding: 4px 10px; border-radius: 999px; border: 1px solid currentColor; font-size: 11px; color: var(--accent-2, var(--gold)); }
.game h2 { margin-top: 16px; }
.game__lede { margin-top: 18px; color: #c9cddb; font-size: clamp(16px, 1.7vw, 19px); }

.game__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px; text-decoration: none;
  font: 700 15px/1 var(--display); letter-spacing: .03em; color: #06110c;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 85%, #fff), var(--accent));
  box-shadow: 0 8px 30px color-mix(in srgb, var(--accent) 35%, transparent), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 40px color-mix(in srgb, var(--accent) 50%, transparent), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn::after { content: "→"; font-family: var(--body); }
.game__note { font-size: 13px; color: var(--muted); }
.exclusive {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 14px;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .04);
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.exclusive img { height: 24px; width: auto; }

.facts {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; margin: 44px 0 0;
  background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
}
.facts div { background: var(--surface); padding: 18px 18px 20px; }
.facts dt { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 8px 0 0; font: 500 18px/1.25 var(--display); }
.facts small { display: block; margin-top: 6px; font: 400 12px/1.4 var(--body); color: var(--muted); }

.features { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.features li {
  padding: 22px; border-radius: 14px; background: var(--surface);
  border: 1px solid var(--line); border-top: 2px solid var(--accent);
}
.features h3 { font-size: 16px; margin-bottom: 10px; }
.features p { color: var(--muted); font-size: 15px; }
.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 24px; margin-top: 40px; align-items: start; }
.features--stack { grid-template-columns: 1fr; margin: 0; }
.clip { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.clip video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.clip figcaption { padding: 12px 16px; font-size: 13px; color: var(--muted); }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 24px; }
.gallery a { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .4s ease, opacity .2s; }
.gallery a:hover img { transform: scale(1.03); }
.gallery__main { grid-column: span 4; }
.gallery__main img { aspect-ratio: 16 / 9; }

/* studio */
.studio { padding: clamp(80px, 10vw, 128px) 0; background: linear-gradient(to bottom, var(--bg), var(--surface) 30%, var(--bg)); border-top: 1px solid var(--line); }
.studio .eyebrow { color: var(--gold); }
.studio h2 { font-size: clamp(32px, 5vw, 56px); margin-top: 12px; }
.pillars { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pillars li { padding: 26px 22px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); }
.pillars__n { font: 500 13px/1 var(--display); color: var(--gold); }
.pillars h3 { font-size: 17px; margin: 18px 0 10px; }
.pillars p { color: var(--muted); font-size: 15px; }

/* services */
.services { padding: clamp(80px, 10vw, 128px) 0; border-top: 1px solid var(--line); }
.services .eyebrow { color: var(--gold); }
.services h2 { font-size: clamp(30px, 4.6vw, 52px); margin-top: 12px; max-width: 760px; }
.svc { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.svc li {
  position: relative; padding: 28px 24px 30px; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface-2), var(--surface));
  transition: border-color .25s, transform .25s;
}
.svc li::before {
  content: ""; position: absolute; inset: -1px -1px auto; height: 120px; pointer-events: none;
  background: radial-gradient(60% 100% at 30% 0%, rgba(243, 189, 85, .14), transparent 70%);
}
.svc li:hover { border-color: rgba(243, 189, 85, .35); transform: translateY(-3px); }
.svc svg { width: 34px; height: 34px; color: var(--gold); }
.svc h3 { font-size: 17px; margin: 22px 0 10px; }
.svc p { color: var(--muted); font-size: 15px; }

/* contact */
.contact { padding: clamp(80px, 10vw, 128px) 0; border-top: 1px solid var(--line); background: radial-gradient(70% 60% at 85% 0%, rgba(243, 189, 85, .07), transparent 70%); }
.contact__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact .eyebrow { color: var(--gold); }
.contact h2 { font-size: clamp(34px, 5vw, 60px); margin-top: 12px; }
.contact__intro p:not(.eyebrow) { margin-top: 18px; color: #c9cddb; font-size: clamp(16px, 1.6vw, 18px); max-width: 440px; }
.contact__mail { display: inline-block; margin-top: 26px; font: 500 clamp(18px, 2vw, 22px)/1.2 var(--display); color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(243, 189, 85, .4); padding-bottom: 4px; }
.contact__mail:hover { border-color: var(--gold); }
.form { display: grid; gap: 16px; padding: clamp(22px, 3vw, 34px); border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: #c9cddb; }
.form label i { font-style: normal; font-weight: 400; color: var(--muted); }
.form input, .form select, .form textarea {
  width: 100%; padding: 13px 14px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .12);
  background: #0a0c13; color: var(--text); font: 400 15px/1.4 var(--body); transition: border-color .2s, box-shadow .2s;
}
.form textarea { resize: vertical; min-height: 140px; }
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: rgba(243, 189, 85, .6); box-shadow: 0 0 0 3px rgba(243, 189, 85, .15); }
.form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 4px; }
.form .btn { --accent: var(--gold); border: 0; cursor: pointer; }
.form .btn[disabled] { opacity: .6; cursor: progress; }
.form__note { font-size: 13px; color: var(--muted); }
.form__status { min-height: 1.4em; font-size: 15px; }
.form__status.is-ok { color: var(--sp); }
.form__status.is-error { color: #ff7a7a; }
.foot a { color: var(--gold); text-decoration: none; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 48px 0 56px; color: var(--muted); font-size: 14px; }
.foot__inner { display: grid; gap: 10px; justify-items: center; text-align: center; }
.foot__mark { width: 64px; height: auto; opacity: .8; margin-bottom: 8px; }
.foot__rg strong { color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; margin-right: 6px; }

/* lightbox */
.lightbox { padding: 0; border: 0; background: transparent; max-width: min(1600px, 96vw); max-height: 92vh; }
.lightbox::backdrop { background: rgba(4, 5, 8, .88); backdrop-filter: blur(4px); }
.lightbox img { max-width: 100%; max-height: 92vh; border-radius: 10px; }
.lightbox__close {
  position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25); background: rgba(0, 0, 0, .55); color: #fff; font-size: 24px; line-height: 1; cursor: pointer;
}

@media (max-width: 1000px) {
  .svc { grid-template-columns: repeat(2, 1fr); }
  .contact__inner { grid-template-columns: 1fr; }
  .intro__inner { grid-template-columns: 1fr; }
  .intro__logo { max-width: 380px; }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .features, .pillars { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .clip { order: -1; }
}
@media (max-width: 640px) {
  .show { height: calc(100svh - 47px); min-height: 640px; }
  .show__shade { background: linear-gradient(0deg, var(--bg) 0%, rgba(5, 6, 10, .92) 30%, rgba(5, 6, 10, 0) 62%), linear-gradient(180deg, rgba(5, 6, 10, .5) 0%, rgba(5, 6, 10, 0) 20%); }
  .show__content { padding-bottom: 92px; }
  .show__logo--sp { height: 150px; }
  .show__kicker { display: none; }
  .show__fg { bottom: auto; top: 50%; height: 80%; transform: translate(-46%, -62%); }
  .show__tabs { left: 16px; right: 16px; bottom: 20px; }
  .show__tab { flex: 1; min-width: 0; padding: 12px; font-size: 13px; }
  .top__brand img { height: 18px; }
  .top__nav { gap: 14px; font-size: 13px; }
  .top__nav a[href="#slim-panter"], .top__nav a[href="#starforge"] { display: none; }
  .svc, .form__row { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .features, .pillars { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery__main { grid-column: span 2; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .show__tab.is-active .show__bar::after { animation: none; transform: scaleX(1); }
  .gallery img, .chip { transition: none; }
}
