/*!**************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[3]!./src/app/(frontend)/components/blocks.css ***!
  \**************************************************************************************************************************************************************************************************************************************************************************************/
/* === Block Styles — Minecraft Mod Guides === */
/* Headings: var(--font-heading) = Minecrafter */
/* Body text: var(--font-body) */
/* AESTHETIC: Modern dark UI — clean borders, subtle tints, square corners */
/* Only the Crafting Grid (.cg-*) keeps Minecraft inventory 3D emboss */

.blocks > * + * {
  margin-top: 2rem;
}

/* === RichText Block === */
.block-richtext { line-height: 1.65; }
.block-richtext h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  margin: 2.5rem 0 0.85rem;
  position: relative;
  padding-top: 2rem;
}
/* Divider above h2 — double lines with glowing center emblem */
.block-richtext h2::before {
  content: '';
  position: absolute;
  top: 0.35rem;
  left: 0;
  right: 0;
  height: 4px;
  background:
    linear-gradient(90deg, transparent 0%, var(--border) 10%, rgba(75, 139, 229, 0.4) 45%, rgba(75, 139, 229, 0.4) 55%, var(--border) 90%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0px, #fff 1px, #fff 1px, transparent 2px, transparent 2px, #fff 3px, #fff 3px, transparent 4px);
  -webkit-mask-image: linear-gradient(180deg, transparent 0px, #fff 1px, #fff 1px, transparent 2px, transparent 2px, #fff 3px, #fff 3px, transparent 4px);
}
.block-richtext h2::after {
  content: '◈';
  position: absolute;
  top: -0.35rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1rem;
  color: var(--primary);
  background: var(--bg);
  padding: 0 0.75rem;
  line-height: 1.5rem;
  text-shadow: 0 0 8px rgba(75, 139, 229, 0.5);
}
.block-richtext:first-child h2:first-child {
  padding-top: 0;
  margin-top: 0;
}
.block-richtext:first-child h2:first-child::before,
.block-richtext:first-child h2:first-child::after {
  display: none;
}
.block-richtext h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin: 1.5rem 0 0.65rem;
  color: var(--primary);
}
.block-richtext p { margin: 1.4rem 0; }
.block-richtext ul, .block-richtext ol { margin: 1.1rem 0; padding-left: 1.5rem; }
.block-richtext li + li { margin-top: 0.35rem; }
.block-richtext a { border-bottom: 1px solid rgba(75, 139, 229, 0.25); }
.block-richtext a:hover { border-bottom-color: var(--primary); }

.auto-link {
  border-bottom: 1px dotted rgba(75, 139, 229, 0.3);
  color: var(--text);
  transition: color 0.15s, border-bottom-color 0.15s;
}
.auto-link:hover {
  color: var(--primary);
  border-bottom: 1px solid rgba(75, 139, 229, 0.5);
}
.glossary-term {
  border-bottom: 1px dotted rgba(75, 139, 229, 0.25);
  cursor: help;
  transition: border-bottom-color 0.15s;
}
.glossary-term:hover { border-bottom-color: rgba(75, 139, 229, 0.5); }
.auto-link.glossary-term {
  border-bottom: 1px dotted rgba(75, 139, 229, 0.3);
  color: var(--text);
  cursor: help;
}
.auto-link.glossary-term:hover {
  color: var(--primary);
  border-bottom: 1px solid rgba(75, 139, 229, 0.5);
}

/* === Inline Item References === */
.item-inline {
  border-bottom: 1px dotted rgba(170, 130, 255, 0.35);
  cursor: help;
  transition: border-bottom-color 0.15s;
  white-space: nowrap;
}
.item-inline:hover {
  border-bottom-color: rgba(170, 130, 255, 0.7);
}
.item-inline-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  vertical-align: text-bottom;
  margin-right: 2px;
  image-rendering: pixelated;
}

/* === Unified Tooltip (mc-tooltip) === */
.mc-tooltip {
  position: absolute;
  z-index: 9999;
  background: #0a0e1a;
  border: 2px solid;
  border-color: #5000a0 #28007f #28007f #5000a0;
  padding: 6px 8px;
  pointer-events: none;
  min-width: 100px;
  max-width: 280px;
  box-shadow:
    inset 0 0 0 1px #0a0e1a,
    0 4px 12px rgba(0, 0, 0, 0.7);
  font-family: var(--font-body);
  line-height: 1.3;
  border-radius: 3px;
}

.mc-tooltip-header {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mc-tooltip-icon {
  width: 24px;
  height: 24px;
  image-rendering: pixelated;
  flex-shrink: 0;
}

.mc-tooltip-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.3;
}

.mc-tooltip-desc {
  font-size: 0.72rem;
  color: #aaaaaa;
  line-height: 1.35;
  margin-top: 4px;
}

.mc-tooltip-rarity {
  font-size: 0.68rem;
  margin-top: 4px;
  font-style: italic;
}

/* Rarity colors (Minecraft standard) */
.mc-tooltip--uncommon .mc-tooltip-name { color: #ffff55; }
.mc-tooltip--uncommon .mc-tooltip-rarity { color: #ffff55; }
.mc-tooltip--rare .mc-tooltip-name { color: #55ffff; }
.mc-tooltip--rare .mc-tooltip-rarity { color: #55ffff; }
.mc-tooltip--epic .mc-tooltip-name { color: #ff55ff; }
.mc-tooltip--epic .mc-tooltip-rarity { color: #ff55ff; }

/* Glossary variant */
.mc-tooltip--glossary {
  border-color: rgba(75, 139, 229, 0.5) rgba(75, 139, 229, 0.3) rgba(75, 139, 229, 0.3) rgba(75, 139, 229, 0.5);
  background: #0d1320;
}
.mc-tooltip--glossary .mc-tooltip-name {
  color: var(--primary);
}

/* === Callout Block === */
.block-callout {
  position: relative;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-left: 3px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}
.block-callout::before {
  display: none;
}
.callout-tip {
  background: rgba(75, 139, 229, 0.06);
  border-left-color: var(--primary);
}
.callout-warning {
  background: rgba(245, 158, 11, 0.05);
  border-left-color: #f59e0b;
}
.callout-info {
  background: rgba(96, 165, 250, 0.05);
  border-left-color: #60a5fa;
}
.callout-danger {
  background: rgba(239, 68, 68, 0.05);
  border-left-color: #ef4444;
}

.callout-tip .callout-header { color: var(--primary); }
.callout-warning .callout-header { color: #f59e0b; }
.callout-info .callout-header { color: #60a5fa; }
.callout-danger .callout-header { color: #ef4444; }

.callout-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  padding: 0.75rem 1.15rem 0;
}
.callout-icon { font-size: 1rem; }
.callout-label {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}
.callout-body {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  padding: 0 1.15rem 0.75rem;
}
.callout-body p { margin: 0.5rem 0; }
.callout-body p:first-child { margin-top: 0; }
.callout-body p:last-child { margin-bottom: 0; }

/* === Checklist Block === */
.block-checklist {
  background: var(--card);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}
.block-checklist h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin: 0;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.checklist { padding: 0.4rem 1rem; }
.checklist { list-style: none; padding: 0; }
.checklist-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.checklist-item:last-child { border-bottom: none; }
.checklist-box {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--border-light);
  flex-shrink: 0;
  transition: border-color 0.15s;
  background: var(--bg-elevated);
}
.checklist-item:hover .checklist-box {
  border-color: var(--primary);
}
.checklist-box--checked {
  border-color: var(--primary) !important;
  background: var(--primary);
  position: relative;
}
.checklist-box--checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.6rem;
  color: var(--bg);
  font-weight: 700;
}
.checklist-item--checked span:not(.checklist-box),
.checklist-item--checked a {
  text-decoration: line-through;
  color: var(--muted);
  opacity: 0.5;
}

/* === Accordion Block === */
.block-accordion h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 0.65rem;
}
.accordion-item {
  margin-bottom: 0.5rem;
  background: var(--card);
  transition: border-color 0.15s;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}
.accordion-item[open] {
  border-color: rgba(75, 139, 229, 0.3);
}
.accordion-item summary {
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  font-size: 0.9rem;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text);
  transition: background 0.1s;
}
.accordion-item summary:hover {
  background: rgba(255, 255, 255, 0.02);
}
.accordion-item summary::before {
  content: '▶';
  color: var(--primary);
  font-size: 0.55rem;
  transition: transform 0.15s;
  flex-shrink: 0;
}
.accordion-item[open] summary::before { transform: rotate(90deg); }
.accordion-item[open] summary {
  background: rgba(255, 255, 255, 0.02);
}
.accordion-body {
  padding: 0.65rem 0.85rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  border-top: 1px solid var(--border);
}
.accordion-body p { margin: 0.5rem 0; }
.accordion-body p:first-child { margin-top: 0; }
.accordion-body p:last-child { margin-bottom: 0; }

/* === Pro/Con Block === */
.block-procon h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 0.65rem;
}
.procon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 0.75rem;
  gap: 0.75rem;
}
@media (max-width: 600px) {
  .procon-grid { grid-template-columns: 1fr; }
}
.procon-col {
  background: var(--card);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
}
.procon-pros { border-left: 3px solid var(--primary); }
.procon-cons { border-left: 3px solid #ef4444; }
.procon-pros::before,
.procon-cons::before {
  display: none;
}
.procon-col h4 {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
  padding: 0.65rem 0.85rem 0;
}
.procon-col ul { padding: 0.35rem 0.85rem 0.65rem; }
.procon-pros h4 { color: var(--primary); }
.procon-cons h4 { color: #ef4444; }
.procon-col ul { list-style: none; padding: 0; }
.procon-col li {
  padding: 0.3rem 0.85rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.procon-col li:last-child { border-bottom: none; }
.procon-pros li::before { content: '+ '; color: var(--primary); font-weight: 700; }
.procon-cons li::before { content: '− '; color: #ef4444; font-weight: 700; }

/* === CardGrid Block === */
.block-itemgrid h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 0.85rem;
}
.block-itemgrid .card h4 { color: var(--text); margin-top: 0.4rem; }

/* === Stats Table Block === */
.block-statstable h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.5px;
}
.block-statstable table {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}
.block-statstable td {
  padding: 0.7rem 1rem;
  font-size: 0.88rem;
  transition: background 0.15s;
}
.block-statstable td:first-child {
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-right: 1px solid var(--border);
  width: 40%;
}
.block-statstable td:last-child {
  color: var(--text);
  font-weight: 500;
}
.block-statstable tr + tr td {
  border-top: 1px solid var(--border);
}
.block-statstable tr:nth-child(even) { background: rgba(75, 139, 229, 0.025); }
.block-statstable tr:hover { background: rgba(75, 139, 229, 0.06); }
.block-statstable .highlight td {
  background: rgba(75, 139, 229, 0.06);
  color: var(--primary);
  font-weight: 600;
}
.block-statstable .highlight td:first-child {
  color: var(--primary);
  font-weight: 600;
}

/* === Step-by-Step Block === */
.block-steps h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.steps-list {
  list-style: none;
  padding: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step-item {
  display: flex;
  gap: 1rem;
  padding: 0;
  position: relative;
}

.step-item + .step-item {
  margin-top: 0.75rem;
}

/* Connector line from each circle down to the next (not on last item) */
.step-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: calc(2.35rem / 2 - 1px);
  top: 2.35rem;
  bottom: 0;
  width: 2px;
  background: rgba(75, 139, 229, 0.25);
  border-radius: 1px;
  z-index: 0;
}

/* Number circle */
.step-number {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  min-width: 2.35rem;
  width: 2.35rem;
  height: 2.35rem;
  text-align: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dim) 100%);
  line-height: 2.35rem;
  border-radius: 50%;
  box-shadow:
    rgba(75, 139, 229, 0.3) 0px 0px 0px 3px,
    rgba(0, 0, 0, 0.3) 0px 2px 6px;
}

/* Step content card */
.step-content {
  flex: 1 1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  box-shadow: var(--card-shadow);
  min-width: 0;
  position: relative;
}

/* Arrow pointing from card to number */
.step-content::before {
  content: '';
  position: absolute;
  top: 0.7rem;
  left: -6px;
  width: 10px;
  height: 10px;
  background: var(--card);
  border-left: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transform: rotate(45deg);
}

.step-content h4 {
  font-family: var(--font-heading);
  font-size: 18px;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
  color: #ffffff;
}

.step-content p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin: 0.55rem 0;
  line-height: 1.7;
}
.step-content p:first-of-type { margin-top: 0; }
.step-content p:last-of-type { margin-bottom: 0; }

.step-image {
  max-width: 100%;
  height: auto;
  margin-top: 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

/* Hover highlight */
.step-item:hover .step-content {
  border-color: rgba(75, 139, 229, 0.25);
}
.step-item:hover .step-number {
  box-shadow:
    rgba(75, 139, 229, 0.4) 0px 0px 0px 4px,
    rgba(0, 0, 0, 0.3) 0px 2px 6px;
}

@media (max-width: 500px) {
  .step-item:not(:last-child)::before { left: calc(2rem / 2 - 1px); top: 2rem; }
  .step-number {
    min-width: 2rem;
    width: 2rem;
    height: 2rem;
    line-height: 2rem;
    font-size: 0.75rem;
  }
  .step-content { padding: 0.75rem 0.85rem; }
  .step-content::before { top: 0.55rem; }
}

/* === Loadout Block === */
.block-gear {
  background: var(--card);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}
.block-gear h3 {
  font-family: var(--font-heading);
  margin: 0;
  padding: 0.75rem 1.15rem;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
}
.gear-grid { display: flex; flex-direction: column; }
.gear-slot {
  display: grid;
  grid-template-columns: 120px 1fr;
  grid-gap: 0 0.85rem;
  gap: 0 0.85rem;
  padding: 0.55rem 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.1s;
}
.gear-slot:last-child { border-bottom: none; }
.gear-slot:hover { background: var(--primary-subtle); }
.gear-slot-type {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
  font-weight: 600;
  align-self: center;
}
.gear-slot-name {
  font-weight: 600;
  color: var(--text);
  font-size: 0.88rem;
  align-self: center;
}
a.gear-slot-name { color: var(--primary); }
a.gear-slot-name:hover { color: var(--primary-dim); }
.gear-slot-note {
  grid-column: 2;
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-top: -0.05rem;
}
@media (max-width: 500px) {
  .gear-slot { grid-template-columns: 1fr; gap: 0.1rem; }
  .gear-slot-note { grid-column: 1; }
}

/* === Pull Quote Block === */
.block-pullquote {
  position: relative;
  background: var(--primary-subtle);
  padding: 0;
  margin: 1.75rem 0;
  overflow: hidden;
  border: 1px solid rgba(75, 139, 229, 0.12);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}
.pullquote-mark,
.pullquote-text,
.pullquote-attribution {
  padding-left: 1.75rem;
  padding-right: 1.25rem;
}
.pullquote-mark {
  position: absolute;
  top: -0.15rem;
  left: 0.4rem;
  font-size: 3rem;
  font-family: var(--font-heading-alt);
  color: var(--primary);
  opacity: 0.15;
  line-height: 1;
  pointer-events: none;
}
.pullquote-text {
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
  padding-top: 0.25rem;
  padding-bottom: 0.5rem;
}
.pullquote-attribution {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
  padding-bottom: 1rem;
  margin: 0;
}

/* === Community Tip Block === */
.block-communitytip {
  background: var(--card);
  padding: 0.85rem 1.15rem;
  margin: 1.25rem 0;
  border: 1px dashed var(--border-light);
}
.communitytip-veteran-tip { border-color: rgba(75, 139, 229, 0.3); }
.communitytip-common-mistake { border-color: rgba(239, 68, 68, 0.3); }
.communitytip-community-insight { border-color: rgba(96, 165, 250, 0.3); }
.communitytip-meta-strategy { border-color: rgba(75, 139, 229, 0.2); }

.communitytip-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}
.communitytip-icon { font-size: 1rem; }
.communitytip-label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.communitytip-veteran-tip .communitytip-label { color: var(--primary); }
.communitytip-common-mistake .communitytip-label { color: #ef4444; }
.communitytip-community-insight .communitytip-label { color: #60a5fa; }
.communitytip-meta-strategy .communitytip-label { color: var(--primary); }

.communitytip-body { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; }
.communitytip-body p { margin: 0.5rem 0; }
.communitytip-body p:first-child { margin-top: 0; }
.communitytip-body p:last-child { margin-bottom: 0; }
.communitytip-source {
  margin-top: 0.4rem;
  font-size: 0.72rem;
  color: var(--muted);
  font-style: italic;
}

/* === Quick Glance Block === */
.block-quickglance {
  margin: 1.25rem 0;
  background: var(--bg-elevated);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}
.quickglance-heading {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  padding: 0.6rem 1rem;
  background: rgba(75, 139, 229, 0.06);
  border-bottom: 1px solid var(--border);
}
.quickglance-list {
  margin: 0;
  padding: 0;
}
.quickglance-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.quickglance-row:last-child {
  border-bottom: none;
}
.quickglance-row:hover {
  background: rgba(255, 255, 255, 0.02);
}
.quickglance-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
  flex-shrink: 0;
  padding-right: 1rem;
}
.quickglance-value {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--primary);
  text-align: right;
  margin: 0;
}

/* === Comparison Table Block === */
.block-comparison h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.5px;
}
.comparison-scroll {
  overflow-x: hidden;
  border-radius: var(--radius);
}
.block-comparison table {
  width: 100%;
  table-layout: fixed;
  background: var(--card);
  border: 1px solid var(--border);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}
