:root {
  --ink: #05060c;
  --ink-2: #0a0c16;
  --panel: rgba(12, 16, 34, 0.34);
  --text: #eef1ff;
  --muted: #9aa3c4;
  --line: rgba(238, 241, 255, 0.1);
  --cyan: #2ec8ff;
  --cyan-deep: #1a7fd4;
  --magenta: #d84cff;
  --magenta-deep: #9b2fd6;
  --accent: var(--cyan);
  --accent-2: var(--magenta);
  --cta: linear-gradient(135deg, #2ec8ff 0%, #7a5cff 48%, #d84cff 100%);
  --cta-ink: #05060c;
  --ok: #7dffb3;
  --danger: #ff9b9b;
  --font-display: "Unbounded", "Segoe UI", sans-serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --radius: 0.55rem;
  --shell: min(1280px, calc(100% - 2rem));
  --content-wide: min(1400px, calc(100% - 2rem));

  /* Sekaira design tokens */
  --sekaira-bg: #05060c;
  --sekaira-bg-deep: #03040a;
  --sekaira-surface: rgba(12, 16, 34, 0.34);
  --sekaira-surface-solid: #0a0e1c;
  --sekaira-text: #eef1ff;
  --sekaira-muted: #9aa3c4;
  --sekaira-line: rgba(238, 241, 255, 0.12);
  --sekaira-cyan: #2ec8ff;
  --sekaira-blue: #4a8cff;
  --sekaira-purple: #7a5cff;
  --sekaira-magenta: #d84cff;
  --sekaira-gradient: linear-gradient(135deg, #2ec8ff 0%, #4a8cff 35%, #7a5cff 65%, #d84cff 100%);
  --sekaira-gradient-text: linear-gradient(135deg, #8fdfff 0%, #eef1ff 45%, #e0a6ff 100%);
  --sekaira-radius: 0.55rem;
  --sekaira-radius-lg: 0.85rem;
  --sekaira-shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.35);
  --sekaira-glow-sm: 0 0 20px rgba(46, 200, 255, 0.15);
  --sekaira-glow-md: 0 0 40px rgba(46, 200, 255, 0.22), 0 0 60px rgba(216, 76, 255, 0.12);
  --glass-bg: rgba(12, 16, 34, 0.34);
  --glass-bg-hover: rgba(14, 18, 38, 0.46);
  --glass-border: rgba(238, 241, 255, 0.2);
  --glass-blur: 18px;
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.16);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.09);
  --z-ui: 10;
  --z-nav: 20;
  --z-overlay: 30;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(1000px 520px at 8% -6%, rgba(46, 200, 255, 0.14), transparent 58%),
    radial-gradient(900px 480px at 96% 10%, rgba(216, 76, 255, 0.1), transparent 52%),
    linear-gradient(180deg, #080a14 0%, var(--ink) 42%, #03040a 100%);
  background-attachment: fixed;
  position: relative;
}

.site-atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.site-atmosphere-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 8% 12%, rgba(238, 241, 255, 0.35), transparent),
    radial-gradient(1px 1px at 22% 28%, rgba(46, 200, 255, 0.25), transparent),
    radial-gradient(1px 1px at 68% 18%, rgba(216, 76, 255, 0.2), transparent);
  opacity: 0.45;
  animation: starTwinkle 9s ease-in-out infinite;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
  width: var(--shell);
  margin-inline: auto;
}

main {
  background: rgba(5, 6, 12, 0.72);
  border-radius: 0.85rem;
  padding: 0 1.25rem 0.5rem;
  margin-bottom: 1rem;
  backdrop-filter: blur(6px);
}

.is-inner main {
  width: 100%;
  max-width: none;
  padding-top: 0;
  padding-inline: clamp(1rem, 2.5vw, 2.5rem);
}

.is-inner .site-header,
.is-inner .site-footer {
  width: var(--content-wide);
}

.is-inner .page-scene {
  margin-bottom: 0.5rem;
}

.is-auth main {
  background: transparent;
  padding: 0;
  margin-bottom: 0;
  backdrop-filter: none;
  width: 100%;
  max-width: none;
}

.is-auth .page-scene {
  width: 100%;
  max-width: none;
  min-height: calc(100svh - 9rem);
}

.is-auth .page-scene__content {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100svh - 9rem);
  padding: 2rem 1.25rem 3rem;
}

.is-auth .auth-panel {
  width: min(24rem, 100%);
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  text-align: center;
}

.is-maintenance.is-auth .maintenance-panel {
  width: min(26rem, calc(100% - 2rem));
  padding: 2rem 1.75rem;
  background: rgba(8, 10, 24, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.85rem;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.is-maintenance .maintenance-panel h1 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.65rem;
}

.is-maintenance .maintenance-panel .lede,
.is-maintenance .maintenance-panel .m-lede {
  color: #e8ecf4;
  font-size: 1rem;
  line-height: 1.55;
  margin: 0 0 0.5rem;
}

.is-maintenance .maintenance-panel .muted {
  color: #a8b0c4;
  margin: 0;
}

.is-maintenance .maintenance-panel .auth-switch {
  margin-top: 1.25rem;
}

.is-auth .auth-form {
  text-align: left;
}

.is-auth .auth-switch {
  text-align: center;
}

.is-auth .form-errors {
  text-align: left;
}

.is-auth .site-header,
.is-auth .site-footer {
  width: var(--shell);
  margin-inline: auto;
}

.maintenance-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.35rem;
  padding: 0.78rem 1.15rem;
  border-radius: var(--radius);
  background: var(--cta);
  color: var(--cta-ink) !important;
  font-weight: 700;
  text-decoration: none;
}

.maintenance-cta:hover {
  filter: brightness(1.05);
}

.is-home main {
  background: transparent;
  padding: 0;
  margin-bottom: 0;
  backdrop-filter: none;
  width: 100%;
  max-width: none;
}

.is-home .site-header,
.is-home .site-footer {
  width: var(--shell);
}

.glass-nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  margin-bottom: 0.5rem;
  padding: 0.65rem 0;
  transition: background 0.25s ease, backdrop-filter 0.25s ease, box-shadow 0.25s ease;
}

.glass-nav.is-scrolled {
  background: rgba(5, 6, 12, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--sekaira-line);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  padding: 1.15rem 0 0.35rem;
  position: relative;
  z-index: 5;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
}

.brand-mark-img {
  width: 36px;
  height: 36px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

.is-home .brand {
  opacity: 0.9;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

.site-nav a:hover,
.site-nav .nav-cta {
  color: var(--text);
}

.nav-cta {
  border: 1px solid rgba(46, 200, 255, 0.45);
  color: var(--cyan) !important;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius);
}

.nav-user {
  color: var(--muted);
  font-size: 0.9rem;
}

.inline-form { display: inline; margin: 0; }

button.linkish {
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  padding: 0;
}

button.linkish:hover { color: var(--text); }
.linkish.danger { color: var(--danger); }

/* —— Home hero: one composition —— */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: grid;
  align-items: center;
  padding: 2.5rem 0 2.5rem;
  margin: 0 calc(50% - 50vw);
  padding-inline: max(1rem, calc(50vw - 560px));
  overflow: hidden;
}

