@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=Oswald:wght@500;600;700&display=swap');

:root {
  --bg: #12110f;
  --bg-elevated: #1a1815;
  --surface: #1e1c18;
  --surface-2: #26231e;
  --border: rgba(210, 190, 150, 0.14);
  --border-strong: rgba(210, 190, 150, 0.28);
  --text: #ebe4d6;
  --muted: #a39a88;
  --faint: #746c5c;
  --amber: #d4a24c;
  --amber-hot: #e8bf6a;
  --ember: #b5522a;
  --copper: #9a6a3a;
  --online: #6aa87a;
  --danger: #c45a52;
  --rank-gold: #d4a24c;
  --rank-silver: #b8bdc6;
  --rank-bronze: #b07a48;
  --shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
  --radius: 4px;
  --radius-sm: 3px;
  --max: 1120px;
  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'IBM Plex Sans', 'Segoe UI', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    linear-gradient(180deg, #1a1713 0%, #12110f 28%, #0e0d0b 100%);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Nav */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #161410;
  border-bottom: 2px solid rgba(212, 162, 76, 0.35);
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand__mark {
  width: 30px;
  height: 30px;
  border-radius: 2px;
  display: grid;
  place-items: center;
  background: var(--amber);
  color: #1a140c;
  border: 1px solid rgba(0, 0, 0, 0.35);
}

.brand__mark svg {
  width: 18px;
  height: 18px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown__btn {
  padding: 0.45rem 0.55rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

.nav-dropdown__btn:hover,
.nav-dropdown[aria-expanded='true'] .nav-dropdown__btn,
.nav-dropdown:focus-within .nav-dropdown__btn {
  color: var(--text);
  border-bottom-color: var(--amber);
}

.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  z-index: 40;
  min-width: 220px;
  max-height: 70vh;
  overflow: auto;
  padding: 0.4rem;
  background: var(--panel, #151a22);
  border: 1px solid var(--border);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  display: grid;
  gap: 0.15rem;
}

.nav-dropdown__menu[hidden] {
  display: none;
}

.nav-dropdown__menu a {
  display: block;
  padding: 0.45rem 0.55rem;
  color: var(--muted);
  font-size: 0.88rem;
  border-bottom: 0 !important;
}

.nav-dropdown__menu a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.game-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--border);
  background:
    radial-gradient(120% 80% at 0% 0%, color-mix(in srgb, var(--game-accent, var(--amber)) 16%, transparent), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
  color: inherit;
  text-decoration: none;
  min-height: 118px;
  transition: border-color 0.15s, transform 0.15s;
}

.game-card:hover {
  border-color: var(--game-accent, var(--amber));
  transform: translateY(-1px);
}

.game-card__top {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.game-card__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  flex-shrink: 0;
  border-radius: 0.35rem;
  color: var(--game-accent, var(--amber));
  background: color-mix(in srgb, var(--game-accent, var(--amber)) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--game-accent, var(--amber)) 35%, transparent);
}

.game-card__icon {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}

.game-card__short {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--game-accent, var(--amber));
  font-weight: 800;
}

.game-card__name {
  font-size: 1rem;
  line-height: 1.2;
}

.game-card__blurb {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

@media (max-width: 980px) {
  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .game-grid {
    grid-template-columns: 1fr;
  }
}


.nav-links a {
  padding: 0.45rem 0.55rem;
  border-radius: 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: transparent;
  border-bottom-color: var(--amber);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius);
  background: var(--amber);
  color: #1a140c;
  font-weight: 700;
  font-size: 0.88rem;
  border: 1px solid rgba(0, 0, 0, 0.25);
  transition: background 0.15s;
}

.nav-cta:hover {
  background: var(--amber-hot);
}

.nav-auth {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.nav-auth a:not(.nav-cta) {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
}

.nav-auth a:not(.nav-cta):hover,
.nav-links__user {
  color: var(--text);
}

.nav-links__user {
  font-weight: 700;
}

.nav-admin {
  color: var(--amber-hot) !important;
  font-weight: 800 !important;
  font-size: 0.92rem;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.admin-stats .stat {
  background: rgba(17, 21, 28, 0.92);
  padding: 1.1rem 1.2rem;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.admin-table-wrap {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(17, 21, 28, 0.9);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.admin-table th,
.admin-table td {
  padding: 0.85rem 0.95rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  font-size: 0.9rem;
}

.admin-table th {
  color: var(--faint);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.02);
}

.admin-table tr:last-child td {
  border-bottom: 0;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}

@media (max-width: 1100px) {
  .trending-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .admin-stats,
  .admin-grid {
    grid-template-columns: 1fr 1fr;
  }

  .trending-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .admin-stats,
  .admin-grid {
    grid-template-columns: 1fr;
  }
}

.auth-panel {
  max-width: 480px;
}

.auth-switch {
  margin: 1rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.auth-switch a {
  color: var(--amber-hot);
  font-weight: 700;
}

.auth-note,
.field-hint {
  display: block;
  margin-top: 0.45rem;
  color: var(--faint);
  font-size: 0.82rem;
  line-height: 1.45;
}

.field-label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.tag-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.tag-check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: rgba(10, 12, 16, 0.45);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  user-select: none;
}

.tag-check:hover {
  border-color: rgba(226, 168, 74, 0.35);
  color: var(--text);
}

.tag-check:has(input:checked) {
  border-color: rgba(226, 168, 74, 0.55);
  background: rgba(226, 168, 74, 0.1);
  color: var(--amber-hot);
}

.tag-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--amber);
  flex-shrink: 0;
}

@media (max-width: 560px) {
  .tag-checks {
    grid-template-columns: 1fr;
  }
}

.field-hint code {
  color: var(--amber-hot);
  font-size: 0.78rem;
}

.account-meta p {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.account-meta strong {
  color: var(--text);
}

.owner-box {
  margin-top: 1.25rem;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(226, 168, 74, 0.25);
  background: rgba(226, 168, 74, 0.06);
}

/* Advertising */
.ad-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.ad-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(22, 27, 36, 0.98), rgba(14, 17, 24, 0.98));
  min-height: 260px;
}

.ad-card.is-available {
  border-color: rgba(111, 191, 138, 0.28);
}

.ad-card.is-mine {
  border-color: rgba(226, 168, 74, 0.45);
  box-shadow: 0 0 0 1px rgba(226, 168, 74, 0.12);
}

.ad-card__top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.ad-card__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.ad-card__price {
  text-align: right;
}

.ad-card__price strong {
  display: block;
  color: var(--amber-hot);
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1;
}

.ad-card__price span {
  color: var(--muted);
  font-size: 0.82rem;
}

.ad-card__size {
  margin: 0;
  color: var(--faint);
  font-size: 0.9rem;
}

.ad-card__desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  flex: 1;
}

