:root {
  --l2-ember: #fb7a2c;
  --l2-ember-soft: #fdba74;
  --l2-panel: #0d0a08;
}

body.l2-home .hero-art {
  background-image:
    linear-gradient(90deg, #070605 0%, rgba(7, 6, 5, 0.92) 31%, rgba(7, 6, 5, 0.24) 69%, rgba(7, 6, 5, 0.56) 100%),
    linear-gradient(180deg, transparent 68%, #080706 100%),
    url("/assets/art-home.webp") !important;
  background-position: 58% center !important;
}

body.l2-home .cta-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(100deg, rgba(34, 12, 5, 0.97) 0%, rgba(18, 12, 9, 0.9) 57%, rgba(10, 8, 7, 0.68) 100%),
    url("/L2Phoenix-hero.png") 75% 43% / cover no-repeat;
}

body.l2-home .cta-panel::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(circle at 86% 43%, rgba(251, 122, 44, 0.22), transparent 34%);
  pointer-events: none;
}

body.l2-downloads .page-hero,
body.l2-rankings .page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 430px;
  display: flex;
  align-items: center;
  padding-top: 8rem;
  padding-bottom: 4rem;
  background: #090706;
}

body.l2-downloads .page-hero::before,
body.l2-rankings .page-hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background-position: center, center, right 2rem center;
  background-repeat: no-repeat;
  background-size: 100% 100%, 100% 100%, auto 94%;
}

body.l2-downloads .page-hero::before {
  background-image:
    linear-gradient(90deg, #090706 0%, rgba(9, 7, 6, 0.96) 34%, rgba(9, 7, 6, 0.58) 51%, rgba(9, 7, 6, 0.04) 72%, rgba(9, 7, 6, 0.12) 100%),
    linear-gradient(180deg, transparent 55%, rgba(9, 7, 6, 0.48) 100%),
    url("/assets/art-downloads.webp");
}

body.l2-rankings .page-hero::before {
  background-image:
    linear-gradient(90deg, #090706 0%, rgba(9, 7, 6, 0.96) 34%, rgba(9, 7, 6, 0.56) 51%, rgba(9, 7, 6, 0.04) 72%, rgba(9, 7, 6, 0.1) 100%),
    linear-gradient(180deg, transparent 55%, rgba(9, 7, 6, 0.44) 100%),
    url("/assets/art-rankings.webp");
  background-position: center, center, right 2.5rem center;
}

body.l2-downloads .page-hero::after,
body.l2-rankings .page-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(251, 122, 44, 0.72), transparent);
  box-shadow: 0 -8px 38px rgba(251, 122, 44, 0.18);
}

body.l2-downloads .page-hero .site-container,
body.l2-rankings .page-hero .site-container {
  position: relative;
  z-index: 1;
}

.l2-feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.l2-account-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(251, 122, 44, 0.06), transparent 62%);
}

.l2-account-card::after {
  content: "";
  position: absolute;
  width: 8rem;
  height: 8rem;
  right: -4.5rem;
  top: -4.5rem;
  border: 1px solid rgba(251, 122, 44, 0.18);
  transform: rotate(45deg);
}

.l2-account-card .feature-icon {
  position: relative;
  z-index: 1;
}

.l2-account-card svg {
  width: 22px;
  height: 22px;
}

.l2-account-note {
  margin-top: 1.25rem;
  border-left: 2px solid var(--l2-ember);
  padding: 0.75rem 0.9rem;
  background: rgba(251, 122, 44, 0.08);
  color: #fed7aa;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.55;
}

.l2-info-panel {
  position: relative;
  overflow: hidden;
  margin-top: 3rem;
  border: 1px solid rgba(251, 146, 60, 0.22);
  background:
    radial-gradient(circle at 92% 0, rgba(251, 122, 44, 0.1), transparent 21rem),
    linear-gradient(145deg, rgba(126, 42, 9, 0.13), rgba(14, 11, 9, 0.96));
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.l2-info-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.l2-info-header h2 {
  margin-top: 0.6rem;
  color: #fff;
  font-family: var(--font-display), Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.08;
}

.l2-info-header > p:last-child {
  max-width: 32rem;
  color: #a8a29e;
  line-height: 1.7;
}

.l2-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 1.5rem;
  background: rgba(255, 255, 255, 0.08);
}