.block-comparison thead th {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  background: linear-gradient(180deg, rgba(75, 139, 229, 0.18) 0%, rgba(75, 139, 229, 0.08) 100%);
  padding: 0.75rem 1rem;
  text-align: center;
  border-bottom: 2px solid var(--primary-dim);
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.block-comparison thead th + th {
  border-left: 1px solid rgba(75, 139, 229, 0.15);
}
.block-comparison .comparison-label-col {
  position: -webkit-sticky;
  position: sticky;
  left: 0;
  background: linear-gradient(180deg, rgba(75, 139, 229, 0.18) 0%, rgba(75, 139, 229, 0.08) 100%);
  z-index: 1;
  text-align: left;
  color: var(--text-secondary);
}
.block-comparison tbody td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: center;
  font-size: 0.88rem;
  transition: background 0.15s;
}
.block-comparison tbody td + td {
  border-left: 1px solid rgba(255, 255, 255, 0.03);
}
.block-comparison tbody tr:last-child td { border-bottom: none; }
.block-comparison tbody tr:nth-child(even) td { background: rgba(75, 139, 229, 0.025); }
.block-comparison tbody tr:hover td { background: rgba(75, 139, 229, 0.06); }
.block-comparison .comparison-label {
  font-weight: 600;
  font-size: 0.84rem;
  color: var(--text);
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  position: -webkit-sticky;
  position: sticky;
  left: 0;
  background: var(--card);
  z-index: 1;
}
.block-comparison tbody tr:nth-child(even) .comparison-label { background: rgba(11, 15, 26, 0.5); }
.block-comparison tbody tr:hover .comparison-label { background: rgba(75, 139, 229, 0.06); }

/* === Embed Video Block === */
.block-embedvideo { margin: 1.25rem 0; }
.embedvideo-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border: 1px solid var(--border);
}
.embedvideo-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}
.embedvideo-caption {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  font-style: italic;
}

/* === Image Gallery Block === */
.block-gallery h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 0.65rem;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-gap: 0.65rem;
  gap: 0.65rem;
}
.gallery-single { display: block; }
.gallery-item {
  margin: 0;
  border: 1px solid var(--border);
  overflow: hidden;
  background: none;
}
.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}
.gallery-item--single img { height: auto; max-height: 420px; object-fit: cover; }
.gallery-item figcaption {
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border);
}
@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item img { height: 200px; }
  .gallery-item--single img { max-height: 250px; }
}

/* === Map Marker Block === */
.block-mapmarker h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 0.65rem;
}
.mapmarker-list { list-style: none; padding: 0; }
.mapmarker-item {
  display: flex;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  background: var(--card);
  margin-bottom: 0.4rem;
  align-items: flex-start;
  border: 1px solid var(--border);
}
.mapmarker-pin {
  font-size: 1.15rem;
  color: var(--primary);
  flex-shrink: 0;
  line-height: 1.4;
}
.mapmarker-info { flex: 1 1; }
.mapmarker-name {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  color: var(--text);
}
.mapmarker-coords {
  margin-left: 0.4rem;
  font-size: 0.72rem;
  color: var(--muted);
  font-family: monospace;
}
.mapmarker-desc {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* === Crafting Recipe Block === */
.block-crafting h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 0.65rem;
}
.crafting-recipe {
  background: var(--card);
  padding: 0.85rem;
  margin-bottom: 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}
.crafting-station {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 0.6rem;
}
.crafting-layout {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}
.crafting-ingredients {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  flex: 1 1;
}
.crafting-ingredient {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 0.3rem 0.5rem;
  font-size: 0.83rem;
  display: flex;
  gap: 0.2rem;
  align-items: center;
}
.crafting-qty {
  color: var(--primary);
  font-weight: 700;
}
.crafting-item { color: var(--text); }
.crafting-arrow {
  font-size: 1.3rem;
  color: var(--primary);
  flex-shrink: 0;
}
.crafting-result {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary);
  background: rgba(75, 139, 229, 0.06);
  border: 1px solid rgba(75, 139, 229, 0.2);
  padding: 0.45rem 0.65rem;
}
@media (max-width: 600px) {
  .crafting-layout { flex-direction: column; align-items: stretch; }
  .crafting-arrow { text-align: center; }
  .crafting-result { text-align: center; }
}

/* === Progression Path Block === */
.block-progression h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 0.85rem;
}
.progression-track {
  display: flex;
  align-items: flex-start;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.4rem 0;
  gap: 0;
}
.progression-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  min-width: 90px;
  flex-shrink: 0;
  padding: 0 0.4rem;
}
.progression-dot {
  width: 14px;
  height: 14px;
  background: var(--primary);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px var(--primary-dim);
  flex-shrink: 0;
  z-index: 1;
}
.progression-label {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  margin-top: 0.4rem;
}
.progression-desc {
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 0.2rem;
  max-width: 110px;
}
.progression-connector {
  position: absolute;
  top: 7px;
  left: 50%;
  width: calc(100% - 16px);
  height: 1px;
  background: var(--border-light);
}
@media (max-width: 600px) {
  .progression-track {
    flex-direction: column;
    align-items: flex-start;
    overflow-x: visible;
    padding-left: 1.25rem;
  }
  .progression-node {
    flex-direction: row;
    align-items: center;
    gap: 0.65rem;
    min-width: auto;
    padding: 0.3rem 0;
  }
  .progression-label { margin-top: 0; text-align: left; }
  .progression-desc { margin-top: 0; margin-left: 0.4rem; text-align: left; max-width: none; }
  .progression-connector {
    position: absolute;
    top: calc(50% + 8px);
    left: 7px;
    width: 1px;
    height: 100%;
    right: auto;
  }
}

/* === Damage Calc Block === */
.block-damagecalc h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 0.65rem;
}
.block-damagecalc table {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  overflow: hidden;
}
.block-damagecalc tr { border-bottom: 1px solid var(--border); }
.block-damagecalc tr:last-child { border-bottom: none; }
.block-damagecalc td {
  padding: 0.45rem 0.65rem;
  font-size: 0.88rem;
}
.damagecalc-operator {
  width: 1.75rem;
  text-align: center;
  color: var(--muted);
  font-family: monospace;
  font-weight: 600;
}
.damagecalc-label { color: var(--text); }
.damagecalc-value {
  text-align: right;
  font-family: monospace;
  font-weight: 600;
  color: var(--text);
}
.damagecalc-result {
  background: rgba(75, 139, 229, 0.06);
  border-top: 2px solid var(--primary);
}
.damagecalc-result .damagecalc-label {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--primary);
}
.damagecalc-result .damagecalc-value {
  color: var(--primary);
  font-size: 1rem;
}

/* ============================================= */
/* === Crafting Grid Block (Minecraft Style) === */
/* ============================================= */

/* ── Crafting Grid Block ── */
.block-craftinggrid {
  width: 100%;
}

.block-craftinggrid h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 0.85rem;
  color: var(--text);
}

/* Card wrapper — Minecraft inventory style */
.cg-table {
  --cg-slot-size: 48px;
  --cg-slot-bg: #555555;
  --cg-slot-border-dark: #373737;
  --cg-slot-border-light: #8b8b8b;
  --cg-slot-highlight: #626262;
  --cg-inner-bg: #c6c6c6;
  --cg-frame: #c6c6c6;
  --cg-frame-dark: #555555;
  --cg-frame-light: #ffffff;

  width: 100%;
  background: var(--cg-frame);
  border: 3px solid;
  border-color: var(--cg-frame-light) var(--cg-frame-dark) var(--cg-frame-dark) var(--cg-frame-light);
  border-radius: 4px;
  overflow: hidden;
}

/* Header row — recipe name + badges */
.cg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.75rem;
  border-bottom: 2px solid;
  border-bottom-color: var(--cg-frame-dark);
  background: #b0b0b0;
}

.cg-recipe-name {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: #3f3f3f;
  letter-spacing: 0.01em;
  text-shadow: 1px 1px 0 rgba(255,255,255,0.3);
}

/* Tabbed header */
.cg-header--tabbed {
  flex-wrap: wrap;
  gap: 0.4rem;
}

.cg-tabs {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
}

.cg-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  background: #8b8b8b;
  border: 2px solid;
  border-color: var(--cg-slot-border-dark) var(--cg-slot-border-light) var(--cg-slot-border-light) var(--cg-slot-border-dark);
  border-radius: 1px;
  cursor: pointer;
  transition: background 0.1s;
  line-height: 1;
}

.cg-tab:hover {
  background: #9e9e9e;
}

.cg-tab--active {
  background: #555555;
  border-color: var(--cg-slot-border-dark) var(--cg-slot-border-light) var(--cg-slot-border-light) var(--cg-slot-border-dark);
  box-shadow: inset 0 0 4px rgba(0,0,0,0.3);
}

.cg-tab-icon {
  width: 28px;
  height: 28px;
  image-rendering: pixelated;
  flex-shrink: 0;
  filter: drop-shadow(1px 1px 0 rgba(0,0,0,0.25));
}

/* Text fallback for tabs without icons */
.cg-tab-label {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  color: #3f3f3f;
  text-shadow: 1px 1px 0 rgba(255,255,255,0.15);
  padding: 0.2rem 0.3rem;
}
.cg-tab--active .cg-tab-label {
  color: #fff;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.3);
}

.cg-badges {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.cg-station-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.65rem;
  font-weight: 500;
  color: #555;
  background: rgba(0, 0, 0, 0.06);
  border: 1px solid;
  border-color: var(--cg-frame-dark) var(--cg-frame-light) var(--cg-frame-light) var(--cg-frame-dark);
  border-radius: 2px;
  padding: 0.15rem 0.4rem;
}

.cg-station-icon {
  width: 14px;
  height: 14px;
  color: #555;
  flex-shrink: 0;
}

.cg-type-badge {
  font-size: 0.6rem;
  font-weight: 600;
  color: #8b6914;
  background: rgba(200, 160, 40, 0.12);
  border: 1px solid;
  border-color: var(--cg-frame-dark) var(--cg-frame-light) var(--cg-frame-light) var(--cg-frame-dark);
  border-radius: 2px;
  padding: 0.15rem 0.35rem;
}

/* Body — the actual recipe visual */
.cg-body {
  padding: 1rem 1.25rem;
}

/* Grid recipes: grid + arrow + result */
.cg-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

/* 3x3 crafting grid */
.cg-grid {
  display: grid;
  grid-template-columns: repeat(3, var(--cg-slot-size));
  grid-template-rows: repeat(3, var(--cg-slot-size));
  grid-gap: 2px;
  gap: 2px;
  background: var(--cg-inner-bg);
  padding: 2px;
  border: 2px solid;
  border-color: var(--cg-frame-dark) var(--cg-frame-light) var(--cg-frame-light) var(--cg-frame-dark);
  border-radius: 2px;
}

/* Slot base — Minecraft inventory style emboss */
.cg-slot {
  width: var(--cg-slot-size);
  height: var(--cg-slot-size);
  background: var(--cg-slot-bg);
  border: 2px solid;
  border-color: var(--cg-slot-border-dark) var(--cg-slot-border-light) var(--cg-slot-border-light) var(--cg-slot-border-dark);
  border-radius: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: default;
  image-rendering: pixelated;
  transition: background 0.12s;
}

.cg-slot:hover:not(.cg-slot--empty) {
  background: var(--cg-slot-highlight);
}

