:root {
  color-scheme: dark;
  --bg: #070510;
  --panel: rgba(20, 12, 36, 0.76);
  --panel-strong: rgba(27, 15, 48, 0.92);
  --line: rgba(198, 95, 255, 0.22);
  --line-strong: rgba(211, 105, 255, 0.48);
  --text: #f7f0ff;
  --muted: #c7b8d7;
  --soft: #9a8aae;
  --purple: #b85cff;
  --purple-2: #e06aff;
  --cyan: #7fe8ff;
  --green: #73ff66;
  --danger: #ff6b9a;
  --warning: #ffd36e;
  --radius: 22px;
  --shadow: 0 24px 80px rgba(26, 8, 52, 0.42);
  --sidebar-width: 318px;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 72% 8%, rgba(181, 67, 255, 0.23), transparent 34%),
    radial-gradient(circle at 12% 20%, rgba(120, 40, 204, 0.22), transparent 35%),
    linear-gradient(180deg, #070510 0%, #0d071c 44%, #05030b 100%);
  color: var(--text);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(circle at 55% 20%, black, transparent 72%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(110deg, transparent 0 45%, rgba(204, 75, 255, 0.08) 46%, transparent 48%),
    radial-gradient(circle at 92% 74%, rgba(120, 34, 238, 0.18), transparent 28%);
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.wiki-particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
}

.app {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: 0 28px;
  width: min(1500px, calc(100% - 44px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 40;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  margin: 14px 0 20px;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(17, 9, 34, 0.9), rgba(8, 5, 20, 0.86));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.08);
  backdrop-filter: blur(18px);
}

.brand-row,
.brand,
.top-actions {
  display: flex;
  align-items: center;
}

.brand-row {
  min-width: 0;
  gap: 12px;
}

.brand {
  gap: 13px;
  text-decoration: none;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 24px rgba(191, 79, 255, 0.56);
}

.brand strong {
  display: block;
  font-weight: 900;
  letter-spacing: 0;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.82rem;
}

.top-actions {
  gap: clamp(20px, 3.6vw, 58px);
}

.top-link,
.icon-button {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s ease, text-shadow 0.18s ease, transform 0.18s ease;
}

.top-link {
  position: relative;
  padding: 12px 0;
  background: transparent;
  font-weight: 750;
}

.top-link::after {
  position: absolute;
  left: 50%;
  bottom: -13px;
  width: 58px;
  height: 4px;
  content: "";
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--purple-2), transparent);
  box-shadow: 0 0 18px rgba(214, 102, 255, 0.8);
  opacity: 0;
  transform: translateX(-50%) scaleX(0.56);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.top-link:hover,
.top-link:focus-visible,
.top-link.active {
  color: #fff;
  text-shadow: 0 0 18px rgba(220, 140, 255, 0.45);
  outline: none;
  transform: none;
}

.top-link:hover::after,
.top-link:focus-visible::after,
.top-link.active::after {
  opacity: 1;
  transform: translateX(-50%) scaleX(1);
}

.icon-button {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
}

.icon-button:hover,
.icon-button:focus-visible {
  color: #fff;
  text-shadow: 0 0 18px rgba(220, 140, 255, 0.45);
  outline: none;
  transform: translateY(-1px);
}

.mobile-menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px 0;
  border-radius: 99px;
  background: #fff;
}

.sidebar {
  position: sticky;
  top: 112px;
  align-self: start;
  height: calc(100vh - 126px);
  padding: 16px;
  overflow-y: auto;
  border: 1px solid rgba(199, 100, 255, 0.24);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(19, 11, 35, 0.82), rgba(9, 5, 20, 0.76));
  box-shadow: 0 20px 70px rgba(13, 5, 31, 0.34), inset 0 1px 0 rgba(255,255,255,0.05);
  backdrop-filter: blur(16px);
}

.sidebar::-webkit-scrollbar,
.content::-webkit-scrollbar {
  width: 10px;
}

