:root {
  --ink-950: #050907;
  --ink-900: #08100c;
  --ink-850: #0b1510;
  --ink-800: #101c16;
  --ink-750: #14231b;
  --paper: #f0eadb;
  --stone: #d7d2c3;
  --muted: #a3ada5;
  --quiet: #849188;
  --line: rgba(207, 218, 207, 0.13);
  --line-strong: rgba(214, 224, 213, 0.25);
  --gold: #dca94f;
  --gold-hot: #ffd67c;
  --gold-dark: #8f6324;
  --moss: #789863;
  --teal: #61a89d;
  --ember: #cf6c49;
  --ice: #91adc4;
  --violet: #9b79b0;
  --display: "Bahnschrift SemiCondensed", "Arial Narrow", "Segoe UI", sans-serif;
  --body: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --utility: "Bahnschrift", "Arial Narrow", "Segoe UI", sans-serif;
  --frame: min(1320px, calc(100vw - 72px));
  --shadow-deep: 0 34px 90px rgba(0, 0, 0, 0.46);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--paper);
  background: var(--ink-900);
  font-family: var(--body);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  color: #181107;
  background: var(--gold-hot);
}

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

button,
input {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.frame {
  width: var(--frame);
  margin-inline: auto;
}

.screen-reader {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 500;
  top: 12px;
  left: 12px;
  padding: 10px 15px;
  color: var(--ink-950);
  background: var(--gold-hot);
  font-weight: 800;
  transform: translateY(-180%);
  transition: transform 150ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 2px solid var(--gold-hot);
  outline-offset: 4px;
}

.wayline {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0;
  color: var(--gold-hot);
  font-family: var(--utility);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1.2;
  text-transform: uppercase;
}

.wayline > span {
  position: relative;
  width: 34px;
  height: 1px;
  background: var(--gold);
}

.wayline > span::after {
  content: "";
  position: absolute;
  top: -2px;
  right: -1px;
  width: 5px;
  height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
}

.action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  font-family: var(--utility);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1;
  text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  transition: transform 150ms ease, box-shadow 180ms ease, filter 180ms ease, background 180ms ease;
}

.action svg,
.ink-link svg,
.world-lens__caption a svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.action:hover {
  transform: translateY(-2px);
}

.action:active {
  transform: translateY(0);
}

.action--small {
  min-height: 44px;
  padding-inline: 18px;
  font-size: 10px;
}

.action--large {
  min-height: 58px;
  padding-inline: 29px;
  font-size: 11.5px;
}

.action--gold {
  color: #241806;
  border-color: #f1cc7a;
  background: linear-gradient(180deg, #f1c96d 0%, #d79d3e 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 12px 32px rgba(220, 169, 79, 0.18);
}

.action--gold:hover {
  filter: brightness(1.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55), 0 17px 42px rgba(220,169,79,0.28);
}

.action--dark {
  color: var(--paper);
  border-color: var(--ink-950);
  background: var(--ink-950);
  box-shadow: 0 16px 32px rgba(39, 27, 8, 0.22);
}

.ink-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--stone);
  font-family: var(--utility);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 160ms ease;
}

.ink-link svg {
  transition: transform 160ms ease;
}

.ink-link:hover {
  color: var(--gold-hot);
}

.ink-link:hover svg {
  transform: translateX(4px);
}

/* Masthead */

.masthead {
  position: fixed;
  z-index: 200;
  inset: 0 0 auto;
  border-bottom: 1px solid transparent;
  transition: background 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.masthead.is-solid,
.masthead.is-open {
  border-color: var(--line);
  background: rgba(5, 12, 8, 0.9);
  box-shadow: 0 14px 44px rgba(0,0,0,0.3);
  backdrop-filter: blur(18px) saturate(120%);
}

.masthead__inner {
  display: flex;
  align-items: center;
  min-height: 76px;
  gap: 28px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
}

.masthead__brand-art {
  width: 138px;
  height: auto;
  margin-block: -2px;
  filter: drop-shadow(0 8px 17px rgba(0,0,0,0.42));
}

.wordmark small {
  padding: 3px 7px 2px;
  border: 1px solid rgba(220,169,79,0.45);
  color: var(--gold-hot);
  font-family: var(--utility);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
}

.wordmark__stone {
  position: relative;
  display: grid;
  place-items: center;
  width: 28px;
  height: 36px;
  transform: rotate(45deg) scale(0.72);
  border: 1px solid rgba(255,214,124,0.68);
  background: linear-gradient(135deg, #714d1e 0%, var(--gold) 44%, #5d3f1b 48%, #1a130b 100%);
  box-shadow: 0 0 22px rgba(220,169,79,0.24), inset 0 0 0 4px rgba(5,9,7,0.48);
}

.wordmark__stone i {
  width: 10px;
  height: 17px;
  background: linear-gradient(135deg, #fff7bd, var(--gold-hot) 56%, #b67826);
  box-shadow: 0 0 15px rgba(255,214,124,0.72);
}

.masthead__links {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-inline: auto;
}

.masthead__links a {
  position: relative;
  padding: 8px 0;
  color: #b4beb6;
  font-family: var(--utility);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 160ms ease;
}

.masthead__links a::after {
  content: "";
  position: absolute;
  right: 100%;
  bottom: 1px;
  left: 0;
  height: 1px;
  background: var(--gold);
  transition: right 170ms ease;
}

.masthead__links a:hover,
.masthead__links a.is-current {
  color: var(--paper);
}

.masthead__links a:hover::after,
.masthead__links a.is-current::after {
  right: 0;
}

.masthead__links .masthead__mobile-play {
  display: none;
}

.masthead__actions {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-left: auto;
}

.social-link {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  color: var(--stone);
  background: rgba(255,255,255,0.018);
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}

.social-link svg {
  width: 16px;
  height: 16px;
}

.social-link--disabled {
  color: #78847b;
  border-color: rgba(207,218,207,0.12);
  cursor: not-allowed;
}

.network-pulse,
.ledger-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.network-pulse > i,
.status-dot,
.world-node > i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8dc578;
  box-shadow: 0 0 0 4px rgba(141,197,120,0.1), 0 0 13px rgba(141,197,120,0.6);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px;
  color: var(--paper);
  background: transparent;
  cursor: pointer;
}

.menu-button svg {
  width: 22px;
  height: 22px;
}

.menu-button__close,
.masthead.is-open .menu-button__open {
  display: none;
}

.masthead.is-open .menu-button__close {
  display: block;
}

/* Hero */

.hero {
  position: relative;
  min-height: 900px;
  overflow: hidden;
  padding: 150px 0 0;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(760px 520px at 79% 29%, rgba(111,151,103,0.14), transparent 72%),
    linear-gradient(180deg, #09120e 0%, var(--ink-900) 100%);
}

.hero__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(220,230,218,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220,230,218,0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, transparent 4%, #000 42%, #000 100%);
}

.hero__rune {
  position: absolute;
  border: 1px solid rgba(220,169,79,0.12);
  pointer-events: none;
  transform: rotate(45deg);
}

.hero__rune--one {
  top: 115px;
  right: -225px;
  width: 540px;
  height: 540px;
}

.hero__rune--two {
  top: 82px;
  right: 25%;
  width: 125px;
  height: 125px;
}

.hero__layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(410px, 0.82fr) minmax(570px, 1.18fr);
  align-items: center;
  gap: clamp(48px, 6vw, 94px);
}

.hero__copy {
  position: relative;
  z-index: 3;
  padding-bottom: 58px;
  animation: hero-copy-enter 720ms cubic-bezier(0.2,0.75,0.2,1) both;
}

.hero__copy > .wayline {
  margin-bottom: 31px;
}

.hero h1,
.section-heading h2,
.start-journey h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 680;
  letter-spacing: -0.045em;
  line-height: 0.99;
}

.hero h1 {
  max-width: 650px;
  font-size: clamp(48px, 5.2vw, 73px);
}

.hero h1 em {
  color: var(--gold-hot);
  font-style: normal;
  font-weight: 520;
}

.hero__lead {
  max-width: 620px;
  margin: 24px 0 0;
  color: #b3bdb5;
  font-size: clamp(15px, 1.32vw, 18px);
  line-height: 1.76;
}

.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 25px;
  margin-top: 34px;
}

