/* ============================================================
   洪荒道种 官网 · 墨韵鎏金主题
   风格对齐 LinkPal / Dailihood 站点：深色氛围 + 卡片栅格 + 滚动动效
   品牌色：鎏金 #e8cd94 / 古金 #926f3c / 墨底 #0c0914 / 宣纸米 #f5f0e1
   ============================================================ */

:root {
  --bg: #0c0914;
  --bg-soft: #120d1e;
  --panel: rgba(255, 244, 220, 0.035);
  --panel-strong: rgba(255, 244, 220, 0.06);
  --line: rgba(232, 205, 148, 0.14);
  --line-strong: rgba(232, 205, 148, 0.32);
  --gold: #e8cd94;
  --gold-bright: #f4e3b8;
  --gold-deep: #b98f4e;
  --paper: #f5f0e1;
  --body: #b9b0a0;
  --dim: #847c6e;
  --radius: 18px;
  --max: 1120px;

  --nav-bg: rgba(12, 9, 20, 0.72);
  --nav-bg-strong: rgba(12, 9, 20, 0.88);
  --nav-bg-solid: rgba(12, 9, 20, 0.97);
  --shadow-hover: 0 18px 44px rgba(0, 0, 0, 0.4);
  --grad-title: linear-gradient(105deg, #f4e3b8 0%, #e8cd94 40%, #b98f4e 85%);
}

/* 浅色（宣纸鎏金）：跟随系统 prefers-color-scheme 自动切换 */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f1e3;
    --bg-soft: #efe7d2;
    --panel: rgba(74, 56, 24, 0.045);
    --panel-strong: rgba(74, 56, 24, 0.075);
    --line: rgba(120, 92, 40, 0.24);
    --line-strong: rgba(120, 92, 40, 0.42);
    --gold: #9a6b1f;
    --gold-bright: #7c5417;
    --gold-deep: #b98f4e;
    --paper: #241b0c;
    --body: #4f4635;
    --dim: #7d715c;

    --nav-bg: rgba(246, 241, 227, 0.78);
    --nav-bg-strong: rgba(246, 241, 227, 0.92);
    --nav-bg-solid: rgba(246, 241, 227, 0.98);
    --shadow-hover: 0 18px 44px rgba(90, 66, 28, 0.16);
    --grad-title: linear-gradient(105deg, #8a621c 0%, #9a6b1f 40%, #6e4c12 85%);
  }
  .aura {
    background:
      radial-gradient(900px 520px at 78% -8%, rgba(185, 143, 78, 0.16), transparent 62%),
      radial-gradient(760px 500px at 12% 22%, rgba(146, 111, 60, 0.10), transparent 60%),
      radial-gradient(1000px 640px at 50% 118%, rgba(185, 143, 78, 0.14), transparent 62%),
      var(--bg);
  }
  .hero-bg img { opacity: 0.5; filter: sepia(0.2) saturate(0.85); }
  .hero-badge { background: rgba(154, 107, 31, 0.08); }
  ::selection { background: rgba(154, 107, 31, 0.24); color: #fff; }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body { -webkit-tap-highlight-color: transparent; }

body {
  background: var(--bg);
  color: var(--body);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, sans-serif;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(232, 205, 148, 0.28); color: #fff; }

img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }

h1, h2, h3 { color: var(--paper); font-weight: 700; letter-spacing: 0.02em; line-height: 1.3; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- 背景氛围 ---------- */
.aura {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(900px 520px at 78% -8%, rgba(185, 143, 78, 0.13), transparent 62%),
    radial-gradient(760px 500px at 12% 22%, rgba(90, 66, 120, 0.10), transparent 60%),
    radial-gradient(1000px 640px at 50% 118%, rgba(146, 111, 60, 0.10), transparent 62%),
    var(--bg);
}
#inkCanvas { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5; }

/* ---------- 滚动进度条 ---------- */
#progressBar {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
  z-index: 200; transition: width 0.08s linear;
}

/* ---------- 导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  background: var(--nav-bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.nav.scrolled { border-bottom-color: var(--line); background: var(--nav-bg-strong); }
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 14px 24px;
  padding-top: calc(14px + env(safe-area-inset-top));
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--paper); font-weight: 700; font-size: 1.05rem; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand .en { font-size: 0.68rem; color: var(--dim); letter-spacing: 0.18em; display: block; font-weight: 400; }
.nav-links { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--body); font-size: 0.94rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--gold-bright); }
.nav-cta {
  padding: 8px 18px; border: 1px solid var(--line-strong); border-radius: 999px;
  color: var(--gold-bright) !important;
  transition: background 0.2s, box-shadow 0.2s;
}
.nav-cta:hover { background: rgba(232, 205, 148, 0.1); box-shadow: 0 0 22px rgba(232, 205, 148, 0.15); }
#navToggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 11px; cursor: pointer; }
#navToggle span { display: block; width: 18px; height: 2px; background: var(--gold); margin: 4px 0; border-radius: 2px; transition: transform 0.25s, opacity 0.25s; }
#navToggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
#navToggle.open span:nth-child(2) { opacity: 0; }
#navToggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 158px 0 96px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1; overflow: hidden;
}
.hero-bg img {
  position: absolute; right: -14%; top: 50%; transform: translateY(-50%);
  height: 118%; width: auto; opacity: 0.30;
  -webkit-mask-image: linear-gradient(100deg, transparent 4%, #000 52%);
  mask-image: linear-gradient(100deg, transparent 4%, #000 52%);
  filter: sepia(0.35) saturate(0.8);
  will-change: transform;
}
.hero-inner { max-width: 660px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 7px 16px; font-size: 0.86rem; color: var(--gold);
  background: rgba(232, 205, 148, 0.06); margin-bottom: 26px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 3.9rem); letter-spacing: 0.04em; }
.hero h1 .grad {
  background: var(--grad-title);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-sub { font-size: clamp(1.02rem, 1.6vw, 1.16rem); max-width: 560px; color: var(--body); margin-top: 22px; }
.hero-sub strong { color: var(--paper); }
.hero-actions { display: flex; gap: 16px; margin-top: 38px; flex-wrap: wrap; align-items: center; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 30px; border-radius: 999px; font-size: 1rem; font-weight: 600;
  transition: transform 0.2s, box-shadow 0.25s, background 0.2s;
  cursor: pointer; border: none;
}
.btn-gold {
  background: linear-gradient(120deg, #f0d9a4, #d9b878 55%, #b98f4e);
  color: #221806;
  box-shadow: 0 6px 26px rgba(217, 184, 120, 0.28);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 34px rgba(217, 184, 120, 0.4); }
.btn-ghost {
  border: 1px solid var(--line-strong); color: var(--gold-bright); background: transparent;
}
.btn-ghost:hover { background: rgba(232, 205, 148, 0.08); transform: translateY(-2px); }

/* ---------- 通用 section ---------- */
section { padding: 92px 0; position: relative; }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 54px; }
.sec-kicker {
  color: var(--gold); font-size: 0.85rem; letter-spacing: 0.34em;
  text-transform: uppercase; margin-bottom: 14px;
}
.sec-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.sec-head p { margin-top: 16px; color: var(--body); }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 数据条 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 64px; }
.stat {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); padding: 22px 12px; text-align: center;
}
.stat b { display: block; font-size: 2rem; color: var(--gold-bright); font-weight: 700; }
.stat span { font-size: 0.86rem; color: var(--dim); }

