/* Cache-busting homepage cleanup: loaded after styles.css on production. */
html {
  scroll-padding-top: 92px;
}

.brand-logo {
  width: clamp(62px, 5.2vw, 92px) !important;
  height: 36px !important;
  object-fit: contain;
}

.hero {
  grid-template-columns: minmax(280px, 0.7fr) minmax(520px, 1.3fr);
  align-items: end;
  padding-top: clamp(20px, 2.4vw, 34px);
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 4, 3, 0.93) 0%, rgba(5, 4, 3, 0.72) 30%, rgba(5, 4, 3, 0.14) 58%, transparent 100%),
    radial-gradient(circle at 18% 54%, rgba(0, 0, 0, 0.62), transparent 35%);
}

.hero-content,
.legendary-showcase {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 450px;
}

.hero-logo {
  display: block;
  width: clamp(112px, 10vw, 150px) !important;
  max-width: 38% !important;
  max-height: 74px !important;
  margin: 0 0 12px !important;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 0 9px rgba(216, 112, 47, 0.18));
}

.hero h1 {
  max-width: 460px;
  font-size: clamp(2.2rem, 3.25vw, 3.45rem);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  max-width: 390px;
  margin-top: 10px;
}

.hero-stats > div {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  min-width: 0;
  min-height: 36px;
  gap: 7px;
  padding: 6px 9px;
  border: 1px solid rgba(216, 177, 90, 0.2);
  border-radius: 6px;
  background: rgba(5, 4, 3, 0.58);
  box-shadow: inset 0 0 14px rgba(216, 112, 47, 0.08);
}

.hero-stats .ornate-icon {
  width: 24px;
  height: 24px;
  font-size: 0.62rem;
}

.hero-stats strong {
  color: #fff4dc;
  font-family: "Rajdhani", "Inter", sans-serif;
  font-size: 1.05rem;
  line-height: 1;
  white-space: nowrap;
}

.hero-stats small {
  min-width: 0;
  overflow: hidden;
  color: rgba(236, 224, 201, 0.68);
  font-size: 0.72rem;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.featured-band,
.servers-section,
.ad-products {
  scroll-margin-top: 92px;
}

.banner-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.server-card {
  padding: 8px;
  border-color: rgba(216, 177, 90, 0.22);
  background: rgba(9, 7, 6, 0.84);
}

.server-card .banner-size {
  display: none !important;
}

.banner-media.real-banner {
  border-color: rgba(216, 177, 90, 0.24);
  background: #050302;
}

.banner-art {
  object-fit: contain;
  image-rendering: auto;
  transform: none;
}

.featured-banner-card:hover .banner-art,
.server-card:hover .banner-art {
  filter: saturate(1.04) brightness(1.04);
  transform: none;
}

.server-title > div,
.server-vote small,
.server-stats dd {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero-logo {
    width: min(140px, 40vw) !important;
    max-width: 40vw !important;
    max-height: 68px !important;
  }

  .banner-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .hero-logo {
    width: min(118px, 38vw) !important;
    max-width: 38vw !important;
    max-height: 58px !important;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .server-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .server-vote {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .server-vote strong {
    display: none;
  }
}

/* Banner card clarity pass: keep the ad visual as the loudest element. */
.server-card {
  isolation: isolate;
}

.server-card::before {
  z-index: 0;
}

.server-card > * {
  position: relative;
  z-index: 1;
}

.server-card .banner-link {
  display: block;
  z-index: 2;
  margin-bottom: 8px;
}

.server-card .banner-media.real-banner {
  overflow: hidden;
  border-color: rgba(234, 174, 84, 0.42);
  box-shadow:
    0 0 0 1px rgba(255, 228, 156, 0.06),
    0 8px 24px rgba(0, 0, 0, 0.42),
    0 0 22px rgba(216, 112, 47, 0.08);
}

.server-card .ribbon-card-banner {
  min-height: 52px;
  aspect-ratio: 468 / 60;
}

.server-card .medium-banner {
  min-height: 54px;
  aspect-ratio: 728 / 90;
}

.server-card .small-banner {
  min-height: 54px;
  aspect-ratio: 468 / 74;
}

.server-card .banner-art {
  opacity: 1;
  filter: contrast(1.06) saturate(1.08) brightness(1.05);
}

.server-card:hover .banner-art {
  filter: contrast(1.08) saturate(1.12) brightness(1.08);
}

.server-card .server-info {
  padding: 9px;
  border: 1px solid rgba(216, 177, 90, 0.16);
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(20, 13, 9, 0.9), rgba(6, 5, 5, 0.72)),
    rgba(8, 6, 5, 0.86);
  box-shadow: inset 0 0 18px rgba(216, 112, 47, 0.06);
}

.server-logo {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(216, 177, 90, 0.5);
  border-radius: 7px;
  background:
    radial-gradient(circle at 50% 24%, rgba(216, 177, 90, 0.2), transparent 58%),
    linear-gradient(180deg, rgba(70, 31, 18, 0.88), rgba(12, 8, 6, 0.92));
  color: #ffe1a6;
  font-family: Rajdhani, Inter, sans-serif;
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1;
  box-shadow:
    inset 0 0 0 1px rgba(255, 238, 188, 0.08),
    0 0 16px rgba(216, 112, 47, 0.14);
}

.server-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.server-logo.has-image {
  background: #050302;
}

.server-logo.has-image > span {
  display: none;
}

.card-actions .button:only-child {
  grid-column: 1 / -1;
}

.news-board {
  scroll-margin-top: 92px;
  padding: 24px clamp(16px, 4vw, 56px) 6px;
}

.news-heading {
  margin-bottom: 12px;
}

.news-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(2, minmax(0, 0.9fr));
  gap: 12px;
}

.news-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(216, 177, 90, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 8% 0%, rgba(216, 112, 47, 0.13), transparent 34%),
    linear-gradient(180deg, rgba(13, 10, 8, 0.92), rgba(6, 5, 5, 0.78));
  box-shadow: inset 0 0 22px rgba(216, 112, 47, 0.04);
}

