@font-face {
  font-family: Fraunces;
  src: url("/_a/field-guide-fraunces.48282a415e.woff2") format("woff2");
  font-style: normal;
  font-weight: 600 750;
  font-display: swap;
}

/* Semantic theme tokens shared by all GeFei templates. */
:root {
  color-scheme: light;
  --background: #bfe1e1;
  --foreground: #1b392a;
  --card: #fff4dc;
  --card-foreground: var(--foreground);
  --popover: #fff6e0;
  --popover-foreground: var(--foreground);
  --primary: #184631;
  --primary-foreground: #fff9e9;
  --secondary: #e3ebcb;
  --secondary-foreground: #294432;
  --muted: #f4e5c1;
  --muted-foreground: #455745;
  --accent: #ffd259;
  --accent-foreground: #3e351a;
  --border: #cfbc91;
  --input: #768562;
  --control-edge: #86966f;
  --ring: #355d37;

  --rule: #d8caa9;
  --scrim: #123c336c;
  --radius: 12px;
  --fiber: url("https://img.askpetitplanet.com/s_1g532j3e690u08/paint-fiber.74b4fe61dd.webp");
  --stock: url("https://img.askpetitplanet.com/s_1g532j3e690u08/paint-stock.e48c18df53.webp");
  --paint-paper: url("https://img.askpetitplanet.com/s_1g532j3e690u08/paint-paper.c8902100e0.webp");
  --paint-note: url("https://img.askpetitplanet.com/s_1g532j3e690u08/paint-note.2d17734432.webp");
  --paint-pocket: url("https://img.askpetitplanet.com/s_1g532j3e690u08/paint-pocket.288ad09db9.webp");
  --paint-hero: url("https://img.askpetitplanet.com/s_1g532j3e690u08/paint-hero.019c2ea3b3.webp");
  --paint-ink: url("https://img.askpetitplanet.com/s_1g532j3e690u08/paint-ink.84a52346d5.webp");
  --paint-field: url("https://img.askpetitplanet.com/s_1g532j3e690u08/paint-field.601ab443d6.webp");
  --paint-field-focus: url("https://img.askpetitplanet.com/s_1g532j3e690u08/paint-field-focus.c130ca73bf.webp");
  --paint-leaf: url("https://img.askpetitplanet.com/s_1g532j3e690u08/paint-leaf.ed8967aff7.webp");
  --paint-grid-heading: url("https://img.askpetitplanet.com/s_1g532j3e690u08/paint-grid-heading.0937b8f0cc.webp");
  --paint-grid: url("https://img.askpetitplanet.com/s_1g532j3e690u08/paint-grid.c7038215f7.webp");
  --paint-clay: url("https://img.askpetitplanet.com/s_1g532j3e690u08/paint-clay.2743ba54fd.webp");
  --paint-highlight: url("https://img.askpetitplanet.com/s_1g532j3e690u08/paint-highlight.11dc0699a6.webp");
  --paint-sweep: url("https://img.askpetitplanet.com/s_1g532j3e690u08/paint-sweep.ec0dd5c76e.png");
  --paper-rim: 29px;
  --brush-light: #f8d476;
  --brush-green: #cddeae;
  --brush-blue: #abd8d9;
  --brush-clay: #e6aa85;

  --stamps: url("https://img.askpetitplanet.com/s_1g532j3e690u08/field-guide-stamps.33b165aefb.webp");
  --display: Fraunces, Georgia, serif;
  --body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --heading-tracking: -.025em;
  --page-title: clamp(2.15rem, 4.5vw, 4rem);
  --section-title: clamp(1.4rem, 2.7vw, 2rem);
  --page-width: 1160px;
  --gutter: clamp(14px, 4vw, 48px);
}

:lang(zh) {
  --display: "Songti SC", "Noto Serif CJK SC", "Noto Serif SC", SimSun, serif;
  --heading-tracking: 0;
}
:lang(ja) {
  --display: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif CJK JP", serif;
  --heading-tracking: 0;
}
:lang(ko) {
  --display: "Nanum Myeongjo", "AppleMyungjo", "Noto Serif CJK KR", "Noto Serif KR", Batang, serif;
  --heading-tracking: 0;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  color: var(--foreground);
  background-color: var(--background);
  background-image: var(--fiber);
  background-position: center top;
  background-size: 1080px 720px;
  font: 16px/1.65 var(--body);
}
main { flex: 1; min-width: 0; }
a { color: inherit; }
button, input { font: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-foreground); }

