:root {
  color-scheme: light;
  --paper: #f3f5ed;
  --paper-strong: #ffffff;
  --ink: #17201d;
  --ink-soft: #52605a;
  --line: #cdd3ca;
  --forest: #376247;
  --forest-dark: #203b30;
  --sky: #78bdd5;
  --gold: #efc968;
  --rust: #b75049;
  --online: #8ddd74;
  --offline: #e8b05a;
  --page: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

body.menu-open {
  overflow: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.page-width {
  width: min(calc(100% - 64px), var(--page));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  color: #fff;
  transition: background-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(23, 32, 29, 0.96);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12);
}

.nav-shell {
  width: min(calc(100% - 48px), 1320px);
  height: 76px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: max-content;
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
}

.brand img {
  width: 34px;
  height: 34px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 14px;
  font-weight: 700;
}

.desktop-nav a,
.mobile-nav a {
  position: relative;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 2px;
  background: var(--gold);
  transition: right 160ms ease;
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  right: 0;
}

.nav-live {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(19, 30, 25, 0.28);
  backdrop-filter: blur(8px);
}

.status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: var(--offline);
  box-shadow: 0 0 0 4px rgba(232, 176, 90, 0.16);
}

[data-state="online"] .status-dot,
.nav-live[data-state="online"] .status-dot {
  background: var(--online);
  box-shadow: 0 0 0 4px rgba(141, 221, 116, 0.16);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-button img {
  filter: invert(1);
}

.mobile-nav {
  padding: 12px 24px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  font-size: 18px;
  font-weight: 750;
}

.hero {
  position: relative;
  height: min(82svh, 780px);
  min-height: 640px;
  overflow: hidden;
  color: #fff;
  background: var(--forest-dark);
}

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

.hero-image {
  object-fit: cover;
  object-position: center 48%;
}

.hero-shade {
  background: rgba(12, 22, 18, 0.43);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  padding-top: 136px;
  padding-bottom: 98px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 850;
  text-transform: uppercase;
}

.eyebrow-dark {
  color: var(--rust);
}

.hero h1 {
  margin: 0;
  font-size: 78px;
  line-height: 0.98;
  font-weight: 900;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.32);
}

.hero-copy {
  max-width: 580px;
  margin: 24px 0 0;
  font-size: 20px;
  line-height: 1.65;
  font-weight: 560;
  text-wrap: balance;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.hero-live {
  min-height: 42px;
  margin-top: 27px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 15px;
}

.hero-live .status-dot {
  align-self: center;
}

.hero-live strong {
  min-width: 28px;
  font-size: 30px;
  line-height: 1;
}

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

.button {
  min-height: 48px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 800;
  transition: transform 150ms ease, background-color 150ms ease, color 150ms ease;
}

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

.button-primary {
  background: var(--gold);
  color: var(--ink);
}

.button-primary img {
  width: 20px;
  height: 20px;
}

.button-quiet {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(18, 30, 25, 0.28);
  color: #fff;
}

.hero-foot {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  gap: 22px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 750;
}

.hero-foot span + span::before {
  content: "/";
  margin-right: 22px;
  color: var(--gold);
}

.world-section {
  padding: 112px 0 96px;
  background: var(--paper);
}

.world-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 90px;
  align-items: start;
}

.section-heading h2,
.play-content h2,
.join-section h2 {
  margin: 0;
  font-size: 48px;
  line-height: 1.2;
  font-weight: 880;
  text-wrap: balance;
}

.world-copy > p {
  margin: 34px 0 42px;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.9;
}

.live-line {
  min-height: 84px;
  padding: 18px 0;
  border-block: 1px solid var(--line);
  display: grid;
  grid-template-columns: 32px auto 1fr;
  align-items: center;
  gap: 14px;
}

.live-line > img {
  width: 24px;
  height: 24px;
}

.live-line > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
}

.live-line strong {
  min-width: 22px;
  font-size: 26px;
  line-height: 1;
}