.l2-guide-step {
  min-height: 12rem;
  background: rgba(9, 7, 6, 0.96);
  padding: 1.5rem;
}

.l2-guide-number {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(251, 122, 44, 0.35);
  color: var(--l2-ember-soft);
  font-family: var(--font-display), Georgia, serif;
  font-size: 1.1rem;
}

.l2-guide-step h3 {
  margin-top: 1.2rem;
  color: #f5f5f4;
  font-family: var(--font-display), Georgia, serif;
  font-size: 1.3rem;
}

.l2-guide-step p {
  margin-top: 0.65rem;
  color: #a8a29e;
  font-size: 0.95rem;
  line-height: 1.7;
}

.l2-ranking-note {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 2.25rem;
  align-items: center;
}

.l2-ranking-note .l2-guide-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
}

.l2-ranking-note .l2-guide-step {
  min-height: auto;
}

.l2-nav-vote {
  color: #fb923c;
}

.l2-vote-page {
  position: relative;
  display: grid;
  min-height: calc(100vh - 10rem);
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(7, 6, 5, 0.96) 0%, rgba(7, 6, 5, 0.7) 48%, rgba(7, 6, 5, 0.88) 100%),
    url("/assets/art-home.webp") center / cover no-repeat;
  padding: 7rem 1.5rem;
}

.l2-vote-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: stretch;
  justify-content: center;
}

.l2-vote-button {
  display: grid;
  width: min(15rem, 72vw);
  min-height: 8.5rem;
  place-items: center;
  border: 1px solid rgba(251, 146, 60, 0.32);
  background: rgba(5, 4, 3, 0.88);
  padding: 1.5rem;
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.l2-vote-button:hover,
.l2-vote-button:focus-visible {
  border-color: rgba(251, 146, 60, 0.78);
  background: rgba(36, 15, 8, 0.92);
  outline: none;
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(249, 115, 22, 0.14);
}

.l2-vote-button img {
  display: block;
  max-width: 100%;
  height: auto;
  image-rendering: auto;
}

@media (max-width: 1023px) {
  .l2-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .l2-ranking-note {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 767px) {
  body.l2-downloads .page-hero,
  body.l2-rankings .page-hero {
    min-height: 500px;
    align-items: end;
    padding-top: 9rem;
  }

  body.l2-downloads .page-hero::before,
  body.l2-rankings .page-hero::before {
    background-position: center, 74% 1rem;
    background-size: 100% 100%, auto 76%;
  }

  body.l2-downloads .page-hero::before {
    background-image:
      linear-gradient(180deg, rgba(9, 7, 6, 0.28), rgba(9, 7, 6, 0.96) 78%, #090706 100%),
      url("/assets/art-downloads.webp");
  }

  body.l2-rankings .page-hero::before {
    background-image:
      linear-gradient(180deg, rgba(9, 7, 6, 0.25), rgba(9, 7, 6, 0.96) 78%, #090706 100%),
      url("/assets/art-rankings.webp");
  }

  .l2-guide-grid,
  .l2-ranking-note .l2-guide-grid {
    grid-template-columns: 1fr;
  }

  .l2-info-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }

}

@media (max-width: 639px) {
  body.l2-home .hero-art {
    background-image:
      linear-gradient(180deg, rgba(7, 6, 5, 0.28) 0%, rgba(7, 6, 5, 0.9) 58%, #080706 100%),
      url("/assets/art-home.webp") !important;
    background-position: 68% center !important;
  }

  .l2-feature-grid {
    grid-template-columns: 1fr !important;
  }

  .l2-vote-page {
    min-height: calc(100vh - 8rem);
    padding: 5rem 1rem;
  }

  .l2-vote-button {
    width: min(14rem, 82vw);
    min-height: 7rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .l2-account-card,
  .l2-info-panel,
  .l2-vote-actions {
    animation: l2-reveal 560ms ease-out both;
  }

  @keyframes l2-reveal {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* Keep primary navigation available on small screens. */
@media (max-width: 767px) {
  .site-header > .site-container { height: auto; min-height: 5rem; flex-wrap: wrap; padding-top: 1rem; padding-bottom: .75rem; gap: .75rem; }
  .site-header .desktop-nav { display: flex; order: 3; width: 100%; justify-content: center; gap: clamp(.75rem, 4vw, 2rem); }
  .site-header .desktop-nav .nav-link { padding: .5rem 0; }
}