.wrap {
  width: min(var(--page-width), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}
.visually-hidden, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus {
  position: fixed;
  z-index: 5;
  inset: 8px auto auto 8px;
  padding: 8px 14px;
  background: var(--card);
  border-radius: var(--radius);
}

h1, h2, h3 {
  color: var(--primary);
  font-family: var(--display);
  font-weight: 750;
  letter-spacing: var(--heading-tracking);
  line-height: 1.13;
  overflow-wrap: anywhere;
}
h1 { font-size: var(--page-title); text-wrap: pretty; }
:lang(ja) :is(h1, h2, h3) { word-break: auto-phrase; }
:is(:lang(zh), :lang(ja), :lang(ko)) :is(h1, h2) { font-weight: 800; -webkit-text-stroke: .024em currentColor; }
:lang(ja) .article-title { -webkit-text-stroke-width: .034em; }
:lang(en) :is(h1, h2, h3, .wordmark, .foot-title) { font-variation-settings: "opsz" 20; }
h2 { font-size: var(--section-title); }

/* Paper surfaces and native controls. */
.paper {
  position: relative;
  isolation: isolate;
  color: var(--card-foreground);
}
.paper::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  border: 8px solid transparent;
  border-image: var(--sheet, var(--paint-paper)) 71 fill / var(--paper-rim) stretch;
  content: "";
}
.paper::after {
  position: absolute;
  z-index: -1;
  inset: 4px 6px;
  pointer-events: none;
  background: var(--stock) var(--grain-origin, 0 0) / var(--grain-size, 540px 360px);
  mask-image: linear-gradient(to right, transparent, #000 30px, #000 calc(100% - 30px), transparent),
    linear-gradient(transparent, #000 min(18px, 25%), #000 max(calc(100% - 20px), 75%), transparent);
  mask-composite: intersect;
  mix-blend-mode: multiply;
  opacity: .74;
  content: "";
}
.hero-copy::after { inset: clamp(16px, 3vw, 40px); }
.paper--strip { --paper-rim: 33px; }
.paper--note { --sheet: var(--paint-note); --paper-rim: 29px; --grain-origin: right center; --grain-size: 450px 300px; }
.paper--pocket { --sheet: var(--paint-pocket); --paper-rim: 23px; --grain-origin: center bottom; }
.paper--long { --paper-rim: 35px; }
.paper--long::before {
  border-image: var(--paint-leaf) 118 fill / var(--paper-rim) stretch;
}
.control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid var(--control-edge);
  border-radius: 20px 17px 22px 16px / 17px 22px 15px 21px;
  color: var(--primary);
  background: var(--stock) 0 0 / 486px 324px, var(--popover);
  background-blend-mode: multiply;
  font-size: .94rem;
  font-weight: 650;
  line-height: 1.25;
  text-decoration: none;
}
.control:hover { border-color: var(--input); background-color: var(--secondary); }
button.control, summary.control { cursor: pointer; }
:is(.control--primary, .paint-field, a.entry-row, .search-results a) {
  position: relative;
  isolation: isolate;
}
:is(.control--primary, .paint-field)::before,
:is(a.entry-row, .search-results a):is(:hover, :focus-visible)::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  border: 1px solid transparent;
  border-image: var(--wash, var(--paint-note)) 71 fill / 20px stretch;
  pointer-events: none;
  content: "";
}
.control--primary {
  --wash: var(--paint-ink);
  border-color: transparent;
  border-radius: 22px 17px 21px 16px / 17px 23px 16px 23px;
  background: transparent;
  color: var(--primary-foreground);
}
.control--primary:hover { border-color: transparent; background: transparent; }
.control--primary:hover::before { filter: brightness(1.22); }
.control--primary kbd { opacity: 1; }
.paint-field {
  --wash: var(--paint-field);
  color: var(--primary);
}
.paint-field::before {
  border-image-slice: 118 fill;
  border-image-width: 18px;
}
.paint-field::after {
  position: absolute;
  z-index: -1;
  inset: 5px 8px;
  border-radius: 17px 14px 18px 16px;
  background: var(--stock) center / 486px 324px;
  mix-blend-mode: multiply;
  pointer-events: none;
  opacity: .52;
  content: "";
}
.paint-field .search-icon { position: absolute; inset: 16px auto auto 13px; pointer-events: none; }
.paint-field:focus-within { --wash: var(--paint-field-focus); }
.paint-field:focus-within .search-icon { color: #704624; }
.control--input {
  display: block;
  width: 100%;
  padding: 9px 12px 9px 44px;
  border-color: transparent;
  color: var(--foreground);
  background: transparent;
  font-size: 1rem;
  font-weight: 400;
}
.control--input:hover { border-color: transparent; background: transparent; }
.control--input:focus-visible { outline: 2px solid transparent; outline-offset: 2px; }
.control--input::placeholder { color: #636855; opacity: 1; }
.tag {
  position: relative;
  isolation: isolate;
  display: inline-block;
  padding: 5px 12px;
  color: var(--accent-foreground);
  font-size: .83rem;
  font-weight: 650;
}
.search-icon {
  position: relative;
  flex: none;
  width: .85em;
  height: .85em;
  margin-inline-end: .15em;
  border: 1.7px solid currentColor;
  border-radius: 50%;
}
.search-icon::after {
  position: absolute;
  inset: auto -.29em -.14em auto;
  width: .4em;
  height: 1.7px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(47deg);
  content: "";
}
.control kbd {
  display: grid;
  flex: 0 0 22px;
  place-items: center;
  width: 22px;
  height: 22px;
  font: .83rem/1 var(--body);
  opacity: .83;
}

.site-header { position: relative; z-index: 2; padding-top: 14px; }
.topbar {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 25px);
  min-height: 63px;
  padding: 5px clamp(10px, 2vw, 22px);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  min-width: 0;
  color: var(--primary);
  font: 750 clamp(1.05rem, 2vw, 1.32rem)/1.15 var(--display);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark .gf-site-icon { flex: none; width: 34px; height: 34px; }
.main-nav { display: flex; align-items: center; gap: clamp(7px, 1.8vw, 20px); margin-inline-start: auto; }
.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 3px;
  color: var(--primary);
  font-size: .93rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav [aria-current] {
  text-decoration: underline;
  text-decoration-color: #9a7831;
  text-underline-offset: 7px;
}
.small-search { white-space: nowrap; }
.language-menu { position: relative; flex: none; }
.language-menu :is(summary, .language-trigger) { list-style: none; white-space: nowrap; }
.language-menu summary::-webkit-details-marker { display: none; }
.language-menu[open] summary, .language-trigger[data-popup-open] { background: var(--secondary); }
details.language-menu .language-options {
  position: absolute;
  inset: 100% 0 auto auto;
  margin-top: 6px;
}
.language-positioner { z-index: 8; }
.language-suggestion-positioner { z-index: 7; }
.language-suggestion {
  width: min(19rem, calc(100vw - 26px));
  padding: 14px;
  border: 1px solid var(--control-edge);
  border-radius: 16px 12px 17px 13px;
  background: var(--stock) 0 0 / 486px 324px, var(--popover);
  background-blend-mode: multiply;
  color: var(--popover-foreground);
  box-shadow: 0 6px 18px #254c362b;
  transition: opacity .15s ease-out, translate .15s ease-out;
}
.language-suggestion:is([data-starting-style], [data-ending-style]) { opacity: 0; translate: 0 -4px; }
.language-suggestion-title {
  margin: 0;
  font: 750 1rem/1.25 var(--body);
}
.language-suggestion-reason { margin: 4px 0 12px; font-size: .875rem; }
.language-suggestion-actions { display: grid; gap: 6px; }
.language-suggestion-actions .control { text-align: center; }
@media (prefers-reduced-motion: reduce) {
  .language-suggestion { transition: none; }
}
.language-options {
  min-width: 142px;
  margin: 0;
  padding: 9px;
  filter: drop-shadow(0 5px 7px #254c362b);
  list-style: none;
}
.language-options a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 10px;
  border-radius: var(--radius);
  font-size: .92rem;
  text-decoration: none;
  white-space: nowrap;
}
.language-options a:hover, .language-options a[aria-current="page"] { background: var(--secondary); }

.home { padding-top: clamp(21px, 4vw, 46px); }
.hero {
  display: grid;
  grid-template: "copy art" auto / minmax(0, .82fr) minmax(0, 1fr);
  gap: clamp(13px, 2vw, 27px);
  align-items: center;
}
.hero-copy {
  --sheet: var(--paint-hero);
  --paper-rim: clamp(43px, 7vw, 91px);
  grid-area: copy;
  padding: clamp(25px, 4vw, 50px) clamp(23px, 4vw, 52px) clamp(26px, 3vw, 40px);
}
.hero h1 {
  margin: 0;
  font-size: clamp(2.75rem, 5.7vw, 5.35rem);
  letter-spacing: var(--heading-tracking);
  line-height: .96;
}
/* One dry brush mask, recolored for emphasis throughout the site. */
.paint-mark, .tag {
  position: relative;
  isolation: isolate;
}
.paint-mark::before, .tag::before, .section-head h2::before,
.entry-group h2::before, .prose h2::before, .gift-codes h2::before {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  background: var(--stroke, var(--brush-light));
  mask: var(--paint-sweep) center / 100% 100% no-repeat;
  content: "";
}
.paint-mark {
  display: inline;
}
.paint-mark::before {
  inset: auto auto -.12em -.18em;
  width: calc(100% + .32em);
  height: .5em;
  transform: rotate(-1.3deg);
}
.tag::before { inset: -2px -5px -1px; --stroke: var(--accent); }
.hero h1 .paint-mark { display: inline-block; --stroke: var(--accent); }
.hero h1 .paint-mark::before { inset: auto auto -.1em -.12em; width: min(100%, 4.5em); height: .46em; }
.hero-dek {
  max-width: 39ch;
  margin: 18px 0 17px;
  color: var(--muted-foreground);
  font-size: clamp(.95rem, 1.5vw, 1.08rem);
  line-height: 1.58;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-actions .control { min-height: 46px; }
.hero-search { max-width: 100%; }
.hero-search kbd, .index-search kbd { margin-inline-start: auto; }
.hero-browse {
  display: table;
  margin-top: 13px;
  color: var(--primary);
  font-size: .91rem;
  font-weight: 700;
  text-underline-offset: 4px;
}
.hero-illustration {
  grid-area: art;
  display: grid;
  padding: clamp(6px, 1.2vw, 14px);
}
.hero-illustration img, .orb {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 24px 17px 26px 15px / 18px 24px 16px 26px;
}
.hero-illustration--painted {
  place-items: center;
  padding: 0;
}
.hero-illustration--painted img {
  max-height: 515px;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
}
.orb { background: radial-gradient(circle at 58% 47%, var(--accent) 3%, var(--secondary) 18%, var(--primary) 60%); }

.home-categories, .home-guides { margin-top: clamp(27px, 4vw, 46px); }
.home-guides { margin-bottom: clamp(32px, 6vw, 67px); }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 14px;
  margin-bottom: 13px;
}
.section-head h2, .entry-group h2 { margin: 0; }
.section-head h2, .entry-group h2, .prose h2, .gift-codes h2 {
  position: relative;
  isolation: isolate;
}
.section-head h2::before {
  inset: auto -.09em -.24em -.22em;
  height: .43em;
  transform: rotate(-2deg);
}
.entry-group h2::before, .prose h2::before, .gift-codes h2::before {
  inset: auto auto -.13em -.13em;
  width: 1.15em;
  height: .4em;
  --stroke: var(--brush-green);
  transform: rotate(-9deg);
}
.entry-group h2::before {
  --stroke: var(--brush-light);
  width: calc(100% + .19em);
  transform: rotate(-1.5deg);
}
.prose h2::before {
  width: calc(100% + .22em);
  height: .48em;
  inset-block-end: -.16em;
  transform: rotate(-1.4deg);
}
.prose h2:nth-of-type(even)::before {
  --stroke: var(--brush-blue);
}
.prose h2:nth-of-type(odd)::before { --stroke: var(--brush-clay); }
.section-head > a {
  color: var(--primary);
  font-size: .89rem;
  font-weight: 700;
  text-underline-offset: 4px;
}
.category-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.category {
  display: flex;
  flex-direction: column;
  align-items: center;
  --paper-rim: 38px;
  padding: 17px 13px 18px;
  text-align: center;
  text-decoration: none;
}
.category:hover::before { filter: saturate(1.25) brightness(1.02); }
.category:nth-child(even) { --sheet: var(--paint-hero); --paper-rim: 43px; }
.category:nth-child(3n) { --paper-rim: 40px; }
.category:nth-child(5n) { --paper-rim: 31px; }
.category-painting {
  align-self: center;
  width: min(100%, 204px);
  height: clamp(84px, 12vw, 166px);
  object-fit: contain;
}
.category-glyph {
  display: grid;
  place-items: center;
  width: clamp(75px, 8.9vw, 117px);
  height: clamp(75px, 8.9vw, 117px);
  color: transparent;
  background: var(--stamps) 0 0 / 200% 200% no-repeat;
}
.category.water .category-glyph { background-position: 100% 100%; }
.category.clay .category-glyph { background-position: 0 100%; }
.category.insect .category-glyph {
  color: var(--primary);
  background:
    radial-gradient(ellipse at 51% 53%, var(--accent) 0 44%, transparent 47%),
    radial-gradient(ellipse at 54% 60%, var(--accent) 0 33%, transparent 37%);
  font: 2.1rem/1 var(--display);
}
.category .category-glyph--game { background: none; }
.cooking-stamp {
  position: relative;
  isolation: isolate;
  align-content: start;
  padding-top: 12%;
  color: #94553a;
  background: none;
  font: 1.55rem/1 var(--display);
}
.cooking-stamp::before {
  position: absolute;
  z-index: -1;
  inset: 21% 7% 10%;
  background: #f5cf74;
  mask: var(--paint-sweep) center / 100% 100% no-repeat;
  transform: rotate(-16deg);
  content: "";
}
.cooking-stamp::after {
  position: absolute;
  inset: 43% 12% 23%;
  border: 2px solid #a05e37;
  border-radius: 15% 19% 55% 52% / 18% 18% 74% 75%;
  background: linear-gradient(#ffdc93 0 18%, #c87740 22%, #b86737 78%, #a55935);
  background-image: var(--fiber), linear-gradient(#ffdc93 0 18%, #c87740 22%, #b86737 78%, #a55935);
  background-blend-mode: soft-light, normal;
  transform: rotate(-5deg);
  content: "";
}
.category-glyph--game img { width: 100%; height: 100%; object-fit: contain; }
.category h3 {
  margin: 8px 0 5px;
  font-size: clamp(1.08rem, 1.85vw, 1.52rem);
  text-wrap: balance;
}
.category p { margin: 0; color: var(--muted-foreground); font-size: .87rem; line-height: 1.45; text-wrap: balance; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 9px;
  margin: 24px 0 15px;
  color: var(--muted-foreground);
  font-size: .84rem;
}
.crumbs a { text-underline-offset: 3px; }
.index-page {
  --page-width: 980px;
  padding-bottom: clamp(34px, 6vw, 66px);
}
.index-heading {
  margin-bottom: 21px;
  padding: clamp(19px, 3vw, 33px);
}
:is(.index-heading, .article-heading):has(> .intro-painting) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(51px, 12vw, 136px);
  align-items: center;
  gap: clamp(6px, 2vw, 24px);
}
.intro-painting { width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: contain; }
.index-heading h1, .article-heading h1 { margin: 0; }
.index-heading p, .article-dek {
  max-width: 62ch;
  margin: 12px 0 0;
  color: var(--muted-foreground);
  font-size: clamp(1rem, 1.8vw, 1.16rem);
  line-height: 1.6;
}
.index-search { width: min(100%, 375px); justify-content: flex-start; margin-bottom: 25px; }
.wiki-directory-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 27px;
}
.wiki-directory-nav .control { padding-inline: 13px; }
.wiki-directory-group h2 a { display: inline-flex; align-items: baseline; gap: .35em; text-underline-offset: .16em; }
.wiki-directory-group h2 a span { font-size: .58em; }
.wiki-directory-entries {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 198px), 1fr));
  grid-auto-rows: 1fr;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.wiki-directory-card {
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: center;
  align-items: center;
  gap: 8px;
  height: 100%;
  min-height: clamp(124px, 14vw, 152px);
  padding: 10px 12px 12px;
  border: 1px solid var(--control-edge);
  border-radius: 10px;
  background: var(--stock) center / 486px 324px, var(--card);
  background-blend-mode: multiply;
  color: var(--primary);
  font-size: .875rem;
  font-weight: 650;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.wiki-directory-card:is(:hover, :focus-visible) {
  border-color: var(--input);
  background-color: var(--secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.wiki-directory-card img {
  width: min(100%, 112px);
  height: clamp(76px, 9vw, 96px);
  object-fit: contain;
}
@media (max-width: 560px) {
  .wiki-directory-entries { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
}
.collection-featured { margin-top: 14px; }
.collection-filter { max-width: 32rem; margin: 22px 0 25px; }
.collection-filter label { display: block; margin-bottom: 5px; font-weight: 700; }
.collection-empty { margin-bottom: 0; color: var(--muted-foreground); }
.entry-group { margin: 0 0 32px; scroll-margin-top: 14px; }
.entry-group h2 {
  width: fit-content;
  max-width: 100%;
  margin: 0 0 10px .15em;
  text-wrap: balance;
}
.entries { padding: 11px clamp(17px, 2.1vw, 27px); }
.entries:has(.item-illustration) {
  --paper-rim: 22px;
  display: grid;
  padding-inline: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 236px), 1fr));
  gap: 10px;
}
.entries:has(.item-illustration) .entry-row {
  gap: 7px;
  min-height: 90px;
  border-top: 0;
  background: none;
  padding: 8px 10px;
}
.entry-row {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 44px;
  padding: 9px 16px;
  border-radius: var(--radius);
  text-decoration: none;
}
.entry-row + .entry-row::before {
  position: absolute;
  inset: -1px 3% auto;
  height: 2px;
  background: #b99c6776;
  mask: var(--paint-sweep) center / 100% 100% no-repeat;
  pointer-events: none;
  content: "";
}
.entries:has(.item-illustration) .entry-row::before { display: none; }
a.entry-row:is(:hover, :focus-visible)::after {
  inset: 3px 3px;
  border-image: var(--paint-highlight) 118 fill / 16px stretch;
}
.entry-main { display: grid; flex: 1; min-width: 0; gap: 2px; overflow-wrap: anywhere; }
.entry-main strong { color: var(--primary); font-size: 1rem; }
.entry-row:has(.item-illustration) .arrow { display: none; }
.entry-main > span { color: var(--muted-foreground); font-size: .88rem; line-height: 1.45; }
:lang(zh) .entry-main > span { text-wrap: balance; }
.item-illustration {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  flex: none;
}
.item-illustration::before {
  position: absolute;
  z-index: -1;
  inset: 14% -9% 10%;
  background: var(--item-stroke, var(--brush-green));
  mask: var(--paint-sweep) center / 100% 100% no-repeat;
  transform: rotate(-18deg);
  content: "";
}
.entry-row:nth-child(3n+2) .item-illustration { --item-stroke: var(--brush-blue); }
.entry-row:nth-child(3n) .item-illustration { --item-stroke: #efba90; }
.entry-icon {
  width: clamp(52px, 6vw, 70px);
  height: auto;
  object-fit: contain;
}
.arrow { flex: none; color: var(--primary); }
.collection-names summary { cursor: pointer; min-height: 44px; padding-block: 7px; font-weight: 700; font-size: 1.1rem; }
.collection-names p { margin-top: 0; color: var(--muted-foreground); }
.collection-names .entries { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr)); }
.collection-names .entry-row { padding: 5px 8px; border: 0; background: none; }