.cg-slot--empty {
  background: #8b8b8b;
  border-color: var(--cg-slot-border-dark) var(--cg-slot-border-light) var(--cg-slot-border-light) var(--cg-slot-border-dark);
}

/* Large slot (results) */
.cg-slot--large {
  width: 56px;
  height: 56px;
}
.cg-slot--large .cg-slot-icon {
  width: 42px;
  height: 42px;
}

/* Item icon */
.cg-slot-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  image-rendering: pixelated;
  pointer-events: none;
  filter: drop-shadow(1px 1px 1px rgba(0,0,0,0.5));
}

/* Quantity badge */
.cg-slot-qty {
  position: absolute;
  bottom: 1px;
  right: 3px;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  color: #ffffff;
  text-shadow:
    1px 1px 0 #000,
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000;
  line-height: 1;
  pointer-events: none;
  z-index: 2;
}

/* Text fallback for slots without icons */
.cg-slot-text {
  font-family: var(--font-body);
  font-size: 0.45rem;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 1px 1px 0 #3f3f3f;
  text-align: center;
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 44px;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-all;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  padding: 1px;
}

/* Arrow */
.cg-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3f3f3f;
  padding: 0 0.35rem;
}

/* Result area */
.cg-result-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.cg-result-area > .cg-slot,
.cg-process-result > .cg-slot {
  background: #8b8b8b;
  border: 2px solid;
  border-color: var(--cg-slot-border-dark) var(--cg-slot-border-light) var(--cg-slot-border-light) var(--cg-slot-border-dark);
}

.cg-result-name {
  font-size: 0.7rem;
  color: #3f3f3f;
  text-align: center;
  font-weight: 600;
  max-width: 80px;
  line-height: 1.25;
  text-shadow: 1px 1px 0 rgba(255,255,255,0.2);
}

/* Rarity slot glow */
.cg-slot.cg-rarity-uncommon { box-shadow: inset 0 0 6px rgba(255, 255, 85, 0.15); }
.cg-slot.cg-rarity-rare { box-shadow: inset 0 0 6px rgba(85, 255, 255, 0.15); }
.cg-slot.cg-rarity-epic { box-shadow: inset 0 0 6px rgba(255, 85, 255, 0.15); }

/* ── Processing recipes (smelting, mixing, crushing, etc.) ── */
.cg-process-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.cg-process-inputs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cg-process-input {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.cg-process-label {
  font-size: 0.8rem;
  color: #3f3f3f;
  font-weight: 500;
  white-space: nowrap;
  text-shadow: 1px 1px 0 rgba(255,255,255,0.2);
}

.cg-process-qty {
  font-size: 0.7rem;
  color: #555;
}

.cg-process-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .cg-body {
    padding: 0.75rem;
  }
  .cg-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
  .cg-layout,
  .cg-process-layout {
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
  }
  .cg-arrow svg {
    transform: rotate(90deg);
  }
  .cg-grid {
    --cg-slot-size: 44px;
  }
  .cg-slot {
    width: var(--cg-slot-size);
    height: var(--cg-slot-size);
  }
  .cg-slot--large {
    width: 50px;
    height: 50px;
  }
  .cg-slot-icon {
    width: 32px;
    height: 32px;
  }
  .cg-slot--large .cg-slot-icon {
    width: 38px;
    height: 38px;
  }
  .cg-slot-qty { font-size: 0.6rem; }
  .cg-slot-text { font-size: 0.4rem; max-width: 38px; }
}

/* === Processing Chain Block === */
.block-processing-chain h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 0.85rem;
}
.processing-chain-track {
  display: flex;
  align-items: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem 0;
  gap: 0;
}
.processing-chain-step {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.processing-chain-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background: var(--card);
  min-width: 80px;
  text-align: center;
  border: 1px solid var(--border);
}
.processing-chain-step--machine .processing-chain-node {
  border-color: rgba(75, 139, 229, 0.3);
  background: var(--bg-elevated);
}
.processing-chain-label {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  color: var(--text);
  white-space: nowrap;
}
.processing-chain-step--machine .processing-chain-label {
  color: var(--primary);
}
.processing-chain-annotation {
  font-size: 0.65rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}
.processing-chain-arrow {
  font-size: 1.1rem;
  color: var(--primary);
  padding: 0 0.4rem;
  flex-shrink: 0;
  font-weight: 700;
}
@media (max-width: 600px) {
  .processing-chain-track {
    flex-wrap: wrap;
    gap: 0.25rem;
  }
  .processing-chain-node {
    min-width: 60px;
    padding: 0.35rem 0.5rem;
  }
}

/*!********************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[3]!./src/app/(frontend)/tools/tools.css ***!
  \********************************************************************************************************************************************************************************************************************************************************************************/
/* === Tools Pages === */

/* Tools Index Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  grid-gap: 1rem;
  gap: 1rem;
  margin-top: 1.5rem;
}

.tool-card {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  transition: border-color 0.15s, background 0.15s;
  color: var(--text);
}
.tool-card:hover {
  border-color: var(--primary-dim);
  background: var(--card-hover);
  color: var(--text);
}
.tool-card--disabled {
  opacity: 0.5;
  cursor: default;
}
.tool-card--disabled:hover {
  border-color: var(--border);
  background: var(--card);
}

.tool-card-icon {
  font-size: 1.75rem;
  line-height: 1;
  flex-shrink: 0;
  width: 2.5rem;
  text-align: center;
}

.tool-card-body h3 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.tool-card-body p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.tool-card-soon {
  font-family: var(--font-body);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 0.15rem 0.4rem;
  font-weight: 600;
}

/* === Recipe Chain Calculator === */

.rc-container {
  margin-top: 1.5rem;
}

/* Search */
.rc-search {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.rc-search-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
}

.rc-input-wrap {
  flex: 1 1;
  position: relative;
}

.rc-input {
  width: 100%;
  padding: 0.6rem 0.85rem;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s;
}
.rc-input::placeholder {
  color: var(--muted);
}
.rc-input:focus {
  border-color: var(--primary-dim);
}

/* Autocomplete dropdown */
.rc-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-top: none;
  z-index: 50;
  max-height: 300px;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.rc-suggestion {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0.85rem;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  text-align: left;
  transition: background 0.1s;
}
.rc-suggestion:hover {
  background: var(--primary-subtle);
}
.rc-suggestion:last-child {
  border-bottom: none;
}

.rc-suggestion-icon {
  width: 20px;
  height: 20px;
  image-rendering: pixelated;
  flex-shrink: 0;
}

.rc-suggestion-name {
  flex: 1 1;
}

.rc-suggestion-id {
  font-size: 0.7rem;
  color: var(--muted);
  font-family: monospace;
}

/* Quantity */
.rc-qty-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.rc-qty-label {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.rc-qty-input {
  width: 70px;
  padding: 0.6rem 0.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-align: center;
  outline: none;
  transition: border-color 0.15s;
}
.rc-qty-input:focus {
  border-color: var(--primary-dim);
}

/* Calculate button */
.rc-calc-btn {
  padding: 0.6rem 1.5rem;
  background: var(--primary);
  color: var(--bg);
  border: none;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
  align-self: flex-end;
}
.rc-calc-btn:hover {
  background: var(--primary-dim);
}
.rc-calc-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Error */
.rc-error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #ef4444;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

/* Results */
.rc-results {
  background: var(--card);
  border: 1px solid var(--border);
  overflow: hidden;
}

/* Tabs */
.rc-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
}

.rc-tab {
  padding: 0.65rem 1.25rem;
  background: none;
  border: none;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.rc-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}
.rc-tab--active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Shopping List */
.rc-list-section {
  padding: 1rem;
}

.rc-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.rc-list-header h3 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
}

.rc-copy-btn {
  padding: 0.35rem 0.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.rc-copy-btn:hover {
  border-color: var(--primary-dim);
  color: var(--primary);
}

.rc-list-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border);
}

.rc-list-table thead th {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
  background: var(--bg-elevated);
  padding: 0.5rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.rc-list-table thead th:last-child {
  text-align: right;
  width: 100px;
}

.rc-list-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.rc-list-table tbody tr:last-child {
  border-bottom: none;
}
.rc-list-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.01);
}
.rc-list-table tbody tr:hover {
  background: rgba(212, 162, 76, 0.03);
}

.rc-list-table td {
  padding: 0.45rem 0.75rem;
  font-size: 0.88rem;
}

.rc-list-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rc-list-icon {
  width: 20px;
  height: 20px;
  image-rendering: pixelated;
  flex-shrink: 0;
}

.rc-list-qty {
  text-align: right;
  font-weight: 600;
  color: var(--primary);
  font-family: monospace;
}

/* Tree View */
.rc-tree-section {
  padding: 1rem;
}

.rc-tree-section h3 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.rc-tree-node {
  border-left: 2px solid var(--tree-color, var(--border));
  margin-left: 0.5rem;
}

.rc-tree-node:first-child {
  margin-left: 0;
}

.rc-tree-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.5rem;
  font-size: 0.88rem;
  transition: background 0.1s;
}

.rc-tree-row--expandable {
  cursor: pointer;
}
.rc-tree-row--expandable:hover {
  background: rgba(255, 255, 255, 0.02);
}

.rc-tree-arrow {
  font-size: 0.5rem;
  color: var(--tree-color, var(--primary));
  transition: transform 0.15s;
  flex-shrink: 0;
  width: 0.75rem;
  text-align: center;
}
.rc-tree-arrow--open {
  transform: rotate(90deg);
}

.rc-tree-dot {
  width: 6px;
  height: 6px;
  background: var(--tree-color, var(--border-light));
  flex-shrink: 0;
  margin: 0 0.2rem;
}

.rc-tree-qty {
  font-weight: 600;
  color: var(--primary);
  font-family: monospace;
  font-size: 0.8rem;
  min-width: 2.5rem;
}

.rc-tree-name {
  color: var(--text);
}

.rc-tree-type {
  font-size: 0.68rem;
  color: var(--muted);
  margin-left: 0.25rem;
  padding: 0.1rem 0.35rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.rc-tree-base {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-blue);
  font-weight: 600;
}

.rc-tree-children {
  padding-left: 0.75rem;
}

/* Responsive — Recipe Chain */
@media (max-width: 600px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }

  .rc-search-row {
    flex-direction: column;
    align-items: stretch;
  }

  .rc-qty-wrap {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
  }

  .rc-qty-input {
    flex: 1 1;
  }

  .rc-calc-btn {
    align-self: stretch;
    text-align: center;
  }

  .rc-tree-node {
    margin-left: 0.25rem;
  }

  .rc-tree-children {
    padding-left: 0.5rem;
  }
}

/* === Enchantment Calculator === */

.ec-container {
  margin-top: 1.5rem;
}

.ec-section {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.ec-section-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ec-enchant-count {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--primary);
  background: rgba(212, 162, 76, 0.08);
  border: 1px solid rgba(212, 162, 76, 0.2);
  padding: 0.15rem 0.4rem;
  font-weight: 600;
}

/* Item selection */
.ec-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ec-item-group {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.ec-item-group-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 600;
  min-width: 60px;
  padding-top: 0.35rem;
  flex-shrink: 0;
}

.ec-item-group-items {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.ec-item-btn {
  padding: 0.3rem 0.6rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.78rem;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.ec-item-btn:hover {
  border-color: var(--border-hover);
  color: var(--text);
}
.ec-item-btn--active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(212, 162, 76, 0.06);
}

/* Selected enchantments */
.ec-selected {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 1rem;
}

.ec-selected-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.65rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.ec-selected-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
  min-width: 140px;
}

.ec-level-select {
  display: flex;
  gap: 2px;
}

.ec-level-btn {
  padding: 0.2rem 0.45rem;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.72rem;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.ec-level-btn:hover {
  border-color: var(--border-hover);
  color: var(--text);
}
.ec-level-btn--active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(212, 162, 76, 0.06);
  font-weight: 700;
}

.ec-remove-btn {
  margin-left: auto;
  padding: 0.15rem 0.4rem;
  background: none;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.15s;
  line-height: 1;
}
.ec-remove-btn:hover {
  color: var(--accent-red);
}

