:root {
  --grass: #35a852;
  --leaf: #1f7a3b;
  --gold: #f1c84b;
  --stone: #192016;
  --dirt: #6f492e;
  --sky: #8ed3ff;
  --paper: #f7f0df;
  --ink: #12150f;
  --muted: #5d6457;
  --line: rgba(18, 21, 15, 0.14);
  --shadow: 0 24px 70px rgba(13, 22, 12, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f2ead6;
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  letter-spacing: 0;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 88px;
  padding: 12px clamp(18px, 4vw, 54px);
  color: white;
  background: linear-gradient(180deg, rgba(8, 12, 7, 0.76), rgba(8, 12, 7, 0.18));
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-weight: 900;
  text-decoration: none;
  font-size: clamp(20px, 3vw, 34px);
  line-height: 1;
}

.brand-logo {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.42));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 800;
  text-decoration: none;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.14);
}

.nav-links .nav-join {
  background: var(--gold);
  color: #221a06;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.16);
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: white;
}

.hero {
  min-height: 92vh;
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 152px clamp(18px, 5vw, 70px) 52px;
  color: white;
}

.hero-slideshow,
.hero-slideshow img,
.hero-shadow {
  position: absolute;
  inset: 0;
}

.hero-slideshow img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  animation: heroFade 18s infinite;
}

.hero-slideshow img:nth-child(2) {
  animation-delay: 6s;
}

.hero-slideshow img:nth-child(3) {
  animation-delay: 12s;
}

.hero-shadow {
  background:
    linear-gradient(90deg, rgba(3, 7, 3, 0.86), rgba(3, 7, 3, 0.46), rgba(3, 7, 3, 0.18)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.12) 34%, rgba(0, 0, 0, 0.72));
  box-shadow: inset 0 -140px 120px rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(880px, 100%);
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-family: "Press Start 2P", Inter, sans-serif;
  font-size: clamp(42px, 8vw, 92px);
  line-height: 1.05;
  text-shadow: 0 7px 0 rgba(0, 0, 0, 0.28), 0 18px 45px rgba(0, 0, 0, 0.42);
}

.hero-line {
  max-width: 740px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2.5vw, 26px);
  line-height: 1.35;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 30px;
}

.copy-button,
.server-menu-button,
.discord-button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 7px;
  padding: 0 20px;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.copy-button,
.server-menu-button {
  background: var(--grass);
  color: white;
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.24);
}

.copy-button.secondary {
  background: #24311f;
}

.discord-button {
  background: var(--gold);
  color: #251b05;
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.16);
}

.server-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  width: min(760px, 100%);
  margin-top: 34px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.server-card div {
  min-width: 0;
  padding: 18px;
  background: rgba(10, 15, 9, 0.48);
}

.server-card .server-ip-cell {
  grid-column: 1 / -1;
}

.server-card span {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.62);
  font-weight: 800;
}

.server-card strong {
  display: block;
  font-size: clamp(16px, 2.2vw, 22px);
  overflow-wrap: anywhere;
}

.live-status {
  width: min(760px, 100%);
  margin-top: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(10, 15, 9, 0.58);
  backdrop-filter: blur(12px);
}

.live-status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.live-status h2 {
  margin: 7px 0 0;
  font-size: clamp(22px, 3vw, 32px);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.status-pill.online {
  background: rgba(53, 168, 82, 0.24);
  color: #9ff2b3;
}

.status-pill.offline {
  background: rgba(241, 82, 82, 0.2);
  color: #ffb8b8;
}

.status-pill.maintenance {
  background: rgba(241, 200, 75, 0.24);
  color: #ffe39b;
}

.refresh-status {
  min-height: 42px;
  border: 0;
  border-radius: 7px;
  padding: 0 14px;
  background: var(--gold);
  color: #251b05;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.16);
}

.status-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.status-grid article {
  padding: 15px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.13);
}

.status-grid span {
  display: block;
  color: rgba(255, 255, 255, 0.66);
  font-weight: 900;
}

.status-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
}

.status-grid strong.online {
  color: #9ff2b3;
}

.status-grid strong.offline {
  color: #ffb8b8;
}

.status-grid strong.maintenance {
  color: #ffe39b;
}