a.news-card {
  color: inherit;
  text-decoration: none;
}

.news-card:hover {
  border-color: rgba(255, 179, 87, 0.36);
  box-shadow:
    inset 0 0 22px rgba(216, 112, 47, 0.07),
    0 0 18px rgba(255, 128, 48, 0.12);
  transform: translateY(-1px);
}

.news-card-featured {
  border-color: rgba(216, 177, 90, 0.3);
}

.news-avatar {
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(216, 177, 90, 0.48);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 204, 114, 0.2), transparent 58%),
    linear-gradient(180deg, rgba(83, 33, 18, 0.9), rgba(11, 8, 6, 0.94));
  color: #ffe1a6;
  font-family: Orbitron, Inter, sans-serif;
  font-size: 0.82rem;
  font-weight: 900;
}

.news-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
}

.news-copy {
  min-width: 0;
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
  color: rgba(236, 224, 201, 0.72);
  font-family: Rajdhani, Inter, sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.news-meta time {
  color: rgba(236, 224, 201, 0.52);
}

.news-card h3 {
  margin: 0 0 5px;
  overflow-wrap: anywhere;
  color: #fff3dc;
  font-family: Rajdhani, Inter, sans-serif;
  font-size: clamp(1.05rem, 1.2vw, 1.3rem);
  line-height: 1.05;
}

.news-card p {
  margin: 0;
  color: rgba(236, 224, 201, 0.74);
  font-size: 0.92rem;
  line-height: 1.38;
}

.admin-news-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: 18px;
  align-items: start;
}

.admin-news-form,
.admin-news-card {
  border: 1px solid rgba(216, 177, 90, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 0%, rgba(216, 112, 47, 0.13), transparent 34%),
    linear-gradient(180deg, rgba(14, 11, 10, 0.94), rgba(5, 4, 4, 0.9));
  box-shadow: inset 0 0 22px rgba(216, 112, 47, 0.04);
}

.admin-news-form {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.admin-news-board {
  display: grid;
  gap: 12px;
}

.admin-news-card {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.admin-news-card.is-draft {
  opacity: 0.76;
}

.admin-news-card-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.admin-news-card h2 {
  margin: 8px 0 2px;
  color: #fff3dc;
  font-family: Rajdhani, Inter, sans-serif;
  font-size: 1.35rem;
  line-height: 1;
}

.admin-news-card p {
  margin: 0;
  color: rgba(236, 224, 201, 0.76);
}

.admin-news-card a {
  color: #ffc066;
  overflow-wrap: anywhere;
}

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

  .admin-news-grid {
    grid-template-columns: 1fr;
  }
}

.admin-muted-copy {
  margin: 0;
  max-width: 720px;
  color: rgba(236, 224, 201, 0.68);
  line-height: 1.45;
}

.admin-media-board,
.admin-coupon-board,
.admin-integration-board {
  display: grid;
  gap: 12px;
}

.admin-media-board {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.admin-media-card,
.admin-coupon-card,
.admin-integration-card,
.coupon-panel,
.topic-reward-panel {
  border: 1px solid rgba(216, 177, 90, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 0%, rgba(216, 112, 47, 0.13), transparent 34%),
    linear-gradient(180deg, rgba(14, 11, 10, 0.94), rgba(5, 4, 4, 0.9));
  box-shadow: inset 0 0 22px rgba(216, 112, 47, 0.04);
}

.admin-media-card {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.admin-media-preview {
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 112px;
  border: 1px solid rgba(216, 177, 90, 0.16);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.28);
}

.admin-media-preview img {
  display: block;
  max-width: 100%;
  max-height: 190px;
  object-fit: contain;
}

.admin-media-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.admin-media-copy h2,
.admin-coupon-card h2,
.admin-integration-card h2 {
  margin: 0;
  overflow-wrap: anywhere;
  color: #fff3dc;
  font-family: Rajdhani, Inter, sans-serif;
  font-size: 1.22rem;
  line-height: 1.05;
}

.admin-media-copy dl,
.admin-coupon-card dl,
.admin-integration-card dl {
  display: grid;
  gap: 5px 10px;
  margin: 0;
  color: rgba(236, 224, 201, 0.72);
  font-size: 0.86rem;
}

.admin-media-copy dl > div,
.admin-coupon-card dl > div,
.admin-integration-card dl > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
}

.admin-media-copy dt,
.admin-coupon-card dt,
.admin-integration-card dt {
  color: rgba(255, 192, 102, 0.76);
  font-weight: 800;
  text-transform: uppercase;
}

.admin-media-copy dd,
.admin-coupon-card dd,
.admin-integration-card dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-media-actions,
.admin-coupon-actions,
.admin-integration-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-coupon-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 16px;
  align-items: start;
}

