:root {
  --bg: #0b0d0c;
  --bg-soft: #111512;
  --panel: #151a17;
  --panel-2: #1b211d;
  --text: #f3f7f4;
  --muted: #9ca8a0;
  --line: rgba(255, 255, 255, 0.1);
  --green: #00f23d;
  --green-soft: #b4ffbd;
  --red: #ff3b36;
  --brown: #3a2015;
  --radius: 26px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 75% 5%, rgba(0, 242, 61, 0.09), transparent 26rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

::selection { color: #071009; background: var(--green); }

.page-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.section-shell,
.site-header {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 20;
  min-height: 70px;
  margin-top: 14px;
  padding: 10px 12px 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(11, 13, 12, 0.77);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.22);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 850;
  letter-spacing: -0.035em;
}

.brand img,
.footer-brand img {
  width: 44px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
}

.brand span { font-size: 1.05rem; }
.site-nav { display: flex; align-items: center; gap: 5px; }
.site-nav > a {
  padding: 11px 14px;
  border-radius: 12px;
  color: #d7ded9;
  font-size: 0.92rem;
  font-weight: 700;
}
.site-nav > a:hover { color: white; background: rgba(255,255,255,.06); }
.site-nav .nav-button {
  margin-left: 8px;
  color: #071009;
  background: var(--green);
}
.site-nav .nav-button:hover { color: #071009; background: #4bff76; }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 13px;
  background: rgba(255,255,255,.07);
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: white;
  transition: transform .2s ease, opacity .2s ease;
}

.hero {
  min-height: 720px;
  padding-block: 90px 80px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 68px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: #cbd6ce;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow span {
  width: 30px;
  height: 2px;
  background: var(--green);
  box-shadow: 0 0 15px rgba(0,242,61,.75);
}

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.02; letter-spacing: -0.055em; }
h1 { margin-bottom: 26px; font-size: clamp(3.9rem, 7.8vw, 7.2rem); }
h1 em { color: var(--green); font-style: normal; text-shadow: 0 0 40px rgba(0,242,61,.18); }
h2 { margin-bottom: 20px; font-size: clamp(2.5rem, 5.5vw, 5rem); }
h3 { font-size: clamp(2rem, 4vw, 4rem); }

.hero-text {
  max-width: 650px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
}
.hero-text strong { color: white; }

.hero-actions,
.card-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  min-height: 50px;
  padding: 13px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 850;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: #071009; background: var(--green); box-shadow: 0 12px 30px rgba(0,242,61,.16); }