.ad-card__inventory {
  margin: 0;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 700;
}

.ad-card__status {
  margin: 0;
  color: var(--amber-hot);
  font-weight: 700;
  font-size: 0.9rem;
}

.ad-rotate {
  display: grid;
  gap: 0.65rem;
}

.ad-rotate--sidebar {
  gap: 0.75rem;
}

.ad-rotate--wide .ad-creative {
  width: 100%;
}

.ad-card.is-available .ad-card__status {
  color: var(--online);
}

.ad-card__actions {
  margin-top: 0.25rem;
}

.ad-card__actions .btn {
  width: 100%;
}

.setup-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 1.25rem;
  align-items: start;
  padding-bottom: 2.5rem;
}

.setup-aside .setup-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.setup-aside .setup-list li {
  margin-bottom: 0.4rem;
}

.setup-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.setup-step {
  text-align: center;
  padding: 0.55rem 0.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  color: var(--faint);
  font-size: 0.8rem;
  font-weight: 700;
}

.setup-step.is-active {
  color: #1a140c;
  background: var(--amber);
  border-color: rgba(0, 0, 0, 0.25);
}

.upload-zone {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: center;
}

.upload-zone.is-dragover .banner-preview {
  border-color: var(--amber-hot);
  background: rgba(226, 168, 74, 0.1);
}

.upload-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.banner-preview {
  display: grid;
  place-items: center;
  min-height: 90px;
  border-radius: 12px;
  border: 1px dashed rgba(226, 168, 74, 0.35);
  background: rgba(0, 0, 0, 0.25);
  color: var(--faint);
  font-size: 0.95rem;
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
}