.hero-sky {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 55% 35%, rgba(46, 200, 255, 0.14), transparent 68%),
    radial-gradient(ellipse 55% 45% at 70% 55%, rgba(216, 76, 255, 0.12), transparent 70%),
    linear-gradient(180deg, #0a0c18 0%, #060812 48%, #03040a 100%);
}

.hero-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(238, 241, 255, 0.7), transparent),
    radial-gradient(1.5px 1.5px at 28% 42%, rgba(46, 200, 255, 0.55), transparent),
    radial-gradient(1px 1px at 46% 14%, rgba(238, 241, 255, 0.55), transparent),
    radial-gradient(1.5px 1.5px at 62% 28%, rgba(216, 76, 255, 0.45), transparent),
    radial-gradient(1px 1px at 78% 12%, rgba(238, 241, 255, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 88% 36%, rgba(46, 200, 255, 0.4), transparent);
  opacity: 0.6;
  animation: starTwinkle 7s ease-in-out infinite;
}

.hero-portal {
  position: absolute;
  width: min(42vw, 360px);
  height: min(42vw, 360px);
  right: 6%;
  top: 20%;
  border-radius: 50%;
  border: 1px solid rgba(46, 200, 255, 0.25);
  background:
    radial-gradient(circle, rgba(46, 200, 255, 0.1) 0%, transparent 55%),
    conic-gradient(from 120deg, rgba(46, 200, 255, 0.2), rgba(216, 76, 255, 0.15), transparent 70%);
  opacity: 0.45;
  animation: portalShimmer 8s ease-in-out infinite;
  z-index: 1;
}

.hero-horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(46, 200, 255, 0.5), rgba(216, 76, 255, 0.4), transparent);
  animation: horizonPulse 6s ease-in-out infinite;
  z-index: 2;
}

.hero-stage {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) 1.15fr;
  align-items: center;
  gap: clamp(1rem, 4vw, 3rem);
  width: 100%;
}

.hero-logo-wrap {
  display: grid;
  place-items: center;
  animation: logoFloat 5.5s ease-in-out infinite;
}

.hero-logo {
  width: min(100%, 380px);
  height: auto;
  display: block;
  filter: drop-shadow(0 0 28px rgba(46, 200, 255, 0.25)) drop-shadow(0 0 48px rgba(216, 76, 255, 0.2));
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 38rem;
  padding-bottom: 0.5rem;
}

.brand-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 8vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 0.85rem;
  color: var(--text);
  background: linear-gradient(135deg, #8fdfff 0%, #eef1ff 42%, #e0a6ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: riseIn 0.9s ease both;
}

.hero-tagline {
  margin: 0 0 0.65rem;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  font-weight: 600;
  color: #d7dff8;
  animation: riseIn 0.9s ease 0.08s both;
}

.lede {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.5;
  max-width: 34rem;
  animation: riseIn 0.9s ease 0.14s both;
}

.hero-search {
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: minmax(140px, 180px) 1fr auto;
  gap: 0.45rem;
  max-width: 40rem;
  animation: riseIn 0.9s ease 0.22s both;
}

.hero-search select,
.hero-search input,
.filter-panel input,
.filter-panel select,
.listing-form input,
.listing-form select,
.listing-form textarea,
.auth-form input,
.stack-form select,
.stack-form textarea,
.stack-form input,
.vote-name input {
  width: 100%;
  padding: 0.78rem 0.85rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(4, 14, 20, 0.85);
  color: var(--text);
  font: inherit;
}

.hero-search select:focus,
.hero-search input:focus,
.auth-form input:focus,
.listing-form input:focus,
.listing-form select:focus,
.listing-form textarea:focus {
  outline: 2px solid rgba(46, 200, 255, 0.35);
  border-color: rgba(46, 200, 255, 0.45);
}

.hero-search button,
.filter-actions button,
.auth-form button[type="submit"],
.stack-form button[type="submit"] {
  padding: 0.78rem 1.15rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--cta);
  color: var(--cta-ink);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.hero-search button:hover,
.filter-actions button:hover,
.auth-form button[type="submit"]:hover,
.stack-form button[type="submit"]:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

