/* ── Scroll progress ── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 1000;
  background: transparent;
  pointer-events: none;
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--violet-dark), var(--violet-light), var(--orange));
  box-shadow: 0 0 12px rgba(199, 125, 255, .6);
  transition: width .1s linear;
}

/* ── Back to top ── */
.back-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(20, 16, 28, .85);
  backdrop-filter: blur(12px);
  color: var(--violet-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px) scale(.9);
  transition: opacity .35s cubic-bezier(.22, 1, .36, 1),
              transform .35s cubic-bezier(.22, 1, .36, 1),
              border-color .2s, box-shadow .2s;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .4);
}

.back-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.back-top:hover {
  border-color: var(--violet);
  box-shadow: 0 0 24px rgba(142, 68, 173, .35);
  color: #fff;
}

:root {
  --bg: #0a0810;
  --surface: #14101c;
  --surface-2: #1c1628;
  --surface-3: #241e34;
  --border: #322a48;
  --text: #ece8f4;
  --muted: #9a8fb8;
  --violet: #8e44ad;
  --violet-light: #c77dff;
  --violet-dark: #6b3fa8;
  --orange: #ffb366;
  --orange-dim: #cc8844;
  --green: #6fcf97;
  --red: #e06c75;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

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

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  font-family: "Outfit", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Reveal animations ── */
.reveal, .reveal-section, .reveal-child {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}

.reveal.visible, .reveal-section.visible, .reveal-child.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-child { transition-delay: calc(var(--i, 0) * 80ms); }
.hero .reveal { transition-delay: calc(var(--d, 0) * 100ms + 100ms); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-section, .reveal-child {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .back-top, .scroll-progress-bar { transition: none; }
}

/* ── Hero ── */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(142, 68, 173, .28), transparent),
              radial-gradient(ellipse 50% 40% at 80% 60%, rgba(107, 63, 168, .12), transparent),
              linear-gradient(180deg, #160f22 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 2rem 3rem;
}

#hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .7;
}

.hero-inner { max-width: 1140px; margin: 0 auto; position: relative; z-index: 1; }

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

.lang-switch { display: flex; gap: .35rem; }

.lang-btn {
  background: rgba(20, 16, 28, .6);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: inherit;
  font-size: .78rem;
  font-weight: 700;
  padding: .35rem .7rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all .25s var(--ease-out);
}

.lang-btn:hover {
  color: var(--violet-light);
  border-color: var(--violet-dark);
  transform: translateY(-1px);
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--violet-dark), var(--violet));
  border-color: var(--violet-light);
  color: #fff;
  box-shadow: 0 0 16px rgba(142, 68, 173, .4);
}

.badge {
  display: inline-block;
  font-size: .78rem;
  color: var(--muted);
  background: rgba(20, 16, 28, .5);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .25rem .8rem;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4rem);
  font-weight: 800;
  letter-spacing: -.02em;
  background: linear-gradient(100deg, #e0b0ff 0%, var(--violet-light) 40%, #9b59b6 80%, #e0b0ff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 6s linear infinite;
  margin-bottom: .6rem;
}

@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.subtitle { color: var(--muted); font-size: 1.08rem; max-width: 580px; line-height: 1.7; }

.hero-assets {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.hero-asset {
  display: flex;
  align-items: center;
  gap: .65rem;
  background: rgba(28, 22, 40, .6);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .65rem 1.1rem;
  font-size: .88rem;
  color: var(--muted);
  transition: all .3s var(--ease-out);
  cursor: default;
}

.hero-asset:hover {
  border-color: var(--violet-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(107, 63, 168, .2);
  color: var(--text);
}

.hero-asset .icon-frame { padding: 4px; margin: 0; }

/* ── Layout ── */
.layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.5rem;
  max-width: 1140px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
}

.sidebar {
  position: sticky;
  top: 2rem;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: .1rem;
  padding-left: .5rem;
}

.sidebar-indicator {
  position: absolute;
  left: 0;
  width: 3px;
  height: 0;
  background: linear-gradient(180deg, var(--violet-light), var(--violet));
  border-radius: 2px;
  transition: top .35s var(--ease-out), height .35s var(--ease-out);
  box-shadow: 0 0 8px rgba(199, 125, 255, .5);
}

.sidebar a {
  color: var(--muted);
  text-decoration: none;
  font-size: .86rem;
  font-weight: 500;
  padding: .45rem .75rem;
  border-radius: 8px;
  border-left: 2px solid transparent;
  transition: all .25s var(--ease-out);
}

.sidebar a:hover {
  color: var(--violet-light);
  background: rgba(28, 22, 40, .6);
}

.sidebar a.active {
  color: var(--violet-light);
  background: rgba(107, 63, 168, .15);
  border-left-color: var(--violet);
}

main { min-width: 0; }

/* ── Sections ── */
section {
  position: relative;
  background: rgba(20, 16, 28, .7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 1.75rem;
  transition: border-color .35s var(--ease-out), box-shadow .35s var(--ease-out);
}

section:hover {
  border-color: rgba(107, 63, 168, .4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .25);
}

section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--violet-light);
  margin-bottom: 1.1rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--border);
  letter-spacing: -.01em;
}

