:root {
  color-scheme: dark;
  --ink: #f5ead1;
  --muted: #c9b993;
  --soft: #917e5c;
  --panel: rgba(32, 28, 24, 0.84);
  --panel-strong: rgba(18, 17, 16, 0.92);
  --line: rgba(245, 220, 166, 0.2);
  --gold: #d5a849;
  --ember: #bd4d2d;
  --green: #7ea877;
  --blue: #6fa3b8;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.46);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(18, 15, 13, 0.2), #14110e 54%),
    radial-gradient(circle at 20% 0%, rgba(189, 77, 45, 0.18), transparent 34%),
    #14110e;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
}

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

button,
input {
  font: inherit;
}

.page-shell {
  overflow: hidden;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(19, 16, 13, 0.86);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 170px;
}

.brand__mark {
  width: 42px;
  height: 42px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.02rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 20px;
  color: var(--muted);
  font-size: 0.96rem;
}

.nav-links a {
  padding: 8px 0;
}

.nav-links a:hover,
.footer a:hover {
  color: var(--gold);
}

.hero {
  position: relative;
  min-height: min(720px, calc(100vh - 66px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 360px);
  align-items: end;
  gap: 34px;
  padding: clamp(92px, 13vw, 160px) clamp(18px, 5vw, 64px) clamp(64px, 9vw, 96px);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(14, 11, 9, 0.92), rgba(14, 11, 9, 0.44) 52%, rgba(14, 11, 9, 0.76));
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.04);
}

.hero__content {
  width: min(760px, 100%);
}

.kicker,
.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 20px;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: 0;
  text-wrap: balance;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  line-height: 1.04;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.22rem;
  line-height: 1.2;
}

p {
  color: var(--muted);
  line-height: 1.68;
}

.hero__copy {
  max-width: 620px;
  font-size: 1.08rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button,
.filter {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}

.button {
  padding: 0 18px;
  font-weight: 700;
}

.button--primary {
  background: linear-gradient(180deg, #e0b85a, #9b6b22);
  color: #1f1409;
  border-color: rgba(255, 231, 163, 0.45);
}

.button--ghost,
.filter {
  background: rgba(30, 25, 20, 0.72);
  color: var(--ink);
}

.hero-card,
.achievement,
.quest-board,
.stats,
.profile {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-card {
  align-self: end;
  padding: 22px;
  border-radius: 8px;
}

.hero-card__label {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
}

.hero-card strong {
  display: block;
  margin: 10px 0;
  font-size: 3.2rem;
  line-height: 1;
}

.meter {
  height: 10px;
  overflow: hidden;
  border: 1px solid rgba(245, 220, 166, 0.24);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
}

.meter span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--ember), var(--gold));
}

.hero-card p {
  margin: 14px 0 0;
}

.profile-band,
.content-grid,
.season-band,
.ledger {
  padding: clamp(48px, 8vw, 84px) clamp(18px, 5vw, 64px);
}

.profile-band {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 22px;
  background: linear-gradient(180deg, #17130f, #211911);
}

.profile {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 24px;
  border-radius: 8px;
}

.avatar {
  display: grid;
  width: 104px;
  height: 104px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(213, 168, 73, 0.18), rgba(111, 163, 184, 0.14));
}

.avatar img {
  width: 70px;
  height: 70px;
}

.profile h2 {
  margin-bottom: 8px;
}

.profile p:last-child {
  margin-bottom: 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-radius: 8px;
}

.stats div {
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats div:nth-child(2n) {
  border-right: 0;
}

.stats div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.stats span {
  display: block;
  color: var(--gold);
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1;
}

.stats small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.content-grid {
  background: #15110e;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 24px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.filter {
  min-width: 104px;
  padding: 0 14px;
}

.filter.is-active {
  background: rgba(213, 168, 73, 0.18);
  border-color: rgba(213, 168, 73, 0.6);
  color: #ffe1a0;
}

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

.achievement {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  min-height: 166px;
  padding: 18px;
  border-radius: 8px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.achievement:hover {
  transform: translateY(-2px);
  border-color: rgba(213, 168, 73, 0.48);
  background: rgba(42, 34, 25, 0.92);
}

.achievement.is-hidden {
  display: none;
}

.achievement img {
  width: 64px;
  height: 64px;
}

.achievement p {
  margin-bottom: 0;
}

.achievement time {
  color: var(--soft);
  font-size: 0.88rem;
  white-space: nowrap;
}

.rarity {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.rarity--legend {
  color: #ffcf6f;
}

.rarity--epic {
  color: #bda2ff;
}

.rarity--rare {
  color: #83cde2;
}

.season-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(24px, 5vw, 60px);
  align-items: center;
  background:
    linear-gradient(90deg, rgba(20, 17, 14, 0.92), rgba(20, 17, 14, 0.72)),
    url("./assets/map-pattern.svg");
  background-size: cover;
}

.season-band > div:first-child {
  max-width: 660px;
}

.quest-board {
  display: grid;
  gap: 12px;
  padding: 22px;
  border-radius: 8px;
}

.quest-board label {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid rgba(245, 220, 166, 0.14);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.16);
  color: var(--ink);
}

.quest-board input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--gold);
}

.ledger {
  background: linear-gradient(180deg, #15110e, #0e0c0b);
}

.timeline {
  display: grid;
  gap: 0;
  max-width: 900px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.timeline li {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.timeline time {
  color: var(--gold);
  font-weight: 700;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(18px, 5vw, 64px);
  color: var(--soft);
  border-top: 1px solid var(--line);
  background: #0e0c0b;
}

@media (max-width: 860px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

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

  .hero,
  .profile-band,
  .season-band,
  .achievement-list {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-card {
    width: min(420px, 100%);
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 68px;
  }

  .profile {
    grid-template-columns: 1fr;
  }

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

  .stats div,
  .stats div:nth-child(2n),
  .stats div:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stats div:last-child {
    border-bottom: 0;
  }

  .achievement {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .achievement img {
    width: 54px;
    height: 54px;
  }

  .achievement time {
    grid-column: 2;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .footer {
    flex-direction: column;
  }
}
