/* ============================================================
   AdibMC — Bangladesh's Premier Minecraft Server
   Design System: Vibrant Dark Mode + Yellow Accents
   ============================================================ */

:root {
  --gold: #ffc107;
  --gold-light: #ffd700;
  --gold-dark: #e0a800;
  --bg: #121212;
  --bg-2: #1a1a1a;
  --bg-3: #222222;
  --txt: #f1f1f1;
  --txt-dim: #a8a8a8;
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--txt);
  font-family: "Outfit", system-ui, sans-serif;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; height: 100vh; }

::selection { background: var(--gold); color: #101010; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #0d0d0d; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold), var(--gold-dark));
  border-radius: 8px;
  border: 2px solid #0d0d0d;
}
::-webkit-scrollbar-thumb:hover { background: var(--gold-light); }

/* ============================================================
   LOADING SCREEN
   ============================================================ */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 193, 7, 0.10), transparent 55%),
    #0b0b0b;
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
#loader.loaded { opacity: 0; visibility: hidden; }

#loader::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 193, 7, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 193, 7, 0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at center, #000 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at center, #000 25%, transparent 75%);
}

.loader-inner {
  position: relative;
  width: min(84vw, 420px);
  text-align: center;
}

.loader-cube {
  width: 54px;
  height: 54px;
  margin: 0 auto 26px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  box-shadow: 0 0 34px rgba(255, 193, 7, 0.65);
  animation: cubeSpin 2.4s var(--ease) infinite;
  image-rendering: pixelated;
}
@keyframes cubeSpin {
  0%   { transform: rotate(0deg) scale(1); border-radius: 4px; }
  40%  { transform: rotate(180deg) scale(0.82); border-radius: 50%; }
  70%  { transform: rotate(270deg) scale(1.06); border-radius: 8px; }
  100% { transform: rotate(360deg) scale(1); border-radius: 4px; }
}

.loader-logo {
  font-family: "Press Start 2P", monospace;
  font-size: clamp(24px, 7vw, 38px);
  letter-spacing: 2px;
  color: var(--gold-light);
  text-shadow:
    0 0 12px rgba(255, 215, 0, 0.9),
    0 0 40px rgba(255, 193, 7, 0.55),
    4px 4px 0 rgba(0, 0, 0, 0.65);
  animation: logoPulse 1.8s ease-in-out infinite;
}
.loader-logo span { color: #fff; }
@keyframes logoPulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.035); filter: brightness(1.25); }
}

.loader-sub {
  margin-top: 14px;
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #8d8d8d;
}

.loader-bar {
  position: relative;
  height: 12px;
  margin-top: 30px;
  background: #1d1d1d;
  border: 2px solid #2c2c2c;
  overflow: hidden;
  image-rendering: pixelated;
}
.loader-bar-fill {
  height: 100%;
  width: 0%;
  background: repeating-linear-gradient(
    45deg,
    var(--gold) 0 10px,
    var(--gold-light) 10px 20px
  );
  box-shadow: 0 0 18px rgba(255, 193, 7, 0.8);
  transition: width 0.25s linear;
}
.loader-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 1.5px;
  color: var(--gold);
  font-family: "Press Start 2P", monospace;
}

/* ============================================================
   GLASS / CARD SYSTEM
   ============================================================ */
.glass {
  background: rgba(26, 26, 26, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.card {
  background: linear-gradient(160deg, var(--bg-2) 0%, #161616 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
  position: relative;
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 193, 7, 0.14) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.75s var(--ease);
  pointer-events: none;
}
.card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 193, 7, 0.55);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 193, 7, 0.22);
}
.card:hover::after { transform: translateX(120%); }

.card-flat { border-radius: var(--radius); background: var(--bg-2); border: 1px solid rgba(255,255,255,.06); }

