:root {
  color-scheme: dark;
  --bg: #11100f;
  --panel: #1a1815;
  --panel-2: #24211d;
  --panel-3: #302b24;
  --line: #6d3b09;
  --line-soft: #3f2b18;
  --text: #f4efe5;
  --muted: #c4b9a5;
  --dim: #827867;
  --orange: #ff7a08;
  --gold: #ffd733;
  --green: #54e06d;
  --red: #ff4e3f;
  --cyan: #6ed8ff;
  --purple: #b68cff;
  --shadow: 0 16px 38px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Trebuchet MS", Arial, sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(17, 16, 15, 0.88), rgba(17, 16, 15, 0.92)),
    url("../web/assets/background_image.png") center / cover no-repeat;
  pointer-events: none;
  z-index: -2;
}

a {
  color: inherit;
}

code {
  display: inline-block;
  padding: 0.12rem 0.35rem;
  border: 1px solid var(--line-soft);
  background: #120f0b;
  color: var(--gold);
  border-radius: 4px;
  font-size: 0.92em;
}

.page-shell {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px;
  border-right: 2px solid var(--line);
  background: rgba(18, 16, 14, 0.96);
  box-shadow: var(--shadow);
  overflow-y: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 3px solid var(--orange);
  background: #231408;
  color: var(--gold);
  font-size: 28px;
  font-weight: 900;
  box-shadow: 4px 4px 0 #090807;
}

.brand strong {
  display: block;
  color: var(--gold);
  font-size: 20px;
  text-transform: uppercase;
}

.brand span:not(.brand-mark) {
  color: var(--muted);
  font-size: 13px;
}

.search-box {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}

.search-box input {
  width: 100%;
  border: 2px solid var(--line);
  background: #0f0d0b;
  color: var(--text);
  outline: none;
  padding: 12px;
  border-radius: 6px;
  font: inherit;
}

.search-box input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 122, 8, 0.18);
}

.nav-list {
  display: grid;
  gap: 6px;
}

.nav-list a,
.discord-link,
.big-button {
  text-decoration: none;
  border: 1px solid var(--line-soft);
  background: #201b16;
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 6px;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.nav-list a:hover,
.nav-list a.active,
.discord-link:hover,
.big-button:hover {
  border-color: var(--orange);
  background: #321b08;
  color: var(--gold);
}

.discord-link {
  margin-top: auto;
  text-align: center;
  color: var(--gold);
  border-color: var(--orange);
}

.content {
  width: min(1260px, calc(100vw - 290px));
  padding: 28px 34px 64px;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  align-items: end;
  gap: 28px;
  padding: 28px;
  border: 2px solid var(--line);
  background: rgba(26, 24, 21, 0.95);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--orange);
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
}

h1 {
  color: var(--gold);
  font-size: clamp(42px, 6vw, 82px);
  text-transform: uppercase;
  text-shadow: 7px 7px 0 #0a0908;
}

.lead {
  max-width: 860px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.status-panel {
  border: 2px solid var(--line);
  background: #14110e;
  padding: 18px;
  min-height: 138px;
}

.status-panel span,
.status-panel small {
  display: block;
  color: var(--muted);
}

.status-panel strong {
  display: block;
  margin: 8px 0;
  color: var(--gold);
  font-size: 28px;
}

.status-panel a {
  color: var(--gold);
  font-weight: 800;
  text-decoration: none;
}

.status-panel a:hover {
  color: var(--orange);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.quick-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 68px;
  border: 2px solid var(--line-soft);
  background: rgba(36, 33, 29, 0.96);
  color: var(--text);
  text-decoration: none;
  padding: 12px;
  border-radius: 6px;
  font-weight: 800;
}

.quick-card:hover {
  border-color: var(--orange);
  color: var(--gold);
}

.quick-card img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  image-rendering: pixelated;
}

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

