:root {
  --bg: #050605;
  --bg-2: #0a1008;
  --bg-3: #10180c;
  --lime: #d6ff3c;
  --lime-2: #b6e218;
  --cyan: #7ee0ff;
  --red: #ff3b4e;
  --text: #f4f6ef;
  --muted: #a3aa98;
  --line: rgba(214, 255, 60, 0.16);
  --card: rgba(8, 14, 8, 0.72);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --max: 1180px;
  --header: 72px;
  --font: "Manrope", system-ui, sans-serif;
  --display: "Sora", "Manrope", sans-serif;
  --mono: "Share Tech Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; }
button { cursor: pointer; appearance: none; }
::selection { background: var(--lime); color: #111; }

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 8;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--lime);
  color: #111;
  padding: 0.6rem 1rem;
  z-index: 20;
  font-weight: 700;
}
.skip-link:focus { top: 1rem; }

.container {
  width: min(var(--max), calc(100% - 2.4rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 12;
  height: var(--header);
  backdrop-filter: blur(16px);
  background: rgba(5, 6, 5, 0.72);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  min-width: max-content;
}
.brand strong {
  display: block;
  font-family: var(--display);
  letter-spacing: 0.02em;
  font-size: 1.02rem;
}
.brand small {
  display: block;
  font-family: var(--mono);
  letter-spacing: 0.28em;
  font-size: 0.62rem;
  color: var(--lime);
  margin-top: -2px;
}

.nav {
  display: flex;
  gap: 0.2rem 1.15rem;
}
.nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.35rem 0;
  position: relative;
}
.nav a:hover, .nav a.active { color: var(--text); }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.15rem;
  height: 2px;
  background: var(--lime);
  box-shadow: 0 0 12px var(--lime);
}

.header-actions { display: flex; align-items: center; gap: 0.65rem; }

.lang { position: relative; }
.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 999px;
  padding: 0.38rem 0.7rem;
  font-family: var(--mono);
  font-size: 0.78rem;
}
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  z-index: 20;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  background: #10180c;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-width: 150px;
  box-shadow: var(--shadow);
}
.lang-menu button {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
}
.lang-menu button:hover { background: var(--lime); color: #111; }

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  padding: 10px 11px;
  flex-direction: column;
  justify-content: space-between;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(90deg, var(--lime), var(--lime-2));
  color: #12160a;
  box-shadow: 0 0 28px rgba(214, 255, 60, 0.28);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-steam, .btn-compact {
  padding: 0.48rem 0.9rem;
  font-size: 0.82rem;
  background: #1b2838;
  color: #c5d0da;
  border: 1px solid rgba(102, 192, 244, 0.35);
}
.btn-steam:hover { background: #2a475e; color: #fff; }

.kicker {
  font-family: var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.8rem;
}
.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(214, 255, 60, 0.7);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(214, 255, 60, 0); }
}

