@font-face {
  font-family: MinecraftRegularLocal;
  src: url("./fonts/Minecraft-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: MinecraftTenLocal;
  src: url("./fonts/Minecraft-Ten.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-primary: #171615;
  --bg-secondary: #2b2b2b;
  --card-background: #2f302e;
  --text-primary: #f7f7f7;
  --text-secondary: #d0d1d4;
  --text-muted: #a9aaa8;
  --border-minecraft: #131313;
  --stone-dark: #1e1e1f;
  --mc-green: #3c8527;
  --mc-green-hover: #218306;
  --mc-green-shadow: #1d4d13;
  --mc-gold: #f4d35e;
  --zerix-orange: #ff8c00;
  --pvp-cyan: #43d7ff;
  --transition-smooth: all 120ms steps(2, end);
  --shadow-md: 5px 5px 0 rgba(0, 0, 0, 0.85);
  --shadow-lg: 8px 8px 0 rgba(0, 0, 0, 0.8);
  --header-height: 68px;
}

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

html,
body {
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  image-rendering: pixelated;
}

html {
  background: #0b0f08;
  scroll-behavior: smooth;
}

body {
  height: 100vh;
  height: 100svh;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(8, 15, 8, 0.04) 0%, rgba(9, 10, 8, 0.42) 720px, rgba(9, 10, 8, 0.96) 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    url("./background.png");
  background-attachment: fixed;
  background-position: center top;
  background-repeat: no-repeat;
  background-size: auto, 32px 32px, 32px 32px, cover;
  color: var(--text-primary);
  font-family: MinecraftRegularLocal, monospace;
  line-height: 1.6;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(6, 18, 8, 0.16) 0%, rgba(9, 13, 8, 0.12) 36%, rgba(4, 5, 4, 0.48) 78%, rgba(0, 0, 0, 0.84) 100%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.015) 0 10px, transparent 10px 20px);
}

body::after {
  z-index: -1;
  background:
    radial-gradient(circle at 22% 24%, rgba(102, 161, 41, 0.08), transparent 28%),
    radial-gradient(circle at 78% 20%, rgba(136, 196, 90, 0.06), transparent 24%),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.18) 58%, rgba(0, 0, 0, 0.68) 100%);
}

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

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.app {
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(31, 31, 31, 0.96);
  border-bottom: 4px solid var(--border-minecraft);
  box-shadow: inset 0 -3px 0 var(--stone-dark), 0 5px 0 rgba(0, 0, 0, 0.55);
  min-height: var(--header-height);
}

.nav {
  position: relative;
  min-height: calc(var(--header-height) - 4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.nav-menu,
.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.nav-menu {
  justify-self: start;
}

.nav-controls {
  justify-self: end;
}

.logo {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.logo-text,
.hero-title,
.cta-button,
.nav-link,
.server-status {
  font-family: MinecraftTenLocal, MinecraftRegularLocal, monospace;
  letter-spacing: 0;
}

.logo-text {
  color: var(--zerix-orange);
  display: inline-block;
  font-size: clamp(2.85rem, 4.4vw, 3.35rem);
  font-weight: 800;
  line-height: 0.92;
  text-shadow: 4px 4px 0 #000;
}

.nav-link,
.server-status {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1rem;
  border: 3px solid transparent;
  color: var(--text-secondary);
  font-size: 0.83rem;
  font-weight: 700;
  text-shadow: 2px 2px 0 #000;
  text-transform: uppercase;
  white-space: nowrap;
  transition: var(--transition-smooth);
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: var(--mc-green);
  border-color: var(--border-minecraft);
  box-shadow:
    inset 2px 2px 0 rgba(255, 255, 255, 0.28),
    inset -2px -5px 0 var(--mc-green-shadow),
    3px 3px 0 #000;
}

.server-status {
  background: rgba(29, 30, 28, 0.92);
  border-color: rgba(102, 161, 41, 0.38);
  color: var(--mc-gold);
}

.hero {
  height: 100vh;
  height: 100svh;
  min-height: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--header-height) + clamp(16px, 4vh, 34px)) 1rem clamp(24px, 8vh, 76px);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(5, 8, 5, 0.08) 34%, rgba(0, 0, 0, 0.56) 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 2px, transparent 2px),
    linear-gradient(rgba(255, 255, 255, 0.016) 2px, transparent 2px),
    url("./background.png");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: auto, 52px 52px, 52px 52px, cover;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.particles {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(0, 0, 0, 0.24) 25%, transparent 25%);
  background-size: 34px 34px;
}

