/* GenshinTop — vanilla PHP layout; визуальный язык из idpro1313/dandangers modern-styles.css (адаптировано под классы сайта). */

:root {
  /* Канон dandangers / Tiles Survive Wiki */
  --primary: #00d4aa;
  --primary-glow: rgba(0, 212, 170, 0.35);
  --primary-dark: #00a085;
  --secondary: #7c4dff;
  --secondary-glow: rgba(124, 77, 255, 0.35);
  --accent-orange: #ff6b35;

  --bg-dark: #0a0e14;
  --bg-card: #141b22;
  --bg-card-hover: #1a242d;
  --bg-elevated: #1e2830;
  --bg-input: #0d1117;

  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --text-muted: #6e7681;

  --border: #30363d;
  --border-light: #21262d;

  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 28px var(--primary-glow);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --content-wide: 1120px;

  /* Совместимость с существующими классами GenshinTop */
  --bg-page: var(--bg-dark);
  --surface: var(--bg-card);
  --surface-2: var(--bg-elevated);
  --border-strong: var(--border);
  --text: var(--text-primary);
  --text-soft: var(--text-secondary);
  --muted: var(--text-muted);
  --wiki-accent: var(--primary);
  --wiki-accent-hover: #47e8c8;
  --wiki-accent-soft: rgba(0, 212, 170, 0.16);
  --wiki-accent-border: rgba(0, 212, 170, 0.45);
  --shadow-card: var(--shadow-lg);
  --radius: var(--radius-md);
  --radius-lg: var(--radius-xl);

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-display: var(--font-sans);
  --accent: var(--primary-dark);
  --mint: var(--primary);
  --gold: #ffb300;
  --danger: #ff5252;
  --pyro: #ff8a65;
  --hydro: #4fc3f7;
  --electro: #b388ff;
  --cryo: #81d4fa;
  --anemo: #69f0ae;
  --geo: #ffd54f;
  --dendro: #a5d6a7;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 18% 18%, rgba(0, 212, 170, 0.07) 0%, transparent 52%),
    radial-gradient(ellipse at 82% 78%, rgba(124, 77, 255, 0.07) 0%, transparent 52%);
}

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

a:hover {
  color: var(--secondary);
}

/* как в dandangers: метка внешней ссылки */
a[href^="http"]:not(.site-logo):not(.btn):not(.btn-primary):not(.btn-secondary):not(.btn-lootbar):not(.lootbar-banner-cta):not(.pill-link):not(.card):not(.guide-catalog-card)::after,
a[href^="https://"]:not(.site-logo):not(.btn):not(.btn-primary):not(.btn-secondary):not(.btn-lootbar):not(.lootbar-banner-cta):not(.pill-link):not(.card):not(.guide-catalog-card)::after {
  content: " ↗";
  font-size: 0.72em;
  opacity: 0.55;
}

a[href^="/"]::after {
  content: none;
}

.article.prose-flow .prose > p a:hover {
  text-shadow: 0 0 14px var(--primary-glow);
}

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

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ——— Header ——— */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
}

.site-header-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-logo {
  display: inline-flex;
  flex-direction: column;
  gap: 0.05rem;
  text-decoration: none;
  line-height: 1.15;
}

.site-logo:hover {
  filter: brightness(1.08);
}

