:root {
  --color-bg: #08101f;
  --color-bg-deep: #040817;
  --color-bg-soft: #101b31;
  --color-surface: rgba(17, 29, 52, 0.84);
  --color-surface-muted: rgba(12, 22, 42, 0.72);
  --color-surface-elevated: rgba(24, 39, 68, 0.92);
  --color-border: rgba(232, 208, 150, 0.16);
  --color-border-strong: rgba(255, 193, 102, 0.42);
  --color-text: #f8fbff;
  --color-text-muted: #d8e2f1;
  --color-heading: #ffffff;
  --color-accent: #ffb64b;
  --color-accent-hover: #ffd27a;
  --color-accent-soft: rgba(255, 182, 75, 0.14);
  --color-accent-warm: #f47a3d;
  --color-blue-soft: rgba(92, 185, 255, 0.16);
  --color-green-soft: rgba(88, 221, 158, 0.16);
  --color-red-soft: rgba(255, 112, 103, 0.16);
  --color-purple-soft: rgba(178, 139, 255, 0.16);
  --shadow-card: 0 16px 36px rgba(0, 0, 0, 0.24);
  --shadow-panel: 0 22px 64px rgba(0, 0, 0, 0.34);
  --shadow-glow: 0 0 0 1px rgba(255, 202, 116, 0.18), 0 0 34px rgba(255, 152, 64, 0.11);
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --layout-max-width: 1180px;
  --content-max-width: 980px;
  --archive-shell-width: 1400px;
  --article-shell-width: 1400px;
  --article-max-width: 1000px;
  --toc-width: 260px;
  --article-gap: 40px;
  --article-sticky-offset: calc(var(--header-height) + 16px);
  --header-height: 68px;
  --font-sans: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--color-text);
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 177, 74, 0.18), transparent 26rem),
    radial-gradient(circle at 88% 2%, rgba(75, 180, 255, 0.15), transparent 28rem),
    radial-gradient(circle at 50% 90%, rgba(78, 222, 166, 0.11), transparent 30rem),
    linear-gradient(135deg, var(--color-bg-deep), var(--color-bg) 40%, #11132a);
  font-family: var(--font-sans);
  line-height: 1.6;
  letter-spacing: 0;
}