@media (max-width: 800px) {
  .hero {
    min-height: 78vh;
    align-items: center;
  }
  .hero-stage {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .hero-logo {
    width: min(56vw, 240px);
  }
  .hero-portal {
    opacity: 0.25;
    right: 50%;
    transform: translateX(50%);
  }
  .hero-copy {
    max-width: 100%;
  }
  .hero-search {
    grid-template-columns: 1fr;
    margin-inline: auto;
  }
  .lede {
    margin-inline: auto;
  }
}

/* —— Sections —— */
.section {
  padding: 2.25rem 0 1.5rem;
}

.section-head h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.section--spotlight {
  position: relative;
}

.section-divider {
  height: 1px;
  margin: 0 0 1.5rem;
  background: linear-gradient(90deg, transparent, rgba(46, 200, 255, 0.45), rgba(216, 76, 255, 0.35), transparent);
  opacity: 0.75;
}

.page-hero {
  padding: 2.25rem 0 1rem;
}

/* Sticky transparent page artwork — layered behind scrolling content */
.page-scene {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  margin-inline: 0;
}

.page-scene__content {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  z-index: 2;
  min-width: 0;
}

.page-scene__art {
  grid-column: 1;
  grid-row: 1;
  position: sticky;
  top: clamp(3.75rem, 9vh, 5.5rem);
  align-self: start;
  justify-self: center;
  width: min(1180px, 100%);
  pointer-events: none;
  z-index: 1;
  line-height: 0;
}

.page-scene__art-img {
  width: 100%;
  height: auto;
  max-height: min(88vh, 920px);
  object-fit: contain;
  object-position: center top;
  display: block;
  background: transparent;
}

.page-scene__art-stack {
  grid-column: 1;
  grid-row: 1;
  position: sticky;
  top: clamp(3.75rem, 9vh, 5.5rem);
  align-self: start;
  justify-self: center;
  width: min(1180px, 100%);
  z-index: 1;
  line-height: 0;
}

.page-scene__art-stack .page-scene__art {
  position: static;
  width: 100%;
  top: auto;
}

.page-scene__art-stack .page-scene__art-img {
  width: 100%;
  max-height: min(88vh, 920px);
}

/* My servers — listings live inside the art frame slots */
.my-servers-scene .page-scene__content {
  max-width: 100%;
  pointer-events: none;
}

.my-servers-scene .page-hero .eyebrow,
.my-servers-scene .my-servers-intro-card {
  pointer-events: auto;
}

.my-servers-intro-card,
.my-servers-slot.my-servers-slot--overflow {
  background: rgba(18, 8, 32, 0.72);
  border: 1px solid rgba(186, 130, 255, 0.42);
  box-shadow:
    0 0 16px rgba(120, 60, 200, 0.18),
    inset 0 0 12px rgba(80, 40, 120, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.my-servers-intro-card {
  max-width: 28rem;
  padding: 1.35rem 1.5rem 1.25rem;
  border-radius: 0.65rem;
}

.my-servers-intro-card h1 {
  margin: 0 0 0.45rem;
}

.my-servers-scene .page-hero .lede {
  color: #ebe4ff;
  font-size: 1.08rem;
  line-height: 1.5;
  margin: 0 0 1rem;
  text-shadow: none;
}

.my-servers-scene .page-hero .muted {
  color: #d4c8f5;
  font-size: 1rem;
  margin: 0.75rem 0 0;
  text-shadow: none;
}

.my-servers-scene .hero-actions {
  margin-top: 0;
}

/* Rankings — full-width content; cards stay readable */
.rankings-scene .page-scene__content {
  max-width: 100%;
}

.rankings-intro-card,
.rankings-panel {
  background: rgba(10, 14, 28, 0.72);
  border: 1px solid rgba(46, 200, 255, 0.28);
  box-shadow:
    0 0 18px rgba(20, 80, 140, 0.15),
    inset 0 0 14px rgba(10, 40, 80, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.rankings-intro-card {
  max-width: 36rem;
  padding: 1.35rem 1.5rem 1.2rem;
  border-radius: 0.65rem;
}

.rankings-intro-card h1 {
  margin: 0 0 0.45rem;
}

.rankings-scene .page-hero .lede,
.rankings-scene .rankings-hero__updated {
  text-shadow: none;
}

.rankings-scene .page-hero .lede {
  color: #dcecff;
  font-size: 1.05rem;
  line-height: 1.5;
  margin: 0;
}

.rankings-scene .rankings-hero__updated {
  margin: 0.75rem 0 0;
}

.rankings-scene--trending .rankings-intro-card,
.rankings-scene--trending .rankings-panel {
  border-color: rgba(255, 140, 90, 0.32);
  box-shadow:
    0 0 18px rgba(140, 60, 20, 0.14),
    inset 0 0 14px rgba(80, 30, 10, 0.08);
}

.rankings-scene--new .rankings-intro-card,
.rankings-scene--new .rankings-panel {
  border-color: rgba(120, 255, 180, 0.28);
  box-shadow:
    0 0 18px rgba(20, 100, 60, 0.12),
    inset 0 0 14px rgba(10, 60, 40, 0.08);
}

.rankings-organic .server-list--ranked {
  gap: 0.55rem;
}

/* Moderation — sticky scene artwork */
.moderation-scene .page-scene__content {
  max-width: 100%;
}

.moderation-intro-card,
.moderation-panel {
  background: rgba(16, 10, 24, 0.72);
  border: 1px solid rgba(216, 76, 255, 0.28);
  box-shadow:
    0 0 18px rgba(100, 30, 140, 0.14),
    inset 0 0 14px rgba(60, 20, 80, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.moderation-intro-card {
  max-width: 32rem;
  padding: 1.35rem 1.5rem 1.2rem;
  border-radius: 0.65rem;
}

.moderation-intro-card h1 {
  margin: 0 0 0.45rem;
}

.moderation-scene .page-hero .lede {
  color: #ecd9ff;
  font-size: 1.05rem;
  line-height: 1.5;
  margin: 0;
  text-shadow: none;
}

.moderation-panel.admin-stats {
  padding: 1rem;
  border-radius: 0.65rem;
}

.admin-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  border-radius: 0.65rem;
}

.admin-subnav a {
  color: #c9b8ff;
  text-decoration: none;
  font-weight: 500;
}

.admin-subnav a.is-active,
.admin-subnav a:hover {
  color: #fff;
}

.admin-inline-form label {
  display: block;
  margin: 0.5rem 0;
}

.admin-inline-form input[type="text"],
.admin-inline-form input[type="number"],
.admin-inline-form textarea,
.admin-inline-form select {
  width: 100%;
  max-width: 28rem;
}

.tag-game-picker {
  border: 0;
  margin: 0.75rem 0;
  padding: 0;
}

.tag-game-picker legend {
  font-size: 0.85rem;
  color: var(--muted, #9aa3b2);
}

.maintenance-links {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
}

.nexus-hero__browse {
  margin-top: 0.75rem;
  font-size: 0.95rem;
}

.nexus-hero__browse a {
  color: #b8e4ff;
}

.moderation-scene .admin-list li {
  background: rgba(10, 14, 28, 0.55);
  border-color: rgba(216, 76, 255, 0.18);
}

.btn-ghost {
  background: rgba(12, 16, 34, 0.55);
  border-color: rgba(160, 200, 255, 0.35);
  color: #dbe8ff;
  font-weight: 600;
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  border-color: rgba(160, 220, 255, 0.55);
  color: #fff;
}

.owner-server-list {
  width: 100%;
  margin-inline: 0;
  padding-bottom: 2rem;
}

.my-servers-slots {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.my-servers-slot {
  --slot-left: 65.43%;
  --slot-width: 18.23%;

  position: absolute;
  left: var(--slot-left);
  width: var(--slot-width);
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.12rem;
  padding: 0 0.45rem;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: hidden;
  line-height: 1.12;
}

.my-servers-slot:nth-child(1) {
  top: 35.74%;
  height: 11.82%;
}

.my-servers-slot:nth-child(2) {
  top: 50.29%;
  height: 9.86%;
}

.my-servers-slot:nth-child(3) {
  top: 62.89%;
  height: 9.96%;
}

.my-servers-slot:nth-child(4) {
  top: 75.2%;
  height: 8%;
}

.my-servers-slot.my-servers-slot--overflow {
  top: 74.2%;
  height: 6.8%;
  justify-content: center;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #f3e8ff;
  text-align: center;
  text-decoration: none;
  letter-spacing: 0.02em;
  padding: 0 0.65rem;
  border-radius: 0.35rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.85);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.my-servers-slot.my-servers-slot--overflow:hover {
  color: #fff;
  background: rgba(28, 12, 48, 0.82);
  border-color: rgba(210, 160, 255, 0.62);
}

.my-servers-slot__name {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #f6eeff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9), 0 0 10px rgba(40, 10, 80, 0.5);
}

.my-servers-slot__meta {
  display: block;
  font-size: 0.7rem;
  color: rgba(240, 225, 255, 0.95);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
}

.my-servers-slot__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.45rem;
  align-items: center;
  font-size: 0.64rem;
  letter-spacing: 0.01em;
  margin-top: 0.12rem;
  position: relative;
  z-index: 2;
}

.my-servers-slot__actions a,
.my-servers-slot__actions .linkish {
  color: rgba(210, 235, 255, 0.98);
  text-decoration: none;
  font-weight: 650;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
}

.my-servers-slot__actions a:hover,
.my-servers-slot__actions .linkish:hover {
  color: #fff;
}

.my-servers-slot__actions .inline-form {
  display: inline;
}

.my-servers-slot__actions .linkish {
  font-size: inherit;
  padding: 0;
}

.page-scene__content .page-hero h1,
.page-scene__content .page-hero .lede,
.page-scene__content .page-hero .eyebrow,
.page-scene__content .page-hero .muted,
.page-scene__content .auth-panel h1,
.page-scene__content .auth-panel .lede {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.65);
}

.page-hero--world {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, min(380px, 42vw));
  align-items: end;
  gap: 1.25rem;
  min-height: 220px;
  padding: 2rem 0 1.25rem;
  overflow: hidden;
}

.page-hero--world.page-hero--compact {
  min-height: 180px;
  padding-top: 1.5rem;
}

.page-hero-copy {
  position: relative;
  z-index: 2;
}

.page-hero-art {
  position: relative;
  z-index: 1;
  justify-self: end;
  width: 100%;
  max-width: 220px;
  aspect-ratio: 2 / 3;
  border-radius: 0.85rem;
  overflow: hidden;
  mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}

.page-hero-art--scene {
  max-width: min(380px, 42vw);
  aspect-ratio: 16 / 10;
  mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.page-hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: saturate(1.05);
}

.page-hero h1 {
  margin: 0.35rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.page-hero .eyebrow,
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--cyan);
  margin: 0 0 0.65rem;
}

.page-hero .eyebrow a,
.page-hero a {
  color: var(--cyan);
  text-decoration: none;
}

.muted { color: var(--muted); }

/* —— Glass cards (see-through panels site-wide) —— */
.glass-panel,
.filter-panel,
.server-row,
.game-tile,
.rift-card,
.world-chip,
.world-hero.glass-panel,
.nexus-live__inner.glass-panel,
.review-item,
.admin-stats div,
.admin-list li,
.verify-instructions,
.listing-form {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--glass-shadow), var(--glass-highlight);
}

.glass-panel:hover,
.server-row:hover,
.game-tile:hover,
.rift-card:hover,
.world-chip:hover {
  background: var(--glass-bg-hover);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.95rem;
  margin-top: 1.15rem;
}

.game-tile {
  position: relative;
  display: grid;
  gap: 0.45rem;
  min-height: 280px;
  padding: 1.2rem 1.2rem 1rem;
  border-radius: 0.85rem;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.game-tile--art {
  align-content: end;
  padding: 0;
}

.game-tile-art {
  position: absolute;
  inset: 0;
  background-image: var(--tile-art);
  background-size: cover;
  background-position: center top;
  transform: scale(1.02);
  transition: transform 0.45s ease;
}

.game-tile-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 6, 12, 0.15) 0%, rgba(5, 6, 12, 0.35) 42%, rgba(5, 6, 12, 0.92) 100%),
    linear-gradient(90deg, rgba(46, 200, 255, 0.12), transparent 40%, rgba(216, 76, 255, 0.12));
}

.game-tile-body {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.4rem;
  padding: 1.2rem 1.15rem 1.05rem;
}

.game-tile:hover {
  border-color: rgba(46, 200, 255, 0.45);
  transform: translateY(-3px);
}

.game-tile:hover .game-tile-art {
  transform: scale(1.06);
}

.game-tile strong {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--text);
}

