:root {
  --kb-bg: #05070a;
  --kb-ink: #f7f1e4;
  --kb-muted: #a7a39a;
  --kb-soft: #d7c8a5;
  --kb-gold: #e6c47a;
  --kb-gold-deep: #9a6d28;
  --kb-teal: #74d5c8;
  --kb-line: rgba(235, 207, 142, 0.18);
  --kb-line-soft: rgba(255, 255, 255, 0.08);
  --kb-panel: rgba(9, 10, 12, 0.74);
  --kb-panel-strong: rgba(12, 13, 15, 0.88);
  --kb-radius: 8px;
}

body {
  min-height: 100vh;
  background: var(--kb-bg);
  isolation: isolate;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image: url("/assets/backgrounds/knowledge/shore_tritons.webp?v=0.12.26");
  background-size: cover;
  background-position: center;
  filter: saturate(0.82) contrast(1.05);
  transform: scale(1.012);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(2, 3, 5, 0.76), rgba(4, 5, 7, 0.86) 48%, rgba(2, 2, 3, 0.94)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.18) 46%, rgba(0, 0, 0, 0.62));
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1800px, calc(100vw - 80px));
  padding-top: 30px;
}

.top {
  margin-bottom: 18px;
}

.mark,
.nav,
.content,
.hero,
.card,
.rate-card,
.odds-card,
.craft-example,
.sphere-lead,
.feature-lead,
.feature-card,
.selected-item {
  backdrop-filter: blur(18px);
  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.brand b,
h1,
.section h2 {
  letter-spacing: 0;
}

.brand span,
.nav-title,
.subhead,
.back,
.seg button,
.kb-mini-label,
.kb-table th {
  letter-spacing: 0.11em;
}

.back {
  border-color: rgba(230, 196, 122, 0.28);
  background: rgba(4, 6, 8, 0.58);
}

.back:hover {
  border-color: rgba(230, 196, 122, 0.62);
  background: rgba(230, 196, 122, 0.11);
}

.hero {
  position: relative;
  overflow: hidden;
  border-color: rgba(230, 196, 122, 0.22);
  background:
    linear-gradient(135deg, rgba(10, 12, 13, 0.76), rgba(9, 10, 12, 0.54)),
    linear-gradient(90deg, rgba(230, 196, 122, 0.1), transparent 38%, rgba(116, 213, 200, 0.08));
  padding: 34px 40px;
}

.hero::before {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(230, 196, 122, 0.52), transparent);
}

.lead {
  max-width: 940px;
  color: #c8c1b2;
}

.grid {
  grid-template-columns: 238px minmax(0, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.nav,
.content {
  border-color: rgba(230, 196, 122, 0.18);
  background: var(--kb-panel);
}

.nav button {
  height: 42px;
  border-radius: var(--kb-radius);
  color: #cfc7b6;
}

.nav button.active,
.nav button:hover {
  border-color: rgba(230, 196, 122, 0.44);
  background:
    linear-gradient(90deg, rgba(230, 196, 122, 0.16), rgba(116, 213, 200, 0.055)),
    rgba(0, 0, 0, 0.18);
}

.content {
  min-height: 650px;
  padding: 30px;
}

.card,
.rate-card,
.odds-card,
.craft-example,
.sphere-lead,
.feature-lead,
.feature-card,
.selected-item {
  border-color: var(--kb-line-soft);
  background: rgba(7, 8, 10, 0.54);
  border-radius: var(--kb-radius);
}

.card b,
.rate-title,
.subhead,
.section h2 {
  color: var(--kb-gold);
}

.stub {
  border-style: solid;
  border-color: rgba(230, 196, 122, 0.22);
  background: rgba(5, 6, 8, 0.42);
}

.knowledge-item-shell {
  display: grid;
  gap: 16px;
}

.kb-search-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--kb-line);
  border-radius: var(--kb-radius);
  background: rgba(2, 4, 6, 0.42);
}

.kb-search {
  width: 100%;
  height: 44px;
  border: 1px solid rgba(230, 196, 122, 0.24);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.42);
  color: var(--kb-ink);
  padding: 0 14px;
  font: 900 13px Manrope, system-ui, sans-serif;
  outline: 0;
}

.kb-search:focus {
  border-color: rgba(230, 196, 122, 0.68);
  box-shadow: 0 0 0 2px rgba(230, 196, 122, 0.1);
}

.kb-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}

.kb-category-tabs button,
.kb-enchant-tabs button {
  min-height: 34px;
  border: 1px solid rgba(230, 196, 122, 0.22);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.28);
  color: #cfc7b6;
  padding: 0 10px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.kb-category-tabs button.active,
.kb-category-tabs button:hover,
.kb-enchant-tabs button.active,
.kb-enchant-tabs button:hover {
  border-color: rgba(230, 196, 122, 0.58);
  background: rgba(230, 196, 122, 0.13);
  color: var(--kb-gold);
}

.knowledge-item-layout {
  display: grid;
  grid-template-columns: minmax(320px, 410px) minmax(0, 1fr);
  gap: 16px;
}

.kb-item-list,
.kb-detail {
  border: 1px solid var(--kb-line);
  border-radius: var(--kb-radius);
  background: rgba(3, 4, 6, 0.5);
}

.kb-item-list {
  max-height: 760px;
  overflow: auto;
  padding: 8px;
  scrollbar-color: rgba(230, 196, 122, 0.42) rgba(0, 0, 0, 0.24);
}

.kb-item-row {
  width: 100%;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 62px;
  margin: 0 0 6px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.028);
  color: var(--kb-ink);
  padding: 8px;
  text-align: left;
  cursor: pointer;
}

.kb-item-row:hover,
.kb-item-row.active {
  border-color: rgba(230, 196, 122, 0.42);
  background: linear-gradient(90deg, rgba(230, 196, 122, 0.11), rgba(116, 213, 200, 0.04));
}

.kb-item-icon,
.kb-detail-icon,
.kb-ing-icon {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(230, 196, 122, 0.28);
  border-radius: 6px;
  background: #06070a;
}

.kb-item-icon,
.kb-item-icon img {
  width: 46px;
  height: 46px;
}

.kb-detail-icon,
.kb-detail-icon img {
  width: 82px;
  height: 82px;
}

.kb-item-icon img,
.kb-detail-icon img,
.kb-ing-icon img {
  display: block;
  object-fit: cover;
}

.kb-item-name {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #f4ead0;
  font-size: 13px;
  font-weight: 900;
}

