/* ==========================================================================
   Fonts
   ========================================================================== */
@font-face {
  font-family: "Jakarta";
  src: url("../fonts/jakarta-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jakarta";
  src: url("../fonts/jakarta-latin-ext.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Monocraft";
  src: url("../fonts/monocraft.woff2") format("woff2");
  font-display: swap;
}

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
  --bg: #0d0d0f;
  --bg-raise: #131316;
  --card: #18181c;
  --card-2: #1e1e23;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.13);
  --text: #f4f4f5;
  --muted: #a3a3ad;
  --dim: #6f6f7a;
  --accent: #ff8a1f;
  --accent-2: #ffb15c;
  --accent-ink: #1c0f03;
  --green: #22c55e;
  --amber: #f5b03c;
  --red: #ef4444;
  --discord: #5865f2;
  --radius: 18px;
  --radius-sm: 12px;
  --gap: 12px;
  --maxw: 1104px;
  --font: "Jakarta", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pixel: "Monocraft", ui-monospace, "Consolas", monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: dark;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body::before {
  /* warm glow behind the grid */
  content: "";
  position: fixed;
  inset: -20vh -10vw auto;
  height: 80vh;
  background:
    radial-gradient(40% 50% at 50% 30%, rgba(255, 138, 31, 0.08), transparent 70%),
    radial-gradient(30% 40% at 20% 10%, rgba(88, 101, 242, 0.05), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.fill { fill: currentColor; stroke: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }

.dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
  animation: ping 2.4s infinite;
  flex: none;
}
.dot--amber { background: var(--amber); box-shadow: 0 0 0 0 rgba(245, 176, 60, 0.55); animation-name: ping-amber; }
.dot--red { background: var(--red); animation: none; }
@keyframes ping { 70% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
@keyframes ping-amber { 70% { box-shadow: 0 0 0 7px rgba(245, 176, 60, 0); } 100% { box-shadow: 0 0 0 0 rgba(245, 176, 60, 0); } }

/* ==========================================================================
   Announcement bar
   ========================================================================== */
.announce {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 38px;
  padding: 6px 48px;
  background: linear-gradient(90deg, #2a1606, #3a1f08 50%, #2a1606);
  border-bottom: 1px solid rgba(255, 138, 31, 0.25);
  font-size: 13px;
  font-weight: 600;
  color: #ffd9b0;
}
.announce__text { display: inline-flex; align-items: center; gap: 10px; text-align: center; }
.announce__text svg { width: 16px; height: 16px; color: var(--accent); }
.announce__text .announce__go { transition: transform 0.25s var(--ease); }
.announce__text:hover .announce__go { transform: translateX(3px); }
.announce__text:hover span { text-decoration: underline; text-underline-offset: 3px; }
.announce__close {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px;
  color: rgba(255, 217, 176, 0.7);
}
.announce__close:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.announce__close svg { width: 16px; height: 16px; }

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 13, 15, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.nav.is-stuck { border-bottom-color: var(--line); background: rgba(13, 13, 15, 0.86); }
.nav__inner {
  max-width: 1320px;
  margin: 0 auto;
  height: 68px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: -0.01em; white-space: nowrap; }
.brand img { width: 32px; height: 32px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4)); }
.nav__links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__links a {
  position: relative;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.nav__links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav__links a.is-active { color: var(--accent); }
.nav__only-mobile { display: none; }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-raise);
  font-size: 13px; font-weight: 700; color: var(--muted);
  white-space: nowrap;
}
.status-pill b { color: var(--text); font-variant-numeric: tabular-nums; }
.icon-btn {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-raise);
  color: var(--muted);
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.icon-btn:hover { color: #fff; }
.icon-btn--discord:hover { background: var(--discord); border-color: var(--discord); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 16px;
  border-radius: 12px;
  font-size: 14px; font-weight: 800;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), background 0.2s, box-shadow 0.2s;
}
.btn--accent {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 6px 20px -8px rgba(255, 138, 31, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn--accent:hover { background: var(--accent-2); transform: translateY(-1px); }
.btn--accent:active { transform: translateY(0); }
.btn--ghost { border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.08); }
.nav__burger { display: none; width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-raise); place-items: center; }
.nav__burger svg { width: 20px; height: 20px; }

/* ==========================================================================
   Layout
   ========================================================================== */
.wrap { width: 100%; max-width: calc(var(--maxw) + 48px); margin: 0 auto; padding: 36px 24px 72px; flex: 1; }

/* ==========================================================================
   Bento grid
   ========================================================================== */
.bento {
  display: grid;
  gap: var(--gap);
  grid-template-columns: 1.4fr 1fr 1.4fr;
  grid-template-rows: 250px 54px 200px 200px 136px;
  grid-template-areas:
    "store   logo   join"
    "store   ip     join"
    "discord status rules"
    "leader  leader vote"
    "bans    bans   bans";
}
.card--store { grid-area: store; }
.card--logo { grid-area: logo; }
.ip-pill { grid-area: ip; }
.card--join { grid-area: join; }
.card--discord { grid-area: discord; }
.card--status { grid-area: status; }
.card--rules { grid-area: rules; }
.card--leader { grid-area: leader; }
.card--vote { grid-area: vote; }
.card--bans { grid-area: bans; }

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
  --bg-a: #1b1b20;
  --bg-b: #141417;
  --glow: rgba(255, 255, 255, 0.06);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding: 20px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 85% 100%, var(--glow), transparent 60%),
    linear-gradient(155deg, var(--bg-a) 0%, var(--bg-b) 72%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.4s var(--ease);
}
.card::before {
  /* grain */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../img/grain.png");
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.card::after {
  /* cursor spotlight */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.07), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
a.card:hover, .card--join:hover, .card--status:hover { border-color: var(--line-2); }
a.card:hover {
  transform: translateY(-3px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 22px 44px -22px rgba(0, 0, 0, 0.8);
}
.card:hover::after { opacity: 1; }

.card__art {
  position: absolute;
  right: -2%;
  bottom: -8%;
  height: 112%;
  width: auto;
  max-width: none;
  z-index: -1;
  pointer-events: none;
  user-select: none;
  transform-origin: 70% 100%;
  transition: transform 0.6s var(--ease);
}
a.card:hover .card__art { transform: scale(1.045) translateY(-2px); }

.card__title {
  position: relative;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.15;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}
.card__title--icon { display: inline-flex; align-items: center; gap: 10px; }
.card__title--icon svg { width: 24px; height: 24px; }
.card__sub {
  position: relative;
  max-width: 58%;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
}
.card__arrow {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(10, 10, 12, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.3s var(--ease);
}
.card__arrow svg { width: 16px; height: 16px; }
a.card:hover .card__arrow { background: var(--accent); border-color: transparent; color: var(--accent-ink); transform: translateX(2px); }

.badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 8px 22px -8px rgba(255, 138, 31, 0.9);
}
.badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-ink); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.chip {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.card__stat { position: relative; display: flex; flex-direction: column; gap: 2px; }
.card__stat b { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45); }
.card__stat span { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.82); }

/* card themes */
.card--store { --bg-a: #3e240f; --bg-b: #1a120c; --glow: rgba(255, 138, 31, 0.28); }
.card--store .card__art { right: -1%; bottom: -2%; height: 102%; }
.card--store .card__sub { max-width: 45%; }

.card--discord { --bg-a: #2b3090; --bg-b: #151634; --glow: rgba(120, 132, 255, 0.35); }
.card--discord .card__art { right: 3%; bottom: -14%; height: 112%; }

.card--rules { --bg-a: #10443d; --bg-b: #0d1716; --glow: rgba(45, 212, 191, 0.25); }
.card--rules .card__art { right: 4%; bottom: -17%; height: 116%; }

.card--leader { --bg-a: #2f1b4b; --bg-b: #120e1b; --glow: rgba(163, 94, 240, 0.3); }
.card--leader .card__art { right: 7%; bottom: -16%; height: 120%; }
.card--leader .card__sub { max-width: 46%; margin-top: 6px; }

.card--vote { --bg-a: #12462a; --bg-b: #0d1711; --glow: rgba(34, 197, 94, 0.28); }
.card--vote .card__art { right: -1%; bottom: -16%; height: 116%; }

.card--bans { --bg-a: #461217; --bg-b: #1a0b0c; --glow: rgba(239, 68, 68, 0.3); flex-direction: column; justify-content: center; }
.card--bans .card__art { right: 10%; bottom: -26%; height: 128%; }
.card--bans .card__sub { max-width: 60%; margin-top: 4px; }

/* logo card */
.card--logo { --bg-a: #1c1c21; --bg-b: #131316; align-items: center; justify-content: center; padding: 14px; }
.logo-glow {
  position: absolute;
  inset: 18% 16% 12%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 138, 31, 0.22), rgba(88, 101, 242, 0.08) 60%, transparent);
  filter: blur(14px);
  z-index: -1;
  animation: breathe 6s ease-in-out infinite;
}
.logo-img {
  height: 100%;
  width: auto;
  max-height: 222px;
  object-fit: contain;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.55));
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-7px); } }
@keyframes breathe { 50% { opacity: 0.65; transform: scale(0.94); } }

/* copy-IP pill */
.ip-pill {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #1d1d22, #17171b);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.25s, transform 0.25s var(--ease), background 0.25s;
  overflow: hidden;
}
.ip-pill svg { width: 17px; height: 17px; color: var(--muted); transition: color 0.2s; }
.ip-pill:hover { border-color: rgba(255, 138, 31, 0.55); transform: translateY(-1px); }
.ip-pill:hover svg { color: var(--accent); }
.ip-pill__ip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ip-pill__done {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  transform: translateY(100%);
  transition: transform 0.35s var(--ease);
}
.ip-pill.is-copied .ip-pill__done { transform: translateY(0); }

/* ==========================================================================
   How to join (Minecraft "Add Server" screen)
   ========================================================================== */
.card--join { --bg-a: #101412; --bg-b: #0b0d0c; justify-content: flex-start; gap: 0; }
.join__bg {
  position: absolute;
  inset: -12px;
  z-index: -1;
  background: url("../img/art/join-bg.webp") center 40% / cover;
  filter: blur(3px) brightness(0.5) saturate(1.15);
}
.join__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 35%, rgba(0, 0, 0, 0.55)),
    radial-gradient(120% 80% at 0% 0%, rgba(0, 0, 0, 0.4), transparent 60%);
}
.mc {
  display: flex;
  flex-direction: column;
  margin: 16px -40px 0 26px;
  font-family: var(--pixel);
  font-variant-ligatures: none;
}
.mc__label {
  margin: 6px 0 5px 2px;
  font-size: 15px;
  color: #a0a0a0;
  text-shadow: 2px 2px 0 #2a2a2a;
  letter-spacing: 0.02em;
}
.mc__field {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 11px;
  background: #000;
  border: 2px solid #a0a0a0;
  box-shadow: 0 0 0 2px #000;
  color: #e0e0e0;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
}
.mc__field.is-active { border-color: #fff; }
.mc__caret { margin-left: 1px; opacity: 0; }
.mc__field.is-active .mc__caret { animation: caret 0.9s steps(1) infinite; }
@keyframes caret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.join__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.join__steps { font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, 0.7); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7); }
.join__steps b { color: var(--accent); margin: 0 2px; }
.mc-btn {
  flex: none;
  height: 36px;
  padding: 0 16px;
  font-family: var(--pixel);
  font-size: 14px;
  color: #fff;
  text-shadow: 2px 2px 0 #3f3f3f;
  background: #6f6f6f;
  border: 2px solid #000;
  box-shadow: inset 2px 2px 0 #a8a8a8, inset -2px -3px 0 #4a4a4a;
  image-rendering: pixelated;
}
.mc-btn:hover { background: #7e86c6; box-shadow: inset 2px 2px 0 #b3bbf0, inset -2px -3px 0 #535b98; color: #ffffa0; }
.mc-btn:active { box-shadow: inset 2px 2px 0 #4a4a4a, inset -2px -2px 0 #a8a8a8; }

/* ==========================================================================
   Status card (countdown / live players)
   ========================================================================== */
.card--status { --bg-a: #1c1c21; --bg-b: #131316; align-items: stretch; text-align: center; padding: 18px 18px 14px; gap: 8px; }
.status { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 8px; flex: 1; }
.card--status[data-state="soon"] .status--soon,
.card--status[data-state="live"] .status--live,
.card--status[data-state="offline"] .status--live { display: flex; }
.eyebrow { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.countdown { display: flex; align-items: flex-start; gap: 4px; font-variant-numeric: tabular-nums; }
.countdown div { display: flex; flex-direction: column; align-items: center; min-width: 44px; }
.countdown b { font-size: 30px; font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; color: var(--accent); }
.countdown small { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); }
.countdown i { font-style: normal; font-size: 24px; font-weight: 800; line-height: 1.15; color: rgba(255, 255, 255, 0.18); }
.avatars { display: flex; margin-bottom: 2px; }
.avatars img {
  width: 30px;
  height: 30px;
  margin-left: -8px;
  border-radius: 8px;
  border: 2px solid #19191d;
  image-rendering: pixelated;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
}
.avatars img:first-child { margin-left: 0; }
.card--status[data-state="offline"] .avatars { filter: grayscale(1); opacity: 0.45; }
.big-num { font-size: 42px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; color: var(--accent); font-variant-numeric: tabular-nums; }
.card--status[data-state="offline"] .big-num { color: var(--muted); font-size: 30px; }
.status__note { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--muted); }
.status__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-align: left;
}
.status__foot:hover { color: var(--text); }
.mini-arrow {
  display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255, 138, 31, 0.14);
  color: var(--accent);
  transition: background 0.2s, color 0.2s, transform 0.25s var(--ease);
}
.mini-arrow svg { width: 14px; height: 14px; }
.status__foot:hover .mini-arrow { background: var(--accent); color: var(--accent-ink); transform: translateX(2px); }