body.guide-copy-guard {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

body.guide-copy-guard input,
body.guide-copy-guard textarea,
body.guide-copy-guard select,
body.guide-copy-guard option,
body.guide-copy-guard [contenteditable="true"],
body.guide-copy-guard [contenteditable=""],
body.guide-copy-guard .allow-text-select {
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
}

body.guide-copy-guard a,
body.guide-copy-guard button,
body.guide-copy-guard img,
body.guide-copy-guard summary,
body.guide-copy-guard [role="button"],
body.guide-copy-guard .allow-click {
  -webkit-user-select: auto;
  -moz-user-select: auto;
  user-select: auto;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 78%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 18% 32%, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 100%),
    radial-gradient(circle at 74% 22%, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 100%),
    radial-gradient(circle at 62% 70%, rgba(255, 210, 122, 0.1) 0 1px, transparent 1px 100%);
  background-size: 150px 150px, 210px 210px, 170px 170px;
  opacity: 0.7;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

svg {
  width: 1em;
  height: 1em;
  flex: none;
}

img {
  max-width: 100%;
  height: auto;
}

:focus-visible {
  outline: 2px solid var(--color-accent-hover);
  outline-offset: 3px;
}

html.ms-cursor-boot,
html.ms-cursor-boot body,
html.ms-cursor-boot body * {
  cursor: url("./cursors/dynamic-cursor-default-v2.png?v=cursor-overlay-v7") 25 28, none !important;
}

html.ms-cursor-boot a[href],
html.ms-cursor-boot button:not([disabled]),
html.ms-cursor-boot summary,
html.ms-cursor-boot select:not([disabled]),
html.ms-cursor-boot label[for],
html.ms-cursor-boot input[type="button"]:not([disabled]),
html.ms-cursor-boot input[type="checkbox"]:not([disabled]),
html.ms-cursor-boot input[type="radio"]:not([disabled]),
html.ms-cursor-boot input[type="range"]:not([disabled]),
html.ms-cursor-boot input[type="submit"]:not([disabled]),
html.ms-cursor-boot input[type="reset"]:not([disabled]),
html.ms-cursor-boot [role="button"],
html.ms-cursor-boot [role="link"],
html.ms-cursor-boot [data-clickable],
html.ms-cursor-boot [tabindex]:not([tabindex="-1"]),
html.ms-cursor-boot .content-image-button,
html.ms-cursor-boot .copy-anchor {
  cursor: url("./cursors/dynamic-cursor-click-v2.png?v=cursor-overlay-v7") 30 30, none !important;
}

html.ms-cursor-boot input:not([type]),
html.ms-cursor-boot input[type="email"],
html.ms-cursor-boot input[type="number"],
html.ms-cursor-boot input[type="password"],
html.ms-cursor-boot input[type="search"],
html.ms-cursor-boot input[type="tel"],
html.ms-cursor-boot input[type="text"],
html.ms-cursor-boot input[type="url"],
html.ms-cursor-boot textarea,
html.ms-cursor-boot [contenteditable="true"] {
  cursor: text !important;
}

html.ms-cursor-overlay-ready,
html.ms-cursor-overlay-ready body,
html.ms-cursor-overlay-ready body * {
  cursor: none !important;
}

html.ms-cursor-overlay-ready.ms-cursor-text input:not([type]),
html.ms-cursor-overlay-ready.ms-cursor-text input[type="email"],
html.ms-cursor-overlay-ready.ms-cursor-text input[type="number"],
html.ms-cursor-overlay-ready.ms-cursor-text input[type="password"],
html.ms-cursor-overlay-ready.ms-cursor-text input[type="search"],
html.ms-cursor-overlay-ready.ms-cursor-text input[type="tel"],
html.ms-cursor-overlay-ready.ms-cursor-text input[type="text"],
html.ms-cursor-overlay-ready.ms-cursor-text input[type="url"],
html.ms-cursor-overlay-ready.ms-cursor-text textarea,
html.ms-cursor-overlay-ready.ms-cursor-text [contenteditable="true"] {
  cursor: text !important;
}

.ms-cursor-overlay {
  --cursor-x: -80px;
  --cursor-y: -80px;
  --cursor-w: 30px;
  --cursor-h: 30px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2147483647;
  width: var(--cursor-w);
  height: var(--cursor-h);
  pointer-events: none;
  opacity: 0;
  transform: translate3d(var(--cursor-x), var(--cursor-y), 0);
  transition: opacity 80ms ease;
  will-change: transform;
}

html.ms-cursor-visible:not(.ms-cursor-text) .ms-cursor-overlay {
  opacity: 1;
}

.ms-cursor-frame {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  max-width: none;
  image-rendering: auto;
  opacity: 0;
  user-select: none;
}

.ms-cursor-frame-default,
.ms-cursor-frame-press {
  width: 25px;
  height: 28px;
}

.ms-cursor-frame-click,
.ms-cursor-frame-click-red {
  width: 30px;
  height: 30px;
}

.ms-cursor-frame-default {
  opacity: 1;
}

.ms-cursor-overlay.is-clickable .ms-cursor-frame-default,
.ms-cursor-overlay.is-pressed .ms-cursor-frame-default,
.ms-cursor-overlay.is-text .ms-cursor-frame-default {
  opacity: 0;
}

.ms-cursor-overlay.is-clickable:not(.is-pressed) .ms-cursor-frame-click {
  opacity: 1;
  animation: ms-cursor-click-base 700ms steps(1, end) infinite;
}

.ms-cursor-overlay.is-clickable:not(.is-pressed) .ms-cursor-frame-click-red {
  animation: ms-cursor-click-red 700ms steps(1, end) infinite;
}

.ms-cursor-overlay.is-pressed .ms-cursor-frame-press {
  opacity: 1;
}

.ms-cursor-overlay.is-text {
  opacity: 0;
}

@keyframes ms-cursor-click-base {
  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

@keyframes ms-cursor-click-red {
  0%,
  49% {
    opacity: 0;
  }

  50%,
  100% {
    opacity: 1;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: var(--header-height);
  border-bottom: 1px solid rgba(255, 217, 151, 0.12);
  background: rgba(4, 8, 22, 0.78);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(190px, 280px) auto;
  gap: 16px;
  align-items: center;
  width: min(var(--layout-max-width), calc(100% - 32px));
  min-height: var(--header-height);
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: url("./images/site-icon.png") center / contain no-repeat;
  box-shadow: none;
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  content: "";
}

.brand-mark::before {
  display: none;
}

.brand-mark::after {
  display: none;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-name {
  color: var(--color-heading);
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-tagline {
  color: var(--color-text-muted);
  font-size: 12px;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  gap: 4px;
  align-items: center;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav .mobile-nav-search {
  display: none;
}

.nav-link {
  flex: none;
  padding: 8px 10px;
  color: var(--color-text-muted);
  font-size: 14px;
  border-radius: var(--radius-sm);
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--color-heading);
  background: rgba(255, 214, 145, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 214, 145, 0.14);
}

.header-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  height: 40px;
  overflow: hidden;
  border: 1px solid rgba(255, 217, 151, 0.16);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
}

.header-search:focus-within {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-glow);
}

.header-search input {
  width: 100%;
  min-width: 0;
  padding: 0 0 0 12px;
  color: var(--color-text);
  border: 0;
  outline: 0;
  background: transparent;
}

.header-search input::placeholder {
  color: rgba(246, 236, 215, 0.58);
}

.header-search button,
.nav-toggle {
  display: grid;
  place-items: center;
  color: var(--color-accent-hover);
  border: 0;
  background: transparent;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
}

.page-main {
  width: min(var(--layout-max-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 64px;
}

.library-top,
.game-panel,
.guide-section {
  min-width: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    var(--color-surface);
  box-shadow: var(--shadow-card);
}

.library-top {
  display: grid;
  gap: 14px;
  width: 100%;
  max-width: none;
  margin: 0 auto 24px;
  padding: clamp(20px, 3.5vw, 30px);
}

.library-top.library-search-shell {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.section-kicker {
  margin: 0;
  color: var(--color-accent-hover);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.library-top h1,
.listing-intro h1,
.article-header h1 {
  margin: 0;
  color: var(--color-heading);
  font-weight: 900;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.library-top h1 {
  max-width: 720px;
  font-size: clamp(28px, 4.4vw, 42px);
}

.library-summary,
.listing-intro p,
.archive-description,
.article-header p {
  max-width: 760px;
  margin: 0;
  color: var(--color-text-muted);
}

.archive-description p {
  margin: 0;
}

.guide-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 8px;
  border: 1px solid rgba(255, 217, 151, 0.2);
  border-radius: var(--radius-md);
  background: rgba(3, 8, 20, 0.55);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.guide-search-large {
  width: 100%;
  min-height: 64px;
}

.guide-search:focus-within {
  border-color: var(--color-border-strong);
  background: rgba(3, 8, 20, 0.7);
  box-shadow: var(--shadow-glow);
}

.search-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--color-accent-hover);
}

.guide-search input {
  width: 100%;
  min-width: 0;
  color: var(--color-text);
  font-size: 16px;
  border: 0;
  outline: 0;
  background: transparent;
}

.guide-search input::placeholder {
  color: rgba(246, 236, 215, 0.58);
}

.guide-search button,
.button {
  min-height: 42px;
  padding: 0 16px;
  color: #1e1306;
  font-size: 14px;
  font-weight: 800;
  border: 1px solid rgba(255, 226, 163, 0.45);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, var(--color-accent-hover), var(--color-accent));
  box-shadow: 0 10px 22px rgba(255, 150, 48, 0.2);
}

.guide-search .search-clear {
  min-height: 34px;
  padding: 0 10px;
  color: var(--color-text-muted);
  border-color: rgba(255, 217, 151, 0.14);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.guide-search .search-clear:hover {
  color: var(--color-heading);
  border-color: var(--color-border-strong);
}

.button.secondary {
  color: var(--color-heading);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.search-hints,
.tag-row,
.filter-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

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

.select-field {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 800;
}

.select-field select {
  width: 100%;
  min-height: 40px;
  color: var(--color-text);
  border: 1px solid rgba(255, 217, 151, 0.16);
  border-radius: var(--radius-sm);
  background: rgba(3, 8, 20, 0.7);
}

.search-recommendations {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.search-hints a,
.tag-chip,
.filter-chip,
.badge,
.match-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  color: var(--color-text);
  font-size: 13px;
  border: 1px solid rgba(255, 217, 151, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.search-hints a:hover,
.tag-chip:hover,
.filter-chip:hover,
.filter-chip.is-active {
  color: var(--color-heading);
  border-color: var(--color-border-strong);
  background: var(--color-accent-soft);
}

.guide-section {
  margin-top: 24px;
  padding: 20px;
}

.home-notice-section {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 119, 102, 0.34);
  border-left: 5px solid #ff6b54;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 112, 103, 0.18), rgba(255, 210, 122, 0.08)),
    rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-card);
}

.page-main > .home-notice-section:first-child {
  margin-top: 0;
}

.home-notice-section + .library-top {
  margin-top: 18px;
}

.home-notice-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #2a0b06;
  font-size: 19px;
  font-weight: 900;
  line-height: 1;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffd6c8, #ff765f);
  box-shadow: 0 8px 18px rgba(255, 92, 68, 0.24);
}

.home-notice-copy {
  min-width: 0;
}

.home-notice-copy .section-kicker,
.home-news-section .section-kicker {
  margin-bottom: 2px;
}

.home-notice-copy h2 {
  margin: 0 0 2px;
  color: #ffb9aa;
  font-size: 18px;
  line-height: 1.25;
}

.home-notice-copy p {
  margin: 0;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
}

.home-notice-action,
.home-notice-details summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 11px;
  color: #fff7f2;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid rgba(255, 168, 145, 0.44);
  border-radius: 999px;
  background: rgba(255, 105, 84, 0.2);
}

.home-notice-action:hover,
.home-notice-details summary:hover {
  color: #ffffff;
  border-color: rgba(255, 205, 188, 0.66);
  background: rgba(255, 105, 84, 0.32);
}

.home-notice-details {
  position: relative;
}

.home-notice-details summary {
  cursor: pointer;
  list-style: none;
}

.home-notice-details summary::-webkit-details-marker {
  display: none;
}

.home-notice-full {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 20;
  width: min(680px, calc(100vw - 40px));
  padding: 16px;
  color: var(--color-text);
  border: 1px solid rgba(255, 119, 102, 0.34);
  border-radius: var(--radius-md);
  background: rgba(18, 20, 31, 0.98);
  box-shadow: var(--shadow-panel);
}

.home-notice-full p {
  margin: 0;
  color: var(--color-text);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.8;
}

.home-notice-full p + p {
  margin-top: 10px;
}

.home-updates-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: 18px;
  align-items: stretch;
  margin-top: 18px;
}

.home-updates-grid-news-only {
  grid-template-columns: 1fr;
}

.home-news-section {
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(92, 185, 255, 0.11), rgba(255, 217, 151, 0.06)),
    rgba(255, 255, 255, 0.055);
  box-shadow: var(--shadow-card);
}

.home-news-list {
  display: grid;
  gap: 8px;
}

.home-news-item a,
.home-news-item > div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 42px;
  padding: 9px 11px;
  color: inherit;
  text-decoration: none;
  border: 1px solid rgba(255, 217, 151, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(3, 8, 20, 0.22);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.home-news-item a:hover,
.home-news-item > div:hover {
  transform: translateY(-1px);
  border-color: var(--color-border-strong);
  background: rgba(255, 255, 255, 0.07);
}

.home-news-item time {
  color: var(--color-accent-hover);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.home-news-item span {
  min-width: 0;
  overflow: hidden;
  color: var(--color-heading);
  font-size: 15px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-news-item em {
  justify-self: end;
  min-width: 48px;
  padding: 3px 9px;
  color: #2a1d08;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffe5a6, #ffc45e);
}

.home-community-section {
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: var(--shadow-card);
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  align-items: start;
  justify-content: center;
}

.community-card {
  display: grid;
  gap: 8px;
  justify-items: center;
  min-width: 0;
  padding: 0;
  text-align: center;
}

.community-qr-button {
  display: grid;
  width: min(100%, 96px);
  aspect-ratio: 1;
  padding: 6px;
  border: 1px solid rgba(255, 217, 151, 0.2);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.9);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  place-items: center;
}

.community-qr-button:hover,
.community-qr-button:focus-visible {
  transform: translateY(-2px);
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-glow);
  outline: 0;
}

.community-qr-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.community-card h3 {
  margin: 0;
  color: var(--color-heading);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.community-empty {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  color: var(--color-text-muted);
  border: 1px dashed rgba(255, 217, 151, 0.24);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
}

.community-empty strong {
  color: var(--color-heading);
}

.community-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  padding: 24px;
  color: var(--color-text);
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(4px);
  place-items: center;
}

.community-lightbox[hidden] {
  display: none;
}

.community-lightbox-panel {
  position: relative;
  width: min(92vw, 460px);
  padding: 18px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  background: rgba(9, 15, 32, 0.96);
  box-shadow: var(--shadow-panel);
}

.community-lightbox-inner {
  display: grid;
  gap: 12px;
  justify-items: center;
}

.community-lightbox img {
  display: block;
  width: min(100%, 360px);
  aspect-ratio: 1;
  padding: 12px;
  object-fit: contain;
  border-radius: var(--radius-md);
  background: #fff;
}

.community-lightbox strong {
  color: var(--color-heading);
  font-size: 18px;
}

.community-lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 32px;
  height: 32px;
  color: var(--color-heading);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  place-items: center;
}

.article-image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  padding: clamp(18px, 4vw, 44px);
  overflow: auto;
  overscroll-behavior: contain;
  color: var(--color-heading);
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(4px);
  place-items: center;
}

body.article-image-lightbox-open {
  overflow: hidden;
}

.article-image-lightbox[hidden] {
  display: none;
}

.article-image-lightbox-figure {
  display: grid;
  gap: 10px;
  max-width: min(96vw, 1280px);
  max-height: min(90vh, 920px);
  margin: 0;
  justify-items: center;
}

.article-image-lightbox.is-zoomed {
  place-items: start center;
}

.article-image-lightbox.is-zoomed .article-image-lightbox-figure {
  max-width: none;
  max-height: none;
}

.article-image-lightbox-figure img {
  display: block;
  max-width: min(96vw, 1280px);
  max-height: calc(90vh - 44px);
  width: auto;
  height: auto;
  object-fit: contain;
  border: 0;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow-panel);
  cursor: zoom-in;
  transition: width 140ms ease, height 140ms ease;
  will-change: width, height;
}

.article-image-lightbox.is-zoomed .article-image-lightbox-figure img {
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.article-image-lightbox.is-dragging .article-image-lightbox-figure img {
  cursor: grabbing;
}

.article-image-lightbox-figure figcaption {
  max-width: min(92vw, 960px);
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.article-image-lightbox-close,
.article-image-lightbox-nav {
  position: fixed;
  z-index: 1301;
  display: grid;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(8, 12, 22, 0.72);
  box-shadow: var(--shadow-card);
  place-items: center;
}

.article-image-lightbox-close {
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  font-size: 28px;
  line-height: 1;
}

.article-image-lightbox-nav {
  top: 50%;
  width: 42px;
  height: 58px;
  font-size: 42px;
  line-height: 1;
  transform: translateY(-50%);
}

.article-image-lightbox-nav[hidden] {
  display: none;
}

.article-image-lightbox-prev {
  left: 18px;
}

.article-image-lightbox-next {
  right: 18px;
}

.article-image-lightbox-link {
  cursor: zoom-in;
}

.article-prose img[data-article-image-lightbox="1"],
.entry-content img[data-article-image-lightbox="1"],
.wp-block-post-content img[data-article-image-lightbox="1"],
.page-content-single img[data-article-image-lightbox="1"] {
  cursor: zoom-in;
}

.article-prose .wp-lightbox-container > button,
.entry-content .wp-lightbox-container > button,
.wp-block-post-content .wp-lightbox-container > button,
.page-content-single .wp-lightbox-container > button {
  display: none !important;
}

.home-featured-section {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(255, 217, 151, 0.2);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 217, 151, 0.12), rgba(104, 179, 255, 0.08)),
    rgba(255, 255, 255, 0.055);
  box-shadow: var(--shadow-card);
}

.featured-guide-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.featured-guide-card {
  display: block;
  height: 100%;
}

.featured-guide-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 136px;
  gap: 8px;
  padding: 14px;
  color: inherit;
  text-decoration: none;
  border: 1px solid rgba(255, 217, 151, 0.22);
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(255, 217, 151, 0.1), rgba(255, 255, 255, 0.04)),
    rgba(3, 8, 20, 0.28);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.featured-guide-card a:hover {
  transform: translateY(-2px);
  border-color: var(--color-border-strong);
  background:
    linear-gradient(135deg, rgba(255, 217, 151, 0.16), rgba(104, 179, 255, 0.08)),
    rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-glow);
}

