/* GAME GUIDE DESIGN SYSTEM 3.0 · 2026-10 · offline-first, tactical & modern */
:root {
  --guide-ring: #b87941;
  --ui-accent: #b46a3c;
  --ui-line: #ded7c9;
  --ui-card: #fffdfa;
  --ui-ink: #222328;
  --ui-muted: #666970;
  --ui-soft: #f4f0e8;
  --ui-shadow: 0 4px 20px -2px rgba(36,29,22,.06), 0 12px 36px -4px rgba(36,29,22,.08);
  --ui-shadow-hover: 0 8px 30px -4px rgba(36,29,22,.12), 0 16px 44px -4px rgba(36,29,22,.10);
  --ui-radius: 14px;
}
:root {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  overflow-wrap: break-word;
  min-width: 320px;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
}

a, button, input, textarea, select, summary {
  outline-offset: 3px;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}
:where(a, button, input, textarea, summary):focus-visible {
  outline: 3px solid var(--guide-ring) !important;
}
::selection {
  background: color-mix(in srgb, var(--ui-accent) 25%, transparent);
  color: var(--ui-ink);
}

:where(img, video) {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
:where(figure) {
  max-width: 100%;
  margin: 18px 0;
}
:where(h1, h2, h3, h4) {
  text-wrap: pretty;
  overflow-wrap: anywhere;
  scroll-margin-top: 108px;
  letter-spacing: -0.02em;
}
:where(p, li) {
  overflow-wrap: break-word;
}

/* Modern Data Table with subtle rounded corners and hover effect */
:where(table) {
  display: block !important;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--ui-line);
  border-radius: 12px;
  background: var(--ui-card);
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
  margin: 18px 0;
}
:where(th) {
  background: var(--ui-soft);
  color: var(--ui-ink);
  font-weight: 750;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  padding: 12px 16px;
  border-bottom: 2px solid var(--ui-line);
  text-align: left;
}
:where(td) {
  padding: 11px 16px;
  border-bottom: 1px solid color-mix(in srgb, var(--ui-line) 65%, transparent);
  font-size: 14.5px;
}
:where(tr:last-child td) {
  border-bottom: none;
}
:where(tbody tr):hover td {
  background: color-mix(in srgb, var(--ui-accent) 4%, transparent);
}

/* Tactile 3D Keyboard Keycaps (W, A, S, D, Q, Z, 1A) */
:where(code, kbd) {
  font-family: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}
:where(code) {
  font-size: 0.88em;
  padding: 2px 6px;
  background: var(--ui-soft);
  color: color-mix(in srgb, var(--ui-accent) 80%, #000);
  border-radius: 5px;
  border: 1px solid color-mix(in srgb, var(--ui-line) 80%, transparent);
}
:where(kbd) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85em;
  font-weight: 750;
  line-height: 1.1;
  min-width: 1.8em;
  padding: 3px 6px;
  margin: 0 2px;
  white-space: nowrap;
  background: linear-gradient(180deg, var(--ui-card) 0%, var(--ui-soft) 100%);
  color: var(--ui-ink);
  border: 1px solid var(--ui-line);
  border-bottom: 2.5px solid color-mix(in srgb, var(--ui-line) 65%, #000);
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
  vertical-align: baseline;
}

:where(section) {
  scroll-margin-top: 108px;
}
:where(summary) {
  cursor: pointer;
}
:where(.card, .legend-card, .toccard, .gifcard, .intro, .ninja-head) {
  transition: border-color .2s ease, box-shadow .25s ease, transform .22s cubic-bezier(0.16, 1, 0.3, 1);
}
:where(.toccard, .ninja-card, .game-card):hover {
  transform: translateY(-3px);
}
:where(.card, .legend-card, .tip, .warn) {
  border-radius: var(--ui-radius);
}
:where(.card, .legend-card) {
  box-shadow: var(--ui-shadow);
}
:where(.card li, .legend-card li) {
  margin-block: 7px;
}
:where(a[href^="http"]) {
  text-underline-offset: 3px;
}
:where(.card, .legend-card, .toccard, .guide-note) {
  max-width: 100%;
}

/* Floating Return to Home Button */
.guide-home {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 75;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 210px;
  border: 1px solid var(--ui-line);
  border-radius: 999px;
  padding: 10px 18px;
  background: color-mix(in srgb, var(--ui-card) 85%, transparent);
  color: var(--ui-ink) !important;
  font: 700 13px/1.2 system-ui, -apple-system, sans-serif;
  box-shadow: 0 10px 30px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.04);
  text-decoration: none !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s, box-shadow 0.2s;
}
.guide-home:hover {
  transform: translateY(-2px);
  border-color: var(--ui-accent);
  color: var(--ui-accent) !important;
  box-shadow: 0 14px 38px rgba(0,0,0,0.16), 0 0 0 1px var(--ui-accent);
}
.guide-home:before {
  content: "⌂";
  font-size: 18px;
  font-weight: 900;
  color: var(--ui-accent);
  line-height: 1;
}