/* Available enchantments to add */
.ec-available {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.ec-add-btn {
  padding: 0.25rem 0.5rem;
  background: none;
  border: 1px dashed var(--border);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.75rem;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.ec-add-btn:hover {
  border-color: var(--primary-dim);
  color: var(--primary);
}

.ec-all-added {
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
}

/* Calculate button */
.ec-calculate-btn {
  display: block;
  width: 100%;
  padding: 0.75rem;
  background: var(--primary);
  color: var(--bg);
  border: none;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.15s;
  margin-bottom: 1rem;
}
.ec-calculate-btn:hover {
  background: var(--primary-dim);
}
.ec-calculate-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Results */
.ec-results {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1.25rem;
}

.ec-warning {
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-left: 3px solid #f59e0b;
  color: #f59e0b;
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

/* Steps */
.ec-steps {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 1rem;
}

.ec-step {
  display: flex;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.ec-step-number {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--primary);
  min-width: 1.5rem;
  text-align: center;
  flex-shrink: 0;
}

.ec-step-content {
  flex: 1 1;
}

.ec-step-merge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.2rem;
}

.ec-step-left {
  font-weight: 600;
  color: var(--text);
  font-size: 0.88rem;
}

.ec-step-plus {
  color: var(--muted);
  font-size: 0.8rem;
}

.ec-step-right {
  color: var(--accent-purple);
  font-size: 0.88rem;
  font-weight: 500;
}

.ec-step-cost {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  flex-wrap: wrap;
}

.ec-step-levels {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
}

.ec-step-xp {
  font-size: 0.72rem;
  color: var(--muted);
}

.ec-step-penalty {
  font-size: 0.68rem;
  color: var(--accent-orange);
  font-style: italic;
}

/* Totals */
.ec-totals {
  border: 1px solid var(--border);
}

.ec-total-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
}
.ec-total-row:last-child {
  border-bottom: none;
}

.ec-total-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.ec-total-value {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
}

.ec-total-row--highlight {
  background: rgba(212, 162, 76, 0.04);
}
.ec-total-row--highlight .ec-total-label {
  color: var(--primary);
  font-weight: 600;
}
.ec-total-row--highlight .ec-total-value {
  color: var(--primary);
}

/* Responsive — Enchantment Calc */
@media (max-width: 600px) {
  .ec-item-group {
    flex-direction: column;
    gap: 0.25rem;
  }

  .ec-item-group-label {
    min-width: auto;
    padding-top: 0;
  }

  .ec-selected-item {
    flex-wrap: wrap;
  }

  .ec-selected-name {
    min-width: 100px;
  }
}

/* === Command Generator === */

.cg-gen-intro {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  max-width: 680px;
}
.cg-gen-intro p {
  margin: 0;
}

.cg-gen-container {
  margin-top: 0;
}

/* Tabs */
.cg-gen-tabs {
  display: flex;
  gap: 2px;
  margin-bottom: 1rem;
}

.cg-gen-tab {
  padding: 0.55rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.cg-gen-tab:hover {
  color: var(--text);
}
.cg-gen-tab--active {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(212, 162, 76, 0.06);
}

/* Version Selector */
.cg-gen-version {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.cg-gen-version-label {
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin-right: 0.25rem;
}
.cg-gen-version-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.4rem 0.75rem;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.75rem;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.cg-gen-version-btn:hover {
  color: var(--text);
}
.cg-gen-version-btn--active {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(212, 162, 76, 0.06);
}
.cg-gen-version-note {
  font-size: 0.6rem;
  opacity: 0.6;
  margin-top: 1px;
}

/* Output */
.cg-gen-output {
  background: var(--bg);
  border: 1px solid var(--primary-dim);
  padding: 1rem;
  margin-bottom: 1.25rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  transition: border-color 0.3s;
}
.cg-gen-output--flash {
  border-color: #4caf50;
}

.cg-gen-command {
  flex: 1 1;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  color: var(--primary);
  word-break: break-all;
  line-height: 1.5;
  white-space: pre-wrap;
}

.cg-gen-copy {
  padding: 0.35rem 0.75rem;
  background: var(--primary);
  color: var(--bg);
  border: none;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
}
.cg-gen-copy:hover {
  background: var(--primary-dim);
}

/* Sections */
.cg-gen-section {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1rem;
  margin-bottom: 0.5rem;
}

.cg-gen-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cg-gen-badge {
  font-family: var(--font-body);
  font-size: 0.65rem;
  color: var(--primary);
  background: rgba(212, 162, 76, 0.08);
  border: 1px solid rgba(212, 162, 76, 0.2);
  padding: 0.1rem 0.35rem;
  font-weight: 600;
}

/* Inputs */
.cg-gen-input {
  width: 100%;
  padding: 0.5rem 0.65rem;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.15s;
}
.cg-gen-input::placeholder {
  color: var(--muted);
}
.cg-gen-input:focus {
  border-color: var(--primary-dim);
}
.cg-gen-input--short {
  width: 180px;
}
.cg-gen-filter {
  margin-bottom: 0.65rem;
}

.cg-gen-textarea {
  width: 100%;
  padding: 0.5rem 0.65rem;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  resize: vertical;
  transition: border-color 0.15s;
}
.cg-gen-textarea::placeholder {
  color: var(--muted);
}
.cg-gen-textarea:focus {
  border-color: var(--primary-dim);
}

/* Target buttons */
.cg-gen-target-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 0.5rem;
}

.cg-gen-target-btn {
  padding: 0.35rem 0.65rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.78rem;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.cg-gen-target-btn:hover {
  border-color: var(--border-hover);
  color: var(--text);
}
.cg-gen-target-btn--active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(212, 162, 76, 0.06);
}

/* Item/Entity grids */
.cg-gen-item-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 280px;
  overflow-y: auto;
  margin-bottom: 0.5rem;
}

.cg-gen-item-category {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.cg-gen-category-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 600;
  min-width: 65px;
  padding-top: 0.3rem;
  flex-shrink: 0;
}

.cg-gen-category-items {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

.cg-gen-item-btn {
  padding: 0.25rem 0.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.75rem;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.cg-gen-item-btn:hover {
  border-color: var(--border-hover);
  color: var(--text);
}
.cg-gen-item-btn--active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(212, 162, 76, 0.06);
}

.cg-gen-custom-id {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.cg-gen-small-label {
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
}

/* Position fields */
.cg-gen-pos-grid {
  display: flex;
  gap: 0.5rem;
}

.cg-gen-pos-field {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.cg-gen-pos-field label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  min-width: 1rem;
}

.cg-gen-pos-field .cg-gen-input {
  width: 80px;
}

/* Checkboxes */
.cg-gen-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cg-gen-checkbox {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.cg-gen-checkbox input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* Enchantment list */
.cg-gen-enchant-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 0.65rem;
}

.cg-gen-enchant-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.cg-gen-enchant-name {
  font-size: 0.82rem;
  color: var(--text);
  flex: 1 1;
}

.cg-gen-enchant-level {
  width: 55px;
  padding: 0.2rem 0.35rem;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--primary);
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-align: center;
  outline: none;
}
.cg-gen-enchant-level:focus {
  border-color: var(--primary-dim);
}

.cg-gen-enchant-remove {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1rem;
  cursor: pointer;
  padding: 0 0.25rem;
  line-height: 1;
}
.cg-gen-enchant-remove:hover {
  color: var(--accent-red);
}

.cg-gen-enchant-add {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  max-height: 150px;
  overflow-y: auto;
}

.cg-gen-enchant-add-btn {
  padding: 0.2rem 0.4rem;
  background: none;
  border: 1px dashed var(--border);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.72rem;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.cg-gen-enchant-add-btn:hover {
  border-color: var(--primary-dim);
  color: var(--primary);
}

/* Count presets */
.cg-gen-count-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.cg-gen-count-presets {
  display: flex;
  gap: 3px;
}
.cg-gen-count-preset {
  padding: 0.35rem 0.65rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.78rem;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.cg-gen-count-preset:hover {
  border-color: var(--border-hover);
  color: var(--text);
}
.cg-gen-count-preset--active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(212, 162, 76, 0.06);
}

/* Clear button */
.cg-gen-clear-btn {
  margin-left: auto;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.65rem;
  padding: 0.15rem 0.45rem;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.cg-gen-clear-btn:hover {
  border-color: var(--accent-red, #e57373);
  color: var(--accent-red, #e57373);
}

/* Gamemode grid */
.cg-gen-gamemode-grid {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.cg-gen-gamemode-btn {
  padding: 0.5rem 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.cg-gen-gamemode-btn:hover {
  border-color: var(--border-hover);
  color: var(--text);
}
.cg-gen-gamemode-btn--active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(212, 162, 76, 0.06);
}

/* Effect grid */
.cg-gen-effect-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  max-height: 200px;
  overflow-y: auto;
}

.cg-gen-effect-options {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cg-gen-effect-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cg-gen-effect-field .cg-gen-input {
  width: 120px;
}

/* Kill presets */
.cg-gen-hint {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 0.65rem;
  line-height: 1.4;
}
.cg-gen-kill-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.cg-gen-kill-preset {
  display: flex;
  flex-direction: column;
  padding: 0.4rem 0.65rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.cg-gen-kill-preset:hover {
  border-color: var(--border-hover);
  color: var(--text);
}
.cg-gen-kill-preset--active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(212, 162, 76, 0.06);
}
.cg-gen-kill-preset-label {
  font-size: 0.75rem;
  font-weight: 500;
}
.cg-gen-kill-preset-value {
  font-size: 0.6rem;
  font-family: 'Courier New', monospace;
  opacity: 0.6;
  margin-top: 1px;
}

/* Execute builder */
.cg-gen-execute-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  margin-bottom: 3px;
}
.cg-gen-execute-step-type {
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 600;
  font-family: 'Courier New', monospace;
  min-width: 90px;
  flex-shrink: 0;
}
.cg-gen-execute-select {
  padding: 0.3rem 0.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.82rem;
  outline: none;
  flex: 1 1;
  min-width: 0;
}
.cg-gen-execute-select:focus {
  border-color: var(--primary-dim);
}
.cg-gen-execute-pos {
  display: flex;
  gap: 4px;
  flex: 1 1;
  min-width: 0;
}
.cg-gen-execute-coord {
  width: 60px;
  padding: 0.25rem 0.35rem;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  text-align: center;
  outline: none;
}
.cg-gen-execute-coord:focus {
  border-color: var(--primary-dim);
}
.cg-gen-execute-add {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 0.5rem;
}

/* Responsive — Command Generator */
@media (max-width: 600px) {
  .cg-gen-container {
    margin-top: 1rem;
  }

  /* Tabs: fill width evenly */
  .cg-gen-tabs {
    gap: 0;
  }
  .cg-gen-tab {
    flex: 1 1;
    text-align: center;
    padding: 0.5rem 0.5rem;
    font-size: 0.75rem;
  }

  /* Version: stack vertically */
  .cg-gen-version {
    flex-wrap: wrap;
    gap: 4px;
  }
  .cg-gen-version-label {
    width: 100%;
    margin-bottom: 2px;
  }
  .cg-gen-version-btn {
    flex: 1 1;
    min-width: 0;
    padding: 0.35rem 0.4rem;
    font-size: 0.7rem;
    text-align: center;
  }
  .cg-gen-version-note {
    font-size: 0.55rem;
  }

  /* Output: stack & better mobile readability */
  .cg-gen-output {
    flex-direction: column;
    padding: 0.75rem;
  }
  .cg-gen-command {
    font-size: 0.78rem;
    word-break: break-all;
  }
  .cg-gen-copy {
    align-self: stretch;
    text-align: center;
    padding: 0.45rem 0.75rem;
  }

  /* Sections: tighter padding */
  .cg-gen-section {
    padding: 0.75rem;
  }

  /* Target buttons: wrap nicely */
  .cg-gen-target-grid {
    gap: 3px;
  }
  .cg-gen-target-btn {
    font-size: 0.72rem;
    padding: 0.3rem 0.5rem;
  }

  /* Item/entity categories: stack */
  .cg-gen-item-category {
    flex-direction: column;
    gap: 0.25rem;
  }
  .cg-gen-category-label {
    min-width: auto;
    padding-top: 0.15rem;
  }

  /* Item/entity grids: taller scroll area */
  .cg-gen-item-grid {
    max-height: 220px;
  }

  /* Custom ID: stack */
  .cg-gen-custom-id {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }
  .cg-gen-input--short {
    width: 100%;
  }

  /* Position: row with equal fields */
  .cg-gen-pos-grid {
    gap: 0.35rem;
  }
  .cg-gen-pos-field {
    flex: 1 1;
    min-width: 0;
  }
  .cg-gen-pos-field .cg-gen-input {
    width: 100%;
  }

  /* Checkboxes: 2-column */
  .cg-gen-checkboxes {
    gap: 0.5rem 0.75rem;
  }
  .cg-gen-checkbox {
    font-size: 0.8rem;
    min-width: calc(50% - 0.5rem);
  }

  /* Enchantments: full width level input */
  .cg-gen-enchant-row {
    padding: 0.25rem 0.4rem;
  }
  .cg-gen-enchant-name {
    font-size: 0.78rem;
  }
  .cg-gen-enchant-level {
    width: 45px;
  }

  /* Enchantment add buttons: taller area */
  .cg-gen-enchant-add {
    max-height: 120px;
  }
  .cg-gen-enchant-add-btn {
    font-size: 0.68rem;
    padding: 0.2rem 0.35rem;
  }

  /* Effect grid */
  .cg-gen-effect-grid {
    max-height: 180px;
  }
  .cg-gen-effect-options {
    flex-direction: column;
    gap: 0.5rem;
  }
  .cg-gen-effect-field .cg-gen-input {
    width: 100%;
  }

  /* Labels: slightly smaller */
  .cg-gen-label {
    font-size: 0.7rem;
    margin-bottom: 0.5rem;
  }

  /* Count presets */
  .cg-gen-count-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }
  .cg-gen-count-presets {
    gap: 3px;
  }
  .cg-gen-count-preset {
    flex: 1 1;
    text-align: center;
  }

  /* Gamemode: fill width */
  .cg-gen-gamemode-btn {
    flex: 1 1;
    text-align: center;
    padding: 0.45rem 0.5rem;
    font-size: 0.75rem;
  }

  /* Tabs: smaller for 7 tabs */
  .cg-gen-tab {
    padding: 0.4rem 0.2rem;
    font-size: 0.62rem;
  }

  /* Kill presets: 2 column */
  .cg-gen-kill-presets {
    gap: 3px;
  }
  .cg-gen-kill-preset {
    min-width: calc(50% - 2px);
    flex: 1 1;
    padding: 0.35rem 0.5rem;
  }
  .cg-gen-kill-preset-label {
    font-size: 0.7rem;
  }

  /* Execute steps */
  .cg-gen-execute-step {
    flex-wrap: wrap;
    gap: 0.35rem;
  }
  .cg-gen-execute-step-type {
    min-width: auto;
    font-size: 0.72rem;
  }
  .cg-gen-execute-select {
    flex: 1 1;
    min-width: 120px;
  }
  .cg-gen-execute-coord {
    width: 50px;
    font-size: 0.75rem;
  }
}

/* === Mod Finder Quiz === */

.mf-container {
  margin-top: 1.5rem;
  max-width: 680px;
}

/* Progress */
.mf-progress {
  height: 3px;
  background: var(--border);
  margin-bottom: 0.5rem;
}
.mf-progress-bar {
  height: 100%;
  background: var(--primary);
  transition: width 0.3s ease;
}
.mf-step-count {
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

/* Question */
.mf-question {
  margin-bottom: 1.25rem;
}
.mf-question-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.mf-question-subtitle {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* Options */
.mf-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 1.5rem;
}
.mf-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.88rem;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  text-align: left;
}
.mf-option:hover {
  border-color: var(--border-hover);
  color: var(--text);
  background: var(--card-hover);
}
.mf-option--selected {
  border-color: var(--primary);
  color: var(--text);
  background: rgba(212, 162, 76, 0.06);
}
.mf-option-icon {
  font-size: 1.15rem;
  width: 1.5rem;
  text-align: center;
  flex-shrink: 0;
}
.mf-option-label {
  flex: 1 1;
}

/* Navigation */
.mf-nav {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}
.mf-nav-btn {
  padding: 0.55rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.mf-nav-btn--back {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.mf-nav-btn--back:hover {
  border-color: var(--border-hover);
  color: var(--text);
}
.mf-nav-btn--next {
  background: var(--primary);
  border: 1px solid var(--primary);
  color: var(--bg);
}
.mf-nav-btn--next:hover {
  background: var(--primary-dim);
  border-color: var(--primary-dim);
}
.mf-nav-btn--next:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Results */
.mf-results-header {
  margin-bottom: 1.5rem;
}
.mf-results-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.mf-results-subtitle {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}
.mf-restart-btn {
  padding: 0.4rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.mf-restart-btn:hover {
  border-color: var(--primary-dim);
  color: var(--primary);
}

.mf-results-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mf-result-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1rem;
  position: relative;
}

.mf-result-rank {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  color: var(--muted);
}

.mf-result-header {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.5rem;
}
.mf-result-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.mf-result-info {
  flex: 1 1;
  min-width: 0;
}
.mf-result-name {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 0.15rem;
}
.mf-result-meta {
  display: flex;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: var(--muted);
}
.mf-result-loader {
  text-transform: capitalize;
  color: var(--text-secondary);
}

.mf-result-summary {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.mf-result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-bottom: 0.5rem;
}
.mf-result-tag {
  font-size: 0.62rem;
  padding: 0.15rem 0.4rem;
  background: rgba(212, 162, 76, 0.06);
  border: 1px solid rgba(212, 162, 76, 0.15);
  color: var(--primary-dim);
}

.mf-result-actions {
  display: flex;
  gap: 0.5rem;
}
.mf-result-link {
  font-size: 0.72rem;
  font-family: var(--font-heading);
  padding: 0.3rem 0.65rem;
  background: var(--primary);
  color: var(--bg);
  border: 1px solid var(--primary);
  transition: background 0.15s;
}
.mf-result-link:hover {
  background: var(--primary-dim);
  color: var(--bg);
}
.mf-result-link--secondary {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}
.mf-result-link--secondary:hover {
  border-color: var(--border-hover);
  color: var(--text);
  background: transparent;
}

/* Responsive — Mod Finder */
@media (max-width: 600px) {
  .mf-container {
    margin-top: 1rem;
  }
  .mf-question-text {
    font-size: 0.95rem;
  }
  .mf-option {
    padding: 0.65rem 0.75rem;
    font-size: 0.82rem;
  }
  .mf-nav-btn {
    flex: 1 1;
    text-align: center;
    padding: 0.5rem 1rem;
  }
  .mf-result-header {
    gap: 0.5rem;
  }
  .mf-result-logo {
    width: 32px;
    height: 32px;
  }
}

/* === Tier Lists === */

.tier-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 0.75rem;
  gap: 0.75rem;
}

.tier-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-gap: 0.75rem;
  gap: 0.75rem;
  align-items: center;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 0.75rem;
}

.tier-rank {
  width: 2.2rem;
  text-align: center;
  font-weight: 700;
  color: var(--primary);
}

.tier-mod-name {
  color: var(--text);
  font-weight: 600;
}

.tier-mod-summary {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0.2rem;
}

.tier-mod-meta {
  display: flex;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.75rem;
  margin-top: 0.4rem;
  flex-wrap: wrap;
}

.tier-vote {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.tier-vote-btn {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-secondary);
  width: 1.8rem;
  height: 1.8rem;
  cursor: pointer;
}

.tier-vote-btn:hover { border-color: var(--primary); color: var(--primary); }
.tier-vote-btn--active { border-color: var(--primary); color: var(--primary); }
.tier-vote-btn--down.tier-vote-btn--active { color: var(--accent-red); border-color: var(--accent-red); }

.tier-vote-score {
  min-width: 2.5rem;
  text-align: center;
  font-weight: 600;
}

.tier-build-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 0.9rem;
  gap: 0.9rem;
  margin-top: 0.9rem;
}

.tier-build-card {
  border: 1px solid var(--border);
  background: var(--card);
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: var(--text);
}

.tier-build-header {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
}

/* === Guide Tracks === */

.track-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  grid-gap: 1rem;
  gap: 1rem;
}

.track-card {
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1rem;
}

.track-card h2 {
  margin-bottom: 0.6rem;
}

.track-form-group {
  margin-bottom: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.track-form-group label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.track-pills {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.track-card--result h3 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.track-list {
  display: grid;
  grid-gap: 0.5rem;
  gap: 0.5rem;
}

@media (max-width: 920px) {
  .track-layout {
    grid-template-columns: 1fr;
  }

  .tier-build-grid {
    grid-template-columns: 1fr;
  }
}

/*!***************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[3]!./src/app/(frontend)/styles.css ***!
  \***************************************************************************************************************************************************************************************************************************************************************************/
/* === Minecraft Mod Guides — Design System === */

@font-face {
  font-family: 'Minecrafter';
  src: url('/fonts/Minecrafter.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Minecrafter Alt';
  src: url('/fonts/Minecrafter-Alt.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Headings only — pixel fonts */
  --font-heading: 'Minecrafter', 'Courier New', monospace;
  --font-heading-alt: 'Minecrafter Alt', 'Courier New', monospace;
  /* Body text — always clean and readable */
  --font-body: 'Trebuchet MS', 'Verdana', system-ui, sans-serif;

  /* Palette: Deep Blue + Electric Blue accent */
  --primary: #4b8be5;
  --primary-dim: #3b6ec2;
  --primary-dark: #2b54a0;
  --primary-glow: rgba(75, 139, 229, 0.12);
  --primary-subtle: rgba(75, 139, 229, 0.06);

  --bg: #0b0f1a;
  --bg-elevated: #111827;
  --bg-surface: #162033;
  --card: #131b2e;
  --card-hover: #1a2540;

  --text: #d6dce8;
  --text-secondary: #8892a8;
  --muted: #556178;

  --border: #1b2743;
  --border-light: #243352;
  --border-hover: #3b5eaa;

  --accent-orange: #e8923a;
  --accent-red: #e05454;
  --accent-blue: #4dc4bf;
  --accent-purple: #8a5de8;

  --radius: 0.25rem;
  --radius-sm: 0.1875rem;
  --radius-lg: 0.375rem;

  /* Minecraft-modern shadow system:
     inner inset highlight (lighter) + bottom emboss (darker) + ambient drop shadow */
  --card-shadow:
    rgba(59, 94, 170, 0.28) 0px -1px 0px inset,
    rgb(27, 39, 67) 0px 2px 0px,
    rgba(0, 0, 0, 0.26) 0px 4px 7px;
  --card-shadow-hover:
    rgba(59, 94, 170, 0.35) 0px -1px 0px inset,
    rgb(27, 39, 67) 0px 3px 0px,
    rgba(0, 0, 0, 0.3) 0px 6px 12px,
    rgba(75, 139, 229, 0.08) 0px 0px 20px;

  /* Legacy compat for emboss vars still referenced */
  --emboss-highlight: rgba(59, 94, 170, 0.28);
  --emboss-shadow: rgba(0, 0, 0, 0.5);
  --emboss-size: 2px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--primary-dim); }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dim); }

/* ===================== */
/*        HEADER         */
/* ===================== */

.site-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  box-shadow:
    rgba(59, 94, 170, 0.15) 0px -1px 0px inset,
    rgb(11, 15, 26) 0px 2px 0px,
    rgba(0, 0, 0, 0.35) 0px 4px 12px;
}

.site-header nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 1.5rem;
  gap: 0.75rem;
}

.site-header .logo {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--text);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.logo-icon {
  color: var(--primary);
  font-size: 1.1rem;
}

.site-header .nav-links {
  display: flex;
  gap: 0.15rem;
  align-items: center;
}

.site-header .nav-links a {
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}

.site-header .nav-links a:hover {
  color: var(--text);
  background: rgba(75, 139, 229, 0.08);
}

.header-rune-border { display: none; }

/* "More" dropdown */
.nav-more {
  position: relative;
  display: inline-block;
}
.nav-more summary {
  list-style: none;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 500;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}
.nav-more summary::-webkit-details-marker { display: none; }
.nav-more summary:hover { color: var(--text); background: rgba(75, 139, 229, 0.08); }
.nav-more-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 0.4rem;
  min-width: 190px;
  z-index: 200;
  box-shadow:
    var(--card-shadow),
    0 16px 48px rgba(0, 0, 0, 0.4);
}
.nav-more-dropdown a {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
}
.nav-more-dropdown a:hover {
  color: var(--text);
  background: rgba(75, 139, 229, 0.08);
}
.nav-more-section-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 0.5rem 0.75rem 0.25rem;
  font-weight: 600;
}
.nav-more-divider {
  height: 1px;
  background: var(--border);
  margin: 0.25rem 0.5rem;
}