.kb-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 5px;
  color: var(--kb-muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.kb-pill,
.kb-rank {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  padding: 0 7px;
}

.kb-rank-1 { color: #b8b8b8; border-color: rgba(184, 184, 184, 0.35); }
.kb-rank-2 { color: #84d08b; border-color: rgba(132, 208, 139, 0.36); }
.kb-rank-3 { color: #83b4ff; border-color: rgba(131, 180, 255, 0.36); }
.kb-rank-4 { color: #f07968; border-color: rgba(240, 121, 104, 0.38); }
.kb-rank-5 { color: #c69cff; border-color: rgba(198, 156, 255, 0.4); }
.kb-rank-special { color: #f2d58a; border-color: rgba(242, 213, 138, 0.42); }

.kb-detail {
  min-height: 760px;
  padding: 18px;
}

.kb-detail-hero {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(230, 196, 122, 0.14);
}

.kb-detail-name {
  margin: 0;
  color: var(--kb-ink);
  font-family: Cinzel, serif;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.05;
}

.kb-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.kb-mini-label,
.kb-section-title {
  color: var(--kb-gold);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.kb-section-title {
  margin: 18px 0 10px;
}

.kb-enchant-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.kb-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
}

.kb-stat {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.22);
  padding: 8px 10px;
}

.kb-stat span {
  color: #cfc8b8;
  font-size: 12px;
  font-weight: 800;
}

.kb-stat b {
  color: #ffe39b;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}

.kb-table-wrap {
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.2);
}

.kb-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.kb-table th,
.kb-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
  padding: 9px 10px;
  text-align: left;
  font-size: 12px;
}

.kb-table th {
  color: var(--kb-gold);
  font-size: 9px;
  text-transform: uppercase;
  background: rgba(230, 196, 122, 0.055);
}

.kb-table td {
  color: #d5cebf;
}

.kb-table td:last-child,
.kb-table th:last-child {
  text-align: right;
}

.kb-blessed {
  color: #ffdf7b;
}

.kb-recipe-list {
  display: grid;
  gap: 10px;
}

.kb-recipe {
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.2);
  padding: 12px;
}

.kb-recipe-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--kb-gold);
  font-weight: 900;
}

.kb-ing-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.kb-ing {
  display: grid;
  grid-template-columns: 34px minmax(110px, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 180px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.028);
  padding: 6px;
}

.kb-ing-icon,
.kb-ing-icon img {
  width: 34px;
  height: 34px;
}

.kb-ing b {
  display: block;
  color: #f1e3c2;
  font-size: 11px;
  line-height: 1.2;
}

.kb-ing span {
  display: block;
  margin-top: 2px;
  color: var(--kb-muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
}

.kb-empty {
  border: 1px solid rgba(230, 196, 122, 0.16);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.18);
  color: var(--kb-muted);
  padding: 14px;
  font-size: 13px;
  line-height: 1.55;
}

.kb-rate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 9px;
}

.kb-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--kb-line);
}

.kb-section-head h2,
.kb-section-head p {
  margin-bottom: 0;
}

.kb-view-switch {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(230, 196, 122, 0.2);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.3);
}

.kb-view-switch button,
.kb-compare-seed {
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #cfc7b6;
  padding: 0 12px;
  font: 900 10px Manrope, system-ui, sans-serif;
  text-transform: uppercase;
  cursor: pointer;
}

.kb-view-switch button.active,
.kb-view-switch button:hover,
.kb-compare-seed:hover {
  border-color: rgba(230, 196, 122, 0.44);
  background: rgba(230, 196, 122, 0.12);
  color: var(--kb-gold);
}

.kb-compare-seed {
  margin-top: 12px;
  border-color: rgba(230, 196, 122, 0.28);
  background: rgba(230, 196, 122, 0.065);
}

.kb-compare-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.kb-compare-picker {
  min-width: 0;
  padding: 16px;
  border-top: 1px solid rgba(230, 196, 122, 0.3);
  border-bottom: 1px solid var(--kb-line-soft);
  background: rgba(0, 0, 0, 0.16);
}

.kb-compare-picker > .kb-search {
  margin-top: 9px;
}

.kb-compare-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  max-height: 385px;
  margin-top: 9px;
  overflow: auto;
}

.kb-compare-results button {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--kb-ink);
  padding: 7px;
  text-align: left;
  cursor: pointer;
}

.kb-compare-results button:hover {
  border-color: rgba(230, 196, 122, 0.42);
  background: rgba(230, 196, 122, 0.075);
}

.kb-compare-results b,
.kb-compare-results small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kb-compare-results b {
  color: #f1e4c5;
  font-size: 12px;
}

.kb-compare-results small {
  margin-top: 3px;
  color: var(--kb-muted);
  font-size: 10px;
}

.kb-compare-selected {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 32px;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  padding: 10px 0;
}

.kb-compare-selected b,
.kb-compare-selected span {
  display: block;
}

.kb-compare-selected b {
  color: #f1e4c5;
}

.kb-compare-selected span {
  margin-top: 3px;
  color: var(--kb-muted);
  font-size: 11px;
}

.kb-compare-selected button {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(214, 111, 94, 0.32);
  border-radius: 6px;
  background: rgba(214, 111, 94, 0.08);
  color: #ef9b8c;
  font-size: 20px;
  cursor: pointer;
}

.kb-compare-level {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--kb-muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.kb-compare-level select {
  width: 96px;
  height: 36px;
  border: 1px solid rgba(230, 196, 122, 0.28);
  border-radius: 6px;
  background: #090a0d;
  color: var(--kb-gold);
  padding: 0 10px;
  font: 900 12px "JetBrains Mono", monospace;
}

.kb-compare-hint {
  margin-top: 18px;
  border-top: 1px solid var(--kb-line);
  padding: 18px 2px 2px;
  color: var(--kb-muted);
  line-height: 1.6;
}

.kb-compare-table-wrap {
  margin-top: 18px;
  overflow: auto;
  border: 1px solid var(--kb-line);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.22);
}

.kb-compare-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.kb-compare-table th,
.kb-compare-table td {
  border-bottom: 1px solid var(--kb-line-soft);
  padding: 12px 14px;
  text-align: right;
}

.kb-compare-table th {
  color: var(--kb-gold);
  font-size: 10px;
  text-transform: uppercase;
}

.kb-compare-table td {
  color: #d7d0c2;
  font: 800 12px "JetBrains Mono", monospace;
}

.kb-compare-table th:first-child,
.kb-compare-table td:first-child {
  text-align: left;
}

