:root {
  --white: #ffffff;
  --off-white: #f5f5f3;
  --light-gray: #e6e6e2;
  --mid-gray: #8a8a84;
  --dark: #151515;
  --black: #090909;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--dark);
  background: var(--off-white);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.6;
}

button,
a {
  font: inherit;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding: 0 max(24px, calc((100vw - var(--max-width)) / 2));
  color: var(--white);
  background: linear-gradient(to bottom, rgba(0,0,0,.55), transparent);
  transition: background .25s, box-shadow .25s, color .25s;
}

.site-header.scrolled {
  color: var(--dark);
  background: rgba(255,255,255,.94);
  box-shadow: 0 1px 0 rgba(0,0,0,.08);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid currentColor;
  font-size: .9rem;
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: .9rem;
  font-weight: 600;
}

nav a {
  opacity: .8;
}

nav a:hover {
  opacity: 1;
}

.copy-small {
  padding: 10px 16px;
  color: inherit;
  background: transparent;
  border: 1px solid currentColor;
  cursor: pointer;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  color: var(--white);
  background: #111;
}

.hero-slides,
.hero-slide,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.04);
  transition: opacity 1.2s ease, transform 8s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(0,0,0,.74), rgba(0,0,0,.22)),
    linear-gradient(0deg, rgba(0,0,0,.45), transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--max-width), calc(100% - 48px));
  padding-top: 76px;
}

.eyebrow {
  margin: 0 0 16px;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: #696965;
}

h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(3.5rem, 8vw, 7.4rem);
  line-height: .92;
  letter-spacing: -.075em;
}

h1 span {
  color: rgba(255,255,255,.68);
}

.hero-copy {
  max-width: 620px;
  margin: 28px 0 0;
  color: rgba(255,255,255,.8);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 700;
  transition: transform .2s, background .2s, color .2s;
}

.button:hover {
  transform: translateY(-2px);
}

.button-light {
  color: var(--dark);
  background: var(--white);
}

.button-ghost {
  color: var(--white);
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.55);
  backdrop-filter: blur(8px);
}

.server-address {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: min(100%, 390px);
  margin-top: 48px;
  padding: 16px 18px;
  color: var(--white);
  text-align: left;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.25);
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.server-address small,
.address-box small {
  display: block;
  margin-bottom: 2px;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  opacity: .7;
}

.server-address strong {
  font-size: .95rem;
}

.status-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(255,255,255,.14);
}

.copy-label {
  margin-left: auto;
  font-size: .8rem;
  opacity: .75;
}

.slide-controls {
  position: absolute;
  right: max(24px, calc((100vw - var(--max-width)) / 2));
  bottom: 34px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px;
  color: #fff;
  background: rgba(0, 0, 0, .38);
  border: 1px solid rgba(255, 255, 255, .28);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, .28);
  backdrop-filter: blur(8px);
}

.slide-controls button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: #111;
  background: #fff;
  border: 0;
  box-shadow: inset -3px -3px 0 #bdbdbd;
  cursor: pointer;
  font-family: "Pixelify Sans", monospace;
  font-size: 1.6rem;
  line-height: 1;
}

.slide-controls button:active {
  box-shadow: inset 3px 3px 0 #bdbdbd;
  transform: translateY(1px);
}

.slide-controls span {
  min-width: 60px;
  text-align: center;
  font-family: "Pixelify Sans", monospace;
  font-size: .85rem;
  letter-spacing: .08em;
}

.section {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 120px 0;
}

.section-heading {
  max-width: 760px;
}

h2 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 1;
  letter-spacing: -.06em;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 80px;
  margin-top: 52px;
  color: #666662;
}

.intro-grid p {
  margin: 0;
}

.intro-grid .lead {
  color: var(--dark);
  font-size: 1.3rem;
  line-height: 1.55;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 88px;
  background: #d9d9d4;
  border: 1px solid #d9d9d4;
}

.feature-card {
  min-height: 260px;
  padding: 34px;
  background: var(--off-white);
}

.feature-card span {
  color: #8b8b86;
  font-size: .75rem;
  font-weight: 700;
}

.feature-card h3 {
  margin: 64px 0 10px;
  font-size: 1.45rem;
  letter-spacing: -.03em;
}

.feature-card p {
  margin: 0;
  color: #73736f;
}

.join-section {
  width: 100%;
  padding: 0;
  background: #deded9;
}

.join-panel {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 80px;
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 120px 0;
}

.join-copy > p:not(.eyebrow) {
  max-width: 450px;
  margin: 24px 0 0;
  color: #666662;
}

.address-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 42px;
  padding: 20px;
  background: #fff;
  border: 1px solid #cecec9;
}

.address-box strong {
  overflow-wrap: anywhere;
}