.live-line span {
  color: var(--ink-soft);
  font-size: 13px;
}

.live-line-note {
  justify-self: end;
}

.world-stats {
  margin-top: 86px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
}

.world-stats > div {
  min-height: 210px;
  padding: 24px 32px 0 0;
  border-right: 1px solid var(--line);
}

.world-stats > div:not(:first-child) {
  padding-left: 32px;
}

.world-stats > div:last-child {
  border-right: 0;
}

.world-stats span {
  display: block;
  color: var(--rust);
  font-size: 13px;
  font-weight: 850;
}

.world-stats strong {
  display: block;
  margin-top: 25px;
  font-size: 23px;
}

.world-stats p {
  max-width: 270px;
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.play-section {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(430px, 0.85fr);
  background: #dfe5dc;
}

.play-image-wrap {
  position: relative;
  min-height: 690px;
  overflow: hidden;
}

.play-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-image-wrap > span {
  position: absolute;
  left: 24px;
  bottom: 22px;
  padding: 7px 10px;
  border-radius: 3px;
  background: rgba(23, 32, 29, 0.88);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.play-content {
  padding: 96px max(48px, calc((100vw - var(--page)) / 2)) 76px 70px;
}

.play-list {
  margin-top: 56px;
  border-top: 1px solid #aeb9ae;
}

.play-list > div {
  padding: 23px 0;
  border-bottom: 1px solid #aeb9ae;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
}

.play-list span {
  font-weight: 850;
}

.play-list p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.join-section {
  padding: 112px 0;
  background: var(--ink);
  color: #fff;
}

.join-layout {
  display: grid;
  grid-template-columns: minmax(270px, 0.65fr) minmax(560px, 1.35fr);
  gap: 72px;
  align-items: start;
}

.join-section h2 {
  font-size: 56px;
}

.join-details {
  border-top: 1px solid rgba(255, 255, 255, 0.35);
}

.join-status {
  min-height: 92px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  grid-template-columns: 16px 1fr 44px;
  gap: 14px;
  align-items: center;
}

.join-status > div {
  display: flex;
  flex-direction: column;
}

.join-status strong {
  font-size: 24px;
  line-height: 1.2;
}

.join-status span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.icon-button {
  width: 44px;
  height: 44px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  transition: background-color 150ms ease;
}

.icon-button:hover,
.icon-button:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

.icon-button img {
  filter: invert(1);
}

.icon-button.is-loading img {
  animation: spin 800ms linear infinite;
}

.server-list-heading {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 750;
}

.server-list {
  min-height: 280px;
  display: grid;
  gap: 14px;
}

.servers-loading {
  margin: 0;
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.64);
}

.server-entry {
  min-height: 184px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 18px;
  background: #26302d;
}

.server-image {
  width: 160px;
  height: 160px;
  border-radius: 4px;
  object-fit: cover;
}

.server-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.server-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.server-heading > div {
  min-width: 0;
}

.server-identity {
  margin: 0 0 5px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  font-weight: 750;
}

.server-identity .status-dot {
  width: 7px;
  height: 7px;
  flex-basis: 7px;
}

.server-heading h3 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 19px;
  line-height: 1.35;
}

.server-population {
  flex: 0 0 auto;
  color: var(--gold);
  font-size: 20px;
  line-height: 1.25;
}

.server-summary {
  margin: 9px 0 0;
  overflow-wrap: anywhere;
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  line-height: 1.55;
}

.server-meta {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  line-height: 1.5;
}