.site-logo-title {
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-logo-domain {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  background: none;
  -webkit-text-fill-color: var(--text-muted);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  justify-content: flex-end;
}

.site-nav-link {
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.site-nav-link:hover {
  background: rgba(0, 212, 170, 0.12);
  color: var(--primary);
}

.site-nav-link.is-active {
  background: rgba(0, 212, 170, 0.18);
  color: var(--primary);
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--wiki-accent);
  text-decoration: none;
}

.logo:hover {
  color: var(--wiki-accent-hover);
}

.nav-main {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
}

.nav-main a {
  color: var(--text-soft);
  font-size: 0.92rem;
  text-decoration: none;
}

.nav-main a:hover {
  color: var(--wiki-accent);
}

.site-main {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.25rem;
  margin-top: 2.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  background: var(--bg-card);
}

.footer-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-heading {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin: 0.35rem 0;
}

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

.footer-version {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ——— Home hero (wiki card) ——— */

.home-hero-wrap {
  margin-bottom: 0.25rem;
}

.hero-card {
  display: flex;
  gap: 1.15rem;
  align-items: flex-start;
  padding: 1.35rem 1.25rem;
  background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-card) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero-card-brand {
  flex-shrink: 0;
}

.hero-card-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: var(--bg-dark);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.04em;
  border: 2px solid rgba(0, 212, 170, 0.45);
  box-shadow: 0 0 22px var(--primary-glow);
}

.hero-card-main {
  flex: 1;
  min-width: 0;
}

.hero-card-main .hero-kicker {
  margin: 0 0 0.35rem;
}

.hero-card-main .hero-title {
  margin: 0 0 0.5rem;
}

.hero-card-main .hero-lead {
  margin: 0;
}

.hero-card-main .hero-actions {
  margin-top: 1.1rem;
}

.hero {
  padding: 2rem 0 2.5rem;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-primary);
}

.hero-title-accent,
.text-gradient-gold {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 40rem;
  color: var(--muted);
  font-size: 0.96rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.site-intro {
  margin: 1.35rem 0 0;
  max-width: 44rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ——— Sections ——— */

.section {
  margin-top: 2.35rem;
}

.section h2:not(.section-heading) {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
  color: var(--text-primary);
}

.section-heading {
  font-family: var(--font-sans);
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  letter-spacing: -0.02em;
}

.section-heading-icon {
  font-size: 1.15em;
  line-height: 1;
}

.section-lead {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.section-subheading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.65rem;
}

.section-subheading-bar {
  width: 4px;
  height: 1.05em;
  border-radius: 2px;
  background: var(--gradient-primary);
  flex-shrink: 0;
}

.section-more {
  margin-top: 1rem;
}

.section-more a {
  font-weight: 600;
  text-decoration: none;
}

.section-more a:hover {
  text-decoration: underline;
}

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

.grid-cards-wiki {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 232px), 1fr));
}

.grid-guides {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

@media (min-width: 880px) {
  .grid-guides {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.card,
.guide-catalog-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  box-shadow: var(--shadow-sm);
}

.card:hover,
.guide-catalog-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 212, 170, 0.55);
  box-shadow: var(--shadow-glow);
}

.card-character {
  display: flex;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  border-left: none;
}