/* Bosses/category dropdown */
.nav-dropdown {
  position: relative;
  display: inline-block;
}
.nav-dropdown summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.nav-dropdown summary::-webkit-details-marker { display: none; }
.nav-dropdown summary a {
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}
.nav-dropdown summary a:hover { color: var(--primary); background: var(--primary-subtle); }
.nav-dropdown summary::after {
  content: '\25BE';
  font-size: 0.55rem;
  margin-left: 0.15rem;
  color: var(--muted);
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 0.35rem;
  min-width: 200px;
  z-index: 200;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
.nav-dropdown-header {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--primary) !important;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  border-radius: var(--radius-sm);
}
.nav-dropdown-header:hover { background: var(--primary-subtle); }
.nav-dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 0.25rem 0.5rem;
}
.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  color: var(--text-secondary);
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}
.nav-dropdown-item:hover {
  color: var(--primary);
  background: var(--primary-subtle);
}
.nav-dropdown-number {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--muted);
  flex-shrink: 0;
}
.nav-dropdown-item:hover .nav-dropdown-number {
  border-color: var(--primary);
  color: var(--primary);
}

/* Mobile nav */
.mobile-nav-toggle {
  display: none;
  position: relative;
}
.mobile-nav-toggle summary {
  list-style: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1rem;
}
.mobile-nav-toggle summary::-webkit-details-marker { display: none; }

.mobile-nav-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 0.4rem;
  min-width: 220px;
  z-index: 200;
  box-shadow:
    var(--card-shadow),
    0 16px 48px rgba(0, 0, 0, 0.4);
}
.mobile-nav-dropdown a {
  display: block;
  padding: 0.55rem 0.85rem;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
}
.mobile-nav-dropdown a:hover { color: var(--text); background: rgba(75, 139, 229, 0.08); }
.mobile-nav-section-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 0.5rem 0.75rem 0.2rem;
  font-weight: 600;
}

@media (max-width: 900px) {
  .site-header .nav-links { display: none; }
  .mobile-nav-toggle { display: block; }
  .site-header nav { padding: 0.6rem 0.75rem; }
}

@media (max-width: 600px) {
  .site-main { padding: 1rem 0.75rem; }
}

/* ===================== */
/*         MAIN          */
/* ===================== */

.site-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* ===================== */
/*        FOOTER         */
/* ===================== */

.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow:
    rgba(59, 94, 170, 0.1) 0px 1px 0px inset;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--muted);
}

@media (max-width: 600px) {
  .footer-inner {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

/* ===================== */
/*         HERO          */
/* ===================== */

.hero {
  padding: 3rem 0 2rem;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-heading-alt);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}

.hero p {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 550px;
  margin: 0.75rem auto 0;
}

.hero-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.hero-divider {
  width: 60px;
  height: 2px;
  margin: 1.5rem auto 0;
  background: var(--border-light);
}

.hero-count {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* Card footer */
.card-footer {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.75rem;
}
.card-date {
  font-size: 0.7rem;
  color: var(--muted);
}

/* ===================== */
/*         GRID          */
/* ===================== */

.grid { display: grid; grid-gap: 1rem; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ===================== */
/*        CARDS          */
/* ===================== */

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 1.15rem;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  color: inherit;
  display: block;
  position: relative;
  box-shadow: var(--card-shadow);
}

.card::before { display: none; }

.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--card-shadow-hover);
}
.card:hover::before { opacity: 0.5; }

.card-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
}

.card h2, .card h3 {
  font-family: var(--font-heading);
  color: var(--text);
  margin-top: 0.4rem;
  font-size: 1rem;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-top: 0.4rem;
  line-height: 1.5;
}

/* Category cards */
.category-card {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--card);
}

.category-card::after { display: none; }

.category-icon {
  font-size: 1.75rem;
  display: block;
  margin-bottom: 0.4rem;
}

.category-card h2 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  margin-top: 0.2rem;
}

/* ===================== */
/*       SECTIONS        */
/* ===================== */

.section { margin-bottom: 2.5rem; }

.section h2 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--text);
  position: relative;
  display: inline-block;
}

.section h2::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary);
  opacity: 0.5;
}

/* Featured */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 1rem;
  gap: 1rem;
}
@media (max-width: 768px) {
  .featured-grid { grid-template-columns: 1fr; }
}

.featured-badge {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  background: rgba(75, 139, 229, 0.12);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(75, 139, 229, 0.2);
}

/* ===================== */
/*       HOMEPAGE        */
/* ===================== */

.hp { margin-top: -1rem; }

/* --- Hero --- */
.hp-hero {
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

.hp-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 2rem;
  gap: 2rem;
  align-items: center;
  padding: 3rem 0;
}

.hp-hero__title {
  font-family: var(--font-heading-alt);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.hp-hero__em {
  color: var(--primary);
  text-shadow: 0 0 40px rgba(75, 139, 229, 0.2);
}

.hp-hero__desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 0.85rem;
}

.hp-hero__search {
  margin-top: 1.25rem;
}

.hp-hero__search .search-box {
  width: 100%;
  max-width: 360px;
}

.hp-hero__search .search-box input {
  width: 100%;
  padding: 0.55rem 0.85rem;
  font-size: 0.88rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-surface);
  box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 4px inset;
}

.hp-hero__search .search-box input:focus {
  width: 100%;
  border-color: var(--primary-dim);
}

/* Hero feature card */
.hp-hero__card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: inherit;
  overflow: hidden;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  box-shadow: var(--card-shadow);
}

.hp-hero__card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--card-shadow-hover);
}

.hp-hero__card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border);
}

.hp-hero__card-body {
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hp-hero__card-label {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
}

.hp-hero__card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1.25;
}

.hp-hero__card-excerpt {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hp-hero__card-cta {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 0.25rem;
}

@media (max-width: 768px) {
  .hp-hero__inner {
    grid-template-columns: 1fr;
    padding: 2rem 0;
  }
  .hp-hero__title { font-size: 1.7rem; }
  .hp-hero__card-img { height: 140px; }
}

/* --- Stats bar --- */
.hp-stats {
  border-top: 1px solid var(--border);
  background: rgba(75, 139, 229, 0.03);
  padding: 0.75rem 0;
}

.hp-stats__inner {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hp-stats__item {
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.hp-stats__item strong {
  color: var(--primary);
  font-weight: 700;
}

/* --- Sections --- */
.hp-section {
  margin-bottom: 3.5rem;
}

.hp-section__title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.45rem;
}

.hp-section__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), rgba(75, 139, 229, 0.2));
  border-radius: 1px;
}