h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.12;
  margin: 0 0 0.8rem;
  letter-spacing: -0.03em;
}
h1 { font-size: clamp(2.3rem, 5.4vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
h3 { font-size: 1.15rem; }
h1 em, h2 em {
  font-style: normal;
  color: var(--cyan);
  text-shadow: 0 0 24px rgba(126, 224, 255, 0.35);
}
.lede {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 62ch;
}

.hero {
  position: relative;
  min-height: min(92vh, 900px);
  display: grid;
  align-items: center;
  padding: 2.5rem 0 4rem;
  overflow: hidden;
}
.hero-bg, .hero-shade {
  position: absolute;
  inset: 0;
}
.hero-bg {
  background-size: cover;
  background-position: 70% center;
  transform: scale(1.04);
  filter: saturate(1.05);
}
.hero-shade {
  background:
    linear-gradient(90deg, rgba(5,6,5,0.92) 0%, rgba(5,6,5,0.78) 42%, rgba(5,6,5,0.28) 100%),
    linear-gradient(180deg, rgba(5,6,5,0.15), rgba(5,6,5,0.82));
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.4rem 0 1rem; }
.hero-note { color: var(--muted); font-size: 0.92rem; max-width: 52ch; }

.hero-stage { position: relative; min-height: 340px; }
.hero-frame {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 0 0 1px rgba(214,255,60,0.08), 0 30px 80px rgba(0,0,0,.55), 0 0 60px rgba(214,255,60,.12);
  position: relative;
}
.hero-frame img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.hero-frame figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  width: min(280px, 55%);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: var(--shadow);
}
.hero-float {
  position: absolute;
  width: 38%;
  right: -6%;
  bottom: -12%;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  aspect-ratio: 16/10;
  object-fit: cover;
}

.features { padding: 0 0 4.5rem; margin-top: -1.5rem; position: relative; z-index: 2; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.15rem 1.3rem;
  backdrop-filter: blur(10px);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.feature-card:hover {
  border-color: rgba(214, 255, 60, 0.45);
  transform: translateY(-3px);
}
.feature-icon {
  width: 42px;
  height: 42px;
  color: var(--lime);
  margin-bottom: 0.8rem;
}
.feature-card p { margin: 0; color: var(--muted); font-size: 0.94rem; }

.section { padding: 5rem 0; }
.section-head { margin-bottom: 2rem; max-width: 720px; }
.section-head.left { margin-bottom: 1.4rem; }

.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.4rem;
  align-items: center;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  list-style: none;
  padding: 1.4rem 0 0;
  margin: 0;
}
.stat-row strong {
  display: block;
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--lime);
}
.stat-row span { color: var(--muted); font-size: 0.88rem; }

.studio-panel {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.studio-panel > img { width: 100%; aspect-ratio: 16/11; object-fit: cover; }
.studio-meta {
  padding: 1.1rem 1.2rem 1.25rem;
  background: linear-gradient(180deg, #10180c, #0a1208);
}
.studio-meta p { margin: 0; color: var(--muted); font-size: 0.82rem; font-family: var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.studio-names {
  font-family: var(--display) !important;
  font-size: 1.05rem !important;
  color: var(--text) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  margin-bottom: 0.75rem !important;
}

.game { background: radial-gradient(1200px 400px at 10% 0%, rgba(214,255,60,.06), transparent 50%); }
.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.game-point {
  padding: 1.2rem;
  border-radius: 16px;
  background: rgba(16, 24, 12, 0.65);
  border: 1px solid var(--line);
}
.game-point p { margin: 0; color: var(--muted); }

.steam-row { margin: 2rem 0 1.2rem; }
.steam-widget {
  width: 100%;
  min-height: 190px;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #1b2838;
}

.reqs {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.4rem 1rem 0.8rem;
  background: rgba(8,14,8,.5);
}
.reqs summary { cursor: pointer; font-weight: 700; padding: 0.7rem 0; }
.reqs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.reqs ul { margin: 0; padding-left: 1.1rem; color: var(--muted); }

.media-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.shot-main, .trailer-card {
  position: relative;
  border: 0;
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  min-height: 280px;
}
.shot-main img, .trailer-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
  aspect-ratio: 16/10;
}
.shot-main span, .trailer-label, .trailer-cta {
  position: absolute;
  font-family: var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.shot-main span {
  left: 1rem;
  bottom: 1rem;
  background: rgba(0,0,0,.55);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
}
.trailer-card { color: #fff; }
.play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--lime), var(--lime-2));
  color: #111;
  display: grid;
  place-items: center;
  box-shadow: 0 0 40px rgba(214,255,60,.4);
}
.play svg { width: 28px; margin-left: 3px; }
.trailer-label { top: 1rem; left: 1rem; font-size: 0.78rem; color: var(--lime); }
.trailer-cta { right: 1rem; bottom: 1rem; font-size: 0.78rem; }

.thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.6rem;
}
.thumbs button {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}
.thumbs img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }

.devlog-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr;
  gap: 1.4rem;
  align-items: start;
}
.devlog-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}
.devlog-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0;
  color: inherit;
}
.devlog-card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.devlog-card .body { padding: 0.95rem 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.45rem; flex: 1; }
.devlog-card time { font-family: var(--mono); color: var(--lime); font-size: 0.75rem; }
.devlog-card h3 { font-size: 1.02rem; margin: 0; }
.devlog-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.devlog-card .more {
  margin-top: auto;
  color: var(--cyan);
  font-weight: 700;
  font-size: 0.88rem;
}

