.topbar {
  width: min(1980px, calc(100vw - 48px));
  grid-template-columns: minmax(260px, 420px) minmax(0, 1fr) auto;
  gap: 18px;
}
.topbar .brand {
  overflow: hidden;
}
.topbar .brand > div {
  min-width: 0;
}
.topbar .brand-name,
.topbar .brand-subtitle {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.topbar .nav {
  min-width: 0;
  flex-wrap: nowrap;
  gap: clamp(8px, 1vw, 14px);
  justify-content: center;
  font-size: clamp(0.86rem, 0.88vw, 1rem);
  font-weight: 900;
}
.topbar .nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 10px;
  color: rgba(247, 248, 251, 0.9);
  background:
    linear-gradient(180deg, rgba(32, 38, 51, 0.74), rgba(18, 23, 33, 0.74));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 10px 24px rgba(0, 0, 0, 0.16);
  line-height: 1;
  white-space: nowrap;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease;
}
.topbar .nav a:hover {
  color: #ffffff;
  border-color: rgba(79, 134, 255, 0.5);
  background:
    linear-gradient(180deg, rgba(45, 57, 78, 0.9), rgba(24, 31, 45, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 28px rgba(0, 0, 0, 0.22);
  transform: translateY(-1px);
}
.topbar .nav a[href*="topup"] {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.16);
  background: linear-gradient(135deg, #2576ff 0%, #1766e9 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 14px 30px rgba(37, 118, 255, 0.28);
}
.topbar .nav a[href*="topup"]:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: linear-gradient(135deg, #3984ff 0%, #1f70f6 100%);
}
.topbar .header-actions {
  min-width: 0;
  justify-content: flex-end;
}
.server-status-chip {
  gap: 10px;
  min-width: min(560px, 31vw);
  height: 58px;
  padding: 0 12px 0 18px;
  background:
    linear-gradient(180deg, rgba(29, 35, 49, 0.96), rgba(16, 21, 31, 0.94)),
    radial-gradient(circle at 12% 50%, rgba(49, 237, 150, 0.16), transparent 30%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 14px 30px rgba(0, 0, 0, 0.24);
}
.server-status-chip .ip-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: clamp(0.94rem, 1.3vw, 1.18rem);
}
.server-status-chip .copy-hint {
  flex: 0 0 auto;
  padding: 8px 14px;
  color: #f5d894;
  background: rgba(198, 161, 90, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.topbar .server-count,
.topbar .server-status-chip [data-server-online] {
  flex: 0 0 auto;
  font-size: clamp(1rem, 1.4vw, 1.22rem);
}
.topbar .button-discord {
  flex: 0 0 auto;
}
@media (max-width: 1500px) {
  .topbar {
    grid-template-columns: minmax(240px, 1fr) auto;
    border-radius: 34px;
  }
  .topbar .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    padding-top: 2px;
  }
  .topbar .header-actions {
    grid-column: 2;
  }
}
.server-status-chip [data-server-online],
.server-count,
.server-online-large {
  color: #31ed96;
  font-weight: 900;
}
.server-status-chip.is-offline [data-server-online],
.server-status-card.is-offline [data-server-online] {
  color: #ff6767;
}
.hero-ip-box.server-status-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  width: min(760px, 100%);
  max-width: 760px;
  min-height: 96px;
  padding: 18px 18px 18px 20px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(15, 21, 28, 0.94) 0%, rgba(19, 27, 38, 0.9) 58%, rgba(30, 26, 19, 0.88) 100%),
    radial-gradient(circle at 12% 18%, rgba(49, 237, 150, 0.14), transparent 34%),
    radial-gradient(circle at 88% 50%, rgba(225, 196, 138, 0.18), transparent 30%);
  border: 1px solid rgba(225, 196, 138, 0.34);
  border-radius: 20px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 48px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(0, 0, 0, 0.18);
}
.hero-ip-box.server-status-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 46%);
  opacity: 0.7;
}
.hero-ip-box.server-status-card:hover {
  background:
    linear-gradient(135deg, rgba(18, 26, 36, 0.98) 0%, rgba(24, 34, 47, 0.94) 58%, rgba(40, 33, 23, 0.9) 100%),
    radial-gradient(circle at 12% 18%, rgba(49, 237, 150, 0.18), transparent 34%),
    radial-gradient(circle at 88% 50%, rgba(225, 196, 138, 0.22), transparent 30%);
  border-color: rgba(225, 196, 138, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 22px 52px rgba(0, 0, 0, 0.36),
    0 0 34px rgba(198, 161, 90, 0.12);
}
.hero-ip-box.server-status-card .ip-left,
.hero-ip-box.server-status-card .ip-right {
  position: relative;
  z-index: 1;
}
.hero-ip-box.server-status-card .ip-left {
  min-width: 0;
  gap: 14px;
}
.hero-ip-box.server-status-card .status-pulse {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  background: #33f29b;
  border: 3px solid rgba(210, 255, 232, 0.22);
  box-shadow:
    0 0 0 6px rgba(49, 237, 150, 0.1),
    0 0 24px rgba(49, 237, 150, 0.66);
}
.hero-ip-box.server-status-card .ip-label {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 5px 9px;
  color: #16110b;
  background: linear-gradient(135deg, #f0d891 0%, #c6a15a 100%);
  border-radius: 8px;
  letter-spacing: 0.14em;
  box-shadow: 0 8px 18px rgba(198, 161, 90, 0.18);
}
.hero-ip-box.server-status-card .ip-value {
  margin-top: 8px;
  max-width: min(460px, 52vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff7e6;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.42);
}
.server-status-card .ip-right {
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  gap: 10px;
}
.hero-ip-box.server-status-card .ip-version {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 7px 12px;
  color: rgba(255, 247, 230, 0.84);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  font-size: 0.86rem;
  line-height: 1.15;
  text-align: center;
}
.hero-ip-box.server-status-card .server-online-large {
  min-width: 58px;
  padding: 2px 4px;
  color: #31ed96;
  font-size: clamp(2.25rem, 4.2vw, 3.55rem);
  font-weight: 950;
  text-align: center;
  text-shadow: 0 0 24px rgba(49, 237, 150, 0.28);
}
.hero-ip-box.server-status-card .copy-btn-inner {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  color: #22190d;
  background: linear-gradient(135deg, #f0d891 0%, #c6a15a 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 12px 24px rgba(198, 161, 90, 0.24);
}
.hero-ip-box.server-status-card.copied .copy-btn-inner {
  color: #05130c;
  background: linear-gradient(135deg, #67f5b0 0%, #31ed96 100%);
}
.hero-ip-box.server-status-card {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "main copy"
    "meta copy";
  align-items: center;
  gap: 14px 22px;
  width: min(820px, 100%);
  max-width: 820px;
  min-height: 0;
  padding: 24px;
  cursor: default;
}
.hero-ip-box.server-status-card .ip-main {
  grid-area: main;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.hero-ip-box.server-status-card .ip-texts {
  min-width: 0;
}
.hero-ip-box.server-status-card .ip-label {
  padding: 6px 11px;
  font-size: 0.76rem;
  line-height: 1;
}
.hero-ip-box.server-status-card .ip-value {
  display: block;
  max-width: none;
  margin-top: 10px;
  overflow: visible;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  font-size: clamp(24px, 4vw, 44px);
  line-height: 1.04;
}
.hero-ip-box.server-status-card .server-meta {
  grid-area: meta;
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  padding-left: 30px;
}
.hero-ip-box.server-status-card .meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  color: rgba(255, 247, 230, 0.86);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
}
.hero-ip-box.server-status-card .meta-pill.server-online-large {
  min-width: auto;
  padding: 0 12px;
  color: #31ed96;
  font-size: 0.82rem;
  text-shadow: none;
}
.hero-ip-box.server-status-card .ip-version {
  min-height: 32px;
  padding: 0 12px;
  color: rgba(255, 247, 230, 0.86);
  font-size: 0.82rem;
  line-height: 1;
  text-align: left;
}
.hero-ip-box.server-status-card .ip-copy-action {
  grid-area: copy;
  position: relative;
  z-index: 1;
  min-width: 138px;
  min-height: 58px;
  cursor: pointer;
  color: #1d1508;
  font-size: 0.98rem;
  letter-spacing: 0.1em;
}
.hero-ip-box.server-status-card .ip-copy-action:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 16px 32px rgba(198, 161, 90, 0.32);
}
.server-online-large {
  display: block;
  font-size: clamp(1.6rem, 4vw, 2.7rem);
  line-height: 1;
}
.news-preview-section,
.content-page-shell {
  color: #f7f8fb;
}
.news-preview-grid,
.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.news-card,
.news-list-item,
.news-detail,
.rule-card,
.site-footer {
  background: rgba(22, 27, 36, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
}
.news-card,
.news-list-item,
.rule-card {
  overflow: hidden;
}
.news-card img,
.news-list-item img,
.news-detail img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.news-card div,
.news-list-item,
.news-detail,
.rule-card {
  padding: 20px;
}
.news-card span,
.news-list-item span,
.news-detail span,
.rule-card span {
  color: #31ed96;
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
}
.news-card h3,
.news-detail h2,
.rule-card h2 {
  margin: 8px 0;
  color: #fff;
}
.news-card p,
.news-list-item p,
.news-detail p,
.rule-card li,
.site-footer p {
  color: rgba(247, 248, 251, 0.78);
  line-height: 1.7;
}
.news-card a,
.news-list-item,
.footer-links a {
  color: #fff;
  text-decoration: none;
}
.section-actions {
  margin-top: 22px;
  display: flex;
  justify-content: center;
}
.content-page {
  padding: 54px 0 34px;
}
.content-hero {
  max-width: 980px;
  margin: 0 auto 28px;
  text-align: center;
}
.content-hero h1 {
  margin: 8px 0 14px;
  color: #fff;
  font-size: clamp(2.4rem, 7vw, 5rem);
  line-height: 1;
}
.content-hero p:last-child {
  max-width: 760px;
  margin: 0 auto;
  color: rgba(247, 248, 251, 0.78);
  font-size: 1.08rem;
  line-height: 1.7;
}
.news-layout {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 22px;
}
.news-list {
  display: grid;
  gap: 14px;
}
.news-list-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  column-gap: 14px;
  padding: 12px;
}
.news-list-item img {
  grid-row: span 3;
  height: 92px;
  aspect-ratio: 1;
  border-radius: 12px;
}
.news-list-item p {
  margin: 4px 0 0;
  font-size: 0.9rem;
}
.news-detail {
  padding: 24px;
}
.news-detail img {
  border-radius: 14px;
  margin-bottom: 20px;
}
.rule-card ul {
  margin: 14px 0 0;
  padding-left: 1.2rem;
}
.rule-card li + li {
  margin-top: 10px;
}
.site-footer {
  margin: 40px 0 0;
  padding: 34px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 26px;
  align-items: center;
}
.footer-copy p,
.footer-actions p {
  margin: 0 0 10px;
  font-weight: 800;
}
.footer-brand img {
  width: min(230px, 34vw);
  display: block;
}
.footer-ip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 12px 16px;
  color: #fff;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.admin-editor-card label input[type="checkbox"] {
  width: auto;
  margin-right: 8px;
}
@media (max-width: 900px) {
  .topbar {
    width: var(--content);
    grid-template-columns: 1fr;
  }
  .topbar .nav {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .topbar .header-actions {
    justify-content: flex-start;
  }
  .server-status-chip {
    min-width: 0;
    width: min(100%, 520px);
  }
  .hero-ip-box.server-status-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "meta"
      "copy";
    gap: 16px;
    min-height: 0;
    padding: 20px;
  }
  .hero-ip-box.server-status-card .ip-value {
    max-width: 100%;
  }
  .hero-ip-box.server-status-card .server-meta {
    padding-left: 0;
  }
  .hero-ip-box.server-status-card .ip-copy-action {
    width: 100%;
  }
  .news-preview-grid,
  .rules-grid,
  .news-layout,
  .site-footer {
    grid-template-columns: 1fr;
  }
  .site-footer {
    text-align: center;
  }
  .footer-links {
    justify-content: center;
  }
}
@media (max-width: 560px) {
  .news-list-item {
    grid-template-columns: 1fr;
  }
  .news-list-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
}
