:root {
  --bg: #f2f2f7;
  --bg2: #e5e5ea;
  --card: #ffffff;
  --ink: #1c1c1e;
  --muted: rgba(60, 60, 67, 0.60);
  --tertiary: rgba(60, 60, 67, 0.30);
  --line: rgba(60, 60, 67, 0.29);
  --fill: rgba(118, 118, 128, 0.12);
  --accent: #007aff;
  --accent-soft: rgba(0, 122, 255, 0.14);
  --accent-ink: #007aff;
  --hp: #ff3b30;
  --hg: #ff9500;
  --sa: #5856d6;
  --chip: rgba(118, 118, 128, 0.12);
  --radius-sheet: 26px;
  --radius-group: 20px;
  --radius-nested: 12px;
  --radius-well: 24px;
  --radius-control: 10px;
  --radius-capsule: 999px;
  --radius: 20px;
  --radius-lg: 26px;
  --space: 8px;
  --shadow: 0 0.5px 1px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
  --bar: rgba(242, 242, 247, 0.72);
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-size: 17px;
  line-height: 1.294;
}
body { background: var(--bg); }
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
button:focus:not(:focus-visible),
input:focus:not(:focus-visible) { outline: none; }
.parchment {
  max-width: 980px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 12px 20px calc(80px + env(safe-area-inset-bottom, 0px));
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 10px 0 12px;
  margin: 0 -20px 8px;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
  padding-top: max(10px, env(safe-area-inset-top, 0px));
  background: var(--bar);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid var(--line);
}
.back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  margin: 0;
  padding: 0 14px;
  border: 0;
  background: var(--fill);
  border-radius: var(--radius-capsule);
  cursor: pointer;
  font-size: 17px;
  font-weight: 590;
  color: var(--accent);
  flex: 0 0 auto;
}
.back-btn:hover { filter: brightness(0.97); }
.back-btn[hidden] { display: none; }
.load-more-wrap { text-align: center; margin: 20px 0; }
.load-more-wrap button {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius-capsule);
  background: var(--fill);
  color: var(--accent);
  font: inherit;
  font-weight: 590;
  cursor: pointer;
}
.list-title {
  margin: 20px 0 10px;
  font-size: 22px;
  line-height: 28px;
  font-weight: 700;
  letter-spacing: -0.026em;
}
.skel-card {
  height: 96px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, #ebebed 25%, #f7f7f8 40%, #ebebed 55%);
  background-size: 400% 100%;
  animation: skel 1.2s ease infinite;
}
@keyframes skel {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .skel-card { animation: none; }
  .item:hover img { transform: none; }
}
img.lazy { background: var(--fill); min-width: 40px; min-height: 40px; border-radius: 8px; }
.brand { display: flex; gap: 12px; align-items: center; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--card);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  overflow: hidden;
}
.brand-mark img { width: 28px; height: 28px; object-fit: contain; display: block; }
.goes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 12px 8px;
  margin: 8px 0 4px;
}
.goes-tile { min-width: 0; text-align: center; }
.goes-tile .item { width: 100%; }
.goes-tile .frame { width: 64px; height: 64px; border-radius: 18px; }
.goes-tile .frame img { width: 56px; height: 56px; }
.goes-fn {
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 1.27;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
h1 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-weight: 700;
  line-height: 34px;
}
.sub { margin: 2px 0 0; color: var(--muted); font-size: 13px; line-height: 18px; font-weight: 400; }
.search-wrap { position: relative; margin: 14px 0 12px; }
#q {
  width: 100%;
  font-size: 17px;
  font-family: inherit;
  padding: 8px 16px 8px 40px;
  min-height: 36px;
  border: 0;
  border-radius: var(--radius-control);
  background: var(--fill) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236e6e73' stroke-width='2'><circle cx='11' cy='11' r='7'/><path d='M20 20l-3-3'/></svg>") no-repeat 14px 50%;
  color: var(--ink);
  outline: none;
}
#q::placeholder { color: #8e8e93; }
#q:focus { background-color: var(--card); box-shadow: 0 0 0 4px var(--accent-soft); }
.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px);
  background: var(--card);
  border: 0;
  border-radius: var(--radius-nested);
  max-height: 360px;
  overflow: auto;
  z-index: 30;
  box-shadow: var(--shadow);
}
.suggest button {
  display: flex; gap: 12px; align-items: center;
  width: 100%; text-align: left;
  border: 0; background: transparent;
  min-height: 44px;
  padding: 8px 14px; cursor: pointer; color: var(--ink);
  font: inherit;
}
.suggest button:hover, .suggest button.active { background: var(--fill); }
.suggest img { width: 36px; height: 36px; object-fit: contain; }
.nav-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-bottom: 8px;
}
.nav-l3 {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nav-l3-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
  margin-bottom: 0;
  background: transparent;
}
.filters.seg {
  width: fit-content;
  max-width: 100%;
  gap: 2px;
  padding: 2px;
  background: var(--fill);
  border-radius: var(--radius-control);
}
#mainArea { position: relative; z-index: 1; }
.chip, #modFilter {
  background: var(--fill);
  color: var(--ink);
  border: 0;
  border-radius: var(--radius-capsule);
  min-height: 32px;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 15px;
  line-height: 20px;
  font-family: inherit;
  font-weight: 590;
}
.filters.seg .chip {
  background: transparent;
  border-radius: 8px;
}
.chip:hover { filter: brightness(0.98); }
.chip:active { filter: brightness(0.94); }
.chip.on {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 0 0 0.5px rgba(0, 0, 0, 0.04);
}
#modFilter {
  border-radius: var(--radius-control);
  max-width: 220px;
  background: var(--card);
  min-height: 36px;
  box-shadow: 0 0 0 0.5px var(--line);
}

