/* TropixMC — Tropical Prison Skyblock */

/* ---------- tokens ---------- */
:root {
  --ink: #07121d;
  --ink-2: #0a1a28;
  --ink-3: #0f283a;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);

  --coral: #ff6b5e;
  --coral-deep: #e8503f;
  --mango: #ffb84d;
  --teal: #2dd4bf;
  --palm: #4ade80;
  --sand: #f5e6c8;

  --text: #eaf4f4;
  --muted: #92aab7;

  /* brand wordmark gradient — logo only */
  --grad-logo: linear-gradient(92deg, #0de2ec 0%, #43f7a1 59.6%, #a9f555 78.7%, #f0e33e 100%);

  --font-display: "Titan One", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;

  --ease-spring: cubic-bezier(.22, 1.1, .36, 1);
  --ease-smooth: cubic-bezier(.4, 0, .2, 1);

  /* one radius for every interactive control, so nothing clashes */
  --r-ctl: 10px;
  --r-card: 16px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
strong { color: var(--sand); font-weight: 700; }

::selection { background: var(--coral); color: #fff; }

::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: #050d15; }
::-webkit-scrollbar-thumb { background: #1d4c52; border-radius: 8px; border: 3px solid #050d15; }
::-webkit-scrollbar-thumb:hover { background: var(--teal); }
@supports not selector(::-webkit-scrollbar) {
  html { scrollbar-width: thin; scrollbar-color: #1d4c52 #050d15; }
}

/* ---------- layout ---------- */
.container { width: min(1120px, 92vw); margin-inline: auto; }

.section { position: relative; padding: clamp(64px, 9vh, 104px) 0; }

.accent { color: var(--coral); }

/* section header */
.s-head { max-width: 620px; margin-bottom: clamp(36px, 5vh, 56px); }
.s-head--center { margin-inline: auto; text-align: center; }
.s-head__kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--muted);
  margin-bottom: 16px;
}
.s-head__kicker::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--coral); }
.s-head__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.6vw, 3rem);
  line-height: 1.12;
}
.s-head__sub { color: var(--muted); margin-top: 14px; font-size: clamp(1rem, 1.4vw, 1.1rem); }

/* entrance: plays once on load. fill `both` ends visible, so content is never
   left hidden if animation is interrupted (and falls back to opacity:1 when off) */
.reveal { animation: reveal-in .6s var(--ease-smooth) var(--rd, 0s) both; }
@keyframes reveal-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