.kb-compare-table td:first-child {
  font-family: Manrope, system-ui, sans-serif;
}

.kb-compare-table .is-better,
.kb-compare-table .is-positive {
  color: #82d191;
}

.kb-compare-table .is-negative {
  color: #e18a79;
}

.kb-result-count {
  flex: 0 0 auto;
  color: var(--kb-gold);
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
}

.kb-craft-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.kb-craft-row {
  display: grid;
  grid-template-columns: minmax(250px, 0.8fr) 34px minmax(360px, 1.2fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
  border-bottom: 1px solid var(--kb-line-soft);
  background: rgba(0, 0, 0, 0.14);
  padding: 13px 14px;
}

.kb-craft-row:first-child {
  border-top: 1px solid var(--kb-line);
}

.kb-craft-result {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.kb-craft-result .kb-detail-icon,
.kb-craft-result .kb-detail-icon img {
  width: 64px;
  height: 64px;
}

.kb-craft-result b,
.kb-craft-result span {
  display: block;
}

.kb-craft-result b {
  color: #f1e4c5;
}

.kb-craft-result > div > span {
  margin-top: 6px;
  color: var(--kb-muted);
  font-size: 11px;
}

.kb-craft-arrow {
  color: var(--kb-gold);
  font-family: "JetBrains Mono", monospace;
  font-size: 22px;
  text-align: center;
}

.kb-craft-ingredients {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.kb-craft-ingredient {
  display: grid;
  grid-template-columns: 34px minmax(80px, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 145px;
  padding: 5px;
}

.kb-craft-ingredient b,
.kb-craft-ingredient small {
  display: block;
}

.kb-craft-ingredient b {
  color: #dcd3c1;
  font-size: 11px;
}

.kb-craft-ingredient small {
  margin-top: 2px;
  color: var(--kb-gold);
  font-family: "JetBrains Mono", monospace;
}

.enchant-charms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.enchant-charms .charm-row {
  background: rgba(0, 0, 0, 0.2);
}

.kb-quest-chain-list {
  display: grid;
  gap: 18px;
}

.kb-quest-chain {
  overflow: hidden;
  border-top: 1px solid rgba(230, 196, 122, 0.32);
  border-bottom: 1px solid rgba(230, 196, 122, 0.2);
  background: rgba(0, 0, 0, 0.16);
}

.kb-quest-chain summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 106px;
  padding: 20px 22px;
  background:
    linear-gradient(90deg, rgba(230, 196, 122, 0.1), transparent 52%),
    rgba(255, 255, 255, 0.025);
  cursor: pointer;
  list-style: none;
}

.kb-quest-chain summary::-webkit-details-marker {
  display: none;
}

.kb-quest-chain summary h3,
.kb-guild-pool-head h3,
.kb-guild-levels h3,
.kb-quest-stage-head h4 {
  margin: 0;
  color: #f4ead1;
  font-family: Cinzel, serif;
  font-weight: 500;
  letter-spacing: 0;
}

.kb-quest-chain summary h3 {
  margin-top: 4px;
  font-size: 26px;
}

.kb-quest-chain summary p {
  margin: 6px 0 0;
  color: var(--kb-muted);
  font-size: 12px;
}

.kb-quest-chain summary > strong,
.kb-guild-pool-head > strong {
  flex: 0 0 auto;
  color: var(--kb-gold);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.kb-quest-stage-list {
  padding: 0 22px 8px;
}

.kb-quest-stage {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--kb-line-soft);
}

.kb-quest-stage-mark {
  position: relative;
  display: grid;
  align-content: start;
  justify-items: center;
  min-height: 54px;
  border-right: 1px solid rgba(230, 196, 122, 0.2);
  color: var(--kb-muted);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.kb-quest-stage-mark b {
  margin-top: 4px;
  color: var(--kb-gold);
  font: 700 22px Cinzel, serif;
}

.kb-quest-stage-body {
  min-width: 0;
}

.kb-quest-stage-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.kb-quest-stage-head h4 {
  font-size: 20px;
}

.kb-quest-stage-head div > span {
  display: block;
  margin-top: 4px;
  color: var(--kb-muted);
  font-size: 11px;
}

.kb-quest-stage-head em {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 6px;
  color: var(--kb-muted);
  padding: 5px 8px;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.kb-quest-stage-head em.available {
  border-color: rgba(116, 213, 200, 0.32);
  color: var(--kb-teal);
}

.kb-quest-route {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.kb-quest-route > div {
  min-width: 0;
  border-left: 2px solid rgba(230, 196, 122, 0.32);
  background: rgba(255, 255, 255, 0.025);
  padding: 9px 11px;
}

.kb-quest-route span,
.kb-quest-route b,
.kb-quest-route small {
  display: block;
}

.kb-quest-route span {
  color: var(--kb-muted);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.kb-quest-route b {
  overflow: hidden;
  margin-top: 4px;
  color: #efe2c5;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kb-quest-route small {
  margin-top: 3px;
  color: var(--kb-gold);
  font-size: 10px;
}

.kb-quest-stage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(180px, 0.5fr);
  gap: 20px;
  margin-top: 17px;
}

.kb-quest-objectives {
  display: grid;
  gap: 7px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.kb-quest-objectives li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0 0 7px;
  color: #d7d0c2;
  font-size: 12px;
}

.kb-quest-objectives b {
  flex: 0 0 auto;
  color: #ffe39b;
  font-family: "JetBrains Mono", monospace;
}

.kb-quest-rewards {
  display: grid;
  gap: 7px;
  margin-top: 8px;
}

.kb-quest-rewards span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  border: 1px solid rgba(116, 213, 200, 0.18);
  background: rgba(116, 213, 200, 0.045);
  color: #d5cec0;
  padding: 7px 9px;
  font-size: 11px;
}

.kb-quest-rewards b {
  color: var(--kb-teal);
  font-family: "JetBrains Mono", monospace;
}

.kb-guild-alliance-guide {
  margin-top: 34px;
  border-top: 1px solid rgba(230, 196, 122, 0.24);
  padding-top: 30px;
}

.kb-guild-alliance-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.kb-guild-alliance-head h3 {
  margin: 5px 0 0;
  color: var(--kb-gold);
  font: 700 30px Cinzel, serif;
}

.kb-guild-alliance-head p {
  max-width: 820px;
  margin: 8px 0 0;
  color: var(--kb-muted);
  line-height: 1.65;
}

.kb-guild-alliance-head > strong {
  flex: 0 0 auto;
  border: 1px solid rgba(116, 213, 200, 0.28);
  border-radius: 5px;
  background: rgba(116, 213, 200, 0.06);
  color: var(--kb-teal);
  padding: 8px 11px;
  font: 800 11px "JetBrains Mono", monospace;
  text-transform: uppercase;
}

.kb-guild-alliance-guide .kb-guild-levels {
  margin-top: 24px;
}

.kb-guild-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--kb-line);
  border-bottom: 1px solid var(--kb-line);
}

.kb-guild-overview article {
  min-width: 0;
  padding: 18px;
}

.kb-guild-overview article + article {
  border-left: 1px solid var(--kb-line-soft);
}

.kb-guild-overview article > b {
  display: block;
  margin-top: 6px;
  color: #f1e4c7;
  font-size: 15px;
}

.kb-guild-overview p {
  margin: 7px 0 0;
  color: var(--kb-muted);
  font-size: 12px;
  line-height: 1.55;
}

.kb-guild-overview p strong {
  color: var(--kb-teal);
}

.kb-guild-rule {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 16px;
  margin-top: 14px;
  border-left: 2px solid rgba(230, 196, 122, 0.4);
  background: rgba(230, 196, 122, 0.055);
  padding: 12px 14px;
}

.kb-guild-rule b {
  color: var(--kb-gold);
}

.kb-guild-rule span {
  color: #cfc7b7;
  font-size: 12px;
  line-height: 1.55;
}

.kb-guild-pools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.kb-guild-quest-pool {
  min-width: 0;
  border-top: 1px solid rgba(230, 196, 122, 0.3);
}

.kb-guild-pool-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 2px 12px;
}

.kb-guild-pool-head h3 {
  margin-top: 4px;
  font-size: 19px;
}

.kb-guild-quest-list {
  display: grid;
  max-height: 430px;
  overflow: auto;
  scrollbar-color: rgba(230, 196, 122, 0.42) rgba(0, 0, 0, 0.24);
}

.kb-guild-quest-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border-top: 1px solid var(--kb-line-soft);
  padding: 11px 3px;
}

.kb-guild-quest-list b,
.kb-guild-quest-list span {
  display: block;
}

.kb-guild-quest-list b {
  color: #eee1c4;
  font-size: 12px;
}

.kb-guild-quest-list span {
  margin-top: 3px;
  color: var(--kb-muted);
  font-size: 11px;
  line-height: 1.45;
}

.kb-guild-quest-list article > strong {
  color: var(--kb-teal);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  white-space: nowrap;
}

.kb-guild-levels {
  margin-top: 28px;
}

.kb-guild-levels .kb-section-head {
  align-items: flex-start;
  margin-bottom: 0;
}

.kb-guild-levels h3 {
  color: var(--kb-gold);
  font-size: 22px;
}

.kb-guild-levels p {
  margin-top: 5px;
}

.kb-guild-level-table {
  border-bottom: 1px solid var(--kb-line);
}

.kb-guild-level-row {
  display: grid;
  grid-template-columns: 70px 180px 150px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 56px;
  border-top: 1px solid var(--kb-line-soft);
  padding: 9px 10px;
}

.kb-guild-status {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  min-height: 25px;
  padding: 3px 9px;
  border: 1px solid currentColor;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.035);
  font-family: Manrope, sans-serif !important;
  font-size: 10px !important;
  font-weight: 900;
  line-height: 1.2;
}