.hero__facts {
  display: flex;
  margin: 45px 0 0;
  padding: 0;
  list-style: none;
}

.hero__facts li {
  min-width: 118px;
  padding: 0 22px;
  border-left: 1px solid var(--line);
}

.hero__facts li:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero__facts strong,
.hero__facts span {
  display: block;
}

.hero__facts strong {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}

.hero__facts span {
  margin-top: 6px;
  color: var(--quiet);
  font-family: var(--utility);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.world-lens {
  position: relative;
  z-index: 2;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(214,224,213,0.26);
  background: var(--ink-950);
  box-shadow: var(--shadow-deep);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%);
  animation: hero-lens-enter 860ms 80ms cubic-bezier(0.2,0.75,0.2,1) both;
}

.world-lens::after {
  content: "";
  position: absolute;
  right: -8px;
  bottom: 12px;
  width: 45px;
  height: 1px;
  background: rgba(214,224,213,0.4);
  transform: rotate(-45deg);
}

.world-lens__rail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 44px;
  padding: 0 17px;
  border-bottom: 1px solid var(--line);
  color: #7f8b82;
  font-family: var(--utility);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.world-lens__rail span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--stone);
}

.world-lens__view {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #17221a;
}

.world-lens__view > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms cubic-bezier(0.2,0.75,0.2,1), filter 300ms ease;
}

.world-lens:hover .world-lens__view > img {
  transform: scale(1.024);
  filter: contrast(1.025) saturate(1.04);
}

.world-lens__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(4,9,6,0.03), transparent 62%, rgba(4,9,6,0.26));
  box-shadow: inset 0 0 70px rgba(5,9,7,0.22);
}