/* ==========================================================================
   Reveal on load
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(14px); animation: rise 0.7s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 60ms + 60ms); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent); }
.footer__inner {
  max-width: calc(var(--maxw) + 48px);
  margin: 0 auto;
  padding: 44px 24px 28px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer__brand p { margin: 12px 0 16px; max-width: 280px; font-size: 13px; color: var(--muted); }
.footer__brand .brand { font-size: 16px; }
.footer__brand .brand img { width: 28px; height: 28px; }
.ip-mini {
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-raise);
  font-size: 13px; font-weight: 700;
  transition: border-color 0.2s;
}
.ip-mini svg { width: 15px; height: 15px; color: var(--muted); }
.ip-mini:hover { border-color: rgba(255, 138, 31, 0.55); }
.socials { display: flex; gap: 8px; margin-top: 14px; }
.socials a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); color: var(--muted); }
.socials a:hover { color: #fff; border-color: var(--line-2); }
.socials svg { width: 15px; height: 15px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col h3 { margin-bottom: 4px; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.footer__col a { font-size: 14px; font-weight: 600; color: var(--muted); width: fit-content; transition: color 0.2s; }
.footer__col a:hover { color: var(--text); }
.footer__base {
  max-width: calc(var(--maxw) + 48px);
  margin: 0 auto;
  padding: 18px 24px 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--dim);
}

/* ==========================================================================
   Toast
   ========================================================================== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: rgba(24, 24, 28, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 18px 50px -12px rgba(0, 0, 0, 0.8);
  font-size: 14px;
  font-weight: 700;
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.4s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast svg { width: 18px; height: 18px; color: var(--green); }
.toast.is-info svg { color: var(--accent); }

/* ==========================================================================
   Tabs (store, leaderboards)
   ========================================================================== */
