:root {
  --bg: #070d1a;
  --bg-2: #111d2e;
  --panel: #101b2c;
  --panel-strong: #16263f;
  --text: #edf2ff;
  --muted: #b3c1d9;
  --accent: #8b5cf6;
  --accent-2: #22d3ee;
  --accent-3: #f59e0b;
  --line: rgba(255,255,255,0.09);
  --shadow: rgba(2, 6, 23, 0.5);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top, rgba(139, 92, 246, 0.16), transparent 28%),
    linear-gradient(180deg, var(--bg) 0%, #0d1629 100%);
  color: var(--text);
  line-height: 1.7;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

p {
  margin: 0;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 13, 26, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 1rem;
}

.brand {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  color: var(--muted);
  font-size: 0.96rem;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--text);
}

.hero {
  padding: 5rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  margin-bottom: 0.8rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.hero-copy h1,
.section-heading h2,
.site-footer h2,
.page-hero h1,
.page-main h2 {
  margin: 0;
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.hero-copy h1 {
  font-size: clamp(2.9rem, 5vw, 5rem);
  max-width: 660px;
}

.lede {
  margin-top: 1.2rem;
  max-width: 640px;
  color: var(--muted);
  font-size: 1.08rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.3rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #07111d;
  box-shadow: 0 18px 30px rgba(91, 90, 255, 0.35);
}

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--text);
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 2.2rem 0 0;
}

.mini-stats li {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem;
}

.mini-stats strong,
.mini-stats span {
  display: block;
}

.mini-stats strong {
  font-size: 1.2rem;
}

.mini-stats span {
  color: var(--muted);
  font-size: 0.85rem;
}

.hero-card {
  display: flex;
  justify-content: center;
}

.game-window {
  width: min(100%, 500px);
  background: linear-gradient(180deg, rgba(23,35,52,0.94), rgba(15,20,35,0.98));
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: 0 30px 60px var(--shadow);
  overflow: hidden;
}

.window-bar {
  display: flex;
  gap: 0.5rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
}

.window-bar span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: block;
}

.window-bar span:nth-child(1) { background: #fb7185; }
.window-bar span:nth-child(2) { background: #fbbf24; }
.window-bar span:nth-child(3) { background: #4ade80; }

.game-art {
  position: relative;
  height: 390px;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(34, 211, 238, 0.15), transparent 25%),
    linear-gradient(180deg, #0f172a 0%, #4c1d95 100%);
}

.planet {
  position: absolute;
  right: 13%;
  bottom: 14%;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(196,181,253,1), rgba(109,40,217,0.8) 40%, rgba(30,27,75,1) 100%);
  box-shadow: 0 0 45px rgba(139, 92, 246, 0.4);
}

.pixel {
  position: absolute;
  left: 20%;
  top: 24%;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #fef3c7 0%, #f59e0b 100%);
  border-radius: 12px;
  transform: rotate(18deg);
  box-shadow: 0 12px 25px rgba(245, 158, 11, 0.45);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
}

.orb-one {
  left: 28%;
  bottom: 20%;
  width: 18px;
  height: 18px;
  background: rgba(34, 211, 238, 0.9);
}

.orb-two {
  left: 38%;
  bottom: 25%;
  width: 24px;
  height: 24px;
  background: rgba(255,255,255,0.8);
}

.section {
  padding: 5rem 0;
}

.alt-section {
  background: rgba(15, 23, 42, 0.52);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 2rem;
}

.section-heading h2 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
}

.about-grid,
.project-grid,
.steps-grid,
.two-column,
.info-grid,
.page-layout {
  display: grid;
  gap: 1.5rem;
}

.about-grid {
  grid-template-columns: 1.2fr 0.8fr;
}

.about-grid p,
.info-panel li,
.step p,
.project-body p,
.callout p,
.game-detail p,
.game-meta li,
.page-hero p {
  color: var(--muted);
}

.info-panel {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.5rem;
}

.info-panel h3 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.info-panel ul {
  margin: 0;
  padding-left: 1.1rem;
}

.project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
}

.project-thumb {
  height: 180px;
  border-bottom: 1px solid var(--line);
}

.thumb-one {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(8, 22, 31, 0.8), rgba(29, 53, 60, 0.85)),
    linear-gradient(135deg, #0f2f3b, #123a42 45%, #1a4b55 100%);
  min-height: 180px;
}