/* ---------- controls (one shared style) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 48px;
  padding: 0 24px;
  border-radius: var(--r-ctl);
  font-weight: 700;
  font-size: .95rem;
  border: 1px solid transparent;
  transition: transform .2s var(--ease-spring), background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--coral { background: var(--coral); color: #fff; }
.btn--coral:hover { background: #ff5a4c; }
.btn--discord { background: #5865f2; color: #fff; }
.btn--discord:hover { background: #4d59e0; }
.btn--ghost { border-color: var(--line-2); color: var(--text); background: rgba(255, 255, 255, .03); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn--sm { height: 38px; padding: 0 16px; font-size: .85rem; }

/* IP copy — same height + radius as the buttons so the row reads as one set */
.ip-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding: 0 18px;
  border-radius: var(--r-ctl);
  background: #06101a;
  border: 1px solid var(--line-2);
  transition: transform .2s var(--ease-spring), border-color .2s;
}
.ip-pill:hover { transform: translateY(-2px); border-color: var(--teal); }
.ip-pill:active { transform: translateY(0); }
.ip-pill__label { font-size: .62rem; font-weight: 800; letter-spacing: .16em; color: var(--teal); }
.ip-pill__ip { font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.ip-pill__icon { color: var(--muted); display: grid; place-items: center; transition: color .2s; }
.ip-pill:hover .ip-pill__icon { color: var(--teal); }
.ip-pill--big { height: 52px; padding: 0 22px; }
.ip-pill--big .ip-pill__ip { font-size: 1.16rem; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.actions--center { justify-content: center; }

/* status link — replaces the old live status line */
.status-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .86rem;
  font-weight: 600;
  color: var(--muted);
  transition: color .2s;
}
.status-link:hover { color: var(--teal); }
.status-link__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mango); }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(7, 18, 29, .72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: padding .3s var(--ease-smooth), background .3s, border-color .3s;
}
.nav.scrolled { padding: 10px 0; background: rgba(7, 18, 29, .9); border-bottom-color: var(--line); }
.nav__inner { width: min(1240px, 94vw); margin-inline: auto; display: flex; align-items: center; gap: 28px; }
.nav__logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.28rem; }
.nav__logo-mark { display: grid; place-items: center; transition: transform .3s var(--ease-spring); }
.nav__logo:hover .nav__logo-mark { transform: rotate(-10deg); }
.logo-palm { width: 32px; height: 32px; }
.nav__logo-text {
  font-weight: 700;
  background: var(--grad-logo);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { font-weight: 600; font-size: .92rem; color: var(--muted); position: relative; transition: color .2s; }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 2px;
  border-radius: 2px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s var(--ease-smooth);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__links a[aria-current="page"] { color: var(--text); }
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav__burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero (home) ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  min-height: 92svh;
  display: grid;
  place-items: center;
  padding: 150px 0 150px;
  overflow: hidden;
  background: linear-gradient(180deg, #08131f 0%, #0a1c2c 55%, #0d2436 100%);
}
.hero__particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .7; }
.hero__sun {
  position: absolute;
  z-index: 0;
  top: 12%; right: 9%;
  width: clamp(56px, 7vw, 92px);
  aspect-ratio: 1;
  border-radius: 24%;
  background: linear-gradient(135deg, #ffd166, #ff9966);
  opacity: .9;
  animation: sun-float 9s ease-in-out infinite;
  pointer-events: none;
}
/* animate transform so the JS parallax inline translate still composes */
@keyframes sun-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(5deg); }
}

.hero__content { position: relative; z-index: 2; text-align: center; width: min(820px, 92vw); }
.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 7.6vw, 5.2rem);
  line-height: 1.05;
  margin-bottom: 22px;
}
.hero__title-line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title-line--big { font-size: 1.16em; }
.hero__word {
  display: inline-block;
  transform: translateY(110%);
  animation: word-in .8s var(--ease-spring) forwards;
  animation-delay: calc(.1s * var(--d) + .12s);
}
@keyframes word-in { to { transform: translateY(0); } }
.hero__word--accent { color: var(--mango); }
.hero__emoji {
  animation: word-in .8s var(--ease-spring) forwards, sway 4s ease-in-out infinite;
  animation-delay: calc(.1s * var(--d) + .12s), 1.2s;
}
.hero__palm { display: inline-block; width: .92em; height: .92em; vertical-align: -.08em; }
@keyframes sway { 0%, 100% { rotate: 0deg; } 50% { rotate: 9deg; } }

.hero__sub { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--muted); max-width: 580px; margin: 0 auto 32px; }
.hero__actions { justify-content: center; margin-bottom: 22px; }

/* waves (shared) */
.waves { position: absolute; bottom: -2px; left: 0; right: 0; height: 110px; pointer-events: none; }
/* max-width: none — the global svg clamp would gap the sliding strip */
.wave { position: absolute; bottom: 0; left: 0; width: 200%; max-width: none; height: 100%; }
.wave path { fill: currentColor; }
.wave--1 { color: rgba(45, 212, 191, .1); animation: wave-drift 15s linear infinite; }
.wave--2 { color: rgba(45, 212, 191, .16); animation: wave-drift 11s linear infinite reverse; height: 72%; }
.wave--3 { color: var(--ink-2); animation: wave-drift 19s linear infinite; }
@keyframes wave-drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  padding: 140px 0 84px;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(180deg, #08131f, #0a1c2c);
}
.page-hero__inner { position: relative; z-index: 2; }
.page-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--muted);
  margin-bottom: 14px;
}
.page-hero__kicker::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--coral); }
.page-hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 5.4vw, 3.4rem);
  line-height: 1.1;
}
.page-hero__sub { color: var(--muted); max-width: 540px; margin: 14px auto 0; font-size: clamp(1rem, 1.4vw, 1.1rem); }
.page-hero .waves { height: 80px; }