.tabs { display: flex; gap: 6px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none;
  height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-raise);
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.tab:hover { color: var(--text); border-color: var(--line-2); }
.tab.is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tab { display: inline-flex; align-items: center; gap: 7px; }
.tab svg { width: 16px; height: 16px; }

/* ==========================================================================
   Inner pages
   ========================================================================== */
.page-hero {
  --bg-a: #1b1b20;
  --bg-b: #141417;
  --glow: rgba(255, 255, 255, 0.06);
  min-height: 230px;
  justify-content: flex-end;
  padding: 28px 32px;
  margin-bottom: var(--gap);
}
.page-hero .card__art { right: 5%; bottom: -22%; height: 128%; }
.page-hero h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.05; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5); }
.page-hero p { max-width: 520px; margin-top: 10px; font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, 0.82); }
.crumbs { display: flex; gap: 8px; margin-bottom: 14px; font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, 0.6); }
.crumbs a:hover { color: #fff; }
.page-hero--rules { --bg-a: #10443d; --bg-b: #0d1716; --glow: rgba(45, 212, 191, 0.25); }
.page-hero--vote { --bg-a: #12462a; --bg-b: #0d1711; --glow: rgba(34, 197, 94, 0.28); }
.page-hero--vote .card__art { bottom: -24%; height: 130%; }
.page-hero--legal { --bg-a: #26262d; --bg-b: #141417; --glow: rgba(255, 138, 31, 0.12); min-height: 190px; }

.page-grid { display: grid; grid-template-columns: 260px 1fr; gap: var(--gap); align-items: start; }
.panel {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #19191d, #151518);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.toc { position: sticky; top: 88px; padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.toc h2 { padding: 6px 10px 10px; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.toc a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--muted); }
.toc a:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.toc a.is-active { background: rgba(255, 138, 31, 0.1); color: var(--accent); }
.toc .num { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: rgba(255, 255, 255, 0.06); font-size: 11px; font-weight: 800; }
.toc a.is-active .num { background: var(--accent); color: var(--accent-ink); }
.toc__note { margin: 10px 10px 4px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--dim); }
.toc__note a { display: inline; padding: 0; font-size: inherit; color: var(--accent-2); }
.toc__note a:hover { background: none; text-decoration: underline; }

.sections { display: flex; flex-direction: column; gap: var(--gap); }
.section { padding: 26px 28px; scroll-margin-top: 90px; }
.section__head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.section__icon {
  display: grid; place-items: center; flex: none;
  width: 42px; height: 42px; border-radius: 12px;
  background: rgba(255, 138, 31, 0.12);
  color: var(--accent);
}
.section__icon svg { width: 20px; height: 20px; }
.section h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.section__head p { font-size: 13px; color: var(--muted); }
.rules { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; counter-reset: rule; }
.rules li {
  counter-increment: rule;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 4px 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.rules li::before {
  content: var(--sec, "") counter(rule);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #222228;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent-2);
}
.rules b { font-size: 15px; font-weight: 700; }
.rules span { font-size: 14px; color: var(--muted); }
.rules a, .callout p a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.callout {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 138, 31, 0.3);
  background: linear-gradient(135deg, rgba(255, 138, 31, 0.12), rgba(255, 138, 31, 0.03));
  font-size: 14px;
  color: #ffd9b0;
}
.callout svg { width: 20px; height: 20px; color: var(--accent); margin-top: 1px; }
.callout a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.vote-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--gap); }
.vote-site {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #1b1b20, #151518);
  transition: border-color 0.25s, transform 0.3s var(--ease);
}
.vote-site:hover { border-color: var(--line-2); transform: translateY(-2px); }
.vote-site__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.vote-site__num {
  display: grid; place-items: center; flex: none;
  width: 34px; height: 34px; border-radius: 10px;
  background: rgba(34, 197, 94, 0.12); color: var(--green);
  font-weight: 800;
}
.vote-site__state {
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.vote-site h3 { font-size: 16px; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.vote-site .btn { width: 100%; margin-top: auto; }
.vote-site.is-voted .vote-site__num, .vote-site.is-voted .vote-site__state { background: var(--green); color: #052e12; }
.vote-site.is-soon .btn { background: rgba(255, 255, 255, 0.06); color: var(--muted); box-shadow: none; border: 1px solid var(--line); }
.vote-site.is-soon .btn:hover { transform: none; background: rgba(255, 255, 255, 0.09); }
.vote-site.is-soon .vote-site__num, .vote-site.is-soon .vote-site__state { background: rgba(255, 255, 255, 0.06); color: var(--muted); }
.btn--green { background: var(--green); color: #052e12; box-shadow: 0 6px 20px -10px rgba(34, 197, 94, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn--green:hover { background: #3ee077; transform: translateY(-1px); }
.rewards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.reward { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.reward__icon { width: 64px; height: 64px; image-rendering: pixelated; }
.reward h3 { font-size: 16px; font-weight: 800; }
.reward p { font-size: 13px; color: var(--muted); }
.block-title { margin: 36px 0 14px; font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }

.prose { padding: 30px 32px; font-size: 15px; color: #d4d4d8; }
.prose h2 { margin: 32px 0 10px; font-size: 22px; font-weight: 800; color: var(--text); scroll-margin-top: 90px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 22px 0 6px; font-size: 16px; font-weight: 800; color: var(--text); }
.prose p, .prose ul { margin: 0 0 12px; }
.prose ul { padding-left: 20px; }
.prose li { margin: 4px 0; }
.prose a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.prose .meta { font-size: 13px; color: var(--dim); }

.notfound { display: grid; place-items: center; text-align: center; gap: 18px; padding: 60px 24px; min-height: 60vh; }
.notfound img { width: 220px; animation: float 6s ease-in-out infinite; filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.55)); }
.notfound h1 { font-size: 56px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.notfound p { color: var(--muted); max-width: 380px; }
.notfound .mc-text { font-family: var(--pixel); color: #a0a0a0; text-shadow: 2px 2px 0 #2a2a2a; font-size: 15px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1120px) {
  .nav__links a { padding: 8px 9px; }
  .status-pill { display: none; }
}

@media (max-width: 1023px) {
  .nav__inner { gap: 14px; }
  .nav__burger { display: grid; }
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 10px 16px 18px;
    background: rgba(13, 13, 15, 0.97);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0.25s;
  }
  .nav.is-open .nav__links { opacity: 1; transform: none; visibility: visible; }
  .nav__links a { padding: 12px 12px; font-size: 15px; }
  .nav__only-mobile { display: block; }
  .nav__actions { margin-left: auto; }
  .icon-btn--discord { display: none; }

  .bento {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 236px 54px 250px 210px 210px 150px;
    grid-template-areas:
      "logo    join"
      "ip      join"
      "store   status"
      "discord rules"
      "leader  vote"
      "bans    bans";
  }
  .card--leader .card__sub { display: none; }
  .footer__inner { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .page-grid { grid-template-columns: 1fr; }
  .toc { position: static; flex-direction: row; flex-wrap: wrap; }
  .toc h2, .toc__note { display: none; }
  .rewards { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --gap: 10px; --radius: 16px; }
  .nav__inner { height: 60px; padding: 0 16px; }
  .brand { font-size: 16px; }
  .nav .btn--accent span { display: none; }
  .nav .btn--accent { width: 38px; padding: 0; }
  .wrap { padding: 18px 16px 56px; }
  .bento {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-rows: auto;
    grid-template-areas:
      "logo" "ip" "status" "join" "store" "discord" "vote" "rules" "leader" "bans";
  }
  .card { min-height: 188px; padding: 18px; }
  .card--logo { min-height: 210px; }
  .logo-img { max-height: 190px; }
  .ip-pill { height: 54px; }
  .card--status { min-height: 170px; }
  .card--join { min-height: 290px; }
  .card--store { min-height: 250px; }
  .card--bans { min-height: 150px; }
  .card--bans .card__art { right: 2%; height: 150%; bottom: -30%; }
  .card--leader .card__art { right: -4%; }
  .card__sub, .card--leader .card__sub, .card--bans .card__sub { max-width: 54%; }
  .card--leader .card__sub { display: none; }
  .mc { margin-right: -30px; margin-left: 4px; }
  .countdown div { min-width: 40px; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 26px; padding-top: 34px; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__base { flex-direction: column; }
  .page-hero { padding: 22px; min-height: 200px; }
  .page-hero .card__art { right: -18%; height: 110%; bottom: -14%; opacity: 0.55; }
  .page-hero h1 { max-width: 80%; }
  .page-hero p { max-width: 66%; }
  .page-hero h1 { max-width: none; overflow-wrap: anywhere; }
  .section { padding: 20px 18px; }
  .prose { padding: 22px 18px; }
  .announce { padding: 6px 40px 6px 14px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