.place-tag {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px 6px 7px;
  border: 1px solid rgba(255,255,255,0.23);
  color: #f4efe3;
  background: rgba(5,10,7,0.76);
  box-shadow: 0 8px 20px rgba(0,0,0,0.26);
  backdrop-filter: blur(7px);
  font-family: var(--utility);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.place-tag i {
  width: 6px;
  height: 6px;
  background: var(--gold-hot);
  box-shadow: 0 0 10px rgba(255,214,124,0.8);
  transform: rotate(45deg);
}

.place-tag--guide { top: 39%; left: 47%; }
.place-tag--portal { top: 9%; left: 35%; }
.place-tag--market { right: 13%; bottom: 23%; }

.world-lens__caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 82px;
  padding: 14px 22px 15px;
  background: linear-gradient(90deg, #090e0b, #111c15);
}

.world-lens__caption > div {
  display: flex;
  flex-direction: column;
}

.world-lens__caption span {
  color: var(--gold);
  font-family: var(--utility);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.world-lens__caption strong {
  margin-top: 3px;
  font-size: 15px;
}

.world-lens__caption a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--stone);
  font-family: var(--utility);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.world-lens__caption a:hover {
  color: var(--gold-hot);
}

.world-network {
  position: relative;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 150px;
  align-items: stretch;
  min-height: 86px;
  margin-top: 62px;
  border-top: 1px solid var(--line);
}

.world-network__title,
.world-network__build {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.world-network__title > span,
.world-network__build > span {
  color: var(--gold);
  font-family: var(--utility);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.world-network__title small {
  margin-top: 3px;
  color: var(--quiet);
  font-size: 10px;
}

.world-network__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.world-node {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 10px;
  padding: 13px 22px;
  border-left: 1px solid var(--line);
}

.world-node:first-child {
  border-left: 0;
}

.world-node > i {
  grid-row: 1 / 3;
  align-self: center;
}

.world-node strong {
  color: var(--stone);
  font-size: 12px;
  font-weight: 700;
}

.world-node span {
  color: var(--quiet);
  font-family: var(--utility);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.world-node__meter {
  position: absolute;
  right: 18px;
  bottom: 11px;
  left: 38px;
  height: 1px;
  background: rgba(255,255,255,0.05);
}

.world-node__meter b {
  display: block;
  width: var(--occupancy, 0%);
  max-width: 100%;
  height: 100%;
  background: var(--moss);
}

.world-network__build {
  align-items: flex-end;
  text-align: right;
}

.world-network__build strong {
  margin-top: 3px;
  color: var(--stone);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

@keyframes hero-copy-enter {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes hero-lens-enter {
  from { opacity: 0; transform: translateY(20px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

/* Shared sections */

.section {
  position: relative;
  padding: 126px 0;
  /* Anchor navigation must clear the fixed masthead. */
  scroll-margin-top: 88px;
}

.section-heading {
  margin-bottom: 66px;
}

.section-heading--split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.72fr);
  align-items: end;
  gap: 82px;
}

.section-heading h2,
.start-journey h2 {
  margin-top: 17px;
  font-size: clamp(43px, 5.25vw, 74px);
}

.section-heading--split > p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.82;
}

/* Progression */

.progression {
  background:
    radial-gradient(620px 340px at 12% 10%, rgba(120,152,99,0.07), transparent 72%),
    var(--ink-900);
}

.adventure-loop {
  border-bottom: 1px solid var(--line);
}

.loop-stage {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(250px, 1fr) 320px;
  align-items: center;
  gap: 28px;
  min-height: 150px;
  padding: 24px 24px 24px 0;
  border-top: 1px solid var(--line);
  overflow: hidden;
  transition: padding 180ms ease, background 180ms ease;
}

.loop-stage::before {
  content: "";
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 0;
  width: 2px;
  background: var(--gold);
  opacity: 0;
  transition: opacity 170ms ease;
}

.loop-stage:hover {
  padding-left: 22px;
  background: linear-gradient(90deg, rgba(220,169,79,0.055), transparent 64%);
}

.loop-stage:hover::before {
  opacity: 1;
}

.loop-stage__number {
  color: var(--gold);
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.loop-stage__copy small {
  color: var(--quiet);
  font-family: var(--utility);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.loop-stage__copy h3 {
  margin: 2px 0 0;
  font-family: var(--display);
  font-size: 32px;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.loop-stage__copy p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.loop-stage__items {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  padding-right: 14px;
}

.loop-stage__items img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  margin-left: -10px;
  filter: drop-shadow(0 14px 20px rgba(0,0,0,0.36));
  transition: transform 180ms ease;
}

.loop-stage__items img:nth-child(1) { transform: rotate(-7deg) translateY(4px); }
.loop-stage__items img:nth-child(2) { transform: translateY(-5px); }
.loop-stage__items img:nth-child(3) { transform: rotate(7deg) translateY(3px); }
.loop-stage:hover .loop-stage__items img:nth-child(1) { transform: rotate(-10deg) translate(-6px, 1px); }
.loop-stage:hover .loop-stage__items img:nth-child(2) { transform: translateY(-10px); }
.loop-stage:hover .loop-stage__items img:nth-child(3) { transform: rotate(10deg) translate(6px, 0); }

.skills-index {
  margin-top: 74px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.skills-index__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}

.skills-index__heading span {
  color: var(--gold);
  font-family: var(--utility);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.skills-index__heading strong {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.skills-index__grid {
  display: grid;
  grid-template-columns: repeat(15, minmax(0, 1fr));
}

.discipline-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 126px;
  padding: 12px 4px;
  border: 0;
  border-left: 1px solid rgba(207,218,207,0.075);
  color: inherit;
  background: transparent;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease;
}

.discipline-tab::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 0;
  left: 18px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 160ms ease;
}

.discipline-tab:first-child {
  border-left: 0;
}

.discipline-tab:hover,
.discipline-tab.is-active {
  background: rgba(220,169,79,0.05);
}

.discipline-tab.is-active::after {
  transform: scaleX(1);
}

.discipline-tab img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 10px 17px rgba(0,0,0,0.36));
  transition: transform 170ms ease;
}

.discipline-tab:hover img,
.discipline-tab.is-active img {
  transform: translateY(-5px) scale(1.04);
}

.discipline-tab > span {
  max-width: 100%;
  margin-top: 9px;
  overflow: hidden;
  color: #9ea9a1;
  font-family: var(--utility);
  font-size: 8.5px;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.discipline-tab.is-active > span {
  color: var(--gold-hot);
}

.discipline-ledger {
  --discipline-accent: var(--gold);
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  min-height: 590px;
  border-top: 1px solid var(--line-strong);
  background:
    linear-gradient(135deg, rgba(220,169,79,0.035), transparent 38%),
    rgba(5,11,8,0.46);
}

.discipline-ledger[data-family="gathering"] { --discipline-accent: #9fbd79; }
.discipline-ledger[data-family="artisan"] { --discipline-accent: #db8b5d; }
.discipline-ledger[data-family="utility"] { --discipline-accent: #b592c6; }

.discipline-ledger__loading {
  grid-column: 1 / -1;
  align-self: center;
  margin: 0;
  color: var(--muted);
  text-align: center;
}

.discipline-ledger__intro {
  position: relative;
  padding: 39px 30px 32px;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 15%, color-mix(in srgb, var(--discipline-accent) 13%, transparent), transparent 38%),
    rgba(255,255,255,0.012);
}

.discipline-ledger__intro::after {
  content: "";
  position: absolute;
  right: -65px;
  bottom: -65px;
  width: 150px;
  height: 150px;
  border: 1px solid color-mix(in srgb, var(--discipline-accent) 22%, transparent);
  transform: rotate(45deg);
}

.discipline-ledger__icon {
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  margin-bottom: 28px;
  border: 1px solid color-mix(in srgb, var(--discipline-accent) 32%, transparent);
  background: rgba(0,0,0,0.22);
  box-shadow: inset 0 0 34px color-mix(in srgb, var(--discipline-accent) 9%, transparent);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.discipline-ledger__icon img {
  width: 78px;
  height: 78px;
  object-fit: contain;
  filter: drop-shadow(0 12px 22px rgba(0,0,0,0.4));
}

.discipline-ledger__family {
  margin: 0 0 7px;
  color: var(--discipline-accent);
  font-family: var(--utility);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.discipline-ledger__intro h3 {
  margin: 0;
  color: var(--paper);
  font-family: var(--display);
  font-size: 43px;
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1;
}

.discipline-ledger__intro > p:not(.discipline-ledger__family) {
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.discipline-ledger__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 31px;
  border: 1px solid var(--line);
  background: var(--line);
}

.discipline-ledger__stats span {
  padding: 12px;
  background: var(--ink-850);
}

.discipline-ledger__stats strong,
.discipline-ledger__stats small {
  display: block;
}

.discipline-ledger__stats strong {
  color: var(--discipline-accent);
  font-family: var(--display);
  font-size: 21px;
  line-height: 1;
}

.discipline-ledger__stats small {
  margin-top: 5px;
  color: var(--quiet);
  font-family: var(--utility);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.discipline-ledger__content {
  display: flex;
  min-width: 0;
  min-height: 590px;
  max-height: 650px;
  flex-direction: column;
  overflow: hidden;
}

.discipline-ledger__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 74px;
  padding: 15px 24px;
  border-bottom: 1px solid var(--line);
}

.discipline-ledger__bar strong {
  color: var(--stone);
  font-family: var(--display);
  font-size: 19px;
  font-weight: 650;
}

.discipline-ledger__bar span {
  color: var(--quiet);
  font-family: var(--utility);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-align: right;
  text-transform: uppercase;
}

.discipline-groups {
  min-height: 0;
  padding: 0 24px 28px;
  overflow-y: auto;
  scrollbar-color: color-mix(in srgb, var(--discipline-accent) 45%, transparent) transparent;
  scrollbar-width: thin;
}

.discipline-group__head {
  position: sticky;
  z-index: 3;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  border-bottom: 1px solid var(--line-strong);
  background: rgba(7,14,10,0.96);
  backdrop-filter: blur(10px);
}

.discipline-group__head h4 {
  margin: 0;
  color: var(--discipline-accent);
  font-family: var(--utility);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.discipline-group__head span {
  color: var(--quiet);
  font-size: 10px;
}

.unlock-row {
  display: grid;
  grid-template-columns: 50px 66px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 84px;
  border-bottom: 1px solid rgba(207,218,207,0.07);
}

.unlock-level {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  min-height: 48px;
  border-right: 1px solid var(--line);
}

.unlock-level small {
  color: var(--quiet);
  font-family: var(--utility);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.unlock-level strong {
  color: var(--discipline-accent);
  font-family: var(--display);
  font-size: 22px;
  line-height: 1;
}

.unlock-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  overflow: hidden;
  border: 1px solid rgba(207,218,207,0.1);
  background: rgba(255,255,255,0.012);
}

.unlock-art img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 7px 10px rgba(0,0,0,0.35));
  transform: translate(-50%, -50%);
}

.unlock-art img:first-child:nth-last-child(2) { left: 42%; }
.unlock-art img:nth-child(2):last-child { left: 58%; }

.unlock-art img:first-child:nth-last-child(3),
.unlock-art img:first-child:nth-last-child(3) ~ img {
  width: 35px;
  height: 35px;
}

.unlock-art img:first-child:nth-last-child(3) { left: 30%; }
.unlock-art img:nth-child(2):nth-last-child(2) { left: 50%; }
.unlock-art img:nth-child(3):last-child { left: 70%; }

.unlock-art--mark i {
  width: 17px;
  height: 17px;
  border: 1px solid color-mix(in srgb, var(--discipline-accent) 58%, transparent);
  background: color-mix(in srgb, var(--discipline-accent) 10%, transparent);
  transform: rotate(45deg);
}

.unlock-copy {
  min-width: 0;
  padding-block: 13px;
}

.unlock-copy strong {
  display: block;
  color: var(--stone);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.unlock-copy p {
  margin: 4px 0 0;
  color: var(--quiet);
  font-size: 11px;
  line-height: 1.5;
}

/* Atlas */

.atlas {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, transparent 49.96%, rgba(255,255,255,0.018) 50%, transparent 50.04%),
    var(--ink-850);
}

.atlas-route {
  position: relative;
  border-bottom: 1px solid var(--line);
}

.atlas-route::before {
  content: "";
  position: absolute;
  top: 61px;
  bottom: 61px;
  left: 29px;
  width: 1px;
  background: linear-gradient(var(--moss), #d5a356 30%, var(--violet) 55%, var(--teal) 76%, #b8c8bf);
}

.atlas-stop {
  --stop-accent: var(--moss);
  position: relative;
  display: grid;
  grid-template-columns: 72px 245px minmax(300px, 1fr) auto;
  align-items: center;
  gap: 28px;
  min-height: 122px;
  padding: 23px 20px 23px 0;
  border-top: 1px solid var(--line);
  transition: background 180ms ease, padding 180ms ease;
}

.atlas-stop:hover {
  padding-left: 14px;
  background: linear-gradient(90deg, rgba(255,255,255,0.022), transparent 70%);
}

.atlas-stop--desert { --stop-accent: #d2a25c; }
.atlas-stop--shadow { --stop-accent: var(--violet); }
.atlas-stop--mire { --stop-accent: var(--teal); }
.atlas-stop--aerie { --stop-accent: #b9c9c0; }

.atlas-stop__mark {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  background: var(--ink-850);
}

.atlas-stop__mark::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid var(--stop-accent);
  transform: rotate(45deg);
}

.atlas-stop__mark span {
  position: relative;
  z-index: 2;
  color: var(--stop-accent);
  font-family: var(--utility);
  font-size: 8px;
  font-weight: 800;
}

.atlas-stop__mark i {
  display: none;
}

.atlas-stop__name small {
  color: var(--stop-accent);
  font-family: var(--utility);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.atlas-stop__name h3 {
  margin: 1px 0 0;
  font-family: var(--display);
  font-size: 29px;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.atlas-stop > p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.atlas-stop ul {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.atlas-stop li {
  padding: 5px 8px 4px;
  border: 1px solid var(--line);
  color: var(--quiet);
  font-family: var(--utility);
  font-size: 8.5px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.shared-world-proof {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) auto;
  align-items: center;
  gap: 44px;
  margin-top: 62px;
  padding: 31px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.shared-world-proof > div {
  display: flex;
  flex-direction: column;
}

.shared-world-proof > div span {
  color: var(--gold-hot);
  font-family: var(--display);
  font-size: 38px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.shared-world-proof > div small {
  margin-top: 6px;
  color: var(--quiet);
  font-family: var(--utility);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.shared-world-proof > p {
  margin: 0;
  padding-left: 43px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

/* Armory */

.armory {
  overflow: hidden;
  background: var(--ink-950);
}

.armory::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.013) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.013) 1px, transparent 1px);
  background-size: 72px 72px;
}

.armory__flare {
  position: absolute;
  top: 90px;
  right: -300px;
  width: 760px;
  height: 760px;
  border-radius: 50%;
  background: rgba(207,108,73,0.07);
  filter: blur(80px);
  pointer-events: none;
}

.boss-registry {
  position: relative;
  display: grid;
  grid-template-columns: 305px minmax(0, 1fr);
  min-height: 545px;
  border: 1px solid var(--line-strong);
  background: #090e0b;
  box-shadow: 0 30px 80px rgba(0,0,0,0.28);
}

.boss-registry__tabs {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
}

.boss-tab {
  position: relative;
  flex: 1;
  min-height: 112px;
  padding: 22px 25px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, padding 160ms ease;
}

.boss-tab:last-child {
  border-bottom: 0;
}

.boss-tab::before {
  content: "";
  position: absolute;
  top: 19px;
  bottom: 19px;
  left: 0;
  width: 2px;
  background: var(--gold);
  transform: scaleY(0);
  transition: transform 160ms ease;
}

.boss-tab:hover,
.boss-tab.is-active {
  padding-left: 31px;
  color: var(--paper);
  background: rgba(255,255,255,0.022);
}

.boss-tab.is-active::before {
  transform: scaleY(1);
}

.boss-tab span,
.boss-tab small {
  display: block;
}

.boss-tab span {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 650;
}

.boss-tab small {
  margin-top: 5px;
  color: var(--quiet);
  font-family: var(--utility);
  font-size: 8.5px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.boss-registry__panels {
  min-width: 0;
}

.boss-panel {
  --boss-rgb: 207, 108, 73;
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(390px, 1.15fr);
  align-items: center;
  gap: 50px;
  min-height: 543px;
  overflow: hidden;
  padding: 55px 50px;
  background:
    radial-gradient(500px 420px at 78% 45%, rgba(var(--boss-rgb),0.14), transparent 72%),
    linear-gradient(135deg, rgba(255,255,255,0.024), transparent 44%);
  animation: boss-panel-enter 300ms ease both;
}

.boss-panel::before {
  content: "";
  position: absolute;
  top: -135px;
  right: -90px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(var(--boss-rgb),0.29);
  transform: rotate(45deg);
}

.boss-panel--stormtalon { --boss-rgb: 105, 151, 180; }
.boss-panel--rimeheart { --boss-rgb: 145, 173, 196; }
.boss-panel--viremoor { --boss-rgb: 97, 168, 157; }

.boss-panel__story {
  position: relative;
  z-index: 2;
}

.boss-panel__story > small {
  color: rgb(var(--boss-rgb));
  font-family: var(--utility);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.boss-panel h3 {
  margin: 8px 0 0;
  font-family: var(--display);
  font-size: clamp(38px, 4vw, 57px);
  font-weight: 670;
  letter-spacing: -0.04em;
  line-height: 1;
}

.boss-panel__story > p {
  max-width: 410px;
  margin: 22px 0 0;
  color: #aab4ac;
  font-size: 13px;
  line-height: 1.78;
}

.attack-readout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 30px;
  border-top: 1px solid rgba(var(--boss-rgb),0.34);
}

.attack-readout span {
  padding: 10px 4px 9px;
  border-right: 1px solid var(--line);
  color: var(--stone);
  font-family: var(--utility);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

.attack-readout strong {
  grid-column: 1 / -1;
  padding-top: 11px;
  color: rgb(var(--boss-rgb));
  font-family: var(--utility);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.boss-panel__loot {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
  gap: 10px;
}

.boss-panel__loot figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 210px;
  margin: 0;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(3,7,5,0.46);
  transition: transform 170ms ease, border-color 170ms ease, background 170ms ease;
}

.boss-panel__loot figure:hover {
  z-index: 2;
  border-color: rgba(var(--boss-rgb),0.55);
  background: rgba(var(--boss-rgb),0.055);
  transform: translateY(-4px);
}

.boss-panel__loot img {
  width: 112px;
  height: 112px;
  object-fit: contain;
  filter: drop-shadow(0 16px 24px rgba(0,0,0,0.43));
}

.boss-panel__loot figcaption {
  margin-top: 8px;
  color: #aeb8b0;
  font-family: var(--utility);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@keyframes boss-panel-enter {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: none; }
}

.fifth-seal {
  position: relative;
  display: grid;
  grid-template-columns: 245px minmax(300px, 1fr) minmax(260px, 0.8fr) auto;
  align-items: center;
  gap: 28px;
  margin-top: 22px;
  padding: 27px 30px;
  border: 1px solid rgba(220,169,79,0.22);
  background: linear-gradient(90deg, rgba(220,169,79,0.07), rgba(128,92,145,0.06));
}

.fifth-seal__title {
  display: flex;
  align-items: center;
  gap: 20px;
}

.seal-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 49px;
  height: 49px;
  border: 1px solid rgba(220,169,79,0.5);
  transform: rotate(45deg);
}

.seal-mark i {
  width: 17px;
  height: 17px;
  border: 1px solid var(--gold-hot);
  background: rgba(220,169,79,0.08);
}

.fifth-seal__title small {
  color: var(--gold);
  font-family: var(--utility);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.fifth-seal__title h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 25px;
  font-weight: 650;
}

.fifth-seal__route {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid rgba(220,169,79,0.25);
}

.fifth-seal__route span {
  position: relative;
  padding: 0 4px 9px;
  color: var(--muted);
  font-family: var(--utility);
  font-size: 8.5px;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-align: center;
  text-transform: uppercase;
}

.fifth-seal__route span::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 50%;
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: translateX(-50%) rotate(45deg);
}

.fifth-seal__route strong {
  grid-column: 1 / -1;
  padding-top: 11px;
  color: var(--gold-hot);
  font-family: var(--utility);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.fifth-seal > p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.fifth-seal__rewards {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.fifth-seal__rewards img {
  width: 51px;
  height: 51px;
  object-fit: contain;
  margin-left: -4px;
  filter: drop-shadow(0 9px 15px rgba(0,0,0,0.35));
}

/* Live registry */

.registry {
  background:
    radial-gradient(650px 480px at 88% 34%, rgba(97,168,157,0.065), transparent 72%),
    var(--ink-800);
}

.registry-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.37fr) minmax(350px, 0.63fr);
  align-items: start;
  gap: 22px;
}

.score-ledger,
.adventurer-record {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: rgba(5,11,7,0.64);
  box-shadow: 0 24px 65px rgba(0,0,0,0.19);
}

.ledger-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 88px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.016);
}

.ledger-head > div {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ledger-head svg {
  width: 28px;
  height: 28px;
  color: var(--gold);
}

.ledger-head span > small,
.adventurer-record > header small {
  display: block;
  color: var(--quiet);
  font-family: var(--utility);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ledger-head span > strong {
  display: block;
  margin-top: 1px;
  font-family: var(--display);
  font-size: 21px;
  font-weight: 650;
}

.ledger-live {
  color: var(--quiet);
  font-size: 9px;
}

.hiscores-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  scrollbar-color: rgba(220,169,79,0.35) transparent;
  scrollbar-width: thin;
}

.skill-chip {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid transparent;
  color: var(--quiet);
  background: transparent;
  font-family: var(--utility);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 140ms ease, border-color 140ms ease, background 140ms ease;
}

.skill-chip:hover {
  color: var(--stone);
  background: rgba(255,255,255,0.022);
}

.skill-chip.is-active {
  color: var(--gold-hot);
  border-color: rgba(220,169,79,0.35);
  background: rgba(220,169,79,0.065);
}

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

table.hiscores th {
  padding: 13px 22px;
  border-bottom: 1px solid var(--line);
  color: var(--quiet);
  font-family: var(--utility);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-align: left;
  text-transform: uppercase;
}

table.hiscores td {
  padding: 12px 22px;
  border-bottom: 1px solid rgba(207,218,207,0.06);
  font-variant-numeric: tabular-nums;
}

table.hiscores tbody tr {
  transition: background 130ms ease;
}

table.hiscores tbody tr:hover {
  background: rgba(220,169,79,0.045);
}

table.hiscores tbody tr:last-child td {
  border-bottom: 0;
}

td.rank {
  width: 74px;
}

.rank-badge {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 7px;
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--quiet);
  background: rgba(255,255,255,0.018);
  font-size: 10px;
  font-weight: 800;
}

.rank-badge--1 { color: #241805; border-color: #c89435; background: linear-gradient(180deg,#ffe29a,#d7a13e); }
.rank-badge--2 { color: #141916; border-color: #84908a; background: linear-gradient(180deg,#e4eae5,#9da8a1); }
.rank-badge--3 { color: #231207; border-color: #97623a; background: linear-gradient(180deg,#dba06a,#a8663a); }

td.name {
  color: var(--stone);
  font-weight: 700;
}

.score-name {
  padding: 2px 0;
  color: inherit;
  background: transparent;
  font-weight: inherit;
  text-align: left;
  cursor: pointer;
  transition: color 140ms ease;
}

.score-name:hover {
  color: var(--gold-hot);
}

td.num {
  color: var(--muted);
  text-align: right;
}

td.num.level {
  color: var(--gold-hot);
  font-weight: 750;
}

.hiscores-empty {
  padding: 72px 24px;
  color: var(--muted);
  text-align: center;
}

.hiscores-note {
  min-height: 47px;
  margin: 0;
  padding: 12px 20px 14px;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-size: 10px;
}

.adventurer-record > header {
  min-height: 88px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.016);
}

.adventurer-record > header h3 {
  margin: 3px 0 0;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.profile-search {
  display: flex;
  gap: 8px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.profile-search__field {
  position: relative;
  flex: 1;
  min-width: 0;
}

.profile-search__field svg {
  position: absolute;
  top: 50%;
  left: 13px;
  width: 17px;
  height: 17px;
  color: var(--quiet);
  transform: translateY(-50%);
  pointer-events: none;
}

.profile-search input {
  width: 100%;
  height: 44px;
  padding: 0 13px 0 39px;
  border: 1px solid var(--line);
  border-radius: 0;
  outline: 0;
  color: var(--stone);
  background: rgba(0,0,0,0.22);
  font-size: 13px;
}

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

.profile-search input:focus {
  border-color: rgba(220,169,79,0.5);
  box-shadow: 0 0 0 3px rgba(220,169,79,0.07);
}

.profile-body {
  min-height: 363px;
  padding: 16px;
}

.profile-hint {
  max-width: 280px;
  margin: 88px auto 0;
  color: var(--quiet);
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}

.profile-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 3px 3px;
}

.profile-card__name {
  overflow-wrap: anywhere;
  color: var(--paper);
  font-family: var(--display);
  font-size: 22px;
  font-weight: 650;
}

.profile-card__rank {
  color: var(--gold);
  font-family: var(--utility);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.profile-card__totals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin: 13px 0;
}

.total-tile {
  padding: 11px 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.016);
}

.total-tile strong,
.total-tile span {
  display: block;
}

.total-tile strong {
  color: var(--gold-hot);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.total-tile span {
  color: var(--quiet);
  font-family: var(--utility);
  font-size: 8.5px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.skill-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.skill-cell {
  display: grid;
  grid-template-columns: minmax(62px,auto) 1fr auto;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 7px 9px;
  border: 1px solid rgba(207,218,207,0.065);
  background: rgba(255,255,255,0.01);
  font-size: 10px;
}

.skill-cell .sk {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.skill-cell .bar {
  height: 2px;
  overflow: hidden;
  background: rgba(255,255,255,0.055);
}

.skill-cell .bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg,var(--gold-dark),var(--gold-hot));
}

.skill-cell .lv {
  min-width: 20px;
  color: var(--stone);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.skill-cell .lv.maxed {
  color: var(--gold-hot);
}

/* Start journey */

.start-journey {
  padding: 108px 0;
  color: #1d160b;
  background:
    linear-gradient(90deg,rgba(255,255,255,0.13) 1px,transparent 1px),
    linear-gradient(180deg,#eabd65,#d59e43);
  background-size: 82px 100%,auto;
}

.start-journey__layout {
  display: grid;
  grid-template-columns: minmax(0,0.86fr) minmax(470px,1.14fr);
  align-items: center;
  gap: clamp(70px,9vw,135px);
}

.start-journey .wayline {
  color: #5d3c0c;
}

.start-journey .wayline > span,
.start-journey .wayline > span::after {
  background: #5d3c0c;
}

.start-journey h2 {
  color: #181208;
}

.start-journey__copy > p:not(.wayline) {
  max-width: 560px;
  margin: 23px 0 30px;
  color: #5e4825;
  font-size: 16px;
  line-height: 1.72;
}

.first-route {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.first-route::before {
  content: "";
  position: absolute;
  top: 38px;
  bottom: 38px;
  left: 27px;
  width: 1px;
  background: rgba(48,34,12,0.25);
}

.first-route li {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  gap: 22px;
  min-height: 108px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(48,34,12,0.18);
}

.first-route li:last-child {
  border-bottom: 0;
}

.first-route li > span {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(38,26,8,0.33);
  background: #e5b359;
  font-family: var(--utility);
  font-size: 10px;
  font-weight: 800;
}

.first-route strong {
  display: block;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 680;
}

.first-route p {
  margin: 3px 0 0;
  color: #654f2a;
  font-size: 13px;
}

/* Footer */

.footer {
  padding: 57px 0 22px;
  border-top: 1px solid rgba(255,255,255,0.035);
  background: var(--ink-950);
}

.footer__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 42px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer__brand > div {
  display: flex;
  flex-direction: column;
}

.footer__brand strong {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.19em;
}

.footer__brand > div span {
  margin-top: 3px;
  color: var(--quiet);
  font-size: 11px;
}

.footer__main nav {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
}

.footer__main nav a {
  color: var(--muted);
  font-family: var(--utility);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.footer__main nav a:hover {
  color: var(--gold-hot);
}

.footer__meta {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-family: var(--utility);
  font-size: 8.5px;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

/* Responsive */

@media (max-width: 1200px) {
  :root {
    --frame: min(1120px, calc(100vw - 48px));
  }

  .network-pulse {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero__layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero__copy {
    max-width: 790px;
    padding-bottom: 14px;
  }

  .world-lens {
    width: min(930px,100%);
    margin-left: auto;
  }

  .world-network {
    margin-top: 55px;
  }

  .skills-index__grid {
    grid-template-columns: repeat(8,minmax(0,1fr));
  }

  .discipline-tab:nth-child(9) {
    border-left: 0;
  }

  .discipline-tab:nth-child(n+9) {
    border-top: 1px solid rgba(207,218,207,0.075);
  }

  .fifth-seal {
    grid-template-columns: 230px 1fr 1fr;
  }

  .fifth-seal__rewards {
    grid-column: 1 / -1;
    justify-content: center;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 940px) {
  .masthead {
    background: rgba(5,12,8,0.88);
    backdrop-filter: blur(16px);
  }

  .masthead__inner {
    position: relative;
  }

  .masthead__links {
    position: absolute;
    top: 76px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 10px 0 17px;
    border-top: 1px solid var(--line);
    background: rgba(5,12,8,0.98);
  }

  .masthead.is-open .masthead__links {
    display: flex;
  }

  .masthead__links a {
    padding: 14px 23px;
  }

  .masthead__links a::after {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .section {
    padding: 98px 0;
  }

  .section-heading--split {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-heading--split > p {
    max-width: 670px;
  }

  .discipline-ledger {
    grid-template-columns: 245px minmax(0, 1fr);
  }

  .discipline-ledger__intro {
    padding-inline: 24px;
  }

  .world-network {
    grid-template-columns: 150px minmax(0,1fr);
  }

  .world-network__build {
    display: none;
  }

  .loop-stage {
    grid-template-columns: 62px 1fr 250px;
  }

  .atlas-stop {
    grid-template-columns: 72px 210px 1fr;
  }

  .atlas-stop ul {
    display: none;
  }

  .shared-world-proof {
    grid-template-columns: 190px 1fr;
  }

  .shared-world-proof .ink-link {
    grid-column: 1 / -1;
  }

  .boss-registry {
    grid-template-columns: 1fr;
  }

  .boss-registry__tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .boss-tab {
    min-height: 88px;
    border-right: 1px solid var(--line);
  }

  .boss-tab:nth-child(2n) {
    border-right: 0;
  }

  .boss-tab:nth-child(3) {
    border-bottom: 0;
  }

  .boss-tab::before {
    top: auto;
    right: 18px;
    bottom: 0;
    left: 18px;
    width: auto;
    height: 2px;
    transform: scaleX(0);
  }

  .boss-tab.is-active::before {
    transform: scaleX(1);
  }

  .boss-panel {
    min-height: 490px;
  }

  .registry-layout {
    grid-template-columns: 1fr;
  }

  .profile-body {
    min-height: 280px;
  }

  .profile-hint {
    margin-top: 63px;
  }

  .start-journey__layout {
    grid-template-columns: 1fr;
    gap: 52px;
  }
}

@media (max-width: 700px) {
  :root {
    --frame: calc(100vw - 32px);
  }

  .masthead__inner {
    min-height: 68px;
  }

  .masthead__links {
    top: 68px;
  }

  .masthead__brand-art {
    width: 112px;
  }

  .wordmark small,
  .masthead__actions > .action {
    display: none;
  }

  .masthead__links .masthead__mobile-play {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 50px;
    margin: 8px 16px 0;
    padding: 0 18px;
    color: #241806;
    background: linear-gradient(180deg, #f1c96d 0%, #d79d3e 100%);
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  }

  .masthead__mobile-play svg {
    width: 17px;
    height: 17px;
  }

  .hero {
    padding-top: 116px;
  }

  .hero__copy {
    padding-bottom: 6px;
  }

  .hero__copy > .wayline {
    margin-bottom: 24px;
  }

  .hero h1 {
    font-size: clamp(41px,12vw,55px);
  }

  .hero__lead {
    font-size: 15px;
  }

  .hero__actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .hero__actions .action {
    width: 100%;
  }

  .hero__facts {
    width: 100%;
  }

  .hero__facts li {
    flex: 1;
    min-width: 0;
    padding-inline: 14px;
  }

  .hero__facts strong {
    font-size: 22px;
  }

  .hero__rune--two,
  .place-tag--portal,
  .place-tag--market {
    display: none;
  }

  .world-lens {
    margin-top: 24px;
  }

  .world-lens__rail {
    min-height: 38px;
    padding-inline: 12px;
  }

  .world-lens__rail span:last-child {
    display: none;
  }

  .place-tag--guide {
    top: 35%;
    left: 42%;
  }

  .world-lens__caption {
    min-height: 70px;
    padding-inline: 15px;
  }

  .world-lens__caption strong {
    font-size: 12px;
  }

  .world-network {
    grid-template-columns: 1fr;
    margin-top: 43px;
  }

  .world-network__title {
    min-height: 62px;
  }

  .world-network__list {
    overflow-x: auto;
    border-right: 0;
    border-left: 0;
    scrollbar-width: none;
  }

  .world-network__list::-webkit-scrollbar {
    display: none;
  }

  .world-node {
    min-width: 175px;
    padding-inline: 15px;
  }

  .section {
    padding: 78px 0;
  }

  .section-heading {
    margin-bottom: 43px;
  }

  .section-heading h2,
  .start-journey h2 {
    font-size: clamp(39px,11.5vw,54px);
  }

  .section-heading--split > p {
    font-size: 14px;
  }

  .loop-stage {
    grid-template-columns: 44px 1fr;
    gap: 14px;
    min-height: 0;
    padding: 24px 0;
  }

  .loop-stage:hover {
    padding-left: 10px;
  }

  .loop-stage__number {
    align-self: start;
    padding-top: 5px;
    font-size: 13px;
  }

  .loop-stage__copy h3 {
    font-size: 27px;
  }

  .loop-stage__items {
    grid-column: 2;
    justify-content: flex-start;
    padding: 7px 0 0;
  }

  .loop-stage__items img {
    width: 63px;
    height: 63px;
  }

  .skills-index {
    margin-top: 54px;
  }

  .skills-index__heading {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    min-height: 76px;
    gap: 3px;
  }

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

  .discipline-tab,
  .discipline-tab:nth-child(9) {
    min-height: 113px;
    border-top: 1px solid rgba(207,218,207,0.075);
    border-left: 1px solid rgba(207,218,207,0.075);
  }

  .discipline-tab:nth-child(3n+1) {
    border-left: 0;
  }

  .discipline-tab:nth-child(-n+3) {
    border-top: 0;
  }

  .discipline-tab img {
    width: 50px;
    height: 50px;
  }

  .discipline-ledger {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .discipline-ledger__intro {
    display: grid;
    grid-template-columns: 80px minmax(0,1fr);
    column-gap: 18px;
    padding: 25px 20px 22px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .discipline-ledger__icon {
    grid-row: 1 / 4;
    width: 80px;
    height: 80px;
    margin: 0;
  }

  .discipline-ledger__icon img {
    width: 60px;
    height: 60px;
  }

  .discipline-ledger__family,
  .discipline-ledger__intro h3,
  .discipline-ledger__intro > p:not(.discipline-ledger__family) {
    grid-column: 2;
  }

  .discipline-ledger__intro h3 {
    font-size: 34px;
  }

  .discipline-ledger__intro > p:not(.discipline-ledger__family) {
    margin-top: 9px;
  }

  .discipline-ledger__stats {
    grid-column: 1 / -1;
    margin-top: 21px;
  }

  .discipline-ledger__content {
    min-height: 0;
    max-height: none;
  }

  .discipline-ledger__bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
    min-height: 74px;
    padding-inline: 18px;
  }

  .discipline-ledger__bar span {
    text-align: left;
  }

  .discipline-groups {
    max-height: 660px;
    padding: 0 18px 23px;
  }

  .unlock-row {
    grid-template-columns: 43px 54px minmax(0,1fr);
    gap: 10px;
  }

  .unlock-art {
    width: 50px;
    height: 50px;
  }

  .unlock-art img {
    width: 40px;
    height: 40px;
  }

  .atlas-route::before {
    left: 24px;
  }

  .atlas-stop {
    grid-template-columns: 56px 1fr;
    gap: 14px;
    min-height: 0;
    padding: 23px 0;
  }

  .atlas-stop:hover {
    padding-left: 7px;
  }

  .atlas-stop__mark {
    width: 50px;
    height: 50px;
  }

  .atlas-stop > p {
    grid-column: 2;
  }

  .shared-world-proof {
    grid-template-columns: 1fr;
    gap: 21px;
  }

  .shared-world-proof > p {
    padding: 20px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .boss-registry__tabs {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .boss-tab {
    flex: 0 0 225px;
    min-height: 84px;
    border-bottom: 0;
  }

  .boss-panel {
    grid-template-columns: 1fr;
    gap: 34px;
    min-height: 0;
    padding: 40px 22px 25px;
  }

  .boss-panel__loot {
    grid-template-columns: repeat(2,1fr);
    gap: 8px;
  }

  .boss-panel__loot figure {
    min-height: 148px;
  }

  .boss-panel__loot img {
    width: 84px;
    height: 84px;
  }

  .fifth-seal {
    grid-template-columns: 1fr;
    padding: 23px;
  }

  .fifth-seal__rewards {
    grid-column: auto;
    justify-content: flex-start;
  }

  .ledger-live {
    display: none;
  }

  table.hiscores th,
  table.hiscores td {
    padding-right: 12px;
    padding-left: 12px;
  }

  table.hiscores th:nth-child(4),
  table.hiscores td:nth-child(4) {
    display: none;
  }

  .profile-search {
    flex-direction: column;
  }

  .profile-search .action {
    width: 100%;
  }

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

  .start-journey {
    padding: 80px 0;
  }

  .first-route li {
    grid-template-columns: 48px 1fr;
    gap: 16px;
  }

  .first-route li > span {
    width: 48px;
    height: 48px;
  }

  .first-route::before {
    left: 23px;
  }

  .footer__main,
  .footer__meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer__main nav {
    gap: 20px;
  }
}

@media (max-width: 420px) {
  .hero__facts span {
    letter-spacing: 0.08em;
  }

  .place-tag {
    display: none;
  }

  .world-lens__caption a {
    font-size: 0;
  }

  .world-lens__caption a svg {
    width: 22px;
    height: 22px;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ============================================================
   site3 — hero world-lens cinematic polish + sub-page nav
   The hero screenshot read a little flat; this grades it, gives
   it a slow Ken Burns drift and a warmer frame/vignette so the
   "actual game view" lands with more depth. Additive only.
   ============================================================ */
.world-lens {
  border-color: rgba(220, 169, 79, 0.30);
  box-shadow: var(--shadow-deep), 0 0 0 1px rgba(220, 169, 79, 0.12), 0 34px 90px rgba(0, 0, 0, 0.55);
}
.world-lens__view::before {
  /* warm rim glow around the framed scene */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 214, 124, 0.14);
}
.world-lens__view > img {
  filter: contrast(1.09) saturate(1.14) brightness(1.03);
  transform-origin: 56% 58%;
  animation: hero-lens-drift 30s ease-in-out infinite alternate;
}
.world-lens:hover .world-lens__view > img {
  filter: contrast(1.12) saturate(1.18) brightness(1.04);
}
@keyframes hero-lens-drift {
  from { transform: scale(1.045); }
  to   { transform: scale(1.12) translate(-1.4%, -1.2%); }
}
@media (prefers-reduced-motion: reduce) {
  .world-lens__view > img { animation: none; transform: scale(1.05); }
}
.world-lens__shade {
  background:
    radial-gradient(115% 85% at 52% 40%, rgba(255, 214, 124, 0.13), transparent 48%),
    linear-gradient(180deg, rgba(6, 11, 8, 0.24) 0%, transparent 30%, transparent 56%, rgba(4, 8, 6, 0.55) 100%);
  box-shadow: inset 0 0 130px rgba(4, 8, 5, 0.6), inset 0 0 46px rgba(0, 0, 0, 0.42);
}
/* full-hiscores CTA that sits under the on-page preview board */
.registry-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.registry-cta__note { color: var(--quiet); font-size: 0.86rem; }