.game-tile span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.game-tile-go {
  margin-top: 0.35rem;
  color: #8fdfff !important;
  font-size: 0.85rem !important;
  font-weight: 600;
}

@media (max-width: 900px) {
  .page-scene__art-img {
    max-height: min(56vh, 520px);
  }

  .page-scene__art-stack .page-scene__art-img {
    max-height: min(56vh, 520px);
  }

  .my-servers-slot {
    --slot-left: 65.1%;
    --slot-width: 19%;
  }

  .my-servers-slot:nth-child(1) { top: 35.2%; height: 12.2%; }
  .my-servers-slot:nth-child(2) { top: 49.8%; height: 10.2%; }
  .my-servers-slot:nth-child(3) { top: 62.4%; height: 10.2%; }

  .my-servers-slot__name {
    font-size: 0.78rem;
  }

  .my-servers-slot__meta {
    font-size: 0.64rem;
  }

  .my-servers-slot__actions {
    font-size: 0.58rem;
  }
}

@media (max-width: 700px) {
  .page-hero--world {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .page-hero-art,
  .page-hero-art--scene {
    position: absolute;
    inset: 0 auto 0 38%;
    max-width: none;
    width: 62%;
    opacity: 0.42;
    border-radius: 0;
    mask-image: linear-gradient(90deg, transparent, #000 35%);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%);
    box-shadow: none;
  }
}

.server-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
}

.page-hero--lost .page-hero-art img {
  filter: saturate(0.85) brightness(0.9);
}

.server-hero.page-hero--world {
  min-height: 240px;
  align-items: end;
}

.server-row {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.65rem 1rem;
  padding: 0.95rem 1.05rem;
  border-radius: var(--radius);
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
  overflow: hidden;
}

.server-row__link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.server-row__link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.server-row--world {
  padding-left: 4.5rem;
}

.server-row-accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3.5rem;
  background-image: var(--row-art);
  background-size: cover;
  background-position: center top;
}

.server-row-accent::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 6, 12, 0.15), rgba(5, 6, 12, 0.75));
}

.server-row:hover {
  border-color: rgba(46, 200, 255, 0.4);
  transform: translateX(2px);
}

.server-row:hover .server-row-accent {
  filter: saturate(1.1);
}

.server-row-main { display: grid; gap: 0.2rem; flex: 1 1 12rem; position: relative; z-index: 2; }
.server-row-tags {
  flex: 1 1 100%;
  position: relative;
  z-index: 2;
}
.server-row--world .server-row-tags {
  padding-left: 3.5rem;
}
.server-row-meta,
.server-row-cta {
  color: var(--muted);
  font-size: 0.9rem;
  position: relative;
  z-index: 2;
}
.server-row-cta { color: var(--cyan); font-weight: 600; }

.server-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  color: var(--muted);
}

.server-badges span {
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  padding: 0.2rem 0.6rem;
  font-size: 0.82rem;
}

.badge-ok {
  color: var(--ok) !important;
  border-color: rgba(125, 255, 179, 0.3) !important;
}

.badge-featured {
  color: var(--cyan) !important;
  border-color: rgba(216, 76, 255, 0.35) !important;
}

.badge-offline {
  color: #ffb4b4 !important;
  border-color: rgba(255, 120, 120, 0.35) !important;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.5rem 0 1rem;
}

.connect-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  margin: 0.5rem 0 1.25rem;
}

