:root {
  color-scheme: dark;
  --bg: #080d17;
  --paper: #fff4df;
  --muted: #bfc9db;
  --gold: #ffd18a;
  --line: #f6c77b44;
  font-family: "Noto Sans Thai", sans-serif;
  color: var(--paper);
  background: var(--bg);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
section[id] { scroll-margin-top: 28px; }
.wrap { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }

.top {
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  background: linear-gradient(#080d17e8, #080d1775);
  border-bottom: 1px solid #fff1cf24;
}
.nav, .footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav { min-height: 80px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 800 24px Cinzel, Georgia, serif;
  letter-spacing: .06em;
}
.brand img { object-fit: contain; }
.nav nav { display: flex; align-items: center; gap: 30px; font-size: .92rem; }
.navjoin { padding: 9px 16px; color: var(--gold); border: 1px solid var(--line); }
.nav a:hover { color: var(--gold); }

.hero {
  display: grid;
  align-items: center;
  min-height: clamp(640px, 86svh, 880px);
  background:
    linear-gradient(0deg, var(--bg), transparent 34%),
    linear-gradient(90deg, #080d17f0, #080d1790 32%, #080d1700 70%),
    url("hero.png") center 42% / cover no-repeat, #121f34;
}
.hero-inner { padding-block: 136px 110px; }
.edition {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 700 .78rem "Kantumruy Pro", sans-serif;
  letter-spacing: .19em;
  color: var(--gold);
  margin: 0 0 18px;
}
.edition span {
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 18px #ff9a39aa;
}
.hero h1 {
  font: 900 clamp(80px, 12vw, 170px)/.9 Cinzel, Georgia, serif;
  letter-spacing: -.075em;
  margin: 0 0 23px;
  width: fit-content;
  color: var(--gold);
  background: linear-gradient(#fff2c5 10%, #ffda92 48%, #e38c42 92%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 8px 24px #080d17b0);
}
.lead { font-size: clamp(28px, 3.6vw, 50px); line-height: 1.22; font-weight: 700; margin: 0 0 18px; }
.hero-description { color: var(--muted); max-width: 390px; line-height: 1.8; margin: 0 0 27px; }
.hero-actions, .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.gold-button, .outline {
  min-height: 49px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 10px 18px;
  border-radius: 5px;
  font-weight: 700;
  font-size: .92rem;
}
.gold-button {
  color: #221406;
  background: linear-gradient(135deg, #ffe5ac, #e8a654);
  border: 1px solid #ffdc9b;
  box-shadow: 0 6px 24px #ff9d3628;
}
.gold-button:hover { background: #ffe5ac; }
.outline { color: var(--paper); border: 1px solid var(--line); background: #0b101ba8; }
.outline:hover, .icon-button:hover { background: #ffd18a21; }

.server-strip { position: relative; margin-top: -48px; }
.status-panel {
  display: grid;
  grid-template-columns: 1fr .8fr 1.2fr auto;
  align-items: center;
  gap: 24px;
  padding: 21px 25px;
  border: 1px solid var(--line);
  border-top: 2px solid #e8ae64;
  border-radius: 8px;
  background: linear-gradient(110deg, #222837, #101927);
  box-shadow: 0 18px 50px #0007;
}
.status-panel > div + div { border-left: 1px solid #ffffff1c; padding-left: 24px; }
.label { display: block; color: var(--muted); font-size: .78rem; margin-bottom: 4px; }
.state { display: inline-flex; align-items: center; gap: 9px; }
.state i { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--gold); }
.state[data-state=online] i { background: #70e7a2; box-shadow: 0 0 14px #70e7a2a0; }
.state[data-state=offline] i { background: #fa8d83; }
#players { font-variant-numeric: tabular-nums; }
.icon-button {
  width: 44px;
  height: 44px;
  font-size: 1.35rem;
  color: var(--gold);
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #0b101b70;
}

.section { padding-top: clamp(58px, 8vw, 105px); }
.section h2 { font-size: clamp(28px, 4vw, 45px); line-height: 1.2; margin: 0 0 10px; }
.section p { color: var(--muted); line-height: 1.75; }
.section-head { text-align: center; }
.section-head p { margin: 0; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.features article {
  padding: 23px 20px;
  border: 1px solid #ffffff20;
  border-radius: 8px;
  background: radial-gradient(ellipse at 10% 0, #b76b3028, transparent 65%), #101827;
}
.features article:nth-child(even) {
  background: radial-gradient(ellipse at 10% 0, #476bb73d, transparent 65%), #101827;
}
.symbol {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  font-size: 1.45rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffd18a13;
  color: var(--gold);
}
.features h3 { margin: 16px 0 6px; font-size: 1.06rem; }
.features p { margin: 0; font-size: .88rem; }

.join { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 30px; padding-bottom: 70px; }
.join > div:first-child p { max-width: 390px; }
.join strong { color: var(--paper); }
.connect {
  background: linear-gradient(130deg, #302236, #141b2a 72%);
  border: 1px solid var(--line);
  padding: 24px;
  border-radius: 8px;
}
.connect-data { display: flex; flex-wrap: wrap; gap: 12px 32px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
code { color: var(--gold); font-size: .93rem; overflow-wrap: anywhere; }
#copy-feedback { font-size: .8rem; min-height: 1.4em; margin: 8px 0 0; }
.footer { border-top: 1px solid var(--line); padding-block: 20px; font-size: .8rem; color: var(--muted); }
.footer .brand { font-size: 1rem; color: var(--paper); }

@media (max-width: 940px) {
  .wrap { width: calc(100% - 48px); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .status-panel { gap: 14px; }
  .status-panel > div + div { padding-left: 14px; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .nav { min-height: 62px; }
  .nav nav { gap: 12px; font-size: .78rem; }
  .navjoin { padding: 6px 9px; }
  .brand { font-size: 18px; gap: 6px; }
  .brand img { width: 34px; height: 34px; }
  .hero {
    min-height: 650px;
    align-items: end;
    background:
      linear-gradient(0deg, #080d17 3%, #080d17ee 29%, #080d1760 58%, transparent 78%),
      url("hero.png") 65% top / auto 72% no-repeat, #080d17;
  }
  .hero-inner { padding-block: 240px 84px; }
  .hero h1 { font-size: clamp(64px, 16vw, 98px); margin-bottom: 16px; }
  .hero-description { max-width: 320px; font-size: .92rem; margin-bottom: 20px; }
  .hero-actions { gap: 8px; }
  .hero-actions a { padding-inline: 12px; }
  .server-strip { margin-top: -34px; }
  .status-panel { grid-template-columns: minmax(0, 1.2fr) .85fr auto; padding: 13px; gap: 9px; }
  .status-panel > div + div { padding-left: 9px; }
  .status-panel .status-address { display: none; }
  .state { font-size: .84rem; }
  .features { gap: 9px; }
  .features article { padding: 15px 12px; }
  .features h3 { font-size: .97rem; }
  .features p { font-size: .82rem; }
  .join { grid-template-columns: 1fr; gap: 14px; padding-bottom: 45px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