/* ---------- 功能卡片 ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); padding: 28px 24px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(320px 200px at var(--mx, 50%) var(--my, 0%), rgba(232, 205, 148, 0.08), transparent 70%);
  opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.card:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: var(--shadow-hover); }
.card:hover::before { opacity: 1; }
.card .ico { font-size: 1.9rem; margin-bottom: 14px; display: block; }
.card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.card p { font-size: 0.92rem; color: var(--body); }

/* ---------- 原画精选 ---------- */
.art-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.art-item {
  position: relative; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); aspect-ratio: 1 / 1; cursor: pointer;
  background: var(--bg-soft);
}
.art-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease, opacity 0.3s;
  opacity: 0; 
}
.art-item img.loaded { opacity: 1; }
.art-item:hover img { transform: scale(1.06); }
.art-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 14px 10px; font-size: 0.88rem; color: var(--paper);
  background: linear-gradient(transparent, rgba(8, 5, 14, 0.88));
  opacity: 0; transition: opacity 0.3s;
}
.art-item:hover figcaption { opacity: 1; }
.art-more { text-align: center; margin-top: 36px; }

/* ---------- 境界之路 ---------- */
.realms { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.realm-step {
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--panel); padding: 18px 10px; text-align: center;
  transition: border-color 0.3s, transform 0.3s;
}
.realm-step:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.realm-step b { display: block; color: var(--gold-bright); font-size: 1.05rem; margin-bottom: 4px; }
.realm-step span { font-size: 0.78rem; color: var(--dim); }

/* ---------- 至宝 ---------- */
.artifact-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; }
.artifact-card { text-align: center; }
.artifact-card .ph {
  border-radius: 14px; overflow: hidden; border: 1px solid var(--line);
  aspect-ratio: 1 / 1; margin-bottom: 10px; background: var(--bg-soft);
}
.artifact-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.artifact-card:hover img { transform: scale(1.08); }
.artifact-card b { color: var(--paper); font-size: 0.95rem; display: block; }
.artifact-card span { font-size: 0.76rem; color: var(--dim); }