.connect-card {
  display: grid;
  gap: 0.25rem;
  padding: 0.9rem 1rem;
  border-radius: 0.65rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.connect-card:hover {
  border-color: rgba(46, 200, 255, 0.4);
  background: rgba(46, 200, 255, 0.06);
}

.connect-card--primary {
  border-color: rgba(46, 200, 255, 0.35);
  background: rgba(46, 200, 255, 0.1);
}

.connect-card--vote {
  padding-bottom: 0.75rem;
}

.connect-card__label {
  font-weight: 700;
  font-size: 0.95rem;
}

.connect-card__hint {
  font-size: 0.82rem;
  color: var(--muted);
}

.connect-card__vote-form {
  display: grid;
  gap: 0.45rem;
  margin: 0;
}

.badge-mobile {
  color: #b8f0d8 !important;
  border-color: rgba(100, 220, 160, 0.35) !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 0.95rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  background: transparent;
}

.btn-primary {
  background: var(--cta);
  border-color: transparent;
  color: var(--cta-ink);
  font-weight: 700;
}

.btn-disabled { opacity: 0.45; cursor: not-allowed; }

.btn-vote {
  background: rgba(46, 200, 255, 0.15);
  border: 1px solid rgba(46, 200, 255, 0.4);
  color: var(--text);
  cursor: pointer;
  font: inherit;
}

.vote-form {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: flex-end;
}

.vote-name {
  display: grid;
  gap: 0.25rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.connect-hint { margin-top: 0; }

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
  margin: 0;
}

.info-grid dt {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 0.2rem;
}

.info-grid dd { margin: 0; }

.prose {
  line-height: 1.55;
  max-width: 42rem;
}

.filters-note { padding-top: 0; }

.filter-panel {
  padding: 1rem;
  border-radius: 0.65rem;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
}

.filter-panel label,
.listing-form label {
  display: grid;
  gap: 0.35rem;
}

.filter-panel label span,
.listing-form label span {
  color: var(--muted);
  font-size: 0.88rem;
}

.filter-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.9rem;
  align-items: center;
}