.category-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 118px;
  padding: 16px;
  border: 2px solid var(--line-soft);
  background: linear-gradient(135deg, rgba(36, 33, 29, 0.98), rgba(24, 20, 15, 0.98));
  color: var(--text);
  text-decoration: none;
  border-radius: 6px;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.22);
}

.category-card:hover {
  border-color: var(--orange);
  background: linear-gradient(135deg, #312318, #1a1510);
}

.category-card[hidden] {
  display: none;
}

.category-card img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  image-rendering: pixelated;
}

.category-card strong,
.category-card span {
  display: block;
}

.category-card strong {
  color: var(--gold);
  font-size: 20px;
  text-transform: uppercase;
}

.category-card span {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.4;
}

.home-section {
  margin-top: 22px;
}

.wiki-section {
  margin-top: 18px;
  padding: 26px;
  border: 2px solid var(--line);
  background: rgba(26, 24, 21, 0.96);
  box-shadow: var(--shadow);
  scroll-margin-top: 18px;
}

.wiki-section[hidden] {
  display: none;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--line-soft);
}

.section-head p {
  order: 2;
  margin: 0;
  color: var(--orange);
  font-weight: 800;
  text-transform: uppercase;
}

h2 {
  color: var(--gold);
  font-size: clamp(28px, 3vw, 44px);
  text-transform: uppercase;
  text-shadow: 4px 4px 0 #0b0907;
}

h3 {
  color: var(--gold);
  font-size: 22px;
  margin: 18px 0 10px;
}

p,
li,
td,
th,
summary {
  font-size: 16px;
  line-height: 1.5;
}

p {
  color: var(--muted);
}

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

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

.two-columns > div,
.feature-grid > section {
  border: 1px solid var(--line-soft);
  background: var(--panel-2);
  padding: 18px;
  border-radius: 6px;
}

.steps {
  margin: 12px 0 0;
  padding-left: 22px;
  color: var(--muted);
}

.clean-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.clean-list li {
  position: relative;
  padding-left: 18px;
  margin: 7px 0;
}

.clean-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  background: var(--orange);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: #181511;
}

th,
td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}

th {
  color: var(--gold);
  background: #261a0d;
  font-weight: 900;
  text-transform: uppercase;
}

td {
  color: var(--muted);
}

tr:hover td {
  background: rgba(255, 122, 8, 0.06);
}

.note {
  border-left: 4px solid var(--orange);
  padding: 12px 14px;
  background: #21180f;
}

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

.item-card {
  min-height: 220px;
  padding: 18px;
  border: 1px solid var(--line-soft);
  background: var(--panel-2);
  border-radius: 6px;
}

.item-card img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  image-rendering: pixelated;
  margin-bottom: 12px;
}

.item-card p {
  margin: 10px 0 0;
}

.big-button {
  display: inline-block;
  margin-top: 16px;
  border-width: 2px;
  color: var(--gold);
  font-weight: 900;
}

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

details {
  border: 1px solid var(--line-soft);
  background: var(--panel-2);
  border-radius: 6px;
  padding: 14px 16px;
}

summary {
  cursor: pointer;
  color: var(--gold);
  font-weight: 800;
}

details p {
  margin: 10px 0 0;
}

.empty-state {
  padding: 16px;
  border: 2px solid var(--red);
  background: rgba(80, 18, 12, 0.6);
  color: var(--text);
  font-weight: 800;
}

@media (max-width: 1080px) {
  .page-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 2px solid var(--line);
  }

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

  .discord-link {
    margin-top: 0;
  }

  .content {
    width: 100%;
    padding: 20px;
  }

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

  .quick-grid,
  .category-grid,
  .feature-grid,
  .item-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .sidebar,
  .content,
  .topbar,
  .wiki-section {
    padding: 16px;
  }

  .nav-list,
  .quick-grid,
  .category-grid,
  .two-columns,
  .feature-grid,
  .item-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }

  .section-head p {
    margin-top: 8px;
  }

  h1 {
    font-size: 42px;
  }

  table {
    min-width: 640px;
  }
}
