/* UniLands — site styles. Dark only: the in-game rank and level colours
   (bright yellow, aqua…) are only readable on a dark background. */

:root {
  --bg: #0b0c0f;
  --bg-alt: #0f1115;
  --surface: #14161c;
  --surface-2: #1b1e25;
  --border: #252932;
  --border-strong: #343945;
  --text: #eef0f4;
  --text-2: #b6bcc8;
  --text-3: #7f8697;
  --accent: #5ee6ec;          /* the aqua of the in-game "Uni" wordmark */
  --accent-hover: #86eff3;
  --accent-ink: #052326;
  --accent-soft: rgb(94 230 236 / 0.12);
  --gold: #f3c969;
  --silver: #cfd6e0;
  --bronze: #dc9a6a;
  --online: #4ade80;
  --discord: #5865f2;
  --discord-hover: #6a76f5;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px -18px rgb(0 0 0 / 0.7);
  --nav-h: 64px;
  --max: 1160px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main { flex: 1; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.15; }
code { font-family: var(--mono); font-size: 0.92em; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.icon { width: 18px; height: 18px; flex: none; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-lg { height: 54px; padding: 0 26px; font-size: 1.05rem; border-radius: 14px; }
.btn-sm { height: 38px; padding: 0 14px; font-size: 0.9rem; border-radius: 10px; gap: 8px; }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 28px -12px rgb(94 230 236 / 0.8);
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-discord { background: var(--discord); color: #fff; }
.btn-discord:hover { background: var(--discord-hover); }

.btn-ghost {
  background: rgb(255 255 255 / 0.06);
  border-color: rgb(255 255 255 / 0.14);
  color: var(--text);
}
.btn-ghost:hover { background: rgb(255 255 255 / 0.1); border-color: rgb(255 255 255 / 0.22); }

.btn-light { background: #fff; color: #23272f; }
.btn-light:hover { background: #eceefe; }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  background: rgb(11 12 15 / 0.82);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  transition: background-color 0.25s, border-color 0.25s;
}
.home .nav:not(.scrolled):not(.open) {
  background: linear-gradient(to bottom, rgb(8 9 12 / 0.55), transparent);
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.12); }
.wordmark { font-weight: 800; font-size: 1.12rem; letter-spacing: -0.02em; }
.uni { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.nav-links a {
  padding: 8px 12px;
  border-radius: 9px;
  color: var(--text-2);
  font-weight: 600;
  font-size: 0.94rem;
  text-decoration: none;
  transition: color 0.15s, background-color 0.15s;
}
.nav-links a:hover { color: var(--text); background: rgb(255 255 255 / 0.06); }
.nav-links a[aria-current="page"] { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 8px; }

.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: 10px;
  background: rgb(255 255 255 / 0.06);
  cursor: pointer;
}
.menu-btn .icon { width: 20px; height: 20px; }

@media (max-width: 760px) {
  .menu-btn { display: grid; }
  .nav-actions { margin-left: auto; }
  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px 16px 16px;
    background: rgb(11 12 15 / 0.97);
    border-bottom: 1px solid var(--border);
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 12px; font-size: 1rem; }
}
@media (max-width: 420px) {
  .nav-actions .btn-discord span { display: none; }
  .nav-actions .btn-discord { width: 40px; padding: 0; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: min(94vh, 880px);
  padding: calc(var(--nav-h) + 40px) 0 136px;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, rgb(8 9 12 / 0.3), rgb(8 9 12 / 0.62) 70%),
    linear-gradient(to bottom, rgb(8 9 12 / 0.38) 0%, rgb(8 9 12 / 0.15) 35%, rgb(11 12 15 / 0.9) 88%, var(--bg) 100%);
}

.hero-inner { display: flex; flex-direction: column; align-items: center; }

.hero-logo {
  width: 104px;
  height: 104px;
  border-radius: 26px;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.18), 0 24px 50px -16px rgb(0 0 0 / 0.8);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 26px 0 0;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgb(8 9 12 / 0.6);
  border: 1px solid rgb(255 255 255 / 0.14);
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.status-pill strong { color: var(--text); }
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-3);
  flex: none;
}
[data-state="up"] .dot {
  background: var(--online);
  box-shadow: 0 0 0 0 rgb(74 222 128 / 0.6);
  animation: pulse 2s infinite;
}
[data-state="down"] .dot { background: #f87171; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgb(74 222 128 / 0.55); }
  70% { box-shadow: 0 0 0 8px rgb(74 222 128 / 0); }
  100% { box-shadow: 0 0 0 0 rgb(74 222 128 / 0); }
}

.hero-title {
  margin: 14px 0 12px;
  font-size: clamp(3.2rem, 9vw, 5.6rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  text-shadow: 0 6px 30px rgb(0 0 0 / 0.45);
}
.hero-sub {
  max-width: 600px;
  margin: 0 0 30px;
  color: #d9dde5;
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  text-shadow: 0 2px 16px rgb(0 0 0 / 0.6);
}

.ip-box {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 8px 8px 8px 20px;
  border-radius: 16px;
  background: rgb(8 9 12 / 0.66);
  border: 1px solid rgb(255 255 255 / 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: left;
}
.ip-text { display: grid; grid-template-columns: auto auto; column-gap: 12px; align-items: baseline; }
.ip-label {
  grid-column: 1 / -1;
  color: var(--text-3);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ip-address { font-family: var(--mono); font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; }
.ip-port { color: var(--text-3); font-size: 0.85rem; font-weight: 600; white-space: nowrap; }
.copy-btn { min-width: 96px; }
.copy-btn.copied, .ip-chip.copied { color: var(--online); border-color: rgb(74 222 128 / 0.45); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}
.hero-actions-left { justify-content: flex-start; margin-top: 28px; }
.hero-note {
  margin: 18px 0 0;
  color: var(--text-3);
  font-size: 0.86rem;
}
.hero-note a { color: var(--text-2); }

@media (max-width: 560px) {
  .hero { padding-bottom: 112px; }
  .hero-logo { width: 84px; height: 84px; border-radius: 22px; }
  .ip-box { width: 100%; justify-content: space-between; }
  .ip-text { grid-template-columns: 1fr; }
  .ip-address { font-size: 1.12rem; }
  .hero-actions { width: 100%; flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}

/* ---------- Stat band ---------- */

.stats-band { position: relative; z-index: 2; margin-top: -84px; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--border);
  box-shadow: var(--shadow);
}
.stat {
  padding: 20px 20px 18px;
  background: var(--surface);
}
.stat dt {
  color: var(--text-3);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.stat dd { margin: 0; }
.stat-value {
  display: block;
  margin-top: 6px;
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.stat .stat-note { margin-top: 4px; color: var(--text-3); font-size: 0.82rem; }
.stat-live .stat-value { color: var(--online); }

@media (max-width: 1020px) { .stat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 16px; }
}

/* ---------- Sections ---------- */

.section { padding: 104px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid #16181e; }
.stats-band + .section { padding-top: 96px; }

.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head-row {
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 32px;
}
.section-head-row > div { max-width: 640px; }

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.section-title, .page-title {
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}
.section-lead { margin: 0; color: var(--text-2); font-size: 1.05rem; }

@media (max-width: 560px) { .section { padding: 72px 0; } }

/* ---------- Game modes ---------- */

.modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
  gap: 16px;
}
.mode-card {
  --mode: var(--accent);
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.2s, border-color 0.2s, background-color 0.2s;
}
.mode-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--mode) 45%, var(--border));
  background: var(--surface-2);
}
.mode-card[data-mode="bedwars"] { --mode: #e5484d; }
.mode-card[data-mode="bridge"] { --mode: #4f7df3; }
.mode-card[data-mode="skywars"] { --mode: #6cc24a; }
.mode-card[data-mode="uhc"] { --mode: #f7c948; }
.mode-card[data-mode="duels"] { --mode: #5ee6ec; }

.mode-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  border-radius: 15px;
  background: color-mix(in srgb, var(--mode) 15%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--mode) 28%, transparent);
}
.mode-icon svg { width: 38px; height: 38px; }
.mode-card h3 { margin: 0 0 8px; font-size: 1.22rem; font-weight: 800; letter-spacing: -0.02em; }
.mode-card p { flex: 1; margin: 0 0 16px; color: var(--text-2); font-size: 0.94rem; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.chips li {
  padding: 3px 9px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text-2);
  font-size: 0.76rem;
  font-weight: 600;
}
.mode-link {
  color: var(--mode);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}
.mode-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Maps ---------- */

.filter { display: flex; flex-wrap: wrap; gap: 6px; }
.filter button, .segmented button {
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.filter button:hover { color: var(--text); border-color: var(--text-3); }
.filter button[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }

.maps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.map {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  cursor: zoom-in;
  text-align: left;
}
.map[hidden] { display: none; }
.map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.map:hover img { transform: scale(1.045); }
.map-caption {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding: 36px 16px 14px;
  background: linear-gradient(to top, rgb(0 0 0 / 0.8), rgb(0 0 0 / 0));
}
.map-name { font-size: 1.05rem; font-weight: 800; letter-spacing: -0.01em; }
.map-mode {
  color: rgb(255 255 255 / 0.75);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.map-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgb(8 9 12 / 0.78);
  border: 1px solid rgb(255 255 255 / 0.16);
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 700;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

@media (max-width: 900px) { .maps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .maps-grid { grid-template-columns: 1fr; } }

.lightbox {
  width: min(100% - 32px, 1200px);
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  background: var(--surface);
  color: var(--text);
  overflow: hidden;
}
.lightbox::backdrop { background: rgb(4 5 7 / 0.86); backdrop-filter: blur(4px); }
.lightbox img { width: 100%; max-height: calc(100vh - 110px); object-fit: contain; background: #000; }
.lightbox-caption { margin: 0; padding: 14px 18px; font-weight: 700; }
.lightbox-caption span { color: var(--text-3); font-weight: 600; }
.lightbox-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: 50%;
  background: rgb(8 9 12 / 0.72);
  cursor: pointer;
}
.lightbox-btn:hover { background: rgb(8 9 12 / 0.92); }
.lightbox-close { top: 12px; right: 12px; }
.lightbox-prev, .lightbox-next { top: calc(50% - 44px); }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

/* ---------- Leaderboard preview ---------- */

.boards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.board-card {
  padding: 22px 18px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.board-card h3 { margin: 0 6px; font-size: 1.08rem; font-weight: 800; }
.board-sub { margin: 2px 6px 12px; color: var(--text-3); font-size: 0.86rem; }

.mini-list { margin: 0; padding: 0; list-style: none; }
.mini-list a, .mini-list .mini-row {
  display: grid;
  grid-template-columns: 26px 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 6px;
  border-radius: 10px;
  text-decoration: none;
}
.mini-list a:hover { background: var(--surface-2); }
.mini-list .mini-empty { padding: 8px 6px; color: var(--text-3); font-size: 0.9rem; }
.pos { color: var(--text-3); font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; }
.pos-1 { color: var(--gold); }
.pos-2 { color: var(--silver); }
.pos-3 { color: var(--bronze); }
.mini-value { font-weight: 800; font-variant-numeric: tabular-nums; }

@media (max-width: 900px) { .boards { grid-template-columns: 1fr; } }

/* ---------- Players (shared) ---------- */

.head {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: var(--surface-2);
  image-rendering: pixelated;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08);
}
.pn { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.rank-tag { font-weight: 800; font-size: 0.82em; letter-spacing: 0.01em; }
.lvl {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgb(255 255 255 / 0.06);
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ---------- How to join ---------- */

.join {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
  gap: 28px;
  align-items: start;
}
.steps { display: grid; gap: 12px; margin: 24px 0 18px; padding: 0; list-style: none; counter-reset: step; }
.steps li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
}
.steps strong { display: block; font-size: 1.02rem; }
.steps p { margin: 2px 0 0; color: var(--text-2); font-size: 0.95rem; }

.server-fields {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 8px 22px;
  margin: 12px 0 0;
}
.server-fields dt { color: var(--text-3); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.server-fields dd { margin: 2px 0 0; font-family: var(--mono); font-weight: 700; }
.field-copy {
  padding: 0;
  border: 0;
  border-bottom: 1px dashed var(--text-3);
  background: none;
  font-family: var(--mono);
  font-weight: 700;
  cursor: copy;
}
.field-copy:hover { color: var(--accent); border-bottom-color: var(--accent); }
.field-copy.copied { color: var(--online); border-bottom-color: var(--online); }

.fine-print { margin: 0; color: var(--text-3); font-size: 0.9rem; }
.fine-print code { color: var(--text-2); }

.discord-card {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border-radius: 20px;
  background: linear-gradient(145deg, #5f6cf4, #4450c9);
  color: #fff;
  box-shadow: var(--shadow);
}
.discord-card h3 { margin: 18px 0 8px; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.discord-card p { margin: 0 0 24px; color: rgb(255 255 255 / 0.85); }
.discord-mark { width: 46px; height: 46px; }
.discord-card::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.08);
  pointer-events: none;
}

@media (max-width: 900px) {
  .join { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .server-fields { grid-template-columns: 1fr 1fr; }
}

/* ---------- Footer ---------- */

.footer {
  padding: 56px 0 28px;
  border-top: 1px solid var(--border);
  color: var(--text-3);
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.footer-brand p { max-width: 340px; margin: 14px 0 16px; }
.footer h2 {
  margin: 4px 0 12px;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.footer ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.footer a { color: var(--text-2); text-decoration: none; }
.footer a:hover { color: var(--text); }
.ip-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  font-family: var(--mono);
  font-weight: 700;
  cursor: copy;
}
.ip-chip:hover { border-color: var(--text-3); }
.ip-chip .icon { width: 15px; height: 15px; color: var(--text-3); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 80;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface-2);
  box-shadow: var(--shadow);
  font-size: 0.94rem;
  transform: translateX(-50%);
}
.toast strong { font-family: var(--mono); }

/* ---------- Stats page ---------- */

.page-head { padding: calc(var(--nav-h) + 56px) 0 28px; }
.page-head-compact { padding: calc(var(--nav-h) + 24px) 0 20px; }

.search {
  position: relative;
  display: flex;
  gap: 8px;
  max-width: 560px;
  margin-top: 26px;
}
.search-icon {
  position: absolute;
  left: 16px;
  top: 16px;
  width: 20px;
  height: 20px;
  color: var(--text-3);
  pointer-events: none;
}
.search-input {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 0 16px 0 46px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search-input::placeholder { color: var(--text-3); }
.search-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgb(94 230 236 / 0.14); }
.search .btn { height: 52px; border-radius: 14px; }

.search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 30;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--surface-2);
  box-shadow: var(--shadow);
}
.search-results li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
}
.search-results li[aria-selected="true"], .search-results li:hover { background: rgb(255 255 255 / 0.07); }
.search-results .head { width: 28px; height: 28px; }
.search-results .search-empty { display: block; color: var(--text-3); cursor: default; }
.search-results .search-empty:hover { background: none; }

.search-compact { margin: 0; max-width: 360px; flex: 1; }
.search-compact .search-input { height: 44px; border-radius: 12px; }
.search-compact .search-icon { top: 12px; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.crumbs > a { color: var(--text-2); font-weight: 600; text-decoration: none; }
.crumbs > a:hover { color: var(--text); }

.board-section { padding: 8px 0 88px; }

.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 18px;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none;
  margin-bottom: -1px;
  padding: 12px 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--text-3);
  font-weight: 700;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.tab:hover { color: var(--text-2); }
.tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }

.board-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 14px;
}
.segmented { display: flex; flex-wrap: wrap; gap: 6px; }
.segmented:empty { display: none; }
.segmented button:hover:not(:disabled) { color: var(--text); border-color: var(--text-3); }
.segmented button[aria-pressed="true"] { background: var(--accent-soft); border-color: rgb(94 230 236 / 0.5); color: var(--accent); }
.segmented button:disabled { opacity: 0.4; cursor: not-allowed; }
.board-caption { min-height: 1.4em; margin: 0 0 12px; color: var(--text-3); font-size: 0.9rem; }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.lb { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.lb th {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-3);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
.lb td { padding: 10px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.lb tbody tr:last-child td { border-bottom: 0; }
.lb tbody tr { transition: background-color 0.12s; }
.lb tbody tr:hover { background: var(--surface-2); }
.lb .num { text-align: right; }
.lb .col-rank { width: 70px; }
.lb .col-value { color: var(--text); font-size: 1.02rem; font-weight: 800; }
.lb td.muted { color: var(--text-2); }

.medal {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 6px;
  border-radius: 9px;
  color: var(--text-3);
  font-weight: 800;
}
.medal-1 { background: rgb(243 201 105 / 0.14); color: var(--gold); }
.medal-2 { background: rgb(207 214 224 / 0.12); color: var(--silver); }
.medal-3 { background: rgb(220 154 106 / 0.14); color: var(--bronze); }

.player-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  max-width: 340px;
  text-decoration: none;
}
.player-link:hover .pn-name { text-decoration: underline; text-underline-offset: 3px; }
.player-link .head { width: 32px; height: 32px; }

.empty { margin: 0; padding: 48px 20px; color: var(--text-3); text-align: center; }
.board-more { display: flex; justify-content: center; margin-top: 18px; }

.skeleton {
  border-radius: 8px;
  background: linear-gradient(90deg, var(--surface-2) 0%, #232731 50%, var(--surface-2) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.3s linear infinite;
}
.skeleton-line { height: 14px; margin: 10px 0; max-width: 360px; }
.skeleton-title { height: 30px; max-width: 260px; }
.skeleton-short { max-width: 200px; }
.lb .skeleton-line { margin: 6px 0; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* ---------- Player page ---------- */

.profile-page { padding-bottom: 88px; }

.profile-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
}
.profile-card::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(94 230 236 / 0.1), transparent 65%);
  pointer-events: none;
}
.head-xl {
  width: 120px;
  height: 120px;
  border-radius: 20px;
  image-rendering: pixelated;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.1), 0 18px 40px -16px rgb(0 0 0 / 0.8);
}
.profile-main { min-width: 0; }
.profile-name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
}
.profile-name h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4.4vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}
.profile-name .rank-tag { font-size: 1.05rem; }
.guild-tag { font-weight: 800; }

.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-2);
  font-size: 0.93rem;
}
.profile-meta li { display: inline-flex; align-items: center; gap: 8px; }
.profile-meta strong { color: var(--text); }
.profile-meta .is-online { color: var(--online); font-weight: 700; }
.profile-meta .is-online .dot { background: var(--online); }

