@import url('https://fonts.cdnfonts.com/css/minecraft-3');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap');

:root {
  --bg-0: #0e0e10;
  --bg-1: #17171b;
  --bg-2: #1e1e23;
  --bg-3: #27272e;
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.16);
  --text: #ECEAE6;
  --text-dim: #9C9CA6;
  --text-faint: #66666f;
  --magenta: #FF14C4;
  --magenta-soft: rgba(255,20,196,0.14);
  --blue: #3B6FE8;
  --blue-soft: rgba(59,111,232,0.14);
  --aqua: #55FFFF;
  --aqua-soft: rgba(85,255,255,0.12);
  --gold: #55FFFF;
  --gold-soft: rgba(85,255,255,0.14);
  --green: #55FF55;
  --red: #FF5555;
  --font-display: 'Minecraft', 'JetBrains Mono', monospace;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --radius: 10px;
  --radius-sm: 6px;
  --nav-h: 68px;
  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(ellipse 900px 500px at 15% -10%, rgba(255,20,196,0.09), transparent 60%),
    radial-gradient(ellipse 900px 600px at 100% 0%, rgba(59,111,232,0.10), transparent 55%),
    var(--bg-0);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 15.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url('../img/netherite-tile.png');
  background-size: 64px 64px;
  opacity: 0.5;
  mix-blend-mode: soft-light;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.55) 40%, rgba(0,0,0,0.7));
}

#app { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.15;
  margin: 0;
}

p { margin: 0 0 1em; color: var(--text-dim); }
a { color: inherit; text-decoration: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-variant: small-caps;
  font-feature-settings: "smcp";
  letter-spacing: 0.14em;
  font-size: 13px;
  font-weight: 600;
  color: var(--aqua);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.sc { font-variant: small-caps; font-feature-settings: "smcp"; letter-spacing: 0.04em; }

::selection { background: var(--magenta); color: #0e0e10; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 6px; border: 2px solid var(--bg-0); }
::-webkit-scrollbar-thumb:hover { background: var(--magenta); }

/* nav */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(14,14,16,0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.site-nav .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 34px; height: 34px; border-radius: 50%; display: block; }
.brand span {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 0.02em;
  color: var(--text);
}

.nav-links { display: flex; align-items: center; gap: 4px; }

.nav-links a {
  position: relative;
  padding: 9px 15px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color .28s ease, background .28s ease;
}

.nav-links a:hover { color: var(--text); background: var(--bg-2); }

.nav-links a.active { color: var(--text); }

.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 4px;
  height: 2px;
  background: var(--magenta);
  box-shadow: 0 0 6px var(--magenta);
  border-radius: 2px;
}

.nav-cta {
  font-family: var(--font-display);
  font-size: 13.5px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  background: var(--gold);
  color: #06282b;
  box-shadow: 0 0 0 0 rgba(85,255,255,0.5);
  transition: transform .3s ease, box-shadow .3s ease;
}

.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 22px -6px rgba(85,255,255,0.6); }

.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  border: 1px solid var(--line);
  align-items: center;
  justify-content: center;
  color: var(--text);
}

/* buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 14px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .28s ease, box-shadow .28s ease, background .28s ease, border-color .28s ease;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  font-family: var(--font-display);
  background: var(--gold);
  color: #06282b;
  letter-spacing: 0.02em;
}

.btn-primary:hover { box-shadow: 0 10px 28px -10px rgba(85,255,255,0.55); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover { border-color: var(--magenta); color: var(--magenta); }

.btn-block { width: 100%; }

/* hero */

.hero {
  padding: 108px 0 84px;
  text-align: center;
  position: relative;
}

.hero-icon {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  margin: 0 auto 30px;
  display: block;
  box-shadow: 0 0 0 1px var(--line-strong), 0 20px 60px -18px rgba(255,20,196,0.45);
}

.hero h1 {
  font-size: clamp(38px, 6vw, 68px);
  margin-bottom: 18px;
}

.hero h1 .hl { color: var(--magenta); }

.hero p.lead {
  max-width: 560px;
  margin: 0 auto 34px;
  font-size: 16px;
  color: var(--text-dim);
}

.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-motd {
  max-width: 460px;
  margin: 0 auto 32px;
  text-align: left;
}

/* ticker */

.ticker-wrap {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-1);
  overflow: hidden;
  position: relative;
}

.ticker-wrap::before, .ticker-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.ticker-wrap::before { left: 0; background: linear-gradient(90deg, var(--bg-1), transparent); }
.ticker-wrap::after { right: 0; background: linear-gradient(270deg, var(--bg-1), transparent); }

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 32s linear infinite;
}