.kb-guild-status-1 { color: #aab1bc !important; }
.kb-guild-status-2 { color: #c7a56a !important; }
.kb-guild-status-3 { color: #75c497 !important; }
.kb-guild-status-4 { color: #69bdc9 !important; }
.kb-guild-status-5 { color: #78a9e8 !important; }
.kb-guild-status-6 { color: #afa0e4 !important; }
.kb-guild-status-7 { color: #dfa05a !important; }
.kb-guild-status-8 { color: #e17d75 !important; }
.kb-guild-status-9 { color: #edc76c !important; background: rgba(237, 199, 108, 0.07); }
.kb-guild-status-10 { color: #fff0a3 !important; background: rgba(255, 226, 125, 0.1); box-shadow: 0 0 14px rgba(255, 226, 125, 0.14); }

.kb-guild-level-row.head {
  min-height: 38px;
  border-top: 0;
  color: var(--kb-muted);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.kb-guild-level-row > b {
  color: var(--kb-gold);
  font: 700 22px Cinzel, serif;
}

.kb-guild-level-row > span {
  color: #d1c9b9;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
}

.kb-guild-level-row > div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.kb-guild-level-row em {
  border: 1px solid rgba(116, 213, 200, 0.16);
  border-radius: 5px;
  background: rgba(116, 213, 200, 0.04);
  color: #cfe8df;
  padding: 4px 6px;
  font-size: 10px;
  font-style: normal;
}

.kb-monster-total {
  flex: 0 0 auto;
  color: var(--kb-gold);
  font: 900 11px "JetBrains Mono", monospace;
  text-transform: uppercase;
}

.kb-monster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.kb-monster-card {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  min-height: 220px;
  overflow: hidden;
  border: 1px solid var(--kb-line);
  border-radius: var(--kb-radius);
  background:
    linear-gradient(135deg, rgba(230, 196, 122, 0.055), transparent 42%),
    rgba(4, 5, 7, 0.7);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.26);
}

.kb-monster-portrait {
  position: relative;
  min-height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-right: 1px solid var(--kb-line);
  background: linear-gradient(145deg, rgba(230, 196, 122, 0.13), rgba(0, 0, 0, 0.56));
  color: rgba(230, 196, 122, 0.42);
  font: 500 56px Cinzel, serif;
}

.kb-monster-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(2, 3, 4, 0.76));
  pointer-events: none;
}

.kb-monster-portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.kb-monster-body {
  min-width: 0;
  padding: 16px;
}

.kb-monster-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.kb-monster-heading h3 {
  margin: 7px 0 0;
  color: var(--kb-ink);
  font-family: Cinzel, serif;
  font-size: 20px;
  font-weight: 500;
}

.kb-monster-type {
  display: inline-flex;
  color: var(--kb-gold);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.kb-monster-type-event {
  color: #d9a8cc;
}

.kb-monster-type-boss {
  color: #ef8f77;
}

.kb-monster-respawn {
  flex: 0 0 auto;
  text-align: right;
}

.kb-monster-respawn span,
.kb-monster-stats span {
  display: block;
  color: var(--kb-muted);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.kb-monster-respawn b {
  display: block;
  margin-top: 5px;
  color: #f2d58a;
  font: 900 11px "JetBrains Mono", monospace;
}

.kb-monster-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 12px;
  margin-top: 15px;
  padding: 11px 0;
  border-top: 1px solid var(--kb-line-soft);
  border-bottom: 1px solid var(--kb-line-soft);
}

.kb-monster-stats b {
  display: block;
  margin-top: 3px;
  color: #e7dfcf;
  font: 900 12px "JetBrains Mono", monospace;
}

.kb-monster-spawns {
  margin-top: 13px;
}

.kb-monster-spawns > strong {
  display: block;
  color: var(--kb-gold);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.kb-monster-spawns > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.kb-monster-location {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 5px 8px;
  border-left: 2px solid rgba(230, 196, 122, 0.55);
  background: rgba(255, 255, 255, 0.035);
  color: #d8d0c0;
  font-size: 11px;
  font-weight: 800;
}

.kb-monster-location small {
  color: var(--kb-muted);
  font: 700 9px "JetBrains Mono", monospace;
  text-transform: uppercase;
}

.kb-progression-block {
  margin-top: 18px;
  border-top: 1px solid var(--kb-line);
  background: rgba(8, 10, 12, 0.46);
}

.kb-progression-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 18px 15px;
  border-bottom: 1px solid var(--kb-line-soft);
}

.kb-progression-title span {
  color: var(--kb-gold);
  font: 900 11px "JetBrains Mono", monospace;
  text-transform: uppercase;
}

.kb-progression-title strong {
  color: #eee5d3;
  font-size: 14px;
  text-align: right;
}

.kb-power-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kb-power-groups article {
  min-width: 0;
  padding: 18px;
}

.kb-power-groups article + article {
  border-left: 1px solid var(--kb-line-soft);
}

.kb-power-groups h3,
.kb-attribute-card h3,
.kb-class-card h3 {
  margin: 0;
  color: #f3e7ca;
  font-family: "Cormorant Garamond", serif;
  font-size: 21px;
  letter-spacing: 0;
}

.kb-power-groups article > p {
  min-height: 42px;
  margin: 6px 0 13px;
  color: var(--kb-muted);
  font-size: 12px;
  line-height: 1.55;
}

.kb-power-scale {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 6px;
}

.kb-power-scale + .kb-power-scale {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--kb-line-soft);
}

.kb-power-scale-label {
  margin: 14px 0 8px;
  color: #d7c28d;
  font: 800 9px "JetBrains Mono", monospace;
  text-transform: uppercase;
}

.kb-power-scale > div,
.kb-power-fixed,
.kb-level-power > div,
.kb-base-facts > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 38px;
  padding: 8px 9px;
  border-left: 2px solid rgba(230, 196, 122, 0.42);
  background: rgba(255, 255, 255, 0.035);
}

.kb-power-scale span,
.kb-power-fixed span,
.kb-level-power span,
.kb-base-facts span {
  color: #bdb4a3;
  font-size: 11px;
  font-weight: 800;
}

.kb-power-scale b,
.kb-power-fixed b,
.kb-level-power b,
.kb-base-facts b {
  color: #f2d488;
  font: 900 12px "JetBrains Mono", monospace;
  white-space: nowrap;
}

.kb-power-fixed {
  margin-top: 10px;
  border-left-color: #a77ee8;
}

.kb-level-power,
.kb-base-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 0 18px 18px;
}

.kb-level-power > div {
  display: grid;
  align-content: center;
}

.kb-base-facts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: 18px;
}

.kb-attribute-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--kb-line-soft);
}

.kb-attribute-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
  padding: 18px;
}

.kb-attribute-card + .kb-attribute-card {
  border-left: 1px solid var(--kb-line-soft);
}

.kb-attribute-card img {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(230, 196, 122, 0.3);
  object-fit: cover;
  background: rgba(0, 0, 0, 0.35);
}

.kb-attribute-card p {
  margin: 7px 0 0;
  color: #c8bfaf;
  font-size: 12px;
  line-height: 1.45;
}

.kb-attribute-card p b {
  color: #f1d07b;
  font-family: "JetBrains Mono", monospace;
}

.kb-attribute-str {
  box-shadow: inset 0 2px 0 rgba(202, 78, 68, 0.52);
}

.kb-attribute-agi {
  box-shadow: inset 0 2px 0 rgba(92, 166, 104, 0.52);
}

.kb-attribute-int {
  box-shadow: inset 0 2px 0 rgba(75, 134, 197, 0.52);
}

.kb-class-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.kb-class-card {
  min-width: 0;
  padding: 18px;
  border-right: 1px solid var(--kb-line-soft);
  border-bottom: 1px solid var(--kb-line-soft);
}

.kb-class-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.kb-class-head img {
  width: 54px;
  height: 54px;
  border: 1px solid rgba(230, 196, 122, 0.32);
  object-fit: cover;
  background: rgba(0, 0, 0, 0.38);
}

.kb-class-head span {
  color: var(--kb-muted);
  font: 800 9px "JetBrains Mono", monospace;
  text-transform: uppercase;
}

.kb-class-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 14px;
}

.kb-class-stats > div {
  display: grid;
  gap: 3px;
  padding: 9px;
  background: rgba(255, 255, 255, 0.035);
}

.kb-class-stats span,
.kb-class-stats small {
  color: var(--kb-muted);
  font-size: 9px;
}

.kb-class-stat-label {
  display: flex;
  align-items: center;
  gap: 5px;
}

.kb-class-stat-label img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(232, 198, 118, 0.24));
}