.xp {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  max-width: 520px;
  margin-top: 18px;
  font-size: 0.88rem;
}
.xp .lvl { font-size: 0.9rem; padding: 3px 8px; }
.xp-bar {
  flex: 1 1 120px;
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: rgb(255 255 255 / 0.08);
}
.xp-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), #a3f4f7); }
.xp-text { color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; }

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 16px 0 36px;
}
.tile {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}
.tile-value {
  display: block;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.tile-label { color: var(--text-3); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.tile-note { display: block; color: var(--text-3); font-size: 0.8rem; }

.panel-title { margin: 0 0 14px; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; }
.panel {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}
.panel .tiles { margin: 0 0 18px; }
.panel .tile { background: var(--bg-alt); }
.panel .table-wrap { background: var(--bg-alt); }
.panel-note { margin: 14px 0 0; color: var(--text-3); font-size: 0.86rem; }

.not-found-card { padding: 56px 28px; text-align: center; }
.not-found-card .page-title { margin-top: 6px; }
.not-found-card .section-lead { max-width: 560px; margin: 0 auto; }
.not-found-card .hero-actions { margin-top: 24px; }

.not-found { display: grid; align-items: center; padding: calc(var(--nav-h) + 80px) 0 96px; }

@media (max-width: 640px) {
  .profile-card { grid-template-columns: 1fr; gap: 18px; padding: 22px; }
  .head-xl { width: 88px; height: 88px; border-radius: 16px; }
  .search .btn { display: none; }
}

/* ---------- Ranks ---------- */

.mc-text { display: block; max-width: 100%; height: auto; }

.ranks-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
}
.ranks-intro > div { max-width: 660px; }
.name-preview { display: grid; gap: 8px; width: min(100%, 280px); }
.name-preview span {
  color: var(--text-3);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.name-preview input {
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-family: var(--mono);
}
.name-preview input::placeholder { color: var(--text-3); }
.name-preview input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgb(94 230 236 / 0.14); }

.ranks-list { display: grid; gap: 18px; }
.ranks-foot { padding: 26px 0 88px; }
.ranks-foot a { color: var(--text-2); }

.rank-card {
  --rank: #ffffff;
  --rank-ink: #0b0c0f;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  scroll-margin-top: calc(var(--nav-h) + 16px);
}
.rank-card:target { border-color: color-mix(in srgb, var(--rank) 60%, var(--border)); }
.rank-free { border-style: dashed; }

.rank-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 36px 24px;
  border-right: 1px solid var(--border);
  background:
    radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--rank) 20%, transparent), transparent 70%),
    #0d0f13;
}
.preview { display: grid; justify-items: center; gap: 8px; max-width: 100%; margin: 0; }
.preview figcaption {
  color: var(--text-3);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
/* The game draws nametags and chat on a translucent black box. */
.mc-nametag, .mc-chat { max-width: 100%; background: rgb(0 0 0 / 0.5); }
.mc-nametag { padding: 6px 9px; }
.mc-chat { padding: 6px 12px 4px; }

.rank-body { min-width: 0; padding: 26px 28px 24px; }
.rank-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
/* STAR+ and COSMIC+ draw their "+" in a second colour in-game; it gets its own glow here too. */
.rank-card.is-plus .rank-showcase {
  background:
    radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--rank) 20%, transparent), transparent 70%),
    radial-gradient(90% 60% at 50% 115%, color-mix(in srgb, var(--rank-plus) 16%, transparent), transparent 70%),
    #0d0f13;
}
.rank-name { margin: 0; color: var(--rank); font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; }
.rank-plus { color: var(--rank-plus); }
.rank-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 4px 0 0; }
.rank-price strong { font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.rank-price s { color: var(--text-3); }
.rank-term { color: var(--text-3); font-size: 0.86rem; }
.btn-rank { background: var(--rank); color: var(--rank-ink); box-shadow: 0 10px 26px -16px var(--rank); }
.btn-rank:hover { filter: brightness(1.1); }

.rank-desc { color: var(--text-2); font-size: 0.95rem; }
.rank-desc > :first-child { margin-top: 0; }
.rank-desc > :last-child { margin-bottom: 0; }
.rank-desc p { margin: 0 0 12px; }
.rank-desc strong, .rank-desc b { color: var(--text); }
.rank-desc ul, .rank-desc ol { margin: 0 0 14px; padding-left: 22px; }
.rank-desc li { margin: 5px 0; }
.rank-desc li > p { margin: 0; }
.rank-desc li > ul { margin: 6px 0 0; }
.rank-desc li::marker { color: var(--rank); }
.rank-desc code {
  padding: 1px 6px;
  border-radius: 6px;
  background: rgb(255 255 255 / 0.08);
  color: var(--text);
  font-size: 0.88em;
}
.rank-desc a { color: var(--accent); }
.rank-desc h4 { margin: 18px 0 8px; color: var(--text); font-size: 1rem; }

@media (max-width: 860px) {
  .rank-card { grid-template-columns: 1fr; }
  .rank-showcase { padding: 28px 16px; border-right: 0; border-bottom: 1px solid var(--border); }
  .rank-body { padding: 22px 20px; }
}

/* Ranks that aren't sold */
.ranks-other { padding-top: 48px; }
.other-ranks { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 18px; }
.other-rank {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #0d0f13;
}
.other-rank-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.other-rank p { margin: 0; color: var(--text-2); }
@media (max-width: 760px) {
  .other-ranks { grid-template-columns: 1fr; }
  .other-rank { padding: 20px; }
}

/* Home page strip */
.rank-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.rank-tile {
  --rank: #ffffff;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 28px 16px 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background:
    radial-gradient(100% 80% at 50% 0%, color-mix(in srgb, var(--rank) 16%, transparent), transparent 70%),
    var(--surface);
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s;
}
.rank-tile:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--rank) 50%, var(--border)); }
.rank-tile-tag { display: grid; place-items: center; min-height: 32px; margin-bottom: 10px; }
.rank-tile-price { font-size: 1.25rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.rank-tile-link { color: var(--text-3); font-size: 0.86rem; font-weight: 600; }
.rank-tile:hover .rank-tile-link { color: var(--rank); }

/* ---------- Guilds ---------- */

.stat-grid-4 { grid-template-columns: repeat(4, 1fr); }
.tiles-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) {
  .stat-grid-4, .tiles-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.guild-browser { padding: 28px 0 88px; }
.guild-help { margin-top: 20px; }
.filter-input {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 240px;
  max-width: 360px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text-3);
}
.filter-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgb(94 230 236 / 0.14); }
.filter-input input { flex: 1; min-width: 0; border: 0; background: none; color: var(--text); font: inherit; outline: none; }