.community-card {
  background: linear-gradient(180deg, rgba(214,255,60,.12), rgba(8,14,8,.9));
  border: 1px solid rgba(214,255,60,.28);
  border-radius: 20px;
  padding: 1.4rem 1.25rem 1.5rem;
  position: sticky;
  top: calc(var(--header) + 1rem);
}
.community-card .btn { width: 100%; margin-top: 0.55rem; }
.community-mail { margin: 1.1rem 0 0; font-size: 0.9rem; }
.community-mail span { display: block; color: var(--muted); font-size: 0.75rem; font-family: var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
.community-mail a { color: var(--cyan); }

.contact { background: radial-gradient(800px 320px at 80% 0%, rgba(126,224,255,.08), transparent 50%); }
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: start;
}
.mail-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--cyan);
  background: rgba(8,14,8,.6);
}
.contact-form {
  display: grid;
  gap: 0.85rem;
  padding: 1.3rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(10,16,10,.7);
}
.contact-form label { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.9rem; }
.contact-form input, .contact-form textarea {
  background: #070b07;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  outline: none;
}
.contact-form input:focus, .contact-form textarea:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(214,255,60,.12);
}
.form-hint { margin: 0; color: var(--muted); font-size: 0.82rem; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 1.8rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-inner p { margin: 0; color: var(--muted); font-size: 0.88rem; }
.footer-links { display: flex; gap: 1rem; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--lime); }

.lightbox, .modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(0,0,0,.82);
  display: grid;
  place-items: center;
  padding: 1.2rem;
}
.lightbox[hidden], .modal[hidden], .lang-menu[hidden] {
  display: none !important;
}
.lightbox img { max-width: min(1200px, 100%); max-height: 86vh; border-radius: 12px; }
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--lime);
  color: #111;
  font-size: 1.6rem;
  line-height: 1;
}
.modal-panel {
  width: min(980px, 100%);
  background: #0c140a;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  max-height: 90vh;
}
.trailer-panel video { width: 100%; display: block; background: #000; aspect-ratio: 16/9; }
.trailer-fallback { padding: 0.8rem 1rem 1rem; margin: 0; }
.trailer-fallback a { color: var(--cyan); }
.post-panel { overflow: auto; }
.post-panel img { width: 100%; max-height: 320px; object-fit: cover; }
.post-panel .post-date, .post-panel h2, .post-panel .post-body { padding-inline: 1.4rem; }
.post-date { color: var(--lime); font-family: var(--mono); margin: 1rem 0 0.3rem; }
.post-body { padding-bottom: 1.6rem; color: var(--muted); }
.post-body p { margin: 0 0 0.9rem; }

body.menu-open { overflow: hidden; }

@media (max-width: 980px) {
  .hero-grid, .split, .media-grid, .devlog-layout, .contact-grid, .game-grid {
    grid-template-columns: 1fr;
  }
  .feature-grid, .devlog-list { grid-template-columns: 1fr 1fr; }
  .thumbs { grid-template-columns: repeat(3, 1fr); }
  .hero-float { display: none; }
  .community-card { position: static; }
  .nav {
    position: fixed;
    inset: var(--header) 0 0 0;
    z-index: 11;
    background: rgba(5,6,5,.96);
    flex-direction: column;
    padding: 1.4rem 1.4rem 2rem;
    transform: translateX(110%);
    transition: transform 0.25s ease;
    gap: 0.4rem;
  }
  .nav a { font-size: 1.25rem; padding: 0.55rem 0; }
  body.menu-open .nav { transform: none; }
  .menu-toggle { display: flex; }
  .btn-compact { display: none; }
}

@media (max-width: 640px) {
  .feature-grid, .devlog-list, .reqs-grid, .stat-row, .thumbs {
    grid-template-columns: 1fr;
  }
  .thumbs { grid-template-columns: 1fr 1fr; }
  .hero { min-height: auto; padding-top: 1.2rem; }
  .hero-cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse { animation: none; }
  * { transition: none !important; }
}
