@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("/_a/paint-fiber.74b4fe61dd.webp");
  --stock: url("/_a/paint-stock.e48c18df53.webp");
  --paint-paper: url("/_a/paint-paper.c8902100e0.webp");
  --paint-note: url("/_a/paint-note.2d17734432.webp");
  --paint-pocket: url("/_a/paint-pocket.288ad09db9.webp");
  --paint-hero: url("/_a/paint-hero.019c2ea3b3.webp");
  --paint-ink: url("/_a/paint-ink.84a52346d5.webp");
  --paint-field: url("/_a/paint-field.601ab443d6.webp");
  --paint-field-focus: url("/_a/paint-field-focus.c130ca73bf.webp");
  --paint-leaf: url("/_a/paint-leaf.ed8967aff7.webp");
  --paint-grid-heading: url("/_a/paint-grid-heading.0937b8f0cc.webp");
  --paint-grid: url("/_a/paint-grid.c7038215f7.webp");
  --paint-clay: url("/_a/paint-clay.2743ba54fd.webp");
  --paint-highlight: url("/_a/paint-highlight.11dc0699a6.webp");
  --paint-sweep: url("/_a/paint-sweep.ec0dd5c76e.png");
  --paper-rim: 29px;
  --brush-light: #f8d476;
  --brush-green: #cddeae;
  --brush-blue: #abd8d9;
  --brush-clay: #e6aa85;

  --stamps: url("/_a/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 summary { list-style: none; white-space: nowrap; }
.language-menu summary::-webkit-details-marker { display: none; }
.language-menu[open] summary { background: var(--secondary); }
.language-menu ul {
  position: absolute;
  inset: 100% 0 auto auto;
  min-width: 142px;
  margin: 6px 0 0;
  padding: 9px;
  filter: drop-shadow(0 5px 7px #254c362b);
  list-style: none;
}
.language-menu 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-menu a:hover, .language-menu 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; }

.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-filters { display: flex; flex-wrap: wrap; gap: 10px 14px; }
.flower-controls label, .flower-filters label { display: grid; gap: 4px; flex: 1 1 155px; min-width: 0; font-weight: 650; }
.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-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-pair-list { list-style: none; padding: 0; }
.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-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%, 190px), 1fr)); gap: 12px; max-width: 38rem; }
.prose .flower-plot { max-width: 20rem; table-layout: fixed; text-align: center; }
.flower-plot caption { font-weight: 700; padding-bottom: 5px; }
.flower-plot .flower-plot-parent { font-weight: 750; }
.flower-plot .flower-plot-a { background-color: var(--brush-light); }
.flower-plot .flower-plot-b { background-color: var(--brush-blue); }
.flower-table-scroll { overflow-x: auto; }
.prose .flower-table { min-width: 29rem; }
.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); }
.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; }
.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; }
:is(.field-guide-title, .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;
}
.field-guide-rail { position: sticky; top: 16px; grid-area: 1 / 2 / span 2; align-self: start; max-height: calc(100dvh - 32px); overflow: auto; }
.field-guide-rail .related { margin-top: 16px; }
.field-guide-rail .field-guide-toc h2 { margin: 0 0 6px; font: 700 1.35rem / 1.4 var(--display); }
.field-guide-toc a[aria-current="location"] { font-weight: 700; text-decoration: underline; text-underline-offset: .26em; }
.field-guide-toc summary {
  min-height: 44px;
  padding-block: 6px;
  color: var(--primary);
  cursor: pointer;
  font: 700 1.35rem / 1.4 var(--display);
}
.field-guide-toc details[open] summary { padding-bottom: 11px; }
.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)); }
.field-guide-set--portraits > li {
  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] { border-color: #9aa961; font-weight: 700; }
.field-guide-set--portraits img { width: 58px; height: 58px; }
.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-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, .page-toc summary { margin: 0 0 6px; font-size: 1.4rem; }
.page-toc summary { cursor: pointer; font-family: var(--display); font-weight: 700; }
.page-toc details:not([open]) summary { margin: 0; }
.related li + li, .page-toc 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; }
.page-toc .toc-subsection { padding-inline-start: 16px; }
.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 {
  width: min(575px, calc(100% - 26px));
  max-height: 80vh;
  max-height: 80dvh;
  padding: 0;
  overflow: auto;
  border: 0;
  background: transparent;
  color: var(--popover-foreground);
  filter: drop-shadow(0 10px 30px #1838293d);
}
.search-dialog::backdrop { background: var(--scrim); }
.dialog-pad { padding: clamp(16px, 4vw, 29px); }
.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 { margin: 0; padding: 0; 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 summary { 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 .field-guide-toc summary { font-size: 1rem; line-height: 32px; }
  .field-guide-toc-slot .field-guide-toc ul { padding-bottom: 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; }
  .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; }
body:has(.feedback-trigger) .site-footer { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }

.feedback-dialog {
  position: fixed;
  inset: 0;
  margin: 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-dialog::backdrop { background: var(--scrim); }
.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; }