.filter-panel--immersive {
  position: relative;
  background: rgba(8, 12, 22, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.filter-combobox {
  position: relative;
}

.filter-combobox__list {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% + 0.2rem);
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
  max-height: 14rem;
  overflow: auto;
  border-radius: 0.5rem;
  background: rgba(12, 16, 28, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.filter-combobox__option {
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  font-size: 0.92rem;
}

.filter-combobox__option:hover,
.filter-combobox__option:focus {
  background: rgba(255, 255, 255, 0.06);
}

.owner-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.owner-actions a {
  color: var(--cyan);
  text-decoration: none;
}

.listing-form {
  max-width: 44rem;
  margin-bottom: 3rem;
}

.form-two,
.form-three {
  display: grid;
  gap: 0.85rem;
}

.form-two { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.form-three { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.form-section-title { margin: 1rem 0 0; font-size: 1.1rem; font-family: var(--font-display); font-weight: 500; }

.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.9rem;
}

.checkbox-row .check {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text);
}

.compact-form {
  max-width: 24rem;
  margin-bottom: 1rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.4rem 0 0.75rem;
}

.chip {
  display: inline-flex;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
}

.chip.is-active,
.chip:hover {
  color: var(--text);
  border-color: rgba(46, 200, 255, 0.45);
}

.rank-num {
  color: var(--cyan);
  margin-right: 0.35rem;
  font-weight: 700;
}

/* Rankings */
.rankings-hero__updated {
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.rank-nav__panel {
  padding: 1rem 1.15rem 0.85rem;
}

.rank-nav__label {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.rank-nav__label + .chip-row {
  margin-bottom: 1rem;
}

.rankings-trust__panel {
  padding: 0;
  overflow: hidden;
}

.rankings-trust__panel summary {
  cursor: pointer;
  padding: 1rem 1.15rem;
  font-weight: 600;
  list-style: none;
}

.rankings-trust__panel summary::-webkit-details-marker {
  display: none;
}

.rankings-trust__panel summary::after {
  content: "▾";
  float: right;
  color: var(--muted);
  transition: transform 0.15s ease;
}

.rankings-trust__panel:not([open]) summary::after {
  transform: rotate(-90deg);
}

.rankings-trust__body {
  padding: 0 1.15rem 1.15rem;
  border-top: 1px solid var(--line);
}

.rankings-trust__body p {
  margin: 0.85rem 0 0;
}

.rankings-trust__weights {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.rankings-trust__weights li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.02);
}

.rankings-trust__signal {
  color: var(--text);
}

.rankings-trust__pct {
  color: var(--cyan);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.rankings-trust__note {
  font-size: 0.88rem;
}

.rankings-featured {
  border: 1px solid rgba(255, 190, 90, 0.22);
  border-radius: var(--radius);
  padding: 1.25rem;
  background: linear-gradient(180deg, rgba(255, 190, 90, 0.06), transparent 70%);
}

.rankings-featured .section-head h2::after {
  content: " · Sponsored";
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffe0a8;
  vertical-align: middle;
}

.server-list--featured .server-row {
  border-color: rgba(255, 190, 90, 0.18);
}

.rankings-empty {
  padding: 1.5rem;
  text-align: center;
}

.rankings-empty p {
  margin: 0;
}

.rankings-empty .muted {
  margin-top: 0.45rem;
}

.server-row--rank-1 {
  border-color: rgba(255, 215, 100, 0.35);
  background: linear-gradient(90deg, rgba(255, 215, 100, 0.08), transparent 55%);
}

.server-row--rank-2 {
  border-color: rgba(200, 210, 230, 0.28);
  background: linear-gradient(90deg, rgba(200, 210, 230, 0.06), transparent 55%);
}

.server-row--rank-3 {
  border-color: rgba(210, 150, 90, 0.28);
  background: linear-gradient(90deg, rgba(210, 150, 90, 0.06), transparent 55%);
}

.rank-score {
  color: var(--muted);
  font-size: 0.92em;
}

/* Auth / flash / forms */
.flash {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.flash-success {
  background: rgba(70, 180, 120, 0.12);
  color: #b6f0cf;
}

.flash-error {
  background: rgba(220, 80, 80, 0.12);
  color: #ffc4c4;
}

.flash-warn {
  background: rgba(255, 190, 90, 0.12);
  color: #ffe0a8;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.auth-shell {
  display: grid;
  place-items: center;
  margin: 1.5rem 0 3rem;
  min-height: min(70vh, 640px);
}

.auth-shell-main {
  width: 100%;
  display: flex;
  justify-content: center;
}

.auth-panel {
  width: min(28rem, 100%);
  margin: 0;
  padding: 1.75rem;
  background: rgba(12, 14, 28, 0.88);
  border: 1px solid rgba(46, 200, 255, 0.2);
  border-radius: 0.75rem;
  backdrop-filter: blur(12px);
  box-shadow:
    0 0 40px rgba(46, 200, 255, 0.08),
    0 0 80px rgba(216, 76, 255, 0.05);
}

.auth-panel h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 500;
}

.auth-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.auth-form label { display: grid; gap: 0.35rem; }
.auth-form label span { color: var(--muted); font-size: 0.9rem; }

.form-errors {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  list-style: disc inside;
  background: rgba(220, 80, 80, 0.12);
  border: 1px solid rgba(220, 80, 80, 0.25);
  border-radius: var(--radius);
  color: #ffc4c4;
}

.auth-switch {
  margin: 1.25rem 0 0;
  color: var(--muted);
}

.auth-switch a { color: var(--cyan); }

.verify-panel,
.review-form,
.response-form {
  max-width: 44rem;
  margin: 1.25rem 0;
}

.verify-instructions {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 0.65rem;
}

.token-block {
  display: block;
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(4, 14, 20, 0.85);
  word-break: break-all;
  font-size: 0.9rem;
}

.stack-form {
  display: grid;
  gap: 0.85rem;
  max-width: 44rem;
}

.stack-form label { display: grid; gap: 0.35rem; }

.review-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: grid;
  gap: 1rem;
}

.review-item {
  padding: 1rem;
  border-radius: 0.65rem;
}

.review-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  margin-bottom: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.owner-response {
  margin-top: 0.75rem;
  padding: 0.75rem;
  border-left: 3px solid var(--cyan);
  background: rgba(46, 200, 255, 0.08);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.admin-stats div {
  padding: 1rem;
  border-radius: 0.65rem;
  display: grid;
  gap: 0.25rem;
}

.admin-stats strong { font-size: 1.4rem; }
.admin-stats span { color: var(--muted); font-size: 0.88rem; }

.admin-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.admin-list li {
  padding: 1rem;
  border-radius: 0.65rem;
}

.admin-row-main {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.7rem;
  align-items: center;
  margin-bottom: 0.45rem;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.55rem;
}

.status-pill {
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  padding: 0.15rem 0.55rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.site-footer {
  padding: 2.5rem 0 3rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  display: grid;
  gap: 0.35rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--text);
}

.footer-brand img {
  display: block;
  filter: drop-shadow(0 0 8px rgba(46, 200, 255, 0.25));
}

.footer-meta { margin: 0; font-size: 0.9rem; opacity: 0.8; }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
}

.footer-legal a {
  color: var(--muted);
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.legal-page {
  max-width: 52rem;
  margin: 0 auto;
  padding: 0.5rem 0 2rem;
}

.legal-hero {
  margin-bottom: 1.75rem;
}

.legal-hero h1 {
  margin: 0.35rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
}

.legal-updated {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.legal-nav__link {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.legal-nav__link:hover {
  color: var(--text);
  border-color: rgba(46, 200, 255, 0.35);
}

.legal-nav__link.is-active {
  color: var(--text);
  border-color: rgba(46, 200, 255, 0.45);
  background: rgba(46, 200, 255, 0.08);
}

.legal-doc {
  max-width: none;
  color: var(--text);
}

.legal-doc h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.25rem;
  font-family: var(--font-display);
  color: var(--text);
}

.legal-doc h3 {
  margin: 1.35rem 0 0.55rem;
  font-size: 1.05rem;
  color: var(--text);
}

.legal-doc p,
.legal-doc li {
  color: var(--muted);
}

.legal-doc ul,
.legal-doc ol {
  margin: 0.5rem 0 1rem;
  padding-left: 1.35rem;
}

.legal-doc li + li {
  margin-top: 0.35rem;
}

.legal-doc a {
  color: var(--accent);
}

.legal-doc code {
  font-size: 0.88em;
  color: var(--text);
}

.auth-legal-note {
  margin: 1rem 0 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
}

.auth-legal-note a {
  color: var(--accent);
}

.featured-legal-note {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.featured-legal-note a {
  color: var(--accent);
}

/* Mobile: skip expensive backdrop-filter over full-screen art */
@media (max-width: 900px), (hover: none) and (pointer: coarse) {
  .glass-panel,
  .filter-panel,
  .server-row,
  .game-tile,
  .rift-card,
  .world-chip,
  .world-hero.glass-panel,
  .nexus-live__inner.glass-panel,
  .review-item,
  .admin-stats div,
  .admin-list li,
  .verify-instructions,
  .listing-form,
  .world-gate__hud {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(12, 16, 34, 0.82);
  }
}

@media (max-width: 860px) {
  .auth-shell {
    min-height: 0;
  }

  .server-row--world {
    padding-left: 3.75rem;
  }

  .server-row-accent {
    width: 3rem;
  }
}

/* Motion */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes horizonPulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes portalShimmer {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.03); }
}

@keyframes starTwinkle {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.85; }
}

@keyframes ridgeDrift {
  from { transform: translateX(-1.2%); }
  to { transform: translateX(1.2%); }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* Tags — discovery chips & owner picker */
.tag-list,
.tag-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(120, 170, 255, 0.28);
  background: rgba(14, 22, 42, 0.72);
  color: #c8d8ff;
  font-size: 0.78rem;
  font-weight: 550;
  letter-spacing: 0.02em;
  text-decoration: none;
  line-height: 1.35;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

a.tag-chip:hover {
  border-color: rgba(160, 200, 255, 0.55);
  background: rgba(22, 34, 62, 0.88);
  color: #eef4ff;
  box-shadow: 0 0 0 1px rgba(100, 180, 255, 0.12);
}

.tag-chip.is-active {
  border-color: rgba(120, 220, 255, 0.75);
  background: linear-gradient(135deg, rgba(40, 90, 160, 0.55), rgba(80, 40, 120, 0.45));
  color: #fff;
  box-shadow: 0 0 18px rgba(80, 160, 255, 0.18);
}

.tag-chip__count {
  margin-left: 0.35rem;
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0.85;
}

.tag-chip--more {
  opacity: 0.75;
  border-style: dashed;
}

.tag-browse {
  padding-top: 0.25rem;
}

.tag-browse .section-head p a {
  color: var(--accent);
  margin-left: 0.35rem;
}

.server-row-main .tag-list {
  margin-top: 0.45rem;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  margin-top: 1.25rem;
}

.pagination__status {
  color: var(--muted);
  font-size: 0.9rem;
}

.pagination__link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.pagination__link:hover {
  text-decoration: underline;
}

.pagination__link--disabled {
  opacity: 0.45;
  pointer-events: none;
}

.server-hero .tag-list {
  margin-top: 0.65rem;
}

.tag-picker {
  margin: 0;
  padding: 0;
  border: 0;
}

.tag-picker legend {
  font-weight: 650;
  margin-bottom: 0.35rem;
}

.tag-picker-hint {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
}

.tag-picker-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tag-picker-option {
  display: inline-flex;
  cursor: pointer;
}

.tag-picker-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tag-picker-option input:checked + .tag-chip {
  border-color: rgba(120, 220, 255, 0.75);
  background: linear-gradient(135deg, rgba(40, 90, 160, 0.55), rgba(80, 40, 120, 0.45));
  color: #fff;
}

.tag-picker-option input:focus-visible + .tag-chip {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Media gallery */
.media-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
}

.media-gallery__item {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  overflow: hidden;
  background: rgba(12, 16, 34, 0.55);
}

.media-gallery__thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.media-gallery__thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.media-gallery__video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.media-gallery__external {
  display: block;
  padding: 2rem 1rem;
  text-align: center;
  color: var(--accent);
}

.media-gallery figcaption {
  padding: 0.45rem 0.65rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.media-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: rgba(3, 4, 10, 0.88);
}

.media-lightbox[hidden] {
  display: none !important;
}

.media-lightbox__image {
  max-width: min(960px, 92vw);
  max-height: 78vh;
  border-radius: 0.5rem;
}

.media-lightbox__caption {
  margin-top: 0.75rem;
  color: #dbe6ff;
  text-align: center;
}

.media-lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 3;
}

.media-lightbox__prev,
.media-lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: rgba(8, 12, 24, 0.65);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  cursor: pointer;
  z-index: 3;
}

.media-lightbox__prev {
  left: 1rem;
}

.media-lightbox__next {
  right: 1rem;
}

.media-lightbox__prev:disabled,
.media-lightbox__next:disabled {
  opacity: 0.35;
  cursor: default;
}

body.media-lightbox-open {
  overflow: hidden;
}

.owner-media-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.owner-media-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
}

.owner-media-list img {
  border-radius: 0.35rem;
  object-fit: cover;
}

/* Analytics */
.analytics-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.analytics-card {
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  background: rgba(12, 16, 34, 0.55);
}

.analytics-card__label {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.analytics-card__value {
  font-size: 1.35rem;
}

#analytics-chart {
  width: 100%;
  max-width: 900px;
  height: 280px;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  background: rgba(8, 12, 24, 0.65);
}

.analytics-chart-tooltip {
  position: absolute;
  pointer-events: none;
  padding: 0.35rem 0.55rem;
  border-radius: 0.35rem;
  background: rgba(8, 12, 24, 0.92);
  border: 1px solid rgba(120, 170, 255, 0.35);
  color: #dbe6ff;
  font-size: 0.78rem;
  white-space: nowrap;
  z-index: 2;
}

.analytics-chart-wrap {
  position: relative;
  max-width: 900px;
}

/* Ad slots */
.ad-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
}

.ad-slot--vertical {
  justify-content: center;
}

.nexus-hero__rail .ad-slot--vertical {
  height: 100%;
  min-height: var(--ad-h, 600px);
}

.ad-slot--horizontal {
  justify-content: center;
}

.ad-slot__label {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(200, 216, 255, 0.55);
}

.ad-slot--placeholder .ad-slot__label {
  color: rgba(180, 200, 240, 0.65);
}

.ad-slot__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  color: inherit;
  width: 100%;
}