.thumb-one::before {
  content: "";
  position: absolute;
  right: -30px;
  top: -20px;
  width: 220px;
  height: 220px;
  border-left: 4px solid rgba(127, 232, 224, 0.9);
  transform: rotate(36deg);
}

.promo-badge {
  position: absolute;
  top: 16px;
  left: 18px;
  z-index: 2;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  color: #f4e7c5;
}

.promo-title {
  position: absolute;
  top: 34px;
  left: 18px;
  right: 18px;
  z-index: 2;
  line-height: 0.85;
  font-weight: 900;
  letter-spacing: -0.08em;
  text-transform: uppercase;
}

.promo-title span {
  display: block;
  font-size: clamp(1.45rem, 2vw, 2.4rem);
  color: #f2ecda;
}

.promo-title span:last-child {
  color: #79e7d7;
}

.promo-figure {
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 170px;
  height: 150px;
  transform: translateX(-50%);
  border: 3px solid rgba(121, 231, 215, 0.95);
  border-radius: 50%;
  background: rgba(6, 18, 23, 0.12);
}

.promo-person {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 62px;
  height: 58px;
  transform: translate(-50%, -50%);
  background: #7ad8d0;
  border-radius: 18px 18px 12px 12px;
  box-shadow: inset 0 -14px 0 rgba(4, 18, 23, 0.1);
}

.promo-person::before,
.promo-person::after {
  content: "";
  position: absolute;
  background: #f4e7c5;
}

.promo-person::before {
  width: 22px;
  height: 22px;
  left: 20px;
  top: -14px;
  border-radius: 50%;
}

.promo-person::after {
  width: 14px;
  height: 34px;
  left: 24px;
  top: 10px;
  border-radius: 10px;
  background: #f7b353;
}

.promo-wheel {
  position: absolute;
  bottom: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid rgba(121, 231, 215, 0.95);
  background: rgba(255,255,255,0.02);
}

.promo-wheel-left { left: 28px; }
.promo-wheel-right { right: 28px; }

.thumb-two {
  background: linear-gradient(135deg, rgba(168,85,247,0.88), rgba(124,58,237,0.9));
}

.thumb-three {
  background: linear-gradient(135deg, rgba(251,146,60,0.82), rgba(239,68,68,0.84));
}

.project-body {
  padding: 1.4rem;
}

.tag {
  display: inline-block;
  margin-bottom: 0.8rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(34,211,238,0.12);
  color: var(--accent-2);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-body h3 {
  margin: 0 0 0.6rem;
  font-size: 1.5rem;
}

.project-body p {
  margin: 0 0 1rem;
}

.project-body a,
.game-detail a,
.page-nav a {
  font-weight: 700;
  color: var(--text);
}

.two-column {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
}

.callout {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.5rem;
}

.inline-highlight {
  margin-top: 0.7rem;
  color: var(--text);
  font-weight: 600;
}

.steps-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.5rem;
}

.step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.12);
  color: var(--accent-2);
  font-weight: 800;
}

.step h3 {
  margin: 1rem 0 0.65rem;
}

.site-footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--line);
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-meta {
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.page-shell {
  padding: 4rem 0 5rem;
}

.page-hero {
  margin-bottom: 2.5rem;
}

.page-hero h1 {
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  max-width: 720px;
}

.page-hero p {
  max-width: 700px;
  margin-top: 1rem;
}

.page-main {
  display: grid;
  gap: 2rem;
}

.page-layout {
  grid-template-columns: 1fr 0.9fr;
  align-items: start;
}

.game-detail,
.game-meta {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.6rem;
}

.game-detail h2,
.game-meta h3 {
  margin-top: 0;
  margin-bottom: 0.8rem;
}

.game-detail p + p {
  margin-top: 0.9rem;
}

.game-meta ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.game-meta li + li {
  margin-top: 0.7rem;
}

.server-badge {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(34,211,238,0.4);
  border-radius: 999px;
  color: var(--accent-2);
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 700;
}

.page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.2rem;
}

@media (max-width: 860px) {
  .hero-grid,
  .about-grid,
  .project-grid,
  .steps-grid,
  .two-column,
  .page-layout {
    grid-template-columns: 1fr;
  }

  .nav {
    flex-direction: column;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem 0;
  }

  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .mini-stats {
    grid-template-columns: 1fr;
  }

  .site-header {
    position: static;
  }
}