.sidebar::-webkit-scrollbar-thumb,
.content::-webkit-scrollbar-thumb {
  border-radius: 20px;
  background: rgba(198, 95, 255, 0.38);
}

.search-box {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(204, 106, 255, 0.22);
  border-radius: 16px;
  background: rgba(255,255,255,0.045);
  color: var(--purple-2);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.search-box input::placeholder {
  color: #9182a5;
}

.sidebar-section {
  margin: 18px 0 8px;
  color: #d6c8e6;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-link,
.sidebar-toggle {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  gap: 10px;
  min-height: 42px;
  margin: 4px 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  text-decoration: none;
  font-weight: 720;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.sidebar-link:hover,
.sidebar-toggle:hover,
.sidebar-link:focus-visible,
.sidebar-toggle:focus-visible {
  color: #fff;
  background: rgba(255,255,255,0.06);
  outline: none;
  transform: translateX(2px);
}

.sidebar-link.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(164, 69, 255, 0.28), rgba(164, 69, 255, 0.08));
  box-shadow: inset 3px 0 0 var(--purple-2), 0 0 22px rgba(188, 76, 255, 0.16);
}

.sidebar-icon {
  width: 24px;
  text-align: center;
}

.sidebar-toggle {
  justify-content: space-between;
}

.sidebar-toggle .chevron {
  color: var(--soft);
  transform: rotate(0deg);
  transition: transform 0.18s ease;
}

.sidebar-toggle.open .chevron {
  transform: rotate(90deg);
}

.sidebar-submenu {
  display: grid;
  gap: 2px;
  max-height: 0;
  padding-left: 18px;
  overflow: hidden;
  transition: max-height 0.22s ease;
}

.sidebar-submenu.open {
  max-height: 220px;
}

.sidebar-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 16px;
  border: 1px solid rgba(204, 106, 255, 0.24);
  border-radius: 18px;
  background:
    radial-gradient(circle at 12% 0, rgba(211, 90, 255, 0.22), transparent 38%),
    rgba(255,255,255,0.045);
  color: #fff;
  text-decoration: none;
}

.sidebar-card img {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 22px rgba(191, 79, 255, 0.5);
}

.content {
  min-width: 0;
  padding-bottom: 80px;
}

.page {
  padding-inline: 8px;
  animation: pageIn 0.34s ease both;
}

.page-kicker,
.section-kicker {
  color: var(--purple-2);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-header {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--soft);
  font-size: 0.92rem;
}

.breadcrumb span:last-child {
  color: #fff;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 980px;
  font-size: clamp(2.35rem, 4.4vw, 4.9rem);
}

h2 {
  margin-top: 36px;
  font-size: clamp(1.55rem, 2.1vw, 2.25rem);
}

h3 {
  margin-top: 22px;
  font-size: 1.22rem;
}

p,
li {
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.74;
}

ul,
ol {
  padding-left: 24px;
}

.lead {
  max-width: 900px;
  color: #ded2ee;
  font-size: 1.13rem;
}

.hero-image {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 24px;
  overflow: hidden;
  border: 1px solid rgba(211, 105, 255, 0.42);
  border-radius: 24px;
  background: rgba(255,255,255,0.04);
  box-shadow: 0 24px 80px rgba(75, 15, 130, 0.28), 0 0 34px rgba(188, 76, 255, 0.16);
}

.hero-image img {
  display: block;
  width: 100%;
  max-height: 430px;
  object-fit: cover;
}

.hero-image::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(6, 4, 16, 0.36));
}

.info-grid,
.card-grid,
.image-grid {
  display: grid;
  gap: 16px;
}

.info-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 24px 0;
}

.info-card,
.wiki-card,
.image-card,
.term-card {
  border: 1px solid rgba(200, 101, 255, 0.22);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 12% 0, rgba(197, 82, 255, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(26, 16, 44, 0.76), rgba(12, 7, 25, 0.82));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.055);
}

.info-card {
  padding: 18px;
}