.ad-slot__image {
  display: block;
  width: 100%;
  max-width: var(--ad-max-width, 160px);
  height: auto;
  border-radius: 0.5rem;
  border: 1px solid rgba(120, 170, 255, 0.22);
  object-fit: cover;
}

.ad-slot--horizontal .ad-slot__image {
  max-width: min(100%, var(--ad-max-width, 728px));
}

.ad-slot__caption {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
}

.ad-slot__placeholder {
  position: relative;
  width: min(100%, var(--ad-max-width, 160px));
  aspect-ratio: var(--ad-w, 160) / var(--ad-h, 600);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(120, 170, 255, 0.18);
}

.ad-slot--horizontal .ad-slot__placeholder {
  width: min(100%, var(--ad-max-width, 728px));
}

.ad-slot__placeholder-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.ad-slot__placeholder-format {
  position: absolute;
  left: 0.5rem;
  bottom: 0.45rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(190, 210, 245, 0.85);
  background: rgba(8, 14, 28, 0.55);
  border: 1px solid rgba(120, 170, 255, 0.2);
}

.ad-placement {
  display: flex;
  justify-content: center;
  width: 100%;
}

.ad-placement--banner,
.ad-placement--inline {
  padding-block: 0.35rem 0.75rem;
}

.ad-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: start;
}

.ad-page-layout__main {
  min-width: 0;
}

.ad-page-layout__rail {
  position: sticky;
  top: calc(var(--header-offset, 4.5rem) + 0.75rem);
  align-self: start;
  flex: 0 0 auto;
  width: fit-content;
  max-width: 100%;
  padding-top: 0.25rem;
}

.ad-filter-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.ad-filter-layout__filters {
  flex: 1 1 28rem;
  min-width: min(100%, 28rem);
}

.ad-filter-layout__rail {
  flex: 0 0 auto;
  width: fit-content;
  max-width: 100%;
}

.connect-ad-band {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: clamp(1rem, 2vw, 1.5rem);
  margin: 0.5rem 0 1.25rem;
}

.connect-ad-band .connect-cards {
  margin: 0;
}

.connect-ad-band__main {
  flex: 1 1 20rem;
  min-width: 0;
}

.connect-ad-band__rail {
  flex: 0 0 auto;
  width: fit-content;
  max-width: 100%;
}

@media (min-width: 1101px) {
  .ad-filter-layout__rail,
  .connect-ad-band__rail,
  .ad-page-layout__rail {
    position: sticky;
    top: calc(var(--header-offset, 4.5rem) + 0.75rem);
  }
}

@media (max-width: 1100px) {
  .ad-page-layout {
    grid-template-columns: 1fr;
  }

  .ad-page-layout__rail,
  .ad-filter-layout__rail,
  .connect-ad-band__rail {
    position: static;
    width: 100%;
    max-width: 320px;
    margin-inline: auto;
  }

  .ad-page-layout__rail {
    order: -1;
  }
}

@media (max-width: 640px) {
  .ad-placement--banner .ad-slot--horizontal .ad-slot__placeholder,
  .ad-placement--inline .ad-slot--horizontal .ad-slot__placeholder {
    width: 100%;
  }
}

.ad-preview {
  margin-top: 0.5rem;
}

.ad-preview img {
  max-width: 160px;
  border-radius: 0.5rem;
  border: 1px solid rgba(120, 170, 255, 0.22);
}

.form-hint--warn {
  color: #ffb86b;
  font-size: 0.88rem;
}

/* Ad manager — dedicated staff page for sponsored placements */
.ad-manager-scene .page-scene__content {
  max-width: 100%;
}

.ad-manager-group--game {
  padding-top: 0.25rem;
  border-top: 1px solid rgba(120, 170, 255, 0.14);
}

.ad-manager-group__paths {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
}

.ad-slot-card__context {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(160, 190, 240, 0.7);
}

.ad-manager-intro .ad-manager-summary {
  margin: 0.85rem 0 0;
  color: #c8b8ff;
  font-size: 0.95rem;
}

.moderation-admin-links {
  margin: 1rem 0 0;
}

.ad-manager-group__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.ad-manager-group__count {
  flex-shrink: 0;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(216, 76, 255, 0.35);
  color: #ecd9ff;
  font-size: 0.82rem;
  font-weight: 600;
}