.hp-section__desc {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  max-width: 560px;
  line-height: 1.5;
}

/* --- Spotlight cards (top 3) --- */
.hp-spotlight {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 1rem;
  gap: 1rem;
  margin-top: 1.25rem;
}

.hp-spotlight__card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: inherit;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  box-shadow: var(--card-shadow);
}

.hp-spotlight__card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--card-shadow-hover);
}

.hp-spotlight__img-wrap {
  height: 140px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hp-spotlight__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hp-spotlight__body {
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1 1;
}

.hp-spotlight__cat {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
}

.hp-spotlight__title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.25;
}

.hp-spotlight__excerpt {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
  flex: 1 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 0.15rem;
}

.hp-spotlight__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.hp-spotlight__link {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
}

.hp-spotlight__card:hover .hp-spotlight__link {
  color: var(--primary);
}

@media (max-width: 900px) {
  .hp-spotlight { grid-template-columns: 1fr; }
}

/* --- Categories --- */
.hp-cats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-gap: 0.5rem;
  gap: 0.5rem;
}

.hp-cats__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: inherit;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  box-shadow: var(--card-shadow);
}

.hp-cats__item:hover {
  border-color: var(--border-hover);
  transform: translateY(-1px);
  box-shadow: var(--card-shadow-hover);
}

.hp-cats__item:hover .hp-cats__name {
  color: var(--primary);
}

.hp-cats__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 2rem;
  text-align: center;
}

.hp-cats__text {
  flex: 1 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.hp-cats__name {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--text);
  transition: color 0.15s;
}

.hp-cats__desc {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hp-cats__count {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--muted);
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .hp-cats { grid-template-columns: 1fr; }
}

/* --- Latest grid --- */
.hp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 0.75rem;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.hp-grid__card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  box-shadow: var(--card-shadow);
}

.hp-grid__card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--card-shadow-hover);
}

.hp-grid__link {
  display: flex;
  flex-direction: column;
  padding: 0.85rem;
  color: inherit;
  height: 100%;
}

.hp-grid__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.hp-grid__cat {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
}

.hp-grid__date {
  font-size: 0.6rem;
  color: var(--muted);
}

.hp-grid__title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.3;
}

.hp-grid__excerpt {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 0.25rem;
  flex: 1 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hp-grid__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.6rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.hp-grid__read {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.15s;
}

.hp-grid__card:hover .hp-grid__read {
  color: var(--primary);
}

@media (max-width: 1024px) {
  .hp-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .hp-grid { grid-template-columns: 1fr; }
}

/* --- About / SEO section --- */
.hp-about {
  border-top: 1px solid var(--border);
  padding-top: 3rem;
  margin-bottom: 2rem;
}

.hp-about__inner {
  max-width: 900px;
}

.hp-about__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.35rem;
}

.hp-about__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), rgba(75, 139, 229, 0.2));
  border-radius: 1px;
}

.hp-about__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 1.25rem;
  gap: 1.25rem;
}

.hp-about__point {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.15rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}

.hp-about__icon {
  font-size: 1.35rem;
  margin-bottom: 0.1rem;
}

.hp-about__point h3 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--text);
}

.hp-about__point p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 600px) {
  .hp-about__grid { grid-template-columns: 1fr; }
}

/* ===================== */
/*    ARTICLE PAGE       */
/* ===================== */

.article-page {
  max-width: 780px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  padding: 0.5rem 0.85rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: rgba(0, 0, 0, 0.15) 0px 1px 3px;
}
.breadcrumb a { color: var(--text-secondary); transition: color 0.15s; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { opacity: 0.3; color: var(--primary); }

.article-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.article-header h1,
.article-header h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  margin-top: 0.4rem;
  color: var(--text);
  line-height: 1.2;
}

.article-header .excerpt {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-top: 0.75rem;
  line-height: 1.7;
  max-width: 640px;
}

.article-header time { font-size: 0.75rem; color: var(--muted); }

.article-content { line-height: 1.75; }
.article-content h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  margin: 2rem 0 0.85rem;
}
.article-content h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin: 1.5rem 0 0.65rem;
  color: var(--primary);
}
.article-content p { margin: 0.85rem 0; }
.article-content ul, .article-content ol { margin: 0.85rem 0; padding-left: 1.5rem; }

/* Stats table */
.stats-table {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  border-collapse: collapse;
  background: var(--card);
}
.stats-table td, .stats-table th {
  padding: 0.55rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.stats-table tr:nth-child(even) { background: rgba(75, 139, 229, 0.03); }
.stats-table .label { color: var(--text-secondary); font-weight: 500; }
.stats-table thead { background: var(--bg-elevated); }
.stats-table th {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* Boss card (legacy) */
.boss-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
}
.boss-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  min-width: 3rem;
  text-align: center;
}

/* ===================== */
/*     BOSSES PAGE       */
/* ===================== */

.bosses-page { max-width: 860px; margin: 0 auto; }

.bosses-hero { text-align: center; padding: 3rem 0 2rem; }
.bosses-hero h1 {
  font-family: var(--font-heading-alt);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
}
.bosses-hero-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0.75rem auto 0;
  line-height: 1.6;
}
.bosses-hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.bosses-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}
.bosses-stat-value {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
}
.bosses-stat-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.bosses-stat-sep {
  width: 1px;
  height: 24px;
  background: var(--border-light);
  opacity: 0.4;
}

.bosses-section-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}
.bosses-section-title::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary);
  opacity: 0.5;
}
.bosses-section-desc {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

/* Timeline */
.bosses-timeline { position: relative; }
.boss-timeline-item {
  display: flex;
  gap: 1.15rem;
  margin-bottom: 0.4rem;
}
.boss-timeline-track {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 36px;
}
.boss-timeline-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--primary-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--primary);
  background: var(--bg);
  flex-shrink: 0;
  z-index: 1;
}
.boss-timeline-line {
  width: 2px;
  flex: 1 1;
  background: linear-gradient(180deg, var(--primary-dim) 0%, var(--border) 100%);
  opacity: 0.25;
  min-height: 16px;
}

.boss-timeline-card-wrapper { flex: 1 1; min-width: 0; }

.boss-timeline-card {
  display: block;
  border: 1px solid var(--border);
  border-left: 3px solid var(--border);
  background: var(--card);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  color: inherit;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  margin-bottom: 0.4rem;
  box-shadow: var(--card-shadow);
}
.boss-timeline-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--card-shadow-hover);
}

.boss-timeline-card-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.boss-timeline-portrait {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
}
.boss-timeline-portrait img { width: 100%; height: 100%; object-fit: contain; }
.boss-timeline-info { flex: 1 1; min-width: 0; }
.boss-timeline-info h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
}
.boss-timeline-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.3rem;
  flex-wrap: wrap;
}
.boss-biome-tag {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.12rem 0.45rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.boss-hp-tag {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent-red);
}
.boss-summon-hint {
  font-size: 0.72rem;
  color: var(--muted);
}
.boss-timeline-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.boss-timeline-arrow {
  font-size: 1.3rem;
  color: var(--border-light);
  transition: color 0.2s, transform 0.2s;
}
.boss-timeline-card:hover .boss-timeline-arrow {
  color: var(--primary);
  transform: translateX(3px);
}

.boss-timeline-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--border);
}
.boss-timeline-detail {
  display: flex;
  gap: 0.45rem;
  font-size: 0.78rem;
  line-height: 1.4;
}
.boss-detail-label {
  color: var(--primary-dark);
  font-weight: 600;
  flex-shrink: 0;
  min-width: 3.25rem;
}
.boss-detail-value { color: var(--text-secondary); }
.boss-timeline-excerpt {
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.5;
  margin-top: 0.5rem;
}

/* Defeated state */
.boss-timeline-item--defeated .boss-timeline-card { opacity: 0.5; }
.boss-timeline-item--defeated .boss-timeline-card:hover { opacity: 0.8; }

.boss-defeat-toggle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--border-light);
  background: transparent;
  color: var(--muted);
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  flex-shrink: 0;
}
.boss-defeat-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-subtle);
}
.boss-defeat-toggle--defeated {
  border-color: var(--primary-dim);
  color: var(--primary-dim);
  background: rgba(34, 197, 94, 0.1);
}
.boss-defeat-toggle--defeated:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Progress bar */
.boss-progress {
  max-width: 500px;
  margin: 0 auto 2.5rem;
  padding: 1rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.boss-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.boss-progress-title {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.boss-progress-count { font-size: 0.75rem; color: var(--muted); }
.boss-progress-bar {
  height: 5px;
  background: var(--bg);
  border-radius: 3px;
  overflow: hidden;
}
.boss-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-dim), var(--primary));
  border-radius: 3px;
  transition: width 0.4s ease;
}
.boss-progress-complete {
  font-size: 0.75rem;
  color: var(--primary);
  margin-top: 0.4rem;
  text-align: center;
}

/* ===================== */
/*    DIFFICULTY BADGE   */
/* ===================== */

.difficulty-badge {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.12rem 0.4rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
}
.difficulty-beginner { color: #4ade80; background: rgba(74, 222, 128, 0.1); }
.difficulty-intermediate { color: var(--primary); background: rgba(75, 139, 229, 0.1); }
.difficulty-advanced { color: #f59e0b; background: rgba(245, 158, 11, 0.1); }
.difficulty-expert { color: #ef4444; background: rgba(239, 68, 68, 0.1); }

/* ===================== */
/*   SEARCH & NAV TOOLS  */
/* ===================== */

.search-box {
  position: relative;
}
.search-box input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.75rem;
  color: var(--text);
  font-size: 0.84rem;
  width: 170px;
  transition: border-color 0.15s, width 0.2s, box-shadow 0.15s;
  font-family: var(--font-body);
  box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 4px inset;
}
.search-box input:focus {
  outline: none;
  border-color: var(--primary-dim);
  width: 220px;
  box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 4px inset, 0 0 0 2px rgba(75, 139, 229, 0.15);
}
.search-box input::placeholder { color: var(--muted); }

.random-guide-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  transition: border-color 0.15s, color 0.15s;
}
.random-guide-btn:hover {
  border-color: var(--primary-dim);
  color: var(--primary);
}

/* ===================== */
/*   SEASONAL BANNER     */
/* ===================== */

.seasonal-banner {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ===================== */
/*   TABLE OF CONTENTS   */
/* ===================== */

/* (inline TOC — unused, sidebar TOC below) */

/* ===================== */
/*    READING PROGRESS   */
/* ===================== */

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--primary);
  z-index: 200;
  transition: width 0.1s;
}

/* ===================== */
/*     BACK TO TOP       */
/* ===================== */

.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: opacity 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
  z-index: 50;
  box-shadow: var(--card-shadow);
}
.back-to-top:hover {
  background: var(--card);
  color: var(--primary);
  border-color: var(--border-hover);
  box-shadow: var(--card-shadow-hover);
}

/* ===================== */
/*     NOT FOUND         */
/* ===================== */

.not-found {
  text-align: center;
  padding: 4rem 1rem;
}
.not-found h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.not-found p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* ===================== */
/*   ARTICLE LAYOUT      */
/* ===================== */

.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  grid-gap: 2.5rem;
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.article-layout .article-main {
  min-width: 0;
}

.article-layout .article-sidebar {
  position: -webkit-sticky;
  position: sticky;
  top: 4.5rem;
  align-self: start;
  max-height: calc(100vh - 5rem);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(75, 139, 229, 0.15) transparent;
  padding: 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}

@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .article-layout .article-sidebar {
    position: static;
    max-height: none;
    order: -1;
    margin-bottom: 1.5rem;
  }
}

/* ===================== */
/*   INLINE TOC          */
/* ===================== */

.inline-toc {
  border: 1px solid rgba(75, 139, 229, 0.2);
  border-radius: var(--radius);
  margin: 1.25rem 0 1.75rem;
  background: rgba(75, 139, 229, 0.04);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.inline-toc-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 1.35rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: background 0.15s;
}
.inline-toc-toggle:hover {
  background: rgba(75, 139, 229, 0.06);
}
.inline-toc-toggle-label {
  pointer-events: none;
}
.inline-toc-chevron {
  font-size: 0.85rem;
  transition: transform 0.2s;
}
.inline-toc-chevron--open {
  transform: rotate(180deg);
}

.inline-toc-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 0 1.75rem;
  gap: 0 1.75rem;
  padding: 0 1.35rem 1rem;
}

.inline-toc-list {
  list-style: decimal;
  padding-left: 1.25rem;
  margin: 0;
}

.inline-toc-item {
  padding: 0.18rem 0;
  font-size: 0.85rem;
  line-height: 1.4;
}

.inline-toc-item--3 {
  padding-left: 0.75rem;
  font-size: 0.8rem;
  opacity: 0.75;
}

.inline-toc-item a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}

.inline-toc-item a:hover {
  color: var(--primary);
}

@media (max-width: 600px) {
  .inline-toc-columns {
    grid-template-columns: 1fr;
  }
}

/* ===================== */
/*  SIDEBAR TOC (sticky) */
/* ===================== */

.toc {
  margin-bottom: 1.5rem;
  background: none;
  border: none;
  position: relative;
}

.toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.toc-title {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  font-weight: 600;
}

.toc-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 0.15rem;
  line-height: 1;
}

@media (max-width: 900px) {
  .toc-mobile-toggle { display: block; }
  .toc-body { display: none; }
  .toc-body--open { display: block; }
}

.toc-body {
  position: relative;
}

/* Progress track */
.toc-track {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(75, 139, 229, 0.12);
  border-radius: 1px;
  z-index: 1;
}
.toc-track-fill {
  width: 100%;
  background: var(--primary);
  border-radius: 1px;
  transition: height 0.15s ease-out;
  box-shadow: 0 0 6px rgba(75, 139, 229, 0.4);
}