/* Pixel-corner accent block */
.pixel-corner {
  position: absolute;
  top: 0; right: 0;
  width: 42px; height: 42px;
  background:
    linear-gradient(45deg, transparent 50%, var(--gold) 50%);
  opacity: 0.85;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.nav-shell {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  transition: background 0.35s, box-shadow 0.35s, border-color 0.35s;
  border-bottom: 1px solid transparent;
}
.nav-shell.scrolled {
  background: rgba(14, 14, 14, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: rgba(255, 193, 7, 0.28);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}
.nav-link {
  position: relative;
  font-weight: 500;
  color: #cfcfcf;
  transition: color 0.25s;
  padding: 6px 2px;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
  transition: width 0.3s var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--gold-light); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.brand-mark {
  font-family: "Press Start 2P", monospace;
  font-size: 17px;
  color: var(--gold-light);
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.7);
  transition: filter 0.3s;
}
.brand-mark:hover { filter: drop-shadow(0 0 10px rgba(255, 193, 7, 0.9)); }
.brand-mark b { color: #fff; font-weight: 400; }

#mobileMenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease);
}
#mobileMenu.open { max-height: 460px; }

.burger span {
  display: block;
  width: 24px; height: 2.5px;
  background: var(--gold);
  margin: 5px auto;
  transition: transform 0.35s var(--ease), opacity 0.25s;
  box-shadow: 0 0 6px rgba(255, 193, 7, 0.7);
}
.burger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: 0.4px;
  border-radius: 10px;
  padding: 13px 26px;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.3s, background 0.3s, color 0.3s;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  user-select: none;
}
.btn:active { transform: scale(0.96); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: #161200;
  box-shadow: 0 6px 22px rgba(255, 193, 7, 0.32), inset 0 -3px 0 rgba(0, 0, 0, 0.28);
}
.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(255, 193, 7, 0.5), inset 0 -3px 0 rgba(0, 0, 0, 0.28);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 193, 7, 0.5);
  color: var(--gold-light);
}
.btn-ghost:hover {
  background: rgba(255, 193, 7, 0.12);
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}

.btn-dark {
  background: #101010;
  border-color: rgba(255, 255, 255, 0.14);
  color: #ededed;
}
.btn-dark:hover { border-color: var(--gold); color: var(--gold-light); transform: translateY(-3px); }

.btn-copy-ip { min-width: min(100%, 330px); font-family: "Press Start 2P", monospace; font-size: 13px; padding: 17px 22px; }
.btn-copy-ip .ip { color: inherit; opacity: 0.85; font-size: 12px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 130px 0 70px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.82) 0%, rgba(18, 18, 18, 0.9) 55%, var(--bg) 100%),
    radial-gradient(ellipse at 20% 10%, rgba(255, 193, 7, 0.22), transparent 45%),
    radial-gradient(ellipse at 85% 75%, rgba(255, 193, 7, 0.12), transparent 50%),
    linear-gradient(135deg, #171410 0%, #0e0e0e 60%, #131313 100%);
}
/* pixel grid overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 193, 7, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 193, 7, 0.055) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
  animation: gridDrift 26s linear infinite;
}
@keyframes gridDrift {
  to { background-position: 52px 52px, 52px 52px; }
}

/* floating minecraft blocks */
.float-block {
  position: absolute;
  width: 46px; height: 46px;
  border-radius: 5px;
  opacity: 0.35;
  z-index: -1;
  background: linear-gradient(135deg, var(--gold) 0%, #8a6100 100%);
  box-shadow: inset -6px -6px 0 rgba(0, 0, 0, 0.35), 0 0 24px rgba(255, 193, 7, 0.28);
  animation: floaty 9s ease-in-out infinite;
}
.float-block.grass {
  background: linear-gradient(180deg, #6cc24a 0 34%, #7a5230 34% 100%);
  box-shadow: inset -6px -6px 0 rgba(0, 0, 0, 0.3);
  opacity: 0.3;
}
.float-block.stone {
  background: linear-gradient(135deg, #8d8d8d 0%, #565656 100%);
  opacity: 0.22;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-34px) rotate(14deg); }
}

.hero-title {
  font-size: clamp(2.3rem, 6.4vw, 4.6rem);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -1.5px;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.75);
}
.grad-gold {
  background: linear-gradient(100deg, var(--gold-light) 0%, var(--gold) 45%, #ff9d00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(255, 193, 7, 0.35));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(255, 193, 7, 0.09);
  border: 1px solid rgba(255, 193, 7, 0.35);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
}

/* live status */
.status-card {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 193, 7, 0.35);
  background: rgba(18, 18, 18, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}
.dot-live {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #28e070;
  box-shadow: 0 0 0 0 rgba(40, 224, 112, 0.7);
  animation: ping 1.8s infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(40, 224, 112, 0.65); }
  70% { box-shadow: 0 0 0 12px rgba(40, 224, 112, 0); }
  100% { box-shadow: 0 0 0 0 rgba(40, 224, 112, 0); }
}
.player-bar {
  height: 8px;
  background: #262626;
  border-radius: 999px;
  overflow: hidden;
}
.player-bar > i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  box-shadow: 0 0 12px rgba(255, 193, 7, 0.7);
  transition: width 1s var(--ease);
}