.featured-guide-kicker {
  width: max-content;
  padding: 3px 9px;
  color: #2a1d08;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.4;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffe5a6, #ffc45e);
}

.featured-guide-card h3 {
  margin: 0;
  color: var(--color-heading);
  font-size: 17px;
  line-height: 1.3;
}

.featured-guide-card p {
  margin: 0;
  color: var(--color-text);
  font-size: 13px;
  line-height: 1.58;
}

.featured-guide-note {
  max-width: 100%;
  min-height: 20px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.featured-guide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin-top: auto;
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 700;
}

.featured-guide-empty {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  color: var(--color-text-muted);
  border: 1px dashed rgba(255, 217, 151, 0.24);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
}

.featured-guide-empty strong {
  color: var(--color-heading);
}

.section-head {
  display: flex;
  gap: 16px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-head.compact {
  align-items: center;
  margin-bottom: 12px;
}

.section-head h2,
.compact-panel h2,
.article-toc h2 {
  margin: 0;
  color: var(--color-heading);
  font-size: 20px;
  line-height: 1.25;
}

.text-link {
  display: inline-flex;
  align-items: center;
  color: var(--color-accent-hover);
  font-size: 14px;
  font-weight: 800;
}

.text-link:hover {
  color: #fff1bf;
}

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

.category-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  gap: 10px;
  min-height: 104px;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.055);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.category-card:hover,