/* ---------- marquee ---------- */
.marquee { background: var(--ink-2); border-block: 1px solid var(--line); padding: 15px 0; overflow: hidden; position: relative; }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 100px; z-index: 2; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--ink-2), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--ink-2), transparent); }
.marquee__track { display: flex; align-items: center; width: max-content; animation: marquee 36s linear infinite; }
/* margins (not gap) so both halves measure identically for the -50% loop */
.marquee__track > * { margin-right: 34px; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { font-family: var(--font-display); font-size: 1rem; letter-spacing: .04em; color: rgba(234, 244, 244, .68); white-space: nowrap; }
.marquee__track i { font-style: normal; color: var(--teal); font-size: .7rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- home: intro strip ---------- */
.intro { background: var(--ink-2); text-align: center; }
.intro__inner { max-width: 680px; margin-inline: auto; }
.intro__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.15; margin-bottom: 16px; }
.intro__body { color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.12rem); margin-bottom: 30px; }

/* ---------- features (spec-sheet list, not cards) ---------- */
.features { background: var(--ink); }
.feat-list { border-top: 1px solid var(--line); }
.feat-row {
  display: grid;
  grid-template-columns: 30px minmax(150px, 230px) 1fr;
  gap: 4px 26px;
  align-items: baseline;
  padding: 24px 4px;
  border-bottom: 1px solid var(--line);
  transition: background .2s;
}
.feat-row:hover { background: rgba(45, 212, 191, .03); }
.feat-row__icon { color: var(--teal); align-self: center; }
.feat-row__icon svg { width: 26px; height: 26px; display: block; }
.feat-row__logo { width: 30px; height: 30px; display: block; object-fit: contain; }
.feat-row__name { font-weight: 700; font-size: 1.08rem; }
.feat-row__desc { color: var(--muted); font-size: .96rem; }

/* ---------- credits (made-by band) ---------- */
.credits { background: var(--ink-2); text-align: center; }
.credits__people {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(28px, 7vw, 84px);
  margin-bottom: 34px;
}
.credits__person { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.credits__skin {
  height: clamp(150px, 22vw, 210px);
  width: auto;
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, .45));
}
.credits__name { font-family: var(--font-display); font-weight: 400; font-size: 1.05rem; }
.credits__lead {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.35rem, 3vw, 2.05rem);
  line-height: 1.3;
  max-width: 660px;
  margin-inline: auto;
}

/* ---------- join steps ---------- */
.join { background: var(--ink); }
.join__inner { text-align: center; }
.join__steps { display: flex; align-items: stretch; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.join-step { display: flex; align-items: center; gap: 14px; text-align: left; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); border-radius: var(--r-card); padding: 16px 22px; max-width: 280px; }
.join-step p { font-size: .92rem; color: var(--muted); }
.join-step__num { font-family: var(--font-display); font-size: 1.1rem; color: var(--mango); width: 38px; flex: 0 0 38px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 8px; background: rgba(255, 184, 77, .1); border: 1px solid rgba(255, 184, 77, .26); }
.join-step__arrow { align-self: center; color: var(--muted); opacity: .4; font-size: 1.1rem; }
.join__note { color: var(--muted); font-size: .88rem; margin-top: 32px; }

/* ---------- cta band ---------- */
.cta { background: var(--ink-2); text-align: center; }
.cta__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 22px; }

