:root {
  --bg: #090604;
  --panel: rgba(17, 11, 8, 0.78);
  --panel-strong: rgba(22, 14, 9, 0.9);
  --panel-border: rgba(255, 196, 109, 0.24);
  --text: #f2efe7;
  --muted: #b8b1a4;
  --gold: #f0c36b;
  --gold-strong: #ffdb9d;
  --cyan: #88d7f7;
  --green: #77d79e;
  --red: #ff8f8f;
  --ember: #ff7a1a;
  --ember-soft: rgba(255, 122, 26, 0.34);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.52);
  --legendary-bg: url("../img/epic-valakas-lineage2.jpg");
  --legendary-left: url("../img/kamael.png");
  --legendary-right: url("../img/tank.jpg");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  background:
    linear-gradient(180deg, rgba(6, 3, 2, 0.82), rgba(11, 4, 2, 0.72)),
    var(--legendary-bg) center top / cover fixed no-repeat,
    linear-gradient(180deg, #120905 0%, #090604 100%);
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 50% 18%, rgba(255, 225, 131, 0.42), transparent 22%),
    radial-gradient(circle at 18% 82%, rgba(255, 92, 0, 0.18), transparent 22%),
    linear-gradient(180deg, rgba(8, 3, 1, 0.18), rgba(8, 3, 1, 0.74));
  mix-blend-mode: screen;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 180, 84, 0.08) 0, transparent 18%, transparent 82%, rgba(255, 180, 84, 0.08) 100%),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: auto, 42px 42px, 42px 42px;
  opacity: 0.26;
  mask-image: linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent 88%);
}

.page-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 40px;
  position: relative;
  z-index: 1;
}

.page-shell::before {
  content: "";
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1380px, 100%);
  height: 100vh;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 210, 127, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(255, 114, 20, 0.1), transparent 28%, transparent 72%, rgba(255, 114, 20, 0.12));
  filter: blur(18px);
  z-index: 0;
}

.page-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(8, 3, 1, 0.12), transparent 18%, transparent 82%, rgba(8, 3, 1, 0.16)),
    var(--legendary-left),
    var(--legendary-right);
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position:
    center,
    left -30px top 110px,
    right -80px top 105px;
  background-size:
    cover,
    min(48vw, 680px) auto,
    min(46vw, 700px) auto;
  opacity: 0.44;
  mix-blend-mode: lighten;
  filter: saturate(1.65) contrast(1.24) brightness(1.1);
  z-index: 0;
}

.hero,
.panel,
.leaderboard,
.raid-card,
.snapshot-card,
.hero-panel {
  backdrop-filter: blur(18px);
}

.hero {
  padding: 20px;
  border: 1px solid var(--panel-border);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(29, 17, 10, 0.9), rgba(9, 5, 3, 0.88)),
    linear-gradient(120deg, rgba(255, 222, 157, 0.16), transparent 40%);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
}

.topbar,
.hero-grid,
.section-heading,
.leaderboard-header,
.table-row,
.raid-meta,
.raid-footer,
.overview-row,
.footer-links {
  display: flex;
  gap: 16px;
}

.topbar,
.section-heading,
.leaderboard-header,
.raid-footer,
.overview-row {
  justify-content: space-between;
  align-items: center;
}

.hero-grid,
.leaderboards,
.dual-panel,
.quick-panels,
.rates-grid {
  display: grid;
  gap: 24px;
}

.compact-copy {
  margin-top: 12px;
}

.mini-rates {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.mini-rate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
}

.mini-rate strong {
  color: var(--gold-strong);
}

.nav-stack {
  align-items: flex-start;
}

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

.header-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.language-switcher {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.flag-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 30px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.flag-button:hover,
.flag-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(240, 195, 107, 0.45);
  background: rgba(240, 195, 107, 0.1);
  outline: none;
}

.flag-button img {
  display: block;
  width: 22px;
  height: 16px;
  border-radius: 2px;
  object-fit: cover;
}

.translate-anchor,
.goog-te-banner-frame,
.goog-logo-link,
.goog-te-gadget span {
  display: none !important;
}

body {
  top: 0 !important;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 239, 214, 0.04);
  font-weight: 700;
  font-size: 0.9rem;
  backdrop-filter: blur(12px);
}