.guild-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.guild-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s, background-color 0.2s;
}
a.guild-card:hover { transform: translateY(-3px); border-color: var(--border-strong); background: var(--surface-2); }
.guild-card-loading { min-height: 230px; }
.guild-card-top { display: flex; align-items: center; justify-content: space-between; }
.guild-rank { color: var(--text-3); font-weight: 800; font-variant-numeric: tabular-nums; }
.guild-rank-1 { color: var(--gold); }
.guild-rank-2 { color: var(--silver); }
.guild-rank-3 { color: var(--bronze); }
.guild-level {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
}
.guild-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.guild-tag-text { display: inline-block; }
.guild-master { margin: -4px 0 0; color: var(--text-3); font-size: 0.9rem; }
.guild-faces { display: flex; align-items: center; min-height: 30px; }
.guild-face { width: 28px; height: 28px; border-radius: 7px; box-shadow: 0 0 0 2px var(--surface); }
.guild-face + .guild-face { margin-left: -6px; }
a.guild-card:hover .guild-face { box-shadow: 0 0 0 2px var(--surface-2); }
.guild-faces-more { margin-left: 8px; color: var(--text-3); font-size: 0.85rem; font-weight: 700; }
.guild-xp { display: grid; gap: 6px; }
.guild-xp .xp-text { font-size: 0.8rem; }
.guild-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.guild-stats dt { color: var(--text-3); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.guild-stats dd { margin: 2px 0 0; font-weight: 800; font-variant-numeric: tabular-nums; }
.guild-open { align-self: flex-start; color: var(--online); font-size: 0.8rem; font-weight: 700; }
.guild-open.is-closed { color: var(--text-3); }

.guild-emblem {
  --tag: #ffffff;
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--tag) 18%, transparent), transparent 70%),
    #0d0f13;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.1), 0 18px 40px -16px rgb(0 0 0 / 0.8);
}
.guild-emblem-text { max-width: 96px; }
.guild-lvl { color: var(--accent); }
.guild-link { color: var(--accent); }
.profile-meta .guild-link strong { color: inherit; }
.guild-motd {
  margin: 18px 0 0;
  padding: 12px 16px;
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  background: rgb(255 255 255 / 0.04);
}
.guild-motd-label {
  color: var(--text-3);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.guild-motd p { margin: 2px 0 0; color: var(--text); overflow-wrap: anywhere; }

.guild-panel + .guild-panel { margin-top: 18px; }
.perk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.perk {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-alt);
}
.perk-value { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.02em; }
.perk-text { margin: 0; color: var(--text-2); font-size: 0.88rem; }
.perk-note { margin: 4px 0 0; color: var(--text-3); font-size: 0.8rem; }
.tag-colors { display: grid; gap: 6px; margin: 6px 0 0; padding: 0; list-style: none; }
.tag-color { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 600; }
.tag-color.is-locked { color: var(--text-3); }
.tag-swatch { width: 12px; height: 12px; border-radius: 3px; background: var(--swatch); box-shadow: 0 0 0 1px rgb(255 255 255 / 0.15); }
.tag-color.is-locked .tag-swatch { opacity: 0.35; }
.tag-color-level { margin-left: auto; color: var(--text-3); font-size: 0.78rem; }

.share-cell { min-width: 170px; }
.share-bar {
  display: inline-block;
  width: 70px;
  height: 6px;
  margin-right: 10px;
  overflow: hidden;
  border-radius: 99px;
  background: rgb(255 255 255 / 0.08);
  vertical-align: middle;
}
.share-fill { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.share-value { font-variant-numeric: tabular-nums; }
.role-tag { font-weight: 800; font-size: 0.86rem; }
.status-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
}
.status-dot.is-online { background: var(--online); box-shadow: 0 0 0 3px rgb(74 222 128 / 0.18); }

@media (max-width: 640px) {
  .guild-emblem { width: 88px; height: 88px; border-radius: 16px; }
  .guild-emblem-text { max-width: 70px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