.char-card-thumb {
  flex: 0 0 3.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

.char-card-thumb--pyro {
  background: linear-gradient(160deg, #fb923c, #ea580c);
}

.char-card-thumb--hydro {
  background: linear-gradient(160deg, #38bdf8, #0284c7);
}

.char-card-thumb--electro {
  background: linear-gradient(160deg, #a78bfa, #7c3aed);
}

.char-card-thumb--cryo {
  background: linear-gradient(160deg, #7dd3fc, #0369a1);
}

.char-card-thumb--anemo {
  background: linear-gradient(160deg, #34d399, #0d9488);
}

.char-card-thumb--geo {
  background: linear-gradient(160deg, #fcd34d, #ca8a04);
}

.char-card-thumb--dendro {
  background: linear-gradient(160deg, #86efac, #16a34a);
}

.accent-pyro,
.accent-hydro,
.accent-electro,
.accent-cryo,
.accent-anemo,
.accent-geo,
.accent-dendro {
  border-left: none;
}

.card-body {
  flex: 1;
  padding: 0.85rem 1rem;
  min-width: 0;
}

.card-title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-family: var(--font-sans);
}

.char-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin-bottom: 0.45rem;
}

.char-rarity {
  font-size: 0.72rem;
  color: var(--gold);
  letter-spacing: 1px;
}

.pill {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text-secondary);
}

.pill-element.pyro {
  border-color: rgba(234, 88, 12, 0.35);
  color: #c2410c;
}

.pill-element.hydro {
  border-color: rgba(2, 132, 199, 0.35);
  color: #0369a1;
}

.pill-element.electro {
  border-color: rgba(124, 58, 237, 0.35);
  color: #6d28d9;
}

.pill-element.cryo {
  border-color: rgba(3, 105, 161, 0.35);
  color: #075985;
}

.pill-element.anemo {
  border-color: rgba(5, 150, 105, 0.35);
  color: #047857;
}

.pill-element.geo {
  border-color: rgba(202, 138, 4, 0.35);
  color: #a16207;
}

.pill-element.dendro {
  border-color: rgba(22, 163, 74, 0.35);
  color: #15803d;
}

.pill-mint {
  border-color: var(--wiki-accent-border);
  color: var(--wiki-accent);
  background: var(--wiki-accent-soft);
}

.pill-muted {
  color: var(--muted);
}

.pill-gold {
  border-color: rgba(255, 179, 0, 0.35);
  color: #ffd54f;
  background: rgba(255, 179, 0, 0.1);
}

.guide-catalog-card {
  display: flex;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
}

.guide-card-thumb {
  flex: 0 0 3.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: var(--bg-dark);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.guide-card-thumb-inner {
  line-height: 1;
}

.guide-card-content {
  flex: 1;
  padding: 0.85rem 1rem;
  min-width: 0;
}

.guide-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin-bottom: 0.45rem;
}

.guide-card-title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-family: var(--font-sans);
}

.guide-card-excerpt {
  margin: 0.45rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.45;
}

.guide-card-time {
  margin-left: auto;
  font-size: 0.72rem;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-primary);
  border-color: transparent;
  color: var(--bg-dark);
}

.btn-primary:hover {
  filter: brightness(1.08);
  box-shadow: var(--shadow-glow);
  color: var(--bg-dark);
}

.btn-secondary {
  background: var(--bg-elevated);
  border-color: var(--border);
  color: var(--text-secondary);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-lootbar {
  background: linear-gradient(120deg, rgba(255, 107, 53, 0.15), rgba(0, 212, 170, 0.12));
  border-color: rgba(0, 212, 170, 0.35);
  color: var(--primary);
}

.link-mint {
  color: var(--wiki-accent);
  font-weight: 600;
}

.article {
  max-width: 52rem;
}

.catalog-page {
  max-width: none;
}

.lead {
  color: var(--muted);
  font-size: 1.02rem;
}

.callout {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.callout h2 {
  margin-top: 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
}

.hub-links a {
  margin-right: 0.35rem;
}

.breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.breadcrumbs a {
  color: var(--muted);
}

.article-head h1 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0.25rem 0 0;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.article-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.related-block {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.related-block h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 0.65rem;
}

.prose-flow .prose {
  margin-top: 1.25rem;
}

.prose :where(h1, h2, h3, h4) {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 1.5rem;
}

.prose h2 {
  color: var(--primary);
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}

.prose h3 {
  padding-left: 0.65rem;
  border-left: 3px solid var(--primary);
}

.prose > ul,
.prose > ol {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.prose > ul > li,
.prose > ol > li {
  position: relative;
  margin-bottom: 0.65rem;
  padding: 0.85rem 1rem 0.85rem 1.35rem;
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.prose > ul > li:hover,
.prose > ol > li:hover {
  border-color: rgba(0, 212, 170, 0.45);
  transform: translateX(3px);
}

.prose > ul > li::before {
  content: "";
  position: absolute;
  left: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary-glow);
}

.prose > ul > li {
  padding-left: 1.65rem;
}

.prose ol {
  counter-reset: gt-prose-ol;
}

.prose > ol > li {
  counter-increment: gt-prose-ol;
  padding-left: 2.35rem;
}

.prose > ol > li::before {
  content: counter(gt-prose-ol);
  position: absolute;
  left: 0.65rem;
  top: 0.85rem;
  width: 1.35rem;
  height: 1.35rem;
  background: var(--gradient-primary);
  color: var(--bg-dark);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prose li li {
  padding: 0.55rem 0.75rem;
  margin-bottom: 0.35rem;
  background: var(--bg-card);
}

.prose pre {
  overflow-x: auto;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.prose code {
  font-size: 0.9em;
  padding: 0.12rem 0.35rem;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  color: var(--accent-orange);
  border: 1px solid var(--border);
}

.prose pre code {
  padding: 0;
  background: none;
  color: inherit;
  border: none;
}

.prose blockquote {
  margin: 1.25rem 0;
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.08) 0%, rgba(124, 77, 255, 0.08) 100%);
  color: var(--text-secondary);
}

.prose blockquote p {
  margin: 0;
}

.related-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.pill-link {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.82rem;
  text-decoration: none;
  color: var(--text-secondary);
  background: var(--bg-elevated);
}

.pill-link:hover {
  border-color: var(--wiki-accent-border);
  color: var(--wiki-accent);
}

.meta-reviewed {
  font-size: 0.88rem;
  color: var(--muted);
}

.sources ul {
  padding-left: 1.2rem;
}

.inline-nav {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.stack p {
  margin: 0 0 0.75rem;
}

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

.guide-search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.25rem 0;
  align-items: center;
}

.guide-search-form input[type="search"] {
  flex: 1 1 220px;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text-primary);
}

.filter-section {
  margin-top: 1.25rem;
}

.filter-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0.75rem 0 0.35rem;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.filter-pill {
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text-secondary);
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
  cursor: pointer;
}

.filter-pill:hover {
  border-color: var(--wiki-accent-border);
  color: var(--wiki-accent);
}

.filter-pill.is-active {
  border-color: var(--wiki-accent-border);
  background: var(--wiki-accent-soft);
  color: var(--wiki-accent);
}

.catalog-count {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 1rem 0;
}

.char-catalog-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (min-width: 960px) {
  .char-catalog-layout {
    flex-direction: row;
    align-items: flex-start;
  }

  .char-filters {
    width: 15rem;
    flex-shrink: 0;
  }

  .char-catalog-main {
    flex: 1;
    min-width: 0;
  }
}

.char-filters input[type="search"] {
  width: 100%;
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text-primary);
}

.muted {
  color: var(--muted);
}

.region-card .muted {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
}

/* ——— LootBar promo (карточка в стиле dandangers.ru) ——— */

.lootbar-banner {
  --lootbar-orange: #f57c00;
  --lootbar-orange-deep: #e65100;
  --lootbar-cream: #fff9e6;
  display: block;
  padding: 0.85rem 1.25rem 0;
  background: var(--bg-page);
  color: inherit;
  text-decoration: none;
}

.lootbar-banner:hover .lootbar-banner-card {
  box-shadow: 0 6px 22px rgba(245, 124, 0, 0.18);
}

.lootbar-banner:hover .lootbar-banner-cta {
  filter: brightness(1.05);
  box-shadow: 0 4px 14px rgba(230, 81, 0, 0.45);
}

.lootbar-banner-wrap {
  max-width: var(--content-wide);
  margin: 0 auto;
}

.lootbar-banner-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  padding: 1rem 1.2rem;
  border-radius: 18px;
  border: 1px solid rgba(245, 124, 0, 0.55);
  background: linear-gradient(105deg, var(--lootbar-cream) 0%, #ffffff 52%, #fffefb 100%);
  box-shadow: 0 4px 18px rgba(245, 124, 0, 0.1);
}

.lootbar-banner-icon-wrap {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #ff9800, var(--lootbar-orange-deep));
  box-shadow: 0 2px 8px rgba(230, 81, 0, 0.35);
}

.lootbar-banner-icon {
  font-size: 1.35rem;
  line-height: 1;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.15));
}

.lootbar-banner-copy {
  flex: 1 1 200px;
  min-width: 0;
}

.lootbar-banner-title {
  display: block;
  font-size: clamp(0.98rem, 2.5vw, 1.12rem);
  font-weight: 700;
  color: var(--lootbar-orange-deep);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.lootbar-banner-sub {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  color: #4a5568;
  line-height: 1.45;
}

.lootbar-banner-cta {
  flex-shrink: 0;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  color: #fff;
  border: none;
  background: linear-gradient(180deg, #ff9f40 0%, var(--lootbar-orange) 45%, var(--lootbar-orange-deep) 100%);
  box-shadow: 0 2px 10px rgba(230, 81, 0, 0.35);
}

.lootbar-banner-cta:hover {
  color: #fff;
  filter: brightness(1.05);
  box-shadow: 0 4px 14px rgba(230, 81, 0, 0.45);
}

@media (max-width: 560px) {
  .lootbar-banner-card {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 1.1rem 1rem;
  }

  .lootbar-banner-icon-wrap {
    margin: 0 auto;
  }

  .lootbar-banner-cta {
    margin-left: 0;
    width: 100%;
    max-width: 280px;
    align-self: center;
  }
}

/* ——— LootBar: якорная навигация на хабе ——— */

.lootbar-anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.55rem;
  margin: 1rem 0 1.5rem;
}

.lootbar-anchor-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--wiki-accent);
  background: rgba(245, 124, 0, 0.08);
  border: 1px solid rgba(245, 124, 0, 0.25);
}

