:root {
  --bg: #070810;
  --bg-soft: #0d1018;
  --panel: rgba(16, 18, 30, 0.9);
  --panel-strong: rgba(22, 25, 38, 0.96);
  --gold: #d7b35a;
  --gold-bright: #f1d48a;
  --text: #eef0f4;
  --muted: #b2b7c4;
  --line: rgba(215, 179, 90, 0.18);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Trebuchet MS", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(215, 179, 90, 0.18), transparent 24%),
    radial-gradient(circle at 80% 10%, rgba(69, 92, 160, 0.18), transparent 30%),
    linear-gradient(180deg, #090b14 0%, #06070c 52%, #030406 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(7, 8, 16, 0.32), rgba(7, 8, 16, 0.82)),
    url("img/mainbackground.png") center/cover no-repeat;
  opacity: 0.15;
  pointer-events: none;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.26), transparent 85%);
  pointer-events: none;
  z-index: -1;
}

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

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

.wrap {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(7, 8, 16, 0.8);
  border-bottom: 1px solid rgba(215, 179, 90, 0.24);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.4));
}

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

.eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.brand-copy strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-links a {
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.04em;
  padding: 8px 2px;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 3px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.is-active {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

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

.btn-primary {
  color: #161105;
  background: linear-gradient(135deg, var(--gold-bright), #c89a32);
  box-shadow: 0 14px 28px rgba(200, 154, 50, 0.25);
}

.btn-secondary {
  color: var(--text);
  border-color: rgba(215, 179, 90, 0.25);
  background: rgba(255, 255, 255, 0.03);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: rgba(215, 179, 90, 0.45);
  background: rgba(215, 179, 90, 0.09);
}

main {
  padding: 28px 0 48px;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: stretch;
}

.panel,
.card {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.hero-copy {
  position: relative;
  padding: 36px;
  min-height: 540px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  isolation: isolate;
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(215, 179, 90, 0.16), transparent 30%),
    radial-gradient(circle at left bottom, rgba(89, 128, 214, 0.14), transparent 28%);
  pointer-events: none;
  z-index: -1;
}

.hero-copy h1,
.page-hero h1 {
  margin: 14px 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.94;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.page-hero h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.hero-copy p,
.section-header p,
.card p,
.page-hero p {
  color: var(--muted);
  line-height: 1.8;
}

.lede {
  margin-top: 16px;
  font-size: 18px;
  color: rgba(238, 240, 244, 0.92);
  max-width: 60ch;
}

.hero-actions,
.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.mini-rates,
.stats-grid,
.card-grid,
.gallery,
.info-grid {
  display: grid;
  gap: 14px;
}

.mini-rates {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 24px;
}

.rate-chip,
.stat-chip,
.info-card,
.feature-card {
  padding: 18px;
  border-radius: 0;
  background: transparent;
  border: 0;
}

.rate-chip .label,
.stat-chip .label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.rate-chip strong,
.stat-chip strong {
  font-size: 22px;
}

.hero-media {
  display: grid;
  grid-template-rows: 1.15fr 0.85fr;
  gap: 14px;
}

.feature-image {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  border: 0;
  background: #111;
  box-shadow: none;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 240ms ease, filter 240ms ease;
}

.feature-image:hover img {
  transform: scale(1.06);
  filter: saturate(1.08);
}

.overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 18px 20px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.82));
}

.overlay .title {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.overlay .copy {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.6;
  font-size: 14px;
}

.stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.stack .feature-image {
  aspect-ratio: 1 / 1;
}

.campaign-section {
  margin-top: 32px;
}

.ranking-campaign {
  position: relative;
  display: block;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(215, 179, 90, 0.42);
  background:
    radial-gradient(circle at 18% 18%, rgba(73, 155, 255, 0.3), transparent 24%),
    linear-gradient(135deg, rgba(7, 8, 16, 0.86), rgba(12, 14, 24, 0.98));
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.5),
    0 0 48px rgba(46, 132, 255, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.ranking-campaign::after {
  content: "";
  position: absolute;
  inset: 10px;
  pointer-events: none;
  z-index: 2;
  border: 1px solid rgba(241, 212, 138, 0.38);
  box-shadow: inset 0 0 34px rgba(0, 0, 0, 0.5);
}

.ranking-campaign img {
  width: 100%;
  height: auto;
  transform: scale(1);
  transition: transform 320ms ease, filter 320ms ease;
}

.ranking-campaign:hover img,
.ranking-campaign:focus-visible img {
  transform: scale(1.012);
  filter: saturate(1.1) contrast(1.03);
}

.ranking-campaign:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 4px;
}

.section {
  margin-top: 24px;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 16px;
}

.section-header h2,
.card h3,
.info-card h3,
.feature-card h3 {
  margin: 10px 0 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 0;
  color: var(--text);
  background: transparent;
  border: 0;
  font-size: 13px;
  white-space: nowrap;
}

.pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(215, 179, 90, 0.12);
}

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

.vote-banners {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.vote-banner {
  min-height: 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 11px 12px;
  border-radius: 0;
  border: 0;
  overflow: hidden;
  position: relative;
  box-shadow: none;
  transition: transform 160ms ease, border-color 160ms ease, filter 160ms ease;
}

.vote-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.24));
  z-index: 0;
}

.vote-banner > * {
  position: relative;
  z-index: 1;
}

.vote-banner:hover,
.vote-banner:focus-visible {
  transform: translateY(-1px);
  filter: saturate(1.08);
}

.vote-banner strong {
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.vote-banner span {
  color: rgba(255, 255, 255, 0.86);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vote-banner .vote-kicker {
  color: var(--gold-bright);
  font-size: 10px;
}

.hopzone-banner {
  background:
    linear-gradient(135deg, rgba(211, 58, 58, 0.95), rgba(58, 22, 22, 0.92)),
    url("img/epic-valakas-lineage2.jpg") center/cover no-repeat;
}

.image-vote-banner {
  align-items: center;
  padding: 9px;
  background: transparent;
}

.image-vote-banner::before {
  display: none;
}

.image-vote-banner img {
  width: min(100%, 234px);
  height: auto;
  border-radius: 0;
}

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

.gallery .feature-image {
  aspect-ratio: 4 / 3;
}

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

.page-hero {
  padding: 34px;
}

.page-hero p {
  max-width: 64ch;
}

.footer {
  margin-top: 28px;
  padding: 24px 0 32px;
  border-top: 1px solid rgba(215, 179, 90, 0.14);
  color: var(--muted);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
  align-items: start;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.copyright {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(215, 179, 90, 0.12);
}

small {
  display: block;
  margin-top: 14px;
  line-height: 1.7;
}

@media (max-width: 960px) {
  .nav {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-actions {
    justify-content: flex-start;
  }

  .hero,
  .footer-grid,
  .links-grid,
  .card-grid,
  .gallery,
  .vote-banners,
  .info-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-media {
    grid-template-rows: auto auto;
  }

}

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

  main {
    padding-top: 16px;
  }

  .hero-copy,
  .page-hero,
  .rate-chip,
  .stat-chip,
  .info-card,
  .feature-card {
    padding: 18px;
    border-radius: 0;
  }

  .hero-copy {
    min-height: auto;
  }

  .mini-rates,
  .stack {
    grid-template-columns: 1fr;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .campaign-section {
    margin-top: 22px;
  }

  .ranking-campaign::after {
    inset: 6px;
  }
}
