@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;700;900&family=Noto+Sans+Thai:wght@400;500;700;900&family=Noto+Sans+KR:wght@400;500;700;900&display=swap");
:root {
  --bg: #10120f;
  --panel: #191c17;
  --line: #30352b;
  --muted: #939b88;
  --lime: #d4f970;
  --text: #f0f0e8;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans TC", sans-serif;
  font-size: 14px;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 5px;
}
button {
  cursor: pointer;
}
header {
  height: 94px;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -2px;
}
.brand span {
  color: var(--lime);
}
.brand small {
  font-size: 12px;
  letter-spacing: 1px;
  margin-left: 20px;
  font-weight: 500;
}
nav {
  display: flex;
  gap: 32px;
  color: #b5bcac;
  font-size: 13px;
}
nav .active {
  color: var(--lime);
}
.edition {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
}
main {
  max-width: 1500px;
  margin: auto;
  padding: 0 5%;
}
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 500px;
  padding: 52px 0 44px;
  gap: 35px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--lime);
  font-weight: 700;
  display: flex;
  gap: 9px;
  align-items: center;
}
i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
}
h1 {
  font-size: clamp(42px, 4.7vw, 70px);
  line-height: 1.24;
  letter-spacing: -3px;
  margin: 25px 0 19px;
  font-weight: 900;
}
h1 span {
  color: var(--lime);
}
.hero p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}
.primary {
  display: inline-flex;
  justify-content: space-between;
  gap: 50px;
  background: var(--lime);
  color: #171d0f;
  padding: 15px 23px;
  font-weight: 700;
  margin-top: 19px;
}
.hero-note {
  display: block;
  color: #717965;
  font-size: 9px;
  letter-spacing: 2px;
  margin-top: 23px;
}
.hero-art {
  min-height: 395px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(110deg, #344326aa, #15201b55),
    url("/assets/bg.jpeg") center/cover;
  border: 1px solid #4e5940;
  clip-path: polygon(7% 0, 100% 0, 100% 91%, 93% 100%, 0 100%, 0 9%);
}
.hero-art:after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    #0b170b40 4px
  );
  pointer-events: none;
}
.art-number {
  position: absolute;
  right: 16px;
  top: 0;
  font: italic 900 150px/1 sans-serif;
  color: #def6a622;
  -webkit-text-stroke: 1px #d4f97077;
}
.art-title {
  position: absolute;
  left: 36px;
  top: 35px;
  font-size: 100px;
  line-height: 0.98;
  font-weight: 900;
  transform: rotate(-9deg);
  color: #eff8cb;
  text-shadow: 5px 6px 0 #182311;
}
.art-bottom {
  position: absolute;
  bottom: 25px;
  left: 30px;
  font-size: 9px;
  letter-spacing: 3px;
  line-height: 2.2;
  color: #e6f1d0;
}
.art-bottom b {
  font-size: 11px;
}
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.35fr;
  border: 1px solid var(--line);
  margin-bottom: 65px;
}
.stats > div {
  padding: 23px 28px;
  border-right: 1px solid var(--line);
}
.stats > div:last-child {
  border: 0;
  background: #1b2116;
}
.stats span {
  display: block;
  color: #a3ac97;
  font-size: 11px;
}
.stats strong {
  display: inline-block;
  font: 500 35px/1.8 monospace;
  letter-spacing: -2px;
}
.stats small {
  color: #7b8570;
  font-size: 10px;
  margin-left: 14px;
}
.sync-stat b {
  display: block;
  font-size: 15px;
  margin: 15px 0;
}
.sync-stat a {
  font-size: 11px;
  color: var(--lime);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 26px;
}
h2 {
  font-size: 32px;
  letter-spacing: -1px;
  margin: 12px 0 0;
}
h2 span {
  color: var(--muted);
  font-weight: 400;
  margin-left: 8px;
}
.section-heading p {
  font-size: 12px;
  color: var(--muted);
}
.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}
.tabs {
  display: flex;
  gap: 6px;
}
.tabs button {
  background: transparent;
  color: #a7ad9e;
  border: 1px solid transparent;
  padding: 10px 15px;
  font-size: 12px;
}
.tabs button.selected {
  background: var(--lime);
  color: #15210e;
  font-weight: 700;
}
.search {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  padding: 0 10px;
  gap: 10px;
}
.search input {
  width: 170px;
  background: none;
  border: 0;
  color: var(--text);
  padding: 10px 0;
  font-size: 12px;
}
select {
  background: var(--bg);
  border: 0;
  color: var(--muted);
  font-size: 11px;
}
.list-note {
  display: flex;
  justify-content: space-between;
  color: #808b75;
  font-size: 10px;
  padding: 18px 0;
}
.server-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.server-card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 23px;
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.server-card:hover {
  border-color: #768455;
  transform: translateY(-3px);
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tag {
  display: inline-block;
  border: 1px solid #424e33;
  color: #c4d7a8;
  font-size: 10px;
  padding: 4px 8px;
}
.offline .tag {
  color: #96988f;
  border-color: #3c4036;
}
.card-number {
  color: #626c58;
  font: 11px monospace;
}
.server-card h3 {
  font-size: 23px;
  margin: 20px 0 6px;
  letter-spacing: -1px;
}
.date {
  font: 11px monospace;
  color: var(--muted);
}
.details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px 10px;
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 19px;
}
.details span {
  display: block;
  color: #7e8972;
  font-size: 10px;
  margin-bottom: 5px;
}
.details b {
  font-size: 12px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.card-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 20px;
  min-height: 40px;
}
.card-links a {
  color: var(--lime);
  font-size: 11px;
  padding: 4px 8px;
  border: 1px solid #414b32;
}
.empty {
  padding: 60px 20px;
  text-align: center;
  grid-column: 1/-1;
  color: var(--muted);
  border: 1px dashed var(--line);
}
.intel {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  background: #1b2116;
  border-top: 1px solid #505e3a;
  margin: 65px 0;
  padding: 35px 38px;
  gap: 30px;
}
.intel p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}
.intel a {
  color: var(--lime);
  font-size: 12px;
  display: inline-block;
  margin-top: 15px;
}
.intel-status {
  border-left: 1px solid #39452b;
  padding-left: 35px;
}
.intel-status small {
  color: #838d76;
  font-size: 11px;
}
footer {
  border-top: 1px solid var(--line);
  padding: 30px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
footer p,
footer > span {
  color: #7d8673;
  font-size: 10px;
  line-height: 1.9;
}
footer > span {
  text-align: right;
}
.admin {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}
.admin section {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 24px;
  margin: 20px 0;
}
.admin input,
.admin textarea,
.admin select {
  display: block;
  width: 100%;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  margin: 8px 0 16px;
}
.admin button {
  padding: 10px 15px;
  background: var(--lime);
  border: 0;
  margin-right: 10px;
}
.admin textarea {
  min-height: 140px;
}
.admin label {
  color: var(--muted);
}
.admin article {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
.admin article p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.admin a {
  color: var(--lime);
}
#notice {
  color: var(--lime);
  white-space: pre-wrap;
}
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
@media (min-width: 1500px) {
  header,
  footer {
    padding-left: max(5%, calc((100vw - 1350px) / 2));
    padding-right: max(5%, calc((100vw - 1350px) / 2));
  }
}
@media (max-width: 1000px) {
  .edition {
    display: none;
  }
  .brand small {
    display: none;
  }
  .stats > div {
    padding: 20px 15px;
  }
  .stats small {
    display: block;
    margin: 0;
  }
  .toolbar {
    flex-direction: column;
  }
  .search input {
    flex: 1;
  }
  .server-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .art-title {
    font-size: 85px;
  }
}
@media (max-width: 620px) {
  header {
    height: 75px;
  }
  nav {
    gap: 16px;
    font-size: 11px;
  }
  .brand {
    font-size: 22px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 35px;
    gap: 28px;
  }
  .hero-art {
    min-height: 240px;
  }
  .art-title {
    font-size: 85px;
    top: 20px;
    left: 30px;
  }
  .art-bottom {
    left: auto;
    right: 20px;
    bottom: 20px;
    font-size: 7px;
  }
  .hero-note {
    display: none;
  }
  h1 {
    font-size: 48px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    margin-bottom: 40px;
  }
  .stats > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .stats > div:nth-child(2) {
    border-right: 0;
  }
  .stats strong {
    font-size: 30px;
  }
  .server-grid {
    grid-template-columns: 1fr;
  }
  .section-heading p {
    display: none;
  }
  .tabs button {
    padding: 9px 10px;
    font-size: 11px;
  }
  .tabs {
    justify-content: space-between;
  }
  .list-note {
    gap: 15px;
    line-height: 1.7;
  }
  .list-note span:last-child {
    text-align: right;
  }
  .intel {
    grid-template-columns: 1fr;
    padding: 25px;
    margin: 40px 0;
  }
  .intel-status {
    border-left: 0;
    border-top: 1px solid #39452b;
    padding: 25px 0 0;
  }
  footer {
    flex-wrap: wrap;
  }
  footer > span {
    text-align: left;
  }
  .admin-grid {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
/* Official servers, localized layouts, and explicit channel/status semantics. */
#language {
  padding: 10px;
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--text);
  max-width: 140px;
}
.official-section {
  margin-top: 30px;
}
.official-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 16px;
}
.official-heading h2 {
  font-size: 22px;
  margin: 0;
}
.official-heading small {
  color: var(--muted);
  font-size: 11px;
}
.official-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.official-grid article {
  padding: 23px;
  background: linear-gradient(120deg, #172635, #152027);
  border: 1px solid #405e78;
  border-top: 3px solid #85c7ff;
}
.official-grid h3 {
  font-size: 18px;
  margin: 10px 0;
}
.official-grid p {
  color: #b0c4d5;
  font-size: 12px;
}
.official-grid a {
  display: inline-block;
  margin-top: 8px;
  font-weight: 700;
  color: #9bd3ff;
}
.official-badge {
  font-size: 10px;
  letter-spacing: 2px;
  color: #8ebbdc;
}
.hero-line {
  color: var(--text);
}
.server-card.listed {
  border-top: 4px solid #65de91;
}
.server-card.listed .tag {
  background: #173727;
  color: #8af6b0;
  border-color: #3e865a;
}
.server-card.offline {
  border-top: 4px solid #f1777b;
  background: #211a1b;
}
.server-card.offline .tag {
  background: #442025;
  color: #ffacaf;
  border-color: #91484e;
}
.server-card.upcoming {
  border-top: 4px solid #f3c665;
}
.server-card.upcoming .tag {
  background: #3c301a;
  color: #ffdb87;
  border-color: #947b3b;
}
.tabs [data-status="listed"]:not(.selected) {
  color: #8af6b0;
}
.tabs [data-status="offline"]:not(.selected) {
  color: #ffacaf;
}
.tabs [data-status="upcoming"]:not(.selected) {
  color: #ffdb87;
}
.tabs button.selected[data-status="offline"] {
  background: #ffacaf;
}
.tabs button.selected[data-status="upcoming"] {
  background: #ffdb87;
}
.tabs button.selected[data-status="listed"] {
  background: #8af6b0;
}
.channel-filters {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  margin: 12px 0 0;
}
.channel-filters legend {
  font-size: 12px;
  color: #cad1c3;
}
.channel-filters label {
  border: 1px solid currentColor;
  padding: 8px 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  cursor: pointer;
  font-size: 12px;
}
.channel-filters input {
  accent-color: var(--lime);
  width: 15px;
  height: 15px;
}
.channel-filters small {
  font-size: 10px;
  color: var(--muted);
}
.channel-filters button {
  background: none;
  border: 0;
  text-decoration: underline;
  color: var(--text);
  font-size: 11px;
}
.channel-line,
.card-links a.channel-line {
  color: #79ec9b;
  border-color: #357d48;
}
.channel-discord,
.card-links a.channel-discord {
  color: #b8b7ff;
  border-color: #6563a8;
}
.channel-website,
.card-links a.channel-website {
  color: #8bceff;
  border-color: #3a759e;
}
.channel-gm,
.card-links a.channel-gm {
  color: #ffcd7f;
  border-color: #8a6936;
}
.original-note {
  color: var(--muted);
  font-size: 10px;
  margin: 0 0 18px;
}
.contact-detail {
  grid-column: 1/-1;
}
.hero h1 {
  overflow-wrap: anywhere;
}
html[lang="th"] h1,
html[lang="ko"] h1 {
  font-size: clamp(34px, 3.6vw, 54px);
  line-height: 1.4;
  letter-spacing: -1px;
}
html[lang="th"] body {
  font-family: "Noto Sans Thai", "Noto Sans TC", sans-serif;
}
html[lang="ko"] body {
  font-family: "Noto Sans KR", "Noto Sans TC", sans-serif;
}
footer p {
  max-width: 550px;
}
.server-card .card-top {
  gap: 10px;
}
.server-card .tag {
  line-height: 1.6;
}
.toolbar {
  flex-wrap: wrap;
}
.tabs {
  flex-wrap: wrap;
}
@media (max-width: 760px) {
  header {
    height: auto;
    min-height: 90px;
    flex-wrap: wrap;
    gap: 14px;
    padding-top: 16px;
    padding-bottom: 16px;
  }
  header nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }
  .official-grid {
    grid-template-columns: 1fr;
  }
  .official-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .official-section {
    margin-top: 24px;
  }
  .official-grid article {
    padding: 18px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .channel-filters {
    gap: 8px;
  }
  .channel-filters label {
    padding: 8px;
  }
  .list-note {
    flex-direction: column;
  }
  .list-note span:last-child {
    text-align: left;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-art {
    min-height: 260px;
  }
  html[lang="th"] .server-grid,
  html[lang="ko"] .server-grid {
    grid-template-columns: 1fr;
  }
  .search {
    width: 100%;
  }
  .search input {
    min-width: 0;
    width: 100px;
  }
  .search select {
    max-width: 130px;
  }
}
html[lang="ko"] h1 {
  word-break: keep-all;
  overflow-wrap: normal;
}
.stats [data-i18n="newCounter"]{display:block;margin-left:0;line-height:1.6;max-width:240px}