/* ---------- 内购 ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 900px; margin: 0 auto; }
.price-card {
  border: 1px solid var(--line); border-radius: 20px;
  background: var(--panel); padding: 34px 28px; text-align: center;
  transition: transform 0.3s, border-color 0.3s;
}
.price-card:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.price-card.hot { border-color: rgba(232, 205, 148, 0.5); background: var(--panel-strong); position: relative; }
.price-card.hot::after {
  content: "超值"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(120deg, #f0d9a4, #b98f4e); color: #221806;
  font-size: 0.76rem; font-weight: 700; padding: 4px 16px; border-radius: 999px;
}
.price-card h3 { font-size: 1.15rem; }
.price-card .price { font-size: 2.1rem; color: var(--gold-bright); font-weight: 700; margin: 14px 0 4px; }
.price-card .price small { font-size: 0.9rem; color: var(--dim); font-weight: 400; }
.price-card .desc { font-size: 0.9rem; color: var(--body); margin-bottom: 6px; }
.price-card .note { font-size: 0.78rem; color: var(--dim); }
.iap-note {
  max-width: 720px; margin: 34px auto 0; text-align: center;
  font-size: 0.85rem; color: var(--dim);
  border: 1px dashed var(--line); border-radius: 14px; padding: 16px 22px;
}

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 14px; background: var(--panel); overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 20px 24px; color: var(--paper); font-size: 1rem; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: inherit;
}
.faq-q .chev { transition: transform 0.3s; color: var(--gold); flex: none; }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-a-inner { padding: 0 24px 20px; font-size: 0.94rem; color: var(--body); }

/* ---------- CTA ---------- */
.cta-panel {
  border: 1px solid var(--line-strong); border-radius: 26px;
  background: linear-gradient(160deg, rgba(232, 205, 148, 0.08), rgba(12, 9, 20, 0.4) 55%);
  padding: 72px 32px; text-align: center;
}
.cta-panel h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 14px; }
.cta-panel p { color: var(--body); max-width: 520px; margin: 0 auto 34px; }

/* ---------- 文档页（support / privacy / gallery 头部） ---------- */
.doc-head { padding: 138px 0 44px; text-align: center; }
.doc-head h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.doc-head .sub { margin-top: 12px; color: var(--dim); }
.doc-layout { display: grid; grid-template-columns: 216px 1fr; gap: 44px; padding-bottom: 90px; }
.doc-toc { position: sticky; top: 96px; align-self: start; font-size: 0.9rem; }
.doc-toc b { display: block; color: var(--paper); margin-bottom: 12px; font-size: 0.85rem; letter-spacing: 0.12em; }
.doc-toc a { display: block; color: var(--dim); padding: 5px 0; border-left: 2px solid transparent; padding-left: 12px; transition: color 0.2s, border-color 0.2s; }
.doc-toc a:hover, .doc-toc a.active { color: var(--gold-bright); border-left-color: var(--gold-deep); }
.doc-body h2 { font-size: 1.4rem; margin: 46px 0 16px; scroll-margin-top: 100px; }
.doc-body h2:first-child { margin-top: 0; }
.doc-body h3 { font-size: 1.08rem; margin: 28px 0 10px; }
.doc-body p, .doc-body li { font-size: 0.96rem; }
.doc-body ul, .doc-body ol { padding-left: 22px; margin: 12px 0; }
.doc-body li { margin: 6px 0; }
.doc-body strong { color: var(--paper); }
.doc-callout {
  border: 1px solid var(--line-strong); border-left: 3px solid var(--gold-deep);
  border-radius: 12px; background: var(--panel); padding: 16px 20px; margin: 18px 0; font-size: 0.92rem;
}

/* ---------- 图鉴页 ---------- */
.gallery-tools { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.gtab {
  border: 1px solid var(--line); background: var(--panel); color: var(--body);
  border-radius: 999px; padding: 8px 20px; font-size: 0.9rem; cursor: pointer;
  transition: all 0.25s; font-family: inherit;
}
.gtab:hover { color: var(--gold-bright); border-color: var(--line-strong); }
.gtab.active {
  background: linear-gradient(120deg, rgba(240, 217, 164, 0.92), rgba(185, 143, 78, 0.92));
  color: #221806; border-color: transparent; font-weight: 600;
}
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; min-height: 400px; }
.gcell {
  border-radius: 14px; overflow: hidden; border: 1px solid var(--line);
  cursor: zoom-in; position: relative; background: var(--bg-soft);
  transition: transform 0.3s, border-color 0.3s;
}
.gcell:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.gcell img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; opacity: 0; transition: opacity 0.4s, transform 0.5s; }
.gcell img.loaded { opacity: 1; }
.gcell:hover img { transform: scale(1.05); }
.gcell .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 8px;
  font-size: 0.84rem; color: var(--paper);
  background: linear-gradient(transparent, rgba(8, 5, 14, 0.9));
}
.g-empty { grid-column: 1 / -1; text-align: center; color: var(--dim); padding: 80px 0; }