.address-box button {
  flex: 0 0 auto;
  padding: 11px 14px;
  color: #fff;
  background: #171717;
  border: 0;
  cursor: pointer;
  font-size: .8rem;
  font-weight: 700;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #bdbdb8;
}

.steps li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  padding: 28px 0;
  border-bottom: 1px solid #bdbdb8;
}

.steps li > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: #171717;
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
}

.steps h3 {
  margin: 2px 0 7px;
  font-size: 1.05rem;
}

.steps p {
  margin: 0;
  color: #666662;
  font-size: .95rem;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 90px max(24px, calc((100vw - var(--max-width)) / 2));
  color: #fff;
  background: #151515;
}

.cta h2 {
  max-width: 760px;
  font-size: clamp(2.2rem, 4vw, 4rem);
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 34px max(24px, calc((100vw - var(--max-width)) / 2));
  background: #0b0b0b;
  color: rgba(255,255,255,.58);
  font-size: .8rem;
}

footer p:last-child {
  text-align: right;
}

.footer-brand {
  color: #fff;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 100;
  padding: 12px 18px;
  color: #fff;
  background: #161616;
  box-shadow: 0 10px 35px rgba(0,0,0,.25);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity .25s, transform .25s;
  font-size: .85rem;
  font-weight: 600;
}

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

@media (max-width: 850px) {
  nav a {
    display: none;
  }

  .intro-grid,
  .join-panel {
    grid-template-columns: 1fr;
    gap: 52px;
  }

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

  .feature-card {
    min-height: auto;
  }

  .feature-card h3 {
    margin-top: 34px;
  }

  .cta {
    align-items: flex-start;
    flex-direction: column;
  }

  footer {
    grid-template-columns: 1fr;
  }

  footer p,
  footer p:last-child {
    margin: 0;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .site-header {
    height: 66px;
  }

  .brand > span:last-child {
    font-size: .9rem;
  }

  .copy-small {
    padding: 8px 10px;
    font-size: .75rem;
  }

  .hero-content {
    width: calc(100% - 32px);
  }

  h1 {
    font-size: clamp(3.2rem, 17vw, 5rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    max-width: 280px;
  }

  .server-address {
    width: 100%;
  }

  .slide-controls {
    right: 16px;
    bottom: 18px;
  }

  .section,
  .join-panel {
    width: calc(100% - 32px);
    padding: 84px 0;
  }

  .intro-grid {
    gap: 26px;
  }

  .feature-grid {
    margin-top: 54px;
  }

  .address-box {
    align-items: stretch;
    flex-direction: column;
  }

  .address-box button {
    width: 100%;
  }

  .cta {
    padding-block: 70px;
  }
}


/* Minecraft-inspired visual layer */
:root {
  --pixel-font: "Pixelify Sans", "Inter", sans-serif;
  --stone-1: #f7f7f5;
  --stone-2: #e8e8e4;
  --stone-3: #d2d2cc;
  --stone-4: #9c9c95;
}

body {
  background-color: var(--stone-1);
  background-image:
    linear-gradient(rgba(20,20,20,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,20,20,.025) 1px, transparent 1px);
  background-size: 32px 32px;
}

.brand,
h1,
h2,
h3,
.button,
.copy-small,
.address-box button,
.server-address strong {
  font-family: var(--pixel-font);
}

.brand {
  text-transform: uppercase;
  letter-spacing: .04em;
}

.brand-mark {
  position: relative;
  overflow: hidden;
  border: 2px solid currentColor;
  box-shadow: 3px 3px 0 currentColor;
}

.brand-mark::before,
.brand-mark::after,
.brand-mark span::before,
.brand-mark span::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background: currentColor;
}

.brand-mark::before { left: 5px; top: 5px; }
.brand-mark::after { right: 5px; top: 5px; }
.brand-mark span::before { left: 9px; bottom: 5px; }
.brand-mark span::after { right: 9px; bottom: 5px; }

.site-header.scrolled {
  box-shadow: 0 4px 0 rgba(0,0,0,.12);
}

.copy-small,
.button,
.address-box button {
  border-radius: 0;
  box-shadow: 4px 4px 0 rgba(0,0,0,.35);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.copy-small:active,
.button:active,
.address-box button:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 rgba(0,0,0,.35);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  height: 18px;
  background: repeating-linear-gradient(90deg, #efefec 0 32px, #d7d7d1 32px 64px);
  clip-path: polygon(0 50%, 3% 50%, 3% 0, 6% 0, 6% 50%, 9% 50%, 9% 0, 12% 0, 12% 50%, 100% 50%, 100% 100%, 0 100%);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8,8,8,.8), rgba(8,8,8,.18)),
    linear-gradient(0deg, rgba(0,0,0,.55), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 5px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--pixel-font);
  letter-spacing: .12em;
}

.pixel-dot {
  width: 10px;
  height: 10px;
  background: #fff;
  box-shadow: 4px 4px 0 rgba(255,255,255,.25);
}