.guide-card:hover,
.topic-card:hover,
.tool-link:hover {
  transform: translateY(-2px);
  border-color: var(--color-border-strong);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-glow);
}

.category-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--color-accent-hover);
  border: 1px solid rgba(255, 217, 151, 0.18);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
}

.category-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.category-card > .category-copy:first-child:last-child {
  grid-column: 1 / -1;
}

.category-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.category-card-head strong {
  min-width: 0;
  color: var(--color-heading);
  font-size: 16px;
}

.category-desc {
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 1.42;
}

.category-meta {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: max-content;
  padding: 2px 7px;
  border: 1px solid rgba(255, 217, 151, 0.22);
  border-radius: 999px;
  background: rgba(255, 217, 151, 0.08);
  color: var(--color-accent-hover);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.tone-blue .category-icon,
.tone-blue.badge {
  color: #9fd8ff;
  background: var(--color-blue-soft);
}

.tone-green .category-icon,
.tone-green.badge {
  color: #a7f0c9;
  background: var(--color-green-soft);
}

.tone-red .category-icon,
.tone-red.badge {
  color: #ffb2a9;
  background: var(--color-red-soft);
}

.tone-purple .category-icon,
.tone-purple.badge {
  color: #d5c4ff;
  background: var(--color-purple-soft);
}

.home-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.home-aside {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.compact-panel {
  padding: 16px;
}

.guide-list {
  display: grid;
  gap: 12px;
}

.guide-list-compact {
  gap: 10px;
}

.guide-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.055);
  color: inherit;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.guide-card:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

.guide-card.is-compact {
  padding: 13px;
}

.guide-card-meta,
.guide-card-foot,
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  color: var(--color-text-muted);
  font-size: 13px;
}