/* Floating Chapter Table of Contents */
.guide-quick {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 78;
  font: 14px/1.5 system-ui, -apple-system, sans-serif;
}
.guide-quick summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--ui-line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--ui-card) 85%, transparent);
  color: var(--ui-ink);
  box-shadow: 0 10px 30px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.04);
  font-weight: 750;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s;
}
.guide-quick summary:hover {
  transform: translateY(-2px);
  border-color: var(--ui-accent);
}
.guide-quick summary::-webkit-details-marker {
  display: none;
}
.guide-quick summary:after {
  content: "⌘";
  font-size: 14px;
  color: var(--ui-accent);
  line-height: 1;
}
.guide-quick > details > div {
  position: absolute;
  right: 0;
  bottom: 55px;
  width: min(82vw, 360px);
  max-height: min(75vh, 640px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 12px;
  border: 1px solid var(--ui-line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--ui-card) 96%, transparent);
  box-shadow: 0 20px 60px rgba(0,0,0,0.22), 0 2px 10px rgba(0,0,0,0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  scrollbar-width: thin;
}
.guide-quick a {
  display: block;
  color: var(--ui-ink);
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 13px;
  text-decoration: none !important;
  line-height: 1.45;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.guide-quick a:hover {
  background: var(--ui-soft);
  color: var(--ui-accent);
}
.guide-quick a.sub {
  padding-left: 24px;
  font-size: 12.5px;
  color: var(--ui-muted);
}
.guide-quick a[aria-current="location"] {
  background: color-mix(in srgb, var(--ui-accent) 12%, transparent);
  color: var(--ui-accent);
  font-weight: 750;
  border-left: 3px solid var(--ui-accent);
}
.guide-top {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 12px;
  border-top: 1px solid var(--ui-line);
  color: var(--ui-accent) !important;
  font-size: 12px;
  text-decoration: none !important;
}

/* Luminous Reading Progress Bar */
.guide-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--ui-accent), color-mix(in srgb, var(--ui-accent) 70%, #ffc63a));
  box-shadow: 0 0 10px color-mix(in srgb, var(--ui-accent) 50%, transparent);
  z-index: 125;
  pointer-events: none;
  transition: width 0.08s linear;
}

.guide-anchor {
  font-family: system-ui;
  font-size: .62em;
  margin-left: 9px;
  vertical-align: middle;
  color: var(--ui-accent);
  opacity: 0;
  text-decoration: none !important;
  font-weight: 600;
  transition: opacity .18s;
}
:where(h2, h3):hover .guide-anchor, .guide-anchor:focus-visible {
  opacity: 1;
}

/* Callout & Note Cards */
.guide-note {
  margin: 22px 0;
  padding: 22px 26px;
  border: 1px solid var(--ui-line);
  border-left: 4px solid var(--ui-accent);
  border-radius: var(--ui-radius);
  background: var(--ui-card);
  line-height: 1.82;
  box-shadow: var(--ui-shadow);
}
.guide-note h3, .guide-note h4 {
  margin: 0 0 12px;
  font-size: 1.15rem;
}
.guide-note :where(p, li) {
  margin-block: 7px;
}
.guide-note a {
  word-break: break-word;
}

.guide-steps {
  counter-reset: guide-step;
  list-style: none !important;
  padding-left: 0 !important;
}
.guide-steps > li {
  counter-increment: guide-step;
  position: relative;
  padding: 16px 18px 16px 54px !important;
  margin: 12px 0 !important;
  border-radius: 12px;
  background: var(--ui-soft);
  border: 1px solid var(--ui-line);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.guide-steps > li:hover {
  transform: translateX(3px);
  border-color: color-mix(in srgb, var(--ui-accent) 50%, var(--ui-line));
}
.guide-steps > li:before {
  content: counter(guide-step);
  position: absolute;
  left: 15px;
  top: 16px;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--ui-accent);
  color: white;
  font: bold 13px system-ui;
  box-shadow: 0 2px 6px color-mix(in srgb, var(--ui-accent) 40%, transparent);
}

.guide-search {
  margin: 22px 0 28px;
}
.guide-search input {
  width: 100%;
  padding: 16px 20px;
  border-radius: 14px;
  border: 1px solid var(--ui-line);
  background: var(--ui-card);
  color: var(--ui-ink);
  font: inherit;
  box-shadow: 0 4px 16px rgba(0,0,0,0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.guide-search input:focus {
  border-color: var(--ui-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ui-accent) 20%, transparent);
}
.guide-search small {
  display: block;
  margin-top: 8px;
  color: var(--ui-muted);
  font-size: 12px;
}
[data-guide-card][hidden] {
  display: none !important;
}

/* Spotlight Command Palette (Ctrl+K / /) */
.guide-focus-panel {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: 10vh 18px 30px;
  background: rgba(10, 15, 26, 0.68);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.guide-focus-panel[hidden] {
  display: none !important;
}
.guide-focus-card {
  width: min(100%, 620px);
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--ui-card);
  color: var(--ui-ink);
  border: 1px solid var(--ui-line);
  border-radius: 20px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.45), 0 0 0 1px color-mix(in srgb, var(--ui-line) 40%, transparent);
  animation: guideScaleIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes guideScaleIn {
  from { opacity: 0; transform: scale(0.96) translateY(-8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.guide-focus-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--ui-line);
}
.guide-focus-top input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: none !important;
  background: transparent;
  font: 600 16px system-ui, "Microsoft YaHei", sans-serif;
  color: inherit;
}
.guide-focus-top button {
  border: 1px solid var(--ui-line);
  background: var(--ui-soft);
  color: var(--ui-muted);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: all 0.15s ease;
}
.guide-focus-top button:hover {
  background: var(--ui-line);
  color: var(--ui-ink);
}
.guide-focus-list {
  overflow: auto;
  padding: 10px;
  scrollbar-width: thin;
}
.guide-focus-list a {
  display: block;
  padding: 12px 16px;
  color: var(--ui-ink);
  border-radius: 10px;
  text-decoration: none !important;
  font-size: 14.5px;
  line-height: 1.45;
  transition: all 0.15s ease;
}
.guide-focus-list a:hover, .guide-focus-list a:focus {
  background: var(--ui-soft);
  color: var(--ui-accent);
}
.guide-focus-list a.is-keyboard-active {
  background: color-mix(in srgb, var(--ui-accent) 14%, var(--ui-soft));
  color: var(--ui-accent);
  outline: 2px solid var(--ui-accent);
  outline-offset: -2px;
}
.guide-focus-list a small {
  display: block;
  font-size: 11.5px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--ui-muted);
  margin-top: 3px;
}
.guide-focus-help {
  color: var(--ui-muted);
  font-size: 12px;
  padding: 10px 22px 14px;
  border-top: 1px solid color-mix(in srgb, var(--ui-line) 60%, transparent);
}

.guide-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 14px 0 26px;
  color: var(--ui-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .01em;
}
.guide-breadcrumb a {
  color: var(--ui-accent);
  text-decoration: none;
}
.guide-hero-strip {
  border: 1px solid var(--ui-line);
  border-left: 4px solid var(--ui-accent);
  padding: 18px 24px;
  border-radius: 14px;
  background: var(--ui-card);
  box-shadow: var(--ui-shadow);
  margin: 18px 0 28px;
}
.guide-hero-strip p {
  margin: 7px 0 0;
}
.guide-hero-strip .eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 900;
  color: var(--ui-accent);
}

