:root {
  color-scheme: dark;
  --bg: #08100f;
  --bg-deep: #050806;
  --surface: rgba(15, 26, 24, 0.88);
  --surface-strong: #12211e;
  --line: rgba(205, 244, 226, 0.14);
  --text: #eef8ef;
  --muted: #a8b9b2;
  --emerald: #42d392;
  --emerald-deep: #159a6a;
  --amber: #f4b860;
  --sky: #72c7ff;
  --danger: #ff776f;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(8, 16, 15, 0.6), var(--bg) 38%),
    radial-gradient(circle at 20% 0%, rgba(66, 211, 146, 0.16), transparent 32%),
    var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

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

[hidden] {
  display: none !important;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.hero-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(238, 248, 239, 0.7);
  background:
    linear-gradient(135deg, transparent 48%, rgba(255, 255, 255, 0.18) 49% 52%, transparent 53%),
    linear-gradient(135deg, var(--emerald), #7ed957 48%, #785b38 49%);
  box-shadow: 0 0 0 4px rgba(66, 211, 146, 0.12);
}

.nav-links {
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 16, 15, 0.78);
}

.nav-links a {
  min-height: 36px;
  padding: 8px 13px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(66, 211, 146, 0.12);
  color: var(--text);
}

main {
  overflow: hidden;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 38px;
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100vh - 74px);
  margin: 0 auto;
  padding: 76px 0 48px;
  align-items: center;
}

.server-line {
  width: fit-content;
  margin: 0 0 18px;
  padding: 8px 12px;
  border: 1px solid rgba(114, 199, 255, 0.26);
  border-radius: 6px;
  color: var(--sky);
  background: rgba(114, 199, 255, 0.08);
  font-size: 14px;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(48px, 8vw, 104px);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-text {
  max-width: 580px;
  color: #cfe4da;
  font-size: 19px;
  line-height: 1.8;
}

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

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  gap: 9px;
  border-radius: 8px;
  padding: 12px 18px;
  border: 1px solid transparent;
  font-weight: 800;
}

.primary-button {
  color: #06100d;
  background: linear-gradient(135deg, var(--emerald), #b8f36d);
  box-shadow: 0 16px 42px rgba(66, 211, 146, 0.24);
}

.secondary-button {
  color: var(--text);
  border-color: var(--line);
  background: rgba(238, 248, 239, 0.06);
}

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

.button-icon {
  font-weight: 900;
}

.hero-visual {
  position: relative;
  min-height: 560px;
  border: 1px solid rgba(205, 244, 226, 0.18);
  border-radius: 8px;
  overflow: hidden;
  background: #07100c;
  box-shadow: var(--shadow);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 8, 6, 0.62), transparent 54%),
    linear-gradient(0deg, rgba(5, 8, 6, 0.58), transparent 46%);
  pointer-events: none;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.05) contrast(1.04);
}

.status-card,
.mini-stat {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(238, 248, 239, 0.2);
  border-radius: 8px;
  background: rgba(7, 16, 12, 0.82);
  backdrop-filter: blur(14px);
}

.live-card {
  left: 22px;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  font-weight: 800;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 8px rgba(66, 211, 146, 0.14);
}

.live-card.is-offline {
  border-color: rgba(255, 119, 111, 0.34);
}

.live-card.is-offline .pulse-dot {
  background: var(--danger);
  box-shadow: 0 0 0 8px rgba(255, 119, 111, 0.14);
}

.mini-stat {
  right: 22px;
  top: 22px;
  min-width: 132px;
  padding: 16px;
}

.mini-stat strong {
  display: block;
  color: var(--amber);
  font-size: 28px;
}

.mini-stat span,
.stat-label {
  color: var(--muted);
  font-size: 13px;
}

.status-band,
.players-section,
.feature-strip,
.chat-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.status-band,
.players-section,
.feature-strip {
  padding: 54px 0;
}

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

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 48px);
}

.section-heading p {
  max-width: 520px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 14px;
}

.stat-card,
.feature-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.stat-card {
  min-height: 132px;
  padding: 22px;
}

.stat-card strong {
  display: block;
  margin-top: 12px;
  font-size: clamp(26px, 3vw, 38px);
}

.wide-stat strong {
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.35;
}

.player-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 64px;
}

.player-chip {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(114, 199, 255, 0.22);
  border-radius: 8px;
  background: rgba(114, 199, 255, 0.08);
  color: #d8f0ff;
  font-weight: 800;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-bottom: 90px;
}

.feature-card {
  padding: 24px;
}

.feature-card h3 {
  margin-bottom: 10px;
  font-size: 25px;
}

.feature-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  color: #06100d;
  background: var(--amber);
  border-radius: 8px;
}

.chat-shell {
  min-height: calc(100vh - 74px);
  padding: 62px 0 82px;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.chat-header h1 {
  margin-bottom: 0;
  font-size: clamp(40px, 7vw, 78px);
}

.chat-note {
  width: fit-content;
  margin-bottom: 16px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(238, 248, 239, 0.05);
  font-size: 14px;
  font-weight: 800;
}

.message-feed {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(66, 211, 146, 0.06), transparent 38%),
    rgba(10, 19, 17, 0.76);
}

.message-card {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 16px 18px 16px 22px;
  border: 1px solid rgba(205, 244, 226, 0.12);
  border-radius: 8px;
  background: rgba(18, 33, 30, 0.76);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
}

.message-card::before {
  content: "";
  position: absolute;
  inset: 14px auto 14px 0;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--emerald), var(--sky));
}

.message-card:nth-child(3n + 2)::before {
  background: linear-gradient(180deg, var(--amber), var(--emerald));
}

.message-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.message-player {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 17px;
  font-weight: 900;
}

.message-time {
  flex: none;
  color: var(--amber);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.message-body {
  margin-bottom: 0;
  color: #dcebe4;
  font-size: 17px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.empty-state {
  width: 100%;
  margin: 0;
  padding: 22px;
  color: var(--muted);
  border: 1px dashed rgba(205, 244, 226, 0.2);
  border-radius: 8px;
  background: rgba(238, 248, 239, 0.04);
}

@media (max-width: 920px) {
  .site-header,
  .section-heading,
  .chat-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
  }

  .hero-section {
    grid-template-columns: 1fr;
    padding-top: 46px;
  }

  .hero-visual {
    min-height: 420px;
  }

  .hero-visual img {
    min-height: 420px;
  }

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

  .message-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 560px) {
  .site-header,
  .hero-section,
  .status-band,
  .players-section,
  .feature-strip,
  .chat-shell {
    width: min(100% - 22px, 1180px);
  }

  .hero-section {
    min-height: auto;
  }

  .hero-actions,
  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 340px;
  }

  .mini-stat {
    right: 12px;
    top: 12px;
  }

  .live-card {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
}