.admin-coupon-form {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(216, 177, 90, 0.18);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(15, 12, 10, 0.94), rgba(6, 5, 5, 0.9));
}

.admin-coupon-card,
.admin-integration-card {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.admin-coupon-card.is-inactive,
.admin-integration-card.is-off {
  opacity: 0.66;
}

.admin-integration-board {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.coupon-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.coupon-panel .panel-label,
.topic-tabs .status-filter,
.topic-campaign-badges .badge {
  font-family: Rajdhani, Inter, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
}

.coupon-panel h2 {
  margin: 2px 0 4px;
  color: #fff3dc;
  font-family: Rajdhani, Inter, sans-serif;
  font-size: 1.5rem;
  line-height: 1;
}

.coupon-panel span {
  color: rgba(236, 224, 201, 0.68);
}

.coupon-panel .wallet-redeem,
.coupon-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
}

.coupon-message {
  min-height: 1.1em;
  margin: 0;
  color: rgba(236, 224, 201, 0.72);
  font-size: 0.9rem;
}

.coupon-message.is-success {
  color: #9ce07c;
}

.coupon-message.is-error {
  color: #ff9b8e;
}

.summary-line.is-discount {
  color: #9ce07c;
}

.topic-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 16px;
}

.topic-tabs .status-filter {
  min-height: 34px;
  padding: 8px 13px;
  border: 1px solid rgba(216, 177, 90, 0.22);
  border-radius: 7px;
  background: linear-gradient(180deg, rgba(26, 18, 13, 0.92), rgba(7, 6, 5, 0.92));
  color: rgba(236, 224, 201, 0.76);
  cursor: pointer;
}

.topic-tabs .status-filter:hover,
.topic-tabs .status-filter.active,
.topic-tabs .status-filter.is-active {
  border-color: rgba(255, 179, 87, 0.5);
  color: #fff3dc;
  box-shadow: 0 0 18px rgba(255, 128, 48, 0.12);
}

.topic-campaign-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.topic-campaign-badges .badge {
  border-color: rgba(255, 179, 87, 0.42);
  background: rgba(94, 39, 19, 0.72);
  color: #ffe1a6;
}

.is-tab-hidden {
  display: none !important;
}

.topic-reward-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.topic-reward-panel h2 {
  margin: 0;
  color: #fff3dc;
  font-family: Rajdhani, Inter, sans-serif;
  font-size: 1.45rem;
  line-height: 1.05;
}

.topic-reward-panel .topic-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.topic-reward-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.topic-reward-stat {
  padding: 11px;
  border: 1px solid rgba(216, 177, 90, 0.14);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.22);
}

.topic-reward-stat span {
  display: block;
  color: rgba(236, 224, 201, 0.56);
  font-family: Rajdhani, Inter, sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.topic-reward-stat strong {
  display: block;
  margin-top: 4px;
  color: #ffe1a6;
  font-family: Orbitron, Inter, sans-serif;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

@media (max-width: 940px) {
  .admin-coupon-grid,
  .topic-reward-panel .topic-stats,
  .topic-reward-grid {
    grid-template-columns: 1fr;
  }

  .coupon-panel .wallet-redeem,
  .coupon-row {
    grid-template-columns: 1fr;
  }
}

.server-card .launch-line {
  margin: 4px 0 0;
  color: rgba(255, 224, 166, 0.74);
  font-family: Rajdhani, Inter, sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
}

.server-card.verified-server {
  border-color: rgba(255, 194, 103, 0.34);
  box-shadow: 0 0 0 1px rgba(255, 194, 103, 0.08), 0 16px 42px rgba(0, 0, 0, 0.34);
}

.campaign-mini-badge,
.verified-mini-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border: 1px solid rgba(255, 194, 103, 0.3);
  border-radius: 4px;
  background: rgba(22, 14, 9, 0.74);
  color: #ffe5ae;
  font-family: Rajdhani, Inter, sans-serif;
  font-size: 0.67rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.verified-mini-badge {
  background: linear-gradient(180deg, rgba(66, 95, 45, 0.9), rgba(23, 37, 18, 0.9));
  color: #ddffb4;
}

.toplist-rank em {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.toplist-rank em .badge {
  min-height: 18px;
  padding: 0 6px;
  font-size: 0.62rem;
}