/* Scrollable area */
.toc-scroll {
  max-height: 55vh;
  overflow-y: auto;
  padding-left: 0.85rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  mask-image: linear-gradient(180deg, #000 0%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 92%, transparent 100%);
}
.toc-scroll::-webkit-scrollbar { display: none; }

/* Group */
.toc-group + .toc-group {
  margin-top: 0.1rem;
}

/* H2 row */
.toc-h2 {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}
.toc-h2-link {
  flex: 1 1;
  min-width: 0;
  display: block;
  padding: 0.28rem 0;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.15s;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.toc-h2-link:hover { color: var(--text); }
.toc-h2--active .toc-h2-link {
  color: var(--primary);
  font-weight: 600;
}

/* Expand button */
.toc-expand {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 0.15rem;
  line-height: 1;
  transition: transform 0.2s, color 0.15s;
}
.toc-expand svg {
  display: block;
}
.toc-expand:hover { color: var(--primary); }
.toc-expand--open {
  transform: rotate(90deg);
  color: var(--primary);
}

/* H3 children */
.toc-h3s {
  padding: 0.05rem 0 0.15rem 0;
}

.toc-h3 {
  display: block;
  padding: 0.15rem 0 0.15rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--muted);
  transition: color 0.15s;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-left: 1px solid rgba(75, 139, 229, 0.15);
}
.toc-h3:hover { color: var(--text); }
.toc-h3--active {
  color: var(--primary);
  font-weight: 500;
  border-left-color: var(--primary);
}

/* ===================== */
/*    ARTICLE META       */
/* ===================== */

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  margin-top: 0.85rem;
  font-size: 0.82rem;
  color: var(--muted);
  padding-top: 0.65rem;
}

.article-meta > *:not(:last-child)::after {
  content: '\00b7';
  margin-left: 0.75rem;
  color: var(--border-light);
  font-weight: 700;
}

.article-meta .featured-badge::after,
.article-meta .difficulty-badge::after {
  display: none;
}

.mod-genre-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}

.article-meta time {
  font-size: 0.78rem;
}

.read-time {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* ===================== */
/*    ARTICLE NAV        */
/* ===================== */

.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 0.85rem;
  gap: 0.85rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}

.article-nav-link {
  display: block;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: inherit;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  box-shadow: var(--card-shadow);
}

.article-nav-link:hover {
  border-color: var(--border-hover);
  transform: translateY(-1px);
  box-shadow: var(--card-shadow-hover);
}

.article-nav-link--next {
  text-align: right;
}

.article-nav-direction {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  font-family: var(--font-heading);
  margin-bottom: 0.2rem;
}

.article-nav-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--text);
}

@media (max-width: 600px) {
  .article-nav { grid-template-columns: 1fr; }
}

/* ===================== */
/*   RELATED SIDEBAR     */
/* ===================== */

.sidebar-related {
  margin-top: 1.5rem;
}

.sidebar-section {
  margin-bottom: 1.5rem;
}

.sidebar-section-title,
.sidebar-heading {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  font-weight: 600;
  border-bottom: 1px solid rgba(75, 139, 229, 0.2);
  padding-bottom: 0.35rem;
  margin-bottom: 0.5rem;
}

.sidebar-related-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-related-card {
  display: block;
  padding: 0.35rem 0.55rem;
  font-size: 0.78rem;
  color: var(--muted);
  border-left: 2px solid transparent;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.sidebar-related-card:hover {
  color: var(--text);
  border-left-color: var(--primary);
  background: rgba(75, 139, 229, 0.06);
}

/* ===================== */
/*  PROGRESSION SIDEBAR  */
/* ===================== */

.progression-sidebar {
  margin-bottom: 1.5rem;
  padding: 0.75rem;
  background: rgba(75, 139, 229, 0.04);
  border: 1px solid rgba(75, 139, 229, 0.15);
  border-radius: var(--radius);
}

.progression-sidebar-title {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.progression-sidebar-stage {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.progression-sidebar-nav {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.progression-sidebar-nav a {
  font-size: 0.72rem;
  color: var(--muted);
}

.progression-sidebar-nav a:hover {
  color: var(--primary);
}

/* ===================== */
/*   CHECKLISTS PAGE     */
/* ===================== */

.checklists-page { max-width: 800px; }

.checklists-category { margin-bottom: 2.5rem; }

.checklists-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.checklists-category-header h2 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin: 0;
}

.checklists-progress {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.checklists-progress-bar {
  width: 100px;
  height: 5px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.checklists-progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
  transition: width 0.3s;
}

.checklists-progress-text {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}

.checklists-article {
  margin-bottom: 1.25rem;
  padding: 0.85rem 1.15rem;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}

.checklists-article h3 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}

.checklists-article h3 a { color: var(--text); }
.checklists-article h3 a:hover { color: var(--primary); }

.checklists-block { margin-bottom: 0.4rem; }
.checklists-block h4 {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--primary);
  margin-bottom: 0.2rem;
}

/* ===================== */
/*     SEARCH PAGE       */
/* ===================== */

.search-page-form {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.search-page-input {
  flex: 1 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.95rem;
  font-size: 1rem;
  color: var(--text);
  font-family: var(--font-body);
  box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 4px inset;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.search-page-input:focus {
  outline: none;
  border-color: var(--primary-dim);
  box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 4px inset, 0 0 0 2px rgba(75, 139, 229, 0.15);
}

.search-page-btn {
  background: var(--primary);
  border: 1px solid var(--primary-dim);
  color: #fff;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: var(--font-body);
  box-shadow:
    rgba(59, 94, 170, 0.3) 0px -1px 0px inset,
    rgba(0, 0, 0, 0.3) 0px 2px 4px;
  transition: background 0.15s, box-shadow 0.15s;
}

.search-page-btn:hover {
  background: var(--primary-dim);
  box-shadow:
    rgba(59, 94, 170, 0.3) 0px -1px 0px inset,
    rgba(0, 0, 0, 0.35) 0px 3px 8px;
}

.search-results-count {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

/* ===================== */
/*   COMMUNITY TIPS      */
/* ===================== */

.community-tips-section {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}

.community-tips-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 0.85rem;
}

.community-tip-card {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  box-shadow: var(--card-shadow);
}

.community-tip-form {
  margin-top: 1.5rem;
  padding: 1rem 1.15rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}

.community-tip-form textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  resize: vertical;
  min-height: 80px;
  box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 4px inset;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.community-tip-form textarea:focus {
  outline: none;
  border-color: var(--primary-dim);
  box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 4px inset, 0 0 0 2px rgba(75, 139, 229, 0.15);
}

.community-tip-form button {
  margin-top: 0.5rem;
  background: var(--primary);
  border: 1px solid var(--primary-dim);
  color: #fff;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  font-family: var(--font-body);
  box-shadow:
    rgba(59, 94, 170, 0.3) 0px -1px 0px inset,
    rgba(0, 0, 0, 0.3) 0px 2px 4px;
  transition: background 0.15s;
}

.community-tip-form button:hover {
  background: var(--primary-dim);
}

/* ===================== */
/*  LOADOUTS PAGE        */
/* ===================== */

.loadouts-page { max-width: 900px; }

.loadout-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-gap: 1rem;
  gap: 1rem;
}

/* ===================== */
/*   GLOSSARY PAGE       */
/* ===================== */

.glossary-page { max-width: 800px; }

.glossary-letter-group { margin-bottom: 2rem; }
.glossary-letter {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.glossary-entry {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.glossary-term-name {
  font-weight: 600;
  color: var(--text);
}

.glossary-definition {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

/* ===================== */
/*   BOSSES RESPONSIVE   */
/* ===================== */

@media (max-width: 640px) {
  .bosses-hero h1 { font-size: 1.8rem; }
  .bosses-hero-stats { flex-wrap: wrap; gap: 0.85rem; }
  .bosses-stat-sep { display: none; }
  .boss-timeline-item { gap: 0.65rem; }
  .boss-timeline-track { width: 30px; }
  .boss-timeline-number { width: 28px; height: 28px; font-size: 0.75rem; }
  .boss-timeline-card { padding: 0.85rem; }
  .boss-timeline-card-header { flex-wrap: wrap; gap: 0.4rem; }
  .boss-timeline-portrait { width: 50px; height: 50px; }
  .boss-timeline-right { width: 100%; justify-content: space-between; margin-top: 0.2rem; }
  .boss-timeline-arrow { display: none; }
}

/* ===================== */
/*   BOSSES SEO CONTENT  */
/* ===================== */

.bosses-seo-content {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.bosses-seo-content h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 0.65rem;
  color: var(--text);
}
.bosses-seo-content h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin: 1.5rem 0 0.4rem;
  color: var(--text);
}
.bosses-seo-content p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 0.65rem;
}
.bosses-seo-content strong {
  color: var(--text);
  font-weight: 600;
}

/* Boss progress extras */
.boss-progress-next {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.4rem;
  text-transform: capitalize;
}

/* ===================== */
/*   PRINT STYLES        */
/* ===================== */

@media print {
  .site-header, .site-footer, .article-sidebar,
  .back-to-top, .reading-progress, .article-nav,
  .community-tip-form, .search-box, .random-guide-btn {
    display: none !important;
  }
  .article-layout {
    grid-template-columns: 1fr;
  }
  body { background: white; color: black; }
}

/* ================================ */
/*   MOD INFO PANEL (Sidebar)       */
/* ================================ */

.mod-info-panel {
  background: linear-gradient(180deg, rgba(75, 139, 229, 0.04) 0%, transparent 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.mod-info-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem;
  border-bottom: 1px solid var(--border);
  background: rgba(75, 139, 229, 0.04);
}
.mod-info-icon {
  width: 40px;
  height: 40px;
  image-rendering: pixelated;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}
.mod-info-title {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.mod-info-name {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mod-info-author {
  font-size: 0.7rem;
  color: var(--muted);
}

.mod-info-list {
  margin: 0;
  padding: 0 0.75rem;
}
.mod-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
}
.mod-info-row:last-child {
  border-bottom: none;
}
.mod-info-row-label {
  color: var(--muted);
  flex-shrink: 0;
  margin: 0;
  padding-right: 0.5rem;
}
.mod-info-row-value {
  color: var(--text);
  text-align: right;
  margin: 0;
  font-weight: 600;
}
.mod-info-row-value a {
  color: var(--primary);
}

.mod-info-genre-tag {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 600;
}

.mod-info-versions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  justify-content: flex-end;
}
.mod-info-version-tag {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 0.05rem 0.35rem;
  font-size: 0.68rem;
  color: var(--text-secondary);
  font-weight: 400;
}
.mod-info-version-more {
  font-size: 0.68rem;
  color: var(--muted);
  padding: 0.05rem 0.2rem;
}

.mod-info-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem 0;
  border-top: 1px solid var(--border);
  margin-top: 0;
}
.mod-info-cf-tag {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.1rem 0.4rem;
  font-size: 0.65rem;
  color: var(--text-secondary);
}

.mod-info-link {
  display: block;
  text-align: center;
  padding: 0.45rem 0.5rem;
  margin: 0.5rem 0.75rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.mod-info-link:hover {
  border-color: var(--border-hover);
  color: var(--text);
  background: rgba(75, 139, 229, 0.06);
}
.mod-info-link--cf {
  background: rgba(241, 100, 54, 0.08);
  border-color: rgba(241, 100, 54, 0.2);
  color: #f16436;
}
.mod-info-link--cf:hover {
  background: rgba(241, 100, 54, 0.14);
  border-color: rgba(241, 100, 54, 0.35);
  color: #ff7b52;
}

.mod-review-banner {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius);
  color: var(--accent-orange);
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  margin-top: 2rem;
  text-align: center;
}

/* Sidebar mod list */
.sidebar-mod-icon {
  width: 24px;
  height: 24px;
  image-rendering: pixelated;
  flex-shrink: 0;
}
.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.5rem;
  color: var(--text-secondary);
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}
.sidebar-link:hover {
  color: var(--primary);
  background: rgba(75, 139, 229, 0.06);
}

.sidebar-mod-icon {
  width: 24px;
  height: 24px;
  image-rendering: pixelated;
  flex-shrink: 0;
  border-radius: 2px;
}

/* ================================ */
/*   MODS BROWSE PAGE               */
/* ================================ */

.mods-page .hero {
  margin-bottom: 2rem;
}

.mods-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  grid-gap: 2rem;
  gap: 2rem;
  align-items: start;
}

/* Filters sidebar */
.mods-filters {
  position: -webkit-sticky;
  position: sticky;
  top: 5rem;
}

.mods-filter-group {
  margin-bottom: 1.5rem;
}
.mods-filter-heading {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}

.mods-search-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.88rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 4px inset;
}
.mods-search-input:focus {
  border-color: var(--primary-dim);
  box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 4px inset, 0 0 0 2px rgba(75, 139, 229, 0.15);
}
.mods-search-input::placeholder {
  color: var(--muted);
}

.mods-filter-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.mods-filter-list--versions {
  max-height: 200px;
  overflow-y: auto;
}

.mods-filter-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.5rem;
  color: var(--text-secondary);
  font-size: 0.82rem;
  transition: color 0.15s, background 0.15s;
}
.mods-filter-link:hover {
  color: var(--text);
  background: var(--primary-subtle);
}
.mods-filter-link.active {
  color: var(--primary);
  background: var(--primary-glow);
  font-weight: 600;
}

.mods-loader-dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  display: inline-block;
}

/* Active filter tags */
.mods-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  align-items: center;
}
.mods-filter-tag {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 0.25rem 0.6rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
  transition: border-color 0.15s;
}
.mods-filter-tag:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
}
.mods-clear-all {
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: underline;
  margin-left: 0.5rem;
}
.mods-clear-all:hover {
  color: var(--accent-red);
}

