:root {
  color-scheme: dark;
  --ink: #f7f0df;
  --muted: #c8bea8;
  --bg: #121412;
  --panel: rgba(28, 31, 27, 0.9);
  --panel-strong: rgba(36, 40, 33, 0.95);
  --line: rgba(236, 222, 187, 0.18);
  --grass: #82b85d;
  --grass-dark: #3f7b45;
  --gold: #d9a441;
  --water: #77abc2;
  --redstone: #c95d4f;
  --violet: #8f7bb7;
  --shadow: rgba(0, 0, 0, 0.48);
  --glow: rgba(217, 164, 65, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 8%, rgba(130, 184, 93, 0.14), transparent 34rem),
    radial-gradient(circle at 84% 18%, rgba(217, 164, 65, 0.1), transparent 32rem),
    linear-gradient(180deg, #171a16 0%, #111310 46%, #121412 100%),
    var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(236, 222, 187, 0.045) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.32), transparent 76%);
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(16, 18, 15, 0.78);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 4px;
  background: #050505;
  box-shadow: 0 0 0 1px rgba(247, 240, 223, 0.18);
}

.nav-links {
  display: flex;
  gap: clamp(12px, 2vw, 26px);
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--water);
}

.hero {
  position: relative;
  display: grid;
  min-height: 94vh;
  padding: 132px clamp(18px, 6vw, 92px) 70px;
  overflow: hidden;
  isolation: isolate;
}

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

.hero-image {
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.04)),
    url("assets/brand/hero-butter-bday-event.png") center / cover no-repeat;
  transform: scale(1.02);
}

.hero-overlay {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(10, 12, 10, 0.86), rgba(10, 12, 10, 0.48) 48%, rgba(10, 12, 10, 0.12)),
    linear-gradient(0deg, var(--bg), rgba(18, 20, 18, 0.1) 34%, rgba(18, 20, 18, 0) 70%),
    linear-gradient(0deg, var(--bg), rgba(9, 13, 16, 0) 28%);
}

.hero-content {
  align-self: center;
  max-width: 760px;
}

.hero-logo {
  display: block;
  width: clamp(110px, 16vw, 176px);
  height: auto;
  margin: 0 0 22px;
  border-radius: 10px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--water);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(3.4rem, 10vw, 7.8rem);
  line-height: 0.9;
  text-shadow: 0 8px 0 rgba(0, 0, 0, 0.34);
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.hero-copy {
  max-width: 650px;
  color: #dceef4;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.55;
}

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

.copy-ip,
.secondary-action,
.discord-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 4px;
  color: #14130f;
  background: linear-gradient(135deg, var(--gold), #e7c46b);
  box-shadow: 0 5px 0 rgba(123, 82, 31, 0.95);
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.copy-ip:hover,
.secondary-action:hover,
.discord-link:hover {
  transform: translateY(1px);
  box-shadow: 0 4px 0 rgba(123, 82, 31, 0.95);
}

.secondary-action {
  color: var(--ink);
  background: rgba(244, 251, 255, 0.08);
  border: 1px solid var(--line);
  box-shadow: none;
}

.server-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 730px;
  margin: 38px 0 0;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(130, 184, 93, 0.1), transparent 42%),
    rgba(18, 20, 17, 0.78);
  box-shadow: 0 22px 60px var(--shadow), inset 0 1px 0 rgba(244, 251, 255, 0.08);
  backdrop-filter: blur(12px);
}

.server-card div {
  padding: 18px;
  border-right: 1px solid rgba(128, 244, 255, 0.14);
}

.server-card div:last-child {
  border-right: 0;
}

dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
}

dd {
  margin: 7px 0 0;
  font-weight: 850;
}

.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-radius: 50%;
  background: #70d760;
  box-shadow: 0 0 16px #70d760;
}

.status-dot.is-offline {
  background: var(--redstone);
  box-shadow: 0 0 16px rgba(255, 79, 109, 0.76);
}

.status-dot.is-checking {
  background: var(--gold);
  box-shadow: 0 0 16px rgba(255, 230, 109, 0.76);
}

.section,
.join-section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 82px 0;
}

.intro-section,
.split-section,
.join-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

.section-copy p,
.section-heading p,
.join-section p,
.feature-card p {
  color: var(--muted);
  line-height: 1.65;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.quick-stats div,
.feature-card,
.status-card,
figure,
.join-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(244, 251, 255, 0.06), 0 18px 50px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
}

