:root {
  --bg: #090a0c;
  --bg-soft: #101216;
  --panel: #14171b;
  --panel-2: #191b20;
  --text: #f4f1ea;
  --muted: #aaa69d;
  --line: rgba(255, 255, 255, 0.09);
  --gold: #d7ad58;
  --gold-bright: #f1cf7b;
  --gold-deep: #9a6a20;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  --radius-lg: 30px;
  --radius-md: 18px;
  --shell: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -20%, rgba(215, 173, 88, 0.08), transparent 34rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--gold-bright);
  color: #15120b;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}
.skip-link:focus { transform: translateY(0); }

.shell { width: var(--shell); margin-inline: auto; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: linear-gradient(to bottom, rgba(9, 10, 12, 0.86), rgba(9, 10, 12, 0.28), transparent);
  transition: background 220ms ease, border-color 220ms ease, backdrop-filter 220ms ease;
}
.site-header.scrolled {
  border-color: var(--line);
  background: rgba(9, 10, 12, 0.86);
  backdrop-filter: blur(18px);
}
.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 760;
  letter-spacing: 0.02em;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 22px rgba(241, 207, 123, 0.17);
}
.site-nav { display: flex; gap: 30px; align-items: center; }
.site-nav a {
  text-decoration: none;
  color: #d4d1ca;
  font-size: 0.95rem;
  transition: color 160ms ease;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--gold-bright); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}
.nav-toggle span:not(.sr-only) { width: 18px; height: 1px; background: currentColor; }

.hero {
  position: relative;
  isolation: isolate;
  min-height: 700px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 32%, rgba(249, 208, 116, 0.18), transparent 7%),
    radial-gradient(circle at 50% 40%, rgba(213, 146, 42, 0.09), transparent 20%),
    linear-gradient(180deg, #060708 0%, #0a0b0e 74%, #090a0c 100%);
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  pointer-events: none;
}
.hero::before {
  background:
    linear-gradient(111deg, transparent 0 26%, rgba(222, 182, 98, 0.1) 26.2%, transparent 26.5%),
    linear-gradient(69deg, transparent 0 26%, rgba(222, 182, 98, 0.1) 26.2%, transparent 26.5%),
    linear-gradient(104deg, transparent 0 37%, rgba(222, 182, 98, 0.055) 37.15%, transparent 37.35%),
    linear-gradient(76deg, transparent 0 37%, rgba(222, 182, 98, 0.055) 37.15%, transparent 37.35%);
  opacity: 0.8;
}
.hero::after {
  background: radial-gradient(ellipse at center, transparent 0 20%, rgba(4, 5, 6, 0.16) 50%, rgba(4, 5, 6, 0.82) 100%);
}
.hero-perspective {
  position: absolute;
  left: 50%;
  top: 47%;
  width: 980px;
  height: 620px;
  transform: translate(-50%, -50%) perspective(900px) rotateX(69deg);
  border: 1px solid rgba(215, 173, 88, 0.13);
  border-radius: 50%;
  box-shadow:
    inset 0 0 110px rgba(215, 173, 88, 0.04),
    0 0 110px rgba(215, 173, 88, 0.035);
  z-index: -2;
}
.hero-perspective::before,
.hero-perspective::after {
  content: "";
  position: absolute;
  inset: 10%;
  border: 1px solid rgba(215, 173, 88, 0.11);
  border-radius: 50%;
}
.hero-perspective::after { inset: 24%; opacity: 0.7; }
.hero-glow {
  position: absolute;
  width: 56px;
  height: 56px;
  left: 50%;
  top: 26%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #ffe7a6;
  filter: blur(2px);
  box-shadow:
    0 0 16px #ffd273,
    0 0 48px rgba(240, 183, 66, 0.72),
    0 0 120px rgba(240, 183, 66, 0.28);
  opacity: 0.72;
  z-index: -1;
}
.hero-content {
  padding-top: 78px;
  padding-bottom: 42px;
  text-align: center;
  max-width: 920px;
}
.hero-logo-wrap {
  display: grid;
  place-items: center;
  width: fit-content;
  margin: 0 auto 10px;
}
.hero-logo {
  width: min(158px, 38vw);
  height: auto;
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.4));
}
.section-kicker {
  margin: 0 0 14px;
  color: var(--gold-bright);
  font-size: 0.76rem;
  font-weight: 780;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0 auto;
  max-width: 920px;
  font-size: clamp(2.6rem, 6.2vw, 4.8rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  font-weight: 770;
  text-wrap: balance;
  color: var(--text);
}
.hero-copy {
  margin: 16px auto 0;
  max-width: 680px;
  color: #bbb8b0;
  font-size: clamp(1.02rem, 1.8vw, 1.16rem);
}
.hero-copy p { margin: 0 0 12px; }
.hero-copy p:last-child { margin-bottom: 0; }
.hero-actions { display: flex; justify-content: center; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 740;
  font-size: 0.92rem;
  border: 1px solid transparent;
  transition: transform 170ms ease, border-color 170ms ease, background 170ms ease, color 170ms ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary {
  color: #1a1408;
  background: linear-gradient(180deg, #f4d384, #c7973e);
  border-color: rgba(255, 230, 160, 0.35);
  box-shadow: 0 12px 36px rgba(204, 151, 56, 0.22);
}
.button-primary:hover {
  background: linear-gradient(180deg, #f7db96, #d0a149);
}
.button-ghost {
  color: #f0ebe1;
  border: 1px solid rgba(241, 207, 123, 0.42);
  background: rgba(255, 255, 255, 0.04);
}
.button-ghost:hover {
  color: #fff8ea;
  border-color: rgba(241, 207, 123, 0.72);
  background: rgba(241, 207, 123, 0.08);
}
.hero-bottom-fade {
  position: absolute;
  inset: auto 0 0;
  height: 140px;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
}

.section { padding: 88px 0; }
.section-games { background: var(--bg); padding-top: 72px; }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.section-heading.compact { margin-bottom: 22px; }
.section-heading h2,
.contact-card h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4.8vw, 4.1rem);
  line-height: 1;
  letter-spacing: -0.05em;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(241, 207, 123, 0.22);
  border-radius: 999px;
  color: #ead091;
  background: rgba(215, 173, 88, 0.07);
  font-size: 0.78rem;
  font-weight: 720;
}
.status-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 12px rgba(241, 207, 123, 0.7);
}
.game-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.75fr);
  gap: clamp(22px, 4vw, 40px);
  align-items: start;
  padding: clamp(12px, 2vw, 18px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(255,255,255,0.035), rgba(255,255,255,0.014));
  box-shadow: var(--shadow);
}
.game-art {
  overflow: hidden;
  position: relative;
  border-radius: calc(var(--radius-lg) - 10px);
  background: #101216;
  line-height: 0;
}
.game-art img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center;
  background: #0c0e11;
}
.game-copy {
  padding: 4px 4px 8px;
}
.game-copy p { color: var(--muted); margin: 0 0 14px; }
.game-copy p:last-child { margin-bottom: 0; }
.game-tagline {
  color: var(--gold-bright) !important;
  font-weight: 720;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  line-height: 1.3;
  margin-bottom: 16px !important;
}
.game-status {
  margin-top: 18px !important;
  color: #d8d4cc !important;
}
.game-status strong { color: var(--gold-bright); font-weight: 720; }