/* Mod cards */
.mod-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.mod-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.mod-card-logo {
  width: 48px;
  height: 48px;
  image-rendering: pixelated;
  flex-shrink: 0;
}
.mod-card-title-area {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.mod-card-title-area h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mod-card-loader {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.mod-card-summary {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mod-card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.72rem;
  color: var(--muted);
}
.mod-card-stat {
  color: var(--text-secondary);
}
.mod-card-version {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 0.05rem 0.35rem;
  font-size: 0.68rem;
}
.mod-card-genre {
  margin-left: auto;
  color: var(--primary-dim);
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .mods-layout {
    grid-template-columns: 1fr;
  }
  .mods-filters {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }
  .mods-filter-group {
    flex: 1 1;
    min-width: 150px;
  }
  .mods-filter-list--versions {
    max-height: 120px;
  }
  .mod-info-panel {
    margin-bottom: 1rem;
  }
}

/* ========================= */
/*     CATEGORY LANDING       */
/* ========================= */

.category-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

.category-section-heading {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin: 2rem 0 1rem;
  color: var(--text);
}

.category-articles {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

/* ========================= */
/*       MOD HUB LAYOUT      */
/* ========================= */

.mod-hub {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

/* --- Hub Header --- */
.mod-hub-header {
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, rgba(75, 139, 229, 0.06) 0%, rgba(75, 139, 229, 0.02) 50%, transparent 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

/* Subtle corner glow */
.mod-hub-header::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(75, 139, 229, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.mod-hub-header-top {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.mod-hub-logo {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  flex-shrink: 0;
  box-shadow:
    rgba(59, 94, 170, 0.2) 0px -1px 0px inset,
    rgb(17, 24, 39) 0px 2px 0px,
    rgba(0, 0, 0, 0.3) 0px 3px 6px;
}

.mod-hub-header-info {
  flex: 1 1;
  min-width: 0;
}

.mod-hub-name {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  color: var(--text);
  letter-spacing: 0.02em;
  margin: 0 0 0.35rem 0;
  line-height: 1.2;
}

.mod-hub-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
}

.mod-hub-stat {
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.mod-hub-loader {
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.2);
}

.mod-hub-summary {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.mod-hub-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(75, 139, 229, 0.1);
}

.mod-hub-genre-tag {
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  background: rgba(75, 139, 229, 0.12);
  color: var(--primary);
  border: 1px solid rgba(75, 139, 229, 0.25);
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  transition: background 0.15s, border-color 0.15s;
}

.mod-hub-genre-tag:hover {
  background: rgba(75, 139, 229, 0.2);
  border-color: rgba(75, 139, 229, 0.4);
  color: var(--primary);
}

.mod-hub-version-tag,
.mod-hub-cf-tag {
  font-size: 0.7rem;
  padding: 0.2rem 0.45rem;
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.mod-hub-ext-link {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.mod-hub-ext-link:hover {
  color: var(--primary);
  border-color: var(--primary-dark);
  background: rgba(75, 139, 229, 0.06);
}

/* --- Hub Tabs --- */
.mod-hub-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1.75rem;
  overflow-x: auto;
  scrollbar-width: none;
  box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 4px inset;
}

.mod-hub-tabs::-webkit-scrollbar {
  display: none;
}

.mod-hub-tab {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: color 0.15s, background 0.15s, box-shadow 0.15s;
}

.mod-hub-tab:hover {
  color: var(--text);
  background: rgba(75, 139, 229, 0.06);
}

.mod-hub-tab--active {
  color: var(--text);
  background: var(--card);
  box-shadow: var(--card-shadow);
}

.mod-hub-tab-count {
  font-size: 0.68rem;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.2);
  padding: 0.1rem 0.4rem;
  border-radius: 99px;
  min-width: 1.3rem;
  text-align: center;
}

.mod-hub-tab--active .mod-hub-tab-count {
  color: var(--primary);
  background: rgba(75, 139, 229, 0.12);
}

/* --- Hub Content --- */
.mod-hub-content {
  min-height: 300px;
}

/* --- Guides List --- */
.mod-guides-list h2 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.guide-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  position: relative;
}

.guide-card h3 {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.3;
}

.guide-card-badge {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  background: var(--primary-glow);
  color: var(--primary);
  border: 1px solid var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.guide-card-excerpt {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.guide-card-meta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: auto;
}

.guide-card-difficulty {
  text-transform: capitalize;
  font-weight: 600;
}

.guide-card-difficulty--beginner { color: #4ade80; }
.guide-card-difficulty--intermediate { color: #60a5fa; }
.guide-card-difficulty--advanced { color: #f59e0b; }
.guide-card-difficulty--expert { color: #ef4444; }

/* --- Recipes Page --- */
/* --- Recipes Page --- */
.mod-recipes-page h2 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin: 0;
}

.mod-recipes-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.mod-recipes-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.75rem 0.9rem;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 10%, transparent), var(--bg-surface));
  border: 1px solid var(--border);
}

.mod-recipes-intro p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-secondary);
  max-width: 52rem;
}

.mod-recipes-intro-link {
  flex-shrink: 0;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--primary);
}

.mod-recipes-search-input,
.mod-items-search-input {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.4rem 0.75rem;
  font-size: 0.82rem;
  font-family: var(--font-body);
  width: 200px;
}

.mod-recipes-search-input:focus,
.mod-items-search-input:focus {
  outline: none;
  border-color: var(--primary-dark);
}

.mod-recipes-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.mod-recipes-filter {
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: color 0.15s, border-color 0.15s;
}

.mod-recipes-filter:hover {
  color: var(--text);
  border-color: var(--border-hover);
}

.mod-recipes-filter--active {
  color: var(--primary);
  border-color: var(--primary-dark);
  background: var(--primary-glow);
}

.mod-recipes-filter-count {
  font-size: 0.65rem;
  color: var(--muted);
  margin-left: 0.2rem;
}

.mod-recipes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  grid-gap: 0.85rem;
  gap: 0.85rem;
}

/* ============================== */
/* Recipe Card — MC Inventory UI  */
/* ============================== */

.rc {
  --rc-frame: #c6c6c6;
  --rc-frame-dark: #555555;
  --rc-frame-light: #ffffff;
  --rc-slot-bg: #8b8b8b;
  --rc-slot-dark: #373737;
  --rc-slot-light: #ffffff;
  --rc-slot-inner: #555555;

  background: var(--rc-frame);
  border: 3px solid;
  border-color: var(--rc-frame-light) var(--rc-frame-dark) var(--rc-frame-dark) var(--rc-frame-light);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Header */
.rc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.7rem;
  background: #b0b0b0;
  border-bottom: 2px solid var(--rc-frame-dark);
}

.rc-name {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: #3f3f3f;
  letter-spacing: 0.01em;
  text-shadow: 1px 1px 0 rgba(255,255,255,0.3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.rc-badges {
  display: flex;
  gap: 0.3rem;
  flex-shrink: 0;
}

.rc-badge {
  font-size: 0.6rem;
  font-weight: 600;
  color: #555;
  background: rgba(0, 0, 0, 0.06);
  border: 1px solid;
  border-color: var(--rc-frame-dark) var(--rc-frame-light) var(--rc-frame-light) var(--rc-frame-dark);
  border-radius: 2px;
  padding: 0.12rem 0.35rem;
  white-space: nowrap;
}

.rc-badge--station {
  color: #8b6914;
  background: rgba(200, 160, 40, 0.12);
}

/* Body — crafting area */
.rc-body {
  padding: 0.85rem;
}

.rc-craft {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
}

/* 3x3 Input grid */
.rc-grid {
  display: grid;
  grid-template-columns: repeat(3, 40px);
  grid-template-rows: repeat(3, 40px);
  grid-gap: 2px;
  gap: 2px;
  background: var(--rc-frame);
  padding: 2px;
  border: 2px solid;
  border-color: var(--rc-frame-dark) var(--rc-frame-light) var(--rc-frame-light) var(--rc-frame-dark);
  border-radius: 2px;
}

/* Slot — MC inventory emboss */
.rc-slot {
  width: 40px;
  height: 40px;
  background: var(--rc-slot-inner);
  border: 2px solid;
  border-color: var(--rc-slot-dark) var(--rc-slot-light) var(--rc-slot-light) var(--rc-slot-dark);
  border-radius: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  image-rendering: pixelated;
  transition: background 0.1s;
}

.rc-slot:hover:not(.rc-slot--empty) {
  background: #626262;
}

.rc-slot--empty {
  background: var(--rc-slot-bg);
}

.rc-slot--result {
  width: 48px;
  height: 48px;
  background: var(--rc-slot-bg);
}

.rc-slot--result:hover {
  background: #9a9a9a;
}

/* Slot contents */
.rc-slot-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  image-rendering: pixelated;
  pointer-events: none;
  filter: drop-shadow(1px 1px 1px rgba(0,0,0,0.5));
}

.rc-slot-icon--lg {
  width: 38px;
  height: 38px;
}

.rc-slot-text {
  font-family: var(--font-body);
  font-size: 0.42rem;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 1px 1px 0 #3f3f3f;
  text-align: center;
  line-height: 1.1;
  max-width: 34px;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-all;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.rc-slot-qty {
  position: absolute;
  bottom: 1px;
  right: 3px;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  color: #ffffff;
  text-shadow:
    1px 1px 0 #000,
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000;
  line-height: 1;
  pointer-events: none;
  z-index: 2;
}

/* Arrow */
.rc-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.2rem;
  flex-shrink: 0;
}

/* Result area */
.rc-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.rc-result-name {
  font-size: 0.65rem;
  color: #3f3f3f;
  text-align: center;
  font-weight: 600;
  max-width: 72px;
  line-height: 1.25;
  text-shadow: 1px 1px 0 rgba(255,255,255,0.2);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Actions bar */
.rc-actions {
  display: flex;
  gap: 2px;
  padding: 0 2px 2px;
}

.rc-action {
  flex: 1 1;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border: 2px solid;
  border-color: var(--rc-frame-light) var(--rc-frame-dark) var(--rc-frame-dark) var(--rc-frame-light);
  background: #b0b0b0;
  color: #3f3f3f;
  padding: 0.32rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 600;
  font-family: var(--font-heading);
  cursor: pointer;
  text-align: center;
  text-shadow: 1px 1px 0 rgba(255,255,255,0.25);
  border-radius: 2px;
  transition: background 0.1s;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rc-action:hover {
  background: #c0c0c0;
}

.rc-action:active {
  border-color: var(--rc-frame-dark) var(--rc-frame-light) var(--rc-frame-light) var(--rc-frame-dark);
  background: #999;
}

.rc-action--link {
  color: #2d5a8e;
}

/* Insights panel (dark theme, contrasts with MC frame) */
.rc-insights {
  display: grid;
  grid-gap: 0.65rem;
  gap: 0.65rem;
  padding: 0.7rem;
  background: var(--card);
  border-top: 2px solid var(--rc-frame-dark);
}

.rc-insights-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.72rem;
  color: var(--muted);
}

.rc-insights-header strong {
  color: var(--text);
  font-size: 0.78rem;
}

.rc-section {
  display: grid;
  grid-gap: 0.4rem;
  gap: 0.4rem;
}

.rc-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.rc-section-head h3 {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.rc-section-head span {
  font-size: 0.66rem;
  color: var(--muted);
}

.rc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-gap: 0.25rem;
  gap: 0.25rem;
}

.rc-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.74rem;
  padding: 0.28rem 0;
  border-bottom: 1px dashed color-mix(in srgb, var(--border) 75%, transparent);
}

.rc-list-item:last-child {
  border-bottom: none;
}

.rc-list-name {
  color: var(--text);
}

.rc-list-value {
  color: var(--primary);
  font-weight: 600;
}

.rc-usage-list {
  display: grid;
  grid-gap: 0.4rem;
  gap: 0.4rem;
}

.rc-usage {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
}

.rc-usage:hover {
  border-color: var(--border-hover);
}

.rc-usage-icon {
  width: 22px;
  height: 22px;
  image-rendering: pixelated;
  flex-shrink: 0;
}

.rc-usage-text {
  display: grid;
  grid-gap: 0.12rem;
  gap: 0.12rem;
  min-width: 0;
}

.rc-usage-text strong,
.rc-usage-text small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rc-usage-text strong {
  color: var(--text);
  font-size: 0.74rem;
}

.rc-usage-text small {
  color: var(--muted);
  font-size: 0.66rem;
}

.rc-note {
  margin: 0;
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.rc-note--error {
  color: #ef4444;
}

/* Responsive */
@media (max-width: 480px) {
  .mod-recipes-grid {
    grid-template-columns: 1fr;
  }
  .rc-craft {
    flex-direction: column;
    gap: 0.5rem;
  }
  .rc-arrow svg {
    transform: rotate(90deg);
  }
  .rc-grid {
    grid-template-columns: repeat(3, 36px);
    grid-template-rows: repeat(3, 36px);
  }
  .rc-slot {
    width: 36px;
    height: 36px;
  }
  .rc-slot--result {
    width: 44px;
    height: 44px;
  }
  .rc-slot-icon {
    width: 26px;
    height: 26px;
  }
  .rc-slot-icon--lg {
    width: 34px;
    height: 34px;
  }
}

/* --- Items Page --- */
.mod-items-page h2 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin: 0;
}

.mod-items-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.mod-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  grid-gap: 0.5rem;
  gap: 0.5rem;
}

.item-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  text-align: center;
  transition: border-color 0.15s;
}

.item-card:hover {
  border-color: var(--border-hover);
}

.item-card-icon {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
}

.item-card-icon--placeholder {
  background: var(--bg-surface);
  border: 1px solid var(--border);
}

.item-card-name {
  font-size: 0.72rem;
  color: var(--text);
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.item-card-rarity {
  font-size: 0.6rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.item-card-rarity--uncommon { color: #4ade80; }
.item-card-rarity--rare { color: #60a5fa; }
.item-card-rarity--epic { color: #a855f7; }
.item-card-rarity--legendary { color: #f59e0b; }

/* --- Videos Page --- */
.mod-videos-page h2 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.mod-videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-gap: 1rem;
  gap: 1rem;
}

.video-card {
  background: var(--card);
  border: 1px solid var(--border);
  overflow: hidden;
}

.video-card-thumb {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-surface);
}

.video-card-thumb--empty {
  aspect-ratio: 16 / 9;
  background: var(--bg-surface);
}

.video-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-card-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(0, 0, 0, 0.2);
  transition: background 0.2s;
}

.video-card-thumb:hover .video-card-play {
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
}

.video-card-info {
  padding: 0.75rem;
}

.video-card-title {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.35rem;
}

.video-card-title a {
  color: var(--text);
}

.video-card-title a:hover {
  color: var(--primary);
}

.video-card-excerpt {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Addons Page --- */
.mod-addons-page h2 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.mod-addons-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .mod-hub {
    padding: 1rem 0.75rem;
  }

  .mod-hub-header-top {
    gap: 0.75rem;
  }

  .mod-hub-logo {
    width: 56px;
    height: 56px;
  }

  .mod-hub-name {
    font-size: 1.2rem;
  }

  .mod-hub-tab {
    padding: 0.5rem 0.75rem;
    font-size: 0.78rem;
  }

  .mod-recipes-grid {
    grid-template-columns: 1fr;
  }

  .mod-videos-grid {
    grid-template-columns: 1fr;
  }

  .mod-items-grid {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  }

  .mod-recipes-toolbar,
  .mod-items-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .mod-recipes-intro {
    flex-direction: column;
    align-items: flex-start;
  }

  .mod-recipes-search-input,
  .mod-items-search-input {
    width: 100%;
  }
}