.quick-stats div {
  padding: 18px;
}

.quick-stats strong {
  display: block;
  color: var(--grass);
  font-size: 1.35rem;
}

.quick-stats span {
  color: var(--muted);
  font-size: 0.9rem;
}

.server-route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.server-route-card {
  position: relative;
  min-height: 310px;
  padding: 26px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(82, 215, 255, 0.16), transparent 48%),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(244, 251, 255, 0.08), 0 24px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}

.server-route-card::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -88px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(82, 215, 255, 0.24);
  transform: rotate(45deg);
}

.server-route-card.is-secondary {
  background:
    linear-gradient(135deg, rgba(169, 124, 255, 0.14), transparent 48%),
    var(--panel);
}

.route-tag {
  display: inline-flex;
  margin-bottom: 20px;
  padding: 7px 10px;
  color: var(--water);
  background: rgba(82, 215, 255, 0.08);
  border: 1px solid rgba(82, 215, 255, 0.22);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.server-route-card p {
  color: var(--muted);
  line-height: 1.65;
}

.server-route-card dl {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.server-route-card dl div {
  display: grid;
  gap: 4px;
  padding: 12px;
  background: rgba(3, 7, 9, 0.38);
  border: 1px solid rgba(128, 244, 255, 0.12);
}

.route-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  color: #061014;
  background: linear-gradient(135deg, var(--water), var(--grass));
  border-radius: 4px;
  box-shadow: 0 4px 0 rgba(20, 110, 106, 0.95);
  font-weight: 900;
  text-decoration: none;
}

.status-section {
  padding-top: 24px;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.status-card {
  display: grid;
  gap: 18px;
  min-height: 190px;
  padding: 22px;
}

.status-card p,
.status-note {
  margin: 0;
  color: var(--muted);
}

.status-value {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.6rem;
}

.player-count {
  color: var(--muted);
}

.status-card.is-online .status-value {
  color: var(--grass);
  text-shadow: 0 0 18px rgba(126, 228, 110, 0.45);
}

.status-card.is-offline .status-value {
  color: #ff8b9d;
  text-shadow: 0 0 18px rgba(255, 79, 109, 0.38);
}

.status-note {
  margin-top: 14px;
  font-size: 0.9rem;
}

.section-heading {
  max-width: 660px;
  margin-bottom: 28px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  position: relative;
  min-height: 220px;
  padding: 22px;
  overflow: hidden;
}

.feature-card::before,
.status-card::before,
.join-panel::before {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, var(--water), transparent);
  box-shadow: 0 0 18px var(--glow);
}

.feature-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 24px;
  place-items: center;
  background: rgba(82, 215, 255, 0.13);
  border: 1px solid rgba(82, 215, 255, 0.34);
  color: var(--water);
  font-weight: 900;
  box-shadow: 0 0 18px rgba(82, 215, 255, 0.18), inset 0 -5px 0 rgba(0, 0, 0, 0.18);
}

.rules-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: rules;
}

.rules-list li {
  counter-increment: rules;
  padding: 18px 18px 18px 58px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  position: relative;
}

.rules-list li::before {
  content: counter(rules);
  position: absolute;
  left: 16px;
  top: 16px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #061014;
  background: var(--water);
  font-weight: 900;
  box-shadow: 0 0 14px rgba(82, 215, 255, 0.34);
}

figure {
  margin: 0;
  overflow: hidden;
}

.media-section {
  width: min(1240px, calc(100% - 28px));
}

.highlight-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 22px;
  align-items: stretch;
  margin-bottom: 26px;
}

.video-panel,
.media-copy {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(244, 251, 255, 0.06), 0 24px 70px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(10px);
}

.video-panel {
  padding: 12px;
}

.video-frame {
  position: relative;
  display: grid;
  min-height: 360px;
  aspect-ratio: 16 / 9;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(82, 215, 255, 0.22), transparent 18rem),
    linear-gradient(135deg, rgba(82, 215, 255, 0.12), rgba(169, 124, 255, 0.1)),
    #060b0f;
  border: 1px solid rgba(128, 244, 255, 0.18);
}