h1 {
  text-transform: uppercase;
  letter-spacing: -.045em;
  text-shadow: 0 5px 0 rgba(0,0,0,.38);
}

h1 .welcome-line {
  color: #fff;
  font-size: .56em;
  letter-spacing: .02em;
}

h1 span:last-child {
  color: #e8e8e4;
  -webkit-text-stroke: 1px rgba(0,0,0,.25);
}

.hero-copy {
  max-width: 560px;
  padding-left: 16px;
  border-left: 4px solid rgba(255,255,255,.7);
}

.server-address {
  border: 2px solid rgba(255,255,255,.48);
  box-shadow: 6px 6px 0 rgba(0,0,0,.34);
  background:
    linear-gradient(rgba(255,255,255,.12), rgba(255,255,255,.08)),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(255,255,255,.04) 31px 32px);
}

.status-dot {
  border-radius: 0;
  animation: pixelPulse 1.7s steps(2, end) infinite;
}

@keyframes pixelPulse {
  50% { opacity: .45; }
}

.slide-indicators button {
  height: 8px;
  border: 1px solid rgba(255,255,255,.5);
}

.section {
  padding-top: 96px;
  padding-bottom: 96px;
}

h2 {
  text-transform: uppercase;
  letter-spacing: -.035em;
}

.intro {
  position: relative;
}

.intro::before {
  content: "";
  position: absolute;
  right: 0;
  top: 54px;
  width: 96px;
  height: 96px;
  opacity: .08;
  background:
    linear-gradient(90deg, #000 50%, transparent 50%),
    linear-gradient(#000 50%, transparent 50%);
  background-size: 32px 32px;
}

.feature-grid {
  gap: 14px;
  background: transparent;
  border: 0;
}

.feature-card {
  position: relative;
  border: 2px solid #c8c8c2;
  box-shadow: 8px 8px 0 #d6d6d0;
  background:
    linear-gradient(rgba(255,255,255,.86), rgba(245,245,242,.86)),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(0,0,0,.04) 31px 32px);
  transition: transform .18s, box-shadow .18s;
}

.feature-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 11px 11px 0 #cecec8;
}

.block-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  color: #222 !important;
  background: #ecece8;
  border: 2px solid #bcbcb6;
  box-shadow: inset -5px -5px 0 #d1d1cc, 4px 4px 0 #bdbdb8;
  font-family: var(--pixel-font);
  font-size: 1.35rem !important;
}

.feature-card h3 {
  margin-top: 42px;
  text-transform: uppercase;
}

.join-section {
  border-top: 8px solid #c7c7c1;
  background-color: #deded9;
  background-image:
    linear-gradient(45deg, rgba(255,255,255,.14) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255,255,255,.14) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(0,0,0,.025) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(0,0,0,.025) 75%);
  background-size: 32px 32px;
  background-position: 0 0, 0 16px, 16px -16px, -16px 0;
}

.address-box {
  border: 2px solid #b9b9b3;
  box-shadow: inset 0 0 0 4px #efefec, 7px 7px 0 #bdbdb7;
}

.port-note {
  margin-top: 3px;
  letter-spacing: .08em !important;
}

.steps {
  border-top: 0;
  display: grid;
  gap: 12px;
}

.steps li {
  padding: 22px;
  border: 2px solid #bdbdb7;
  background: rgba(255,255,255,.48);
  box-shadow: 5px 5px 0 rgba(0,0,0,.09);
}

.steps li > span {
  border: 2px solid #000;
  box-shadow: 3px 3px 0 #777;
  font-family: var(--pixel-font);
}

.cta {
  position: relative;
  overflow: hidden;
  border-top: 8px solid #303030;
  background:
    linear-gradient(rgba(15,15,15,.94), rgba(15,15,15,.94)),
    repeating-linear-gradient(90deg, #fff 0 1px, transparent 1px 32px),
    repeating-linear-gradient(#fff 0 1px, transparent 1px 32px);
}

.cta::after {
  content: "";
  position: absolute;
  right: 5%;
  bottom: -40px;
  width: 180px;
  height: 180px;
  border: 18px solid rgba(255,255,255,.04);
  transform: rotate(45deg);
}

footer {
  border-top: 4px solid #2b2b2b;
}

@media (max-width: 560px) {
  h1 { text-shadow: 0 3px 0 rgba(0,0,0,.38); }
  .feature-grid { gap: 18px; }
  .steps li { padding: 18px; }
}

/* Announcement board */
.announcements-section {
  position: relative;
}

.announcements-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 48px;
}

.owner-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 2px solid #bdbdb7;
  background: #fff;
  box-shadow: 4px 4px 0 #d2d2cc;
  font-size: .82rem;
}

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

