/* ============================================================================
   RocoWiki v8 — "Field Guide" visual layer
   Loaded after style.css. Light cream canvas, forest ink, gold accents and
   native Roco Kingdom art. Overrides the old dark stage theme in place.
   ========================================================================== */

:root {
  --stage: #f6f0e2;
  --stage-soft: #fffdf8;
  --stage-deep: #ece3d0;
  --paper: #fffdf8;
  --paper-light: #fffefa;
  --ink: #1c2f26;
  --ink-soft: #4a5b50;
  --muted: #7f8a7e;
  --gold: #e5ae47;
  --gold-light: #f7d994;
  --gold-dark: #96650f;
  --line: rgba(28, 47, 38, .12);
  --line-soft: rgba(28, 47, 38, .07);
  --shadow-card: 0 2px 4px rgba(28, 47, 38, .03), 0 12px 30px rgba(28, 47, 38, .06);
  --shadow-pop: 0 30px 80px rgba(20, 40, 30, .22);
  --r-shell: 28px;
  --r-card: 18px;
  --r-pill: 999px;
  --font-display: "Fraunces", "Baloo 2", Georgia, "Times New Roman", serif;
  --font-body: "Nunito", "Segoe UI", "Microsoft YaHei", sans-serif;
  --header-h: 66px;

  --forest: #15392c;
  --forest-2: #1d4c3a;
  --forest-3: #2a6349;
  --sage: #9dbba2;
  --sage-soft: #e4eddd;
  --cream: #f6f0e2;
  --cream-2: #fbf6ea;
  --peach: #f8e7d4;
  --sky: #e5eef7;
  --rose: #f6e6e4;
  --sand: #f2ead8;
}

/* ---------------------------------------------------------------- base ---- */
html { scroll-behavior: smooth; }
body {
  background-color: var(--cream);
  background-image:
    radial-gradient(900px 520px at 8% -6%, rgba(157, 187, 162, .24), transparent 60%),
    radial-gradient(760px 460px at 96% 2%, rgba(229, 174, 71, .16), transparent 62%),
    radial-gradient(rgba(28, 47, 38, .045) 1px, transparent 1px);
  background-size: auto, auto, 24px 24px;
  background-attachment: fixed;
  color: var(--ink);
  font-size: 15px;
}
::selection { background: rgba(229, 174, 71, .34); }
:focus-visible { outline: 3px solid rgba(150, 101, 15, .5); outline-offset: 2px; border-radius: 6px; }

h1, h2, h3, .section-title, .dex-portal-name, .tool-name, .article-title {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 40, "WONK" 1;
  letter-spacing: -.01em;
}

.container, .header-inner, .page-hero-inner, .footer-inner { max-width: 1320px; }
.wiki-section { padding: 38px 0 6px; }
.wiki-section:last-of-type { padding-bottom: 56px; }

