:root {
  --bg: #0b0d14;
  --bg-2: #11141f;
  --bg-3: #181c2a;
  --line: rgba(255, 255, 255, 0.08);
  --text: #e9e6df;
  --muted: #9a9caa;
  --gold: #e8c27a;
  --gold-2: #c9963f;
  --blood: #b3262e;
  --moon: #dfe6ff;
  --radius: 14px;
  --container: 1180px;
  --serif: "Cinzel", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; letter-spacing: .01em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.gold { color: var(--gold); }
.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .9em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .9em 1.6em; border-radius: 999px;
  font-weight: 600; font-size: .95rem;
  border: 1px solid transparent;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s;
  cursor: pointer;
}
.btn svg { width: 1.2em; height: 1.2em; fill: currentColor; }
.btn--gold { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #1a1206; }
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -8px rgba(232, 194, 122, .55); }
.btn--ghost { border-color: rgba(255,255,255,.25); color: var(--text); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--small { padding: .55em 1.2em; font-size: .85rem; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, backdrop-filter .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(11, 13, 20, .82);
  backdrop-filter: blur(12px);
  border-color: var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: .6em; font-size: 1.2rem; }
.logo__text { font-family: var(--serif); letter-spacing: .04em; }
.logo__text strong { color: var(--gold); font-weight: 700; }
.logo__mark {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--gold);
  box-shadow: inset -9px -5px 0 0 var(--bg), 0 0 18px rgba(232,194,122,.45);
}
.nav__links { display: flex; align-items: center; gap: 28px; font-size: .92rem; }
.nav__links a:not(.btn) { color: var(--muted); transition: color .2s; }
.nav__links a:not(.btn):hover { color: var(--text); }
.nav__toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: transform .3s, opacity .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; overflow: hidden;
  padding: 120px 0 80px;
}
.hero__bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,13,20,.55) 0%, rgba(11,13,20,.75) 60%, var(--bg) 100%),
    linear-gradient(90deg, rgba(11,13,20,.9) 0%, rgba(11,13,20,.2) 70%),
    url("https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/4042470/fd0db55bd58a7f3aaf356270fb6c9476273188b7/page_bg_raw.jpg?t=1794699365") center/cover no-repeat;
  transform: scale(1.05);
}
.hero__fog {
  position: absolute; inset: auto -10% 0 -10%; height: 45%;
  background: radial-gradient(ellipse at 30% 100%, rgba(160,170,200,.18), transparent 60%),
              radial-gradient(ellipse at 80% 100%, rgba(160,170,200,.14), transparent 55%);
  filter: blur(20px);
  animation: fog 18s ease-in-out infinite alternate;
}
@keyframes fog { to { transform: translateX(6%); } }

.hero__content { position: relative; z-index: 2; }
.hero__title { font-size: clamp(2.6rem, 7vw, 5.4rem); font-weight: 900; max-width: 14ch; margin-bottom: .35em; }
.hero__lead { font-size: clamp(1rem, 1.6vw, 1.2rem); color: #c9c7c0; max-width: 56ch; margin-bottom: 2em; }
.hero__lead strong { color: var(--text); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.35); border-radius: 14px;
}
.hero__scroll span {
  position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px;
  background: var(--gold); border-radius: 2px; animation: scroll 1.8s infinite;
}
@keyframes scroll { 0% { opacity: 0; transform: translateY(0);} 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px);} }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 120px) 0; position: relative; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section__head { margin-bottom: 48px; }
.section__head--center { text-align: center; max-width: 720px; margin-inline: auto; }
.section__lead { color: var(--muted); font-size: 1.08rem; }