.kb-class-stats b {
  color: #f2d488;
  font: 900 16px "JetBrains Mono", monospace;
}

.kb-class-primary {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--kb-line-soft);
}

.kb-class-primary > span {
  color: var(--kb-muted);
  font: 800 9px "JetBrains Mono", monospace;
  text-transform: uppercase;
}

.kb-class-primary > div,
.kb-class-primary-item {
  display: flex;
  align-items: center;
}

.kb-class-primary > div {
  flex-wrap: wrap;
  gap: 6px;
}

.kb-class-primary > div > i {
  color: rgba(219, 193, 127, 0.5);
  font-style: normal;
}

.kb-class-primary-item {
  gap: 5px;
  color: #ded5c5;
  font-size: 11px;
}

.kb-class-primary-item img {
  width: 17px;
  height: 17px;
  object-fit: contain;
}

.kb-class-primary-item b {
  color: #e5ca84;
}

.kb-class-primary-item small {
  color: #a9a093;
  font-size: 10px;
}

.kb-class-bonuses {
  padding-top: 2px;
}

.kb-class-bonuses p {
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr);
  align-items: start;
  gap: 6px;
  margin: 5px 0;
  color: #c9c0b0;
  font-size: 11px;
  line-height: 1.5;
}

.kb-class-bonus-icon {
  width: 17px;
  height: 17px;
  object-fit: contain;
}