/* ---------------------------------------------------------------- ribbon -- */
.v8-ribbon {
  background:
    radial-gradient(500px 120px at 18% -30%, rgba(247, 217, 148, .22), transparent 70%),
    linear-gradient(90deg, #123326, #1a4635 55%, #123326);
  color: #f4efdf;
  font-size: 12.5px;
  font-weight: 700;
  border-bottom: 1px solid rgba(247, 217, 148, .16);
}
.v8-ribbon-inner {
  max-width: 1320px; margin: 0 auto; padding: 7px 20px;
  display: flex; align-items: center; gap: 11px; flex-wrap: wrap;
}
.v8-ribbon-dot {
  width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: #ffd37c; box-shadow: 0 0 0 4px rgba(255, 211, 124, .16);
  animation: v8pulse 2.2s ease-in-out infinite;
}
@keyframes v8pulse { 50% { box-shadow: 0 0 0 8px rgba(255, 211, 124, .04); } }
.v8-ribbon-text { letter-spacing: .01em; }
.v8-ribbon-count {
  display: inline-flex; align-items: center; gap: 4px;
  font-variant-numeric: tabular-nums; font-weight: 800;
  color: #0f2c21; background: linear-gradient(135deg, #f9dfa4, #e9b653);
  border-radius: var(--r-pill); padding: 1px 9px; font-size: 11.5px;
}
.v8-ribbon a {
  margin-left: auto; color: #ffdf9c; font-weight: 800; white-space: nowrap;
  border-bottom: 1px solid rgba(255, 223, 156, .35);
}
.v8-ribbon a:hover { color: #fff3d3; border-color: #fff3d3; }

/* ---------------------------------------------------------------- header -- */
.site-header {
  background: rgba(250, 246, 236, .9);
  border-bottom: 1px solid rgba(28, 47, 38, .1);
  box-shadow: 0 6px 24px rgba(28, 47, 38, .04);
  backdrop-filter: blur(16px) saturate(130%);
}
.header-inner { height: var(--header-h); gap: 14px; }
.logo {
  color: var(--forest); font-family: var(--font-display); font-size: 23px;
  font-weight: 700; letter-spacing: -.02em; gap: 9px;
}
.logo-icon {
  width: 39px; height: 39px; border-radius: 50%;
  background: #fff; padding: 2px;
  border: 1.5px solid rgba(150, 101, 15, .35);
  box-shadow: 0 3px 10px rgba(28, 47, 38, .12);
}
.logo-icon img { border-radius: 50%; }
.logo .v8-logo-sub {
  display: none; font-family: var(--font-body); font-size: 10px; font-weight: 800;
  letter-spacing: .18em; text-transform: uppercase; color: var(--gold-dark);
  align-self: flex-end; margin-bottom: 4px;
}
@media (min-width: 1180px) { .logo .v8-logo-sub { display: block; } }

.desktop-nav { gap: 2px; margin-left: 8px; }
.nav-link {
  position: relative; padding: 9px 12px; color: var(--ink-soft);
  font-size: 14.5px; font-weight: 800; border-radius: 10px;
}
.nav-link:hover { color: var(--forest); background: rgba(21, 57, 44, .06); }
.nav-link.active { color: var(--forest); background: transparent; }
.nav-link.active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px;
  height: 3px; border-radius: 3px; background: var(--gold);
}
.nav-drop { position: relative; }
.nav-drop > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 5px;
  padding: 9px 12px; border-radius: 10px;
  color: var(--ink-soft); font-size: 14.5px; font-weight: 800;
  transition: color .15s ease, background-color .15s ease;
}
.nav-drop > summary::-webkit-details-marker { display: none; }
.nav-drop > summary::after {
  content: ""; width: 5px; height: 5px; margin-top: -2px;
  border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg); opacity: .55; transition: transform .2s ease;
}
.nav-drop[open] > summary, .nav-drop > summary:hover {
  color: var(--forest); background: rgba(21, 57, 44, .06);
}
.nav-drop[open] > summary::after { transform: rotate(-135deg) translateY(-1px); }
.nav-panel {
  position: absolute; left: -14px; top: calc(100% + 12px); z-index: 80;
  width: 430px; padding: 10px;
  background: rgba(255, 253, 248, .98);
  border: 1px solid rgba(28, 47, 38, .1);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(20, 40, 30, .18);
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  backdrop-filter: blur(14px);
  animation: v8pop .16s ease;
}
@keyframes v8pop { from { opacity: 0; transform: translateY(-5px); } }
.nav-panel::before {
  content: ""; position: absolute; inset: -14px -14px auto;
  height: 14px;
}
.nav-panel a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 12px;
  font-size: 13.5px; font-weight: 800; color: var(--ink);
  transition: background-color .14s ease;
}
.nav-panel a:hover { background: var(--sage-soft); }
.nav-panel .np-art {
  width: 34px; height: 34px; flex: none; border-radius: 10px;
  background: #fff; border: 1px solid var(--line);
  display: grid; place-items: center; overflow: hidden;
}
.nav-panel .np-art img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.nav-panel .np-art.pet img { padding: 1px; }
.nav-panel small { display: block; color: var(--muted); font-size: 11px; font-weight: 700; margin-top: 1px; }
.nav-panel .np-wide { grid-column: 1 / -1; }
.nav-panel .np-launch {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 10px;
  padding: 11px 13px; margin-top: 3px; border-radius: 13px;
  background: linear-gradient(120deg, #173f30, #20513c); color: #fff8e7;
  font-size: 13px;
}
.nav-panel .np-launch b { color: #ffdd94; }
.nav-panel .np-launch:hover { background: linear-gradient(120deg, #1b4a38, #276048); }

.header-actions { gap: 8px; }
.v8-search-open {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 11px; border-radius: var(--r-pill);
  border: 1px solid rgba(28, 47, 38, .14); background: rgba(255, 255, 255, .62);
  color: var(--ink-soft); font-size: 13px; font-weight: 800; cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.v8-search-open:hover { border-color: var(--gold-dark); background: #fff; color: var(--forest); }
.v8-search-open .v8-key {
  font-size: 10px; color: var(--muted); border: 1px solid var(--line);
  border-bottom-width: 2px; border-radius: 5px; padding: 1px 5px; font-weight: 800;
}
.header-cta {
  height: 38px; display: inline-flex; align-items: center; gap: 7px;
  padding: 0 16px; background: linear-gradient(135deg, #f6d386, #e1a63a);
  color: #21321f; font-weight: 900; font-size: 13.5px;
  border: 1px solid rgba(150, 101, 15, .28);
  box-shadow: 0 3px 12px rgba(196, 138, 34, .24);
}
.header-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(196, 138, 34, .3); }
.header-cta::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: #20482f; box-shadow: 0 0 0 3px rgba(32, 72, 47, .14);
}
.mobile-menu-toggle span { background: var(--forest); }

.lang-switcher { position: relative; }
.lang-switcher summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 5px;
  height: 38px; padding: 0 11px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: rgba(255, 255, 255, .62);
  color: var(--ink-soft); font-size: 12.5px; font-weight: 900; letter-spacing: .04em;
}
.lang-switcher summary::-webkit-details-marker { display: none; }
.lang-switcher summary::after {
  content: ""; width: 5px; height: 5px; margin-top: -2px;
  border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg); opacity: .6;
}
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 80;
  min-width: 158px; list-style: none; padding: 6px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-pop);
}
.lang-menu a {
  display: block; padding: 8px 11px; border-radius: 9px;
  font-size: 13.5px; font-weight: 700; color: var(--ink-soft);
}
.lang-menu a:hover { background: var(--sage-soft); color: var(--forest); }
.lang-menu a.active { background: #f7e5b9; color: #5d4109; font-weight: 800; }

.mobile-nav {
  display: none; padding: 8px 18px 20px; border-top: 1px solid var(--line);
  background: #fffdf8; max-height: calc(100vh - 62px); overflow: auto;
}
.mobile-nav .mobile-nav-group {
  color: var(--gold-dark); font-size: 10.5px; letter-spacing: .14em;
  margin: 14px 0 4px;
}
.mobile-nav .nav-link { display: block; color: var(--ink-soft); }
.mobile-nav .nav-link.sub { padding: 7px 12px; font-size: 14px; color: var(--ink-soft); }
.mobile-nav .nav-link.sub:hover { background: var(--sage-soft); }
.mobile-nav .v8-mobile-launch {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 16px; padding: 11px; border-radius: 12px;
  background: linear-gradient(120deg, #173f30, #24553f); color: #fff3d0;
  font-weight: 900; font-size: 14px;
}

/* --------------------------------------------------------------- search --- */
.v8-search {
  position: fixed; inset: 0; z-index: 200; display: none;
  padding: 12vh 18px 18px;
}
.v8-search.on { display: block; }
.v8-search-backdrop {
  position: absolute; inset: 0;
  background: rgba(13, 30, 23, .55); backdrop-filter: blur(7px);
}
.v8-search-dialog {
  position: relative; z-index: 1; max-width: 730px; margin: 0 auto;
  background: var(--paper); border: 1px solid rgba(28, 47, 38, .12);
  border-radius: 22px; box-shadow: 0 40px 100px rgba(10, 28, 19, .4);
  overflow: hidden; animation: v8searchIn .18s ease;
}
@keyframes v8searchIn { from { opacity: 0; transform: translateY(-10px) scale(.99); } }
.v8-search-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.v8-search-glyph {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--sage-soft); color: var(--forest); font-size: 19px; font-weight: 900;
}
.v8-search-head input {
  flex: 1; min-width: 0; border: 0; background: none; outline: none;
  font-size: 19px; font-weight: 700; color: var(--ink); font-family: var(--font-body);
}
.v8-search-head input::placeholder { color: #a3ac9f; font-weight: 600; }
.v8-search-close {
  border: 1px solid var(--line); background: #f7f2e6; color: var(--muted);
  border-radius: 7px; padding: 4px 8px; font-size: 11px; font-weight: 800; cursor: pointer;
}
.v8-search-close:hover { color: var(--forest); border-color: var(--gold-dark); }
.v8-search-hints { display: flex; gap: 6px; flex-wrap: wrap; padding: 12px 18px 4px; }
.v8-search-hints button {
  border: 1px solid var(--line); background: #fff; color: var(--ink-soft);
  border-radius: var(--r-pill); padding: 4px 11px; font-size: 12px; font-weight: 800; cursor: pointer;
}
.v8-search-hints button:hover { border-color: var(--gold-dark); color: var(--gold-dark); }
.v8-search-results { max-height: 51vh; overflow: auto; padding: 8px 10px 12px; }
.v8-search-group { padding: 8px 8px 3px; font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); font-weight: 900; }
.v8-sr {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 10px; border-radius: 12px; color: var(--ink);
}
.v8-sr:hover, .v8-sr.sel { background: var(--sage-soft); }
.v8-sr-art {
  width: 40px; height: 40px; flex: none; border-radius: 11px; overflow: hidden;
  background: #fff; border: 1px solid var(--line); display: grid; place-items: center;
}
.v8-sr-art img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.v8-sr-body { flex: 1; min-width: 0; }
.v8-sr-body b { display: block; font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v8-sr-body small { display: block; color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v8-sr-tag { flex: none; font-size: 10px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-dark); background: #f8edcf; border-radius: var(--r-pill); padding: 3px 9px; }
.v8-search-empty { padding: 34px 18px 38px; text-align: center; color: var(--muted); font-weight: 700; }
.v8-search-empty b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.v8-search-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 18px; background: #faf5e9; border-top: 1px solid var(--line); font-size: 11px; font-weight: 700; color: var(--muted); }
.v8-search-foot kbd { border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 1px 5px; background: #fff; font-size: 10px; }

/* ---------------------------------------------------------------- hero ---- */
.v8-hero {
  position: relative; max-width: 1320px; margin: 26px auto 0; padding: 0 20px;
}
.v8-hero-card {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  min-height: 566px;
  border-radius: 34px;
  background:
    radial-gradient(560px 420px at 88% 22%, rgba(255, 227, 158, .55), transparent 65%),
    radial-gradient(480px 380px at 4% 100%, rgba(167, 195, 169, .42), transparent 68%),
    linear-gradient(118deg, #eef3e6 0%, #faf3e2 54%, #f8e8c8 100%);
  border: 1px solid rgba(28, 47, 38, .1);
  box-shadow: 0 20px 60px rgba(28, 47, 38, .08);
}
.v8-hero-card::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(28, 47, 38, .075) 1px, transparent 1px);
  background-size: 19px 19px; opacity: .5;
  mask-image: linear-gradient(100deg, #000 10%, transparent 62%);
  pointer-events: none;
}
.v8-hero-copy { position: relative; z-index: 2; padding: clamp(30px, 4.2vw, 58px); display: flex; flex-direction: column; justify-content: center; }
.v8-eyebrow {
  display: inline-flex; align-items: center; gap: 9px; align-self: flex-start;
  font-size: 11.5px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase;
  color: #6b4a0d; background: rgba(255, 255, 255, .58);
  border: 1px solid rgba(150, 101, 15, .22); border-radius: var(--r-pill);
  padding: 5px 12px; backdrop-filter: blur(6px);
}
.v8-eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: #d8962c; flex: none; }
.v8-hero h1 {
  margin: 18px 0 0; color: var(--forest);
  font-size: clamp(42px, 5.6vw, 74px); font-weight: 700; line-height: .98;
  letter-spacing: -.035em; max-width: 620px;
}
.v8-hero h1 em {
  font-style: italic; color: #9a6a12;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.v8-hero-lead {
  margin-top: 18px; max-width: 510px; color: #42544a;
  font-size: 16.5px; line-height: 1.62; font-weight: 600;
}
.v8-hero-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.v8-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 46px; padding: 0 21px; border-radius: var(--r-pill);
  font-size: 14.5px; font-weight: 900; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.v8-btn:hover { transform: translateY(-2px); }
.v8-btn-primary {
  background: linear-gradient(135deg, #1d4c3a, #14362a);
  color: #fff6de; box-shadow: 0 8px 22px rgba(21, 57, 44, .24);
}
.v8-btn-primary:hover { box-shadow: 0 12px 26px rgba(21, 57, 44, .3); }
.v8-btn-gold {
  background: linear-gradient(135deg, #f6d58c, #e3aa3e);
  color: #3d2b06; border-color: rgba(150, 101, 15, .3);
  box-shadow: 0 8px 20px rgba(196, 138, 34, .22);
}
.v8-btn-ghost { background: rgba(255, 255, 255, .6); color: var(--forest); border-color: rgba(28, 47, 38, .16); }
.v8-btn-ghost:hover { background: #fff; }
.v8-hero-note {
  margin-top: 16px; display: flex; align-items: center; gap: 8px;
  color: #6b7a6d; font-size: 12px; font-weight: 700;
}
.v8-hero-note b { color: #7a530e; }

.v8-hero-stage { position: relative; min-height: 480px; }
.v8-hero-sun {
  position: absolute; right: 6%; top: 8%; width: 78%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #fff7dd 0%, #f9dfa6 46%, rgba(240, 189, 94, .18) 72%, transparent 74%);
  filter: blur(.2px);
}
.v8-hero-ring {
  position: absolute; right: 11%; top: 13%; width: 64%; aspect-ratio: 1;
  border-radius: 50%; border: 1.5px dashed rgba(122, 83, 14, .28);
  animation: v8spin 60s linear infinite;
}
@keyframes v8spin { to { transform: rotate(360deg); } }
.v8-hero-art { position: absolute; object-fit: contain; filter: drop-shadow(0 26px 30px rgba(44, 54, 32, .22)); }
.v8-hero-art.main { right: 7%; bottom: 2%; width: 62%; max-width: 430px; animation: v8float 6.5s ease-in-out infinite; }
.v8-hero-art.side-a { left: 1%; bottom: 4%; width: 37%; max-width: 255px; animation: v8float 7.5s ease-in-out infinite reverse; }
.v8-hero-art.side-b { right: 2%; top: 2%; width: 24%; max-width: 165px; opacity: .96; animation: v8float 8.5s ease-in-out infinite; }
@keyframes v8float { 50% { transform: translateY(-10px) rotate(.6deg); } }
.v8-float-chip {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 7px;
  background: rgba(255, 253, 247, .92); border: 1px solid rgba(28, 47, 38, .1);
  border-radius: var(--r-pill); padding: 6px 12px; font-size: 11.5px; font-weight: 900;
  color: var(--ink); box-shadow: 0 8px 24px rgba(28, 47, 38, .12); backdrop-filter: blur(8px);
}
.v8-float-chip i { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.v8-float-chip.fire { right: 5%; bottom: 36%; }
.v8-float-chip.grass { left: 5%; top: 46%; }
.v8-float-chip.water { right: 40%; top: 13%; }
.v8-hero-sticker {
  position: absolute; left: 46%; bottom: 6%; z-index: 3;
  width: 74px; height: 74px; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background: linear-gradient(140deg, #fff9e8, #f5d894);
  border: 1px solid rgba(150, 101, 15, .24);
  box-shadow: 0 10px 24px rgba(120, 84, 20, .18);
  transform: rotate(-7deg); font-size: 9px; line-height: 1.15;
  font-weight: 900; letter-spacing: .05em; color: #6b4a0d; text-transform: uppercase;
}
.v8-hero-sticker b { display: block; font-family: var(--font-display); font-size: 20px; letter-spacing: -.02em; }

/* stat strip */
.v8-stats {
  position: relative; z-index: 4; max-width: 1180px; margin: -30px auto 0; padding: 0 20px;
}
.v8-stats-inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 253, 248, .95); border: 1px solid rgba(28, 47, 38, .1);
  border-radius: 20px; box-shadow: 0 16px 44px rgba(28, 47, 38, .1);
  overflow: hidden; backdrop-filter: blur(10px);
}
.v8-stat {
  display: flex; align-items: center; gap: 12px; padding: 16px 20px;
  border-right: 1px solid var(--line);
}
.v8-stat:last-child { border-right: 0; }
.v8-stat-icon {
  width: 40px; height: 40px; flex: none; border-radius: 12px;
  background: var(--sage-soft); display: grid; place-items: center; overflow: hidden;
}
.v8-stat-icon img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.v8-stat b { display: block; font-family: var(--font-display); font-size: 21px; line-height: 1.05; color: var(--forest); }
.v8-stat span { display: block; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }

/* --------------------------------------------------------- section head --- */
.section-header { align-items: flex-end; margin-bottom: 18px; }
.section-title { color: var(--ink); font-weight: 700; letter-spacing: -.025em; }
.section-title .accent { color: var(--gold-dark); }
.section-eyebrow { color: var(--gold-dark); font-size: 11px; letter-spacing: .19em; }
.section-link {
  color: var(--forest); background: rgba(255, 253, 248, .7);
  border-color: rgba(28, 47, 38, .15); font-weight: 800;
}
.section-link:hover { background: var(--forest); border-color: var(--forest); color: #fff6df; }
.section-hint { color: var(--muted); }
.section-hint em { color: var(--gold-dark) !important; }

/* ---------------------------------------------------------- launch band --- */
.v8-launch {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 30px; align-items: center;
  padding: clamp(26px, 3.4vw, 42px);
  border-radius: 30px; color: #f2eddc;
  background:
    radial-gradient(620px 300px at 92% 0%, rgba(229, 174, 71, .25), transparent 65%),
    radial-gradient(440px 360px at 4% 110%, rgba(109, 157, 122, .38), transparent 68%),
    linear-gradient(120deg, #123326, #1a4535 58%, #123326);
  box-shadow: 0 24px 60px rgba(18, 51, 38, .22);
}
.v8-launch::before {
  content: ""; position: absolute; inset: 0; opacity: .35;
  background-image: radial-gradient(rgba(255, 244, 214, .16) 1px, transparent 1px);
  background-size: 20px 20px; pointer-events: none;
}
.v8-launch > * { position: relative; z-index: 1; }
.v8-launch .v8-eyebrow {
  color: #ffe1a1; background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 224, 161, .26);
}
.v8-launch h2 {
  margin-top: 14px; font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.02; color: #fff8e9; font-weight: 700; letter-spacing: -.03em;
}
.v8-launch h2 em { font-style: italic; color: #f4ce7c; }
.v8-launch p { margin-top: 12px; color: #c9d6c9; font-size: 14.5px; max-width: 540px; line-height: 1.65; }
.v8-launch-facts { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.v8-launch-facts span {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06);
  border-radius: var(--r-pill); padding: 5px 11px;
  font-size: 11.5px; font-weight: 800; color: #e5eadc;
}
.v8-launch-facts i { width: 6px; height: 6px; border-radius: 50%; background: #f4ce7c; flex: none; }
.v8-launch-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; align-items: center; }
.v8-launch-actions .v8-btn-primary { background: #f8d896; color: #3a2a07; box-shadow: none; }
.v8-launch-actions .v8-btn-ghost { background: transparent; color: #f2eddc; border-color: rgba(255, 255, 255, .24); }
.v8-launch-actions .v8-btn-ghost:hover { background: rgba(255, 255, 255, .09); }
.v8-count {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px;
  padding: 18px; border-radius: 20px;
  background: rgba(7, 26, 18, .36); border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(8px);
}
.v8-count-cell { text-align: center; padding: 8px 4px; border-radius: 12px; background: rgba(255, 255, 255, .055); }
.v8-count-cell b {
  display: block; font-family: var(--font-display); font-size: clamp(24px, 3vw, 38px);
  line-height: 1; color: #ffe2a5; font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.v8-count-cell span { display: block; margin-top: 5px; font-size: 9.5px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; color: #a9bdaa; }
.v8-launch-foot { margin-top: 12px; font-size: 11.5px; color: #9db39f; text-align: center; }
.v8-launch-foot a { color: #f2ce82; font-weight: 800; }

/* ------------------------------------------------------------- category --- */
.v8-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.v8-cat {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  min-height: 212px; padding: 22px;
  border-radius: 24px; border: 1px solid rgba(28, 47, 38, .09);
  background: var(--tint, #eef4e8);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.v8-cat:hover { transform: translateY(-4px); border-color: rgba(28, 47, 38, .2); box-shadow: 0 18px 38px rgba(28, 47, 38, .1); }
.v8-cat::after {
  content: ""; position: absolute; right: -34px; top: -34px; width: 180px; height: 180px;
  border-radius: 50%; border: 1px solid rgba(28, 47, 38, .09); pointer-events: none;
}
.v8-cat-art {
  position: absolute; right: 12px; bottom: 10px; width: 138px; height: 138px;
  object-fit: contain; z-index: 1;
  filter: drop-shadow(0 12px 16px rgba(40, 50, 30, .16));
  transition: transform .2s ease;
}
.v8-cat:hover .v8-cat-art { transform: translateY(-4px) rotate(-3deg) scale(1.04); }
.v8-cat-icon { width: 40px; height: 40px; object-fit: contain; margin-bottom: 12px; position: relative; z-index: 2; }
.v8-cat-kicker { position: relative; z-index: 2; font-size: 10.5px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: #6d7a63; }
.v8-cat-name { position: relative; z-index: 2; margin-top: 3px; font-family: var(--font-display); font-size: 25px; font-weight: 700; color: var(--forest); letter-spacing: -.02em; }
.v8-cat-desc { position: relative; z-index: 2; margin-top: 7px; max-width: 68%; color: #5b6a5d; font-size: 12.5px; line-height: 1.55; font-weight: 600; }
.v8-cat-go {
  position: relative; z-index: 2; margin-top: auto; padding-top: 16px;
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 900; color: #7a530e;
}
.v8-cat-go::after { content: "→"; transition: transform .16s ease; }
.v8-cat:hover .v8-cat-go::after { transform: translateX(4px); }

/* ------------------------------------------------------------- starters --- */
.v8-starters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.v8-starter {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  min-height: 360px; padding: 20px; border-radius: 26px;
  border: 1px solid rgba(28, 47, 38, .1);
  background: var(--tint);
  box-shadow: var(--shadow-card);
  transition: transform .18s ease, box-shadow .18s ease;
}
.v8-starter:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(28, 47, 38, .12); }
.v8-starter::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(260px 220px at 78% 42%, rgba(255, 255, 255, .8), transparent 70%);
}
.v8-starter-top { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.v8-starter-dot { display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; color: #5d6a5b; }
.v8-starter-dot i { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.v8-starter-num { font-size: 11px; font-weight: 900; color: rgba(28, 47, 38, .35); font-variant-numeric: tabular-nums; }
.v8-starter-art {
  position: relative; z-index: 1; width: 76%; max-width: 240px; height: 190px;
  margin: 4px auto 0; object-fit: contain;
  filter: drop-shadow(0 16px 20px rgba(40, 50, 30, .18));
  transition: transform .2s ease;
}
.v8-starter:hover .v8-starter-art { transform: scale(1.04) translateY(-3px); }
.v8-starter-body { position: relative; z-index: 2; margin-top: auto; }
.v8-starter-body h3 { font-size: 26px; color: var(--forest); font-weight: 700; letter-spacing: -.02em; }
.v8-starter-body h3 small { font-family: var(--font-body); font-size: 11px; color: var(--muted); font-weight: 800; margin-left: 6px; }
.v8-starter-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.v8-starter-role { margin-top: 8px; color: #5b6a5d; font-size: 12.5px; font-weight: 600; line-height: 1.5; }
.v8-starter-evo { margin-top: 9px; font-size: 11.5px; font-weight: 700; color: #5b6a5d; }
.v8-starter-evo span { display: block; margin-bottom: 2px; font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: #8a9484; }
.v8-starter-evo b { color: var(--forest); font-weight: 800; }
.v8-starter-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 12px; }
.v8-starter-stats span { background: rgba(255, 255, 255, .6); border-radius: 9px; padding: 5px 6px; font-size: 9.5px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; color: #7d8878; text-align: center; }
.v8-starter-stats b { display: block; font-size: 13px; color: var(--forest); letter-spacing: 0; }
.v8-starter-go { position: relative; z-index: 2; margin-top: 12px; font-size: 12px; font-weight: 900; color: #7a530e; }
.v8-starter-go::after { content: " →"; }

/* ---------------------------------------------------------------- tools --- */
.v8-tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.v8-tool {
  display: flex; flex-direction: column; gap: 8px; min-height: 152px;
  padding: 16px; border-radius: 19px;
  background: var(--paper); border: 1px solid rgba(28, 47, 38, .1);
  box-shadow: 0 2px 10px rgba(28, 47, 38, .03);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.v8-tool:hover { transform: translateY(-3px); border-color: rgba(150, 101, 15, .4); box-shadow: 0 14px 28px rgba(28, 47, 38, .08); }
.v8-tool-top { display: flex; align-items: center; gap: 9px; }
.v8-tool-icon {
  width: 38px; height: 38px; flex: none; border-radius: 11px;
  background: var(--tint, #eef4e8); display: grid; place-items: center; overflow: hidden;
}
.v8-tool-icon img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.v8-tool-kicker { font-size: 9.5px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.v8-tool-name { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--forest); line-height: 1.15; letter-spacing: -.015em; }
.v8-tool-desc { color: #6d776a; font-size: 12px; line-height: 1.5; margin-top: auto; }

/* ---------------------------------------------------------------- news ---- */
.v8-news-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.v8-feature-news {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 340px; padding: 26px; border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(14, 36, 27, 0) 24%, rgba(14, 36, 27, .9) 82%),
    url("../images/banners/banner-activity.webp") center / cover no-repeat;
  color: #fff8e8; box-shadow: 0 18px 40px rgba(21, 57, 44, .18);
}
.v8-feature-news .v8-tag {
  align-self: flex-start; background: #f7d68f; color: #3a2a07;
  border-radius: var(--r-pill); padding: 4px 11px; font-size: 10.5px; font-weight: 900;
  letter-spacing: .08em; text-transform: uppercase;
}
.v8-feature-news h3 { margin-top: 12px; font-size: clamp(24px, 2.8vw, 34px); line-height: 1.08; font-weight: 700; letter-spacing: -.025em; max-width: 500px; }
.v8-feature-news p { margin-top: 8px; color: #cfdacd; font-size: 13px; max-width: 510px; line-height: 1.55; }
.v8-feature-news .v8-meta { margin-top: 14px; color: #efcd86; font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.v8-news-list { display: flex; flex-direction: column; gap: 9px; }
.v8-news-item {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 15px;
  border-radius: 16px; background: var(--paper); border: 1px solid rgba(28, 47, 38, .09);
  transition: border-color .15s ease, transform .15s ease;
  flex: 1;
}
.v8-news-item:hover { border-color: rgba(150, 101, 15, .38); transform: translateX(3px); }
.v8-news-date {
  flex: none; width: 46px; text-align: center; border-radius: 10px;
  background: var(--sage-soft); padding: 6px 2px;
  font-size: 9px; font-weight: 900; letter-spacing: .08em; color: #6d7a63; text-transform: uppercase;
}
.v8-news-date b { display: block; font-family: var(--font-display); font-size: 18px; color: var(--forest); letter-spacing: -.02em; }
.v8-news-body { min-width: 0; }
.v8-news-body b { display: block; font-family: var(--font-display); font-size: 15.5px; color: var(--forest); line-height: 1.25; font-weight: 700; }
.v8-news-body span { display: block; margin-top: 3px; color: var(--muted); font-size: 11.5px; font-weight: 600; line-height: 1.45; }

/* --------------------------------------------------------------- guides --- */
.v8-guides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.v8-guide {
  display: flex; flex-direction: column; gap: 8px; min-height: 196px;
  padding: 20px; border-radius: 21px;
  background: var(--paper); border: 1px solid rgba(28, 47, 38, .1);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.v8-guide:hover { transform: translateY(-3px); border-color: rgba(150, 101, 15, .36); box-shadow: 0 16px 34px rgba(28, 47, 38, .08); }
.v8-guide-icon { width: 34px; height: 34px; object-fit: contain; }
.v8-guide-kicker { font-size: 9.5px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; color: var(--gold-dark); }
.v8-guide h3 { font-size: 20px; color: var(--forest); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
.v8-guide p { color: #6d776a; font-size: 12.5px; line-height: 1.55; }
.v8-guide-meta { margin-top: auto; padding-top: 8px; font-size: 10.5px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.v8-guide-meta::after { content: " →"; color: var(--gold-dark); }

/* -------------------------------------------------------------- sources --- */
.v8-sources {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 22px;
  padding: 26px; border-radius: 24px;
  background: rgba(255, 253, 248, .72); border: 1px solid rgba(28, 47, 38, .1);
}
.v8-sources h3 { font-size: 23px; color: var(--forest); font-weight: 700; letter-spacing: -.02em; }
.v8-sources p { margin-top: 6px; color: #6d776a; font-size: 13px; line-height: 1.6; max-width: 620px; }
.v8-source-links { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.v8-source-links a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: var(--r-pill);
  border: 1px solid rgba(28, 47, 38, .13); background: #fff;
  color: var(--ink-soft); font-size: 11.5px; font-weight: 800;
}
.v8-source-links a:hover { border-color: var(--gold-dark); color: var(--gold-dark); }
.v8-check {
  align-self: center; padding: 16px 18px; border-radius: 16px;
  background: var(--sage-soft); border: 1px solid rgba(28, 47, 38, .08);
}
.v8-check b { display: block; font-size: 12px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; color: #4c644e; }
.v8-check span { display: block; margin-top: 4px; font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.v8-check em { display: block; margin-top: 8px; font-style: normal; font-size: 10.5px; color: #71806e; font-weight: 700; }

/* ------------------------------------------------------- page hero (sub) -- */
.page-hero {
  background:
    radial-gradient(680px 300px at 88% -30%, rgba(229, 174, 71, .2), transparent 62%),
    radial-gradient(600px 280px at 8% 130%, rgba(157, 187, 162, .26), transparent 65%),
    linear-gradient(180deg, #faf5e8, #f6f0e2);
  border-bottom: 1px solid rgba(28, 47, 38, .09);
}
.page-hero::before, .page-hero::after {
  border-color: rgba(28, 47, 38, .09);
}
.page-hero::after { border-style: dashed; }
.page-hero-inner { padding: 40px 20px 34px; }
.page-hero .hero-kicker { color: var(--gold-dark); font-size: 11px; letter-spacing: .18em; }
.page-hero h1 {
  color: var(--forest); font-weight: 700; letter-spacing: -.03em;
  font-size: clamp(34px, 4.5vw, 53px); line-height: 1.02;
}
.page-hero .hero-sub { color: #5b6a5d; max-width: 780px; font-size: 15px; font-weight: 600; margin-top: 8px; }
.page-hero-meta span {
  border-color: rgba(28, 47, 38, .12); color: #5c6b5e;
  background: rgba(255, 253, 248, .7); font-weight: 800;
}
.page-hero-meta span b { color: var(--forest); }
.breadcrumb { color: var(--muted); margin-bottom: 10px; }
.breadcrumb a { color: var(--ink-soft); font-weight: 700; }
.breadcrumb a:hover { color: var(--gold-dark); }

/* ------------------------------------------------------------ old cards --- */
.paper-panel {
  background: var(--paper); border-color: rgba(28, 47, 38, .1);
  box-shadow: var(--shadow-card); border-radius: 22px;
}
.paper-panel .panel-head { border-bottom-color: var(--line); }
.panel-body { color: var(--ink); }

.dex-portal {
  border-color: rgba(28, 47, 38, .1);
  box-shadow: var(--shadow-card);
}
.dex-portal::before { background: var(--portal-bg, linear-gradient(135deg, #eef4e8, #fbf5e7)); }
.dex-portal:hover { box-shadow: 0 18px 40px rgba(28, 47, 38, .13); }
.dex-portal::after { background: radial-gradient(closest-side, rgba(255, 255, 255, .8), transparent 72%); }
.dex-portal-copy { color: var(--forest); }
.dex-portal-kicker { color: var(--gold-dark); }
.dex-portal-meta { color: #5f6e61; }
.dex-portal-art { filter: drop-shadow(0 12px 16px rgba(40, 50, 30, .18)); }
.dex-portal-mini {
  border-color: rgba(28, 47, 38, .1); background: rgba(255, 255, 255, .58); color: #516154;
}
.dex-portal-mini:hover { background: #fff; color: var(--forest); border-color: rgba(150, 101, 15, .3); }
.dex-portal-art-glyph { filter: drop-shadow(0 10px 16px rgba(40, 50, 30, .2)); opacity: .8; }

.tool-card, .quick-link-card, .article-card {
  background: var(--paper); border-color: rgba(28, 47, 38, .1);
  color: var(--ink); box-shadow: var(--shadow-card);
}
.tool-card:hover { box-shadow: 0 16px 34px rgba(28, 47, 38, .1); }
.tool-desc { color: var(--muted); }
.article-card:hover { background: #fff; border-color: rgba(150, 101, 15, .3); }
.article-title { color: var(--forest); }
.article-desc { color: var(--muted); }
.article-meta { color: var(--gold-dark); }
.article-icon {
  background: var(--sage-soft); border-color: rgba(28, 47, 38, .08);
  color: var(--forest);
}
.quick-link-card { color: var(--ink-soft); }
.quick-link-card:hover { background: #fff; border-color: rgba(150, 101, 15, .3); }
.quick-icon { color: var(--forest); }

.notice-bar { margin-top: 12px; }
.notice-inner {
  background: #fff7e2; border-color: rgba(150, 101, 15, .18);
  color: #5c4a20; border-radius: 16px;
}
.notice-badge { background: var(--forest); color: #ffe6ad; }
.notice-inner a { color: #7a530e; font-weight: 800; text-decoration: underline; text-decoration-color: rgba(150, 101, 15, .35); }

.timeline::before { background: linear-gradient(180deg, var(--gold), rgba(150, 101, 15, .1)); }
.timeline-item::before { background: var(--gold); border-color: var(--cream); box-shadow: 0 0 0 2px var(--gold); }
.timeline-date { color: var(--gold-dark); }
.timeline-title { color: var(--forest); }
.timeline-desc { color: var(--muted); }

/* catalog controls */
.control-label { color: var(--gold-dark); }
.control-field select, .control-field input {
  background: #fff; color: var(--ink); border-color: rgba(28, 47, 38, .16);
}
.control-field select:focus, .control-field input:focus { border-color: var(--gold-dark); }
.control-field select option { background: #fff; color: var(--ink); }
.chip-btn {
  background: #fff; border-color: rgba(28, 47, 38, .13); color: var(--ink-soft);
}
.chip-btn:hover { border-color: var(--gold-dark); color: var(--gold-dark); }
.chip-btn.active { background: var(--forest); border-color: var(--forest); color: #fff6df; }
.result-count { color: var(--muted); }
.pager button { background: #fff; border-color: rgba(28, 47, 38, .14); color: var(--ink-soft); }
.pager button:hover:not(:disabled) { border-color: var(--gold-dark); color: var(--gold-dark); }
.pager button.active { background: var(--forest); border-color: var(--forest); color: #fff6df; }
.empty-note, .loading-note { color: var(--muted); }

/* cards */
.sprite-card, .sprite-row, .skill-card, .trait-card, .item-card {
  background: var(--paper); border-color: rgba(28, 47, 38, .09);
  box-shadow: 0 2px 10px rgba(28, 47, 38, .03);
}
.sprite-card:hover { box-shadow: 0 16px 32px rgba(28, 47, 38, .1); }
.sprite-card .card-art.is-head { background: radial-gradient(circle at 50% 38%, #fffaf0, #efe6d2); }
.sprite-card .card-name { color: var(--forest); }
.sprite-row { border-color: rgba(28, 47, 38, .09); }
.sprite-row:hover { border-color: rgba(150, 101, 15, .35); }
.sprite-row .row-name { color: var(--forest); }
.sprite-row .row-trait, .sprite-row .row-stats { color: var(--muted); }
.skill-name, .trait-name, .item-name { color: var(--forest); }
.skill-desc, .trait-desc, .item-desc { color: var(--ink-soft); }
.skill-cat, .trait-owners { background: var(--sage-soft); color: #536b55; }
.skill-season { background: #f8edcf; color: var(--gold-dark); }
.skill-foot { border-top-color: var(--line); }
.skill-foot b { color: var(--forest); }
.tag-pill { background: #e9f0df; color: #4f6b40; }

/* tables */
.table-wrap { background: #fff; border-color: rgba(28, 47, 38, .1); }
table.data-table th {
  background: #1e4a38; color: #fff6df; font-weight: 800;
}
table.data-table th:hover { color: var(--gold-light); }
table.data-table td { border-top-color: rgba(28, 47, 38, .08); color: var(--ink-soft); }
table.data-table tr:hover td { background: #fbf6e9; }
.data-table th { background: #f1ead9; color: #6b5a38; }
.data-table td { color: var(--ink-soft); border-bottom-color: var(--line); }
.data-table tbody tr:hover td { background: #fbf6e9; }
.type-chart-table th.row-head, .type-chart-table thead th { background: #efe7d3; color: #5e522f; }
.content-paper th { background: #f1ead9; color: #5e522f; }
.content-paper tr:hover td { background: #fbf6e9; }

/* detail */
.detail-visual {
  background:
    radial-gradient(360px 280px at 50% 30%, rgba(255, 255, 255, .95), transparent 72%),
    linear-gradient(150deg, #e8f0e1, #f7edd8);
  border-color: rgba(28, 47, 38, .1);
  box-shadow: var(--shadow-card);
}
.detail-visual img.detail-art { filter: drop-shadow(0 18px 24px rgba(40, 50, 30, .2)); }
.detail-visual .detail-num { color: rgba(28, 47, 38, .22); }
.detail-name { color: var(--forest); }
.detail-cn { color: var(--muted); }
.art-toggle { background: #fff; border-color: var(--line); }
.art-toggle button { color: var(--ink-soft); }
.art-toggle button.active { background: var(--forest); color: #fff6df; }

/* events / regions */
.event-card { background: var(--paper); border-color: rgba(28, 47, 38, .1); }
.event-card .event-banner { background: linear-gradient(135deg, #e9f0e2, #f8efdc); }
.event-name { color: var(--forest); }
.region-card { background: var(--paper); border-color: rgba(28, 47, 38, .1); }
.region-icon { background: var(--sage-soft); border-color: rgba(28, 47, 38, .08); }
.region-name { color: var(--forest); }
.region-sub { color: var(--gold-dark); }
.region-body { color: var(--ink-soft); }
.region-tags span { background: #f7f2e6; border-color: var(--line); color: var(--ink-soft); }

/* guides */
.content-paper { background: var(--paper); color: var(--ink-soft); border-color: rgba(28, 47, 38, .1); }
.content-paper h2, .content-paper h3, .content-paper h1 { color: var(--forest); }
.content-paper a { color: #8a5c0b; }
.content-paper .tip-box { background: #fff7e2; border-color: rgba(150, 101, 15, .25); }
.content-paper blockquote { background: #faf6ec; }
.content-paper .warn-box { background: #fdeeee; }
.back-link { color: var(--gold-dark); font-weight: 800; }
.article-page-meta { color: var(--muted); font-weight: 800; font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; }
.article-page .container { padding: 0; }

/* map + tool shells keep their dark stage; only lighten surroundings */
.wm-shell { color: var(--ink); }
.wm-side { color: var(--ink); }
.wm-panel { background: rgba(20, 34, 28, .97); color: #e8e0d0; }
.wm-error { color: #9a3535; }

/* ----------------------------------------------------------------- footer - */
.site-footer {
  margin-top: 64px; color: #cfd9cc;
  border-top: 1px solid rgba(247, 217, 148, .14);
  background:
    radial-gradient(700px 320px at 12% -20%, rgba(229, 174, 71, .14), transparent 62%),
    linear-gradient(180deg, #15392c, #102c21 72%);
}
.footer-inner { padding: 42px 20px 24px; color: #c1cdbf; }
.footer-main { grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 26px; }
.footer-brand .logo { color: #fff6df; }
.footer-brand p { color: #a9b8a8; }
.footer-col-title { color: #ffedc2; font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; }
.footer-links a { color: #aab9a8; }
.footer-links a:hover { color: #ffd98d; }
.v8-footer-launch {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
  padding: 18px 20px; margin-bottom: 4px; border-radius: 18px;
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(247, 217, 148, .16);
}
.v8-footer-launch-copy { flex: 1; min-width: 240px; }
.v8-footer-launch-copy b { display: block; font-family: var(--font-display); font-size: 20px; color: #fff2d2; font-weight: 600; letter-spacing: -.01em; }
.v8-footer-launch-copy span { display: block; margin-top: 2px; color: #a9b8a8; font-size: 12.5px; }
.v8-footer-count { display: flex; gap: 6px; }
.v8-footer-count span {
  min-width: 46px; text-align: center; padding: 6px 4px; border-radius: 9px;
  background: rgba(0, 0, 0, .22);
  font-size: 8.5px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; color: #9eb19e;
}
.v8-footer-count b { display: block; font-family: var(--font-display); font-size: 18px; color: #ffdd98; letter-spacing: -.02em; }
.footer-bottom { border-top-color: rgba(255, 255, 255, .09); color: #94a693; }
.footer-bottom a { color: #b9c6b7; }
.footer-bottom a:hover { color: #ffd98d; }
.footer-sources { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; font-size: 11px; color: #8fa18e; }
.footer-sources a { text-decoration: underline; text-decoration-color: rgba(255, 217, 141, .3); }

/* --------------------------------------------------------------- effects -- */
.v8-reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.v8-reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .v8-reveal { opacity: 1; transform: none; transition: none; }
  .v8-hero-art, .v8-hero-ring, .v8-ribbon-dot { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ------------------------------------------------------------ responsive -- */
@media (max-width: 1180px) {
  .desktop-nav { display: none; }
  .mobile-menu-toggle { display: block; }
  .mobile-nav.open { display: block; }
  .v8-hero h1 { font-size: clamp(38px, 6vw, 60px); }
  .v8-tools { grid-template-columns: repeat(3, 1fr); }
  .footer-main { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .footer-main > div:nth-child(5) { grid-column: auto; }
}
@media (max-width: 980px) {
  .v8-ribbon-inner { font-size: 11.5px; }
  .v8-hero-card { grid-template-columns: 1fr; min-height: 0; }
  .v8-hero-copy { padding: 34px 28px 10px; }
  .v8-hero-stage { min-height: 360px; }
  .v8-hero-art.main { width: 56%; max-width: 330px; right: 10%; }
  .v8-hero-art.side-a { width: 32%; left: 4%; bottom: 0; }
  .v8-hero-art.side-b { width: 20%; right: 2%; top: 3%; }
  .v8-hero-sun { width: 72%; right: 8%; top: 2%; }
  .v8-hero-ring { width: 58%; right: 13%; top: 7%; }
  .v8-stats-inner { grid-template-columns: 1fr 1fr; }
  .v8-stat:nth-child(2) { border-right: 0; }
  .v8-stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .v8-cats, .v8-starters, .v8-guides { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v8-launch { grid-template-columns: 1fr; gap: 24px; }
  .v8-count { max-width: 480px; }
  .v8-news-grid { grid-template-columns: 1fr; }
  .v8-sources { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .v8-footer-launch { order: 9; }
}
@media (max-width: 760px) {
  .v8-search-open span.v8-search-label, .v8-search-open .v8-key { display: none; }
  .v8-search-open { width: 38px; justify-content: center; padding: 0; }
  .lang-switcher summary { padding: 0 9px; }
  .header-cta { display: none; }
  .v8-tools { grid-template-columns: repeat(2, 1fr); }
  .v8-hero-copy { padding: 28px 20px 8px; }
  .v8-hero h1 { font-size: clamp(34px, 8.5vw, 46px); }
  .v8-hero-lead { font-size: 14.5px; }
  .v8-hero-stage { min-height: 300px; }
  .v8-float-chip { font-size: 10px; padding: 4px 9px; }
  .v8-hero-sticker { width: 58px; height: 58px; font-size: 7px; }
  .v8-hero-sticker b { font-size: 16px; }
  .v8-stats { margin-top: -20px; }
  .v8-stat { padding: 12px 14px; }
  .v8-stat b { font-size: 18px; }
  .v8-stat span { font-size: 9.5px; }
  .v8-cats, .v8-starters, .v8-guides { grid-template-columns: 1fr; }
  .v8-cat { min-height: 180px; }
  .v8-cat-art { width: 120px; height: 120px; opacity: .95; }
  .v8-cat-desc { max-width: 74%; }
  .v8-count { grid-template-columns: repeat(4, 1fr); gap: 5px; padding: 12px; }
  .v8-count-cell b { font-size: 24px; }
  .v8-count-cell span { font-size: 8px; letter-spacing: .08em; }
  .v8-footer-count { display: none; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 20px; }
  .page-hero-inner { padding: 30px 18px 26px; }
}
@media (max-width: 560px) {
  .v8-ribbon-inner { padding: 6px 14px; gap: 7px; font-size: 10.5px; }
  .v8-ribbon a { margin-left: 0; }
  .v8-ribbon-count { font-size: 10px; }
  .header-inner { padding: 0 14px; gap: 8px; }
  .logo { font-size: 20px; }
  .logo-icon { width: 34px; height: 34px; }
  .v8-hero { padding: 0 12px; margin-top: 16px; }
  .v8-hero-card { border-radius: 24px; }
  .v8-hero-art.side-a { width: 30%; }
  .v8-hero-art.side-b { display: none; }
  .v8-float-chip.water { display: none; }
  .v8-hero-art.main { width: 62%; right: 6%; }
  .v8-hero-actions .v8-btn { height: 42px; padding: 0 16px; font-size: 13px; }
  .v8-tools { grid-template-columns: 1fr; }
  .v8-stats { padding: 0 12px; }
  .v8-stat { gap: 8px; }
  .v8-stat-icon { width: 32px; height: 32px; }
  .v8-launch { border-radius: 22px; }
  .v8-feature-news { min-height: 300px; padding: 20px; }
  .v8-news-item { align-items: center; }
  .footer-main { grid-template-columns: 1fr; }
  .v8-sources { padding: 20px; }
  .v8-search { padding-top: 8vh; }
  .v8-search-head { padding: 12px 14px; }
  .v8-search-head input { font-size: 16px; }
  .v8-search-results { max-height: 56vh; }
  .v8-search-hints { padding: 10px 14px 2px; }
}

/* ---- cross-wiki entry (rockdom.wiki is a hub of several game wikis) ---- */
.hub-link{display:inline-flex;align-items:center;gap:5px;padding:6px 12px;border:1px solid currentColor;
  border-radius:999px;font-size:12.5px;line-height:1.15;white-space:nowrap;text-decoration:none;
  opacity:.62;transition:opacity .18s,border-color .18s}
.hub-link:hover,.hub-link:focus-visible{opacity:1;text-decoration:none}
@media(max-width:900px){.hub-link{padding:5px 9px;font-size:12px;gap:3px}}