.info-card span {
  display: block;
  color: var(--soft);
  font-size: 0.9rem;
}

.info-card strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: 1.28rem;
}

.timeline {
  position: relative;
  display: grid;
  gap: 14px;
  margin: 22px 0;
}

.timeline::before {
  position: absolute;
  left: 24px;
  top: 16px;
  bottom: 16px;
  width: 2px;
  content: "";
  background: linear-gradient(var(--purple-2), rgba(127, 232, 255, 0.26));
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(200, 101, 255, 0.18);
  border-radius: 18px;
  background: rgba(255,255,255,0.035);
}

.timeline-number {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #dc63ff, #7534ff);
  color: #fff;
  font-weight: 950;
  box-shadow: 0 0 24px rgba(207, 89, 255, 0.48);
}

.timeline-item h3 {
  margin-top: 0;
}

.wiki-link {
  color: #77d7ff;
  font-weight: 900;
  text-decoration: none;
  text-shadow: 0 0 16px rgba(119, 215, 255, 0.32);
  transition: color 0.18s ease, text-shadow 0.18s ease;
}

.wiki-link:hover {
  color: #c7f3ff;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-shadow: 0 0 20px rgba(119, 215, 255, 0.52);
}

.wiki-link.discord {
  color: #8ea3ff;
}

.wiki-link.telegram {
  color: #65ccff;
}

.callout {
  margin: 22px 0;
  padding: 18px 20px;
  border: 1px solid rgba(127, 232, 255, 0.28);
  border-left: 4px solid var(--cyan);
  border-radius: 18px;
  background: rgba(127, 232, 255, 0.06);
}

.callout strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
}

.callout.warning {
  border-color: rgba(255, 211, 110, 0.28);
  border-left-color: var(--warning);
  background: rgba(255, 211, 110, 0.075);
}

.callout.danger {
  border-color: rgba(255, 107, 154, 0.28);
  border-left-color: var(--danger);
  background: rgba(255, 107, 154, 0.075);
}

.callout.info {
  border-color: rgba(184, 92, 255, 0.34);
  border-left-color: var(--purple-2);
  background: rgba(184, 92, 255, 0.08);
}

.code-block {
  position: relative;
  margin: 18px 0;
  padding: 16px 18px;
  overflow-x: auto;
  border: 1px solid rgba(212, 106, 255, 0.3);
  border-radius: 16px;
  background: #0b0715;
  color: #ff89f5;
  font-family: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
  font-size: 0.98rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(212, 106, 255, 0.28);
  border-radius: 999px;
  background: rgba(184, 92, 255, 0.12);
  color: #f8e7ff;
  font-size: 0.86rem;
  font-weight: 850;
}

.table-wrap {
  margin: 22px 0;
  overflow-x: auto;
  border: 1px solid rgba(200, 101, 255, 0.22);
  border-radius: 18px;
  background: rgba(255,255,255,0.035);
}

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

.wiki-table th,
.wiki-table td {
  padding: 15px 16px;
  border-bottom: 1px solid rgba(200, 101, 255, 0.16);
  text-align: left;
  vertical-align: top;
}

.wiki-table th {
  color: #fff;
  background: rgba(184, 92, 255, 0.14);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wiki-table td {
  color: var(--muted);
}

.wiki-table tr:hover td {
  background: rgba(255,255,255,0.025);
}

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

.wiki-card {
  padding: 20px;
}

.wiki-card h3 {
  margin-top: 0;
}

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

.image-card {
  padding: 12px;
}

.image-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
}

.image-card h3 {
  margin: 14px 6px 6px;
}

.image-card p {
  margin: 0 6px 8px;
  font-size: 0.97rem;
}

.image-card-missing::before {
  display: grid;
  aspect-ratio: 16 / 9;
  place-items: center;
  border: 1px dashed rgba(200, 101, 255, 0.34);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 42%, rgba(188, 76, 255, 0.18), transparent 42%),
    rgba(255,255,255,0.035);
  color: var(--muted);
  content: "Добавь изображение в assets/images/";
  font-size: 0.94rem;
  text-align: center;
}