.hero { padding: 8px 0 12px; min-height: 0; }
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.item-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.head-icon {
  width: 96px; height: 96px;
  background: var(--card);
  border: 0;
  border-radius: 26px;
  box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 96px;
}
.head-icon img { width: 76px; height: 76px; object-fit: contain; }
.head-text { flex: 1; min-width: 0; }
.head-text h2 { margin: 0 0 4px; font-size: 34px; font-weight: 700; letter-spacing: -0.03em; line-height: 41px; }
.jump-obtain {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-top: 10px;
  padding: 0 12px;
  border: 0;
  color: var(--accent);
  text-decoration: none;
  border-radius: var(--radius-capsule);
  font-size: 15px;
  font-weight: 590;
  background: var(--accent-soft);
  cursor: pointer;
  font-family: inherit;
}
.panel {
  background: var(--card);
  border: 0;
  border-radius: var(--radius-group);
  padding: 16px 20px;
  margin-bottom: 16px;
}
.panel h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 25px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.panel > p { margin: 0; line-height: 22px; color: var(--ink); max-width: 38rem; }
.tip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
@media (max-width: 720px) {
  .tip-grid { grid-template-columns: 1fr; }
  .item-head { flex-direction: column; }
  .head-text h2 { font-size: 28px; }
}
.tip-card {
  background: var(--bg);
  border: 0;
  border-radius: var(--radius-nested);
  padding: 12px 14px;
}
.tip-card b { display: block; margin-bottom: 4px; font-size: 15px; line-height: 20px; font-weight: 590; color: var(--ink); }
.tip-card p { margin: 0; font-size: 15px; color: var(--muted); line-height: 20px; }
.recipe-row .ings { flex: 1 1 220px; }
.recipe-row .mid { flex: 0 0 auto; }
.recipe-row .prod { flex: 0 0 auto; }
.src-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 4px;
}
.src-chips .item { width: 84px; }
.mod-card h3 { margin: 0 0 8px; font-size: 20px; }
.mod-card .badge { font-weight: 510; }
.wiki-body {
  padding: 4px 0;
  margin: 8px 0 0;
  max-width: 38rem;
  font-size: 17px;
  line-height: 1.47;
  color: var(--ink);
  white-space: normal;
  overflow-wrap: anywhere;
}
.wiki-body h4 {
  margin: 16px 0 6px;
  font-size: 20px;
  line-height: 25px;
  font-weight: 600;
  color: var(--ink);
}
.wiki-body p { margin: 0 0 10px; }
.wiki-body p:last-child { margin-bottom: 0; }
.wiki-body.full { max-height: none; }
.wiki-card h3 { margin: 0 0 8px; font-size: 20px; }
.wiki-card p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.4; }
.fx-list { margin: 6px 0 10px; padding-left: 22px; color: var(--ink); line-height: 1.47; }
.fx-list li { margin: 4px 0; }
.panel a { color: var(--accent); text-decoration: none; }
.panel p { margin: 0 0 8px; line-height: 1.47; color: var(--ink); }
.panel p:last-child { margin-bottom: 0; }
.src-box {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 0.5px solid var(--line);
}
.src-box h4 { margin: 0 0 6px; font-size: 13px; color: var(--muted); font-weight: 590; }
.src-box ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 15px; line-height: 1.47; }
.tile-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  width: 76px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: inherit;
}
.tile {
  position: relative;
  width: 68px; height: 68px;
  background: var(--card);
  border: 0;
  border-radius: 20px;
  box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
}
.tile img { width: 52px; height: 52px; object-fit: contain; }
.tile-out { background: var(--accent-soft); }
.tile-st { background: var(--card); }
.qty {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: rgba(28, 28, 30, 0.72);
  color: #fff;
  font-size: 11px;
  font-weight: 590;
  line-height: 16px;
  border-radius: 0 0 20px 20px;
}
.tile-cap { margin-top: 4px; font-size: 12px; color: var(--ink); text-align: center; line-height: 1.2; }
.gear { font-size: 22px; color: var(--muted); }
.arrow {
  font-size: 22px;
  color: var(--muted);
  padding: 0 6px;
  align-self: center;
}
.hero-card, .hero-simple {
  display: flex; gap: 22px; align-items: flex-start;
  background: none;
  border: 0;
  padding: 4px 0 12px;
  flex-wrap: wrap;
}
.ibox {
  width: auto;
  text-align: center;
  background: var(--card);
  border: 0;
  border-radius: var(--radius-sheet);
  padding: 16px 18px 18px;
  box-shadow: var(--shadow);
}
.ibox-icon img { width: 84px; height: 84px; object-fit: contain; }
.ibox h2 { margin: 6px 0 0; font-size: 22px; letter-spacing: -0.02em; }
.ibox-en { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.ibox-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 15px;
  margin-top: 8px;
}
.ibox-table th {
  color: var(--muted);
  font-weight: 510;
  width: 38%;
  padding: 6px 8px 6px 0;
  vertical-align: top;
}
.ibox-table td { padding: 6px 0; color: var(--ink); }
.ibox-table code { font-size: 13px; color: var(--muted); }
.hero-text h2 { margin: 0 0 4px; font-size: 28px; color: var(--ink); letter-spacing: -0.03em; }
.hero-text p { margin: 8px 0 0; color: var(--muted); max-width: 760px; line-height: 1.47; }
.muted { color: var(--muted); font-size: 15px; }
.d-en, .d-id { color: var(--muted); font-size: 13px; }