.status-grid p,
.status-updated {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.player-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.player-list.hidden-list {
  display: block;
}

.player-name {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.16);
  color: white;
  font-weight: 900;
}

section {
  padding: 74px clamp(18px, 5vw, 70px);
}

.feature-strip {
  background:
    linear-gradient(180deg, #f2ead6, #e4d4ae),
    repeating-linear-gradient(45deg, rgba(111, 73, 46, 0.08) 0 12px, transparent 12px 24px);
}

.section-heading {
  width: min(800px, 100%);
  margin-bottom: 30px;
}

h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.02;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature-grid article,
.rules article,
.join-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow);
}

.feature-grid article {
  min-height: 210px;
  padding: 22px;
}

.feature-grid span {
  color: var(--leaf);
  font-weight: 900;
}

.feature-grid h3,
.rules h3 {
  margin: 16px 0 10px;
  font-size: 22px;
}

.feature-grid p,
.join-copy p,
.step p,
.rules li {
  color: var(--muted);
  line-height: 1.55;
}

.join-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.85fr);
  gap: 26px;
  align-items: center;
  background: var(--stone);
  color: white;
}

.join-copy p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
}

.join-panel {
  padding: 24px;
  background: #fff9e8;
  color: var(--ink);
}

.step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.step span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  background: var(--grass);
  color: white;
  font-weight: 900;
}

.join-panel a {
  display: block;
  margin-top: 20px;
  color: var(--leaf);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding-top: 28px;
  padding-bottom: 28px;
  background: #11170f;
}

.gallery img {
  width: 100%;
  aspect-ratio: 1.55;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.34);
}

.rules {
  background: #f2ead6;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.rules article {
  padding: 24px;
}

.rules ul {
  margin: 0;
  padding-left: 20px;
}

.rules li + li {
  margin-top: 8px;
}

footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 28px 18px;
  background: #0c110b;
  color: white;
}

.small {
  min-height: 40px;
  padding: 0 14px;
}

.server-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.server-modal.open {
  display: flex;
}

.server-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 9, 5, 0.72);
  backdrop-filter: blur(6px);
}

.server-menu {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: #fff9e8;
  color: var(--ink);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.45);
}

.server-menu h2 {
  font-size: clamp(26px, 5vw, 42px);
}

.server-menu-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 6px;
  background: #192016;
  color: white;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.server-version-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.server-version-grid article {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 235px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.server-version-grid span {
  color: var(--leaf);
  font-weight: 900;
}

.server-version-grid strong {
  font-size: clamp(18px, 3vw, 24px);
  overflow-wrap: anywhere;
}

.server-version-grid em {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 30;
  transform: translate(-50%, 20px);
  padding: 12px 16px;
  border-radius: 6px;
  background: #10160e;
  color: white;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes heroFade {
  0%,
  8% {
    opacity: 0;
  }

  14%,
  38% {
    opacity: 1;
  }

  46%,
  100% {
    opacity: 0;
  }
}

@media (max-width: 960px) {
  .feature-grid,
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .join-band,
  .rules-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 74px;
    padding: 10px 16px;
  }

  .brand {
    gap: 11px;
    font-size: 19px;
  }

  .brand-logo {
    width: 54px;
    height: 54px;
  }

  .menu-button {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 78px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border-radius: 8px;
    background: rgba(13, 18, 11, 0.94);
  }

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

  .nav-links a {
    justify-content: center;
  }

  .hero {
    min-height: 100vh;
    padding: 124px 18px 34px;
  }

  .hero-shadow {
    background:
      linear-gradient(180deg, rgba(3, 7, 3, 0.55), rgba(3, 7, 3, 0.62)),
      linear-gradient(90deg, rgba(3, 7, 3, 0.76), rgba(3, 7, 3, 0.32));
  }

  .server-card {
    grid-template-columns: 1fr;
  }

  .server-version-grid {
    grid-template-columns: 1fr;
  }

  .live-status-head,
  .status-grid {
    grid-template-columns: 1fr;
  }

  .live-status-head {
    align-items: stretch;
    flex-direction: column;
  }

  section {
    padding: 54px 18px;
  }

  .feature-grid,
  .gallery {
    grid-template-columns: 1fr;
  }
}
