/* WikiFama Theme Global */

:root {
      color-scheme: light;

      --bg: #F7F7FA;
      --bg-2: #FFFFFF;
      --card: #FFFFFF;
      --card-soft: #F0F0F5;
      --text: #17171F;
      --muted: #666674;
      --accent: #FF2A7A;
      --accent-2: #7A2CFF;
      --accent-soft: rgba(255, 42, 122, .10);
      --accent-border: rgba(255, 42, 122, .30);
      --line: rgba(23, 23, 31, .10);
      --line-strong: rgba(23, 23, 31, .16);
      --shadow: 0 24px 80px rgba(32, 32, 48, .12);
      --shadow-soft: 0 12px 34px rgba(32, 32, 48, .10);
      --topbar: rgba(247, 247, 250, .88);
      --photo-bg: #E8E8F0;
      --hero-gradient:
        radial-gradient(circle at 0% 0%, rgba(255, 42, 122, .10), transparent 28rem),
        linear-gradient(135deg, #FFFFFF, #F0F0F5);
      --body-gradient:
        radial-gradient(circle at 5% 0%, rgba(255, 42, 122, .12), transparent 32rem),
        radial-gradient(circle at 100% 0%, rgba(122, 44, 255, .10), transparent 34rem),
        linear-gradient(180deg, #F7F7FA 0%, #FFFFFF 48%, #F7F7FA 100%);

      --radius-xl: 28px;
      --radius-lg: 22px;
      --radius-md: 16px;
      --container: 1220px;
    }

html[data-theme="dark"] {
      color-scheme: dark;

      --bg: #0D0D11;
      --bg-2: #111119;
      --card: #181822;
      --card-soft: #20202B;
      --text: #E5E5EA;
      --muted: #92929D;
      --accent: #FF2A7A;
      --accent-2: #9B1BFF;
      --accent-soft: rgba(255, 42, 122, .14);
      --accent-border: rgba(255, 42, 122, .38);
      --line: rgba(229, 229, 234, .10);
      --line-strong: rgba(229, 229, 234, .16);
      --shadow: 0 24px 80px rgba(0, 0, 0, .42);
      --shadow-soft: 0 12px 34px rgba(0, 0, 0, .28);
      --topbar: rgba(13, 13, 17, .84);
      --photo-bg: #111118;
      --hero-gradient:
        radial-gradient(circle at 0% 0%, rgba(255, 42, 122, .18), transparent 28rem),
        linear-gradient(135deg, #20202B, #181822);
      --body-gradient:
        radial-gradient(circle at 5% 0%, rgba(255, 42, 122, .18), transparent 32rem),
        radial-gradient(circle at 100% 0%, rgba(115, 84, 255, .12), transparent 34rem),
        linear-gradient(180deg, #0D0D11 0%, #111119 48%, #0D0D11 100%);
    }

* {
      box-sizing: border-box;
    }

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

body {
      margin: 0;
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      color: var(--text);
      background: var(--body-gradient);
      line-height: 1.55;
      transition: background .22s ease, color .22s ease;
    }

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

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

.wf-topbar {
      position: sticky;
      top: 0;
      z-index: 30;
      background: var(--topbar);
      backdrop-filter: blur(18px);
      border-bottom: 1px solid var(--line);
    }

.wf-topbar-inner {
      width: min(var(--container), calc(100% - 32px));
      margin: 0 auto;
      padding: 13px 0;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
    }

.wf-logo {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      min-width: 0;
      font-weight: 950;
      letter-spacing: -.045em;
      font-size: clamp(1.16rem, 2.4vw, 1.42rem);
      white-space: nowrap;
      color: var(--text);
    }

.wf-logo-mark {
      width: 38px;
      height: 38px;
      flex: 0 0 38px;
      display: grid;
      place-items: center;
      border-radius: 14px;
      color: #fff;
      background: linear-gradient(135deg, var(--accent), var(--accent-2));
      box-shadow: 0 12px 30px rgba(255, 42, 122, .30);
    }

.wf-head-actions {
      display: flex;
      align-items: center;
      gap: 10px;
      min-width: 0;
    }

.wf-nav {
      display: flex;
      align-items: center;
      gap: 6px;
      color: var(--muted);
      font-size: .92rem;
      font-weight: 760;
      overflow-x: auto;
      scrollbar-width: none;
    }

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

.wf-nav a,
.wf-nav-item {
  padding: 8px 11px;
  border-radius: 999px;
  white-space: nowrap;
}

.wf-nav-item {
  cursor: default;
}

.wf-nav a:hover {
  background: var(--card);
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

.wf-theme-toggle,
      .wf-ad {
      flex: 0 0 auto;
      display: inline-flex;
      align-items: center;
      gap: 9px;
      height: 40px;
      padding: 0 13px;
      border: 1px solid var(--accent-border);
      border-radius: 999px;
      background: var(--accent-soft);
      color: var(--text);
      font: inherit;
      font-size: .9rem;
      font-weight: 900;
      cursor: pointer;
      box-shadow: 0 12px 26px rgba(0,0,0,.10);
    }

.wf-theme-toggle:hover {
      background: rgba(255, 42, 122, .18);
    }

.wf-theme-toggle i {
      color: var(--accent);
    }

.wf-footer {
      width: min(var(--container), calc(100% - 32px));
      margin: 0 auto;
      padding: 26px 0 42px;
      color: var(--muted);
      font-size: .9rem;
      border-top: 1px solid var(--line);
    }

@media (max-width: 900px) {
      .wf-nav {
        max-width: 42vw;
      }
    }

@media (max-width: 430px) {
      .wf-head-actions {
        flex-direction: column;
        align-items: stretch;
      }

      .wf-theme-toggle {
        justify-content: center;
        width: 100%;
      }
    }

@media (max-width: 680px) {
}

@media (max-width: 430px) {
}

@media (max-width: 680px) {
}

.wf-theme-icons {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 1.15em;
  min-width: 1.15em;
  height: 1.15em;
  line-height: 1;
  color: var(--accent);
}

.wf-theme-icon {
  grid-area: 1 / 1;
  display: none;
  width: 1em;
  min-width: 1em;
  text-align: center;
  line-height: 1;
  color: var(--accent);
}

html[data-theme="light"] .wf-theme-icon--moon {
  display: inline-block;
}

html[data-theme="dark"] .wf-theme-icon--sun {
  display: inline-block;
}

.wf-theme-toggle > i,
.wf-theme-toggle > .fa-solid,
.wf-theme-toggle > .fa-brands {
  display: none !important;
}


.wf-nav a.wf-nav-item {
  cursor: pointer;
}

/* WikiFama lazy image states */
img[data-wf-src] {
  background: linear-gradient(135deg, rgba(255, 42, 122, .06), rgba(141, 44, 255, .05));
}

.wf-img-loaded {
  animation: wfImageFadeIn .18s ease both;
}

@keyframes wfImageFadeIn {
  from { opacity: .65; }
  to { opacity: 1; }
}