.kb-class-bonuses b {
  color: #dbc17f;
}

.kb-item-list::-webkit-scrollbar,
.kb-compare-results::-webkit-scrollbar,
.kb-table-wrap::-webkit-scrollbar,
.kb-compare-table-wrap::-webkit-scrollbar,
.kb-guild-quest-list::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.kb-item-list::-webkit-scrollbar-track,
.kb-compare-results::-webkit-scrollbar-track,
.kb-table-wrap::-webkit-scrollbar-track,
.kb-compare-table-wrap::-webkit-scrollbar-track,
.kb-guild-quest-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.28);
}

.kb-item-list::-webkit-scrollbar-thumb,
.kb-compare-results::-webkit-scrollbar-thumb,
.kb-table-wrap::-webkit-scrollbar-thumb,
.kb-compare-table-wrap::-webkit-scrollbar-thumb,
.kb-guild-quest-list::-webkit-scrollbar-thumb {
  border: 2px solid rgba(0, 0, 0, 0.28);
  border-radius: 8px;
  background: rgba(230, 196, 122, 0.42);
}

.first-steps {
  display: grid;
  gap: 28px;
}

.first-steps-hero {
  position: relative;
  min-height: clamp(300px, 34vw, 470px);
  overflow: hidden;
  border: 1px solid rgba(230, 196, 122, 0.28);
  border-radius: var(--kb-radius);
  background: #090b0e;
}

.first-steps-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 5, 8, 0.93), rgba(3, 5, 8, 0.42) 56%, rgba(3, 5, 8, 0.12)),
    linear-gradient(0deg, rgba(3, 5, 8, 0.84), transparent 60%);
}

.first-steps-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.first-steps-hero-copy {
  position: relative;
  z-index: 1;
  width: min(560px, 72%);
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(24px, 4vw, 48px);
}

.first-steps-hero-copy > span,
.first-steps-heading > span {
  color: #85d49b;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.first-steps-hero-copy h2 {
  margin: 8px 0 10px;
  color: #fff7e6;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 0.98;
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.76);
}

.first-steps-hero-copy p {
  margin: 0;
  color: #e1d9ca;
  font-size: 15px;
  line-height: 1.62;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.first-steps-route {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--kb-line);
  border-bottom: 1px solid var(--kb-line);
}

.first-steps-route > div {
  min-height: 76px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
}

.first-steps-route > div + div {
  border-left: 1px solid var(--kb-line-soft);
}

.first-steps-route b {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(230, 196, 122, 0.42);
  border-radius: 50%;
  background: rgba(230, 196, 122, 0.08);
  color: var(--kb-gold);
  font: 900 11px "JetBrains Mono", monospace;
}

.first-steps-route span {
  color: #d9d2c4;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.first-steps-block,
.first-steps-systems,
.first-steps-freedom,
.first-steps-level-cap {
  display: grid;
  gap: 16px;
  padding-top: 4px;
}

.first-steps-heading h3 {
  margin: 5px 0 4px;
  color: #f4e7c7;
  font-family: Cinzel, serif;
  font-size: 26px;
  font-weight: 500;
}

.first-steps-heading p {
  margin: 0;
  color: var(--kb-muted);
  font-size: 13px;
}

.first-steps-interface {
  display: grid;
  grid-template-columns: 220px minmax(280px, 1fr) 190px;
  grid-template-areas:
    "top top top"
    "left center right"
    "bottom bottom bottom";
  border: 1px solid rgba(230, 196, 122, 0.24);
  border-radius: var(--kb-radius);
  overflow: hidden;
  background: rgba(1, 3, 5, 0.58);
}

.first-steps-interface > div {
  min-width: 0;
  padding: 14px;
}

.first-steps-interface b {
  color: #f0dfb7;
  font-size: 12px;
}

.first-steps-interface span {
  color: var(--kb-muted);
  font-size: 11px;
  line-height: 1.5;
}

.first-steps-interface-top,
.first-steps-interface-bottom {
  display: flex;
  align-items: center;
  gap: 11px;
  background: rgba(230, 196, 122, 0.045);
}

.first-steps-interface-top {
  grid-area: top;
  border-bottom: 1px solid var(--kb-line-soft);
}

.first-steps-interface-bottom {
  grid-area: bottom;
  border-top: 1px solid var(--kb-line-soft);
}

.first-steps-interface-top img,
.first-steps-interface-bottom img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.first-steps-interface-top div,
.first-steps-interface-bottom div {
  display: grid;
  gap: 2px;
}

.first-steps-interface-left {
  grid-area: left;
  border-right: 1px solid var(--kb-line-soft);
}

.first-steps-icon-list {
  display: grid;
  gap: 5px;
  margin-top: 10px;
}

.first-steps-icon-list span {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #d9d2c4;
  font-weight: 800;
}

.first-steps-icon-list img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.first-steps-interface-center {
  grid-area: center;
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.first-steps-interface-center::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(3, 5, 7, 0.94), transparent 62%);
}

.first-steps-interface-center > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.first-steps-interface-center > div {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3px;
}

.first-steps-interface-right {
  grid-area: right;
  display: grid;
  align-content: start;
  gap: 7px;
  border-left: 1px solid var(--kb-line-soft);
  background: rgba(0, 0, 0, 0.18);
}

.first-steps-chapters {
  display: grid;
  border-top: 1px solid var(--kb-line);
}

.first-steps-chapter {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(20px, 3vw, 38px);
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--kb-line);
}

.first-steps-chapter.reverse .first-steps-chapter-media {
  order: 2;
}

.first-steps-chapter-media {
  position: relative;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  border: 1px solid rgba(230, 196, 122, 0.24);
  border-radius: var(--kb-radius);
  background: #080a0d;
}

.first-steps-chapter-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.first-steps-chapter-media span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 5px 8px;
  border: 1px solid rgba(230, 196, 122, 0.42);
  border-radius: 5px;
  background: rgba(3, 5, 7, 0.82);
  color: var(--kb-gold);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.first-steps-chapter-copy {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
}

.first-steps-action-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(230, 196, 122, 0.24);
  border-radius: 7px;
  background: rgba(230, 196, 122, 0.05);
}

