:root {
  --bg: #07060c;
  --bg-panel: rgba(4, 8, 14, 0.94);
  --bg-panel-solid: #050910;
  --line: rgba(212, 175, 55, 0.35);
  --line-soft: rgba(255, 255, 255, 0.06);
  --gold: #d4af37;
  --gold-soft: #c9a227;
  --gold-bright: #f4b346;
  --purple: #7b3cff;
  --purple-deep: #5a1fe0;
  --purple-glow: rgba(123, 60, 255, 0.55);
  --text: #f3f0fa;
  --muted: #a29bb8;
  --radius: 10px;
  --container: 1120px;
  --font-display: "Cinzel", Georgia, serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font: inherit;
}

/* ---------- Page shell ---------- */

.page-bg {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(7, 6, 12, 0.15) 0%, rgba(7, 6, 12, 0.55) 42%, rgba(7, 6, 12, 0.96) 72%, var(--bg) 100%),
    url("../assets/background.png") top center / 1920px auto no-repeat,
    var(--bg);
}

.container {
  width: min(100% - 32px, var(--container));
  padding-bottom: 48px;
}

/* ---------- Header ---------- */

.site-header {
  height: 84px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.logo img {
  filter: drop-shadow(0 0 12px rgba(123, 60, 255, 0.35));
}

.main-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.main-nav a {
  position: relative;
  color: #d8d2e8;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: #fff;
}

.main-nav a.active::after,
.main-nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--purple), transparent);
  box-shadow: 0 0 10px var(--purple-glow);
}

.actions {
  display: flex;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(10, 8, 18, 0.7);
  border-color: rgba(123, 60, 255, 0.65);
  color: #fff;
}

.btn-ghost:hover {
  border-color: var(--purple);
  box-shadow: 0 0 16px rgba(123, 60, 255, 0.25);
}

.btn-primary {
  background: linear-gradient(180deg, #8b4dff 0%, var(--purple-deep) 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(90, 31, 224, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 10px 28px rgba(90, 31, 224, 0.5);
}

.btn-download {
  width: 224px;
  height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 0;
  background: transparent url("../assets/btn/btn-download.png") center / 100% 100% no-repeat;
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
  box-shadow: 0 10px 28px rgba(70, 20, 160, 0.35);
  filter: drop-shadow(0 0 10px rgba(123, 60, 255, 0.28));
}

.btn-download:hover {
  filter: brightness(1.12) drop-shadow(0 0 14px rgba(123, 60, 255, 0.45));
  box-shadow: 0 12px 32px rgba(70, 20, 160, 0.45);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--gold-bright);
}

.btn-outline:hover {
  background: rgba(212, 175, 55, 0.08);
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.18);
}

/* ---------- Ornate panels (sprite frame) ---------- */
/* Estilo 1ª imagem: fundo radial sutil + borda metálica fina + cantos em L leves */

.panel {
  --frame-corner: 14px;
  --frame-line: 1px;
  position: relative;
  background:
    radial-gradient(ellipse 100% 80% at 50% 0%, rgba(88, 48, 150, 0.14), transparent 50%),
    radial-gradient(ellipse 85% 70% at 50% 45%, #0d1320 0%, #080c14 55%, #04060c 100%);
  border: 0;
  border-radius: 2px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 0 0 1px rgba(212, 175, 55, 0.08),
    0 0 24px rgba(212, 175, 55, 0.06),
    0 12px 36px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

/* Moldura fina com degradê metálico + brilho suave */
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: var(--frame-line);
  border-radius: inherit;
  pointer-events: none;
  z-index: 3;
  background: linear-gradient(
    145deg,
    rgba(101, 69, 36, 0.95) 0%,
    rgba(64, 47, 33, 0.55) 24%,
    rgba(104, 76, 53, 0.85) 48%,
    rgba(42, 29, 25, 0.5) 68%,
    rgba(44, 31, 27, 0.75) 86%,
    rgba(129, 72, 35, 0.9) 100%
  );
  opacity: 0.75;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* Cantos em L finos */
.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  background:
    url("../assets/frame/corner-ref-tl.png") left top / var(--frame-corner) var(--frame-corner) no-repeat,
    url("../assets/frame/corner-ref-tr.png") right top / var(--frame-corner) var(--frame-corner) no-repeat,
    url("../assets/frame/corner-ref-bl.png") left bottom / var(--frame-corner) var(--frame-corner) no-repeat,
    url("../assets/frame/corner-ref-br.png") right bottom / var(--frame-corner) var(--frame-corner) no-repeat;
}

.panel.cta {
  --frame-corner: 18px;
}

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

.hero {
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 0 20px;
}

.hero-content {
  max-width: 720px;
  animation: fadeUp 0.9s ease both;
}

.hero-logo {
  width: min(100%, 520px);
  margin: 0 auto 18px;
  filter: drop-shadow(0 0 28px rgba(123, 60, 255, 0.45));
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #f3e8ff 0%, #c4a5ff 45%, #d4af37 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(123, 60, 255, 0.4));
}

.hero p {
  margin: 14px auto 0;
  max-width: 460px;
  color: #cfc7e4;
  font-size: 1.02rem;
}

.hero .btn-download {
  margin-top: 28px;
}

.trust-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.trust-badges li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  box-shadow: 0 0 12px currentColor;
}