.tri {
  display: flex; gap: 20px; flex-wrap: wrap;
  margin: 8px 0 4px;
}
.tri-i {
  min-width: auto;
  background: none;
  border: 0;
  padding: 0;
}
.tri-i span { display: block; font-size: 12px; color: var(--muted); font-weight: 510; }
.tri-i b { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.tri-i.hp b { color: var(--hp); }
.tri-i.hg b { color: var(--hg); }
.tri-i.sa b { color: var(--sa); }

.stats {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 10px 0 4px;
}
.stat {
  display: inline-flex; align-items: baseline; gap: 6px;
  background: var(--fill);
  border: 0;
  color: var(--ink);
  border-radius: var(--radius-capsule);
  padding: 4px 10px;
  font-size: 13px;
}
.stat em { font-style: normal; color: var(--muted); font-size: 12px; }
.funcs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.func {
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--radius-capsule);
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 510;
}

.results { display: flex; flex-direction: column; gap: 0; }
.group-title { display: none; }
.recipe-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 0;
  background: none;
  border: 0;
  border-bottom: 0.5px solid var(--line);
  border-radius: 0;
  margin-bottom: 0;
}
.recipe-row:last-child { border-bottom: 0; }
.row-meta {
  width: 100%;
  font-size: 13px;
  color: var(--muted);
  padding-left: 4px;
}
.bp-note {
  width: 100%;
  margin: 8px 0 12px;
  padding: 12px 14px;
  background: var(--accent-soft);
  border: 0;
  border-radius: var(--radius-nested);
  font-size: 15px;
  color: var(--ink);
  line-height: 20px;
}
.bp-note b { color: var(--accent); }
.ings, .prod, .mid {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.mid { margin: 0 6px; min-width: 110px; justify-content: center; }

.item {
  width: 96px;
  text-align: center;
  cursor: pointer;
  background: none; border: 0; color: inherit;
  padding: 4px 0;
  min-height: 44px;
}
.item:hover img { transform: scale(1.04); }
.frame {
  width: 72px; height: 72px;
  margin: 0 auto 6px;
  background: var(--card);
  border: 0;
  border-radius: var(--radius-well);
  box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
}
.frame img {
  width: 58px; height: 58px;
  object-fit: contain;
}
.item .label {
  font-size: 12px;
  font-weight: 510;
  color: var(--ink);
  line-height: 1.25;
  max-height: 2.5em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-all;
}
.station {
  display: flex; flex-direction: column; align-items: center;
  min-width: 100px;
  cursor: pointer;
  background: none; border: 0; color: inherit;
}
.station img {
  width: 64px; height: 64px; object-fit: contain;
}
.station .sname {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 510;
  color: var(--muted);
}
.handcraft {
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 50%;
}
.arrows {
  width: 28px; height: 18px;
  opacity: 0.45;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 22'><path d='M4 11h24' stroke='%238e8e93' stroke-width='2' fill='none'/><path d='M22 5l8 6-8 6' stroke='%238e8e93' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
}
.arrows.left { transform: scaleX(-1); }
.badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 510;
  border-radius: var(--radius-capsule);
  background: var(--fill);
  color: var(--muted);
  border: 0;
}
.cook-stats { font-size: 13px; color: var(--muted); margin-top: 4px; }
.empty {
  padding: 48px 12px;
  text-align: center;
  color: var(--muted);
  font-size: 17px;
}
.browse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 12px 8px;
  padding: 8px 0 24px;
}
.browse-grid.compact {
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 10px 8px;
}
.browse-grid.compact .item { width: 88px; }
.browse-grid.compact .frame { width: 64px; height: 64px; }
.browse-grid.compact .frame img { width: 56px; height: 56px; }
.hint { margin: 4px 0 12px; color: var(--muted); font-size: 15px; line-height: 1.47; }
.text-link {
  background: none; border: 0; padding: 0; margin: 0 2px;
  color: var(--accent); font: inherit; font-weight: 590;
  text-decoration: none; cursor: pointer;
}
.need {
  width: 100%;
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

body.mode-play .parchment { max-width: 1080px; }
body.mode-play #typeSeg,
body.mode-play #atlasL3 { display: none !important; }
body.mode-atlas #howtoNav { display: none; }
#howtoNav { margin-bottom: 0; }
.ht-paper, .ht-xhs { max-width: 520px; margin: 0 auto 22px; }
.ht-paper, .ht-xhs, .ht-atom {
  position: relative;
  background: var(--card);
  color: var(--ink);
  border: 0.5px solid var(--line);
  border-radius: var(--radius-group);
  padding: 20px 16px 22px;
  box-shadow: var(--shadow);
}
.ht-paper h2, .ht-xhs h2, .ht-atom h2 {
  text-align: left;
  margin: 0 0 12px;
  font-size: 22px;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--ink);
}
.ht-paper h3, .ht-xhs h3, .ht-atom h3 {
  margin: 16px 0 8px;
  font-size: 13px;
  font-weight: 590;
  color: var(--muted);
  text-transform: none;
}
.ht-paper p { margin: 6px 0 10px; font-size: 14px; line-height: 1.55; }
.ht-eq {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 10px;
}
.ht-op { font-size: 20px; font-weight: 800; color: #5a4636; }
.ht-item {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0;
  text-align: center;
  font: inherit;
  min-width: 52px;
}
.ht-stack { display: inline-flex; align-items: center; justify-content: center; }
.ht-stack img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-left: -10px;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.15));
}
.ht-stack img:first-child { margin-left: 0; }
.ht-lab { display: block; font-size: 12px; font-weight: 650; margin-top: 2px; }
.ht-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 8px 0 12px;
}
.ht-xhs p, .ht-atom p, .ht-paper p { margin: 6px 0 10px; font-size: 17px; line-height: 1.35; color: var(--ink); }
.ht-ilab { display: inline-flex; flex-direction: column; align-items: center; }
.ht-ilab .ht-lab { order: -1; margin: 0 0 3px; font-size: 11px; color: var(--muted); font-weight: 590; }
.ht-qty {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 20px; font-weight: 800;
}
.ht-line {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px;
  margin: 6px 0 10px; font-size: 16px;
}
.ht-dish {
  background: var(--bg);
  border-radius: var(--radius-nested);
  padding: 12px 12px 14px;
  margin: 0 0 12px;
}
.ht-dish h4 { margin: 0 0 8px; font-size: 20px; color: var(--ink); font-weight: 700; }
.ht-dish-mid { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ht-dish-mid .dish-art { width: 72px; height: 72px; object-fit: contain; }
.ht-ringcol { display: flex; flex-direction: column; align-items: center; min-width: 52px; }
.ht-ringcol span { margin-top: 4px; font-size: 16px; font-weight: 800; }
.ht-ring {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 40%, #4a3420 0%, #1a120c 75%);
  box-shadow:
    inset 0 0 0 2px #e8c75a,
    inset 0 0 0 5px #6b4a22,
    inset 0 0 0 6px #2a1a0c,
    0 1px 3px rgba(0,0,0,.3);
}
.ht-ring img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,.45));
}
.ht-ring.hp { background: radial-gradient(circle at 50% 40%, #6a241c 0%, #1a0c0a 78%); }
.ht-ring.sa { background: radial-gradient(circle at 50% 40%, #3e2a4a 0%, #120c16 78%); }
.ht-ring.hg { background: radial-gradient(circle at 50% 40%, #5c4414 0%, #161008 78%); }
.ht-time {
  margin-left: auto;
  font-size: 16px; font-weight: 700; line-height: 1.35;
  display: flex; flex-direction: column; gap: 4px;
}
.ht-time span { display: flex; align-items: center; gap: 6px; }
.ht-time img { width: 28px; height: 28px; }
.ht-slots { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.ht-slotrow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  background: var(--card);
  padding: 6px;
  border-radius: var(--radius-nested);
  flex: 1;
  min-width: 168px;
}
.ht-slotrow .ht-stack img { width: 42px; height: 42px; margin: 0; }
.ht-slotrow .ht-lab { display: none; }
.ht-seq { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 8px 0 12px; }
.ht-warn { color: var(--accent); font-weight: 590; }
.ht-atom { max-width: 520px; }
.bp, .ht-atom { scroll-margin-top: 180px; }
.bp-grid > .bp + .bp,
.bp-grid > .ht-atom + .ht-atom { margin-top: 0; }
.ht-kite {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 14px 0 16px;
  flex-wrap: wrap;
}
.ht-kite-box {
  width: 108px;
  height: 108px;
  border-radius: var(--radius-group);
  background: var(--fill);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.ht-kite-box small {
  font-size: 13px;
  color: var(--accent);
  font-weight: 590;
}
.ht-kite-box b {
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.ht-pager { flex-wrap: wrap; }
.ht-next { font-size: 15px; margin: 12px 0 8px; }
.ht-next .chip { margin: 4px 4px 0 0; }

.bp-pack { width: 100%; margin: 0 0 16px; }
.bp-pack > .bp-brand { margin: 4px 0 16px; }
.bp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  width: 100%;
  align-items: stretch;
}
.bp-grid > .bp,
.bp-grid > .ht-atom {
  max-width: none;
  width: 100%;
  margin: 0;
}
.bp-sec {
  margin: 8px 0 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}
@media (min-width: 800px) {
  .bp-grid {
    grid-template-columns: 1fr 1fr;
  }
  .bp-grid > .bp-span,
  .bp-grid > .bp-sec {
    grid-column: 1 / -1;
  }
}
.bp {
  --bp-gold: #c98900;
  --bp-card: #f2f2f7;
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: none;
  margin: 0 auto 16px;
  padding: 20px 18px 18px;
  border-radius: var(--radius-group);
  color: var(--ink);
  overflow: hidden;
  overflow-x: hidden;
  background: var(--card);
  border: 0.5px solid var(--line);
  box-shadow: var(--shadow);
  font-size: 14px;
  line-height: 1.45;
}
.bp > * { position: relative; z-index: 1; }
.bp-trees { display: none; }
.bp button {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  min-width: 0;
  overflow: hidden;
}
.bp img { min-width: 0; max-width: 100%; }
.bp-brand {
  margin: 2px 0 14px;
  text-align: center;
  font-size: clamp(24px, 7.4vw, 30px);
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1.15;
  white-space: nowrap;
  color: var(--ink);
}
.bp-brand em {
  color: var(--bp-gold);
  font-style: normal;
}
.bp-sub {
  margin: 0 0 8px 2px;
  font-size: 16px;
  font-weight: 800;
  color: var(--bp-gold);
}
.bp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.98fr);
  gap: 6px 8px;
  align-items: stretch;
  background: var(--bp-card);
  border-radius: 16px;
  padding: 12px 10px 10px 12px;
  margin-bottom: 8px;
  min-height: 196px;
  min-width: 0;
}
.bp-hero-l { min-width: 0; }
.bp-hname {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 800;
  color: var(--bp-gold);
  letter-spacing: 0.01em;
}
.bp-hero img.portrait {
  width: 100%;
  height: auto;
  max-height: 210px;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  object-position: center right;
  align-self: center;
  justify-self: end;
}
.bp-stats {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink);
}
.bp-stat { margin: 0; word-break: keep-all; }
.bp-stat i {
  display: inline-block;
  min-width: 4.4em;
  font-style: normal;
  color: var(--muted);
  font-weight: 500;
}
.bp-stat.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 6px;
}
.bp-drops {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  align-items: flex-start;
}
.bp-drops > i {
  font-style: normal;
  color: var(--muted);
  min-width: 3.2em;
  padding-top: 8px;
  font-size: 12px;
}
.bp-drop-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
}
.bp-drop {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  color: var(--ink);
  font-size: 12px;
}
.bp-drop img { width: 32px; height: 32px; object-fit: contain; }
.bp-drop-note {
  margin: 4px 0 0;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}
.bp-bar {
  background: var(--bp-card);
  border-radius: 14px;
  padding: 9px 12px 8px;
  margin: 6px 0;
  color: var(--ink);
}
.bp-bar p { margin: 0; }
.bp-bar b,
.bp-bar em,
.bp-drop-note em {
  color: var(--bp-gold);
  font-style: normal;
  font-weight: 700;
}
.bp-bar.prep {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 10px;
  align-items: center;
  min-width: 0;
}
.bp-ids {
  display: flex;
  flex-wrap: nowrap;
  gap: 2px;
  align-items: center;
  justify-content: flex-end;
}
.bp-ids button {
  width: 38px;
  height: 38px;
  min-width: 38px;
  max-width: 38px;
  overflow: hidden;
}
.bp-ids img { width: 38px; height: 38px; max-width: 38px; object-fit: contain; }
.bp-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 10px;
  align-items: end;
  margin-top: 10px;
  padding: 2px 2px 0;
  min-width: 0;
}
.bp-food-lab {
  font-size: 12px;
  margin-bottom: 4px;
  color: var(--ink);
}
.bp-food-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
}
.bp-food-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
}
.bp-food-item button {
  width: 32px;
  height: 32px;
  min-width: 32px;
  overflow: hidden;
}
.bp-food-item img { width: 32px; height: 32px; max-width: 32px; object-fit: contain; }
.bp-why {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 64px;
  gap: 6px;
  align-items: center;
  min-width: 0;
}
.bp-why-drop {
  width: 32px;
  height: 32px;
  min-width: 32px;
  overflow: hidden;
}
.bp-why-drop img { width: 32px; height: 32px; max-width: 32px; object-fit: contain; }
.bp-why-t {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  color: var(--ink);
  min-width: 0;
}
.bp-why-t strong {
  color: var(--bp-gold);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
}
.bp-why-prod {
  width: 64px;
  height: 64px;
  min-width: 64px;
  max-width: 64px;
  overflow: hidden;
}
.bp-why-prod img,
.bp-why img.prod {
  width: 64px;
  height: 64px;
  max-width: 64px;
  object-fit: contain;
}
.bp-craft {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) max-content;
  gap: 6px 8px;
  align-items: center;
  background: var(--bp-card);
  border-radius: 14px;
  padding: 6px 10px;
  margin: 6px 0;
  text-align: left;
  min-height: 58px;
  min-width: 0;
}
.bp-craft img.prod { width: 48px; height: 48px; max-width: 48px; object-fit: contain; }
.bp-ct { min-width: 0; }
.bp-cn { margin: 0; font-size: 12px; line-height: 1.35; color: var(--ink); overflow-wrap: break-word; }
.bp-cn b { color: var(--bp-gold); font-size: 14px; font-weight: 800; margin-right: 4px; }
.bp-cw { margin: 2px 0 0; font-size: 11px; color: var(--muted); line-height: 1.35; }
.bp-chain {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}
.bp-chain > span { color: var(--tertiary); font-size: 14px; font-weight: 700; }
.bp-tile {
  width: 32px;
  height: 32px;
  min-width: 32px;
  max-width: 32px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 0.5px solid var(--line);
  border-radius: 8px;
  flex: 0 0 32px;
}
.bp-tile img { width: 26px; height: 26px; max-width: 26px; object-fit: contain; }
.bp-tip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px;
  gap: 8px 10px;
  align-items: center;
  background: var(--bp-card);
  border-radius: 16px;
  padding: 12px 12px 12px 14px;
  margin: 8px 0;
  min-width: 0;
}
.bp-tip h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.25;
}
.bp-tip h3 em {
  color: var(--bp-gold);
  font-style: normal;
}
.bp-tip p { margin: 0; color: var(--ink); font-size: 13px; line-height: 1.45; }
.bp-tip-art {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  overflow: hidden;
}
.bp-tip-art img { width: 80px; height: 80px; max-width: 80px; object-fit: contain; }
.bp-tip-art.copies {
  display: grid;
  grid-template-columns: repeat(3, 28px);
  gap: 2px;
  justify-content: end;
}
.bp-tip-art.copies img { width: 28px; height: 28px; }
.bp-recap { margin: 14px 4px 8px; }
.bp-recap h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  color: var(--bp-gold);
}
.bp-recap p { margin: 0 0 6px; color: var(--ink); font-size: 14px; line-height: 1.45; }
.bp-recap b { color: var(--bp-gold); font-weight: 800; margin-right: 4px; }
.bp-lootrow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  text-align: center;
  margin-top: 12px;
  font-size: 11px;
  color: var(--ink);
  min-width: 0;
}
.bp-lootrow button {
  width: 48px;
  height: 48px;
  min-width: 0;
  max-width: 48px;
  overflow: hidden;
  margin: 0 auto;
  display: block;
}
.bp-lootrow img { width: 48px; height: 48px; max-width: 48px; object-fit: contain; display: block; margin: 0 auto 4px; }
.bp-lootrow span { display: block; line-height: 1.25; }
.results:has(> .bp) { align-items: stretch; }
.farm-cap { margin: 0 0 10px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.farm-cap b { color: var(--bp-gold); }
.farm-tools { margin: 8px 0 10px; flex-wrap: wrap; }
.farm-nutri { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.farm-birds {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin: 8px 0 14px;
  justify-content: flex-start;
}
.farm-birds > div { text-align: center; font-size: 12px; color: var(--muted); }
.farm-birds img { width: 48px; height: 48px; object-fit: contain; display: block; margin: 0 auto 4px; }
.farm-birds button { width: 48px; height: 48px; max-width: 48px; overflow: hidden; display: block; margin: 0 auto; }
.farm-grow {
  display: grid;
  grid-template-columns: minmax(140px, 0.9fr) minmax(0, 1.4fr);
  gap: 8px 12px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 0.5px solid var(--line);
}
.farm-grow-seed { display: flex; align-items: center; gap: 8px; min-width: 0; }
.farm-grow-seed strong { display: block; font-size: 14px; }
.farm-grow-seed small { color: var(--muted); font-size: 12px; }
.farm-grow-seed img, .farm-grow-seed button { width: 40px; height: 40px; max-width: 40px; }
.farm-grow-seq { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.farm-grow-seq span { color: var(--tertiary); font-weight: 700; }
.farm-grow-seq img, .farm-grow-seq button { width: 40px; height: 40px; max-width: 40px; overflow: hidden; }
.farm-season-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink);
}
.farm-season-legend img, .farm-season-legend button {
  width: 28px; height: 28px; max-width: 28px; vertical-align: middle;
}
.farm-table-wrap { overflow-x: auto; margin-top: 8px; }
.farm-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
  min-width: 720px;
}
.farm-table th, .farm-table td {
  border: 0.5px solid var(--line);
  padding: 8px 6px;
  vertical-align: top;
  background: var(--card);
}
.farm-table thead th { background: var(--bg); font-weight: 700; text-align: center; }
.farm-table tbody th {
  background: var(--bg);
  font-weight: 700;
  white-space: nowrap;
  width: 3.5em;
}
.farm-combo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  margin: 0 0 8px;
}
.farm-combo i { font-style: normal; color: var(--muted); padding: 0 2px; }
.farm-combo b { color: var(--bp-gold); font-size: 11px; }
.farm-combo img, .farm-combo button { width: 28px; height: 28px; max-width: 28px; overflow: hidden; }
.farm-empty { color: var(--tertiary); }
.ht-split {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px 12px;
  align-items: start;
  margin: 10px 0 14px;
  text-align: left;
}
.ht-split-art { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.ht-split-copy { font-size: 14px; line-height: 1.5; }
.ht-split-copy p { margin: 0 0 8px; }
.ht-flow { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin: 6px 0; }
.ht-arrow { font-size: 18px; color: var(--accent); font-weight: 700; }
.ht-cols { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.ht-cols h4 { margin: 0 0 6px; font-size: 13px; color: var(--muted); text-align: left; font-weight: 590; }
.ht-tech {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 8px 10px;
  align-items: center;
  margin: 10px 0 14px;
}
.ht-tech .ht-row { grid-column: 1 / -1; }
.ht-tech .copy { font-size: 15px; line-height: 1.4; }
.ht-pager {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 8px 0 16px;
}
.ht-pager button {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--fill);
  color: var(--accent);
  font: inherit;
  font-weight: 590;
  cursor: pointer;
}
.ht-hint { text-align: center; color: var(--muted); font-size: 14px; margin: 0 0 10px; }
.ht-lesson {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 6px 0 12px;
}
.ht-cap {
  flex: 1;
  min-width: 160px;
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
  text-align: left;
  color: var(--muted);
}
.ht-named {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
  text-align: left;
}
.ht-named p { margin: 0; font-size: 15px; line-height: 1.35; flex: 1; color: var(--ink); }
.ht-steps {
  margin: 6px 0 12px;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.55;
  text-align: left;
}
.ht-steps li { margin: 4px 0; }
.ht-block { margin: 12px 0 16px; text-align: left; }
.ht-block p { text-align: left; }
.ht-mini { font-size: 12px; color: #5a4636; }
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 12px;
  padding: 4px 0 24px;
}
.guide-tile {
  background: var(--card);
  border: 0.5px solid var(--line);
  border-radius: var(--radius-group);
  padding: 14px 12px 12px;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
  font: inherit;
  min-height: 168px;
  box-shadow: var(--shadow);
}
.guide-tile:active { transform: scale(0.98); }
.guide-tile img.cover {
  width: 64px; height: 64px; object-fit: contain; display: block; margin: 0 auto 6px;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.2));
}
.guide-tile h3 {
  margin: 0 0 4px; font-size: 15px; font-weight: 800; line-height: 1.25;
}
.guide-tile p {
  margin: 0; font-size: 13px; line-height: 1.35; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.guide-tile .mini { display: flex; justify-content: center; gap: 2px; margin-top: 6px; }
.guide-tile .mini img { width: 28px; height: 28px; object-fit: contain; }
.play-tabs { margin-bottom: 10px; }
.play-pic {
  background: var(--card);
  border: 0.5px solid var(--line);
  border-radius: var(--radius-group);
  padding: 14px 12px;
  margin-bottom: 12px;
}
.guide-txt { margin-top: 8px; }
.guide-txt h3 { margin: 16px 0 8px; font-size: 18px; }
.guide-txt summary {
  cursor: pointer;
  font-size: 15px;
  color: var(--accent);
  padding: 8px 0;
}

@media (max-width: 720px) {
  .parchment { padding: 8px 16px 72px; }
  .top { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
  .bp {
    max-width: none;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  .frame, .item { width: 80px; }
  .frame { width: 64px; height: 64px; }
  .frame img { width: 52px; height: 52px; }
  h1 { font-size: 22px; }
  .chip, #modFilter { font-size: 14px; }
  .ht-cols { grid-template-columns: 1fr; }
  .ht-paper, .ht-xhs { max-width: 100%; }
  .ht-split { grid-template-columns: 1fr; }
  .ht-split-art { justify-content: flex-start; }
  .ht-slots { flex-direction: column; }
  .ht-dish-mid { justify-content: flex-start; }
  .ht-time { margin-left: 0; width: 100%; flex-direction: row; gap: 16px; }
  .guide-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .guide-tile { min-height: 148px; padding: 10px 8px; }
}

.mod-source-badge{display:inline-block;margin:4px 0 8px;padding:4px 8px;border-radius:999px;background:#eee3c8;color:#664c22;font-size:.86em}.top-recipe{border:2px solid #c49a5b}.item-detail{background:#fffdf5}

/* v64: rimuru 逆向 - 分类徽章/内部名/内联图标/解锁条件 */
.head-tags { display: flex; align-items: center; gap: 8px; margin: 2px 0 8px; flex-wrap: wrap; }
.kind-badge { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--accent); color: #fff; letter-spacing: 1px; }
.prefab-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; color: var(--muted); background: var(--fill); padding: 3px 8px; border-radius: 6px; }
.mini-ico { width: 20px; height: 20px; vertical-align: -4px; margin-right: 6px; border-radius: 4px; }
#unlock { border-left: 3px solid var(--accent); }
#unlock h3 { color: var(--accent-ink); }