.nav-link-active {
  color: var(--text);
  border-color: rgba(240, 195, 107, 0.55);
  background: linear-gradient(135deg, rgba(240, 195, 107, 0.2), rgba(255, 122, 26, 0.14));
}

.hero-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.9fr);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark,
.brand-logo {
  width: 54px;
  height: 54px;
  border-radius: 18px;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(240, 195, 107, 0.24), rgba(136, 215, 247, 0.16));
  border: 1px solid rgba(255, 219, 157, 0.22);
  font-family: "Cinzel", serif;
  font-size: 1.1rem;
  color: var(--gold-strong);
}

.brand-logo {
  object-fit: cover;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  font-weight: 800;
}

h1,
h2,
h3,
h4,
.value {
  margin: 0;
  font-family: "Cinzel", serif;
}

h1 {
  font-size: 1.25rem;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 3rem);
  line-height: 1.05;
}

.section-heading h2,
.compact h2 {
  font-size: clamp(1.15rem, 1.8vw, 1.6rem);
}

.hero-text,
.section-heading p,
.notes-list p,
.table-row,
.overview-caption,
.notice-box p,
.leaderboard p {
  color: var(--muted);
}

.lead-copy {
  max-width: 60ch;
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.button,
.status-pill,
.pill {
  text-decoration: none;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.button {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.92rem;
}

.button-primary {
  color: #1a1307;
  background: linear-gradient(135deg, #ffe1a5, #f2a33b 55%, #d56a17);
  box-shadow: 0 14px 30px rgba(213, 106, 23, 0.28);
}

.forum-nav-link {
  min-height: 36px;
  padding: 0 18px;
  box-shadow: 0 0 0 1px rgba(255, 219, 157, 0.12), 0 10px 22px rgba(240, 195, 107, 0.16);
}

.button-secondary,
.status-pill {
  color: var(--text);
  background: rgba(255, 241, 222, 0.05);
  border: 1px solid rgba(255, 219, 157, 0.12);
}

.status-pill {
  padding: 8px 12px;
  font-size: 0.9rem;
}

.hero-panel,
.panel,
.leaderboard,
.raid-card,
.snapshot-card {
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(33, 19, 12, 0.84), rgba(14, 8, 6, 0.82)),
    var(--panel);
  border: 1px solid rgba(255, 210, 144, 0.1);
  box-shadow: var(--shadow);
  padding: 18px;
}

.landing-copy {
  position: relative;
  overflow: hidden;
}

.landing-copy::after {
  content: "";
  position: absolute;
  inset: auto -60px -60px auto;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 154, 45, 0.26), transparent 70%);
}

.splash-panel {
  position: relative;
  overflow: hidden;
  min-height: 420px;
}

.splash-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 226, 154, 0.2), transparent 26%),
    linear-gradient(180deg, rgba(18, 8, 4, 0.08), rgba(18, 8, 4, 0.82));
}

.splash-art {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0.7;
  transform: scale(1.03);
  filter: saturate(1.12) contrast(1.04);
}

.splash-panel .overview-stack {
  position: relative;
  z-index: 2;
}

.overview-stack {
  display: grid;
  gap: 12px;
}

.overview-card {
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 239, 217, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 204, 127, 0.09);
}

.overview-row {
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.overview-caption {
  font-size: 0.86rem;
}

.value {
  font-size: 1.6rem;
}

.section {
  margin-top: 16px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--panel-border);
  background:
    linear-gradient(180deg, rgba(20, 10, 6, 0.76), rgba(10, 6, 4, 0.82)),
    rgba(9, 13, 19, 0.72);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(255, 219, 157, 0.08), transparent),
    radial-gradient(circle at top right, rgba(255, 116, 24, 0.12), transparent 24%);
  opacity: 0.65;
}

.forum-spotlight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background:
    linear-gradient(135deg, rgba(240, 195, 107, 0.18), rgba(255, 116, 24, 0.09)),
    rgba(9, 13, 19, 0.82);
}

.forum-spotlight-copy {
  flex: 1 1 680px;
}

.forum-rant {
  max-width: 70ch;
  line-height: 1.75;
}

.forum-spotlight-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  flex: 0 1 280px;
}