.guide-card-foot span,
.article-meta span {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  min-width: 0;
  overflow-wrap: anywhere;
}

.guide-card h3 {
  margin: 0;
  color: var(--color-heading);
  font-size: 20px;
  line-height: 1.35;
}

.guide-card.is-compact h3 {
  font-size: 16px;
}

.guide-card:hover h3 {
  color: var(--color-accent-hover);
}

.guide-card p,
.topic-card p,
.tool-link em,
.empty-state p {
  margin: 0;
  color: var(--color-text-muted);
}

.guide-card p {
  font-size: 14px;
}

.search-result-card {
  gap: 12px;
}

.search-result-main {
  display: grid;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.search-hit-list {
  display: grid;
  gap: 8px;
}

.search-hit-link {
  display: grid;
  gap: 5px;
  padding: 10px 12px;
  color: inherit;
  text-decoration: none;
  border: 1px solid rgba(255, 217, 151, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(3, 8, 20, 0.28);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.search-hit-link:hover {
  border-color: rgba(255, 217, 151, 0.26);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.search-hit-link strong {
  color: var(--color-heading);
  font-size: 14px;
  line-height: 1.4;
}

.search-hit-snippet {
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 1.55;
}

.badge {
  min-height: 26px;
  font-weight: 800;
}

.tone-orange,
.tone-neutral,
.tone-level {
  color: #ffd69b;
  background: var(--color-accent-soft);
}

.tone-server,
.status-verified {
  color: #b8f5d6;
  background: var(--color-green-soft);
}

.tone-job {
  color: #c6eeff;
  background: var(--color-blue-soft);
}

.tone-boss {
  color: #ffb2a9;
  background: var(--color-red-soft);
}

.status-draft,
.status-review {
  color: #ffe0a8;
  background: rgba(255, 190, 94, 0.16);
}

.status-outdated {
  color: #ffb2a9;
  background: var(--color-red-soft);
}

.match-label {
  color: #b8f5d6;
  background: var(--color-green-soft);
}

.search-hit-snippet mark {
  padding: 0 2px;
  color: #1e1306;
  border-radius: 4px;
  background: var(--color-accent-hover);
}

.tool-list {
  display: grid;
  gap: 8px;
}

.tool-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 10px;
  padding: 11px;
  border: 1px solid rgba(255, 217, 151, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.045);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.tool-link span {
  grid-row: span 2;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: var(--color-accent-hover);
}

.tool-link strong {
  color: var(--color-heading);
  font-size: 14px;
}

.tool-link em {
  font-size: 12px;
  font-style: normal;
}

.notice-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.notice-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  color: var(--color-text-muted);
  font-size: 13px;
}

.notice-list a:hover {
  color: var(--color-accent-hover);
}

.notice-list span {
  color: var(--color-accent-hover);
}

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

.topic-card {
  display: grid;
  gap: 10px;
  min-height: 150px;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.topic-card h3 {
  margin: 0;
  color: var(--color-heading);
  font-size: 18px;
}

.listing-page {
  width: min(var(--archive-shell-width), calc(100% - 32px));
  max-width: var(--archive-shell-width);
}

.listing-intro {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  color: var(--color-text-muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.breadcrumb a:hover {
  color: var(--color-accent-hover);
}

.listing-title-row {
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.listing-intro h1 {
  font-size: clamp(28px, 5vw, 40px);
}

.listing-count,
.result-count {
  flex: none;
  color: var(--color-accent-hover);
  font-size: 14px;
  font-weight: 800;
}

.guide-list-dense .guide-card {
  padding: 14px;
}

.guide-list-dense .guide-card h3 {
  font-size: 18px;
}

.pagination {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.pagination a,
.pagination span {
  display: grid;
  min-width: 36px;
  height: 36px;
  place-items: center;
  padding: 0 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.045);
}

.pagination a:hover,
.pagination a.is-active,
.pagination span.is-active {
  color: var(--color-heading);
  border-color: var(--color-border-strong);
  background: var(--color-accent-soft);
}

.empty-category-guide {
  margin-top: 14px;
  color: var(--color-text-muted);
}

.not-found {
  display: grid;
  gap: 14px;
  max-width: 680px;
  margin: 40px auto;
  padding: clamp(22px, 4vw, 32px);
}

.not-found h1 {
  margin: 0;
  color: var(--color-heading);
  font-size: clamp(28px, 4vw, 40px);
}

.not-found p {
  margin: 0;
  color: var(--color-text-muted);
}

.article-page {
  width: min(var(--article-shell-width), calc(100% - 32px));
}

.article-breadcrumb {
  max-width: var(--article-shell-width);
  margin: 0 auto 16px;
}

.article-breadcrumb-no-toc {
  max-width: var(--article-max-width);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, var(--article-max-width)) var(--toc-width);
  gap: var(--article-gap);
  justify-content: center;
  align-items: start;
}

.article-layout-no-toc {
  grid-template-columns: minmax(0, var(--article-max-width));
}

.article-layout-no-toc .article-main {
  justify-self: center;
  width: min(var(--article-max-width), 100%);
}

.article-main {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.article-header,
.article-prose {
  padding: clamp(18px, 4vw, 28px);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.article-header h1 {
  max-width: 920px;
  margin-bottom: 12px;
  font-size: clamp(28px, 4.5vw, 42px);
}

.article-header p {
  margin-bottom: 16px;
  font-size: 17px;
}

.article-side {
  position: sticky;
  top: var(--article-sticky-offset);
  display: grid;
  gap: 16px;
}

.article-toc {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  max-height: calc(100vh - var(--article-sticky-offset) - 24px);
  overflow: hidden;
  padding: 16px;
}

.article-toc h2 {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
  font-size: 17px;
}

.toc-links {
  display: grid;
  gap: 4px;
}

.article-toc .toc-links,
.article-toc-mobile .toc-links {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  scrollbar-width: thin;
}

.article-toc-mobile .toc-links {
  max-height: 52vh;
  margin-top: 12px;
}

.toc-links a {
  padding: 8px 10px;
  color: var(--color-text-muted);
  font-size: 14px;
  border-radius: var(--radius-sm);
}

.toc-links a:hover,
.toc-links a.is-active {
  color: var(--color-heading);
  background: var(--color-accent-soft);
}

.toc-links .toc-sub {
  padding-left: 20px;
  font-size: 13px;
}

.article-toc-mobile {
  display: none;
  padding: 12px 16px;
}

.article-toc-mobile summary {
  color: var(--color-heading);
  font-weight: 800;
}

.article-prose {
  position: relative;
  isolation: isolate;
  max-width: var(--article-max-width);
  min-width: 0;
  --article-watermark-color: rgba(255, 255, 255, 0.085);
  color: var(--color-text);
  font-size: 17px;
  line-height: 1.85;
}

.article-prose::after {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  content: "";
  border-radius: inherit;
  background-color: var(--article-watermark-color);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='250' viewBox='0 0 420 250'%3E%3Cg transform='rotate(-28 210 125)'%3E%3Ctext x='24' y='142' font-size='40' font-weight='700' fill='%23000' font-family='Arial, sans-serif'%3Elonglegmxd%3C/text%3E%3C/g%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='250' viewBox='0 0 420 250'%3E%3Cg transform='rotate(-28 210 125)'%3E%3Ctext x='24' y='142' font-size='40' font-weight='700' fill='%23000' font-family='Arial, sans-serif'%3Elonglegmxd%3C/text%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-repeat: repeat;
  mask-repeat: repeat;
  -webkit-mask-size: 420px 250px;
  mask-size: 420px 250px;
}

.article-prose > p:first-child {
  margin-top: 0;
}

.article-prose h2 {
  margin: 34px 0 10px;
  color: var(--color-heading);
  font-size: 26px;
  line-height: 1.35;
}

.article-prose h3 {
  margin: 0 0 12px;
  color: var(--color-heading);
  font-size: 18px;
}

.copy-anchor,
.heading-anchor {
  display: inline-grid;
  width: 28px;
  height: 28px;
  margin-left: 8px;
  place-items: center;
  color: var(--color-text-muted);
  font-size: 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  opacity: 0.55;
  transition: opacity 160ms ease, color 160ms ease, background 160ms ease;
}

.article-prose h2:hover .copy-anchor,
.article-prose h3:hover .copy-anchor,
.heading-anchor:hover,
.copy-anchor:hover,
.copy-anchor.is-copied {
  color: var(--color-accent-hover);
  background: var(--color-accent-soft);
  opacity: 1;
}

.article-prose p {
  margin: 0 0 16px;
}

.article-prose [id] {
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.content-image-frame {
  margin: 24px 0;
}

.image-frame-static img {
  display: block;
  max-width: 100%;
  max-height: 520px;
  margin-right: 0;
  margin-left: 0;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.04);
}

.image-frame-static .image-missing-note {
  display: none;
  margin-left: 8px;
  color: #ffd27a;
}

.image-frame-static.is-missing {
  padding: 14px;
  border: 1px dashed rgba(255, 207, 112, 0.36);
  border-radius: var(--radius-md);
  background: rgba(255, 207, 112, 0.08);
}

.image-frame-static.is-missing .image-missing-note {
  display: block;
  margin: 6px 0 0;
}

.content-image-button {
  display: block;
  gap: 8px;
  width: 100%;
  min-width: 0;
  min-height: 260px;
  padding: 24px;
  color: var(--color-text-muted);
  text-align: left;
  border: 0;
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(255, 183, 73, 0.08), rgba(92, 185, 255, 0.08)),
    rgba(0, 0, 0, 0.18);
}

.content-image-button img {
  display: block;
  max-height: 420px;
  margin-right: 0;
  margin-left: 0;
  object-fit: contain;
  border-radius: 0;
}

.content-image-button img:not([hidden]) + .image-placeholder {
  display: none;
}

.content-image-frame svg,
.image-placeholder svg {
  width: 44px;
  height: 44px;
  color: var(--color-accent-hover);
}

.content-image-frame strong,
.image-placeholder strong {
  color: var(--color-heading);
}

.content-image-frame em,
.content-image-frame figcaption {
  color: var(--color-text-muted);
  font-size: 13px;
  font-style: normal;
  overflow-wrap: anywhere;
}

.content-image-frame figcaption {
  margin-top: 8px;
}

.image-placeholder {
  display: grid;
  gap: 8px;
  place-items: center;
  text-align: center;
}

.callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 12px;
  margin: 18px 0;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.055);
}

.callout-icon {
  grid-row: span 2;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--color-accent-hover);
  border-radius: var(--radius-sm);
  background: var(--color-accent-soft);
}

.callout strong {
  color: var(--color-heading);
  line-height: 1.3;
}

.callout p {
  margin: 0;
  color: var(--color-text-muted);
}

.callout-tip,
.callout-success,
.callout-quest {
  border-color: rgba(102, 232, 166, 0.26);
  background: var(--color-green-soft);
}

.callout-warning,
.callout-danger,
.callout-boss {
  border-color: rgba(255, 131, 102, 0.28);
  background: var(--color-red-soft);
}

.callout-item {
  border-color: rgba(255, 210, 122, 0.28);
  background: var(--color-accent-soft);
}

.step-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 18px 0;
  list-style: none;
  counter-reset: steps;
}

.step-list li {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 13px 14px 13px 48px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.045);
  counter-increment: steps;
}

.step-list li::before {
  position: absolute;
  top: 13px;
  left: 14px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #251707;
  font-size: 12px;
  font-weight: 900;
  content: counter(steps);
  border-radius: 50%;
  background: var(--color-accent-hover);
}

.step-list strong {
  color: var(--color-heading);
}

.step-list span {
  color: var(--color-text-muted);
}

.guide-table-wrap {
  position: relative;
  max-width: 100%;
  width: 100%;
  margin: 18px 0;
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.table-scroll::after {
  position: sticky;
  left: 0;
  display: block;
  padding: 6px 10px;
  color: var(--color-text-muted);
  font-size: 12px;
  content: attr(data-scroll-hint);
  background: rgba(3, 8, 20, 0.62);
}

table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 217, 151, 0.1);
}

th {
  color: var(--color-heading);
  background: rgba(255, 182, 75, 0.22);
}

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

tbody tr:hover {
  background: rgba(255, 255, 255, 0.045);
}

.article-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
}