.ticker-track:hover { animation-play-state: paused; }

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  font-size: 13px;
  color: var(--text-dim);
  white-space: nowrap;
  border-right: 1px solid var(--line);
}

.ticker-item b { color: var(--text); font-weight: 600; }
.ticker-item .arena { color: var(--aqua); }
.ticker-item .streak { color: var(--gold); }

/* sections */

section.block { padding: 76px 0; }
section.block.tight { padding: 56px 0; }

.section-head { max-width: 620px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 12px; }
.section-head p { margin: 0; }

.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color .32s ease, transform .32s ease, background .32s ease;
}

.card:hover { border-color: var(--line-strong); transform: translateY(-3px); background: var(--bg-2); }

.card .icon {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: var(--magenta-soft);
  color: var(--magenta);
}

.card h3 { font-size: 17px; margin-bottom: 8px; color: var(--text); font-family: var(--font-mono); font-weight: 700; }
.card p { font-size: 13.5px; margin: 0; }

/* reveal animation */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: .12s; }
.reveal-d2 { transition-delay: .24s; }
.reveal-d3 { transition-delay: .36s; }
.reveal-d4 { transition-delay: .48s; }

/* page header (non-home pages) */

.page-header { padding: 62px 0 40px; border-bottom: 1px solid var(--line); }
.page-header h1 { font-size: clamp(30px, 4.4vw, 44px); margin-bottom: 10px; }
.page-header p { max-width: 560px; margin: 0; }

/* server cards (motd style) */

.motd-card {
  background: linear-gradient(180deg, #1b1b1f, #131316);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.motd-icon {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  flex-shrink: 0;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--line-strong);
}

.motd-body { flex: 1; min-width: 0; }
.motd-title-row { display: flex; align-items: center; gap: 10px; margin-bottom: 3px; }
.motd-title-row .name { font-family: var(--font-display); font-size: 16px; color: var(--text); }
.motd-tag {
  font-size: 10.5px;
  font-variant: small-caps;
  letter-spacing: 0.08em;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-3);
  color: var(--text-dim);
  border: 1px solid var(--line-strong);
}

.motd-line { font-size: 13px; color: var(--aqua); display: flex; align-items: center; gap: 6px; }
.motd-note { font-size: 13px; color: var(--gold); margin-top: 3px; font-weight: 600; }

.motd-meta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

.motd-players { font-family: var(--font-mono); font-size: 17px; font-weight: 700; color: var(--text-dim); text-align: right; }
.motd-players b { color: var(--text); font-size: 19px; }

.signal-bars { display: flex; align-items: flex-end; gap: 2px; height: 14px; }
.signal-bars i { width: 3px; background: var(--green); border-radius: 1px; display: block; }
.signal-bars i:nth-child(1) { height: 30%; }
.signal-bars i:nth-child(2) { height: 55%; }
.signal-bars i:nth-child(3) { height: 75%; }
.signal-bars i:nth-child(4) { height: 100%; }
.signal-bars.offline i { background: var(--red); height: 30% !important; }

.copy-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .28s ease, color .28s ease, border-color .28s ease;
}

.copy-btn:hover { color: var(--aqua); border-color: var(--aqua); }
.copy-btn.copied { color: var(--green); border-color: var(--green); }
.copy-btn svg { width: 16px; height: 16px; }

/* kill feed */

.feed { display: flex; flex-direction: column; gap: 2px; }

.feed-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-1);
  border: 1px solid var(--line);
  font-size: 13.5px;
}

.feed-row .icon-kill { color: var(--magenta); flex-shrink: 0; width: 16px; height: 16px; }
.feed-row .who { color: var(--text); font-weight: 700; }
.feed-row .arena-tag { color: var(--aqua); }
.feed-row .streak-tag { color: var(--gold); font-weight: 700; }
.feed-row .time { margin-left: auto; color: var(--text-faint); font-size: 12px; flex-shrink: 0; }

.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  display: inline-block;
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.status-line { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-faint); }

/* tables */

.table-wrap {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

table { width: 100%; border-collapse: collapse; font-size: 13.5px; }

thead th {
  text-align: left;
  font-variant: small-caps;
  font-feature-settings: "smcp";
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-faint);
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}

tbody td { padding: 13px 18px; border-bottom: 1px solid var(--line); color: var(--text-dim); }
tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background .25s ease; }
tbody tr:hover { background: var(--bg-2); }