.gradient-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.44) 88%),
    radial-gradient(circle at 50% 34%, rgba(102, 161, 41, 0.08), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, 920px);
  padding: clamp(1.5rem, 4vw, 3rem);
  text-align: center;
  border: 5px solid var(--border-minecraft);
  background: rgba(35, 36, 34, 0.74);
  box-shadow:
    inset 4px 4px 0 rgba(255, 255, 255, 0.18),
    inset -4px -4px 0 #111,
    var(--shadow-lg);
  animation: fadeInUp 0.8s ease-out both;
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.52rem 0.8rem;
  color: var(--text-secondary);
  background: rgba(29, 30, 28, 0.92);
  border: 3px solid rgba(102, 161, 41, 0.38);
  box-shadow:
    inset 2px 2px 0 rgba(255, 255, 255, 0.1),
    inset -2px -4px 0 rgba(0, 0, 0, 0.48),
    3px 3px 0 #000;
  font-size: 0.95rem;
  text-shadow: 2px 2px 0 #000;
  text-transform: uppercase;
}

.hero-title {
  margin: 0;
  font-size: clamp(3.1rem, 10vw, 7.1rem);
  font-weight: 700;
  line-height: 0.92;
  text-shadow: 5px 5px 0 #000;
}

.title-mcbe {
  color: var(--zerix-orange);
}

.title-pvp {
  color: var(--pvp-cyan);
}

.hero-subtitle {
  max-width: 660px;
  margin: 1.1rem auto 0;
  color: var(--text-secondary);
  font-size: clamp(0.88rem, 2vw, 1.08rem);
  text-shadow: 2px 2px 0 #000;
}

.hero-subtitle span {
  color: var(--zerix-orange);
  font-family: MinecraftTenLocal, MinecraftRegularLocal, monospace;
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(210px, 1fr));
  gap: 1rem;
  width: min(100%, 620px);
  margin: 2rem auto 0;
}

.cta-button {
  position: relative;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.25rem 1.2rem;
  border: 3px solid var(--border-minecraft);
  background: var(--mc-green);
  color: #fff;
  box-shadow:
    inset 3px 3px 0 rgba(255, 255, 255, 0.28),
    inset -3px -7px 0 var(--mc-green-shadow),
    4px 4px 0 #000;
  font-size: 1rem;
  text-align: center;
  text-shadow: 2px 2px 0 #000;
  transition: var(--transition-smooth);
}

.cta-secondary {
  background: #c6c6c6;
  color: #222;
  text-shadow: none;
  box-shadow:
    inset 3px 3px 0 rgba(255, 255, 255, 0.75),
    inset -3px -6px 0 #656465,
    4px 4px 0 #000;
}

.cta-button:hover,
.cta-button:focus-visible,
.cta-secondary:hover,
.cta-secondary:focus-visible {
  border-color: #fff;
  background: var(--mc-green-hover);
  color: #fff;
  box-shadow:
    inset 3px 3px 0 rgba(23, 205, 7, 0.75),
    inset -3px -7px 0 #004e00,
    4px 4px 0 #000;
  outline: none;
  text-shadow: 2px 2px 0 #000;
  transform: translate(1px, 1px);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 58px;
  }

  body {
    background-attachment: scroll;
  }

  .container {
    padding: 0 0.75rem;
  }

  .server-status {
    display: none;
  }

  .logo-text {
    font-size: 2.25rem;
    line-height: 0.95;
  }

  .hero {
    height: 100vh;
    height: 100svh;
    min-height: 0;
    padding-top: calc(var(--header-height) + 18px);
    padding-bottom: 24px;
  }

  .hero-content {
    padding: 1.5rem 1rem;
  }

  .hero-actions {
    grid-template-columns: 1fr;
    max-width: 360px;
  }

}

@media (max-width: 430px) {
  :root {
    --header-height: 54px;
  }

  .logo-text {
    font-size: 2rem;
  }

  .hero-title {
    font-size: 2.65rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }
}

@media (max-height: 640px) {
  .hero-content {
    padding: 1rem;
  }

  .hero-kicker {
    margin-bottom: 0.7rem;
    font-size: 0.82rem;
  }

  .hero-title {
    font-size: clamp(2.35rem, 9vh, 4.8rem);
  }

  .hero-subtitle {
    margin-top: 0.7rem;
  }

  .hero-actions {
    margin-top: 1.1rem;
  }

  .cta-button {
    min-height: 48px;
    padding: 0.72rem 1rem 0.92rem;
  }
}