/* ---------- footer ---------- */
.footer { background: #050d15; padding: 56px 0 36px; }
.footer__inner { width: min(1120px, 92vw); margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; }
.footer__brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.15rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; }
.footer__links a { color: var(--muted); font-size: .9rem; font-weight: 600; transition: color .2s; }
.footer__links a:hover { color: var(--text); }
.footer__legal { width: 100%; border-top: 1px solid var(--line); padding-top: 22px; margin-top: 4px; color: #6f8893; font-size: .78rem; line-height: 1.7; }
.footer__legal a { color: #8e99f3; }
.footer__legal a:hover { color: #b3bbff; }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  bottom: 28px; left: 50%;
  translate: -50% 120px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0c3b38;
  color: #d6fff8;
  border: 1px solid rgba(45, 212, 191, .4);
  font-weight: 700;
  font-size: .92rem;
  padding: 12px 20px;
  border-radius: var(--r-ctl);
  z-index: 200;
  opacity: 0;
  transition: translate .45s var(--ease-spring), opacity .3s;
  pointer-events: none;
}
.toast.show { translate: -50% 0; opacity: 1; }

/* ---------- stats: search form ---------- */
.stats-search {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 460px;
  margin: 26px auto 0;
}
.stats-search-mode {
  flex: 1 0 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  padding: 5px;
  border-radius: var(--r-ctl);
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
}
.stats-search-mode__btn {
  height: 34px;
  border-radius: 8px;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 800;
  transition: color .2s, background .2s;
}
.stats-search-mode__btn[aria-checked="true"] {
  color: var(--ink);
  background: var(--teal);
}
.stats-search__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 48px;
  padding: 0 16px;
  border-radius: var(--r-ctl);
  background: #06101a;
  border: 1px solid var(--line-2);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  transition: border-color .2s;
}
.stats-search__input::placeholder { color: var(--muted); font-weight: 500; }
.stats-search__input:focus { outline: none; border-color: var(--teal); }
.stats-search .btn { flex: 0 0 auto; }

/* ---------- stats: profile ---------- */
.stats-profile-section { background: var(--ink); }
.stats-profile {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  align-items: start;
}

/* shared card shell — matches .feat restraint, one radius */
.stats-card {
  border-radius: var(--r-card);
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
  padding: 20px;
}

/* skin frame */
.stats-skin {
  display: grid;
  place-items: center;
  padding: 22px;
  background: var(--ink-3);
  min-height: 360px;
}
.stats-skin__img { width: auto; height: 320px; image-rendering: auto; }
.stats-gang-crest {
  align-content: center;
  gap: 14px;
  text-align: center;
}
.stats-gang-crest__mark {
  display: grid;
  place-items: center;
  width: 132px;
  aspect-ratio: 1;
  border-radius: 16px;
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--ink);
  background: linear-gradient(135deg, var(--teal), var(--mango));
  box-shadow: 0 16px 32px rgba(0, 0, 0, .28);
}
.stats-gang-crest__label {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 800;
}