.upload-zone:hover .banner-preview {
  border-color: rgba(226, 168, 74, 0.65);
  background: rgba(226, 168, 74, 0.06);
}

.banner-preview small {
  display: inline-block;
  margin-top: 0.35rem;
  color: var(--faint);
  font-size: 0.78rem;
}

.banner-preview--wide {
  min-height: 90px;
}

.banner-preview--box {
  width: min(100%, 300px);
  aspect-ratio: 300 / 250;
  min-height: 0;
}

.banner-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 860px) {
  .setup-layout {
    grid-template-columns: 1fr;
  }
}

.ad-creative {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0d1016;
}

.ad-creative img {
  width: 100%;
  height: auto;
  display: block;
}

.ad-creative--leaderboard {
  width: 100%;
  margin: 0 0 1rem;
}

.ad-creative--leaderboard img {
  max-height: 90px;
  object-fit: cover;
}

.ad-creative--sidebar img {
  width: 100%;
  aspect-ratio: 300 / 250;
  object-fit: cover;
}

.ad-rotate--listing {
  width: 100%;
}

.ad-creative--listing {
  width: 100%;
  margin: 0.15rem 0;
}

.ad-creative--listing img {
  width: 100%;
  max-height: 90px;
  aspect-ratio: 728 / 90;
  object-fit: contain;
  background: #0d1016;
}

.listing-box-ad {
  display: grid;
  place-items: center;
  margin: 0.35rem 0 0.85rem;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(226, 168, 74, 0.2);
  background: rgba(255, 255, 255, 0.02);
}

/* Vote interstitial */
.honeypot-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.vote-guard-panel {
  max-width: 420px;
}

.vote-guard-copy {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.turnstile-wrap {
  display: grid;
  gap: 0.75rem;
  justify-items: start;
  min-height: 70px;
}

.fallback-captcha p {
  margin: 0 0 0.85rem;
  color: var(--text);
  font-size: 1.05rem;
}

.fallback-captcha__options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  margin-bottom: 0.5rem;
}

.fallback-captcha__options .btn {
  min-height: 48px;
  font-size: 1.1rem;
  font-weight: 800;
}

.vote-interstitial {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  place-items: center;
  background: rgba(5, 7, 10, 0.82);
  backdrop-filter: blur(6px);
  padding: 1rem;
}

.vote-interstitial.open {
  display: grid;
}

.vote-interstitial__panel {
  width: min(100%, 360px);
  padding: 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: #141820;
  text-align: center;
}

.vote-interstitial__panel img {
  width: 100%;
  aspect-ratio: 300 / 250;
  object-fit: cover;
  border-radius: 10px;
  margin: 0.75rem 0;
}

/* Modal checkout */
body.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: none;
  place-items: center;
  padding: 1rem;
  background: rgba(5, 7, 10, 0.78);
  backdrop-filter: blur(6px);
}

.modal.open {
  display: grid;
}

.modal__panel {
  width: min(100%, 520px);
  max-height: min(90vh, 820px);
  overflow: auto;
  padding: 1.25rem;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--border-strong);
  background: #12161e;
  box-shadow: var(--shadow);
}

.modal__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.modal__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.modal__close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1;
}

.checkout-summary {
  margin-bottom: 1rem;
  padding: 0.9rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.checkout-price {
  margin-top: 0.35rem;
  color: var(--amber-hot);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
}

.checkout-price span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.checkout-hold {
  margin-top: 0.45rem;
  color: var(--amber-hot);
  font-size: 0.88rem;
  font-weight: 700;
}

@media (max-width: 860px) {
  .ad-grid {
    grid-template-columns: 1fr;
  }
}

.owner-box h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1rem;
}

.owner-box p {
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-size: 0.9rem;
  word-break: break-all;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn:hover {
  transform: none;
}

.btn-primary {
  background: var(--amber);
  color: #1a140c;
  border: 1px solid rgba(0, 0, 0, 0.3);
  box-shadow: none;
}

.btn-primary:hover {
  background: var(--amber-hot);
  filter: none;
}

.btn-ghost {
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--amber);
  background: rgba(212, 162, 76, 0.08);
}

.btn-vote {
  min-width: 96px;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  background: #221e18;
  border: 1px solid rgba(212, 162, 76, 0.45);
  color: var(--amber-hot);
  font-weight: 700;
  font-size: 0.86rem;
}

