:root {
  --bg: #0e0e12;
  --panel: #1b1b21;
  --panel-dark: #141419;
  --panel-light: #24242c;
  --grass: #7cc33c;
  --grass-dark: #58a31e;
  --grass-bright: #a4e05c;
  --dirt: #6b4a2f;
  --dirt-dark: #4a311d;
  --stone: #7d7d7d;
  --stone-dark: #5a5a5a;
  --text: #f2f2f2;
  --muted: #a6a6ac;
  --gold: #ffd83d;
  --sky-top: #3db1ff;
  --sky-bottom: #c9f2ff;
  --outline: #1c1c20;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 22px 22px;
}

img, svg {
  display: block;
}

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

/* ---------- Minecraft-style chunky font ---------- */
.minecraft-font {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  -webkit-text-stroke: 1.5px var(--outline);
  text-shadow:
    3px 0 0 var(--outline),
    -3px 0 0 var(--outline),
    0 3px 0 var(--outline),
    0 -3px 0 var(--outline),
    2px 2px 0 var(--outline),
    -2px -2px 0 var(--outline),
    2px -2px 0 var(--outline),
    -2px 2px 0 var(--outline);
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 14, 18, 0.94);
  backdrop-filter: blur(4px);
  border-bottom: 3px solid var(--panel-light);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.logo-cube {
  width: 28px;
  height: 28px;
  image-rendering: pixelated;
  flex-shrink: 0;
}

.logo-text { color: var(--grass); }
.logo-sub { color: var(--muted); font-weight: 600; }

.nav-links {
  list-style: none;
  display: flex;
  gap: 26px;
}

.nav-links a {
  position: relative;
  padding: 20px 0;
  font-weight: 700;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--grass);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  height: 4px;
  background: var(--grass);
  transform: scaleX(0);
  transition: transform 0.15s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.burger span {
  width: 26px;
  height: 3px;
  background: var(--grass);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sky-top), var(--sky-bottom) 75%);
  color: #1c1c20;
  text-align: center;
  padding: 70px 20px 90px;
}

.hero-sky {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.pixel-cloud {
  position: absolute;
  background: #fff;
  border-radius: 2px;
  box-shadow:
    12px 0 0 #fff,
    -12px 0 0 #fff,
    6px 10px 0 #fff,
    -6px 10px 0 #fff,
    0 10px 0 #fff;
}

.c1 {
  width: 18px;
  height: 18px;
  top: 18%;
  left: 8%;
  animation: drift 30s linear infinite;
  opacity: 0.95;
}

.c2 {
  width: 14px;
  height: 14px;
  top: 10%;
  left: 55%;
  animation: drift 44s linear infinite;
  animation-delay: -16s;
  opacity: 0.85;
}

.c3 {
  width: 20px;
  height: 20px;
  top: 30%;
  left: 78%;
  animation: drift 36s linear infinite;
  animation-delay: -8s;
  opacity: 0.9;
}

@keyframes drift {
  from { transform: translateX(-10vw); }
  to   { transform: translateX(110vw); }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(3rem, 10vw, 6rem);
  color: var(--grass);
  line-height: 1.05;
}

.hero-tagline {
  margin: 22px auto 30px;
  max-width: 520px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #26404d;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Minecraft buttons ---------- */
.minecraft-btn {
  display: inline-block;
  padding: 14px 28px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  clip-path: polygon(0 8px, 8px 8px, 8px 0, calc(100% - 8px) 0, calc(100% - 8px) 8px, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 8px calc(100% - 8px), 0 calc(100% - 8px));
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.28);
  transition: filter 0.12s ease, transform 0.12s ease;
}

.minecraft-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.minecraft-btn:active {
  transform: translateY(2px);
  box-shadow: inset 0 4px 0 rgba(0, 0, 0, 0.28);
}

.minecraft-btn-green {
  background: var(--grass);
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35);
}

.minecraft-btn-stone {
  background: var(--stone);
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35);
}

/* ---------- Grass divider ---------- */
.grass-strip {
  position: relative;
  height: 30px;
  background: repeating-linear-gradient(90deg, var(--dirt) 0 10px, var(--dirt-dark) 10px 20px);
}

.grass-strip::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 16px;
  background:
    linear-gradient(45deg, var(--grass) 33%, transparent 33%),
    linear-gradient(-45deg, var(--grass) 33%, transparent 33%);
  background-size: 20px 20px;
  background-position: 0 0, 10px 0;
}

.grass-strip-reverse {
  transform: rotate(180deg);
}

.grass-strip-top::before {
  top: auto;
  bottom: 0;
}

/* ---------- Sections ---------- */
.section {
  padding: 64px 0;
}

.section-dark {
  background: var(--panel-dark);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  text-align: center;
  margin-bottom: 26px;
  color: var(--text);
}

.section-dark .section-title {
  color: var(--grass);
}

.section-lead {
  text-align: center;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 42px;
}