.video-frame iframe,
.video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.watch-fallback {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  margin-top: 12px;
  align-items: center;
  color: var(--ink);
  background: rgba(244, 251, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-weight: 850;
  text-decoration: none;
}

.video-placeholder {
  display: grid;
  place-items: center;
  gap: 10px;
  color: var(--ink);
  text-align: center;
}

.video-placeholder p {
  margin: 0;
  color: var(--muted);
}

.play-core {
  display: block;
  width: 74px;
  height: 74px;
  clip-path: polygon(26% 18%, 26% 82%, 82% 50%);
  background: linear-gradient(135deg, var(--water), var(--grass));
  filter: drop-shadow(0 0 22px rgba(82, 215, 255, 0.5));
}

.media-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px;
}

.media-copy p {
  color: var(--muted);
  line-height: 1.65;
}

.slide-rows {
  display: grid;
  gap: 14px;
  overflow: hidden;
}

.slide-row {
  overflow: hidden;
  border: 1px solid rgba(128, 244, 255, 0.14);
  background: rgba(3, 7, 9, 0.34);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

.slide-track {
  display: flex;
  width: max-content;
  gap: 14px;
  padding: 14px;
  animation: slide-drift 42s linear infinite;
}

.slide-row.reverse .slide-track {
  animation-direction: reverse;
}

.slide-card {
  position: relative;
  flex: 0 0 clamp(230px, 28vw, 360px);
  height: 190px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(128, 244, 255, 0.16);
  border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(244, 251, 255, 0.08);
}

.slide-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, transparent 54%, rgba(0, 0, 0, 0.42));
  opacity: 0.6;
  pointer-events: none;
}