.server-actions {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.copy-button,
.group-button {
  min-height: 36px;
  padding: 0 11px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 800;
}

.copy-button {
  border: 0;
  background: var(--gold);
  color: var(--ink);
  cursor: pointer;
}

.group-button {
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #fff;
}

.group-button img {
  filter: brightness(0) invert(1);
}

.site-footer {
  padding: 30px 0;
  background: #0f1513;
  color: rgba(255, 255, 255, 0.68);
}

.site-footer .page-width {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 28px;
}

.brand-dark {
  color: #fff;
}

.site-footer p {
  margin: 0;
  font-size: 12px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 900px) {
  .page-width {
    width: min(calc(100% - 40px), var(--page));
  }

  .nav-shell {
    width: calc(100% - 32px);
    height: 68px;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .hero {
    height: 84svh;
    min-height: 620px;
    max-height: 760px;
  }

  .hero-content {
    padding-top: 112px;
  }

  .hero h1 {
    font-size: 62px;
  }

  .hero-copy {
    max-width: 520px;
    font-size: 18px;
  }

  .world-section {
    padding: 84px 0 72px;
  }

  .world-layout,
  .join-layout {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .world-copy > p {
    margin-top: 0;
  }

  .play-section {
    grid-template-columns: 1fr;
  }

  .play-image-wrap {
    min-height: 480px;
  }

  .play-content {
    padding: 72px 40px;
  }

  .join-section {
    padding: 84px 0;
  }
}

@media (max-width: 620px) {
  .page-width {
    width: calc(100% - 32px);
  }

  .brand {
    font-size: 16px;
  }

  .nav-live {
    min-height: 36px;
    max-width: 104px;
    padding-inline: 9px;
    overflow: hidden;
    white-space: nowrap;
    font-size: 11px;
  }

  .hero {
    min-height: 600px;
  }

  .hero-image {
    object-position: 57% center;
  }

  .hero-content {
    padding-top: 96px;
    padding-bottom: 88px;
    justify-content: flex-end;
  }

  .hero h1 {
    max-width: 100%;
    font-size: 50px;
    overflow-wrap: anywhere;
  }

  .hero-copy {
    margin-top: 18px;
    font-size: 16px;
  }

  .hero-live {
    margin-top: 20px;
  }

  .hero-live strong {
    font-size: 25px;
  }

  .hero-actions {
    width: 100%;
    margin-top: 22px;
  }

  .button {
    flex: 1 1 150px;
  }

  .hero-foot {
    bottom: 18px;
    gap: 10px;
  }

  .hero-foot span + span::before {
    margin-right: 10px;
  }

  .section-heading h2,
  .play-content h2,
  .join-section h2 {
    font-size: 36px;
  }

  .world-section {
    padding-top: 68px;
  }

  .world-layout {
    gap: 28px;
  }

  .world-copy > p {
    font-size: 16px;
    line-height: 1.8;
  }

  .live-line {
    grid-template-columns: 28px auto;
  }

  .live-line-note {
    grid-column: 2;
    justify-self: start;
  }

  .world-stats {
    margin-top: 58px;
    grid-template-columns: 1fr;
  }

  .world-stats > div,
  .world-stats > div:not(:first-child) {
    min-height: 0;
    padding: 22px 0 26px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .world-stats strong {
    margin-top: 12px;
  }

  .play-image-wrap {
    min-height: 360px;
  }

  .play-content {
    padding: 64px 20px;
  }

  .play-list {
    margin-top: 38px;
  }

  .play-list > div {
    grid-template-columns: 58px 1fr;
    gap: 14px;
  }

  .join-layout {
    gap: 36px;
  }

  .join-section h2 {
    font-size: 42px;
  }

  .join-status {
    grid-template-columns: 16px minmax(0, 1fr) 44px;
  }

  .server-entry {
    min-height: 0;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    padding: 10px;
  }

  .server-image {
    width: 92px;
    height: 92px;
  }

  .server-heading {
    flex-direction: column;
    gap: 5px;
  }

  .server-heading h3 {
    font-size: 17px;
  }

  .server-population {
    font-size: 18px;
  }

  .server-actions {
    padding-top: 12px;
  }

  .copy-button,
  .group-button {
    flex: 1 1 140px;
  }

  .site-footer .page-width {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

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