.stats-body { min-width: 0; }
.stats-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}
.stats-head__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  line-height: 1.1;
  word-break: break-word;
}
.stats-gang-chip {
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .04em;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(45, 212, 191, .08);
  border: 1px solid rgba(45, 212, 191, .22);
  color: #bfeee6;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.stats-card--wide { grid-column: 1 / -1; }
.stats-card__title {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.stats-card__rows { display: grid; gap: 10px; }
.stats-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.stats-row dt { color: var(--muted); font-size: .9rem; }
.stats-row dd { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.stats-card__none { color: var(--muted); font-size: .94rem; }

/* hero card (top yapper) */
.stats-card--hero { display: flex; flex-direction: column; }
.stats-hero__big {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.6vw, 2.4rem);
  line-height: 1.05;
  color: var(--mango);
  margin-bottom: 6px;
}
.stats-hero__sub { color: var(--muted); font-size: .88rem; }

.stats-members { display: grid; gap: 8px; }
.stats-member {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border-radius: var(--r-ctl);
  background: rgba(255, 255, 255, .025);
  border: 1px solid var(--line);
  text-align: left;
  transition: border-color .2s, background .2s, transform .2s var(--ease-spring);
}
.stats-member--link:hover {
  transform: translateY(-2px);
  border-color: rgba(45, 212, 191, .28);
  background: rgba(45, 212, 191, .04);
}
.stats-member__face {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 8px;
  background: #06101a;
  border: 1px solid var(--line);
  image-rendering: pixelated;
}
.stats-member__main { flex: 1 1 auto; min-width: 0; }
.stats-member__name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}
.stats-member__meta {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: .82rem;
}
.stats-member__value {
  flex: 0 0 auto;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* states */
.stats-msg {
  grid-column: 1 / -1;
  text-align: center;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  padding: 48px 24px;
}
.stats-msg__title { font-family: var(--font-display); font-weight: 400; font-size: 1.4rem; margin-bottom: 8px; }
.stats-msg__sub { color: var(--muted); }
.stats-msg--error { border-color: rgba(255, 107, 94, .3); background: rgba(255, 107, 94, .05); }

/* skeleton */
.stats-skel__box { position: relative; overflow: hidden; }
.stats-skel__box::after,
.stats-skel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .06), transparent);
  transform: translateX(-100%);
  animation: stats-shimmer 1.4s var(--ease-smooth) infinite;
}
.stats-skel { position: relative; overflow: hidden; background: rgba(255, 255, 255, .04); border-radius: 8px; }
.stats-skel__line { height: 14px; margin-bottom: 12px; }
.stats-skel__line--lg { height: 30px; width: 240px; max-width: 60%; margin-bottom: 20px; }
.stats-skel__card { min-height: 150px; }
@keyframes stats-shimmer { to { transform: translateX(100%); } }

/* ---------- stats: leaderboards ---------- */
.leaderboards { background: var(--ink-2); }
.lb-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.lb-tab {
  height: 40px;
  padding: 0 16px;
  border-radius: var(--r-ctl);
  font-weight: 700;
  font-size: .88rem;
  color: var(--muted);
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
  transition: color .2s, border-color .2s, background .2s, transform .2s var(--ease-spring);
}
.lb-tab:hover { transform: translateY(-2px); color: var(--text); border-color: var(--line-2); }
.lb-tab[aria-selected="true"] {
  color: var(--ink);
  background: var(--teal);
  border-color: var(--teal);
}

.lb-list { list-style: none; display: grid; gap: 8px; }
.lb-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  border-radius: var(--r-ctl);
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
}
.lb-item--link { cursor: pointer; transition: border-color .2s, background .2s, transform .2s var(--ease-spring); }
.lb-item--link:hover { transform: translateY(-2px); border-color: rgba(45, 212, 191, .28); background: rgba(45, 212, 191, .04); }
.lb-item__rank {
  font-family: var(--font-display);
  font-size: .95rem;
  color: var(--muted);
  width: 42px;
  flex: 0 0 42px;
  font-variant-numeric: tabular-nums;
}
.lb-item--top1 .lb-item__rank { color: var(--mango); }
.lb-item--top2 .lb-item__rank { color: var(--sand); }
.lb-item--top3 .lb-item__rank { color: var(--coral); }
.lb-item__face {
  width: 32px; height: 32px;
  flex: 0 0 32px;
  border-radius: 8px;
  background: #06101a;
  image-rendering: pixelated;
  border: 1px solid var(--line);
}
.lb-item__face--none {
  display: grid;
  place-items: center;
  image-rendering: auto;
  color: var(--ink);
  background: linear-gradient(135deg, var(--teal), var(--mango));
  font-size: .78rem;
  font-weight: 900;
}
.lb-item__name { font-weight: 700; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-item__value { font-weight: 800; font-variant-numeric: tabular-nums; flex: 0 0 auto; text-align: right; }
.lb-item__unit { color: var(--muted); font-weight: 600; font-size: .82rem; }
.lb-item--skel { padding: 0; border: none; background: none; }
.lb-skel { display: block; width: 100%; height: 52px; border-radius: var(--r-ctl); background: rgba(255, 255, 255, .04); }

/* ---------- bans: live feed + lookup ---------- */
.stats-search--solo { justify-content: center; }
.bans-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: 16px;
  transition: color .2s, gap .2s var(--ease-spring);
}
.bans-back:hover { color: var(--teal); gap: 10px; }
.bans-feed-section { background: var(--ink); }
.bans-filters { margin-bottom: 20px; }