.ad-manager-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.ad-slot-card {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 0.65rem;
  background: rgba(10, 14, 28, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.ad-slot-card--live {
  border-color: rgba(100, 220, 160, 0.35);
}

.ad-slot-card--incomplete {
  border-color: rgba(255, 184, 107, 0.35);
}

.ad-slot-card--disabled {
  opacity: 0.88;
}

.ad-slot-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.ad-slot-card__head h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.ad-slot-card__id {
  font-size: 0.75rem;
  color: var(--muted);
}

.ad-slot-card__status {
  flex-shrink: 0;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  color: var(--muted);
}

.ad-slot-card--live .ad-slot-card__status {
  color: #9ef0c8;
  border-color: rgba(100, 220, 160, 0.35);
}

.ad-slot-card--incomplete .ad-slot-card__status {
  color: #ffcb8a;
  border-color: rgba(255, 184, 107, 0.35);
}

.ad-slot-card__spec {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.ad-slot-card__spec span:not(:last-child)::after {
  content: "·";
  margin-left: 0.65rem;
  opacity: 0.55;
}

.ad-slot-card__preview {
  min-height: 120px;
  display: grid;
  place-items: center;
  padding: 0.65rem;
  border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.25);
}

.ad-slot-card__dropzone {
  position: relative;
  cursor: pointer;
  border-radius: 0.55rem;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.18);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.ad-slot-card__dropzone:hover,
.ad-slot-card__dropzone:focus-visible {
  border-color: rgba(216, 76, 255, 0.45);
  outline: none;
  box-shadow: 0 0 0 2px rgba(216, 76, 255, 0.15);
}

.ad-slot-card__dropzone.is-dragover {
  border-color: rgba(46, 200, 255, 0.65);
  background: rgba(46, 200, 255, 0.08);
  box-shadow: 0 0 0 2px rgba(46, 200, 255, 0.2);
}

.ad-slot-card__dropzone.is-uploading {
  pointer-events: none;
  opacity: 0.75;
}

.ad-slot-card__drop-hint {
  display: block;
  padding: 0 0.65rem 0.65rem;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
}

.ad-slot-card__uploading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: inherit;
  background: rgba(8, 12, 22, 0.72);
  color: #dcecff;
  font-weight: 600;
  font-size: 0.9rem;
}

.ad-slot-card__preview img {
  max-width: 100%;
  max-height: 180px;
  width: auto;
  height: auto;
  border-radius: 0.35rem;
}

.ad-slot-card__preview-empty {
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  line-height: 1.45;
}

.ad-slot-card__toggle {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
}

.ad-slot-card__fields {
  display: grid;
  gap: 0.65rem;
}

.ad-slot-card__fields label {
  display: grid;
  gap: 0.3rem;
}

.ad-slot-card__fields label span {
  font-size: 0.82rem;
  color: var(--muted);
}

.forum-page {
  padding: 1.5rem 0 3rem;
  max-width: 1120px;
  margin-inline: auto;
}

.forum-hero {
  display: grid;
  gap: 1.1rem;
  margin-bottom: 1.75rem;
}

.forum-hero h1 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 500;
}

.forum-hero__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-end;
}

.forum-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  max-width: 40rem;
}

.forum-search input {
  width: 100%;
  min-height: 2.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(8, 12, 24, 0.72);
  color: var(--text);
  padding: 0.55rem 0.85rem;
}

.forum-search button {
  border: 0;
  border-radius: var(--radius);
  background: var(--cta);
  color: var(--cta-ink);
  font-weight: 700;
  padding: 0 1.1rem;
}

.forum-stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding: 0;
  margin: 0;
  color: var(--muted);
}

.forum-stats strong {
  color: var(--text);
}

.forum-layout {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .forum-layout {
    grid-template-columns: minmax(0, 1fr) 17.5rem;
    align-items: start;
  }
}

.forum-section {
  margin-bottom: 1.75rem;
}

.forum-board-list,
.forum-thread-list,
.forum-posts,
.forum-guide,
.forum-update-rail {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}

.forum-board-card,
.forum-thread-row a,
.forum-post,
.forum-aside-card,
.forum-reply {
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: rgba(12, 16, 34, 0.55);
  text-decoration: none;
  color: inherit;
}

.forum-board-card {
  display: grid;
  gap: 0.85rem;
  padding: 1.1rem 1.15rem;
}

.forum-board-card h3 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
}

.forum-board-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.forum-board-card__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0;
}

.forum-board-card__meta dt {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.forum-board-card__meta dd {
  margin: 0.15rem 0 0;
  font-weight: 600;
}

.forum-thread-row a {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.9rem 1rem;
}

.forum-avatar {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(46, 200, 255, 0.14);
  color: var(--cyan);
  font-weight: 700;
}

.forum-thread-row__body {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.forum-thread-row__body strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.forum-thread-row__meta,
.forum-thread-row__stats,
.forum-post__meta,
.forum-thread-lead {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.7rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.forum-thread-row__stats {
  text-align: right;
  justify-content: flex-end;
}

.forum-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.forum-chip--official {
  color: var(--cyan);
  border-color: rgba(46, 200, 255, 0.35);
}

.forum-chip--ok {
  color: var(--ok);
  border-color: rgba(125, 255, 179, 0.3);
}

.forum-aside {
  display: grid;
  gap: 0.85rem;
}

.forum-aside-card,
.forum-reply {
  padding: 1.1rem;
  display: grid;
  gap: 0.75rem;
}

.forum-aside-card h2,
.forum-reply h2 {
  margin: 0;
  font-size: 0.95rem;
}

.forum-guide {
  color: var(--muted);
  font-size: 0.9rem;
}

.forum-compose {
  display: grid;
  gap: 0.75rem;
}

.forum-compose label {
  display: grid;
  gap: 0.3rem;
}

.forum-compose input,
.forum-compose textarea {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(8, 12, 24, 0.72);
  color: var(--text);
  padding: 0.55rem 0.75rem;
  font: inherit;
}

.forum-posts {
  gap: 0.85rem;
}

.forum-post {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 0.85rem;
  padding: 1rem 1.1rem;
}

.forum-post__meta strong {
  color: var(--text);
}

.forum-locked {
  padding: 1rem;
  border: 1px dashed var(--line);
  border-radius: 0.75rem;
  color: var(--muted);
}

@media (max-width: 720px) {
  .forum-thread-row a {
    grid-template-columns: 2.4rem minmax(0, 1fr);
  }
  .forum-thread-row__stats {
    grid-column: 2;
    text-align: left;
    justify-content: flex-start;
  }
}

.server-updates {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.ad-manager-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin: 0.5rem 0 2rem;
  position: sticky;
  bottom: 1rem;
  z-index: 5;
  padding: 0.85rem 1rem;
  border-radius: 0.65rem;
  background: rgba(8, 12, 22, 0.92);
  border: 1px solid rgba(216, 76, 255, 0.25);
  backdrop-filter: blur(10px);
}

.star-rating {
  border: 0;
  padding: 0;
  margin: 0 0 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.star-rating legend {
  font-size: 0.85rem;
  color: var(--muted);
  margin-right: 0.35rem;
}

.star-rating__option {
  position: relative;
  cursor: pointer;
}

.star-rating__option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.star-rating__option span {
  display: inline-block;
  padding: 0.4rem 0.65rem;
  border-radius: 0.45rem;
  border: 1px solid var(--line);
  background: rgba(4, 14, 20, 0.65);
  font-size: 0.95rem;
  transition: border-color 0.15s, background 0.15s;
}

.star-rating__option input:checked + span,
.star-rating__option input:focus-visible + span {
  border-color: rgba(46, 200, 255, 0.55);
  background: rgba(46, 200, 255, 0.12);
  color: var(--cyan);
}

.vote-interval-hint {
  font-size: 0.78rem;
}

.owner-form-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
  position: sticky;
  top: 0.5rem;
  z-index: 4;
  padding: 0.65rem 0;
}

.owner-form-nav a {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(4, 14, 20, 0.75);
  color: var(--muted);
  font-size: 0.85rem;
  text-decoration: none;
}

.owner-form-nav a:hover {
  color: var(--cyan);
  border-color: rgba(46, 200, 255, 0.35);
}

.token-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: flex-start;
}

.token-row .token-block {
  flex: 1 1 12rem;
}