.recipe-table {
  --recipe-columns: clamp(77px, 10vw, 116px) minmax(0, 1.45fr) repeat(2, minmax(0, 1fr));
}
.recipe-columns, .recipe-row {
  display: grid;
  grid-template-columns: var(--recipe-columns);
  align-items: center;
  gap: clamp(9px, 1.8vw, 21px);
  padding-inline: clamp(5px, 1.3vw, 15px);
}
.recipe-note {
  margin: 0 0 10px .15em;
  color: var(--muted-foreground);
  font-size: .87rem;
}
.recipe-columns {
  padding-block: 7px 8px;
  border-bottom: 1px solid var(--input);
  color: var(--muted-foreground);
  font-size: .82rem;
  font-weight: 750;
}
.recipe-columns > :first-child { text-align: center; }
.recipe-columns > :nth-child(n+3) { padding-inline-start: 10px; }
.recipe-row { min-height: 113px; padding-block: 11px; }
.recipe-dish { display: contents; }
.recipe-result {
  display: grid;
  place-items: center;
  min-width: 0;
}
.recipe-result img {
  display: block;
  width: min(100%, 92px);
  height: 88px;
  object-fit: contain;
}
.recipe-title strong { font-size: clamp(1.04rem, 1.8vw, 1.3rem); line-height: 1.25; }
.recipe-arrow { margin-inline-start: .25em; font-size: .7em; }
.recipe-slot {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 61px;
  padding: 6px 9px;
  border: 1px solid #a0a26d46;
  border-radius: calc(var(--radius) + 3px);
  background: #d7dd992c;
}
.recipe-slot-icons { display: flex; flex: none; align-items: center; }
.recipe-slot-icons img {
  width: clamp(29px, 4.6vw, 48px);
  height: clamp(29px, 4.6vw, 48px);
  object-fit: contain;
}
.recipe-slot-icons img + img { margin-inline-start: -7px; }
.recipe-slot-text {
  color: var(--foreground);
  font-size: .9rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.recipe-slot-quantity { white-space: nowrap; }
@media (max-width: 710px) {
  .recipe-columns { display: none; }
  .recipe-table { padding-inline: clamp(11px, 3vw, 20px); }
  .recipe-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; padding-block: 10px; }
  .recipe-dish {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 65px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
  }
  .recipe-result img { height: 62px; }
  .recipe-slot { padding: 5px 7px; gap: 5px; min-height: 55px; }
  .recipe-slot-icons img { width: 33px; height: 36px; }
  .recipe-slot-text { font-size: .8rem; }
}
@media (max-width: 365px) {
  .recipe-slot { flex-direction: column; gap: 3px; text-align: center; }
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(192px, 22vw, 264px);
  grid-template-rows: auto 1fr;
  align-items: start;
  column-gap: clamp(16px, 3.5vw, 58px);
  padding-bottom: clamp(33px, 5vw, 62px);
}
.article-layout > .article { grid-area: 1 / 1 / span 2; }
.article-layout > .page-toc { grid-area: 1 / 2; }
.article-layout > .related { grid-area: 2 / 2; }
.page-toc:not([hidden]) ~ .related { margin-top: 16px; }
.article { min-width: 0; padding: clamp(19px, 3.5vw, 42px); padding-bottom: clamp(30px, 4vw, 47px); }
.article-heading { margin-bottom: 24px; }
.flower-calculator, .flower-directory { margin-bottom: 32px; }
.flower-calculator { padding: clamp(16px, 3vw, 26px); }
.flower-calculator h2, .flower-directory h2 {
  margin: 0 0 14px;
  font: 700 clamp(1.5rem, 3.2vw, 2rem)/1.2 var(--display);
  color: var(--primary);
}
.flower-modes { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; border: 0; }
.flower-modes label {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  gap: 7px;
  padding: 5px 10px;
  border: 1px solid var(--control-edge);
  border-radius: var(--radius);
  background-color: var(--card);
  cursor: pointer;
}
.flower-modes label:has(:checked) { background-color: var(--secondary); font-weight: 700; }
.flower-modes input { accent-color: var(--primary); margin: 0; }
.flower-controls {
  --flower-control-gap: 14px;
  --flower-control-column: calc((100% - 2 * var(--flower-control-gap)) / 3);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, max(155px, var(--flower-control-column))), 1fr));
  gap: 10px var(--flower-control-gap);
}
.flower-filters { display: flex; flex-wrap: wrap; gap: 10px 14px; }
.flower-field, .flower-filters label { display: grid; gap: 4px; min-width: 0; font-weight: 650; }
.flower-filters label { flex: 1 1 155px; }
.flower-controls select, .flower-filters .control {
  display: block;
  min-width: 0;
  width: 100%;
  min-height: 42px;
  padding: 6px 8px;
  background-color: var(--card);
  color: var(--foreground);
  font-weight: 550;
}
.flower-filters { margin-bottom: 14px; }
.flower-filters label:first-child { flex-basis: 205px; }
.flower-picker-trigger.control {
  justify-content: space-between;
  width: 100%;
  min-height: 48px;
  padding: 5px 9px;
  text-align: start;
}
.flower-picker-value, .flower-picker-item { display: flex; align-items: center; gap: 8px; min-width: 0; }
.flower-picker-trigger:disabled { color: var(--muted-foreground); cursor: default; }
.flower-picker-trigger:disabled .flower-picker-chevron { visibility: hidden; }
.flower-picker-value img, .flower-picker-item img { flex: 0 0 auto; object-fit: contain; }
.flower-picker-chevron { flex: 0 0 auto; color: var(--muted-foreground); }
.flower-picker-positioner {
  z-index: 70;
  width: min(max(var(--anchor-width), 250px), var(--available-width));
  max-width: calc(100vw - 24px);
}
.flower-picker-popup {
  display: flex;
  flex-direction: column;
  max-height: min(24rem, var(--available-height));
  padding: 6px;
  color: var(--popover-foreground);
  background: var(--popover);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 6px 18px #33291724;
}
.flower-picker-search.control { flex: 0 0 auto; width: 100%; min-height: 42px; padding: 6px 9px; background: var(--card); }
.flower-picker-list { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-block-start: 3px; }
.flower-picker-item { min-height: 48px; padding: 5px 7px; border-radius: 5px; cursor: pointer; }
.flower-picker-item[data-highlighted] { background: var(--secondary); }
.flower-picker-copy { flex: 1; line-height: 1.25; overflow-wrap: anywhere; }
.flower-picker-copy small { display: block; margin-block-start: 2px; color: var(--muted-foreground); }
.flower-picker-empty { padding: 8px; color: var(--muted-foreground); font-size: .92rem; }
.flower-picker-indicator { flex: 0 0 auto; color: var(--primary); }
.flower-results { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--rule); }
.flower-result-title { margin: 0 0 6px; font-weight: 750; }
.flower-result-note { margin: 5px 0 10px; color: var(--muted-foreground); font-size: .91rem; }
.flower-result-grid, .flower-pair-list { list-style: none; padding: 0; }
.flower-result-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 8px; }
.flower-result-card {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 3px;
  min-width: 8.5rem;
  max-width: 13rem;
  min-height: 5.75rem;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  font-size: .92rem;
  font-weight: 700;
  text-align: center;
}
.flower-result-card .flower-icon { width: 58px; height: 58px; max-width: none; margin: 0; }
:is(.flower-pair-list, .flower-outcome) .flower-result-card { min-width: 6.75rem; min-height: 4.15rem; }
:is(.flower-pair-list, .flower-outcome) .flower-result-card .flower-icon { width: 37px; height: 37px; }
.flower-pair-list, .flower-route { margin: 0 0 10px; }
.flower-route { list-style: none; padding: 0; }
.flower-pair { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin: 0 0 7px; line-height: 1.45; }
.flower-chip, .flower-outcome { display: inline-flex; align-items: center; min-width: 0; max-width: 100%; }
.flower-chip { padding: 2px 5px; border-radius: 5px; background-color: var(--card); white-space: nowrap; }
.flower-outcome { gap: 4px; }
.flower-pair-list .flower-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 6.75rem) auto) minmax(0, 6.75rem);
  justify-content: start;
}
.flower-pair-list .flower-outcome { display: contents; }
.flower-pair-list .flower-result-card {
  align-self: stretch;
  min-width: 0;
  padding-inline: 5px;
  overflow-wrap: anywhere;
}
.flower-generation { flex: 0 0 auto; margin-inline-end: 2px; color: var(--muted-foreground); font-weight: 700; }
.flower-icon { width: auto; max-width: 32px; height: 1.5em; object-fit: contain; vertical-align: middle; margin-inline-end: 4px; }
.flower-chip .flower-icon { flex: 0 0 auto; }
.flower-evidence { margin-bottom: 8px; font-size: .91rem; }
.flower-evidence summary { cursor: pointer; }
.flower-evidence ul { margin-block: 4px; }
.flower-calculator a, .flower-directory a { color: var(--primary); }
.flower-detail-link { font-size: .94rem; font-weight: 700; }
.flower-directory-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 8px; padding: 0; list-style: none; }
.flower-directory-list > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 54px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--card);
  text-decoration: none;
}
.flower-directory-list > li > a:hover { background-color: var(--secondary); }
.flower-directory-list > li > a > span:first-of-type { flex: 1 1 auto; }
.flower-directory-list small { display: block; color: var(--muted-foreground); }
.flower-color-matches { margin: 5px 0 0; padding-inline-start: 16px; list-style: none; font-size: .92rem; }
.flower-color-matches a { display: inline-block; padding-block: 4px; }
.flower-directory-empty { margin: 0; }
.flower-tool-link { width: fit-content; }
.flower-plots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 155px), 1fr)); gap: 12px; align-items: start; }
.flower-plots figure { margin: 0; }
.flower-plots figcaption { font-size: .88rem; text-align: center; }
.prose .flower-plot { margin-block: 0 .4rem; table-layout: fixed; text-align: center; }
.flower-plot caption { font-weight: 700; padding-bottom: 5px; }
.prose .flower-plot :is(td, td:first-child, td:last-child) {
  position: relative;
  width: auto;
  height: 54px;
  padding: 4px;
  text-align: center;
  vertical-align: middle;
  border: 1px solid var(--border);
}
.prose .flower-plot tbody tr:not(:last-child)::after { content: none; }
.flower-plot-flower { font-weight: 750; }
.flower-plot-flower:has(img) span { position: absolute; inset-block-start: 1px; inset-inline-start: 4px; font-size: .82rem; }
.flower-plot-flower img { width: 38px; height: 38px; margin: auto; object-fit: contain; }
.flower-plot .flower-plot-a { background-color: var(--brush-light); }
.flower-plot .flower-plot-b { background-color: var(--brush-blue); }
.flower-plot .flower-plot-c { outline: 1px dashed var(--primary); outline-offset: -3px; }
.prose .flower-acquisition {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: .5rem;
  padding: 0;
  list-style: none;
}
.prose .flower-acquisition > li { margin: 0; }
.flower-acquisition > li > a {
  display: grid;
  gap: .25rem;
  height: 100%;
  padding: .6rem .75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
}
.flower-acquisition strong { text-decoration: underline; text-underline-offset: .18em; }
.flower-acquisition > li > a > span { display: flex; flex-wrap: wrap; gap: .125rem .5rem; }
.flower-acquisition .flower-name { color: var(--foreground); font-size: .92rem; }
.flower-plots:has(> :only-child) { max-width: 22rem; }
.prose .flower-plot-key { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem .75rem; margin: 0 0 .3rem; }
.prose .flower-pair-guide { display: grid; gap: .5rem; padding: 0; list-style: none; }
.prose .flower-pair-guide > li { padding: .5rem .6rem; margin: 0; border: 1px solid var(--border); border-radius: var(--radius); }
.flower-pair-formula, .flower-pair-evidence { display: flex; flex-wrap: wrap; align-items: center; gap: .125rem .5rem; }
.flower-pair-formula a .flower-name { text-decoration: underline; text-underline-offset: .18em; }
.flower-pair-evidence { margin-top: .3rem; row-gap: .35rem; font-size: .84rem; }
.flower-table-scroll { overflow-x: auto; }
.prose .flower-table { min-width: 29rem; }
.prose .flower-table--compact { min-width: 0; }
.flower-table--compact .flower-name { white-space: normal; }
.flower-table--compact a { display: inline-block; }
#flower-pairs { scroll-margin-top: 2rem; }
.flower-name { display: inline-flex; align-items: center; white-space: nowrap; }
.flower-name .flower-icon { flex: 0 0 auto; }
.flower-table small { color: var(--muted-foreground); }
.color-swatch { display: inline-flex; align-items: center; gap: .4em; }
.color-swatch__chip {
  display: grid;
  flex: none;
  inline-size: 1.5rem;
  block-size: .875rem;
  filter: drop-shadow(0 1px 0 #59453080);
}
.color-swatch__chip::before {
  content: "";
  background: linear-gradient(165deg, color-mix(in srgb, var(--swatch-color) 78%, var(--card)), var(--swatch-color) 60%);
  mask: var(--paint-sweep) center / 100% 100% no-repeat;
  transform: rotate(-8deg);
}
.color-swatch__chip[data-color="white"] { --swatch-color: #fffdf7; }
.color-swatch__chip[data-color="red"] { --swatch-color: #cf424d; }
.color-swatch__chip[data-color="pink"] { --swatch-color: #ee9ab8; }
.color-swatch__chip[data-color="purple"] { --swatch-color: #9166ae; }
.color-swatch__chip[data-color="blue"] { --swatch-color: #487cba; }
.color-swatch__chip[data-color="teal"] { --swatch-color: #58b3b4; }
.color-swatch__chip[data-color="green"] { --swatch-color: #66934e; }
.color-swatch__chip[data-color="yellow"] { --swatch-color: #f0cd50; }
.color-swatch__chip[data-color="orange"] { --swatch-color: #e98940; }
.color-swatch__chip[data-color="brown"] { --swatch-color: #8b6247; }
.color-swatch__chip[data-color="black"] { --swatch-color: #27242c; }
.article-heading:has(> .profile-portrait) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(150px, 22vw, 230px);
  align-items: center;
  gap: clamp(14px, 2.5vw, 26px);
}
.profile-portrait { display: block; width: 100%; height: auto; border-radius: 12px; }
.eyebrow {
  margin: 0 0 9px;
  color: var(--muted-foreground);
  font-size: .86rem;
  font-weight: 700;
}
.article-title {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 26px);
  font-size: clamp(2rem, 4.4vw, 3.75rem);
}
.article-title > .paint-mark { min-width: 0; overflow-wrap: anywhere; }
.article-title > .paint-mark::before { max-width: 5.6em; }
.about-title-logo {
  flex: none;
  width: clamp(38px, 6vw, 60px);
  aspect-ratio: 1;
}
.about-title-logo .gf-site-icon { display: block; width: 100%; height: 100%; object-fit: contain; }
.article-icon {
  flex: none;
  object-fit: contain;
  width: clamp(62px, 9vw, 105px);
  height: auto;
}
.edition { margin-top: 13px; }
.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 13px;
  margin: 0 0 29px;
  padding: 9px 16px;
}
.facts > div {
  min-width: 0;
  padding: 8px 2px;
  color: var(--secondary-foreground);
  border-bottom: 1px solid #a0a26d46;
  overflow-wrap: anywhere;
}
.facts > div:nth-last-child(-n+2) { border-bottom-color: transparent; }
.facts:has(> div:nth-child(3):last-child) > div { border-bottom-color: transparent; }
.facts > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.facts:has(> div:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.facts:has(> div:nth-child(3):last-child) > div:last-child { grid-column: auto; }
.facts dt { color: var(--primary); font-size: .87rem; font-weight: 700; }
.facts dd { margin: 0; font-size: .94rem; }
.fact-icon { display: inline-block; width: 1.45rem; height: 1.45rem; margin-inline-end: .3rem; object-fit: contain; vertical-align: middle; }
.field-guide-title .article-icon { width: auto; max-width: clamp(84px, 13vw, 156px); max-height: clamp(84px, 13vw, 120px); }
.article-title--portrait .article-icon { width: clamp(84px, 13vw, 156px); }
:is(.field-guide-title, .article-title--portrait) { display: flex; align-items: center; gap: clamp(10px, 2.4vw, 22px); }
.field-guide-title--art-end > .item-illustration { order: 1; margin-inline-start: auto; }
.article-title--portrait > .item-illustration { order: -1; aspect-ratio: 1; }
.article--field-guide .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 20px; }
.article--field-guide .facts > div:nth-last-child(-n+3) { border-bottom-color: transparent; }
.article--field-guide .facts > div:nth-child(-n+2) dd { font-weight: 700; }
.field-guide-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 14px; color: var(--muted-foreground); font-size: .86rem; }
.field-guide-version {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--primary);
  font-size: .86rem;
  font-weight: 700;
  text-underline-offset: .21em;
}
.article-sidebar {
  --sidebar-inset: 16px;
  position: sticky;
  top: var(--sidebar-inset);
  grid-area: 1 / 2 / span 2;
  align-self: start;
  max-height: calc(100dvh - 2 * var(--sidebar-inset));
  overflow-y: auto;
}
.field-guide-toc-slot:empty { display: none; }
.prose .field-guide-set { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 8px; list-style: none; padding: 0; }
.field-guide-set a { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 4px 10px; background: #d7dd9938; border-radius: var(--radius); }
.field-guide-set img { width: 46px; height: 46px; object-fit: contain; }
.prose .field-guide-set--portraits { grid-template-columns: repeat(auto-fit, minmax(min(100%, 6.5rem), 1fr)); }
.prose .field-guide-set--medals { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.prose .field-guide-set--medals:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.prose .field-guide-set--portraits > li { display: grid; margin: 0; }
.field-guide-set--portraits > li > :is(a, span) {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 4px;
  padding: 8px 6px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: #d7dd9938;
  text-align: center;
  font-size: .9rem;
}
.field-guide-set--portraits > li[aria-current] > span { border-color: #9aa961; font-weight: 700; }
.field-guide-set--portraits > li > a:is(:hover, :focus-visible) { background: #d7dd9970; }
.field-guide-set--portraits img { width: 58px; height: 58px; }
.radiant-inventory { margin: 0 0 18px; }
.radiant-inventory:not([data-radiant-ready]) { visibility: hidden; }
.radiant-inventory-icons { display: flex; flex-wrap: wrap; gap: 12px; }
.radiant-inventory-icons > div { display: grid; justify-items: center; gap: 4px; min-width: 96px; }
.radiant-inventory-icon {
  display: grid;
  place-items: center;
  width: 96px;
  height: 88px;
  border-radius: var(--radius);
  background: #d7dd9960;
}
.radiant-inventory-icon :is(img, canvas) { max-width: 80px; max-height: 72px; width: auto; height: auto; border-radius: 0; }
.wiki-term { display: inline-flex; gap: .32em; align-items: center; vertical-align: baseline; }
.wiki-term img { flex: none; width: 1.25em; height: 1.25em; object-fit: contain; }
.prose img.crop-plant-icon { width: auto; height: 2.75rem; max-width: 100%; object-fit: contain; border-radius: 0; }
.prose .wiki-term-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 8.5rem), 1fr));
  gap: 6px;
  padding: 0;
  list-style: none;
}
.wiki-term-list .wiki-term {
  display: flex;
  height: 100%;
  min-height: 44px;
  padding: 5px 8px;
  border-radius: var(--radius);
  background: #d7dd9938;
}
.wiki-term-list .wiki-term[aria-current="page"] { background: #d7dd9970; font-weight: 700; }
.article--field-guide .prose table th:nth-child(2) { white-space: nowrap; }
.article-figure { --paper-rim: 19px; margin: 0 0 24px; padding: 6px 6px 0; }
.article-figure img { width: 100%; height: auto; border-radius: var(--radius); }
.article-figure figcaption { padding: 8px; color: var(--muted-foreground); font-size: .85rem; line-height: 1.45; }

.article--recipe .article-title--portrait > .item-illustration {
  order: 1;
  margin-inline-start: auto;
}
.article--recipe .article-title .article-icon {
  display: block;
  width: clamp(66px, 12vw, 127px);
  height: auto;
  object-fit: contain;
}
.recipe-formula {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1.25fr);
  align-items: center;
  gap: clamp(4px, 1.4vw, 12px);
  margin: 0 0 16px;
}
.recipe-formula > span:not(.recipe-formula-tile) { color: var(--primary); font-weight: 750; }
.recipe-formula-tile {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 5px;
  height: 100%;
  padding: 8px 4px;
  border-radius: var(--radius);
  background: #d7dd993e;
  text-align: center;
  line-height: 1.28;
}
.recipe-formula-tile img {
  height: clamp(42px, 9vw, 76px);
  width: clamp(42px, 9vw, 76px);
  object-fit: contain;
}
.recipe-formula-result { background: #f2c57f62; }
.recipe-formula-result img {
  width: clamp(48px, 10vw, 90px);
  height: clamp(46px, 10vw, 82px);
}
.prose .recipe-variants {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 126px), 1fr));
  gap: 7px;
  padding: 0;
  list-style: none;
}
.recipe-variant {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 47px;
  padding: 5px 8px;
  border: 1px solid var(--input);
  border-radius: var(--radius);
  overflow-wrap: anywhere;
}
.recipe-variant img, .recipe-unlock-cue img {
  flex: none;
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.recipe-unlock-cue {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.8vw, 16px);
  padding: 11px;
  border-radius: var(--radius);
  background: #d7dd9938;
}
.recipe-unlock-cue img {
  width: clamp(41px, 7vw, 63px);
  height: clamp(41px, 7vw, 63px);
}
@media (max-width: 480px) {
  .recipe-formula-tile, .recipe-variant { font-size: .85rem; }
  .prose .recipe-variants { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.article-figure-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 12px;
  margin: 0 0 24px;
}
.article-figure-pair > .article-figure { margin: 0; min-width: 0; }
.article-figure-pair--portraits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.article-figure-pair--portraits img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 260px;
  margin-inline: auto;
  object-fit: contain;
}
.prose { overflow-wrap: anywhere; }
.prose h2 {
  display: table;
  max-width: 100%;
  margin: 34px 0 13px;
  text-wrap: balance;
}
.sources h2 { position: relative; margin: 0 0 14px; }
.prose h3 { margin: 19px 0 8px; font-size: 1.23rem; }
.prose li::marker { color: #796125; font-weight: 750; }
.prose > ol > li::marker { color: #89452c; font: 750 1.16em var(--display); }
.prose hr {
  height: 6px;
  margin: 27px auto;
  border: 0;
  max-width: 7rem;
  background: var(--brush-green);
  mask: var(--paint-sweep) center / 100% 100% no-repeat;
}
.prose img { border-radius: 15px 11px 17px 12px; }
.prose .starter-table-item img {
  display: inline-block;
  object-fit: contain;
  vertical-align: middle;
  border-radius: 0;
}
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose > ol {
  padding: 13px 15px 13px 2.2em;
  border: 1px solid transparent;
  border-image: var(--paint-clay) 118 fill / 26px stretch;
}
.prose li + li { margin-top: 5px; }
.prose a, .sources a {
  color: #1c5e53;
  font-weight: 600;
  text-decoration-color: #577c69;
  text-decoration-thickness: 1px;
  text-underline-offset: .26em;
  overflow-wrap: anywhere;
}
:lang(zh) .prose li { text-wrap: pretty; }
:lang(zh) .prose a { word-break: keep-all; overflow-wrap: break-word; }
.prose blockquote {
  margin: 18px 0;
  padding: 11px 14px;
  border-inline-start: 4px solid #93a272;
  border-radius: 5px 15px 22px 8px / 8px 13px 11px 13px;
  background: var(--secondary) var(--stock) 0 0 / 486px 324px;
  background-blend-mode: multiply;
}
.prose blockquote p:last-child { margin: 0; }
.prose table {
  position: relative;
  isolation: isolate;
  width: 100%;
  margin: 0 0 20px;
  border: 6px solid transparent;
  border-spacing: 0;
  line-height: 1.45;
}
.prose table::before {
  position: absolute;
  z-index: -1;
  inset: -2px;
  border: 1px solid transparent;
  border-image: var(--paint-grid) 118 fill / 25px stretch;
  pointer-events: none;
  content: "";
}
.prose table::after {
  position: absolute;
  z-index: -1;
  inset: 9px 11px;
  border-radius: 11px;
  background: var(--stock) center / 540px 360px;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mix-blend-mode: multiply;
  pointer-events: none;
  content: "";
}
.prose th, .prose td {
  padding: 9px 11px;
  vertical-align: top;
  text-align: start;
  overflow-wrap: anywhere;
}
.prose thead { position: relative; isolation: isolate; }
.prose thead::before {
  position: absolute;
  z-index: -1;
  inset: 2px 2px 3px;
  border: 1px solid transparent;
  border-image: var(--paint-grid-heading) 118 fill / 15px stretch;
  pointer-events: none;
  content: "";
}
.prose th { font-size: .87rem; }
.prose :is(th, td):first-child { padding-inline-start: 16px; }
.prose tbody tr { position: relative; }
.prose tbody tr:not(:last-child)::after {
  position: absolute;
  inset: auto 10px -1px;
  height: 3px;
  background: #ad815770;
  mask: var(--paint-sweep) center / 100% 100% no-repeat;
  pointer-events: none;
  content: "";
}
:lang(ja) .prose :is(td, th) { word-break: auto-phrase; }
.prose .neighbor-gift-label {
  display: inline-flex;
  align-items: center;
  gap: .35em;
  max-width: 100%;
}
.prose .neighbor-gift-icon {
  flex: 0 0 auto;
  width: 1.35em;
  height: 1.35em;
  border-radius: 0;
  object-fit: contain;
}
.prose .neighbor-gift-items {
  display: flex;
  flex-wrap: wrap;
  gap: .32em .75em;
  padding: 0;
  margin: 0;
  list-style: none;
}
.prose .neighbor-gift-items li { min-width: 0; margin: 0; }
.sources { margin-top: 27px; padding: clamp(15px, 2.7vw, 24px); }
.sources h2::after {
  position: absolute;
  inset: calc(-1 * clamp(15px, 2.7vw, 24px) - 7px) 4px auto auto;
  width: 44px;
  height: 18px;
  background: #cfa8414f;
  mask: var(--paint-sweep) center / 100% 100% no-repeat;
  transform: rotate(12deg);
  pointer-events: none;
  content: "";
}
.sources ul, .related ul, .page-toc ul { margin: 0; padding: 0; list-style: none; }
.sources li { display: flex; flex-direction: column; margin-bottom: 10px; }
.sources span, .sources p { color: var(--muted-foreground); font-size: .86rem; }
.related, .page-toc { --paper-rim: 29px; padding: 24px 22px; }
.related h2 { margin: 0 0 6px; font-size: 1.4rem; }
.toc-title { margin: 0; font: 700 1.35rem / 1.4 var(--display); }
.toc-trigger {
  min-block-size: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
}
.toc-trigger--main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  inline-size: 100%;
  font: 700 1.4rem / 1.4 var(--display);
  text-align: start;
}
.toc-panel { display: grid; grid-template-rows: 0fr; }
.toc-panel-inner { display: flow-root; min-block-size: 0; overflow: clip; }
.page-toc .toc-list { padding-block-start: 6px; }
.related li + li, .toc-list > li + li { border-top: 1px solid #a1b2775c; }
.related a, .page-toc a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  padding-block: 6px;
  font-size: .91rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
  text-decoration: none;
}
.related a:hover, .page-toc a:hover { text-decoration: underline; text-underline-offset: 4px; }
.toc-row { display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: center; }
.toc-toggle {
  display: grid;
  place-items: center;
  inline-size: 44px;
}
.toc-toggle:hover { background: #a1b27738; }
.toc-trigger:focus-visible { outline-offset: -3px; }
.toc-trigger::after {
  flex: none;
  inline-size: 8px;
  block-size: 8px;
  border-inline-end: 2px solid;
  border-block-end: 2px solid;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s cubic-bezier(.22, 1, .36, 1);
  content: "";
}
.toc-trigger--main::after { margin-inline-end: 18px; }
.toc-trigger[aria-expanded="true"]::after { transform: translateY(2px) rotate(225deg); }
@media (prefers-reduced-motion: reduce) {
  .toc-trigger::after { transition: none; }
}
.page-toc .toc-children {
  margin: 0 0 6px 1px;
  padding-inline-start: 12px;
  border-inline-start: 2px solid #a1b2775c;
}
.page-toc .toc-children a { font-size: .86rem; }
.page-toc a[aria-current="location"],
.toc-list > li[data-closed]:has(.toc-children a[aria-current="location"]) > .toc-row > a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .26em;
}
.article :is(h2, h3)[id] { scroll-margin-top: 16px; }

.code-jumps { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-block: 0 26px; }
.code-jumps a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--primary);
  font-size: .9rem;
  font-weight: 700;
  text-underline-offset: 4px;
}
.gift-codes { margin: 0 0 24px; }
.gift-codes h2 { margin: 0 0 10px; scroll-margin-top: 16px; }
#redeem-steps { scroll-margin-top: 16px; }
.gift-code-note { margin: 0 0 10px; color: var(--muted-foreground); font-size: .92rem; }
.gift-code-list, .gift-rewards { margin: 0; padding: 0; list-style: none; }
.gift-code-list { display: grid; gap: 12px; }
.gift-codes[data-scope="mainlandChannel"] .gift-code-list {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.gift-ticket { --paper-rim: 20px; padding: 15px 18px; min-width: 0; }
.gift-codes[data-scope^="global"] .gift-ticket { --sheet: var(--paint-note); }
.gift-code-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}
.gift-code-line code {
  --ticket-edge: right;
  display: grid;
  align-content: center;
  min-width: 0;
  min-height: 44px;
  padding: 8px clamp(8px, 2.5vw, 17px);
  border-radius: 10px;
  background: linear-gradient(115deg, #fff9e8, #faedc6);
  border: 1px solid #d5bb7b;
  color: var(--primary);
  font: 750 clamp(.95rem, 3.2vw, 1.22rem)/1.2 ui-monospace, Consolas, monospace;
  letter-spacing: .025em;
  overflow-wrap: anywhere;
  user-select: all;
}
.gift-code-line code:has(+ .gift-copy-button:not([hidden])) {
  border-inline-end: 0;
  border-start-end-radius: 0;
  border-end-end-radius: 0;
}
.gift-copy-button.control {
  --ticket-edge: left;
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-width: 64px;
  padding: 5px clamp(5px, 1.6vw, 14px);
  border: 0;
  border-radius: 0 10px 10px 0;
  background: transparent;
  font-size: .87rem;
  font-weight: 750;
}
.gift-copy-button::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: var(--secondary);
  border: 1px solid #a7b880;
  border-inline-start: 0;
  content: "";
}
.gift-code-line code:has(+ .gift-copy-button:not([hidden])), .gift-copy-button::before {
  mask: radial-gradient(circle at var(--ticket-edge) top, transparent 5px, #000 5.75px) top / 100% 50% no-repeat,
    radial-gradient(circle at var(--ticket-edge) bottom, transparent 5px, #000 5.75px) bottom / 100% 50% no-repeat;
}
.gift-copy-button::after {
  position: absolute;
  inset-block: 7px;
  inset-inline-start: 0;
  border-inline-start: 1px dashed #829267;
  content: "";
}
.gift-copy-button:hover::before { background: #d7e4bc; }
.gift-copy-button[data-copied] { color: var(--primary-foreground); }
.gift-copy-button[data-copied]::before {
  background: var(--primary);
  border-color: var(--primary);
}
.gift-copy-button[data-copied]::after { border-color: #b4c099; }
.gift-copy-button span { grid-area: 1 / 1; white-space: nowrap; }
.gift-copy-done, .gift-copy-button[data-copied] .gift-copy-label { visibility: hidden; }
.gift-copy-button[data-copied] .gift-copy-done { visibility: visible; }
.gift-rewards { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-block: 8px; }
.gift-reward { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: .94rem; }
.gift-reward img { flex: none; object-fit: contain; }
.gift-reward span { overflow-wrap: anywhere; }
.gift-reward strong { white-space: nowrap; }
.gift-code-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  color: var(--muted-foreground);
  font-size: .86rem;
  line-height: 1.5;
}
.gift-code-meta p { margin: 0; }
.gift-code-meta a { text-underline-offset: 3px; }
.gift-countdown {
  display: inline-flex;
  align-items: baseline;
  gap: .45em;
  padding: 2px 8px;
  border: 1px solid #a7b880;
  border-radius: 6px;
  background: var(--secondary);
  color: var(--primary);
  font-size: .82rem;
  white-space: nowrap;
}
.gift-countdown-value {
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.code-expired { font-weight: 700; }
.copy-status { margin: 4px 0 0; font-size: .86rem; }
.copy-status:empty { margin: 0; }

.site-footer { padding-bottom: 16px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; }
.foot-title { color: var(--primary); font: 750 1.18rem/1.2 var(--display); text-decoration: none; }
.footer-inner p { margin: 4px 0 0; color: var(--muted-foreground); font-size: .83rem; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 0 13px; font-size: .85rem; }
.footer-inner nav a { display: flex; align-items: center; min-height: 44px; text-underline-offset: 3px; }

.search-dialog-backdrop, .site-dialog-backdrop {
  position: fixed;
  z-index: 10;
  inset: 0;
  background: var(--scrim);
}
.search-dialog-viewport, .site-dialog-viewport {
  position: fixed;
  z-index: 11;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.search-dialog {
  display: flex;
  flex-direction: column;
  width: min(575px, calc(100% - 26px));
  max-height: 80vh;
  max-height: 80dvh;
  padding: 0;
  overflow: clip;
  pointer-events: auto;
  border: 0;
  background: transparent;
  color: var(--popover-foreground);
  filter: drop-shadow(0 10px 30px #1838293d);
}
.dialog-pad {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: clamp(16px, 4vw, 29px);
}
.dialog-pad > :not(.search-results) { flex: none; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.dialog-head h2 { margin: 0; }
.dialog-head button { flex: none; width: 44px; padding: 0; font-size: 1.4rem; border-color: transparent; background-color: #f3e6be; }
.search-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 3px 8px;
  margin: 10px 0 6px;
  color: var(--muted-foreground);
  font-size: .86rem;
}
.search-status { margin: 0; }
.search-keys { display: flex; gap: 4px; }
.search-keys kbd {
  padding: 3px 5px;
  border-radius: 6px 4px 6px 5px;
  background: #f1e2bb;
  font: .73rem/1.15 var(--body);
}
@media (pointer: coarse) { .search-keys { display: none; } }
.search-results {
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
}
.search-results li + li { border-top: 1px solid #c7b47964; }
#site-search input::-webkit-search-cancel-button { appearance: none; }
.search-results a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  padding: 7px 12px 7px 31px;
  border-radius: var(--radius);
  line-height: 1.4;
  text-decoration: none;
}
.search-results a strong { overflow-wrap: anywhere; }
.search-results a:is(:hover, :focus-visible)::after {
  inset: 0 4px;
  border-image: var(--paint-highlight) 118 fill / 16px stretch;
}
.search-results a:focus-visible { outline-color: transparent; }
.search-results a:focus-visible::before {
  position: absolute;
  inset-inline-start: 14px;
  width: 5px;
  height: 21px;
  border-radius: 80% 30% 60% 40%;
  background: #28533b;
  transform: rotate(5deg);
  content: "";
}
.search-results a span { flex: none; color: var(--muted-foreground); font-size: .8rem; white-space: nowrap; }

@media (max-width: 910px) {
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .category:last-child:nth-child(odd) { grid-column: span 2; }
}
@media (max-width: 720px) {
  .small-search { min-width: 44px; padding: 6px; }
  .small-search .search-label, .language-menu .language-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .small-search kbd { display: none; }
  .language-menu :is(summary, .language-trigger) { min-width: 44px; padding: 6px; }
  .article-layout { display: flex; flex-direction: column; align-items: stretch; row-gap: 22px; }
  .page-toc { padding-block: 13px; }
  .page-toc:not([hidden]) ~ .related { margin-top: 0; }
  .field-guide-toc-slot .field-guide-toc { padding: 5px 14px; }
  .field-guide-toc-slot .toc-trigger--main { font-size: 1rem; line-height: 32px; }
  .field-guide-toc-slot .toc-list { padding-block-end: 7px; }
  .article--field-guide .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article--field-guide .facts > div:nth-last-child(3) { border-bottom-color: #a0a26d46; }
  .article--field-guide .prose > h2:first-child { margin-top: 23px; }
}
@media (max-width: 590px) {
  .site-header { padding-top: 9px; }
  .topbar { min-height: 57px; gap: 7px; }
  .wordmark { gap: 5px; }
  .wordmark .gf-site-icon { width: 28px; height: 28px; }
  .main-nav a { font-size: .86rem; }
  .hero { grid-template: "art" "copy" / minmax(0, 1fr); }
  .hero h1 { font-size: clamp(2.5rem, 10vw, 3.5rem); }
  .hero-illustration img, .orb { aspect-ratio: 16 / 9; object-position: center 57%; }
  .hero-illustration--painted img { max-height: min(65vw, 310px); aspect-ratio: auto; object-position: center; }
  .hero-dek { margin: 11px 0 13px; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .category { padding: 9px 10px 12px; }
  .category:last-child:nth-child(odd):has(.category-painting) {
    display: grid;
    grid-template-columns: 105px 1fr;
    grid-template-rows: 1fr auto auto 1fr;
    column-gap: 8px;
    text-align: start;
  }
  .category:last-child:nth-child(odd) .category-painting { grid-row: 1 / -1; }
  .category:last-child:nth-child(odd):has(.category-painting) h3 { grid-row: 2; }
  .category:last-child:nth-child(odd):has(.category-painting) p { grid-row: 3; }
  .crumbs { margin-top: 15px; }
  .article-heading:has(> .intro-painting) { display: block; position: relative; }
  .article-heading .intro-painting { position: absolute; inset: -3px 0 auto auto; width: 66px; height: 43px; }
  .article-heading:has(> .intro-painting) .eyebrow { min-height: 40px; padding: 6px 72px 0 0; margin-bottom: 4px; }
  .article-heading:has(> .profile-portrait) { grid-template-columns: minmax(0, 1fr); }
  .profile-portrait { width: min(100%, 200px); justify-self: center; }
  :lang(ja) .article-title .paint-mark::before { width: min(100%, 3.25em); }
  .prose h2::before, .gift-codes h2::before { inset-inline-start: 0; }
  .facts:has(> div:nth-child(3):last-child) { grid-template-columns: 1fr; }
  .facts:has(> div:nth-child(3):last-child) > div { padding-block: 6px; border-bottom-color: #a0a26d46; }
  .facts:has(> div:nth-child(3):last-child) > div:last-child { border-bottom-color: transparent; }
  .prose th, .prose td { padding: 7px 5px; font-size: .87rem; }
  .prose thead::before { inset-inline: 0; }
  .prose :is(th, td):first-child { width: 30%; padding-inline-start: 15px; }
  .prose :is(th, td):last-child { padding-inline-end: 13px; }
  .prose .flower-table--compact :is(th, td) { width: auto; padding-inline: .25rem; }
  .prose .flower-table--compact .flower-icon { width: 1.125rem; height: 1.125rem; }
  .prose--voice-cast :is(th, td) { padding-inline: 2px; }
  .prose--voice-cast :is(th, td):first-child { width: 22%; padding-inline-start: 4px; }
  .prose--voice-cast :is(th, td):nth-child(2) { text-align: center; }
  .prose--voice-cast :is(th, td):last-child { padding-inline-end: 2px; text-align: center; }
  .prose--voice-cast th { font-size: .7rem; white-space: nowrap; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 3px; padding: 14px 16px; }
}
@media (max-width: 840px) {
  .topbar { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 0 7px; }
  .wordmark { white-space: normal; }
  .main-nav { grid-row: 2; grid-column: 1 / -1; flex-wrap: wrap; margin-inline-start: 0; }
}
@media (forced-colors: active) {
  body { background-image: none; }
  .paper { border: 1px solid CanvasText; }
  .paper::before, .paper::after, .paint-mark::before, .tag::before, .item-illustration::before, .sources h2::after,
  :is(.control--primary, .paint-field)::before, .paint-field::after, .search-results a:focus-visible::before,
  .prose table::before, .prose table::after, .prose thead::before,
  .entry-row + .entry-row::before, .prose tbody tr::after,
  :is(a.entry-row, .search-results a):is(:hover, :focus-visible)::after,
  :is(.section-head, .entry-group, .prose, .sources, .gift-codes) h2::before { display: none; }
  .prose tbody tr:not(:last-child) td { border-bottom: 1px solid CanvasText; }
  .category-glyph { forced-color-adjust: none; }
  .control { border-color: ButtonText; }
  .gift-code-line code, .gift-copy-button.control { border: 1px solid ButtonText; }
  .gift-code-line code:has(+ .gift-copy-button:not([hidden])), .gift-copy-button::before { mask: none; }
  .gift-copy-button::before, .gift-copy-button::after { display: none; }
  :focus-visible, .control--input:focus-visible, .search-results a:focus-visible { outline-color: Highlight; }
}

.feedback-trigger.control {
  position: fixed;
  z-index: 3;
  inset-inline-end: max(12px, env(safe-area-inset-right));
  inset-block-end: max(12px, env(safe-area-inset-bottom));
  gap: 8px;
  min-height: 44px;
  padding-inline: 14px;
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 4px 14px #18382935;
}
.feedback-trigger.control:hover { background: #265940; }
@media (max-width: 560px) {
  .feedback-trigger.control { width: 44px; padding-inline: 0; inset-inline-end: max(6px, env(safe-area-inset-right)); }
  .feedback-trigger > span { display: none; }
}
body:has(.feedback-trigger) .site-footer { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }

.feedback-dialog {
  pointer-events: auto;
  width: min(540px, calc(100% - 24px));
  max-height: 86vh;
  max-height: 86dvh;
  padding: 0;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--popover);
  color: var(--popover-foreground);
  box-shadow: 0 10px 30px #1838293d;
}
.feedback-form { display: grid; gap: 9px; }
.feedback-form label { font-weight: 650; }
.feedback-form :is(textarea, input[type="email"]) {
  width: 100%;
  min-height: 44px;
  padding: 8px 11px;
  border: 1px solid var(--input);
  border-radius: 8px;
  background: var(--popover);
  color: inherit;
  font: inherit;
}
.feedback-form textarea { resize: vertical; }
.feedback-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.feedback-form .control { min-height: 44px; }
.feedback-form button:disabled { opacity: .65; cursor: wait; }
.feedback-preview { display: grid; justify-items: start; gap: 8px; margin: 0; }
.feedback-preview img {
  max-height: 180px;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.feedback-form p { margin: 0; }
.feedback-note { color: var(--muted-foreground); font-size: .9rem; }
.feedback-note a { text-underline-offset: .2em; }
.feedback-mail-info {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--secondary);
  color: var(--secondary-foreground);
  font-size: .9rem;
}
.feedback-mail-address {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-block: 4px;
}
.feedback-mail-info code {
  overflow-wrap: anywhere;
  user-select: all;
}
.feedback-status:not(:empty) { font-weight: 650; }
.feedback-status[data-error] { color: #922f24; }

.directory-badges {
  display: grid;
  gap: 12px;
  min-inline-size: 0;
  padding-block: 12px;
}
.directory-badges-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted-foreground);
}
.directory-badges-heading::before,
.directory-badges-heading::after {
  content: "";
  flex: 1;
  border-block-start: 1px solid var(--border);
}
.directory-badges-heading h2 {
  margin: 0;
  font-size: 1rem;
}
.directory-badges-toggle {
  min-inline-size: 32px;
  min-block-size: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--background);
  color: inherit;
  cursor: pointer;
  font: inherit;
}
.directory-badges-toggle[aria-pressed="false"] span:last-child,
.directory-badges-toggle[aria-pressed="true"] span:first-child {
  display: none;
}
.directory-badges-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0;
  padding: 8px;
  list-style: none;
}
.directory-badges-list a,
.directory-badges-list img {
  display: block;
}
.directory-badges-list img {
  max-inline-size: 100%;
  block-size: auto;
}
.directory-badges a:focus-visible,
.directory-badges-toggle:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
  .directory-badges[data-running] .directory-badges-viewport {
    container-type: inline-size;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 12px, black calc(100% - 12px), transparent);
  }
  .directory-badges[data-running] .directory-badges-track {
    display: flex;
    inline-size: max-content;
    animation: directory-badges-scroll var(--directory-badges-duration) linear infinite;
  }
  .directory-badges[data-running] .directory-badges-list {
    flex-wrap: nowrap;
    min-inline-size: 100cqw;
  }
  .directory-badges-viewport:hover .directory-badges-track,
  .directory-badges[data-paused] .directory-badges-track {
    animation-play-state: paused;
  }
  .directory-badges[data-running] .directory-badges-viewport:focus-within {
    overflow-x: auto;
    mask-image: none;
  }
  .directory-badges[data-running] .directory-badges-viewport:focus-within .directory-badges-track {
    animation: none;
  }
  .directory-badges-viewport:focus-within .directory-badges-list[aria-hidden="true"] {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .directory-badges-toggle,
  .directory-badges-list[aria-hidden="true"] {
    display: none;
  }
}
@keyframes directory-badges-scroll {
  to { transform: translateX(-50%); }
}