td.rank { font-family: var(--font-display); color: var(--text-faint); width: 60px; }
tr.top-1 td.rank { color: var(--gold); }
tr.top-2 td.rank { color: #d7d7de; }
tr.top-3 td.rank { color: #c98a4b; }

td.player { color: var(--text); font-weight: 700; display: flex; align-items: center; gap: 10px; }
td.player img { width: 24px; height: 24px; border-radius: 4px; }
td.num { font-family: var(--font-mono); color: var(--text); }
td.kd { font-family: var(--font-mono); color: var(--aqua); }

.tabs { display: flex; gap: 8px; margin-bottom: 20px; }

.tab-btn {
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-1);
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .28s ease;
}

.tab-btn.active { background: var(--magenta-soft); border-color: var(--magenta); color: var(--magenta); }

/* rules */

.rules-list { display: flex; flex-direction: column; gap: 14px; }

.rule-item {
  display: flex;
  gap: 18px;
  padding: 20px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.rule-num {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--magenta);
  flex-shrink: 0;
  width: 36px;
}

.rule-item h3 { font-size: 15px; color: var(--text); margin-bottom: 6px; font-family: var(--font-mono); font-weight: 700; }
.rule-item p { margin: 0; font-size: 13.5px; }

.rule-tag {
  display: inline-block;
  margin-top: 10px;
  font-size: 10.5px;
  font-variant: small-caps;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 9px;
  border-radius: 999px;
}

.rule-tag.warn { background: var(--gold-soft); color: var(--gold); }
.rule-tag.ban { background: rgba(255,85,85,0.14); color: var(--red); }

/* changelog */

.changelog { position: relative; display: flex; flex-direction: column; gap: 0; }

.changelog::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--line-strong);
}

.changelog-entry { position: relative; padding: 0 0 40px 38px; }
.changelog-entry:last-child { padding-bottom: 0; }

.changelog-dot {
  position: absolute;
  left: 0;
  top: 6px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--bg-0);
  border: 2px solid var(--magenta);
  box-shadow: 0 0 10px rgba(255,20,196,0.5);
}

.changelog-date {
  font-size: 12px;
  color: var(--text-faint);
  margin-bottom: 6px;
  display: block;
}

.changelog-entry h3 {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.changelog-entry > p { font-size: 13.5px; margin-bottom: 16px; }

.change-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }

.change-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-dim);
}

.change-mark {
  font-family: var(--font-mono);
  font-weight: 700;
  flex-shrink: 0;
  width: 16px;
  text-align: center;
  border-radius: 4px;
  font-size: 12px;
  line-height: 18px;
}

.change-row.added .change-mark { color: var(--green); }
.change-row.removed .change-mark { color: var(--red); }
.change-row.changed .change-mark { color: var(--aqua); }

.changelog-images { display: flex; gap: 10px; flex-wrap: wrap; }
.changelog-images img {
  width: 160px;
  height: 100px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

/* staff */

.staff-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  transition: transform .32s ease, border-color .32s ease;
}

.staff-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }

.staff-skin {
  width: 96px;
  height: 128px;
  margin: 0 auto 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  image-rendering: pixelated;
  object-fit: cover;
  object-position: top;
}

.staff-name { font-family: var(--font-mono); font-weight: 700; font-size: 15px; color: var(--text); margin-bottom: 8px; }

.role-badge {
  display: inline-block;
  font-size: 11px;
  font-variant: small-caps;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 11px;
  border-radius: 999px;
}

.staff-group { margin-bottom: 48px; }
.staff-group-label { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.staff-group-label .dot { width: 10px; height: 10px; border-radius: 50%; }
.staff-group-label span { font-family: var(--font-display); font-size: 18px; }

/* footer */

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: var(--bg-1);
  padding: 40px 0 28px;
}

.footer-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 30px; margin-bottom: 30px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 30px; height: 30px; border-radius: 50%; }
.footer-brand span { font-family: var(--font-display); font-size: 17px; }

.footer-links { display: flex; gap: 34px; flex-wrap: wrap; }
.footer-col h4 { font-size: 11px; font-variant: small-caps; letter-spacing: 0.1em; color: var(--text-faint); margin-bottom: 12px; }
.footer-col a { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 9px; }
.footer-col a:hover { color: var(--aqua); }

.footer-bottom {
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--text-faint);
}

/* utility */

.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.stack { display: flex; flex-direction: column; gap: 10px; }

@media (max-width: 880px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-top { flex-direction: column; }
}

@media (max-width: 620px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .motd-card { flex-wrap: wrap; }
  .motd-meta { width: 100%; justify-content: space-between; }
  thead th:nth-child(4), tbody td:nth-child(4) { display: none; }
}

.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 49;
  background: rgba(14,14,16,0.98);
  backdrop-filter: blur(10px);
  display: none;
  flex-direction: column;
  padding: 24px;
  gap: 6px;
}

.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 16px; border-radius: var(--radius-sm); font-size: 16px; color: var(--text-dim); border-bottom: 1px solid var(--line); }
.mobile-menu a.active { color: var(--magenta); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
}