/* ---------- Pixel cards ---------- */
.pixel-card {
  background: var(--panel);
  clip-path: polygon(0 10px, 10px 10px, 10px 0, calc(100% - 10px) 0, calc(100% - 10px) 10px, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 10px calc(100% - 10px), 0 calc(100% - 10px));
  padding: 24px;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.about-card {
  text-align: center;
}

.about-card h3 {
  margin: 16px 0 10px;
  font-size: 1.15rem;
  color: var(--grass);
}

.about-card p {
  color: var(--muted);
  font-size: 0.98rem;
}

.card-icon {
  display: block;
}

/* block icons (pixelled via box-shadow) */
.block-icon {
  width: 32px;
  height: 32px;
  margin: 0 auto;
  border: 2px solid var(--outline);
}

.block-icon-grass {
  background-color: var(--dirt);
  background-image:
    linear-gradient(var(--grass-bright), var(--grass-bright)),
    linear-gradient(var(--grass-bright), var(--grass-bright)),
    linear-gradient(var(--grass-bright), var(--grass-bright));
  background-size: 5px 5px, 5px 5px, 6px 6px;
  background-repeat: repeat-x;
  background-position: 0 0, 5px 2px, 0 7px;
}

.block-icon-diamond {
  background: #59e2f2;
  background-color: #59e2f2;
  box-shadow:
    inset -8px 0 0 #1cb0c9,
    inset 0 -8px 0 #1cb0c9,
    inset 8px 0 0 #a7f2ff,
    inset 0 8px 0 #a7f2ff;
}

.block-icon-creeper {
  width: 34px;
  height: 34px;
  background-color: #5bb137;
  background-image:
    linear-gradient(#1c1c20, #1c1c20),
    linear-gradient(#1c1c20, #1c1c20),
    linear-gradient(#1c1c20, #1c1c20);
  background-size: 9px 12px, 9px 12px, 16px 10px;
  background-repeat: no-repeat;
  background-position: 6px 5px, 19px 5px, 9px 17px;
}

/* ---------- World ---------- */
.world-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.world-card {
  border: 2px solid var(--panel-light);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.world-card:hover {
  transform: translateY(-4px);
  border-color: var(--grass-dark);
}

.world-card-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  background: var(--panel-light);
  margin-bottom: 14px;
  clip-path: polygon(0 6px, 6px 6px, 6px 0, calc(100% - 6px) 0, calc(100% - 6px) 6px, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 6px calc(100% - 6px), 0 calc(100% - 6px));
}

.world-card-image {
  width: 50px;
  height: 50px;
  clip-path: polygon(0 6px, 6px 6px, 6px 0, calc(100% - 6px) 0, calc(100% - 6px) 6px, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 6px calc(100% - 6px), 0 calc(100% - 6px));
}

.world-card h3 {
  color: var(--grass);
  font-size: 1.1rem;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.world-card p {
  color: var(--muted);
  font-size: 0.96rem;
}

/* ---------- Socials ---------- */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  font-size: 1.02rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.social-btn svg {
  width: 30px;
  height: 30px;
  fill: #fff;
  flex-shrink: 0;
}

.social-btn:hover {
  transform: translateY(-3px);
  filter: brightness(1.1);
}

.social-youtube { background: #8a0a0a; border-color: #c4302b; }
.social-twitch  { background: #4b2a86; border-color: #9146ff; }
.social-telegram{ background: #1c6890; border-color: #229ed9; }
.social-discord { background: #2f365e; border-color: #5865f2; }
.social-vk      { background: #1f4d8a; border-color: #0077ff; }
.social-dzen    { background: #202020; border-color: #3a3a3a; }

/* ---------- Footer ---------- */
.footer {
  background: var(--panel-dark);
  border-top: 3px solid var(--panel-light);
  padding: 40px 0 46px;
  text-align: center;
  color: var(--muted);
}

.footer .container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-logo {
  font-size: 1.5rem;
  color: var(--grass);
  margin-bottom: 4px;
}

.footer-logo span {
  color: var(--muted);
}

.footer-copy {
  font-size: 0.85rem;
  color: #6e6e76;
}

/* ---------- Hero creeper ---------- */
.creeper {
  width: 48px;
  height: 48px;
  margin: 54px auto 0;
  background: #5bb137;
  border: 3px solid #1c1c20;
  box-shadow:
    6px 6px 0 -3px #1c1c20,
    12px 6px 0 -3px #1c1c20,
    30px 6px 0 -3px #1c1c20,
    36px 6px 0 -3px #1c1c20,
    6px 12px 0 -3px #1c1c20,
    12px 12px 0 -3px #1c1c20,
    30px 12px 0 -3px #1c1c20,
    36px 12px 0 -3px #1c1c20,
    12px 18px 0 -3px #1c1c20,
    18px 18px 0 -3px #1c1c20,
    24px 18px 0 -3px #1c1c20,
    30px 18px 0 -3px #1c1c20,
    12px 24px 0 -3px #1c1c20,
    18px 24px 0 -3px #1c1c20,
    24px 24px 0 -3px #1c1c20,
    30px 24px 0 -3px #1c1c20,
    12px 30px 0 -3px #1c1c20,
    18px 30px 0 -3px #1c1c20,
    24px 30px 0 -3px #1c1c20,
    30px 30px 0 -3px #1c1c20,
    16px 36px 0 -3px #1c1c20,
    24px 36px 0 -3px #1c1c20;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .burger {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(20, 20, 25, 0.98);
    border-bottom: 3px solid var(--panel-light);
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 15px 24px;
    border-top: 1px solid var(--panel-light);
  }

  .hero {
    padding: 50px 20px 70px;
  }

  .section {
    padding: 46px 0;
  }
}