section h3 {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--orange);
  margin: 1.5rem 0 .75rem;
}

section h4 {
  font-size: .92rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 1rem 0 .5rem;
}

.intro { color: var(--muted); margin-bottom: 1rem; font-size: .96rem; }
.note { color: var(--muted); font-size: .86rem; margin-top: .75rem; }
.step-list {
  color: var(--muted);
  margin: 0 0 1rem 1.1rem;
  padding: 0;
  line-height: 1.7;
}
.step-list li { margin-bottom: .45rem; }
.hint {
  font-size: .8rem;
  color: var(--muted);
  text-align: center;
  margin-top: .5rem;
  opacity: .7;
}

.note code, .formula code, p code {
  font-family: "JetBrains Mono", Consolas, monospace;
  background: var(--surface-2);
  padding: .12rem .4rem;
  border-radius: 5px;
  font-size: .84em;
  color: var(--orange);
}

/* ── Pixel art ── */
.pixel, .pixel-lg, .pixel-xl {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  display: block;
}

.pixel { width: 32px; height: 32px; }

/* ── Icon frame ── */
.icon-frame {
  width: 48px;
  height: 48px;
  margin: 0 auto .5rem;
  background: #2a2238;
  border: 2px solid #4a3d66;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px #1a1428;
  transition: box-shadow .3s var(--ease-out), border-color .3s;
}

.icon-frame img {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
}

.icon-frame.active-glow {
  border-color: var(--orange);
  box-shadow: inset 0 0 0 1px #1a1428, 0 0 20px rgba(255, 179, 102, .35);
}

.stat-grid--compact {
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  max-width: 200px;
}

/* ── Item cards ── */
.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: .85rem;
  margin: 1rem 0;
}

.item-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.15rem 1rem;
  text-align: center;
  transition: all .35s var(--ease-out);
  cursor: default;
}

.item-card:hover {
  border-color: var(--violet-dark);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(107, 63, 168, .18);
}

.item-card .name { font-size: .9rem; font-weight: 600; color: var(--text); }
.item-card .desc { font-size: .78rem; color: var(--muted); margin-top: .3rem; }

/* ── Stat grid ── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: .75rem;
  margin: 1rem 0;
}

.stat-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .9rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: .2rem;
  transition: all .3s var(--ease-out);
}

.stat-card:hover {
  border-color: rgba(255, 179, 102, .3);
  transform: scale(1.02);
}

.stat-card .label {
  font-size: .72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.stat-card .value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--orange);
}

.stat-card.highlight-stat {
  border-color: rgba(107, 63, 168, .45);
  background: linear-gradient(135deg, var(--surface-2), rgba(107, 63, 168, .12));
}

.stat-card.highlight-stat .value {
  color: var(--violet);
}
  font-variant-numeric: tabular-nums;
}

/* ── Tables ── */
table { width: 100%; border-collapse: collapse; font-size: .9rem; }

th, td {
  text-align: left;
  padding: .6rem .75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

thead th {
  color: var(--muted);
  font-weight: 600;
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}

tbody tr { transition: background .2s; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(142, 68, 173, .06); }
tbody tr.row-active {
  background: rgba(107, 63, 168, .2) !important;
  box-shadow: inset 3px 0 0 var(--violet-light);
}

tr.highlight { background: rgba(107, 63, 168, .14); }
tr.highlight td { color: var(--violet-light); }

.td-icon { display: flex; align-items: center; gap: .55rem; }
.tier { color: var(--violet-light); font-weight: 700; }

/* ── Formula ── */
.formula {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--violet);
  border-radius: 10px;
  padding: 1.1rem 1.35rem;
  margin: 1rem 0;
  overflow-x: auto;
}

.formula code { font-size: .88rem; background: none; padding: 0; }