/* ---------- Game card ---------- */
.game-card {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.game-card__media { position: relative; overflow: hidden; aspect-ratio: 1496 / 1060; align-self: center; }
.game-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.game-card:hover .game-card__media img { transform: scale(1.04); }
.badge {
  position: absolute; top: 16px; left: 16px;
  padding: .35em .9em; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(11,13,20,.8); color: var(--gold); border: 1px solid rgba(232,194,122,.4);
}
.game-card__body { padding: clamp(24px, 4vw, 44px); }
.game-card__body h3 { font-size: 2rem; }
.game-card__tagline { color: var(--gold); font-style: italic; }
.game-card__body > p:not(.game-card__tagline) { color: var(--muted); }
.tags { list-style: none; padding: 0; margin: 0 0 1.6em; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: .78rem; padding: .3em .8em; border-radius: 999px; background: var(--bg-3); color: #c3c4cf; border: 1px solid var(--line); }
.game-card__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.next-project {
  margin-top: 24px; display: flex; align-items: center; gap: 20px;
  padding: 24px 28px; border: 1px dashed rgba(255,255,255,.15); border-radius: var(--radius);
  color: var(--muted);
}
.next-project h3 { color: var(--text); margin-bottom: .2em; font-size: 1.1rem; }
.next-project p { margin: 0; }
.next-project__icon {
  flex: none; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--serif); font-size: 1.4rem;
  background: var(--bg-3); color: var(--gold);
}

/* ---------- Moon Veil feature ---------- */
.moonveil { position: relative; padding: clamp(80px, 11vw, 140px) 0; overflow: hidden; }
.moonveil__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(80, 100, 170, .22), transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(179, 38, 46, .12), transparent 60%),
    var(--bg);
}
.moonveil__title {
  font-size: clamp(2.8rem, 9vw, 6rem); font-weight: 900; letter-spacing: .12em;
  background: linear-gradient(180deg, #fff 10%, var(--moon) 45%, #8f9bc4 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 60px rgba(180, 200, 255, .15);
}

.trailer {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: 0 40px 80px -30px rgba(0,0,0,.8);
  margin-bottom: 80px; background: #000;
}
.trailer video { width: 100%; height: 100%; object-fit: cover; display: block; }
.trailer__play {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: rgba(0,0,0,.35); border: 0; color: #fff; cursor: pointer;
  font-family: var(--serif); font-size: 1.1rem; letter-spacing: .15em; text-transform: uppercase;
  transition: background .3s;
}
.trailer__play:hover { background: rgba(0,0,0,.15); }
.trailer__play svg {
  width: 84px; height: 84px; padding: 22px; border-radius: 50%; fill: #1a1206;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  box-shadow: 0 0 0 10px rgba(232,194,122,.18);
  transition: transform .3s;
}
.trailer__play:hover svg { transform: scale(1.08); }
.trailer.is-playing .trailer__play { display: none; }

.phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 110px; }
.phase {
  position: relative; padding: 34px 28px; border-radius: var(--radius);
  background: var(--bg-2); border: 1px solid var(--line); overflow: hidden;
}
.phase::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; }
.phase--day::before   { background: linear-gradient(90deg, #f4c96b, #e88a3c); }
.phase--night::before { background: linear-gradient(90deg, #5a6fd1, #8fa2ff); }
.phase--vote::before  { background: linear-gradient(90deg, var(--blood), #e24b4b); }
.phase__icon { font-size: 2rem; margin-bottom: 12px; line-height: 1; }
.phase--day .phase__icon { color: #f4c96b; }
.phase--night .phase__icon { color: #a9b8ff; }
.phase--vote .phase__icon { color: #e46666; }
.phase h3 { font-size: 1.6rem; margin-bottom: .1em; }
.phase__sub { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1em; }
.phase p:last-child { color: var(--muted); margin: 0; }

.roles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 80px; }
.role {
  padding: 30px 24px; text-align: center; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line);
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.role:hover { transform: translateY(-6px); border-color: rgba(232,194,122,.4); box-shadow: 0 20px 40px -20px rgba(232,194,122,.3); }
.role--wolf:hover { border-color: rgba(179,38,46,.6); box-shadow: 0 20px 40px -20px rgba(179,38,46,.5); }
.role__glyph {
  width: 70px; height: 70px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.9rem;
  background: rgba(232,194,122,.08); border: 1px solid rgba(232,194,122,.25); color: var(--gold);
}
.role--wolf .role__glyph { background: rgba(179,38,46,.12); border-color: rgba(179,38,46,.4); }
.role p { color: var(--muted); font-size: .95rem; margin: 0; }

.wins { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 20px; align-items: stretch; margin-bottom: 70px; }
.win { padding: 28px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.win h3 { font-size: 1.1rem; color: var(--gold); }
.win--wolf h3 { color: #e46666; }
.win ul { margin: 0; padding-left: 1.1em; color: var(--muted); }
.win li + li { margin-top: .5em; }
.quote {
  margin: 0; display: flex; flex-direction: column; justify-content: center; text-align: center;
  padding: 28px; font-family: var(--serif); font-size: clamp(1.2rem, 2.2vw, 1.55rem); line-height: 1.4;
}
.quote span { display: block; margin-top: 1em; font-family: var(--sans); font-size: .85rem; color: var(--muted); letter-spacing: .05em; }

.facts {
  margin: 0; display: grid; grid-template-columns: repeat(6, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.facts > div { padding: 22px 18px; text-align: center; border-right: 1px solid var(--line); }
.facts > div:last-child { border-right: 0; }
.facts dt { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: .3em; }
.facts dd { margin: 0; font-weight: 600; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery button {
  position: relative; padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: zoom-in;
  aspect-ratio: 16 / 9; background: var(--bg-3);
}
.gallery button:first-child { grid-column: span 2; grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, filter .5s; filter: saturate(.9); }
.gallery button:hover img { transform: scale(1.05); filter: saturate(1.1); }

.lightbox {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  background: rgba(5,6,10,.94); padding: 20px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 88vh; max-width: min(1600px, 100%); border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lightbox button { position: absolute; background: rgba(255,255,255,.08); border: 0; color: #fff; cursor: pointer; border-radius: 50%; width: 52px; height: 52px; font-size: 2rem; line-height: 1; }
.lightbox button:hover { background: rgba(232,194,122,.25); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ---------- Split / reqs / studio ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.steam-widget { width: 100%; max-width: 646px; height: 190px; border: 0; margin-top: 12px; }
.reqs { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.reqs__tabs { display: flex; gap: 6px; margin-bottom: 20px; background: var(--bg-3); padding: 5px; border-radius: 999px; width: fit-content; }
.reqs__tabs button {
  border: 0; background: transparent; color: var(--muted); padding: .55em 1.2em; border-radius: 999px;
  font: 600 .88rem var(--sans); cursor: pointer;
}
.reqs__tabs button[aria-selected="true"] { background: var(--gold); color: #1a1206; }
.reqs__list { margin: 0; }
.reqs__list > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.reqs__list > div:last-child { border-bottom: 0; }
.reqs__list dt { color: var(--muted); font-size: .88rem; }
.reqs__list dd { margin: 0; }

#studio p { color: var(--muted); }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.value { padding: 24px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.value h3 { font-size: 1.02rem; color: var(--gold); }
.value p { margin: 0; font-size: .93rem; }

/* ---------- Contact ---------- */
.contact { text-align: center; max-width: 720px; }
.contact__mail {
  display: inline-block; margin: 8px 0 28px;
  font-family: var(--serif); font-size: clamp(1.4rem, 4vw, 2.3rem); color: var(--gold);
  border-bottom: 1px solid rgba(232,194,122,.35); transition: border-color .2s;
  word-break: break-all;
}
.contact__mail:hover { border-color: var(--gold); }
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.socials a { padding: .55em 1.2em; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .9rem; transition: color .2s, border-color .2s; }
.socials a:hover { color: var(--text); border-color: rgba(255,255,255,.3); }

/* ---------- Footer ---------- */
.footer { padding: 32px 0; border-top: 1px solid var(--line); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); font-size: .88rem; }
.footer p { margin: 0; }
.footer a:hover { color: var(--gold); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__fog, .hero__scroll span { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .roles { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .facts > div:nth-child(3) { border-right: 0; }
  .facts > div:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .wins { grid-template-columns: 1fr 1fr; }
  .quote { grid-column: 1 / -1; order: -1; }
}
@media (max-width: 820px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(11,13,20,.97); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
    padding: 10px 20px 20px; transform: translateY(-120%); transition: transform .35s ease;
  }
  .nav__links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav__links .btn { margin-top: 16px; justify-content: center; }
  .nav.is-open .nav__links { transform: none; }
  .nav.is-open { background: rgba(11,13,20,.97); }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .game-card, .split { grid-template-columns: 1fr; }
  .phases { grid-template-columns: 1fr; margin-bottom: 80px; }
  .gallery { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .roles, .wins, .values { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div { border-right: 1px solid var(--line) !important; border-bottom: 1px solid var(--line); }
  .facts > div:nth-child(2n) { border-right: 0 !important; }
  .facts > div:nth-last-child(-n+2) { border-bottom: 0; }
  .gallery { grid-template-columns: 1fr; }
  .gallery button:first-child { grid-column: auto; grid-row: auto; }
  .reqs__list > div { grid-template-columns: 90px 1fr; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 20px; transform: none; }
  .next-project { flex-direction: column; text-align: center; }
}
