:root {
  --ink: #152017;
  --muted: #637067;
  --paper: #f8f5e9;
  --paper-deep: #eee8d3;
  --surface: #fffdf5;
  --green: #61b83d;
  --green-dark: #2d712b;
  --green-deep: #122717;
  --red: #df392d;
  --gold: #f1c453;
  --line: rgba(21, 32, 23, 0.14);
  --shadow: 0 18px 45px rgba(20, 38, 24, 0.12);
  --pixel: "Press Start 2P", ui-monospace, monospace;
  --body: "Nunito", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  z-index: 20;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1320px;
  margin: auto;
  padding: 24px 34px;
  color: #fff;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: inherit;
  line-height: 1;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: clamp(128px, 12vw, 168px);
  height: auto;
  filter: drop-shadow(0 3px 2px rgba(0,0,0,.45));
}

nav { display: flex; align-items: center; gap: 28px; }
nav a {
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .07em;
  text-decoration: none;
  text-transform: uppercase;
  text-shadow: 0 2px 4px rgba(0,0,0,.65);
}
nav a:hover { color: #d7ffb6; }
.nav-join {
  border: 2px solid rgba(255,255,255,.85);
  padding: 8px 15px;
  box-shadow: 3px 3px 0 rgba(0,0,0,.35);
}

.hero {
  position: relative;
  min-height: min(840px, 100vh);
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: #0b2113;
}

.hero-image, .hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image { object-fit: cover; object-position: center; }
.hero-shade {
  background:
    linear-gradient(90deg, rgba(4, 13, 7, .93) 0%, rgba(4, 13, 7, .75) 32%, rgba(4, 13, 7, .14) 66%, rgba(4, 13, 7, .12) 100%),
    linear-gradient(0deg, rgba(4, 13, 7, .72), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1320px, calc(100% - 68px));
  margin: auto;
  padding: 130px 0 80px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--green);
  font-family: var(--pixel);
  font-size: 11px;
  letter-spacing: .08em;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero .eyebrow { color: #b8ff83; text-shadow: 0 2px 2px rgba(0,0,0,.5); }
.hero h1 {
  max-width: 740px;
  margin: 0;
  font-family: var(--pixel);
  font-size: clamp(42px, 6.2vw, 92px);
  letter-spacing: -.06em;
  line-height: 1.16;
  text-shadow: 0 6px 0 rgba(0,0,0,.55), 0 16px 30px rgba(0,0,0,.35);
}
.hero h1 span { color: #b9f87c; }
.hero-copy {
  max-width: 520px;
  margin: 26px 0 28px;
  font-size: clamp(19px, 2vw, 25px);
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0,0,0,.7);
}

.server-address {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 12px 12px 12px 18px;
  border: 2px solid rgba(255,255,255,.5);
  background: rgba(6, 20, 10, .82);
  box-shadow: 6px 6px 0 rgba(0,0,0,.38);
  backdrop-filter: blur(9px);
}
.server-address code { font-family: var(--pixel); font-size: clamp(12px, 1.6vw, 17px); }
.status-dot {
  width: 10px;
  height: 10px;
  background: #7cff64;
  box-shadow: 0 0 0 4px rgba(124,255,100,.16), 0 0 16px #7cff64;
  animation: pulse 2s infinite;
}
@keyframes pulse { 50% { opacity: .55; } }
.copy-button {
  border: 0;
  padding: 10px 14px;
  color: #112110;
  background: #b9f87c;
  font-weight: 900;
  cursor: pointer;
}
.copy-button:hover { background: #dcffba; }
.scroll-cue {
  position: absolute;
  z-index: 2;
  bottom: 26px;
  left: 50%;
  display: flex;
  gap: 10px;
  align-items: center;
  color: rgba(255,255,255,.78);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateX(-50%);
}

@media (min-width: 1100px) {
  .hero {
    height: clamp(520px, 33.333vw, 724px);
    min-height: 0;
  }

  .hero-image {
    object-fit: contain;
    background: #0b2113;
  }

  .hero-content { padding: 92px 0 52px; }
  .hero h1 { font-size: clamp(48px, 4.5vw, 72px); }
}

.section { padding: 110px max(28px, calc((100vw - 1250px) / 2)); }
.section-heading { max-width: 720px; margin-bottom: 50px; }
.section-heading h2, .join-card h2 {
  margin: 0 0 14px;
  font-family: var(--pixel);
  font-size: clamp(29px, 4vw, 48px);
  letter-spacing: -.04em;
  line-height: 1.28;
}
.section-heading > p:last-child { margin: 0; color: var(--muted); font-size: 20px; }

.section-info {
  background:
    linear-gradient(rgba(248,245,233,.94), rgba(248,245,233,.98)),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(57, 98, 58, .12) 32px),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(57, 98, 58, .12) 32px);
}
.server-status-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 50px;
  padding: 26px 30px;
  overflow: hidden;
  color: #fff;
  border: 1px solid #183e22;
  background: #0c1d12;
  box-shadow: 7px 7px 0 rgba(38, 66, 40, .16);
}
.server-status-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .06;
  background-image: repeating-linear-gradient(45deg, transparent 0 18px, #fff 18px 19px);
}
.server-status-summary, .server-population {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
}
.server-status-summary { gap: 18px; }
.server-status-light {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  background: #f0c35b;
  box-shadow: 0 0 0 6px rgba(240,195,91,.13), 0 0 18px rgba(240,195,91,.55);
}
.server-status-panel[data-status="online"] .server-status-light {
  background: #7cff64;
  box-shadow: 0 0 0 6px rgba(124,255,100,.13), 0 0 20px rgba(124,255,100,.6);
  animation: pulse 2s infinite;
}
.server-status-panel[data-status="offline"] .server-status-light {
  background: #ff5548;
  box-shadow: 0 0 0 6px rgba(255,85,72,.13), 0 0 18px rgba(255,85,72,.5);
}
.server-status-panel[data-status="unavailable"] .server-status-light {
  background: #93a096;
  box-shadow: 0 0 0 6px rgba(147,160,150,.12);
}
.server-status-kicker {
  margin: 0 0 5px;
  color: #a9c7ad;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
#server-status-text { font-size: clamp(22px, 2.5vw, 32px); }
.server-population { gap: 16px; }
.server-population > strong {
  color: #b9f87c;
  font-family: var(--pixel);
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
}
.server-population div { display: flex; flex-direction: column; }
.server-population span { font-weight: 900; }
.server-population small { margin-top: 3px; color: #a9c7ad; font-size: 13px; }
.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.info-card {
  min-height: 190px;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 5px 5px 0 rgba(38, 66, 40, .11);
  transition: transform .2s ease, box-shadow .2s ease;
}
.info-card:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 rgba(38, 66, 40, .13); }
.info-card-featured {
  grid-column: span 2;
  color: #fff;
  background: var(--green-dark);
  border-color: #1a4b1e;
}
.card-icon {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  margin-bottom: 22px;
  color: var(--green-dark);
  background: #dff4c9;
  font-size: 20px;
  font-weight: 900;
}
.info-card-featured .card-icon { color: #193815; background: #b9f87c; }
.nether-icon { color: #9d241b; background: #ffd5cb; }
.end-icon { color: #4b2b77; background: #e7dcff; }
.card-label { margin: 0 0 4px; color: var(--muted); font-size: 13px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.info-card-featured .card-label { color: #cde9c8; }
.card-value { margin: 0; font-size: 22px; font-weight: 900; }
.card-note { margin: 3px 0 0; color: var(--muted); font-size: 14px; }
.address-large {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  border: 0;
  padding: 0;
  color: #fff;
  background: transparent;
  font-family: var(--pixel);
  font-size: clamp(15px, 2vw, 24px);
  text-align: left;
  cursor: pointer;
}
.address-large span { color: #cde9c8; font-family: var(--body); font-size: 13px; font-weight: 800; }
.connection-note {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 28px;
  align-items: start;
  margin-top: 42px;
  padding: 30px;
  border: 1px solid #d4cba8;
  background: #fff9dc;
}
.connection-note h3 { margin: 0 0 4px; font-size: 20px; }
.connection-note p { max-width: 900px; margin: 0; color: #695f40; }
.signal-bars { display: flex; gap: 5px; align-items: end; height: 40px; padding-top: 4px; }
.signal-bars i { display: block; width: 8px; background: var(--green-dark); }
.signal-bars i:nth-child(1) { height: 10px; }
.signal-bars i:nth-child(2) { height: 18px; }
.signal-bars i:nth-child(3) { height: 27px; }
.signal-bars i:nth-child(4) { height: 36px; opacity: .3; }

.section-rules {
  position: relative;
  color: #f8f4e6;
  background: var(--green-deep);
  overflow: hidden;
}
.section-rules::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .06;
  background-image: repeating-linear-gradient(45deg, transparent 0 20px, #fff 20px 21px);
}
.section-rules > * { position: relative; }
.section-heading-light > p:last-child { color: #aab9ac; }
.rules-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.rule-card {
  position: relative;
  min-height: 190px;
  padding: 30px 34px 30px 94px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.055);
}
.rule-number {
  position: absolute;
  top: 34px;
  left: 28px;
  color: #8edf5e;
  font-family: var(--pixel);
  font-size: 14px;
}
.rule-card h3 { margin: 0 0 8px; color: #fff; font-size: 22px; }
.rule-card p { margin: 0; color: #b7c4b9; }
.punishments {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 80px;
  margin-top: 92px;
  padding-top: 80px;
  border-top: 1px solid rgba(255,255,255,.16);
}
.punishments-intro h3 { margin: 0 0 20px; max-width: 420px; font-family: var(--pixel); font-size: clamp(25px, 3vw, 38px); line-height: 1.45; }
.punishments-intro > p:last-child { color: #b7c4b9; }
.warning-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.warning-list li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 22px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,.13);
}
.warning-count {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #132116;
  background: #c9f49e;
  font-family: var(--pixel);
  font-size: 13px;
  box-shadow: 4px 4px 0 #0a140c;
}
.warning-list strong { color: #fff; font-size: 18px; }
.warning-list p { margin: 2px 0 0; color: #aebcaf; }
.warning-list .warning-final { border-bottom: 0; }
.warning-final .warning-count { color: #fff; background: var(--red); }

.section-mods { background: #f8f5e9; }
.mods-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.search-box {
  display: flex;
  width: min(100%, 470px);
  align-items: center;
  gap: 13px;
  padding: 12px 17px;
  border: 2px solid var(--ink);
  background: var(--surface);
  box-shadow: 4px 4px 0 rgba(21,32,23,.2);
}
.search-box > span { font-size: 24px; font-weight: 900; }
.search-box input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; }
.mods-toolbar > p { margin: 0; color: var(--muted); }
.mods-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mod-card {
  min-height: 205px;
  padding: 25px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color .2s, transform .2s;
}
.mod-card:hover { border-color: var(--green); transform: translateY(-3px); }
.mod-card > span {
  display: inline-block;
  margin-bottom: 20px;
  padding: 5px 8px;
  color: #256522;
  background: #e0f3cc;
  font-family: var(--pixel);
  font-size: 8px;
}
.mod-card h3 { margin: 0 0 8px; font-size: 20px; }
.mod-card p { margin: 0; color: var(--muted); font-size: 15px; }
.mod-card[hidden] { display: none; }
.empty-state { padding: 50px; border: 1px dashed var(--line); color: var(--muted); text-align: center; }

.section-join {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(22,64,28,.95), rgba(45,113,43,.9)),
    repeating-linear-gradient(0deg, transparent 0 47px, rgba(255,255,255,.11) 48px),
    repeating-linear-gradient(90deg, transparent 0 47px, rgba(255,255,255,.11) 48px);
}
.join-card {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 80px;
  align-items: center;
  max-width: 1100px;
  margin: auto;
}
.join-card p:not(.eyebrow) { max-width: 650px; color: #d7e4d6; font-size: 19px; }
.join-card .eyebrow { color: #b9f87c; }
.join-actions { display: grid; gap: 14px; }
.button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 20px;
  font-weight: 900;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.button:hover { transform: translate(-3px, -3px); }
.button-primary { color: #142317; background: #c5fb91; box-shadow: 6px 6px 0 #102315; }
.button-primary:hover { box-shadow: 9px 9px 0 #102315; }
.button-secondary { border: 2px solid rgba(255,255,255,.7); color: #fff; box-shadow: 6px 6px 0 rgba(0,0,0,.25); }

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 32px max(28px, calc((100vw - 1250px) / 2));
  color: #dbe5dc;
  background: #0c160f;
}
.footer-brand { color: #fff; }
.footer-brand .brand-logo { width: clamp(160px, 16vw, 210px); }
footer p { margin: 0; font-size: 14px; text-align: center; }
.footer-ip { justify-self: end; border: 0; color: #b9f87c; background: transparent; font-family: var(--pixel); font-size: 9px; cursor: pointer; }

.toast {
  position: fixed;
  z-index: 30;
  right: 24px;
  bottom: 24px;
  padding: 13px 18px;
  color: #fff;
  background: #172d1b;
  box-shadow: 5px 5px 0 rgba(0,0,0,.3);
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: .25s ease;
}
.toast.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 950px) {
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .mods-grid { grid-template-columns: repeat(2, 1fr); }
  .punishments { grid-template-columns: 1fr; gap: 35px; }
  .join-card { grid-template-columns: 1fr; gap: 35px; }
  footer { grid-template-columns: 1fr; justify-items: center; }
  .footer-ip { justify-self: center; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .site-header { padding: 20px; }
  nav a:not(.nav-join) { display: none; }
  .brand-logo { width: 128px; }
  .hero { min-height: 760px; }
  .hero-content { width: calc(100% - 40px); padding-top: 110px; }
  .hero-image { object-position: 58% center; }
  .hero h1 { font-size: clamp(39px, 13vw, 58px); }
  .hero-shade { background: linear-gradient(90deg, rgba(4,13,7,.9), rgba(4,13,7,.38)), linear-gradient(0deg, rgba(4,13,7,.86), transparent 70%); }
  .server-address { width: 100%; gap: 9px; }
  .server-address code { flex: 1; font-size: 11px; }
  .copy-button { padding: 9px 10px; }
  .section { padding: 78px 20px; }
  .server-status-panel { align-items: flex-start; flex-direction: column; padding: 24px; }
  .server-population { width: 100%; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.15); }
  .section-heading { margin-bottom: 36px; }
  .section-heading > p:last-child { font-size: 18px; }
  .info-grid, .rules-grid, .mods-grid { grid-template-columns: 1fr; }
  .info-card-featured { grid-column: auto; }
  .connection-note { grid-template-columns: 1fr; }
  .rule-card { padding: 28px 25px 28px 78px; }
  .mods-toolbar { align-items: stretch; flex-direction: column; }
  .warning-list li { grid-template-columns: 48px 1fr; gap: 16px; }
  .join-card h2 { font-size: 31px; }
  footer { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