/* Category Quick Filter Chips */
.guide-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 22px;
}
.guide-chip {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--ui-line);
  background: var(--ui-card);
  color: var(--ui-muted);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.guide-chip:hover {
  border-color: var(--ui-accent);
  color: var(--ui-accent);
  background: var(--ui-soft);
}
.guide-chip.is-active {
  background: var(--ui-accent);
  color: white;
  border-color: var(--ui-accent);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--ui-accent) 40%, transparent);
}

/* Franchise Themes: Curated distinctive palettes with unified baseline elegance */
body.skin-apex {
  --ui-accent: #c0392c;
  --guide-ring: #e8362e;
  --ui-card: #fdfaf6;
  --ui-line: #ded5c6;
  --ui-ink: #26272b;
  --ui-muted: #6e6961;
  --ui-soft: #f4ece2;
}
body.skin-pubg {
  --ui-accent: #8b6826;
  --guide-ring: #b88a33;
  --ui-card: #fffcf2;
  --ui-line: #ddd0b6;
  --ui-ink: #2b271f;
  --ui-muted: #736a59;
  --ui-soft: #f4ebd6;
}
body.skin-steam {
  --ui-accent: #1e75a6;
  --guide-ring: #3299d4;
  --ui-card: #f9fcff;
  --ui-line: #ccdae3;
  --ui-ink: #22323e;
  --ui-muted: #62747f;
  --ui-soft: #ecf4f7;
}
body.skin-naruto, body.ninja-guide {
  --ui-accent: #b24d2c;
  --guide-ring: #d96944;
  --ui-card: #fffbf4;
  --ui-line: #ded2bd;
  --ui-ink: #2f2a24;
  --ui-muted: #776a5b;
  --ui-soft: #f4e9d7;
}
body.skin-dota {
  --ui-accent: #34d399;
  --guide-ring: #10b981;
  --ui-card: #151a24;
  --ui-line: #263244;
  --ui-ink: #f0f4fa;
  --ui-muted: #9aa8bc;
  --ui-soft: #1e2636;
}
body.skin-dota .guide-steps > li:before {
  color: #052e16;
}
body.skin-dota :where(kbd) {
  background: linear-gradient(180deg, #1f2937, #111827);
  border-color: #374151;
  border-bottom-color: #1f2937;
  color: #f3f4f6;
}
body.skin-dota :where(code) {
  background: #1f2937;
  color: #6ee7b7;
  border-color: #374151;
}

body.ninja-guide {
  font-size: 16.5px;
  line-height: 1.95;
  background: radial-gradient(circle at 82% 0, rgba(235, 195, 155, 0.28), transparent 32%), #f3efe6 !important;
  color: #2e2821;
}
body.ninja-guide main {
  max-width: 1040px;
  margin: auto;
  padding-inline: clamp(16px, 3.2vw, 38px);
}
body.ninja-guide .topbar {
  box-shadow: 0 4px 20px rgba(93, 59, 25, 0.08);
}
body.ninja-guide .ninja-strip {
  background: rgba(254, 250, 243, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 14px rgba(107, 78, 32, 0.07);
}
body.ninja-guide :where(.card, .intro, .ninja-head) {
  border-radius: 14px;
  background: #fffdf8;
  box-shadow: var(--ui-shadow);
}
body.ninja-guide .card li {
  line-height: 1.92;
}
body.ninja-guide .ninja-head h2 {
  font-size: clamp(24px, 3.2vw, 35px);
  line-height: 1.32;
  letter-spacing: -.02em;
}
body.ninja-guide main h3 {
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.4;
  letter-spacing: -.02em;
}
body.ninja-guide .gifdemo {
  overflow: hidden;
  border: 1px solid var(--ui-line);
  border-radius: 14px;
  background: #1e1b17;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
body.ninja-guide .gifdemo img {
  max-height: 640px;
  object-fit: contain;
  margin: auto;
  display: block;
}
body.ninja-guide .gifdemo figcaption {
  font-size: 13px;
  line-height: 1.65;
  padding: 10px 14px;
  color: #dfd8cb;
  background: #14120e;
  border-top: 1px solid #2e2820;
}
body.ninja-guide .videos a {
  overflow-wrap: anywhere;
}

body.skin-apex .card, body.skin-pubg .card, body.skin-steam .card, body.skin-dota .card {
  border-radius: 14px;
}
body.skin-apex .layout, body.skin-pubg .layout, body.skin-steam .layout {
  gap: clamp(16px, 2.4vw, 32px);
}
body.skin-apex :where(h2, h3), body.skin-pubg :where(h2, h3), body.skin-steam :where(h2, h3) {
  letter-spacing: -.02em;
}
body.skin-dota :where(.card, .legend-card) {
  box-shadow: 0 8px 30px rgba(0,0,0,0.35);
}
body.skin-dota .guide-note {
  background: #161f2c;
  color: #e5edf7;
}
body.skin-dota .guide-note h3, body.skin-dota .guide-note h4 {
  color: #6ee7b7;
}
body.skin-apex .card, body.skin-pubg .card, body.skin-steam .card {
  box-shadow: 0 6px 24px rgba(56, 44, 34, 0.06);
}
body.skin-apex .rail, body.skin-pubg .rail, body.skin-steam .rail {
  scrollbar-width: thin;
}
body.skin-apex .content, body.skin-pubg .content, body.skin-steam .content {
  min-width: 0;
}
body :where(.card, .legend-card, .ninja-card, .toccard) > :last-child {
  margin-bottom: 0;
}
body :where(.card, .legend-card, .guide-note) h4 {
  line-height: 1.4;
}
body .guide-note table {
  border-radius: 10px;
}
body .guide-note p {
  max-width: 90ch;
}
img[src$=".gif"] {
  contain: paint;
}

/* Accessible navigation and guided entry cards */
.guide-skip {
  position: fixed;
  left: 12px;
  top: 8px;
  z-index: 9999;
  transform: translateY(-160%);
  padding: 10px 18px;
  background: var(--ui-card);
  color: var(--ui-ink) !important;
  border: 2px solid var(--ui-accent);
  border-radius: 10px;
  text-decoration: none !important;
  box-shadow: 0 10px 32px rgba(0,0,0,0.3);
  font-weight: 750;
  transition: transform 0.2s ease;
}
.guide-skip:focus {
  transform: translateY(0);
}
.guide-start {
  margin: 16px 0 32px;
  padding: clamp(20px, 3vw, 30px);
  background: var(--ui-card);
  color: var(--ui-ink);
  border: 1px solid var(--ui-line);
  border-top: 4px solid var(--ui-accent);
  border-radius: 16px;
  box-shadow: var(--ui-shadow);
  font: inherit;
  line-height: 1.78;
}
.guide-start-head {
  max-width: 75ch;
}
.guide-start-head strong {
  display: block;
  margin: 8px 0;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.45;
}
.guide-start-head p {
  color: var(--ui-muted);
  font-size: 14.5px;
  margin: 8px 0 18px;
}
.guide-start-eyebrow {
  font: 800 11px/1.5 system-ui, -apple-system, sans-serif;
  letter-spacing: .14em;
  color: var(--ui-accent);
  text-transform: uppercase;
}
.guide-start-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.guide-start-path {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--ui-line);
  border-radius: 12px;
  background: var(--ui-soft);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.guide-start-path:hover {
  transform: translateY(-2px);
  border-color: var(--ui-accent);
}
.guide-start-path b {
  display: block;
  margin-bottom: 8px;
  font-size: 14.5px;
  color: var(--ui-ink);
}
.guide-start-path p {
  margin: 0 !important;
  font-size: 13px !important;
  line-height: 1.85 !important;
  color: var(--ui-muted);
}
.guide-start-path a {
  color: var(--ui-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 750;
}
.guide-start-check {
  padding-top: 14px;
  margin: 16px 0 0 !important;
  border-top: 1px dashed var(--ui-line);
  font-size: 13px !important;
  color: var(--ui-muted);
}
.guide-start-check:before {
  content: "✓ ";
  color: var(--ui-accent);
  font-weight: 900;
}

:where(section, h2, h3, h4):target {
  scroll-margin-top: clamp(108px, 13vh, 190px);
}
:where(h2, h3, h4):target {
  outline: 2px solid var(--ui-accent);
  outline-offset: 6px;
  border-radius: 4px;
}
:where(.guide-note, .guide-start) :where(p, li) {
  max-width: 86ch;
}

body.skin-dota .guide-start {
  --ui-accent: #34d399;
  --ui-card: #151a24;
  --ui-line: #263244;
  --ui-ink: #f0f4fa;
  --ui-muted: #9aa8bc;
  --ui-soft: #1e2636;
}
body.skin-dota .guide-start-path a, body.skin-dota .guide-note a {
  color: #6ee7b7;
}

@media(max-width: 900px) {
  body.ninja-guide .topbar { flex-wrap: wrap; }
  body.ninja-guide .ninja-strip { top: 52px; }
  .guide-start-grid { grid-template-columns: 1fr; }
}
@media(max-width: 720px) {
  .guide-home { left: 12px; bottom: 12px; padding: 9px 14px; font-size: 12px; }
  .guide-quick { right: 12px; bottom: 12px; }
  .guide-quick > details > div { width: min(90vw, 360px); }
  .guide-anchor { opacity: .5; }
  :where(.card, .guide-note) { padding-inline: 18px; }
  body { background-attachment: scroll !important; }
  body.ninja-guide main { padding-bottom: 105px; }
  body.ninja-guide .ninja-strip { top: 0; position: relative; }
  body.ninja-guide .topbar { position: relative; }
  body.ninja-guide .ninja-head { padding: 18px; }
}
@media(prefers-reduced-motion: reduce) {
  *, *:before, *:after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  body { background: white !important; color: #1e1e1e !important; }
  .guide-home, .guide-quick, .guide-progress, .guide-focus-panel, .rail, .topbar, .ninja-strip, nav, .guide-chips { display: none !important; }
  main, .content, .wrap { max-width: 100% !important; width: 100% !important; padding: 0 !important; margin: 0 !important; }
  a { color: inherit !important; text-decoration: underline !important; }
  .card, .legend-card { box-shadow: none !important; break-inside: avoid; }
  img[src$=".gif"] { max-height: 180px; }
  .guide-start { color: #111 !important; background: white !important; box-shadow: none !important; border-color: #888 !important; }
  .guide-start-grid { display: block; }
  .guide-start-path { break-inside: avoid; background: white !important; margin-bottom: 8px; }
  .guide-start-path, .guide-start-path :where(b, p, a) { color: #111 !important; }
  .guide-skip { display: none !important; }
}