.announcement-card {
  position: relative;
  min-height: 190px;
  padding: 26px;
  border: 2px solid #bdbdb7;
  background:
    linear-gradient(rgba(255,255,255,.92), rgba(246,246,243,.92)),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(0,0,0,.035) 31px 32px);
  box-shadow: 7px 7px 0 #d0d0ca;
}

.announcement-card::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 22px;
  width: 54px;
  height: 12px;
  border: 2px solid #aaa;
  background: #deded9;
}

.announcement-card h3 {
  margin: 10px 0 12px;
  font-family: var(--pixel-font);
  font-size: 1.35rem;
  letter-spacing: -.02em;
}

.announcement-card p {
  margin: 0;
  color: #5f5f5b;
  white-space: pre-wrap;
}

.announcement-meta {
  color: #777772;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.announcement-loading {
  grid-column: 1 / -1;
  min-height: 100px;
}

@media (max-width: 760px) {
  .announcements-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .announcement-grid {
    grid-template-columns: 1fr;
  }
}

/* Network pages and live status */
.network-strip { padding-top: 70px; padding-bottom: 30px; }
.status-panel, .community-card {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr) auto;
  gap: 34px;
  align-items: center;
  padding: 34px;
  background: #f7f7f5;
  border: 3px solid #1a1a1a;
  box-shadow: 8px 8px 0 #bdbdb7;
}
.status-panel h2, .community-card h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
.status-panel p, .community-card p { margin-bottom: 0; color: #656560; }
.status-stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 2px solid #222; }
.status-stats > div { padding: 16px; border-right: 2px solid #222; background: #fff; }
.status-stats > div:last-child { border-right: 0; }
.status-stats small { display: block; font-size: .62rem; letter-spacing: .12em; color: #777; }
.status-stats strong { display: block; margin-top: 4px; font-family: "Pixelify Sans", monospace; font-size: 1.05rem; }
.minecraft-button { color: #fff; background: #353535; border: 2px solid #111; box-shadow: inset 0 -4px 0 rgba(0,0,0,.28), 4px 4px 0 #aaa; }
.minecraft-button:hover { background: #4a4a4a; }
.status-dot.offline { background: #777; }
.status-dot.online { background: #65c759; box-shadow: 0 0 0 5px rgba(101,199,89,.18); }
.community-section { padding-top: 40px; }
.community-card { grid-template-columns: 1fr auto; }
.disabled-link { pointer-events: none; opacity: .55; }

.page-hero { min-height: 360px; padding: 150px max(24px, calc((100vw - var(--max-width)) / 2)) 70px; color: #fff; background: linear-gradient(rgba(0,0,0,.62), rgba(0,0,0,.72)), url('/assets/img/hero-06.jpg') center/cover; }
.page-hero h1 { font-size: clamp(3rem, 8vw, 6rem); }
.page-main { width: min(var(--max-width), calc(100% - 48px)); margin: 0 auto; padding: 80px 0 120px; }
.server-list { display: grid; gap: 22px; }
.server-card { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 28px; background: #f8f8f6; border: 3px solid #1b1b1b; box-shadow: 7px 7px 0 #bdbdb8; }
.server-card h2 { font-size: 2rem; }
.server-card p { color: #666; }
.server-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.pixel-tag { padding: 7px 10px; background: #e2e2de; border: 2px solid #222; font-family: "Pixelify Sans", monospace; font-size: .88rem; }
.server-card-side { min-width: 210px; text-align: right; }
.server-card-side strong { display: block; font-family: "Pixelify Sans", monospace; font-size: 1.2rem; }
.server-card-side button { margin-top: 14px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.gallery-item { margin: 0; background: #fff; border: 3px solid #1a1a1a; box-shadow: 6px 6px 0 #bdbdb8; overflow: hidden; }
.gallery-item img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.gallery-item figcaption { padding: 16px; color: #555; }
.changelog-list { display: grid; gap: 20px; }
.changelog-entry { padding: 28px; background: #fff; border-left: 8px solid #333; box-shadow: 5px 5px 0 #ccc; }
.changelog-entry h2 { font-size: 1.8rem; }
.changelog-entry p { white-space: pre-wrap; }
.rules-list { counter-reset: rules; display: grid; gap: 15px; padding: 0; list-style: none; }
.rules-list li { counter-increment: rules; padding: 22px 22px 22px 74px; position: relative; background:#fff; border:2px solid #222; }
.rules-list li::before { content: counter(rules); position:absolute; left:20px; top:18px; width:36px; height:36px; display:grid; place-items:center; background:#222; color:#fff; font-family:"Pixelify Sans",monospace; }
.empty-state { padding: 34px; border: 3px dashed #999; color: #666; text-align: center; }
@media (max-width: 900px) {
  .status-panel { grid-template-columns: 1fr; }
  .community-card { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .server-card { grid-template-columns: 1fr; }
  .server-card-side { text-align: left; }
}
@media (max-width: 560px) {
  .status-stats { grid-template-columns: 1fr; }
  .status-stats > div { border-right: 0; border-bottom: 2px solid #222; }
  .status-stats > div:last-child { border-bottom: 0; }
  .gallery-grid { grid-template-columns: 1fr; }
  .page-main { width: calc(100% - 32px); }
}


/* More Servers v2 — isolated card layout */
.page-hero {
  position: relative;
  display: flex;
  min-height: 390px;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero h1 { margin: 0 0 18px; line-height: .9; }
.page-hero p:last-child { margin: 0; font-size: 1.05rem; }

.server-list {
  display: grid !important;
  width: 100%;
  gap: 30px !important;
}
.server-card {
  display: flex !important;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  align-items: stretch !important;
  gap: 24px !important;
  padding: clamp(22px, 4vw, 36px) !important;
  overflow: hidden;
  background: rgba(248,248,246,.98) !important;
  border: 3px solid #1b1b1b !important;
  box-shadow: 8px 8px 0 #bdbdb8 !important;
}
.server-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.server-identity { min-width: 0; }
.server-card .server-identity h2 {
  margin: 4px 0 12px;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: .95;
}
.server-description {
  max-width: 720px;
  margin: 0 !important;
  color: #5f5f5a !important;
  font-size: 1rem;
}
.server-status-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 2px solid #222;
  background: #e5e5e1;
  font-family: "Pixelify Sans", monospace;
  text-transform: uppercase;
}
.server-status-light {
  width: 12px;
  height: 12px;
  background: #777;
  box-shadow: 3px 3px 0 rgba(0,0,0,.2);
}
.server-status-badge.online .server-status-light { background: #62bf55; }
.server-status-badge.offline .server-status-light { background: #8b8b86; }
.server-details-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) repeat(3, minmax(130px, .75fr));
  border: 2px solid #222;
  background: #222;
  gap: 2px;
}
.server-detail {
  min-width: 0;
  padding: 16px 18px;
  background: #fff;
}
.server-detail small {
  display: block;
  margin-bottom: 5px;
  color: #777;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.server-detail strong {
  display: block;
  overflow-wrap: anywhere;
  font-family: "Pixelify Sans", monospace;
  font-size: 1.05rem;
}
.server-card-actions {
  display: flex;
  justify-content: flex-end;
}
.server-card-actions .button { min-width: 190px; }

@media (max-width: 820px) {
  .server-card-header { flex-direction: column; }
  .server-details-grid { grid-template-columns: 1fr 1fr; }
  .server-card-actions { justify-content: stretch; }
  .server-card-actions .button { width: 100%; }
}
@media (max-width: 520px) {
  .page-hero { min-height: 330px; padding-top: 120px; }
  .server-details-grid { grid-template-columns: 1fr; }
}


/* Edition labels — original CSS pixel art, no external game assets */
.server-title-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 4px 0 12px;
}
.server-card .server-title-line h2 { margin: 0; }
.edition-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 5px 9px 5px 6px;
  color: #252525;
  background: #e9e9e5;
  border: 2px solid #252525;
  box-shadow: 3px 3px 0 #bcbcb6;
  font-family: "Pixelify Sans", monospace;
  font-size: .9rem;
  line-height: 1;
  white-space: nowrap;
}
.edition-badge.compact {
  margin: 0 .28em;
  padding: 4px 7px 4px 5px;
  font-size: .48em;
  vertical-align: middle;
  text-shadow: none;
}
.edition-icon {
  position: relative;
  display: inline-block;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  image-rendering: pixelated;
  border: 2px solid #202020;
  box-shadow: inset -3px -3px 0 rgba(0,0,0,.18);
}
/* Bedrock: a tiny grass/earth block */
.edition-icon.bedrock {
  background:
    linear-gradient(90deg, transparent 0 25%, rgba(255,255,255,.15) 25% 50%, transparent 50% 75%, rgba(0,0,0,.11) 75%) 0 0 / 8px 8px,
    linear-gradient(#6cae47 0 36%, #795039 36% 100%);
}
.edition-icon.bedrock::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: 7px;
  height: 3px;
  background: linear-gradient(90deg, #4c8d35 0 25%, transparent 25% 50%, #8bc65f 50% 75%, transparent 75%);
}
/* Java: an original miniature crafting-grid block */
.edition-icon.java {
  background:
    linear-gradient(90deg, transparent 0 31%, #3e281d 31% 36%, transparent 36% 64%, #3e281d 64% 69%, transparent 69%),
    linear-gradient(transparent 0 31%, #3e281d 31% 36%, transparent 36% 64%, #3e281d 64% 69%, transparent 69%),
    linear-gradient(135deg, #a86f3d, #704628);
}
.edition-icon.java::before,
.edition-icon.java::after {
  content: "";
  position: absolute;
  background: rgba(236,190,113,.5);
}
.edition-icon.java::before { left: 2px; right: 2px; top: 3px; height: 2px; }
.edition-icon.java::after { top: 2px; bottom: 2px; left: 3px; width: 2px; }
.status-panel h2 .edition-badge { transform: translateY(-.08em); }
@media (max-width: 520px) {
  .server-title-line { align-items: flex-start; flex-direction: column; gap: 8px; }
  .edition-badge.compact { display: inline-flex; margin-top: .35em; }
}

/* 2026 mobile menu, lightbox, rich content, and server editions */
.menu-toggle{display:none;width:44px;height:42px;padding:9px;border:1px solid rgba(255,255,255,.35);background:rgba(0,0,0,.25);cursor:pointer;z-index:12}.menu-toggle span{display:block;height:2px;margin:5px 0;background:currentColor;transition:.2s}.site-header.scrolled .menu-toggle{color:#111;border-color:#aaa;background:#fff}.menu-toggle.open span:nth-child(1){transform:translateY(7px) rotate(45deg)}.menu-toggle.open span:nth-child(2){opacity:0}.menu-toggle.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
.hero-image-caption{position:absolute;right:22px;bottom:22px;max-width:min(520px,70vw);padding:8px 11px;color:#fff;background:rgba(0,0,0,.58);font-size:.78rem;opacity:0;transform:translateY(5px);transition:.2s}.hero:hover .hero-slide.active .hero-image-caption{opacity:1;transform:none}
.gallery-item.clickable{cursor:zoom-in}.image-lightbox{position:fixed;inset:0;z-index:9999;display:none;align-items:center;justify-content:center;padding:40px;background:rgba(0,0,0,.84);backdrop-filter:blur(5px)}.image-lightbox.open{display:flex}.lightbox-dialog{max-width:min(1100px,94vw);max-height:90vh;display:flex;flex-direction:column;align-items:center}.lightbox-dialog img{display:block;max-width:100%;max-height:82vh;object-fit:contain;box-shadow:0 20px 70px #000}.lightbox-dialog p{margin:12px 0 0;color:#fff;text-align:center}.lightbox-close{position:fixed;right:22px;top:18px;width:44px;height:44px;border:0;border-radius:50%;color:#fff;background:rgba(255,255,255,.14);font-size:2rem;cursor:pointer}
.rich-text p{white-space:pre-wrap}.rich-text h2,.rich-text h3,.rich-text h4{margin:1em 0 .45em;letter-spacing:-.03em}.rich-text ul,.rich-text ol{padding-left:1.5rem}.rules-content{max-width:850px;font-size:1.04rem;line-height:1.75}.edition-badge.java-bedrock{background:#e6dbff;border-color:#7353a8}.server-details-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}
@media(max-width:850px){.menu-toggle{display:block;color:#fff}.site-header nav{position:absolute;top:100%;left:14px;right:14px;display:none!important;flex-direction:column;align-items:stretch;padding:14px;background:#111;border:1px solid #444;box-shadow:0 16px 30px rgba(0,0,0,.28)}.site-header nav.open{display:flex!important}.site-header nav a,.site-header nav button{display:block!important;width:100%;padding:13px;text-align:left}.site-header.scrolled nav{background:#fff;border-color:#ccc}.site-header.scrolled nav a{color:#111}.hero-image-caption{opacity:1;bottom:86px}.image-lightbox{padding:18px}.server-card-header{align-items:flex-start;flex-direction:column}.server-status-badge{align-self:flex-start}}

/* Definitive desktop server stats layout fix */
.server-card > .server-details-grid {
  display: grid !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: none !important;
  align-self: stretch !important;
  justify-self: stretch !important;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)) !important;
  grid-auto-flow: row !important;
  margin: 0 !important;
}

@media (max-width: 820px) {
  .server-card > .server-details-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    min-width: 0 !important;
  }
}

@media (max-width: 520px) {
  .server-card > .server-details-grid {
    grid-template-columns: 1fr !important;
  }
}

/* 2026-07-22: deliberate phone layout — do not squeeze the desktop hero */
@media (max-width: 600px) {
  html { scroll-padding-top: 70px; }
  body { overflow-x: hidden; }
  .site-header { height: calc(64px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 16px 0; background: rgba(255,255,255,.96); color: #171717; box-shadow: 0 1px 0 rgba(0,0,0,.1); backdrop-filter: blur(12px); }
  .brand { gap: 10px; min-width: 0; }
  .brand-mark { width: 38px; height: 38px; flex: 0 0 38px; }
  .brand > span:last-child { overflow: hidden; font-size: .78rem; letter-spacing: .08em; text-overflow: ellipsis; white-space: nowrap; }
  .menu-toggle { display: block; width: 46px; height: 46px; flex: 0 0 46px; color: #111; background: #fff; border: 1px solid #aaa; }
  .site-header nav { top: calc(64px + env(safe-area-inset-top)); left: 10px; right: 10px; max-height: calc(100dvh - 82px - env(safe-area-inset-top)); overflow-y: auto; padding: 10px; color: #fff; background: rgba(16,16,16,.98); }
  .site-header nav a, .site-header nav button { min-height: 46px; padding: 12px 14px !important; }
  .hero { display: block; min-height: 0; padding: calc(64px + env(safe-area-inset-top)) 0 0; }
  .hero-overlay { background: linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.64) 42%, rgba(0,0,0,.88) 100%), linear-gradient(90deg, rgba(0,0,0,.42), rgba(0,0,0,.08)); }
  .hero-content { display: flex; width: 100%; min-height: calc(100svh - 64px - env(safe-area-inset-top)); padding: clamp(78px, 16vh, 126px) 16px 154px; flex-direction: column; justify-content: center; }
  .hero .eyebrow { margin-bottom: 10px; font-size: .62rem; }
  .hero h1 { max-width: 100%; font-size: clamp(3.15rem, 15vw, 4.55rem); line-height: .84; letter-spacing: -.065em; overflow-wrap: normal; }
  .hero h1 br { display: none; }
  .hero h1 .welcome-line { display: block; margin-bottom: .14em; }
  .hero-copy { max-width: 34rem; margin-top: 22px; padding-left: 14px; border-left: 4px solid rgba(255,255,255,.82); font-size: .98rem; line-height: 1.5; }
  .hero-actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 24px; }
  .hero-actions .button { width: 100%; min-height: 52px; padding: 0 18px; }
  .server-address { display: grid; width: 100%; min-width: 0; grid-template-columns: auto minmax(0,1fr); gap: 12px; margin-top: 20px; padding: 13px 14px; }
  .server-address > span:nth-child(2) { min-width: 0; }
  .server-address strong { display: block; overflow: hidden; font-size: .86rem; text-overflow: ellipsis; white-space: nowrap; }
  .server-address .copy-label { display: none; }
  .server-address .port-note { margin-top: 2px; }
  .slide-controls { right: 16px; bottom: 18px; left: 16px; width: auto; justify-content: space-between; gap: 8px; padding: 7px; }
  .slide-controls button { width: 42px; height: 42px; }
  .slide-controls span { min-width: 74px; }
  .hero-image-caption { right: 16px; bottom: 76px; left: 16px; max-width: none; overflow: hidden; opacity: 1; text-overflow: ellipsis; white-space: nowrap; }
  .section { width: min(100% - 32px, var(--max-width)); padding: 72px 0; }
  .network-strip { padding-top: 64px; }
  .status-panel, .community-card, .join-panel { padding: 24px 20px; box-shadow: 5px 5px 0 #bdbdb8; }
  .status-panel h2, .community-card h2 { font-size: clamp(2.15rem, 11vw, 3rem); overflow-wrap: anywhere; }
  .status-stats { grid-template-columns: 1fr 1fr; }
  .status-stats > div { border-right: 0; border-bottom: 2px solid #222; }
  .status-stats > div:nth-child(odd) { border-right: 2px solid #222; }
  .status-stats > div:last-child { grid-column: 1 / -1; border-right: 0; border-bottom: 0; }
  .intro-grid, .feature-grid, .announcement-grid, .join-panel { grid-template-columns: 1fr; }
  .intro-grid { gap: 22px; margin-top: 34px; }
  .feature-grid { margin-top: 48px; }
  .feature-card { min-height: 0; padding: 26px 22px; }
  .feature-card h3 { margin-top: 28px; }
  .server-card { padding: 20px !important; box-shadow: 5px 5px 0 #bdbdb8 !important; }
  .server-card .server-identity h2 { font-size: clamp(2rem, 11vw, 2.8rem); }
  .server-card > .server-details-grid { grid-template-columns: 1fr !important; }
  .server-detail { padding: 14px 15px; }
  .image-lightbox { padding: 12px; }
  .lightbox-dialog { width: 100%; max-width: 100%; }
  .lightbox-dialog img { max-height: 72dvh; }
  .lightbox-close { top: max(10px, env(safe-area-inset-top)); right: 10px; }
}
@media (max-width: 370px) {
  .hero-content { padding-inline: 12px; }
  .hero h1 { font-size: 2.9rem; }
  .brand > span:last-child { font-size: .7rem; }
  .section { width: calc(100% - 24px); }
}


/* 2026-07-29: optional Java ports and Discord-style gallery zoom */
.optional-label{font-weight:500;color:#777;font-size:.86em}
.lightbox-toolbar{position:fixed;z-index:10001;left:50%;bottom:22px;display:flex;gap:6px;transform:translateX(-50%);padding:6px;border:1px solid rgba(255,255,255,.16);border-radius:10px;background:rgba(20,20,22,.88);box-shadow:0 10px 35px rgba(0,0,0,.4);backdrop-filter:blur(10px)}
.lightbox-toolbar button{min-width:42px;height:38px;padding:0 12px;border:0;border-radius:7px;background:transparent;color:#fff;font:700 1rem Inter,sans-serif;cursor:pointer}
.lightbox-toolbar button:hover,.lightbox-toolbar button:focus-visible{background:rgba(255,255,255,.14);outline:none}
.lightbox-image-stage{width:min(1100px,94vw);height:min(78vh,820px);display:flex;align-items:center;justify-content:center;overflow:hidden;touch-action:none;cursor:zoom-in}
.lightbox-image-stage.zoomed{cursor:grab}.lightbox-image-stage.dragging{cursor:grabbing}
.lightbox-image-stage img{max-width:100%;max-height:100%;object-fit:contain;transform-origin:center center;transition:transform .12s ease;user-select:none;-webkit-user-drag:none}
.lightbox-image-stage.dragging img{transition:none}
@media(max-width:850px){.lightbox-toolbar{bottom:max(12px,env(safe-area-inset-bottom))}.lightbox-image-stage{width:100%;height:70dvh}.lightbox-dialog p{max-width:90vw}}


/* 2026-08 crossplay selectors */
.edition-switch,.server-edition-switch{display:inline-flex;gap:0;margin:22px 0 14px;border:2px solid #222;background:#fff;box-shadow:4px 4px 0 #bdbdb8}.edition-switch button,.server-edition-switch button{min-height:42px;padding:0 18px;border:0;border-right:2px solid #222;background:#f4f4f1;color:#222;font-weight:800;cursor:pointer}.edition-switch button:last-child,.server-edition-switch button:last-child{border-right:0}.edition-switch button.active,.server-edition-switch button.active{background:#171717;color:#fff}.server-edition-switch{margin:0 0 18px}.version-range-block{margin-top:20px;padding:16px;border:2px dashed #b8b8b2;background:#fafaf8}.version-range-block h3{margin:0 0 4px;font-family:var(--pixel-font);font-size:1rem}
@media(max-width:560px){.edition-switch,.server-edition-switch{display:flex;width:100%}.edition-switch button,.server-edition-switch button{flex:1;padding:0 10px}}

/* 2026-08 synchronized homepage crossplay controls */
.home-edition-switch{display:inline-flex;border:2px solid rgba(255,255,255,.72);background:rgba(12,12,12,.55);box-shadow:4px 4px 0 rgba(0,0,0,.28);backdrop-filter:blur(8px)}
.home-edition-switch button{min-height:38px;padding:0 16px;border:0;border-right:2px solid currentColor;background:transparent;color:inherit;font-family:var(--pixel-font);font-weight:700;cursor:pointer}.home-edition-switch button:last-child{border-right:0}.home-edition-switch button.active{background:#fff;color:#171717}.hero-edition-switch{margin-top:12px;color:#fff}.status-edition-switch{margin-top:18px;border-color:#222;background:#f4f4f1;color:#222;box-shadow:4px 4px 0 #bdbdb8}.status-edition-switch button.active{background:#171717;color:#fff}.status-dot.offline{background:#9b9b96;box-shadow:0 0 0 5px rgba(155,155,150,.18)}
@media(max-width:560px){.home-edition-switch{display:flex;width:100%}.home-edition-switch button{flex:1}}

/* Crossplay profile visibility and hero placement fixes */
.hidden { display: none !important; }
.hero-edition-switch { margin: 48px 0 12px; }
.hero-edition-switch + .server-address { margin-top: 0; }
@media (max-width: 560px) {
  .hero-edition-switch { margin-top: 34px; }
}

/* 2026-08-02: restore spacing between hero actions and server controls */
.hero-actions + .hero-edition-switch:not(.hidden) {
  margin-top: 38px;
}

.hero-actions + .hero-edition-switch.hidden + .server-address {
  margin-top: 42px;
}

@media (max-width: 560px) {
  .hero-actions + .hero-edition-switch:not(.hidden) {
    margin-top: 28px;
  }

  .hero-actions + .hero-edition-switch.hidden + .server-address {
    margin-top: 28px;
  }
}


/* 2026-08-05: lock the hero edition selector above the address card. */
.hero-server-controls {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;

  width: 100%;
  max-width: 540px;

  margin-top: 38px;
}
.hero-server-controls > .hero-edition-switch {
  display: flex;
  width: 100%;
  margin: 0;
}

.hero-server-controls > .hero-edition-switch button {
  flex: 1;
}

.hero-server-controls > .server-address {
  display: flex;
  width: 100%;
  margin-top: 0;
  box-sizing: border-box;
}
@media (max-width: 560px) {
  .hero-server-controls {
    display: flex;
    width: 100%;
    margin-top: 28px;
  }
  .hero-server-controls > .hero-edition-switch,
  .hero-server-controls > .server-address {
    width: 100%;
  }
}