.first-steps-action-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.first-steps-chapter-copy h3 {
  margin: 0 0 7px;
  color: #f4e7c7;
  font-size: 18px;
}

.first-steps-chapter-copy p {
  margin: 0;
  color: var(--kb-muted);
  font-size: 13px;
  line-height: 1.68;
}

.first-steps-chapter-copy p b {
  color: #e6d6b3;
}

.first-steps-chapter-copy button {
  min-height: 32px;
  margin-top: 11px;
  padding: 0 11px;
  border: 1px solid rgba(230, 196, 122, 0.28);
  border-radius: 6px;
  background: rgba(230, 196, 122, 0.065);
  color: var(--kb-gold);
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

.first-steps-chapter-copy button:hover {
  border-color: rgba(230, 196, 122, 0.58);
  background: rgba(230, 196, 122, 0.11);
}

.first-steps-npcs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.first-steps-npcs article {
  min-width: 0;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 82px;
  padding: 9px;
  border: 1px solid var(--kb-line-soft);
  border-radius: var(--kb-radius);
  background: rgba(3, 5, 7, 0.4);
}

.first-steps-npcs img {
  width: 62px;
  height: 62px;
  display: block;
  border-radius: 6px;
  object-fit: cover;
}

.first-steps-npcs div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.first-steps-npcs b {
  color: var(--kb-gold);
  font-size: 12px;
}

.first-steps-npcs span {
  color: var(--kb-muted);
  font-size: 11px;
  line-height: 1.45;
}

.first-steps-system-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.first-steps-system-grid button {
  min-height: 78px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 11px;
  border: 1px solid var(--kb-line-soft);
  border-radius: var(--kb-radius);
  background: rgba(3, 5, 7, 0.42);
  color: var(--kb-ink);
  text-align: left;
  cursor: pointer;
}

.first-steps-system-grid button:hover {
  border-color: rgba(230, 196, 122, 0.42);
  background: rgba(230, 196, 122, 0.065);
}

.first-steps-system-grid img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.first-steps-system-grid span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.first-steps-system-grid b {
  color: var(--kb-gold);
  font-size: 12px;
}

.first-steps-system-grid small {
  color: var(--kb-muted);
  font-size: 10px;
  line-height: 1.4;
}

.first-steps-freedom {
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--kb-line);
}

.first-steps-freedom-intro {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(320px, 1.28fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: end;
}

.first-steps-freedom-lead {
  display: grid;
  gap: 10px;
  padding-left: 18px;
  border-left: 2px solid rgba(126, 205, 148, 0.58);
}

.first-steps-freedom-lead p {
  margin: 0;
  color: var(--kb-muted);
  font-size: 13px;
  line-height: 1.68;
}

.first-steps-freedom-lead strong {
  color: #e9ddc5;
  font-size: 13px;
  line-height: 1.55;
}

.first-steps-path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.first-steps-path {
  --path-accent: #d3b56f;
  min-width: 0;
  min-height: 190px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: 13px 12px;
  align-content: start;
  padding: 15px;
  border: 1px solid var(--kb-line-soft);
  border-top: 2px solid var(--path-accent);
  border-radius: var(--kb-radius);
  background: rgba(3, 5, 7, 0.43);
}

.first-steps-path:nth-child(2) { --path-accent: #79bf85; }
.first-steps-path:nth-child(3) { --path-accent: #d99065; }
.first-steps-path:nth-child(4) { --path-accent: #83a7c9; }
.first-steps-path:nth-child(5) { --path-accent: #c96f67; }
.first-steps-path:nth-child(6) { --path-accent: #b48acb; }
.first-steps-path:nth-child(7) { --path-accent: #6fb6a5; }

.first-steps-path.wide {
  min-height: 0;
  grid-column: 1 / -1;
}

.first-steps-path-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--path-accent) 42%, transparent);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
}

.first-steps-path-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.first-steps-path > div:nth-child(2) {
  min-width: 0;
  align-self: center;
}

.first-steps-path span {
  display: block;
  margin-bottom: 3px;
  color: var(--path-accent);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.first-steps-path h4 {
  margin: 0;
  color: #f1e5cb;
  font-size: 15px;
  line-height: 1.25;
}

.first-steps-path p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--kb-muted);
  font-size: 11px;
  line-height: 1.62;
}

.first-steps-freedom-note {
  display: grid;
  grid-template-columns: minmax(190px, 0.6fr) minmax(320px, 1.4fr);
  gap: 22px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid rgba(126, 205, 148, 0.26);
  border-radius: var(--kb-radius);
  background: rgba(73, 125, 86, 0.075);
}

.first-steps-freedom-note b {
  color: #91d9a3;
  font: 500 17px Cinzel, serif;
}

.first-steps-freedom-note span {
  color: #cfc8ba;
  font-size: 12px;
  line-height: 1.6;
}

.first-steps-level-cap {
  padding-top: 24px;
  border-top: 1px solid var(--kb-line);
}

.first-steps-level-cap-head {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.first-steps-level-cap-number {
  width: 100px;
  height: 100px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(230, 196, 122, 0.38);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 196, 122, 0.13), rgba(3, 5, 7, 0.5) 68%);
  color: #f4d98f;
  font: 700 31px Cinzel, serif;
  box-shadow: 0 0 28px rgba(230, 196, 122, 0.1);
}

.first-steps-level-cap-head h3 {
  margin: 3px 0 6px;
  color: #f4e7c7;
  font: 500 27px Cinzel, serif;
}

.first-steps-level-cap-head p {
  margin: 0;
  color: var(--kb-muted);
  font-size: 13px;
  line-height: 1.65;
}

.first-steps-cycle-note {
  margin-top: 12px;
  padding: 11px 13px;
  border-left: 2px solid #74c78b;
  background: rgba(54, 136, 76, 0.07);
  color: #cbd7c9;
  font-size: 12px;
  line-height: 1.55;
}

.first-steps-chest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}

.first-steps-chest {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--kb-line-soft);
  border-radius: var(--kb-radius);
  background: rgba(3, 5, 7, 0.44);
}

.first-steps-chest-head {
  min-height: 64px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 9px;
  border-bottom: 1px solid var(--kb-line-soft);
  background: rgba(230, 196, 122, 0.045);
}

.first-steps-chest-head img {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
}

.first-steps-chest-head span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.first-steps-chest-head small {
  color: #82d397;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.first-steps-chest-head b {
  color: #f1e1ba;
  font-size: 12px;
  line-height: 1.35;
}