.biome-cyber-spawn {
  background:
    linear-gradient(90deg, transparent 0 18%, #324b55 18% 32%, transparent 32% 68%, #324b55 68% 82%, transparent 82%),
    linear-gradient(#0e1d27 0 48%, #1c7d5d 48% 64%, #19242a 64%);
}

.biome-town {
  background:
    linear-gradient(90deg, transparent 0 12%, #52d7ff 12% 16%, transparent 16% 48%, #a97cff 48% 52%, transparent 52%),
    linear-gradient(#101a24 0 44%, #20333a 44% 70%, #12382e 70%);
}

.biome-market {
  background:
    radial-gradient(circle at 70% 30%, rgba(255, 230, 109, 0.5), transparent 18%),
    linear-gradient(135deg, #17222a 0 48%, #2f4650 48%),
    repeating-linear-gradient(90deg, rgba(82, 215, 255, 0.1) 0 20px, transparent 20px 40px);
}

.biome-rail {
  background:
    linear-gradient(120deg, transparent 0 40%, #52d7ff 40% 43%, transparent 43%),
    linear-gradient(#101a24 0 52%, #1b2c33 52% 72%, #111719 72%);
}

.biome-farm {
  background:
    repeating-linear-gradient(90deg, #18543d 0 34px, #2bd872 34px 42px),
    linear-gradient(#0e1d27 0 48%, #12382e 48%);
}

.biome-cavern {
  background:
    radial-gradient(circle at 52% 45%, #020405 0 17%, transparent 18%),
    radial-gradient(circle at 70% 30%, rgba(82, 215, 255, 0.38), transparent 16%),
    linear-gradient(135deg, #4a5f69, #10171d);
}

.biome-base {
  background:
    linear-gradient(90deg, transparent 0 25%, #425762 25% 39%, transparent 39% 58%, #425762 58% 72%, transparent 72%),
    linear-gradient(#0b151d 0 38%, #20333a 38% 72%, #10241f 72%);
}

.biome-portal {
  background:
    radial-gradient(circle at 50% 50%, rgba(169, 124, 255, 0.85) 0 18%, transparent 19%),
    radial-gradient(circle at 50% 50%, rgba(82, 215, 255, 0.42) 0 32%, transparent 33%),
    linear-gradient(#0a1117, #111b24);
}

.biome-harbor {
  background:
    linear-gradient(90deg, transparent 0 30%, #263840 30% 40%, transparent 40%),
    linear-gradient(#101a24 0 42%, #52d7ff 42% 58%, #111719 58%);
}

.biome-skyline {
  background:
    linear-gradient(90deg, #263840 0 10%, transparent 10% 18%, #425762 18% 30%, transparent 30% 44%, #324b55 44% 60%, transparent 60%),
    linear-gradient(#0b151d 0 58%, #12382e 58%);
}

.biome-modded {
  background:
    radial-gradient(circle at 34% 38%, rgba(126, 228, 110, 0.46), transparent 16%),
    radial-gradient(circle at 68% 44%, rgba(255, 79, 109, 0.38), transparent 14%),
    linear-gradient(135deg, #101a24, #24343a);
}

.biome-arena {
  background:
    radial-gradient(circle at 50% 58%, transparent 0 24%, rgba(82, 215, 255, 0.42) 25% 28%, transparent 29%),
    linear-gradient(#0e1d27 0 52%, #1b2c33 52% 72%, #101417 72%);
}

@keyframes slide-drift {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 7px));
  }
}

.vote-section {
  padding-top: 40px;
}

.vote-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: 18px;
  align-items: stretch;
}

.vote-copy,
.vote-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(244, 251, 255, 0.06), 0 24px 70px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(10px);
}

.vote-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px;
}

.vote-copy p,
.vote-card p {
  color: var(--muted);
  line-height: 1.65;
}

.vote-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.vote-card {
  position: relative;
  min-height: 240px;
  padding: 22px;
  overflow: hidden;
}

.vote-card::before {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  margin-bottom: 26px;
  background: linear-gradient(90deg, var(--water), transparent);
  box-shadow: 0 0 18px var(--glow);
}

.vote-card > span {
  position: absolute;
  top: 18px;
  right: 18px;
  color: rgba(128, 244, 255, 0.34);
  font-size: 2.5rem;
  font-weight: 900;
}

.vote-card a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: 10px;
  padding: 0 13px;
  color: #061014;
  background: linear-gradient(135deg, var(--water), var(--grass));
  border-radius: 4px;
  box-shadow: 0 4px 0 rgba(20, 110, 106, 0.95);
  font-weight: 900;
  text-decoration: none;
}

.vote-card.is-disabled {
  opacity: 0.72;
}

.pending-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: 10px;
  padding: 0 13px;
  color: var(--muted);
  background: rgba(244, 251, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-weight: 900;
}

.join-section {
  margin-bottom: 60px;
  padding: clamp(28px, 5vw, 56px);
  background:
    linear-gradient(135deg, rgba(82, 215, 255, 0.16), rgba(126, 228, 110, 0.1), rgba(255, 79, 109, 0.1)),
    var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 0 56px rgba(82, 215, 255, 0.12);
}

.join-panel {
  padding: 20px;
}

.join-option {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.join-option p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.join-label {
  display: block;
  margin-bottom: 4px;
  color: var(--water);
  font-weight: 900;
}

.join-panel label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 800;
}

.copy-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-bottom: 14px;
}

.copy-field input {
  min-width: 0;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  background: rgba(3, 7, 9, 0.72);
}

.discord-link {
  width: 100%;
  color: var(--ink);
  background: linear-gradient(135deg, var(--redstone), var(--violet));
  box-shadow: 0 5px 0 #7d2740, 0 0 24px rgba(255, 79, 109, 0.2);
}

.utility-link {
  margin-top: 12px;
  color: #061014;
  background: linear-gradient(135deg, var(--water), var(--grass));
  box-shadow: 0 5px 0 rgba(20, 110, 106, 0.95), 0 0 24px rgba(82, 215, 255, 0.2);
}

.modded-join {
  margin-top: -28px;
}

.site-footer {
  padding: 42px clamp(18px, 5vw, 70px) 46px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: rgba(3, 7, 9, 0.55);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.5fr);
  gap: 32px;
  max-width: 1180px;
  margin: 0 auto;
}

.footer-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  margin-bottom: 12px;
}

.legal-note {
  max-width: 430px;
  font-size: 0.86rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.footer-links h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-links a {
  display: block;
  width: fit-content;
  margin: 9px 0;
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
}

.legal-page .section-heading {
  max-width: 760px;
}

.legal-stack {
  display: grid;
  gap: 14px;
}

.subpage {
  padding-top: 86px;
}

.staff-hero {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
}

.staff-hero p,
.staff-section p,
.auth-panel p {
  color: var(--muted);
  line-height: 1.65;
}

.staff-rank-list,
.admin-grid {
  display: grid;
  gap: 46px;
}

.admin-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.staff-rank-section {
  display: grid;
  gap: 18px;
}

.staff-rank-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}

.staff-rank-heading h3 {
  margin: 0 0 4px;
  font-size: 1.7rem;
}

.staff-rank-heading p {
  margin: 0;
}

.staff-rank-heading .rank-description {
  max-width: 760px;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.55;
}

.rank-gem {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--gold), #9f5d32);
  border-radius: 12px;
  font-weight: 950;
  transform: rotate(45deg);
}

.rank-gem span {
  transform: rotate(-45deg);
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 18px;
}

.admin-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.admin-tabs button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(3, 7, 9, 0.28);
  color: var(--muted);
  cursor: pointer;
  font-weight: 900;
}

.admin-tabs button.is-active {
  border-color: rgba(128, 244, 255, 0.5);
  background: rgba(128, 244, 255, 0.12);
  color: var(--ink);
}

.admin-dashboard.is-support-user [data-admin-tab="staff"],
.admin-dashboard.is-support-user [data-admin-tab="site"],
.admin-dashboard.is-support-user [data-admin-tab="store"],
.admin-dashboard.is-support-user [data-admin-tab="access"],
.admin-dashboard.is-support-user [data-admin-tab="server"],
.admin-dashboard.is-support-user [data-admin-panel="staff"],
.admin-dashboard.is-support-user [data-admin-panel="site"],
.admin-dashboard.is-support-user [data-admin-panel="store"],
.admin-dashboard.is-support-user [data-admin-panel="access"],
.admin-dashboard.is-support-user [data-admin-panel="server"] {
  display: none;
}

.admin-module {
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(244, 251, 255, 0.06), 0 18px 50px rgba(0, 0, 0, 0.22);
}

.applications-module {
  grid-row: span 2;
}

.is-hidden {
  display: none !important;
}

.form-message {
  min-height: 1.35em;
  color: var(--gold);
}

.admin-list {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.admin-list-item {
  display: grid;
  gap: 6px;
  padding: 12px;
  background: rgba(3, 7, 9, 0.3);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.admin-list-item button,
.admin-list-item select {
  width: fit-content;
}

.staff-editor {
  gap: 12px;
}

.staff-admin-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(360px, 1.15fr);
  gap: 18px;
  align-items: start;
}

.admin-subhead {
  margin-bottom: 12px;
}

.admin-subhead h3 {
  margin: 0 0 4px;
  color: var(--ink);
}

.admin-subhead p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.staff-roster {
  max-height: 680px;
  overflow: auto;
  padding-right: 4px;
}

.staff-roster-item {
  grid-template-columns: 1fr;
  transition: border-color 160ms ease, background 160ms ease;
}

.staff-roster-item.is-selected {
  border-color: rgba(128, 244, 255, 0.54);
  background: rgba(128, 244, 255, 0.08);
}

.staff-roster-main {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: center;
}

.staff-roster-main img,
.staff-roster-main > span {
  width: 48px;
  height: 48px;
  border-radius: 8px;
}

.staff-roster-main > span {
  display: grid;
  place-items: center;
  background: rgba(128, 244, 255, 0.14);
  color: var(--ink);
  font-weight: 900;
}

.staff-roster-main strong,
.staff-roster-main span {
  display: block;
}

.staff-roster-main span,
.staff-roster-meta {
  color: var(--muted);
}

.staff-roster-meta {
  font-size: 0.86rem;
}

.staff-edit-form {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(3, 7, 9, 0.26);
}

.staff-form-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  align-items: center;
}

.staff-form-grid label {
  color: var(--muted);
  font-weight: 800;
}

.staff-form-grid textarea,
.staff-form-grid input,
.staff-form-grid select {
  width: 100%;
}

.staff-form-grid textarea {
  min-height: 116px;
}

.staff-edit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.staff-edit-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.84rem;
}

.staff-edit-grid input,
.staff-edit-grid select,
.staff-edit-grid textarea {
  width: 100%;
}

.staff-edit-bio {
  grid-column: 1 / -1;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.staff-card {
  display: flex;
  min-height: 202px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 22px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  border-top: 3px solid var(--gold);
  text-align: center;
}

.staff-avatar {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  color: #14130f;
  background: linear-gradient(135deg, var(--gold), #e7c46b);
  border-radius: 8px;
  font-weight: 900;
  font-size: 1.4rem;
}

.staff-skin {
  display: block;
  width: 76px;
  height: 116px;
  object-fit: contain;
  align-self: center;
}

.staff-head {
  display: block;
  width: 78px;
  height: 78px;
  image-rendering: pixelated;
  border-radius: 10px;
}

.rank-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  color: var(--ink);
  background: rgba(217, 164, 65, 0.2);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 900;
}

.rank-pill span {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  background: var(--gold);
  border-radius: 5px;
  color: #14130f;
  font-size: 0.7rem;
}

.staff-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.join-page-grid,
.rules-page-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.rules-page-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.join-info-card,
.store-placeholder,
.faq-list details {
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.join-info-card p,
.join-info-card li,
.store-placeholder p,
.faq-list p {
  color: var(--muted);
  line-height: 1.65;
}

.rule-card ol {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding-left: 22px;
}

.rule-card li strong {
  color: var(--text);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list summary {
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
}

.store-tier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.store-tier-grid article {
  padding: 18px;
  background: rgba(3, 7, 9, 0.3);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.store-page .staff-hero {
  align-items: end;
}

.store-control {
  display: grid;
  gap: 8px;
  max-width: 380px;
  margin-bottom: 24px;
}

.store-notice {
  max-width: 780px;
  margin-bottom: 20px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(128, 244, 255, 0.08);
  color: var(--muted);
  line-height: 1.55;
}

.store-notice strong,
.store-notice.is-success {
  color: var(--ink);
}

.store-control label {
  color: var(--ink);
  font-weight: 900;
}

.rank-store-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 18px;
}

.rank-product {
  overflow: hidden;
  background: #f7f5ef;
  color: #1d2027;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.rank-product img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 0.9;
  object-fit: contain;
  padding: 24px 22px 10px;
  background: #ffffff;
}

.rank-product-body {
  padding: 18px;
}

.rank-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.rank-title-row h2 {
  margin: 0;
  color: #24252b;
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  text-align: center;
}

.info-button {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 999px;
  background: #8e9297;
  color: #ffffff;
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 900;
}

.rank-price {
  margin: 20px 0 24px;
  color: #4e963d;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 900;
}

.rank-summary {
  min-height: 48px;
  margin: -10px 0 18px;
  color: #5b6270;
  text-align: center;
  line-height: 1.45;
}

.buy-rank {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 7px;
  background: #ffd24f;
  color: #6f5521;
  cursor: pointer;
  font-weight: 950;
  font-size: 1rem;
}

.buy-rank:hover {
  filter: brightness(0.97);
}

.rank-supporter {
  border-top: 5px solid #38b763;
}

.rank-vip {
  border-top: 5px solid #3478ff;
}

.rank-elite {
  border-top: 5px solid #a44dff;
}

.rank-legend {
  border-top: 5px solid #f5c231;
}

.rank-eternal {
  border-top: 5px solid #ff3434;
}

.rank-dialog {
  max-width: 460px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101520;
  color: var(--text);
  box-shadow: 0 24px 70px var(--shadow);
}

.rank-dialog::backdrop {
  background: rgba(0, 0, 0, 0.62);
}

.dialog-close {
  float: right;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 1.2rem;
}

.rank-manager .staff-card {
  border-top-color: #d9b34b;
}

.rank-manager .rank-gem,
.rank-manager .rank-pill span {
  background: #d9b34b;
}

.rank-admin .staff-card,
.rank-owner .staff-card {
  border-top-color: #d94b42;
}

.rank-admin .rank-gem,
.rank-owner .rank-gem,
.rank-admin .rank-pill span,
.rank-owner .rank-pill span {
  background: #d94b42;
}

.rank-sr-mod .staff-card {
  border-top-color: #63cddd;
}

.rank-sr-mod .rank-gem,
.rank-sr-mod .rank-pill span {
  background: #63cddd;
}

.rank-mod .staff-card {
  border-top-color: #77abc2;
}

.rank-mod .rank-gem,
.rank-mod .rank-pill span {
  background: #77abc2;
}

.rank-helper .staff-card {
  border-top-color: #82b85d;
}

.rank-helper .rank-gem,
.rank-helper .rank-pill span {
  background: #82b85d;
}

.application-form {
  display: grid;
  gap: 12px;
}

.application-form input,
.application-form textarea,
.application-form select {
  width: 100%;
  padding: 12px 13px;
  color: var(--ink);
  background: rgba(3, 7, 9, 0.46);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.application-form textarea {
  resize: vertical;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  align-items: center;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 20;
  min-width: 220px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #071014;
  color: var(--ink);
  text-align: center;
  box-shadow: 0 16px 40px var(--shadow);
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.support-assistant {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  font-family: inherit;
}

.assistant-toggle {
  border: 1px solid rgba(231, 219, 192, 0.28);
  border-radius: 999px;
  background: #d9a441;
  color: #16160f;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  font-family: inherit;
  font-weight: 800;
  padding: 12px 18px;
}

.assistant-panel {
  position: absolute;
  right: 0;
  bottom: 58px;
  width: min(360px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid rgba(231, 219, 192, 0.22);
  border-radius: 8px;
  background: rgba(20, 23, 18, 0.96);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(16px);
}

.assistant-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(231, 219, 192, 0.16);
  color: #f7f1df;
}

.assistant-head div {
  display: grid;
  gap: 2px;
}

.assistant-head span {
  color: rgba(247, 241, 223, 0.7);
  font-size: 0.83rem;
}

.assistant-head button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #f7f1df;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.assistant-log {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 330px;
  overflow-y: auto;
  padding: 16px;
}

.assistant-message {
  max-width: 88%;
  margin: 0;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.94rem;
  line-height: 1.45;
}

.assistant-message p {
  margin: 0;
}

.assistant-message-bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.08);
  color: #eee7d2;
}

.assistant-message-user {
  align-self: flex-end;
  background: rgba(217, 164, 65, 0.94);
  color: #17150e;
}

.assistant-topic-grid,
.assistant-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.assistant-topic-grid button,
.assistant-actions a {
  border: 1px solid rgba(231, 219, 192, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f7f1df;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 7px 10px;
  text-decoration: none;
}

.assistant-actions a {
  background: rgba(217, 164, 65, 0.16);
  color: #f3d18d;
}

.assistant-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid rgba(231, 219, 192, 0.16);
}

.assistant-form input {
  min-width: 0;
  border: 1px solid rgba(231, 219, 192, 0.22);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.28);
  color: #f7f1df;
  font: inherit;
  padding: 10px 11px;
}

.assistant-form button {
  border: 0;
  border-radius: 6px;
  background: #d9a441;
  color: #17150e;
  cursor: pointer;
  font-family: inherit;
  font-weight: 800;
  padding: 10px 13px;
}

@media (max-width: 900px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
  }

  .nav-links {
    display: none;
  }

  .server-card,
  .intro-section,
  .split-section,
  .join-section,
  .staff-hero,
  .highlight-layout,
  .vote-layout,
  .quick-stats,
  .server-route-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid,
  .footer-links {
    grid-template-columns: 1fr;
  }

  .staff-edit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .staff-admin-layout {
    grid-template-columns: 1fr;
  }

  .server-card div {
    border-right: 0;
    border-bottom: 1px solid rgba(128, 244, 255, 0.14);
  }

  .server-card div:last-child {
    border-bottom: 0;
  }

  .feature-grid,
  .status-grid,
  .vote-grid,
  .staff-grid,
  .join-page-grid,
  .rules-page-list,
  .store-tier-grid,
  .rank-store-grid,
  .admin-grid,
  .admin-dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .video-frame {
    min-height: 280px;
  }
}

@media (max-width: 620px) {
  .hero {
    min-height: 92vh;
    padding-top: 108px;
  }

  .hero-actions,
  .copy-field {
    display: grid;
    grid-template-columns: 1fr;
  }

  .copy-ip,
  .secondary-action {
    width: 100%;
  }

  .feature-grid,
  .status-grid,
  .vote-grid,
  .staff-grid,
  .join-page-grid,
  .rules-page-list,
  .store-tier-grid,
  .rank-store-grid,
  .admin-grid,
  .admin-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .staff-hero {
    display: grid;
  }

  .staff-edit-grid {
    grid-template-columns: 1fr;
  }

  .staff-form-grid {
    grid-template-columns: 1fr;
  }

  .slide-card {
    flex-basis: 250px;
    height: 160px;
  }

  .support-assistant {
    right: 16px;
    bottom: 16px;
  }

  .assistant-panel {
    bottom: 56px;
  }
}