.article-nav a,
.article-nav-empty {
  display: grid;
  gap: 4px;
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.045);
}

.article-nav a:hover {
  border-color: var(--color-border-strong);
  background: var(--color-accent-soft);
}

.article-nav span {
  color: var(--color-text-muted);
  font-size: 13px;
}

.article-nav strong {
  color: var(--color-heading);
  line-height: 1.35;
}

.related-section {
  margin-top: 0;
}

.site-footer {
  border-top: 1px solid rgba(255, 217, 151, 0.12);
  background: rgba(4, 8, 22, 0.5);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  width: min(var(--layout-max-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0;
}

.footer-inner h2 {
  margin: 4px 0 8px;
  color: var(--color-heading);
  font-size: 20px;
}

.footer-inner p {
  max-width: 780px;
  margin: 0 0 8px;
  color: var(--color-text-muted);
}

.source-statement {
  font-size: 13px;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: start;
  justify-content: end;
}

.footer-inner nav a {
  color: var(--color-text-muted);
  font-size: 14px;
}

.footer-inner nav a:hover {
  color: var(--color-accent-hover);
}

.blank-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.blank-shell {
  display: grid;
  gap: 18px;
  width: min(560px, 100%);
}

.blank-brand {
  justify-self: center;
}

.blank-card {
  display: grid;
  gap: 14px;
  padding: 24px;
  text-align: center;
}

.blank-card h1 {
  margin: 0;
  color: var(--color-heading);
}

.blank-card p {
  margin: 0;
  color: var(--color-text-muted);
}

.blank-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media (max-width: 1060px) {
  .header-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    right: 16px;
    left: 16px;
    display: none !important;
    flex-direction: column;
    align-items: stretch;
    max-height: calc(100vh - var(--header-height) - 24px);
    padding: 10px;
    overflow-y: auto;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: rgba(6, 11, 25, 0.96);
    box-shadow: var(--shadow-panel);
  }

  .main-nav.is-open {
    display: flex !important;
  }

  .main-nav .mobile-nav-search {
    display: grid;
    margin-top: 4px;
  }

  .nav-link {
    padding: 10px 12px;
  }

  .header-search {
    grid-column: 2;
  }

  .nav-toggle {
    display: grid;
  }

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

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

  .home-content-grid,
  .home-updates-grid,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .filter-controls {
    grid-template-columns: 1fr;
  }

  .home-aside {
    margin-top: 0;
  }

  .article-side {
    position: static;
    grid-row: 1;
  }

  .article-side .article-toc {
    display: none;
  }

  .article-toc-mobile {
    display: block;
  }
}

@media (max-width: 780px) {
  .header-inner {
    width: min(100% - 20px, var(--layout-max-width));
    gap: 10px;
  }

  .brand-tagline {
    display: none;
  }

  .header-search {
    display: none;
  }

  .page-main,
  .article-page,
  .footer-inner {
    width: min(100% - 20px, var(--layout-max-width));
  }

  .library-top {
    padding: 20px;
  }

  .library-top h1 {
    font-size: 29px;
  }

  .guide-search {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .guide-search button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .category-grid,
  .community-grid,
  .featured-guide-grid,
  .topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-nav {
    grid-template-columns: 1fr;
  }

  .section-head,
  .listing-title-row,
  .footer-inner {
    align-items: start;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .listing-count {
    align-self: start;
  }

  .footer-inner nav {
    justify-content: start;
  }

  .home-notice-section {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }

  .home-notice-action,
  .home-notice-details {
    grid-column: 2;
    justify-self: start;
  }

  .home-notice-full {
    right: auto;
    left: -52px;
  }
}

@media (max-width: 540px) {
  .brand-name {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .category-grid,
  .featured-guide-grid,
  .topic-grid {
    grid-template-columns: 1fr;
  }

  .community-grid {
    grid-template-columns: repeat(2, minmax(0, 104px));
  }

  .home-news-item a {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .home-news-item span {
    white-space: normal;
  }

  .category-card {
    min-height: 0;
  }

  .article-prose {
    font-size: 16px;
    line-height: 1.78;
  }

  .article-prose h2 {
    font-size: 23px;
  }
}