/* 灯箱 */
#lightbox {
  position: fixed; inset: 0; z-index: 300; display: none;
  background: rgba(6, 4, 10, 0.92); backdrop-filter: blur(10px);
  align-items: center; justify-content: center; flex-direction: column; gap: 14px;
}
#lightbox.open { display: flex; }
#lightbox img { max-width: 88vw; max-height: 78vh; border-radius: 12px; box-shadow: 0 30px 90px rgba(0,0,0,0.7); }
#lbCaption { color: var(--paper); font-size: 1rem; }
#lbCaption small { color: var(--dim); margin-left: 10px; }
.lb-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(232, 205, 148, 0.1); border: 1px solid var(--line-strong);
  color: var(--gold-bright); font-size: 1.5rem; width: 52px; height: 52px;
  border-radius: 50%; cursor: pointer; transition: background 0.2s; font-family: inherit;
}
.lb-btn:hover { background: rgba(232, 205, 148, 0.22); }
#lbPrev { left: 26px; } #lbNext { right: 26px; }
#lbClose { position: absolute; top: 22px; right: 26px; transform: none; width: 44px; height: 44px; font-size: 1.2rem; }

/* ---------- 页脚 ---------- */
footer { border-top: 1px solid var(--line); padding: 52px 0 40px; margin-top: 40px; }
.foot-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.foot-brand img { width: 44px; height: 44px; border-radius: 10px; margin-bottom: 12px; }
.foot-brand p { font-size: 0.86rem; color: var(--dim); max-width: 300px; }
.foot-links { display: flex; gap: 60px; flex-wrap: wrap; }
.foot-links b { display: block; color: var(--paper); font-size: 0.9rem; margin-bottom: 12px; }
.foot-links a { display: block; color: var(--dim); font-size: 0.86rem; padding: 4px 0; }
.foot-links a:hover { color: var(--gold-bright); }
.foot-base {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 0.8rem; color: var(--dim);
}


/* ---------- 浅色模式选择器覆盖（置于文件末尾，确保覆盖上方同名规则） ---------- */
@media (prefers-color-scheme: light) {

  .aura {
    background:
      radial-gradient(900px 520px at 78% -8%, rgba(185, 143, 78, 0.16), transparent 62%),
      radial-gradient(760px 500px at 12% 22%, rgba(146, 111, 60, 0.10), transparent 60%),
      radial-gradient(1000px 640px at 50% 118%, rgba(185, 143, 78, 0.14), transparent 62%),
      var(--bg);
  }
  .hero-bg img { opacity: 0.5; filter: sepia(0.2) saturate(0.85); }
  .hero-badge { background: rgba(154, 107, 31, 0.08); }
  ::selection { background: rgba(154, 107, 31, 0.24); color: #fff; }

  .cta-panel {
    background: linear-gradient(160deg, rgba(185, 143, 78, 0.14), rgba(255, 252, 244, 0.5) 55%);
  }
  .lb-btn { background: rgba(122, 86, 24, 0.1); }
  .lb-btn:hover { background: rgba(122, 86, 24, 0.22); }
  #lightbox { background: rgba(48, 38, 20, 0.9); }
  .faq-a-inner strong, .doc-body strong { color: var(--paper); }
}

/* ---------- 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1020px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .realms { grid-template-columns: repeat(5, 1fr); }
  .artifact-row { grid-template-columns: repeat(4, 1fr); }
  .artifact-row .artifact-card:nth-child(n+5) { display: none; }
}
@media (max-width: 760px) {
  .nav-links {
    position: fixed; top: 62px; right: 0; flex-direction: column; align-items: flex-start;
    background: var(--nav-bg-solid); border: 1px solid var(--line);
    border-radius: 16px; padding: 22px 30px; gap: 18px; min-width: 220px;
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: 0.25s;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  #navToggle { display: block; }
  .hero { padding: 126px 0 70px; }
  .hero-bg img { opacity: 0.14; right: -40%; }
  section { padding: 66px 0; }
  .grid-4, .stats, .pricing, .realms { grid-template-columns: repeat(2, 1fr); }
  .realms { grid-template-columns: repeat(2, 1fr); }
  .artifact-row { grid-template-columns: repeat(3, 1fr); }
  .artifact-row .artifact-card:nth-child(n+5) { display: block; }
  .artifact-row .artifact-card:nth-child(n+7) { display: none; }
  .art-strip { grid-template-columns: repeat(2, 1fr); }
  .doc-layout { grid-template-columns: 1fr; }
  .doc-toc { position: static; display: none; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  #lbPrev { left: 8px; } #lbNext { right: 8px; }
}