.trust-icon svg {
  width: 14px;
  height: 14px;
}

.trust-secure {
  color: #d4af37;
  background: rgba(212, 175, 55, 0.12);
}

.trust-updated {
  color: #2ecc71;
  background: rgba(46, 204, 113, 0.12);
}

.trust-support {
  color: #f0b429;
  background: rgba(240, 180, 41, 0.12);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 10px;
}

.stat-card {
  --frame-corner: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 18px;
  animation: fadeUp 0.8s ease both;
}

.stat-card:nth-child(2) { animation-delay: 0.05s; }
.stat-card:nth-child(3) { animation-delay: 0.1s; }
.stat-card:nth-child(4) { animation-delay: 0.15s; }

.stat-icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--gold-bright);
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 35%, rgba(123, 60, 255, 0.45), rgba(20, 10, 40, 0.95) 70%);
  box-shadow:
    0 0 0 1.5px rgba(212, 175, 55, 0.55),
    0 0 0 3px rgba(90, 31, 224, 0.2),
    0 0 18px rgba(123, 60, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.stat-icon svg {
  width: 22px;
  height: 22px;
}

.stat-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stat-value {
  display: block;
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--gold-bright);
  letter-spacing: 0.03em;
  text-shadow: 0 0 18px rgba(212, 175, 55, 0.25);
}

/* ---------- Leaders ---------- */

.leaders {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 18px 0;
}

.leader-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px 16px;
  padding: 18px 20px;
  min-height: 112px;
}

.leader-crest {
  width: 58px;
  height: 72px;
  background: url("../assets/leader-shield.svg") center / contain no-repeat;
  filter: drop-shadow(0 0 16px rgba(123, 60, 255, 0.55)) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.45));
}

.leader-info h3 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c4a5ff;
}

.leader-name {
  margin-top: 5px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
}

.leader-meta {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12.5px;
}

.leader-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 2px;
}

.leader-side-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c4a5ff;
}

.leader-side-value {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--gold-bright);
  line-height: 1.05;
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.35);
}

.leader-side-name {
  margin-top: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

/* ---------- Section heads ---------- */

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.section-head h2,
.news h2,
.ranking h2,
.drops h2,
.cta h2 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.section-link {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c084fc;
}

.section-link:hover {
  color: #e9d5ff;
}

/* ---------- Content grid ---------- */

.content {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 16px;
}

.news,
.ranking,
.drops {
  padding: 22px;
}

/* News */

.news-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.news-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.18), transparent) bottom / 100% 1px no-repeat;
}

.news-item:last-child {
  padding-bottom: 0;
  background: none;
}

.news-thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  background-size: cover;
  background-position: center;
}

