:root {
  --ink: #132014;
  --muted: #536253;
  --line: rgba(35, 54, 36, 0.16);
  --paper: #f5f7ef;
  --panel: #ffffff;
  --evergreen: #1f5a32;
  --grass: #4f9d4e;
  --sky: #2d8cc5;
  --gold: #d89b32;
  --coral: #d86648;
  --shadow: 0 18px 50px rgba(30, 43, 31, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
a { color: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 70px;
  padding: 12px clamp(16px, 5vw, 64px);
  background: rgba(245, 247, 239, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: max-content;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: linear-gradient(135deg, var(--evergreen), var(--sky));
  border: 3px solid rgba(255,255,255,.8);
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.12);
  font-weight: 900;
}
.brand strong, .brand small { display: block; }
.brand small { color: var(--muted); font-size: 12px; }
nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vw, 24px);
  flex-wrap: wrap;
}
nav a {
  color: #314532;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.join-button, .ghost-button, .copy-button, .donate-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.join-button, .copy-button, .donate-button {
  color: #fff;
  background: var(--evergreen);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.16);
}
.ghost-button {
  color: #fff;
  border: 1px solid rgba(255,255,255,.34);
  background: rgba(255,255,255,.12);
}

.hero {
  position: relative;
  min-height: min(720px, calc(100vh - 42px));
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
}
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 13, 9, .86), rgba(3, 13, 9, .42) 44%, rgba(3,13,9,.04));
}
.hero-copy {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 32px));
  margin-left: clamp(16px, 6vw, 76px);
  padding-block: 96px;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  max-width: 680px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: .95;
  letter-spacing: 0;
}
.hero p:not(.eyebrow) {
  max-width: 630px;
  margin: 22px 0 0;
  color: rgba(255,255,255,.88);
  font-size: clamp(17px, 2vw, 22px);
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.quick-grid, .section, .donate {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 28px 0 16px;
}
.quick-grid article, .cards article, .rules article, .metric, .plugin-grid article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.quick-grid article {
  min-height: 186px;
  padding: 22px;
}
.tile-icon {
  display: block;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  border: 3px solid #fff;
  box-shadow: inset 0 -5px 0 rgba(0,0,0,.14);
}
.tile-icon.grass { background: var(--grass); }
.tile-icon.sky { background: var(--sky); }
.tile-icon.gold { background: var(--gold); }
h2, h3, p { overflow-wrap: anywhere; }
.quick-grid h2, .cards h3 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.1;
}
.quick-grid p, .cards p, .rules span, .plugin-grid span, .donate p {
  margin: 0;
  color: var(--muted);
}

.section {
  padding: 72px 0 0;
}
.section-heading {
  margin-bottom: 20px;
}
.section-heading h2, .donate h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1;
}
.status-shell {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.tabs {
  display: flex;
  gap: 8px;
  padding: 10px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}
.tab {
  min-width: 112px;
  min-height: 42px;
  border: 0;
  border-radius: 7px;
  color: #314532;
  background: #eef3e8;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}
.tab.active {
  color: #fff;
  background: var(--evergreen);
}
.tab-panel {
  padding: 18px;
}
.metric-grid, .cards, .plugin-grid, .rules {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.metric {
  min-height: 140px;
  padding: 18px;
  box-shadow: none;
}
.metric span, .data-list span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}
.metric strong {
  display: block;
  margin: 10px 0 4px;
  font-size: 27px;
  line-height: 1.05;
}
.metric small {
  color: var(--muted);
}
.data-list {
  display: grid;
  gap: 10px;
}
.data-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.data-list div:last-child { border-bottom: 0; }
.plugin-grid article, .rules article, .cards article {
  padding: 20px;
}
.plugin-grid strong, .rules strong {
  display: block;
  margin-bottom: 8px;
}
.players-box {
  min-height: 120px;
  padding: 24px;
  border-radius: 8px;
  background: #eef3e8;
}
.players-box strong {
  display: block;
  font-size: 28px;
}
.players-box p {
  margin: 8px 0 0;
  color: var(--muted);
}

.cards article {
  min-height: 190px;
  box-shadow: none;
}
.worlds .cards article:nth-child(1) { border-top: 6px solid var(--sky); }
.worlds .cards article:nth-child(2) { border-top: 6px solid var(--grass); }
.worlds .cards article:nth-child(3) { border-top: 6px solid var(--coral); }
.worlds .cards article:nth-child(4) { border-top: 6px solid var(--gold); }
.rank-table {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.rank-table div {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.rank-table div:last-child { border-bottom: 0; }
.rank-table span {
  color: var(--evergreen);
  font-weight: 900;
}
.rank-table p { margin: 0; color: var(--muted); }

.safety {
  padding-bottom: 72px;
}
.rules {
  grid-template-columns: repeat(2, 1fr);
}
.rules article {
  display: grid;
  gap: 4px;
  box-shadow: none;
}
.donate {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  margin-bottom: 72px;
  padding: 32px;
  color: #fff;
  background: #183820;
  border-radius: 8px;
}
.donate p { color: rgba(255,255,255,.78); max-width: 780px; }
.donate-button {
  color: #132014;
  background: var(--gold);
  white-space: nowrap;
}

footer {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  padding: 28px 16px;
  color: #314532;
  border-top: 1px solid var(--line);
}

@media (max-width: 920px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }
  nav {
    justify-content: flex-start;
  }
  .join-button {
    position: absolute;
    top: 14px;
    right: 16px;
  }
  .quick-grid, .metric-grid, .cards, .plugin-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .donate {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .hero {
    min-height: 690px;
  }
  .hero::after {
    background: linear-gradient(180deg, rgba(3,13,9,.86), rgba(3,13,9,.54));
  }
  .hero-copy {
    width: calc(100% - 32px);
    margin: 0 auto;
    padding-top: 122px;
  }
  .hero h1 {
    font-size: 42px;
  }
  .quick-grid, .metric-grid, .cards, .plugin-grid, .rules {
    grid-template-columns: 1fr;
  }
  .rank-table div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .data-list div {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
}