.btn-vote:hover:not(:disabled) {
  background: var(--amber);
  color: #1a140c;
  border-color: rgba(0, 0, 0, 0.3);
}

.btn-vote:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-sm {
  padding: 0.5rem 0.85rem;
  font-size: 0.85rem;
}

/* Hero — compact masthead, not a marketing landing */
.hero {
  position: relative;
  min-height: 0;
  display: block;
  align-items: stretch;
  padding: 1.35rem 0 1.15rem;
  overflow: visible;
  border-bottom: 1px solid var(--border);
  background: #17150f;
}

.hero--compact {
  min-height: 0;
}

.hero__art,
.hero__glow {
  display: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: none;
  animation: none;
}

.hero__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.hero__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 0.2rem;
  color: var(--amber);
  background: none;
  -webkit-text-fill-color: unset;
}

.hero__headline {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}

.hero__sub {
  display: none;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.vote-reset-banner {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.vote-reset-banner strong {
  color: var(--amber-hot);
}

.stats-strip {
  margin-top: 0;
  margin-bottom: 1rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  animation: none;
}

.stat {
  background: var(--surface);
  padding: 0.95rem 1.1rem;
  border-right: 1px solid var(--border);
}

.stat:last-child {
  border-right: 0;
}

.stat__value {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--amber);
}

.stat__label {
  color: var(--muted);
  font-size: 0.88rem;
}

/* Layout */
.section {
  padding: 2.5rem 0 3.5rem;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

.section-sub {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.layout-split {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.5rem;
  align-items: start;
}

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
}

.filter-chip {
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.filter-chip:hover,
.filter-chip.active {
  color: #1a140c;
  background: var(--amber);
  border-color: rgba(0, 0, 0, 0.25);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.search-field,
.select-field {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: rgba(17, 21, 28, 0.85);
}

.search-field {
  flex: 1;
  min-width: 220px;
}

.search-field input,
.select-field select {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
}

.select-field select {
  padding-right: 0.25rem;
}

/* Featured */
.featured {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  overflow: hidden;
  animation: none;
}

.featured::before {
  content: 'FEATURED';
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.2rem 0.45rem;
  border-radius: 2px;
  background: #2a241c;
  border: 1px solid rgba(212, 162, 76, 0.4);
  color: var(--amber);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.featured__media {
  position: relative;
  min-height: 220px;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, transparent, rgba(10, 12, 16, 0.55)),
    var(--banner, linear-gradient(135deg, #2a2118, #12161e));
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border);
}

.featured__meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.85rem;
  padding-right: 5rem;
}

.featured__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.85rem;
  letter-spacing: -0.03em;
}

.featured__desc {
  margin: 0;
  color: var(--muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  padding: 0.18rem 0.4rem;
  border-radius: 2px;
  background: #2a261f;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tag--accent {
  color: var(--amber-hot);
  border-color: rgba(226, 168, 74, 0.3);
  background: rgba(226, 168, 74, 0.08);
}

.tag--new {
  color: #9fd9b1;
  border-color: rgba(111, 191, 138, 0.4);
  background: rgba(111, 191, 138, 0.12);
}

.tag--age {
  color: var(--text);
  border-color: rgba(239, 233, 223, 0.14);
  background: rgba(255, 255, 255, 0.04);
  text-transform: none;
  letter-spacing: 0;
}

.tag--game {
  display: inline-block;
  color: var(--amber-hot);
  border-color: rgba(226, 168, 74, 0.35);
  background: rgba(226, 168, 74, 0.1);
  text-decoration: none;
  font-weight: 600;
}

a.tag--game:hover {
  border-color: rgba(226, 168, 74, 0.55);
  background: rgba(226, 168, 74, 0.18);
}

.server-list--home {
  gap: 0.4rem;
}

/* Server list */
.server-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.server-row {
  display: grid;
  grid-template-columns: 64px 56px 1fr auto auto;
  gap: 1rem;
  align-items: center;
  padding: 0.8rem 0.95rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.15s, background 0.15s;
  animation: none;
}

.server-row:hover {
  border-color: rgba(212, 162, 76, 0.4);
  transform: none;
  background: var(--surface-2);
}

.server-row.is-sponsored {
  border-color: rgba(212, 162, 76, 0.45);
  background: #242018;
}

.server-row.is-top1 {
  border-color: rgba(212, 162, 76, 0.7);
  border-left: 3px solid var(--amber);
  box-shadow: none;
  animation: none;
}

.server-row.is-top2 {
  border-color: rgba(184, 189, 198, 0.4);
  border-left: 3px solid var(--rank-silver);
  box-shadow: none;
}

.server-row.is-top3 {
  border-color: rgba(176, 122, 72, 0.45);
  border-left: 3px solid var(--rank-bronze);
  box-shadow: none;
}

.rank-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.rank-move {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
}

.rank-move--up { color: #6fbf8a; }
.rank-move--down { color: #d66a5e; }
.rank-move--new { color: var(--amber-hot); }
.rank-move--same { color: var(--faint); }

.tag--trend {
  color: #9fd9b1;
  border-color: rgba(111, 191, 138, 0.35);
  background: rgba(111, 191, 138, 0.1);
  text-transform: none;
  letter-spacing: 0;
}

/* Live ticker */
.vote-ticker {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 0 0 1.25rem;
  border-block: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}

.vote-ticker__label {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  padding: 0.55rem 0.85rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #1a140c;
  background: var(--amber);
}

.vote-ticker__viewport {
  overflow: hidden;
  min-width: 0;
  flex: 1;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.vote-ticker__track {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: max-content;
  padding: 0.7rem 1rem;
  animation: tickerMove 42s linear infinite;
}

.vote-ticker__item {
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.vote-ticker__item a {
  color: var(--amber-hot);
  font-weight: 700;
}

.vote-ticker__dot {
  color: rgba(226, 168, 74, 0.45);
  font-size: 0.65rem;
}

.toast--vote {
  border-color: rgba(111, 191, 138, 0.4) !important;
}

.toast--vote a {
  color: var(--amber-hot);
  font-weight: 700;
}

/* Trending */
.trending-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.trend-card {
  display: grid;
  grid-template-columns: auto 44px 1fr;
  gap: 0.65rem;
  align-items: center;
  padding: 0.8rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(28, 34, 46, 0.95), rgba(17, 21, 28, 0.95));
  transition: transform 0.2s, border-color 0.2s;
}

.trend-card:hover {
  transform: translateY(-2px);
  border-color: rgba(111, 191, 138, 0.35);
}

.trend-card__rank {
  font-family: var(--font-display);
  font-weight: 800;
  color: #9fd9b1;
}

.trend-card .server-banner,
.trend-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.trend-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.trend-card__meta strong {
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trend-card__meta span {
  color: #9fd9b1;
  font-size: 0.78rem;
  font-weight: 700;
}

@keyframes tickerMove {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes topGlow {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: none; }
}

.rank {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--faint);
}

.rank--1 { color: var(--rank-gold); text-shadow: none; }
.rank--2 { color: var(--rank-silver); }
.rank--3 { color: var(--rank-bronze); }

.server-banner {
  width: 56px;
  height: 56px;
  border-radius: 3px;
  border: 1px solid var(--border);
  background: var(--banner, #2a241c);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  flex-shrink: 0;
}

.server-banner.has-icon {
  background: #0d1016;
}

.server-banner img {
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  display: block;
  /* iOS Safari sometimes skips painting replaced content in nested overflow grids */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.upload-zone--icon {
  width: 140px;
}

.icon-preview {
  display: grid;
  place-items: center;
  width: 140px;
  height: 140px;
  border-radius: 16px;
  border: 1px dashed rgba(226, 168, 74, 0.35);
  background: rgba(0, 0, 0, 0.25);
  color: var(--faint);
  font-size: 0.82rem;
  text-align: center;
  padding: 0.75rem;
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
}

.upload-zone--icon:hover .icon-preview,
.upload-zone--icon.is-dragover .icon-preview {
  border-color: rgba(226, 168, 74, 0.65);
  background: rgba(226, 168, 74, 0.06);
}

.icon-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.icon-preview small {
  display: inline-block;
  margin-top: 0.3rem;
  font-size: 0.72rem;
}

.featured__icon {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid rgba(239, 233, 223, 0.35);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  background: #0d1016;
}

.detail-banner__row {
  display: flex;
  align-items: end;
  gap: 0.85rem;
  width: 100%;
}

.detail-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid rgba(239, 233, 223, 0.35);
  background: #0d1016;
  flex-shrink: 0;
}

.server-main {
  min-width: 0;
}

.server-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.server-name a:hover {
  color: var(--amber-hot);
}

.server-desc {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.server-votes {
  min-width: 86px;
  text-align: right;
}

.votes-count {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.votes-label {
  color: var(--faint);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.server-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--online);
  box-shadow: 0 0 10px rgba(111, 191, 138, 0.6);
  display: inline-block;
  margin-right: 0.35rem;
}

.status-dot.offline {
  background: var(--faint);
  box-shadow: none;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 92px;
}

.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1rem;
}

.panel__title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
}

.vote-feed {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  max-height: 360px;
  overflow: auto;
}

.vote-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 0.75rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}

.vote-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.vote-item__server {
  font-weight: 700;
  color: var(--amber-hot);
}

.vote-item__user {
  color: var(--muted);
  grid-column: 1 / -1;
}

.vote-item__time {
  color: var(--faint);
  font-size: 0.78rem;
}

.discord-panel {
  overflow: hidden;
}

.discord-widget-mount {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(88, 101, 242, 0.35);
  background: #1e1f22;
  min-height: 120px;
}

.discord-widget-frame {
  display: block;
  width: 100%;
  max-width: 350px;
  height: 500px;
  margin: 0 auto;
  border: 0;
  background: #1e1f22;
}

.ad-slot {
  display: none; /* hide empty placeholder boxes until a real ad is loaded */
}

.ad-slot.has-ad {
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 0;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(226, 168, 74, 0.25);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

/* Server detail */
.detail-hero {
  padding: 2.5rem 0 1.5rem;
}

.detail-banner {
  height: 220px;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, transparent 20%, rgba(10, 12, 16, 0.85)),
    var(--banner, linear-gradient(135deg, #2a2118, #12161e));
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: end;
  padding: 1.35rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.5rem;
  padding-bottom: 3rem;
}

.detail-card,
.vote-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(17, 21, 28, 0.92);
  padding: 1.35rem;
}

.detail-card h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
}

.detail-card p,
.detail-desc__p {
  color: var(--muted);
  margin: 0 0 1rem;
  line-height: 1.65;
}

.detail-desc__p:last-child {
  margin-bottom: 0;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.meta-item {
  padding: 0.85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.meta-item span {
  display: block;
  color: var(--faint);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}

.meta-item strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.vote-card h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.vote-card p {
  color: var(--muted);
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}

.form-field label {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

.form-field input,
.form-field select,
.form-field textarea {
  min-height: 46px;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: rgba(10, 12, 16, 0.55);
  outline: none;
  transition: border-color 0.2s;
}

.form-field textarea {
  min-height: 110px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: rgba(226, 168, 74, 0.5);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.notice {
  padding: 0.8rem 0.95rem;
  border-radius: 12px;
  border: 1px solid rgba(226, 168, 74, 0.25);
  background: rgba(226, 168, 74, 0.08);
  color: var(--amber-hot);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.notice.success {
  border-color: rgba(111, 191, 138, 0.35);
  background: rgba(111, 191, 138, 0.1);
  color: #9fd9b1;
}

.notice.error {
  border-color: rgba(214, 106, 94, 0.35);
  background: rgba(214, 106, 94, 0.1);
  color: #e7a39b;
}

/* Add server page */
.page-hero {
  padding: 2.75rem 0 1.25rem;
}

.page-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
}

.page-hero p {
  margin: 0.6rem 0 0;
  color: var(--muted);
  max-width: 40rem;
}

.form-panel {
  max-width: 760px;
  margin: 0 auto 3rem;
  padding: 1.5rem;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--border);
  background: rgba(17, 21, 28, 0.92);
}

/* Owner guide */
.guide-wrap {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
}

.guide-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(17, 21, 28, 0.92);
  padding: 1.25rem 1.35rem 1.35rem;
}

.guide-card h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.guide-card ol {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.65;
}

.guide-card li + li {
  margin-top: 0.4rem;
}

.guide-card p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0.75rem 0 0;
}

.guide-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  margin-bottom: 0.55rem;
  border-radius: 2px;
  background: var(--amber);
  color: #1a140c;
  font-size: 0.85rem;
  font-weight: 800;
}

.guide-flow {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.7;
}

.guide-note {
  margin-top: 0.9rem !important;
  padding: 0.75rem 0.9rem;
  border-left: 3px solid var(--amber);
  background: rgba(226, 144, 74, 0.08);
  color: var(--muted);
  font-size: 0.92rem;
}

.guide-table {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.guide-table > div {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  font-size: 0.9rem;
}

.guide-table span {
  color: var(--faint);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding-top: 0.2rem;
}

.guide-table code,
.guide-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  color: var(--amber-hot);
  word-break: break-all;
}

.guide-table em {
  color: var(--faint);
  font-style: normal;
  font-size: 0.8rem;
}

.guide-code {
  display: block;
  margin: 0.9rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--muted);
  white-space: pre-wrap;
  line-height: 1.5;
  overflow-x: auto;
}

.guide-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 800px;
  margin-bottom: 3rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(17, 21, 28, 0.9);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.15rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item[open] summary {
  color: var(--amber-hot);
}

.faq-item p {
  margin: 0;
  padding: 0 1.15rem 1.15rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 2rem;
  margin-top: 1rem;
  background: rgba(8, 10, 14, 0.7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 0.55rem;
}

.footer-copy {
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 28rem;
}

.footer-col h4 {
  margin: 0 0 0.7rem;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}

.footer-col a {
  display: block;
  color: var(--muted);
  margin-bottom: 0.45rem;
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: var(--amber-hot);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--faint);
  font-size: 0.85rem;
}

.empty-state {
  padding: 2.5rem 1.5rem;
  text-align: center;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  color: var(--muted);
}

/* Toast */
.toast-wrap {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.toast {
  min-width: 240px;
  max-width: 340px;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #1c2330;
  border: 1px solid rgba(226, 168, 74, 0.35);
  box-shadow: var(--shadow);
  animation: slideUp 0.35s ease;
}

/* Animations */
@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.server-row:nth-child(1),
.server-row:nth-child(2),
.server-row:nth-child(3) { animation: none; }
.server-row:nth-child(4) { animation-delay: 0.11s; }
.server-row:nth-child(5) { animation-delay: 0.14s; }
.server-row:nth-child(6) { animation-delay: 0.17s; }
.server-row:nth-child(7) { animation-delay: 0.2s; }
.server-row:nth-child(8) { animation-delay: 0.23s; }

/* Responsive */
@media (max-width: 980px) {
  .layout-split,
  .detail-grid,
  .featured,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .featured__meta {
    padding-right: 0;
  }

  .featured::before {
    position: static;
    width: fit-content;
    margin-bottom: 0.75rem;
  }

  .sidebar {
    position: static;
  }

  .stats-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav-links,
  .nav-auth {
    display: none;
  }

  .nav-links.open {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1rem;
    background: rgba(10, 12, 16, 0.96);
    border-bottom: 1px solid var(--border);
  }

  .nav-auth.open {
    display: flex;
    position: absolute;
    top: 260px;
    left: 0;
    right: 0;
    padding: 0 1rem 1rem;
    background: rgba(10, 12, 16, 0.96);
    border-bottom: 1px solid var(--border);
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .server-row {
    grid-template-columns: 48px 48px 1fr;
    grid-template-areas:
      "rank banner main"
      "votes votes actions";
    gap: 0.75rem;
  }

  .rank-wrap { grid-area: rank; }
  .server-banner {
    grid-area: banner;
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    display: block;
    flex-shrink: 0;
  }
  .server-banner img {
    width: 48px;
    height: 48px;
  }
  .server-main { grid-area: main; }
  .server-votes { grid-area: votes; text-align: left; }
  .server-actions { grid-area: actions; justify-content: end; }
  .detail-icon,
  .featured__icon {
    width: 64px;
    height: 64px;
    min-width: 64px;
    min-height: 64px;
  }

  .trending-strip {
    grid-template-columns: 1fr;
  }

  .vote-ticker__label {
    letter-spacing: 0.08em;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 560px;
    align-items: center;
  }
}