.thumb-evento {
  background:
    linear-gradient(145deg, rgba(123, 60, 255, 0.55), rgba(20, 10, 40, 0.9)),
    radial-gradient(circle at 30% 30%, #c084fc, transparent 55%);
}

.thumb-update {
  background:
    linear-gradient(145deg, rgba(59, 130, 246, 0.55), rgba(12, 20, 40, 0.9)),
    radial-gradient(circle at 70% 30%, #60a5fa, transparent 55%);
}

.thumb-aviso {
  background:
    linear-gradient(145deg, rgba(34, 197, 94, 0.45), rgba(10, 30, 18, 0.9)),
    radial-gradient(circle at 40% 60%, #4ade80, transparent 55%);
}

.thumb-sistema {
  background:
    linear-gradient(145deg, rgba(249, 115, 22, 0.5), rgba(30, 16, 8, 0.9)),
    radial-gradient(circle at 60% 40%, #fb923c, transparent 55%);
}

.badge {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-evento { background: rgba(123, 60, 255, 0.25); color: #c4a5ff; border: 1px solid rgba(123, 60, 255, 0.45); }
.badge-update { background: rgba(59, 130, 246, 0.2); color: #93c5fd; border: 1px solid rgba(59, 130, 246, 0.4); }
.badge-aviso { background: rgba(34, 197, 94, 0.18); color: #86efac; border: 1px solid rgba(34, 197, 94, 0.35); }
.badge-sistema { background: rgba(249, 115, 22, 0.18); color: #fdba74; border: 1px solid rgba(249, 115, 22, 0.35); }

.news-body h3 {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
}

.news-body p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12.5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-body time {
  display: block;
  margin-top: 6px;
  color: #7d7594;
  font-size: 11px;
}

/* Ranking */

.countdown {
  text-align: right;
}

.countdown-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.countdown-units {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.countdown-units > span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 36px;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.countdown-units strong {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 28px;
  padding: 0 6px;
  font-family: var(--font-display);
  font-size: 14px;
  color: #fff;
  line-height: 1;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

thead th {
  padding: 10px 8px;
  text-align: left;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(212, 175, 55, 0.22);
}

tbody tr {
  background: linear-gradient(90deg, transparent 2%, rgba(255, 255, 255, 0.05) 50%, transparent 98%) bottom / 100% 1px no-repeat;
}

tbody td {
  padding: 10px 8px;
  border-bottom: 0;
  color: #ddd6ef;
  vertical-align: middle;
}

tbody tr:hover td {
  background: rgba(123, 60, 255, 0.06);
}

.rank-num {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.rank-1 .rank-num,
.rank-2 .rank-num,
.rank-3 .rank-num {
  color: #1a1200;
  background: linear-gradient(180deg, #f0d878, #c9a227);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.35);
}

.char {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  border: 1px solid rgba(212, 175, 55, 0.35);
}

.av-1 { background: linear-gradient(135deg, #7b3cff, #2a1048); }
.av-2 { background: linear-gradient(135deg, #c084fc, #4c1d95); }
.av-3 { background: linear-gradient(135deg, #d4af37, #5c3d0a); }
.av-4 { background: linear-gradient(135deg, #60a5fa, #1e3a8a); }
.av-5 { background: linear-gradient(135deg, #f87171, #7f1d1d); }
.av-6 { background: linear-gradient(135deg, #34d399, #064e3b); }
.av-7 { background: linear-gradient(135deg, #a78bfa, #312e81); }
.av-8 { background: linear-gradient(135deg, #f472b6, #831843); }
.av-9 { background: linear-gradient(135deg, #fb923c, #7c2d12); }
.av-10 { background: linear-gradient(135deg, #22d3ee, #155e75); }

.points {
  color: var(--gold-bright) !important;
  font-weight: 700;
  font-family: var(--font-display);
}

.ranking-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 16px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid rgba(190, 160, 255, 0.45);
  background: linear-gradient(180deg, #9a5cff 0%, #6b2ef0 48%, #4a18d4 100%);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow:
    0 0 0 1px rgba(123, 60, 255, 0.25),
    0 10px 28px rgba(90, 31, 224, 0.4),
    0 0 28px rgba(123, 60, 255, 0.28);
}

.ranking-cta:hover {
  box-shadow:
    0 0 0 1px rgba(190, 160, 255, 0.5),
    0 12px 32px rgba(90, 31, 224, 0.55),
    0 0 36px rgba(123, 60, 255, 0.4);
}

/* ---------- Bottom ---------- */

.bottom {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.item {
  position: relative;
  padding-left: 18px;
  font-weight: 600;
}

.item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  transform: translateY(-50%);
  box-shadow: 0 0 8px currentColor;
}

.rarity-legend {
  color: #f0d878;
}
.rarity-legend::before { background: #f0d878; color: #f0d878; }

.rarity-epic {
  color: #c084fc;
}
.rarity-epic::before { background: #c084fc; color: #c084fc; }

.rarity-rare {
  color: #60a5fa;
}
.rarity-rare::before { background: #60a5fa; color: #60a5fa; }

.cta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 18px;
  min-height: 280px;
  padding: 28px 24px 24px;
  text-align: left;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(123, 60, 255, 0.22), transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(90, 31, 224, 0.18), transparent 50%),
    linear-gradient(180deg, rgba(22, 14, 38, 0.72), rgba(8, 6, 14, 0.95));
}

.cta-body {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
  flex: 1;
}

.cta-art {
  flex: 0 0 auto;
  width: 92px;
  height: auto;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 14px rgba(212, 175, 55, 0.28));
}

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

.cta h2 {
  max-width: none;
  line-height: 1.3;
  font-size: 1.05rem;
}

.cta p {
  margin: 10px 0 0;
  max-width: 220px;
  color: #d8d0ea;
  font-size: 13.5px;
  line-height: 1.45;
}

.btn-cta {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 50px;
  border-radius: 3px;
  border: 1px solid #e2c56a;
  background: linear-gradient(180deg, #a66bff 0%, #6b2ef0 42%, #4514c4 100%);
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow:
    0 0 0 1px rgba(70, 50, 10, 0.75),
    inset 0 0 0 1px rgba(240, 216, 120, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 10px 28px rgba(74, 24, 212, 0.45);
}

.btn-cta::before {
  content: "";
  position: absolute;
  inset: 4px;
  pointer-events: none;
  border: 1px solid rgba(240, 216, 120, 0.22);
  background:
    linear-gradient(#f0d878, #f0d878) top 0 left 0 / 12px 2px no-repeat,
    linear-gradient(#f0d878, #f0d878) top 0 left 0 / 2px 12px no-repeat,
    linear-gradient(#f0d878, #f0d878) top 0 right 0 / 12px 2px no-repeat,
    linear-gradient(#f0d878, #f0d878) top 0 right 0 / 2px 12px no-repeat,
    linear-gradient(#c9a227, #c9a227) bottom 0 left 0 / 12px 2px no-repeat,
    linear-gradient(#c9a227, #c9a227) bottom 0 left 0 / 2px 12px no-repeat,
    linear-gradient(#c9a227, #c9a227) bottom 0 right 0 / 12px 2px no-repeat,
    linear-gradient(#c9a227, #c9a227) bottom 0 right 0 / 2px 12px no-repeat;
}

.btn-cta:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 0 0 1px rgba(240, 216, 120, 0.45),
    0 12px 32px rgba(74, 24, 212, 0.55);
}

.btn-cta .btn-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

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

.site-footer {
  margin-top: 36px;
  padding: 36px 8px 8px;
  display: grid;
  grid-template-columns: 1.2fr 2fr auto;
  gap: 28px;
  align-items: start;
  border-top: 1px solid rgba(212, 175, 55, 0.18);
}

.footer-brand p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  max-width: 260px;
}

.footer-legal {
  opacity: 0.75;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.footer-cols h4 {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.footer-cols a {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
  transition: color 0.15s ease;
}

.footer-cols a:hover {
  color: #fff;
}

.footer-crystal {
  width: 88px;
  height: 110px;
  align-self: center;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 100'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop stop-color='%23c084fc'/%3E%3Cstop offset='1' stop-color='%235a1fe0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M40 4 L68 36 L52 96 L28 96 L12 36 Z' fill='url(%23g)' opacity='0.85'/%3E%3Cpath d='M40 4 L48 36 L40 96 L32 36 Z' fill='%23efe9ff' opacity='0.35'/%3E%3C/svg%3E")
    center / contain no-repeat;
  filter: drop-shadow(0 0 20px rgba(123, 60, 255, 0.55));
  animation: crystalPulse 3.5s ease-in-out infinite;
}

@keyframes crystalPulse {
  0%, 100% { filter: drop-shadow(0 0 16px rgba(123, 60, 255, 0.4)); transform: translateY(0); }
  50% { filter: drop-shadow(0 0 28px rgba(123, 60, 255, 0.7)); transform: translateY(-4px); }
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
    height: auto;
    padding: 16px 0;
    row-gap: 14px;
  }

  .main-nav {
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
  }

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

  .leaders,
  .content,
  .bottom {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-crystal {
    display: none;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 20px, var(--container));
  }

  .page-bg {
    background-size: 1400px auto;
  }

  .hero {
    min-height: 420px;
    padding-top: 20px;
  }

  .hero-logo {
    width: min(100%, 340px);
  }

  .stats,
  .footer-cols {
    grid-template-columns: 1fr;
  }

  .actions .btn-ghost {
    display: none;
  }

  .main-nav {
    gap: 8px 14px;
  }

  .main-nav a {
    font-size: 12px;
  }

  .cta-body {
    flex-direction: column;
    text-align: center;
  }

  .cta p {
    max-width: none;
  }

  .cta-art {
    width: 80px;
  }
}