.debug-stick-card {
  display: grid;
  gap: 18px;
  margin: 26px 0;
  padding: clamp(18px, 3vw, 26px);
  overflow: hidden;
  border: 1px solid rgba(200, 101, 255, 0.28);
  border-radius: 24px;
  background:
    radial-gradient(circle at 12% 0, rgba(191, 77, 255, 0.2), transparent 36%),
    radial-gradient(circle at 100% 100%, rgba(127, 232, 255, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(25, 13, 46, 0.9), rgba(9, 5, 20, 0.94));
  box-shadow: 0 22px 70px rgba(54, 17, 98, 0.32), inset 0 1px 0 rgba(255,255,255,0.06);
}

.debug-stick-copy {
  display: flex;
  align-items: center;
  gap: 16px;
}

.debug-stick-logo {
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  border: 1px solid rgba(216, 118, 255, 0.34);
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 0 28px rgba(188, 76, 255, 0.28);
}

.debug-stick-copy h2 {
  margin: 0 0 8px;
}

.debug-stick-copy p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
}

.debug-stick-recipe {
  display: grid;
  gap: 10px;
  margin: 0;
}

.debug-stick-recipe img {
  display: block;
  width: min(100%, 720px);
  height: auto;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 18px;
  background: rgba(0,0,0,0.26);
  image-rendering: pixelated;
  box-shadow: 0 18px 46px rgba(0,0,0,0.34), 0 0 32px rgba(188, 76, 255, 0.16);
}

.debug-stick-recipe figcaption {
  color: var(--muted);
  font-size: 0.96rem;
}

.debug-stick-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.debug-stick-facts p {
  margin: 0;
  padding: 14px 15px;
  border: 1px solid rgba(200, 101, 255, 0.18);
  border-radius: 16px;
  background: rgba(255,255,255,0.045);
  color: var(--muted);
}

.debug-stick-facts strong {
  display: block;
  margin-bottom: 4px;
  color: #f4e8ff;
}

.item-recipe {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(360px, 1.18fr);
  gap: 22px;
  align-items: stretch;
  margin: 26px 0;
}

.recipe-frame,
.craft-details-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(200, 101, 255, 0.25);
  border-radius: 24px;
  background:
    radial-gradient(circle at 18% 0, rgba(186, 77, 255, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(24, 12, 43, 0.84), rgba(10, 6, 23, 0.92));
  box-shadow: 0 20px 58px rgba(63, 20, 120, 0.24);
}

.recipe-frame {
  display: grid;
  align-content: center;
  gap: 14px;
  min-height: 100%;
  margin: 0;
  padding: clamp(18px, 3vw, 28px);
}

.recipe-frame::before,
.craft-details-card::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.1), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(212, 105, 255, 0.18), transparent 32%);
  opacity: 0.72;
}

.recipe-frame img {
  position: relative;
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  image-rendering: pixelated;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  background: rgba(0,0,0,0.28);
  box-shadow: 0 18px 46px rgba(0,0,0,0.34), 0 0 34px rgba(188, 76, 255, 0.18);
}

.recipe-frame figcaption {
  position: relative;
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  text-align: center;
}

.craft-details-card {
  padding: clamp(20px, 3vw, 28px);
}

.craft-card-head,
.material-grid,
.craft-meta {
  position: relative;
}

.craft-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.craft-orb {
  display: grid;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(217, 121, 255, 0.42);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(175, 66, 255, 0.52), rgba(92, 27, 163, 0.4));
  box-shadow: 0 0 28px rgba(190, 83, 255, 0.32);
  color: #fff;
  font-size: 1.35rem;
}

.craft-card-head h3 {
  margin: 0;
}

.craft-card-head p {
  margin: 4px 0 0;
  color: var(--muted);
}

.craft-details-card h4 {
  position: relative;
  margin: 0 0 12px;
  color: #fff;
  font-size: 1.05rem;
}