/* live type counters (Total / Bans / Mutes / Warns) */
.bans-counts { display: grid; grid-template-columns: repeat(auto-fit, minmax(116px, 1fr)); gap: 12px; margin-bottom: 22px; }
.bans-count {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: var(--r-card);
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
  border-top: 2px solid var(--line-2);
}
.bans-count--total { border-top-color: var(--teal); }
.bans-count--ban { border-top-color: var(--coral); }
.bans-count--mute { border-top-color: #e6923e; }
.bans-count--warn { border-top-color: var(--mango); }
.bans-count--kick { border-top-color: #78909c; }
.bans-count__num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  display: inline-block;
}
.bans-count__label { color: var(--muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
@keyframes bans-count-bump { 0% { transform: none; } 32% { transform: translateY(-3px) scale(1.04); } 100% { transform: none; } }
.bans-count--bump .bans-count__num { animation: bans-count-bump .5s var(--ease-spring); }

.bans-list { list-style: none; display: grid; gap: 8px; }

.ban-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r-ctl);
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
}
.ban-row--link { cursor: pointer; transition: border-color .2s, background .2s, transform .2s var(--ease-spring); }
.ban-row--link:hover { transform: translateY(-2px); border-color: rgba(45, 212, 191, .28); background: rgba(45, 212, 191, .04); }
.ban-row--new { animation: ban-in .5s var(--ease-smooth) both; }
@keyframes ban-in {
  from { opacity: 0; transform: translateY(-10px); background: rgba(45, 212, 191, .12); }
  to   { opacity: 1; transform: none; }
}

.ban-row__face {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--ink-3);
  object-fit: cover;
  image-rendering: pixelated;
}
.ban-row__face--none {
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  color: var(--muted);
  font-size: 1rem;
  image-rendering: auto;
}
.ban-row__body { flex: 1 1 auto; min-width: 0; display: grid; gap: 4px; }
.ban-row__top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.ban-row__name {
  font-weight: 800;
  max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ban-row__reason { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: .95rem; min-width: 0; }
.ban-row__reason > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ban-row__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; color: var(--muted); font-size: .82rem; font-weight: 600; }
.ban-row__meta i { color: var(--line-2); font-style: normal; }