.first-steps-chest-rewards {
  display: grid;
  gap: 1px;
  padding: 7px;
}

.first-steps-chest-reward {
  min-height: 42px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 4px;
}

.first-steps-chest-reward img {
  width: 34px;
  height: 34px;
  border-radius: 5px;
  object-fit: cover;
}

.first-steps-chest-reward span {
  min-width: 0;
  overflow: hidden;
  color: var(--kb-muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.first-steps-chest-reward b {
  color: var(--kb-gold);
  font: 900 10px "JetBrains Mono", monospace;
}

@media (max-width: 1080px) {
  .first-steps-interface {
    grid-template-columns: 190px minmax(260px, 1fr) 170px;
  }

  .first-steps-npcs,
  .first-steps-system-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .first-steps-path.wide {
    grid-column: 1 / -1;
  }

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

  .kb-item-list {
    max-height: 380px;
  }

  .kb-craft-row {
    grid-template-columns: 1fr;
  }

  .kb-craft-arrow {
    transform: rotate(-90deg);
  }

  .kb-guild-pools {
    grid-template-columns: 1fr;
  }

  .kb-monster-grid {
    grid-template-columns: 1fr;
  }

  .kb-power-groups {
    grid-template-columns: 1fr;
  }

  .kb-power-groups article + article {
    border-top: 1px solid var(--kb-line-soft);
    border-left: 0;
  }

  .kb-power-groups article > p {
    min-height: 0;
  }

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

@media (max-width: 900px) {
  .first-steps-route {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .first-steps-route > div {
    border-bottom: 1px solid var(--kb-line-soft);
  }

  .first-steps-route > div:nth-child(odd) {
    border-left: 0;
  }

  .first-steps-route > div:last-child {
    grid-column: 1 / -1;
    border-bottom: 0;
    border-left: 0;
  }

  .first-steps-interface {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "top"
      "left"
      "center"
      "right"
      "bottom";
  }

  .first-steps-interface-left,
  .first-steps-interface-right {
    border-right: 0;
    border-left: 0;
  }

  .first-steps-interface-left {
    border-bottom: 1px solid var(--kb-line-soft);
  }

  .first-steps-interface-right {
    border-top: 1px solid var(--kb-line-soft);
  }

  .first-steps-icon-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .first-steps-chapter {
    grid-template-columns: minmax(0, 1fr);
  }

  .first-steps-chapter.reverse .first-steps-chapter-media {
    order: 0;
  }

  .first-steps-freedom-intro,
  .first-steps-freedom-note {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

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

  .nav {
    position: static;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 8px;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav-title {
    display: none;
  }

  .nav button {
    width: auto;
    flex: 0 0 auto;
    margin: 0;
    padding: 0 12px;
  }

  .content {
    min-width: 0;
  }
}

@media (max-width: 760px) {
  .first-steps {
    gap: 22px;
  }

  .first-steps-hero {
    min-height: 360px;
  }

  .first-steps-hero::after {
    background: rgba(3, 5, 8, 0.62);
  }

  .first-steps-hero-copy {
    width: 100%;
    padding: 24px;
  }

  .first-steps-hero-copy h2 {
    font-size: 42px;
  }

  .first-steps-route {
    grid-template-columns: minmax(0, 1fr);
  }

  .first-steps-route > div,
  .first-steps-route > div + div,
  .first-steps-route > div:nth-child(odd),
  .first-steps-route > div:last-child {
    grid-column: auto;
    border-right: 0;
    border-bottom: 1px solid var(--kb-line-soft);
    border-left: 0;
  }

  .first-steps-route > div:last-child {
    border-bottom: 0;
  }

  .first-steps-icon-list,
  .first-steps-npcs,
  .first-steps-system-grid,
  .first-steps-path-grid,
  .first-steps-chest-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .first-steps-path,
  .first-steps-path.wide {
    min-height: 0;
    grid-column: auto;
  }

  .first-steps-interface-center {
    min-height: 230px;
  }

  .first-steps-chapter {
    padding: 18px 0;
  }

  .first-steps-chapter-media {
    aspect-ratio: 16 / 9;
  }

  .first-steps-level-cap-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .first-steps-level-cap-number {
    width: 86px;
    height: 86px;
    font-size: 27px;
  }

  .shell {
    width: calc(100vw - 24px);
  }

  .kb-search-panel {
    grid-template-columns: 1fr;
  }

  .kb-category-tabs {
    justify-content: flex-start;
  }

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

  .kb-compare-layout,
  .enchant-charms {
    grid-template-columns: 1fr;
  }

  .kb-compare-results {
    grid-template-columns: 1fr;
  }

  .kb-detail-hero {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .kb-detail-icon,
  .kb-detail-icon img {
    width: 64px;
    height: 64px;
  }

  .kb-detail-name {
    font-size: 24px;
  }

  .kb-monster-card {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .kb-monster-heading {
    display: grid;
    gap: 10px;
  }

  .kb-monster-respawn {
    text-align: left;
  }

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

  .kb-quest-chain summary,
  .kb-quest-stage-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .kb-quest-chain summary {
    min-height: 0;
    padding: 17px 15px;
  }

  .kb-quest-chain summary h3 {
    font-size: 22px;
  }

  .kb-quest-stage-list {
    padding: 0 15px 6px;
  }

  .kb-quest-stage {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
  }

  .kb-quest-stage-mark b {
    font-size: 18px;
  }

  .kb-quest-route,
  .kb-quest-stage-grid,
  .kb-guild-overview {
    grid-template-columns: 1fr;
  }

  .kb-guild-overview article + article {
    border-top: 1px solid var(--kb-line-soft);
    border-left: 0;
  }

  .kb-guild-alliance-head {
    display: grid;
    gap: 12px;
  }

  .kb-guild-alliance-head > strong {
    width: max-content;
  }

  .kb-guild-rule {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .kb-guild-level-row {
    grid-template-columns: 52px minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px 12px;
  }

  .kb-guild-level-row.head {
    display: none;
  }

  .kb-guild-level-row > div {
    grid-column: 1 / -1;
  }

  .kb-progression-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .kb-progression-title strong {
    text-align: left;
  }

  .kb-level-power,
  .kb-base-facts,
  .kb-attribute-grid {
    grid-template-columns: 1fr;
  }

  .kb-attribute-card + .kb-attribute-card {
    border-top: 1px solid var(--kb-line-soft);
    border-left: 0;
  }

  .kb-class-grid {
    grid-template-columns: 1fr;
  }
}