.button-primary:hover { background: #4bff76; }
.button-ghost { border-color: var(--line); background: rgba(255,255,255,.035); }
.button-ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); }
.button-light { color: #0c0e0d; background: white; }
.button-light:hover { background: #e4ece6; }
.button-large { min-height: 58px; padding-inline: 26px; }

.hero-stats {
  margin-top: 48px;
  padding-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.hero-stats div { padding-right: 16px; }
.hero-stats strong,
.hero-stats span { display: block; }
.hero-stats strong { font-size: 1.1rem; }
.hero-stats span { color: var(--muted); font-size: .78rem; }

.hero-art {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
}
.hero-logo {
  position: relative;
  z-index: 2;
  width: min(88%, 480px);
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 34px;
  box-shadow: var(--shadow), 0 0 85px rgba(0,242,61,.09);
  transform: rotate(2deg);
}
.logo-orbit {
  position: absolute;
  width: 440px;
  height: 440px;
  border: 1px solid rgba(0,242,61,.28);
  border-radius: 50%;
  box-shadow: inset 0 0 45px rgba(0,242,61,.06);
  animation: pulse-orbit 4s ease-in-out infinite;
}
.logo-orbit::before,
.logo-orbit::after {
  content: "";
  position: absolute;
  inset: 40px;
  border: 1px dashed rgba(255,255,255,.15);
  border-radius: inherit;
}
.logo-orbit::after { inset: -24px; border-color: rgba(0,242,61,.12); }

.floating-card {
  position: absolute;
  z-index: 3;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(18,22,19,.88);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px rgba(0,0,0,.25);
  color: #e8efea;
  font-size: .83rem;
  font-weight: 750;
}
.floating-card-top { top: 52px; right: -6px; }
.floating-card-bottom { bottom: 45px; left: -8px; }
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: #0f1310;
}
.marquee-track {
  width: max-content;
  padding: 17px 0;
  display: flex;
  align-items: center;
  gap: 28px;
  color: #e9f0eb;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .18em;
  animation: marquee 25s linear infinite;
}
.marquee-track i { color: var(--green); font-style: normal; }

.games { padding-block: 130px; }
.section-heading { max-width: 790px; margin-bottom: 52px; }
.section-heading > p:last-child { max-width: 620px; color: var(--muted); font-size: 1.08rem; }

.game-card {
  position: relative;
  min-height: 560px;
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.game-card:nth-of-type(3) { grid-template-columns: .88fr 1.12fr; }
.game-card:nth-of-type(3) .game-image-wrap { order: 2; }
.game-card-yaks { background: linear-gradient(135deg, #162817, #27432a); }
.game-card-ape { background: linear-gradient(135deg, #220d0d, #090909 65%); }
.game-image-wrap { position: relative; min-height: 470px; overflow: hidden; }
.game-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.45), transparent 45%);
}
.game-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.game-card:hover .game-image-wrap img { transform: scale(1.035); }
.game-badge {
  position: absolute;
  left: 22px;
  bottom: 22px;
  z-index: 2;
  padding: 9px 12px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(0,0,0,.52);
  backdrop-filter: blur(10px);
  font-size: .76rem;
  font-weight: 800;
}
.game-content { padding: clamp(34px, 5vw, 66px); display: flex; flex-direction: column; justify-content: center; }
.game-number { margin-bottom: 24px; color: rgba(255,255,255,.55); font-size: .72rem; font-weight: 900; letter-spacing: .2em; }
.game-content h3 { margin-bottom: 24px; }
.game-content > p:not(.game-number) { color: rgba(255,255,255,.7); }
.feature-list { margin: 9px 0 32px; padding: 0; list-style: none; }
.feature-list li { position: relative; padding: 8px 0 8px 23px; border-bottom: 1px solid rgba(255,255,255,.09); font-size: .92rem; }
.feature-list li::before { content: "↳"; position: absolute; left: 0; color: var(--green); }
.text-link { font-weight: 800; }
.text-link span { color: var(--green); }
.development-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d7ddd9;
  font-size: .84rem;
  font-weight: 750;
}
.development-pill span { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 12px var(--red); }

.about { padding-block: 40px 130px; }
.about-panel {
  padding: clamp(34px, 6vw, 72px);
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 80px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(0,242,61,.08), rgba(255,255,255,.02));
}
.about-panel h2 { max-width: 520px; font-size: clamp(2.4rem, 4.7vw, 4.2rem); }
.about-copy { color: var(--muted); font-size: 1.08rem; }
.about-copy p:last-child { margin-bottom: 0; }
.values-grid { margin-top: 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value-card { min-height: 250px; padding: 30px; border: 1px solid var(--line); border-radius: 22px; background: var(--panel); }
.value-card > span { color: var(--green); font-size: .75rem; font-weight: 900; letter-spacing: .14em; }
.value-card h3 { margin: 46px 0 15px; font-size: 1.55rem; letter-spacing: -.035em; }
.value-card p { margin: 0; color: var(--muted); font-size: .93rem; }

.gallery { padding-bottom: 130px; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 290px; gap: 18px; }
.gallery-item {
  position: relative;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #090a09;
  cursor: zoom-in;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease, filter .55s ease; }
.gallery-item:hover img { transform: scale(1.045); filter: brightness(.75); }
.gallery-item span {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 2;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.7);
  color: white;
  font-size: .72rem;
  font-weight: 850;
}
.gallery-wide { grid-column: span 1; }

.cta {
  margin-bottom: 110px;
  padding: clamp(38px, 6vw, 70px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  border: 1px solid rgba(0,242,61,.24);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 90% 50%, rgba(0,242,61,.18), transparent 26rem),
    var(--panel);
}
.cta h2 { margin-bottom: 14px; font-size: clamp(2.3rem, 4.5vw, 4rem); }
.cta-copy { max-width: 720px; }
.cta-copy > p:last-child { margin-bottom: 0; color: var(--muted); }

.site-footer {
  padding: 34px 0 44px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.footer-brand { color: white; }
.footer-brand img { width: 38px; border-radius: 10px; }
.site-footer > p { grid-column: 1; margin: 0; font-size: .88rem; }
.footer-links { grid-row: 1 / span 2; grid-column: 2; display: flex; gap: 22px; }
.footer-links a:hover { color: white; }
.site-footer small { grid-column: 1 / -1; margin-top: 16px; color: #657068; }

.lightbox {
  width: min(1000px, calc(100% - 30px));
  padding: 0;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 20px;
  background: #0a0c0b;
  color: white;
  box-shadow: 0 30px 100px rgba(0,0,0,.7);
}
.lightbox::backdrop { background: rgba(0,0,0,.85); backdrop-filter: blur(8px); }
.lightbox img { width: 100%; max-height: 75vh; object-fit: contain; background: black; }
.lightbox p { margin: 0; padding: 15px 20px 19px; color: var(--muted); }
.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 50%;
  color: white;
  background: rgba(0,0,0,.7);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pulse-orbit { 50% { transform: scale(1.04) rotate(3deg); opacity: .7; } }

@media (max-width: 900px) {
  .site-header { top: 8px; margin-top: 8px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    padding: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(11,13,12,.97);
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav > a { text-align: center; }
  .site-nav .nav-button { margin: 5px 0 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .hero { min-height: auto; padding-block: 75px 90px; grid-template-columns: 1fr; gap: 45px; }
  .hero-art { min-height: 430px; }
  .hero-logo { width: min(82%, 430px); }
  .logo-orbit { width: 360px; height: 360px; }
  .game-card,
  .game-card:nth-of-type(3) { grid-template-columns: 1fr; }
  .game-card:nth-of-type(3) .game-image-wrap { order: 0; }
  .about-panel { grid-template-columns: 1fr; gap: 20px; }
  .values-grid { grid-template-columns: 1fr; }
  .value-card { min-height: 0; }
  .value-card h3 { margin-top: 25px; }
  .cta { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 620px) {
  .section-shell,
  .site-header { width: min(100% - 24px, 1180px); }
  .brand span { font-size: .93rem; }
  .hero { padding-top: 62px; }
  h1 { font-size: clamp(3.1rem, 16vw, 4.8rem); }
  .hero-stats { grid-template-columns: 1fr; gap: 14px; }
  .hero-stats div { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
  .hero-art { min-height: 340px; }
  .hero-logo { width: min(82%, 310px); border-radius: 25px; }
  .logo-orbit { width: 270px; height: 270px; }
  .floating-card { font-size: .72rem; }
  .floating-card-top { top: 15px; right: 0; }
  .floating-card-bottom { bottom: 14px; left: 0; }
  .games { padding-block: 95px; }
  .game-image-wrap { min-height: 300px; }
  .game-content { padding: 30px 24px 35px; }
  .game-content h3 { font-size: 2.45rem; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .site-footer { grid-template-columns: 1fr; }
  .footer-links { grid-column: 1; grid-row: auto; flex-wrap: wrap; }
  .site-footer > p, .site-footer small { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