.forum-cta {
  min-height: 52px;
  padding: 0 28px;
  font-size: 1rem;
  box-shadow: 0 16px 36px rgba(240, 195, 107, 0.22);
}

.forum-support-text,
.footer-forum-link {
  color: var(--text);
}

.forum-support-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-forum-link {
  text-decoration: none;
}

.footer-forum-link:hover,
.footer-forum-link:focus-visible {
  color: var(--gold-strong);
}

.stats-grid,
.raid-grid,
.rates-grid,
.quick-panels {
  margin-top: 14px;
}

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

.about-story {
  max-width: 72ch;
}

.about-story p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

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

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

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

.snapshot-label {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
}

.snapshot-value {
  display: block;
  margin-top: 8px;
  font-size: 1.55rem;
  font-weight: 800;
}

.snapshot-trend {
  margin-top: 6px;
  font-size: 0.84rem;
  color: var(--gold);
}

.raid-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.search-input {
  min-height: 38px;
  min-width: 200px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: inherit;
}

.search-input::placeholder {
  color: var(--muted);
}

.raid-card h3 {
  font-size: 1.08rem;
}

.raid-meta {
  flex-wrap: wrap;
  margin: 10px 0;
}

.pill {
  padding: 6px 10px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.alive {
  background: rgba(119, 215, 158, 0.16);
  color: var(--green);
}

.status-online {
  color: #00ff4c;
  font-weight: 800;
}

.status-offline {
  color: #ff2d2d;
  font-weight: 800;
}

.dead {
  background: rgba(255, 143, 143, 0.15);
  color: var(--red);
}

.window {
  background: rgba(136, 215, 247, 0.12);
  color: var(--cyan);
}

.raid-card p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.raid-footer {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.82rem;
}

.leaderboards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

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

.quick-panels .leaderboard {
  display: flex;
  flex-direction: column;
}

.quick-panels .button {
  margin-top: auto;
  align-self: flex-start;
}

.leaderboard-header {
  margin-bottom: 10px;
}

.leaderboard-header h3 {
  font-size: 1rem;
}

.table {
  display: grid;
  gap: 8px;
}

.table-row {
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 244, 230, 0.04);
  font-size: 0.88rem;
}

.rank {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #1a1307;
  background: linear-gradient(135deg, var(--gold-strong), var(--gold));
}

.player-line {
  flex: 1;
}

.player-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.player-line strong,
.leader-metric {
  display: block;
  color: var(--text);
}

.leader-metric {
  text-align: right;
  font-weight: 800;
  font-size: 0.9rem;
}

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

.notes-list {
  display: grid;
  gap: 14px;
}

.notice-box,
.loading-state,
.empty-state {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 248, 239, 0.045);
  border: 1px solid rgba(255, 229, 184, 0.1);
}

.notice-box {
  border-color: rgba(255, 143, 143, 0.25);
  background: rgba(255, 143, 143, 0.08);
}

.loading-state,
.empty-state {
  color: var(--muted);
}

.contact-value {
  font-size: 1rem;
  line-height: 1.4;
  word-break: break-word;
}

.footer-links {
  align-items: stretch;
}

.footer-links > * {
  flex: 1;
}

@media (max-width: 960px) {
  .hero-grid,
  .stats-grid,
  .raid-grid,
  .leaderboards,
  .territory-grid,
  .dual-panel,
  .quick-panels,
  .rates-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1200px);
    padding-top: 8px;
  }

  body {
    background-attachment: scroll;
  }

  .page-shell::after {
    background-position:
      center,
      left -110px top 140px,
      right -150px top 145px;
    background-size:
      cover,
      min(72vw, 430px) auto,
      min(68vw, 420px) auto;
    opacity: 0.34;
  }

  .hero,
  .section {
    padding: 16px 14px;
    border-radius: 18px;
  }

  .topbar,
  .leaderboard-header,
  .section-heading,
  .footer-links {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
  }

  .header-actions,
  .language-switcher {
    width: 100%;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .nav-link {
    flex: 1 1 auto;
  }

  .forum-nav-link {
    width: 100%;
  }

  .status-pill {
    width: 100%;
  }

  .search-input {
    width: 100%;
  }

  .table-row {
    gap: 10px;
  }

  .leader-metric {
    min-width: 72px;
  }

  .forum-spotlight,
  .forum-spotlight-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}