/* ── Damage simulator ── */
.damage-simulator {
  background: linear-gradient(135deg, rgba(107, 63, 168, .12), rgba(20, 16, 28, .8));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.35rem;
  margin: 1.25rem 0;
}

.sim-label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--violet-light);
  margin-bottom: .85rem;
}

.sim-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.hp-slider {
  flex: 1;
  min-width: 180px;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 4px;
  background: var(--surface-3);
  outline: none;
  cursor: pointer;
}

.hp-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet-light), var(--violet));
  border: 2px solid #fff;
  box-shadow: 0 0 12px rgba(199, 125, 255, .6);
  cursor: grab;
  transition: transform .2s var(--ease-spring);
}

.hp-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
.hp-slider:active::-webkit-slider-thumb { cursor: grabbing; transform: scale(1.1); }

.hp-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet-light), var(--violet));
  border: 2px solid #fff;
  box-shadow: 0 0 12px rgba(199, 125, 255, .6);
  cursor: grab;
}

.sim-result {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .15rem;
  min-width: 90px;
}

.sim-hp { font-size: .85rem; color: var(--muted); }
.sim-bonus {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
  transition: transform .2s var(--ease-spring);
}

.sim-bonus.bump { transform: scale(1.12); }

.sim-bar {
  height: 6px;
  background: var(--surface-3);
  border-radius: 3px;
  margin-top: 1rem;
  overflow: hidden;
}

.sim-bar-fill {
  height: 100%;
  width: 50%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--violet-dark), var(--orange));
  transition: width .25s var(--ease-out);
}

/* ── Craft grid ── */
.craft-row { display: flex; flex-wrap: wrap; gap: 1.25rem; margin: 1rem 0; }

.craft-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem;
  min-width: 160px;
  transition: all .3s var(--ease-out);
}

.craft-card:hover {
  border-color: var(--violet-dark);
  transform: translateY(-2px);
}

.craft-card .craft-title {
  font-size: .84rem;
  color: var(--muted);
  margin-bottom: .65rem;
  display: flex;
  align-items: center;
  gap: .45rem;
}

.craft-grid {
  display: grid;
  grid-template-columns: repeat(3, 36px);
  gap: 3px;
}

.craft-slot {
  width: 36px;
  height: 36px;
  background: #2a2238;
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}

.craft-slot:not(.empty):hover { background: #352a48; }
.craft-slot.empty { opacity: .25; }
.craft-slot img { width: 28px; height: 28px; image-rendering: pixelated; }
.craft-slot.stick { font-size: .6rem; color: #8b6914; }

/* ── Smelting flow ── */
.smelt-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 1.25rem 0;
}

.smelt-recipe {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem 1rem 1rem;
  transition: border-color .3s, box-shadow .3s;
}

.smelt-recipe:hover {
  border-color: rgba(107, 63, 168, .35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}

.smelt-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  flex-wrap: wrap;
}

.smelt-step,
.smelt-station {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .45rem;
  min-width: 72px;
  text-align: center;
  font-size: .78rem;
  color: var(--muted);
  font-weight: 500;
}

.smelt-station {
  color: var(--violet-light);
}

.smelt-icon {
  margin: 0;
  padding: 6px;
}

.smelt-icon img {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
  display: block;
}

.smelt-station-icon {
  border-color: rgba(107, 63, 168, .45);
  background: rgba(107, 63, 168, .08);
}

.smelt-arrow {
  color: var(--orange);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  opacity: .85;
  padding: 0 .1rem;
}

.smelt-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  margin-top: 1rem;
  padding-top: .85rem;
  border-top: 1px solid var(--border);
  font-size: .82rem;
  color: var(--muted);
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
}

.smelt-meta-sep { opacity: .45; }

/* ── Autosmelt ── */
.autosmelt-effect {
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: 1rem;
  padding: 1rem 1.2rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border);
  border-radius: 10px;
  transition: all .35s var(--ease-out);
  opacity: .55;
}

.autosmelt-effect.glow {
  opacity: 1;
  color: var(--orange);
  border-left-color: var(--orange);
  box-shadow: 0 0 24px rgba(255, 179, 102, .15);
  background: rgba(255, 179, 102, .06);
}

.active-state { color: var(--orange) !important; }
.arrow { color: var(--muted); font-size: 1.5rem; transition: color .3s; pointer-events: none; }

.pulse-arrow { transition: color .3s var(--ease-out); }
#autosmelt-toggle.is-active .pulse-arrow {
  color: var(--orange);
  animation: pulse-arrow 1.2s ease-in-out infinite;
}

