/* GenshinPuppy help: cream, caramel and honey, from the puppy logo. */
:root {
  --cream: #fff7ea;
  --card: #ffffff;
  --line: #f1dfc2;
  --cocoa: #5b3a1e;
  --caramel: #a0785a;
  --honey: #ff9f43;
  --honey-soft: #ffe6c2;
  --chip: #fff3df;
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--cocoa);
  font: 16px/1.65 "Segoe UI", "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
  /* faint paw prints */
  background-image:
    radial-gradient(circle at 20px 26px, rgba(240, 214, 176, .35) 6px, transparent 7px),
    radial-gradient(circle at 12px 16px, rgba(240, 214, 176, .35) 2.6px, transparent 3.4px),
    radial-gradient(circle at 18px 11px, rgba(240, 214, 176, .35) 2.6px, transparent 3.4px),
    radial-gradient(circle at 24px 11px, rgba(240, 214, 176, .35) 2.6px, transparent 3.4px),
    radial-gradient(circle at 29px 16px, rgba(240, 214, 176, .35) 2.6px, transparent 3.4px);
  background-size: 180px 180px;
}

a { color: #c46a12; text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px 64px; }

/* ---------- hero */
.hero { display: flex; align-items: center; gap: 22px; padding: 36px 0 18px; }
.hero .badge {
  width: 104px; height: 104px; flex: none; border-radius: 50%;
  background: #ece5d8; border: 4px solid #f3cf9b; box-shadow: 0 6px 18px rgba(160, 120, 90, .18);
  display: grid; place-items: center;
}
.hero .badge img { width: 70%; height: 70%; object-fit: contain; }
.hero h1 { margin: 0; font-size: 40px; line-height: 1.1; }
.hero h1 small { font-size: 18px; color: var(--caramel); font-weight: 600; margin-left: 8px; }
.hero p { margin: 6px 0 0; color: var(--caramel); font-size: 17px; }
.lang {
  margin-left: auto; align-self: flex-start; margin-top: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px;
  font-weight: 600; white-space: nowrap;
}

/* ---------- layout */
.layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; }
nav.toc {
  position: sticky; top: 16px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 10px;
}
nav.toc a { display: block; padding: 5px 10px; border-radius: 10px; color: var(--cocoa); font-size: 14px; }
nav.toc a:hover { background: var(--chip); text-decoration: none; }
nav.toc .group { color: var(--caramel); font-size: 12px; font-weight: 700; padding: 10px 10px 2px; letter-spacing: .5px; }

section {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 26px; margin-bottom: 22px; scroll-margin-top: 16px;
}
section h2 { margin: 0 0 8px; font-size: 24px; display: flex; align-items: center; gap: 12px; }
section h3 { margin: 22px 0 6px; font-size: 18px; }
.glyph {
  width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center;
  font-size: 20px; flex: none;
}
.g-wish { background: #fdeccf; color: #f5ad4b; }
.g-build { background: #e6eafc; color: #8fa2f0; }
.g-art { background: #fce4ee; color: #ee8fb3; }
.g-map { background: #ddf3e8; color: #6cc59c; }
.g-home { background: var(--honey-soft); color: #c46a12; }
.g-share { background: #fff0d0; color: #e09a1a; }
.g-shield { background: #e8f1ff; color: #5b8def; }
.g-help { background: #f1ecff; color: #9b7cf0; }

.lead { color: var(--caramel); margin-top: 0; }

figure { margin: 16px 0; }
figure img {
  display: block; max-width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line);
  box-shadow: 0 6px 20px rgba(91, 58, 30, .10);
}
figure.card img { margin: 0 auto; }
figure.small img { width: min(100%, 360px); }
.scroll { overflow-x: auto; }
figcaption { color: var(--caramel); font-size: 14px; margin-top: 6px; text-align: center; }
.cards { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; align-items: flex-start; }
.cards figure { flex: 0 1 300px; }
.cards figure.wide { flex-basis: 360px; }

ol.steps { counter-reset: step; list-style: none; padding: 0; }
ol.steps li { counter-increment: step; position: relative; padding: 4px 0 10px 44px; }
ol.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 4px; width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(#ffc271, #ff9f43); color: #fff; font-weight: 700; display: grid; place-items: center;
}

.tip {
  background: var(--chip); border-radius: 14px; padding: 12px 16px; margin: 14px 0;
  border-left: 4px solid #ffc271;
}
.tip b:first-child { color: #c46a12; }

kbd, .chip {
  display: inline-block; background: var(--chip); border: 1px solid var(--line); border-radius: 8px;
  padding: 0 8px; font: 600 13px/1.8 inherit;
}

table { border-collapse: collapse; width: 100%; margin: 10px 0; font-size: 15px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--caramel); font-size: 13px; }
.tier { font-weight: 700; white-space: nowrap; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }

.status-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0; }
.status-row span { background: var(--chip); border-radius: 999px; padding: 2px 12px; font-size: 14px; }

footer { text-align: center; color: var(--caramel); font-size: 14px; margin-top: 30px; }
footer img { width: 28px; vertical-align: middle; margin-right: 6px; }

@media (max-width: 820px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  nav.toc { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
  nav.toc .group { width: 100%; }
  .hero { flex-wrap: wrap; }
  .hero h1 { font-size: 30px; }
  section { padding: 18px 16px; }
}