.signal { display: inline-flex; align-items: flex-end; gap: 3px; height: 16px; }
.signal i {
  width: 4px;
  background: #28e070;
  border-radius: 2px;
  display: block;
  animation: sig 1.4s ease-in-out infinite;
}
.signal i:nth-child(1) { height: 6px; animation-delay: 0s; }
.signal i:nth-child(2) { height: 10px; animation-delay: 0.18s; }
.signal i:nth-child(3) { height: 14px; animation-delay: 0.36s; }
.signal i:nth-child(4) { height: 16px; animation-delay: 0.54s; }
@keyframes sig { 0%,100% { opacity: 0.4; } 50% { opacity: 1; } }

/* scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 44px;
  border: 2px solid rgba(255, 193, 7, 0.55);
  border-radius: 14px;
}
.scroll-cue::after {
  content: "";
  position: absolute;
  top: 7px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 3px;
  background: var(--gold);
  animation: cue 1.7s infinite;
}
@keyframes cue {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(16px); opacity: 0; }
}

/* ============================================================
   TICKER
   ============================================================ */
.ticker {
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light), var(--gold), var(--gold-dark));
  color: #141000;
  overflow: hidden;
  white-space: nowrap;
  font-weight: 700;
  letter-spacing: 1.4px;
  font-size: 13.5px;
  text-transform: uppercase;
  padding: 11px 0;
  border-top: 2px solid rgba(0,0,0,.35);
  border-bottom: 2px solid rgba(0,0,0,.35);
}
.ticker-track {
  display: inline-block;
  animation: tickerMove 34s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { padding: 0 26px; }
@keyframes tickerMove {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   SECTION HELPERS
   ============================================================ */
.section { padding: 92px 0; position: relative; }
.section-alt { background: #0e0e0e; }

.sec-tag {
  font-family: "Press Start 2P", monospace;
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.sec-title {
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-top: 12px;
}
.sec-desc { color: var(--txt-dim); max-width: 640px; margin-top: 12px; line-height: 1.7; }

.divider-gold {
  width: 74px; height: 5px;
  margin-top: 16px;
  background: linear-gradient(90deg, var(--gold), transparent);
  box-shadow: 0 0 14px rgba(255, 193, 7, 0.6);
}

/* reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal.in-view { opacity: 1; transform: none; }

/* ============================================================
   MODE CARDS
   ============================================================ */
.mode-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: var(--bg-2);
  transition: transform 0.45s var(--ease), border-color 0.4s, box-shadow 0.45s;
  display: flex;
  flex-direction: column;
  min-height: 268px;
}
.mode-card .mode-art {
  height: 128px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 54px;
  background-size: cover;
}
.mode-card .mode-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.55;
}
.mode-card .mode-art span { position: relative; filter: drop-shadow(0 6px 14px rgba(0,0,0,.6)); transition: transform .5s var(--ease); }
.mode-card .mode-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.mode-card .mode-body p { color: var(--txt-dim); font-size: 14.5px; line-height: 1.65; margin-top: 8px; flex: 1; }
.mode-card .mode-go {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-weight: 600;
  font-size: 14px;
  transition: gap 0.3s;
}
.mode-card:hover {
  transform: translateY(-9px);
  border-color: rgba(255, 193, 7, 0.7);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.6), 0 0 26px rgba(255, 193, 7, 0.16);
}
.mode-card:hover .mode-art span { transform: scale(1.15) rotate(-6deg); }
.mode-card:hover .mode-go { gap: 14px; }

.art-survival { background: linear-gradient(140deg, #1f4d1c, #0f2b12 60%, #123018); }
.art-bedwars { background: linear-gradient(140deg, #6b1414, #2c0a0a 60%, #451010); }
.art-skyblock { background: linear-gradient(140deg, #17506e, #0a2436 60%, #123a52); }
.art-anarchy { background: linear-gradient(140deg, #4a1668, #1d0829 60%, #33104a); }
.art-lifesteal { background: linear-gradient(140deg, #7a0f2e, #2b0512 60%, #4d0a1d); }

/* ============================================================
   NEWS
   ============================================================ */
.news-card { display: flex; flex-direction: column; height: 100%; }
.news-thumb {
  height: 168px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  overflow: hidden;
}
.news-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,.25) 2px, transparent 2px),
    linear-gradient(90deg, rgba(0,0,0,.25) 2px, transparent 2px);
  background-size: 30px 30px;
}
.news-thumb em {
  position: relative;
  font-style: normal;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,.65));
  transition: transform .5s var(--ease);
}
.news-card:hover .news-thumb em { transform: scale(1.2) rotate(8deg); }
.news-badge {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.82);
  color: var(--gold-light);
  border: 1px solid rgba(255, 193, 7, 0.55);
}
.news-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.news-meta { display: flex; gap: 14px; font-size: 12.5px; color: #8a8a8a; letter-spacing: .4px; }
.news-title { font-size: 19px; font-weight: 700; margin-top: 10px; line-height: 1.35; }
.news-excerpt { color: var(--txt-dim); font-size: 14.5px; line-height: 1.7; margin-top: 10px; flex: 1; }
.news-more { margin-top: 16px; color: var(--gold); font-weight: 600; font-size: 14px; display: inline-flex; gap: 7px; align-items: center; transition: gap .3s; }
.news-card:hover .news-more { gap: 13px; }

/* ============================================================
   STORE
   ============================================================ */
.rank-card {
  position: relative;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 30px 26px 28px;
  text-align: center;
  transition: transform 0.4s var(--ease), border-color 0.35s, box-shadow 0.4s;
  overflow: hidden;
}
.rank-card.featured {
  border-color: rgba(255, 193, 7, 0.6);
  background: linear-gradient(170deg, rgba(255, 193, 7, 0.11) 0%, var(--bg-2) 42%);
}
.rank-card.featured::before {
  content: "MOST POPULAR";
  position: absolute;
  top: 16px; right: -38px;
  transform: rotate(45deg);
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  color: #171100;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
  padding: 6px 44px;
  box-shadow: 0 4px 14px rgba(0,0,0,.4);
}
.rank-card:hover {
  transform: translateY(-9px);
  border-color: var(--gold);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 193, 7, 0.18);
}
.rank-icon {
  width: 74px; height: 74px;
  margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px;
  border-radius: 12px;
  background: linear-gradient(140deg, #232323, #171717);
  border: 2px solid rgba(255, 193, 7, 0.4);
  box-shadow: inset 0 -5px 0 rgba(0,0,0,.4);
  transition: transform .45s var(--ease), box-shadow .45s;
}
.rank-card:hover .rank-icon { transform: translateY(-5px) rotate(-6deg); box-shadow: 0 12px 26px rgba(0,0,0,.5), 0 0 22px rgba(255,193,7,.3); }
.rank-name { font-size: 22px; font-weight: 800; letter-spacing: .5px; }
.rank-price { margin-top: 12px; display: flex; align-items: baseline; justify-content: center; gap: 9px; }
.rank-price .bdt { font-size: 32px; font-weight: 800; color: var(--gold-light); }
.rank-price .usd { font-size: 14px; color: #8f8f8f; }
.rank-perm { list-style: none; margin-top: 20px; text-align: left; display: grid; gap: 11px; }
.rank-perm li { display: flex; gap: 10px; font-size: 14.3px; color: #c9c9c9; align-items: flex-start; line-height: 1.5; }
.rank-perm li::before {
  content: "";
  flex: 0 0 auto;
  width: 16px; height: 16px;
  margin-top: 3px;
  background: var(--gold);
  clip-path: polygon(14% 44%, 0 60%, 40% 100%, 100% 22%, 84% 8%, 38% 68%);
  box-shadow: 0 0 8px rgba(255,193,7,.6);
}
.key-chip {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: var(--bg-2);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  padding: 15px 18px;
  transition: border-color .3s, transform .3s var(--ease), background .3s;
}
.key-chip:hover { border-color: rgba(255,193,7,.6); transform: translateX(6px); background: #1f1f1f; }

/* ============================================================
   LEADERBOARD / VOTERS
   ============================================================ */
.lb-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--bg-2);
  border: 1px solid rgba(255,255,255,.06);
  transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.lb-row:hover { transform: translateX(7px); border-color: rgba(255,193,7,.5); background: #202020; }
.lb-rank {
  width: 38px; height: 38px;
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  font-family: "Press Start 2P", monospace;
  font-size: 12px;
  border-radius: 9px;
  background: #141414;
  border: 1px solid rgba(255,255,255,.1);
  color: #9a9a9a;
}
.lb-rank.gold { background: linear-gradient(140deg, var(--gold-light), var(--gold-dark)); color: #1a1400; border-color: var(--gold); box-shadow: 0 0 16px rgba(255,193,7,.5); }
.lb-rank.silver { background: linear-gradient(140deg, #e8e8e8, #9d9d9d); color: #1c1c1c; }
.lb-rank.bronze { background: linear-gradient(140deg, #d99a5b, #a4642c); color: #1f1204; }
.lb-avatar {
  width: 40px; height: 40px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px;
  background: linear-gradient(140deg, #262626, #171717);
  border: 1px solid rgba(255,193,7,.3);
}
.lb-name { font-weight: 600; font-size: 15px; }
.lb-sub { font-size: 12.5px; color: #8b8b8b; }
.lb-pts { margin-left: auto; text-align: right; }
.lb-pts b { color: var(--gold-light); font-size: 17px; }
.lb-pts small { display: block; color: #7d7d7d; font-size: 11.5px; letter-spacing: 1px; text-transform: uppercase; }

/* ============================================================
   SOCIALS / DISCORD
   ============================================================ */
.social-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 26px 24px;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid rgba(255,255,255,.07);
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .35s, box-shadow .4s;
}
.social-card:hover { transform: translateY(-7px); border-color: rgba(255,193,7,.6); box-shadow: 0 18px 40px rgba(0,0,0,.55); }
.social-icon {
  width: 56px; height: 56px;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,193,7,.1);
  border: 1px solid rgba(255,193,7,.4);
  color: var(--gold-light);
  transition: transform .4s var(--ease), background .3s;
}
.social-card:hover .social-icon { transform: scale(1.1) rotate(-7deg); background: rgba(255,193,7,.2); }
.social-card h4 { font-size: 18px; font-weight: 700; }
.social-card p { color: var(--txt-dim); font-size: 14px; line-height: 1.6; }

.member-row { display: flex; align-items: center; gap: 11px; padding: 9px 0; border-bottom: 1px dashed rgba(255,255,255,.07); }
.member-row:last-child { border-bottom: none; }
.member-ava {
  width: 34px; height: 34px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  background: #212121;
  border: 1px solid rgba(255,255,255,.09);
}

/* ============================================================
   STATS BAND
   ============================================================ */
.stat-cell {
  text-align: center;
  padding: 26px 14px;
  border-right: 1px dashed rgba(255,255,255,.1);
}
.stat-cell:last-child { border-right: none; }
.stat-num {
  font-family: "Press Start 2P", monospace;
  font-size: clamp(20px, 4vw, 30px);
  color: var(--gold-light);
  text-shadow: 0 0 22px rgba(255, 193, 7, 0.55);
}
.stat-label { margin-top: 12px; font-size: 12.5px; letter-spacing: 2.4px; text-transform: uppercase; color: #909090; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,193,7,.09), transparent 60%),
    #0b0b0b;
  border-top: 2px solid rgba(255, 193, 7, 0.35);
  padding: 64px 0 0;
}
.footer a { color: #b5b5b5; transition: color .25s, padding-left .25s; }
.footer a:hover { color: var(--gold-light); padding-left: 5px; }
.footer h5 {
  font-size: 13px;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  font-weight: 700;
}
.footer-bottom {
  margin-top: 46px;
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 22px 0;
  font-size: 14px;
  color: #9a9a9a;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom a { color: var(--gold-light); font-weight: 600; }

/* ============================================================
   TOAST
   ============================================================ */
#toastWrap {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 268px;
  max-width: min(92vw, 380px);
  padding: 15px 18px;
  border-radius: 12px;
  background: rgba(20, 20, 20, 0.96);
  border: 1px solid rgba(255, 193, 7, 0.65);
  box-shadow: 0 16px 40px rgba(0,0,0,.6), 0 0 22px rgba(255,193,7,.22);
  backdrop-filter: blur(12px);
  transform: translateX(120%);
  opacity: 0;
  animation: toastIn .5s var(--ease) forwards;
  pointer-events: auto;
}
.toast.out { animation: toastOut .4s var(--ease) forwards; }
@keyframes toastIn { to { transform: none; opacity: 1; } }
@keyframes toastOut { to { transform: translateX(120%); opacity: 0; } }
.toast-icon {
  width: 34px; height: 34px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9px;
  background: linear-gradient(140deg, var(--gold-light), var(--gold-dark));
  color: #171100;
}
.toast-title { font-weight: 700; font-size: 14.5px; }
.toast-msg { font-size: 13px; color: #a5a5a5; margin-top: 2px; }

/* ============================================================
   MISC PAGES
   ============================================================ */
.page-hero {
  padding: 150px 0 70px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 25% 0%, rgba(255,193,7,.16), transparent 55%),
    linear-gradient(180deg, #131313, var(--bg));
  border-bottom: 1px solid rgba(255,193,7,.22);
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,193,7,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,193,7,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, #000, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent);
}

.rule-item {
  background: var(--bg-2);
  border: 1px solid rgba(255,255,255,.07);
  border-left: 4px solid var(--gold);
  border-radius: 12px;
  padding: 20px 22px;
  transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.rule-item:hover { transform: translateX(8px); background: #1f1f1f; border-left-color: var(--gold-light); }
.rule-num { font-family: "Press Start 2P", monospace; font-size: 13px; color: var(--gold); margin-bottom: 9px; display: block; }
.rule-item p { color: #c4c4c4; line-height: 1.7; font-size: 15px; }

.vote-site {
  display: flex; align-items: center; gap: 16px;
  background: var(--bg-2);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius);
  padding: 20px 22px;
  transition: transform .35s var(--ease), border-color .3s, box-shadow .35s;
}
.vote-site:hover { transform: translateY(-5px); border-color: rgba(255,193,7,.6); box-shadow: 0 16px 36px rgba(0,0,0,.5); }
.vote-logo {
  width: 54px; height: 54px; flex: 0 0 auto;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 25px;
  background: linear-gradient(140deg, #242424, #161616);
  border: 1px solid rgba(255,193,7,.4);
}

.staff-card { text-align: center; }
.staff-ava {
  width: 92px; height: 92px;
  margin: 0 auto 16px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 42px;
  background: linear-gradient(140deg, #242424, #151515);
  border: 2px solid rgba(255,193,7,.5);
  box-shadow: 0 10px 26px rgba(0,0,0,.5);
  transition: transform .45s var(--ease);
}
.staff-card:hover .staff-ava { transform: translateY(-6px) scale(1.05); }
.role-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(255,193,7,.13);
  border: 1px solid rgba(255,193,7,.45);
  color: var(--gold-light);
  margin-top: 10px;
}
.role-tag.dev { background: rgba(120,80,255,.14); border-color: rgba(140,100,255,.5); color: #c3b0ff; }
.role-tag.admin { background: rgba(255,70,70,.13); border-color: rgba(255,90,90,.5); color: #ff9d9d; }

/* FAQ */
.faq-q {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 22px;
  background: var(--bg-2);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  color: #efefef;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: border-color .3s, background .3s;
}
.faq-q:hover { border-color: rgba(255,193,7,.5); }
.faq-q .chev { transition: transform .35s var(--ease); color: var(--gold); flex: 0 0 auto; }
.faq-q.open .chev { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .45s var(--ease);
  color: var(--txt-dim);
  line-height: 1.75;
  font-size: 15px;
}
.faq-a > div { padding: 16px 22px 20px; }

/* back to top */
#toTop {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 800;
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, var(--gold-light), var(--gold-dark));
  color: #171100;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0,0,0,.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all .4s var(--ease);
}
#toTop.show { opacity: 1; visibility: visible; transform: none; }
#toTop:hover { filter: brightness(1.1); transform: translateY(-4px); }

/* store page tabs */
.tab-btn {
  padding: 11px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14.5px;
  color: #b9b9b9;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,.09);
  cursor: pointer;
  transition: all .3s var(--ease);
}
.tab-btn:hover { color: var(--gold-light); border-color: rgba(255,193,7,.5); }
.tab-btn.active {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: #171100;
  border-color: var(--gold);
  box-shadow: 0 6px 18px rgba(255,193,7,.32);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp .5s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ============================================================
   RESPONSIVE TWEAKS
   ============================================================ */
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .stat-cell { border-right: none; border-bottom: 1px dashed rgba(255,255,255,.1); }
  .stat-cell:last-child { border-bottom: none; }
  .hero { min-height: auto; padding-top: 118px; }
  .scroll-cue { display: none; }
  .btn-copy-ip { width: 100%; font-size: 11.5px; }
  .float-block { display: none; }
  #toastWrap { left: 14px; right: 14px; align-items: stretch; }
  .toast { max-width: none; min-width: 0; }
}