@keyframes pulse-arrow {
  0%, 100% { transform: translateX(0); opacity: 1; }
  50% { transform: translateX(6px); opacity: .7; }
}

.dual-preview {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  margin: 1rem 0;
  flex-wrap: wrap;
  cursor: pointer;
  user-select: none;
  border-radius: 14px;
  padding: .75rem 1rem;
  transition: background .25s;
  outline: none;
}

.dual-preview:hover { background: rgba(107, 63, 168, .06); }
.dual-preview:focus-visible { outline: 2px solid var(--violet-light); outline-offset: 4px; }

.dual-item {
  text-align: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.35rem 1.6rem;
  transition: all .35s var(--ease-out);
  min-width: 130px;
  opacity: .45;
  transform: scale(.96);
  pointer-events: none;
}

#autosmelt-toggle.is-active .dual-item[data-state="active"] {
  opacity: 1;
  transform: scale(1.04);
  border-color: var(--orange);
  box-shadow: 0 0 28px rgba(255, 179, 102, .25);
}

#autosmelt-toggle.is-active .dual-item[data-state="active"] .autosmelt-frame {
  border-color: var(--orange);
  box-shadow: inset 0 0 0 1px #1a1428, 0 0 20px rgba(255, 179, 102, .4);
}

#autosmelt-toggle:not(.is-active) .dual-item[data-state="inactive"] {
  opacity: 1;
  transform: scale(1.04);
  border-color: var(--violet-dark);
  box-shadow: 0 0 20px rgba(107, 63, 168, .2);
}

#autosmelt-toggle:not(.is-active) .dual-item[data-state="inactive"] .autosmelt-frame {
  border-color: var(--violet-light);
}

.dual-item .state {
  font-size: .78rem;
  color: var(--muted);
  margin-top: .5rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 600;
  transition: color .3s;
}

#autosmelt-toggle.is-active .dual-item[data-state="active"] .state { color: var(--orange); }
#autosmelt-toggle:not(.is-active) .dual-item[data-state="inactive"] .state { color: var(--violet-light); }

.autosmelt-frame img {
  image-rendering: pixelated;
  display: block;
}

/* ── Detail box ── */
.detail-box {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  margin: 1rem 0;
  transition: border-color .3s;
}

.detail-box.warn { border-left: 3px solid var(--orange); }
.detail-box.info { border-left: 3px solid var(--violet); }

.detail-box.copyable { padding-right: 5rem; }

.copy-btn {
  position: absolute;
  top: .75rem;
  right: .75rem;
  background: var(--surface-3);
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: inherit;
  font-size: .72rem;
  font-weight: 600;
  padding: .3rem .65rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all .25s var(--ease-out);
}

.copy-btn:hover {
  color: var(--violet-light);
  border-color: var(--violet);
  background: rgba(107, 63, 168, .2);
}

.copy-btn.copied {
  color: var(--green);
  border-color: var(--green);
}

/* ── Tooltip mock ── */
.tooltip-mock {
  background: #100c18;
  border: 2px solid #402060;
  border-radius: 6px;
  padding: .85rem 1.1rem;
  font-size: .86rem;
  max-width: 360px;
  margin: 1rem 0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .5);
  transition: all .35s var(--ease-out);
}

.glow-card:hover {
  border-color: #6b3fa8;
  box-shadow: 0 4px 32px rgba(107, 63, 168, .3);
  transform: translateX(4px);
}

.tooltip-mock .tt-name { color: #6b3fa8; font-weight: 700; margin-bottom: .4rem; }
.tooltip-mock .tt-violet { color: #8e44ad; }
.tooltip-mock .tt-orange { color: #ffb366; }
.tooltip-mock .tt-dim { color: #666; }
.tooltip-mock .tt-gray { color: #9a9a9a; }

/* ── Footer ── */
footer {
  text-align: center;
  padding: 2.5rem;
  color: var(--muted);
  font-size: .84rem;
  border-top: 1px solid var(--border);
}

/* ── Responsive ── */
@media (max-width: 800px) {
  .layout { grid-template-columns: 1fr; padding: 1.25rem; gap: 1.5rem; }
  .sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: .35rem;
    padding: 0 0 .75rem;
    border-bottom: 1px solid var(--border);
    padding-left: 0;
  }
  .sidebar-indicator { display: none; }
  .sidebar a {
    border-left: none;
    border: 1px solid var(--border);
    font-size: .78rem;
    padding: .35rem .6rem;
  }
  section { padding: 1.35rem; }
  .back-top { bottom: 1.25rem; right: 1.25rem; width: 44px; height: 44px; }
}