.about-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}
.about-copy { max-width: 760px; }
.about-copy p { color: var(--muted); margin: 0 0 16px; }
.about-copy p:last-child { margin-bottom: 0; }
.about-copy .lead {
  margin-top: 0;
  color: #dfdcd5;
  font-size: clamp(1.12rem, 2.2vw, 1.42rem);
  line-height: 1.55;
}

.section-about { padding-bottom: 64px; }
.section-contact { padding-top: 24px; padding-bottom: 48px; }
.contact-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 28px;
  align-items: center;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid rgba(241, 207, 123, 0.14);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 82% 15%, rgba(215, 173, 88, 0.12), transparent 22%),
    linear-gradient(135deg, #15171b, #0f1013);
  box-shadow: var(--shadow);
}
.contact-card p:not(.section-kicker) { max-width: 680px; color: var(--muted); margin: 0 0 12px; }
.contact-card p:last-child { margin-bottom: 0; }
.contact-action {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.contact-email {
  max-width: 100%;
  word-break: break-word;
  text-align: center;
}

.site-footer {
  margin-top: 56px;
  padding: 34px 0 44px;
  border-top: 1px solid var(--line);
  color: #8f8c85;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: end;
}
.footer-identity { max-width: 46rem; }
.site-footer strong { color: #d8d4cc; }
.site-footer p { margin: 5px 0 0; font-size: 0.86rem; }
.footer-legal {
  margin: 4px 0 0;
  color: #9a968e;
  font-size: 0.78rem;
  line-height: 1.45;
}
.footer-meta { display: flex; align-items: center; gap: 22px; font-size: 0.82rem; }
.footer-meta a { text-decoration: none; color: #b9b5ad; }
.footer-meta a:hover { color: var(--gold-bright); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 4px; }

@media (max-width: 900px) {
  :root { --shell: min(100% - 28px, 760px); }
  .hero { min-height: 640px; }
  .game-feature, .about-grid, .contact-card { grid-template-columns: 1fr; }
  .game-feature { gap: 18px; }
  .contact-action { justify-content: flex-start; }
}

@media (max-width: 700px) {
  .site-header { background: rgba(9, 10, 12, 0.72); backdrop-filter: blur(14px); }
  .nav-wrap { min-height: 68px; }
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    inset: 68px 14px auto;
    display: grid;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(16, 18, 22, 0.98);
    box-shadow: 0 24px 60px rgba(0,0,0,0.45);
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
    pointer-events: none;
    transition: 160ms ease;
  }
  .site-nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .site-nav a { padding: 14px; border-radius: 9px; }
  .site-nav a:hover { background: rgba(255,255,255,0.035); }
  .brand-name { font-size: 0.93rem; }
  .hero { min-height: 0; }
  .hero-content { padding-top: 72px; padding-bottom: 40px; }
  .hero-logo-wrap { margin-bottom: 8px; }
  .hero-logo { width: min(128px, 42vw); }
  .hero h1 { font-size: clamp(2.2rem, 10.5vw, 3.2rem); }
  .hero-copy { margin-top: 14px; font-size: 0.98rem; }
  .hero-actions { margin-top: 20px; }
  .section { padding: 64px 0; }
  .section-games { padding-top: 56px; }
  .section-about { padding-bottom: 48px; }
  .section-contact { padding-top: 12px; padding-bottom: 36px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .game-feature { padding: 10px; gap: 14px; }
  .game-copy { padding: 4px 6px 10px; }
  .contact-email { width: 100%; }
  .footer-grid, .footer-meta { align-items: flex-start; flex-direction: column; }
  .site-footer { margin-top: 40px; }
}

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