.material-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.material-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding: 13px;
  border: 1px solid rgba(200, 101, 255, 0.18);
  border-radius: 18px;
  background: rgba(255,255,255,0.045);
}

.material-card span {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(172, 67, 255, 0.36), rgba(63, 26, 119, 0.42));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 0 18px rgba(191, 79, 255, 0.18);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 900;
}

.material-card strong {
  color: #f4ebff;
  line-height: 1.25;
}

.craft-meta {
  display: grid;
  gap: 10px;
}

.craft-meta-row {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  background: rgba(0,0,0,0.16);
}

.craft-meta-row span {
  color: #d79bff;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.craft-meta-row strong {
  color: #f3eefb;
  font-weight: 760;
}

.term-list {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.term-card {
  padding: 0;
  overflow: hidden;
}

.term-card summary {
  padding: 16px 18px;
  cursor: pointer;
  color: #fff;
  font-weight: 900;
}

.term-card p {
  margin: 0;
  padding: 0 18px 18px;
}

.wiki-accordion {
  margin: 22px 0;
  overflow: hidden;
  border: 1px solid rgba(255, 107, 154, 0.24);
  border-radius: 20px;
  background: rgba(255, 107, 154, 0.06);
}

.wiki-accordion summary {
  padding: 18px 20px;
  cursor: pointer;
  color: #fff;
  font-weight: 900;
}

.wiki-accordion .accordion-body {
  padding: 0 20px 20px;
}

.page-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 46px;
  padding: 18px;
  border: 1px solid rgba(200, 101, 255, 0.2);
  border-radius: 20px;
  background: rgba(184, 92, 255, 0.08);
  color: var(--soft);
}

.page-suggest img {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 0 20px rgba(188, 76, 255, 0.22);
}

.page-suggest strong {
  display: block;
  margin-bottom: 4px;
  color: #fff;
}

.page-suggest span {
  display: block;
}

.empty-state {
  padding: 18px;
  border: 1px dashed rgba(200, 101, 255, 0.32);
  border-radius: 18px;
  color: var(--muted);
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  max-width: min(380px, calc(100vw - 48px));
  padding: 14px 16px;
  border: 1px solid rgba(211, 105, 255, 0.34);
  border-radius: 16px;
  background: rgba(12, 7, 25, 0.94);
  color: #fff;
  box-shadow: var(--shadow);
}

.toast[hidden] {
  display: none;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .app {
    grid-template-columns: 1fr;
  }

  .icon-button {
    display: grid;
  }

  .sidebar {
    position: fixed;
    left: 18px;
    top: 104px;
    z-index: 70;
    width: min(340px, calc(100vw - 36px));
    height: calc(100vh - 126px);
    transform: translateX(calc(-100% - 28px));
    transition: transform 0.24s ease;
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 65;
    display: none;
    background: rgba(0,0,0,0.48);
    backdrop-filter: blur(4px);
  }

  body.sidebar-open .sidebar-backdrop {
    display: block;
  }
}

@media (max-width: 760px) {
  .app {
    width: min(100% - 24px, 1500px);
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    top: 8px;
  }

  .top-actions {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .top-link {
    white-space: nowrap;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .info-grid,
  .card-grid,
  .image-grid,
  .item-recipe {
    grid-template-columns: 1fr;
  }

  .material-grid,
  .craft-meta-row,
  .debug-stick-facts {
    grid-template-columns: 1fr;
  }

  .debug-stick-copy {
    align-items: flex-start;
  }

  .debug-stick-logo {
    width: 58px;
    height: 58px;
  }

  .craft-meta-row {
    gap: 4px;
  }

  .hero-image img {
    min-height: 210px;
  }

  h1 {
    font-size: clamp(2rem, 12vw, 3.2rem);
  }

  .timeline-item {
    grid-template-columns: 42px 1fr;
    padding: 14px;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-number {
    width: 42px;
    height: 42px;
  }
}