/* the coloured kind badge (Warn / Mute / Ban / Blacklist / Alt Ban) */
.ban-badge {
  flex: 0 0 auto;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.ban-badge--warn { color: #ffcf85; background: rgba(255, 184, 77, .12); border-color: rgba(255, 184, 77, .3); }
.ban-badge--mute { color: #f6b47a; background: rgba(230, 146, 62, .13); border-color: rgba(230, 146, 62, .32); }
.ban-badge--ban { color: #ff9184; background: rgba(255, 107, 94, .14); border-color: rgba(255, 107, 94, .34); }
.ban-badge--blacklist { color: #ff7a8a; background: rgba(214, 59, 74, .16); border-color: rgba(214, 59, 74, .42); }
.ban-badge--alt { color: #c4a6ff; background: rgba(164, 121, 255, .14); border-color: rgba(164, 121, 255, .34); }
.ban-badge--kick { color: #aebfc9; background: rgba(96, 125, 139, .18); border-color: rgba(96, 125, 139, .42); }

/* record status tag on non-active rows */
.ban-status {
  flex: 0 0 auto;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  color: var(--muted);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line-2);
}
.ban-status--expired { color: #9fb2bd; }
.ban-status--lifted { color: #7fe6d6; background: rgba(45, 212, 191, .08); border-color: rgba(45, 212, 191, .26); }
.ban-status--revoked { color: #86e6a0; background: rgba(74, 222, 128, .08); border-color: rgba(74, 222, 128, .26); }

/* tiny class chip [C4] */
.ban-chip {
  flex: 0 0 auto;
  font-size: .68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  color: var(--ink);
  background: var(--muted);
}
.ban-chip--C1 { background: #4ade80; }
.ban-chip--C2 { background: #2dd4bf; }
.ban-chip--C3 { background: #ffb84d; }
.ban-chip--C4 { background: #ff955e; }
.ban-chip--C5 { background: #ff6b5e; }
.ban-chip--C6 { background: #a479ff; }

/* skeletons */
.ban-row--skel { padding: 0; border: none; background: none; }
.ban-skel { display: block; width: 100%; height: 62px; border-radius: var(--r-ctl); background: rgba(255, 255, 255, .04); }
.ban-skel-card { min-height: 76px; border-radius: var(--r-ctl); }

.bans-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 24px; }
.bans-pager__label { color: var(--muted); font-weight: 700; font-size: .9rem; font-variant-numeric: tabular-nums; min-width: 116px; text-align: center; }
.bans-pager .btn[disabled] { opacity: .4; pointer-events: none; cursor: default; transform: none; }

/* lookup: status pills next to the name */
.ban-pills { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.ban-pill {
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .04em;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
}
.ban-pill--banned { color: #ff9184; background: rgba(255, 107, 94, .1); border-color: rgba(255, 107, 94, .3); }
.ban-pill--muted { color: #f6b47a; background: rgba(230, 146, 62, .1); border-color: rgba(230, 146, 62, .3); }
.ban-pill--clear { color: #86e6a0; background: rgba(74, 222, 128, .08); border-color: rgba(74, 222, 128, .28); }

/* lookup: active-punishment summary cards */
.bans-active-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-bottom: 22px; }
.ban-active { display: grid; gap: 12px; border-left: 3px solid var(--line-2); }
.ban-active--ban, .ban-active--blacklist, .ban-active--alt { border-left-color: var(--coral); }
.ban-active--mute { border-left-color: #e6923e; }
.ban-active__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ban-active__reason { font-weight: 700; font-size: 1.05rem; }

/* lookup: history */
.bans-history__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.15rem;
  margin-bottom: 12px;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .join-step__arrow { display: none; }
  .stats-profile { grid-template-columns: 1fr; }
  .stats-skin { min-height: 0; }
  .stats-skin__img { height: 260px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .bans-active-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .nav__links {
    position: fixed;
    top: 56px; right: 3vw;
    flex-direction: column;
    gap: 4px;
    background: rgba(7, 18, 29, .97);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--r-card);
    padding: 14px 22px;
    margin: 0;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    visibility: hidden;
    transition: opacity .25s, transform .3s var(--ease-spring), visibility 0s .25s;
  }
  .nav__links.open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
  .nav__links a { padding: 8px 0; }
  .nav__burger { display: flex; margin-left: auto; }
  .nav__cta { display: none; }
  .hero__sun { display: none; }
  .feat-row { grid-template-columns: auto 1fr; gap: 4px 14px; align-items: center; }
  .feat-row__desc { grid-column: 1 / -1; margin-top: 2px; }
  .credits__people { gap: 7vw; }
  .credits__skin { height: 130px; }
  .footer__links { margin-left: 0; width: 100%; }
  .stats-grid { grid-template-columns: 1fr; }
  .stats-search { flex-direction: column; }
  .stats-search .btn { width: 100%; }
  .stats-member { align-items: flex-start; }
  .stats-member__value { font-size: .86rem; }
  .lb-item { gap: 10px; padding: 10px 12px; }
  .lb-item__rank { width: 32px; flex-basis: 32px; }
  .ban-row { gap: 10px; padding: 10px 12px; }
  .bans-counts { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .15s !important;
  }
  html { scroll-behavior: auto; }
  .hero__word { transform: none; animation: none; }
  .reveal { animation: none; opacity: 1; transform: none; }
}