.lootbar-anchor-nav a:hover {
  background: rgba(245, 124, 0, 0.16);
  color: var(--wiki-accent-hover);
}

/* ——— LootBar: лендинг скидок (как lootbar-discounts.html) ——— */

.lootbar-discounts-page hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.75rem 0;
}

.lootbar-benefits-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.lootbar-benefits-table th,
.lootbar-benefits-table td {
  padding: 0.55rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.lootbar-benefits-table thead th {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  border-bottom: 2px solid rgba(0, 212, 170, 0.45);
}

.lootbar-benefits-table tbody tr:last-child td {
  border-bottom: none;
}

.lootbar-howto-steps {
  margin: 0.75rem 0 0;
  padding-left: 1.35rem;
}

.lootbar-howto-steps li {
  margin: 0.55rem 0;
  line-height: 1.5;
}

.back-link {
  font-size: 0.88rem;
}

.link-list {
  margin: 0;
  padding-left: 1.2rem;
}

.faq-dl dt {
  font-weight: 600;
  margin-top: 0.75rem;
}

.faq-dl dd {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.88rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.prose th {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-elevated));
  color: var(--primary);
  font-weight: 600;
  padding: 0.5rem 0.65rem;
  text-align: left;
  border-bottom: 2px solid rgba(0, 212, 170, 0.35);
}

.prose td {
  padding: 0.5rem 0.65rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
}

.prose tr:last-child td {
  border-bottom: none;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg-dark: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --bg-elevated: #f8fafc;
    --bg-input: #f1f5f9;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 10px 32px rgba(0, 212, 170, 0.18);
  }

  body::before {
    background:
      radial-gradient(ellipse at 20% 20%, rgba(0, 212, 170, 0.08) 0%, transparent 50%),
      radial-gradient(ellipse at 80% 80%, rgba(124, 77, 255, 0.08) 0%, transparent 50%);
  }

  .article-head h1 {
    background: none;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    color: var(--primary-dark);
  }

  .hero-card-logo {
    color: #fff;
  }

  .guide-card-thumb {
    color: #fff;
  }

  .btn-primary {
    color: #fff;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
