:root {
  color-scheme: light;
  --bg: #fff2f4;
  --bg-soft: #f4f8df;
  --surface: #fffdf7;
  --surface-strong: #fffefa;
  --ink: #17382d;
  --muted: #50665a;
  --line: rgba(41, 75, 55, 0.18);
  --coral: #df576b;
  --coral-dark: #923144;
  --mint: #d9f1d2;
  --leaf: #42895d;
  --sky: #d6edf7;
  --butter: #fff0af;
  --rose: #ffdbe5;
  --peach: #ffd9b7;
  --lilac: #eadfff;
  --paper: #fff9e9;
  --plum: #6f4f86;
  --teal: #2d8279;
  --shadow: 0 22px 50px rgba(96, 70, 52, 0.16);
  --lift-shadow: 0 14px 28px rgba(71, 55, 38, 0.12);
  --pixel-shadow: 0 4px 0 rgba(31, 65, 48, 0.13);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  font-family: ui-rounded, "SF Pro Rounded", "Nunito Sans", "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    radial-gradient(circle at 9% 4%, rgba(255, 207, 154, 0.55), transparent 26rem),
    radial-gradient(circle at 88% 6%, rgba(180, 224, 192, 0.68), transparent 32rem),
    linear-gradient(180deg, var(--bg), #fffaf0 40%, #f1f8e7);
  background-size: 28px 28px, 28px 28px, auto, auto, auto;
  color: var(--ink);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

p {
  margin: 0;
  color: var(--muted);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  line-height: 1.04;
  letter-spacing: 0;
  text-wrap: balance;
}

button,
input,
select {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 20;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: white;
  transform: translateY(-140%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(255, 247, 241, 0.86);
  border-bottom: 1px solid var(--line);
}

.nav-shell {
  width: min(1320px, calc(100% - 2rem));
  min-height: 72px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 850;
  font-size: 1.08rem;
}

.brand-mark {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: 999px;
  background: var(--coral);
  color: white;
  box-shadow: 0 8px 18px rgba(217, 95, 100, 0.24);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.16rem;
}

.nav-links a,
.site-search button,
.button,
.chip-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.nav-links a {
  padding: 0.58rem 0.66rem;
  color: #3b4b3e;
  font-size: 0.9rem;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: rgba(217, 95, 100, 0.11);
  color: var(--coral-dark);
}

.site-search {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
}

.site-search input {
  width: 7.2rem;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.site-search button {
  border: 0;
  padding: 0 0.82rem;
  background: var(--ink);
  color: white;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 1.1rem;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
  border-radius: 999px;
}

.hero {
  width: min(1180px, calc(100% - 2rem));
  min-height: calc(100dvh - 72px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1.18fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4.5rem);
  padding: clamp(2rem, 5vw, 5rem) 0 clamp(3rem, 6vw, 5.5rem);
}

.hero-copy {
  display: grid;
  gap: 1.15rem;
}

.soft-label {
  width: fit-content;
  padding: 0.34rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--coral-dark);
  font-size: 0.84rem;
  font-weight: 850;
}

.hero h1 {
  max-width: 13.5ch;
  font-size: clamp(2.85rem, 6vw, 5.1rem);
}

.hero-subtitle {
  max-width: 34rem;
  color: #455a48;
  font-size: clamp(1.06rem, 2vw, 1.22rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.2rem;
}

.hero-search {
  max-width: 36rem;
  margin-top: 0.1rem;
}

.button {
  gap: 0.45rem;
  min-width: 8.6rem;
  padding: 0.78rem 1.1rem;
  border: 1px solid transparent;
  font-weight: 850;
}

.button.primary {
  background: var(--coral);
  color: white;
  box-shadow: 0 12px 24px rgba(217, 95, 100, 0.22);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  border-color: var(--line);
}

.button.text-link {
  min-width: auto;
  padding-inline: 0;
  color: var(--coral-dark);
}

.button:hover,
.guide-card:hover,
.tool-row:hover,
.related-links a:hover,
.chip-link:hover {
  transform: translateY(-2px);
}

.button:active,
.guide-card:active,
.tool-row:active {
  transform: translateY(1px) scale(0.99);
}

.hero-art {
  position: relative;
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: inherit;
  pointer-events: none;
}

.hero-art img {
  width: 100%;
  min-height: 460px;
  object-fit: cover;
}

.section {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 6.5rem) 0;
}

.section-heading {
  max-width: 46rem;
  margin-bottom: 1.5rem;
  display: grid;
  gap: 0.75rem;
}

.section-heading.compact {
  max-width: 38rem;
}

.section h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
}

.start-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
}

.start-grid .guide-card:first-child {
  grid-row: span 2;
  min-height: 22rem;
}

.popular-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.wiki-category-grid .guide-card {
  min-height: 18rem;
}

.guide-card {
  position: relative;
  min-height: 11rem;
  display: grid;
  align-content: space-between;
  gap: 1.25rem;
  padding: 1.15rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.68);
  color: var(--ink);
  box-shadow: 0 10px 22px rgba(94, 81, 56, 0.08);
}

.guide-card strong {
  display: block;
  margin-bottom: 0.38rem;
  font-size: 1.1rem;
}

.guide-card span span {
  color: #526151;
}

.wiki-category-grid {
  grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
}

.wiki-category-grid .guide-card {
  grid-template-rows: auto 1fr auto;
  gap: 0.85rem;
  padding: 0.78rem;
  overflow: hidden;
}

.guide-card-picture {
  position: relative;
  min-height: 10rem;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(41, 75, 55, 0.14);
  border-radius: 13px;
  background:
    linear-gradient(145deg, rgba(255, 219, 229, 0.88), rgba(217, 241, 210, 0.76));
  box-shadow: inset 0 -4px 0 rgba(41, 75, 55, 0.07);
}

.guide-picture-grid {
  position: absolute;
  inset: 0.62rem;
  border-radius: 10px;
  background:
    linear-gradient(rgba(255, 254, 250, 0.32) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(255, 254, 250, 0.24) 1px, transparent 1px) 0 0 / 22px 22px;
  opacity: 0.86;
}

.guide-picture-glow {
  position: absolute;
  width: min(72%, 9rem);
  height: 4.6rem;
  border: 1px solid rgba(255, 254, 250, 0.38);
  border-radius: 16px;
  background: rgba(255, 254, 250, 0.54);
  filter: blur(3px);
  transform: rotate(-7deg);
}

.guide-picture-token {
  position: relative;
  z-index: 1;
  display: grid;
  width: 5.25rem;
  height: 5.25rem;
  place-items: center;
  border: 1px solid rgba(41, 75, 55, 0.12);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 254, 250, 0.96), rgba(255, 240, 175, 0.72));
  box-shadow: 0 7px 0 rgba(31, 65, 48, 0.12), 0 14px 22px rgba(87, 62, 40, 0.1);
  font-size: 2.55rem;
  line-height: 1;
  transition: transform 160ms ease;
}

.guide-picture-label {
  position: absolute;
  right: 0.55rem;
  bottom: 0.55rem;
  z-index: 2;
  max-width: calc(100% - 1.1rem);
  padding: 0.3rem 0.5rem;
  border: 1px solid rgba(41, 75, 55, 0.1);
  border-radius: 9px;
  background: rgba(255, 254, 250, 0.9);
  color: #315c40;
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1.1;
}

.guide-card:hover .guide-picture-token {
  transform: translateY(-3px) rotate(-1deg);
}

.guide-card-picture-codes,
.guide-card-picture-villagers,
.guide-card-picture-events {
  background: linear-gradient(145deg, rgba(255, 219, 229, 0.96), rgba(255, 240, 175, 0.78));
}

.guide-card-picture-cooking,
.guide-card-picture-money,
.guide-card-picture-daily {
  background: linear-gradient(145deg, rgba(255, 240, 175, 0.94), rgba(255, 217, 183, 0.76));
}

.guide-card-picture-map,
.guide-card-picture-fishing,
.guide-card-picture-birds {
  background: linear-gradient(145deg, rgba(214, 237, 247, 0.94), rgba(217, 241, 210, 0.76));
}

.guide-card-picture-crops,
.guide-card-picture-flowers,
.guide-card-picture-insects,
.guide-card-picture-materials,
.guide-card-picture-beginner {
  background: linear-gradient(145deg, rgba(217, 241, 210, 0.94), rgba(255, 253, 202, 0.72));
}

.guide-card-picture-furniture,
.guide-card-picture-pets,
.guide-card-picture-faq {
  background: linear-gradient(145deg, rgba(241, 226, 255, 0.82), rgba(255, 246, 230, 0.8));
}

.guide-card-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 2rem;
  padding: 0.32rem 0.52rem;
  border: 1px solid rgba(41, 75, 55, 0.12);
  border-radius: 9px;
  background: rgba(255, 254, 250, 0.82);
  color: #315c40;
  font-size: 0.78rem;
  font-weight: 950;
}

.card-icon,
.big-icon {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
}

.item-thumb {
  flex: 0 0 auto;
  display: grid;
  width: 3.15rem;
  height: 3.15rem;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  background: linear-gradient(135deg, #ffffff, #f4fbef);
  box-shadow: 0 8px 16px rgba(94, 81, 56, 0.1);
}

.item-thumb span {
  display: grid;
  width: 2.1rem;
  height: 2.1rem;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.62);
  font-size: 1.28rem;
  line-height: 1;
}

.item-thumb img {
  width: 2.65rem;
  height: 2.65rem;
  object-fit: contain;
}

.item-thumb-authentic {
  overflow: hidden;
}

.item-thumb-codes,
.item-thumb-npc-gifts,
.item-thumb-events {
  background: linear-gradient(135deg, #ffe0e6, #fff8f4);
}

.item-thumb-recipes,
.item-thumb-daily-checklist,
.item-thumb-guide {
  background: linear-gradient(135deg, #fff0b8, #fffaf0);
}

.item-thumb-fishing,
.item-thumb-map-locations {
  background: linear-gradient(135deg, #dceef7, #f8fdff);
}

.item-thumb-pets {
  background: linear-gradient(135deg, #dff3dc, #f8fff7);
}

.item-thumb-crops,
.item-thumb-flowers,
.item-thumb-materials {
  background: linear-gradient(135deg, #dff3dc, #fffaf0);
}

.item-thumb-insects,
.item-thumb-birds,
.item-thumb-furniture {
  background: linear-gradient(135deg, #ebe3ff, #fff8f9);
}

.tone-mint { background: linear-gradient(135deg, var(--mint), #f8fff7); }
.tone-butter { background: linear-gradient(135deg, var(--butter), #fffaf0); }
.tone-sky { background: linear-gradient(135deg, var(--sky), #f8fdff); }
.tone-rose { background: linear-gradient(135deg, var(--rose), #fff8f9); }
.tone-lilac { background: linear-gradient(135deg, var(--lilac), #fbf8ff); }
.tone-peach { background: linear-gradient(135deg, var(--peach), #fff8f0); }
.tone-leaf { background: linear-gradient(135deg, #d7f0c7, #f8fff4); }
.tone-coral { background: linear-gradient(135deg, #ffd4c9, #fff6f2); }

.dashboard-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1.18fr);
  gap: 1.5rem;
  align-items: start;
}

.dashboard-copy {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 0.9rem;
}

.dashboard-copy h2,
.feature-copy h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.tool-board {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
}

.tool-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  box-shadow: 0 8px 18px rgba(94, 81, 56, 0.08);
}

.tool-row strong,
.tool-row small {
  display: block;
}

.tool-row small {
  color: var(--muted);
}

.tool-row em {
  align-self: start;
  padding: 0.28rem 0.58rem;
  border-radius: 999px;
  background: var(--mint);
  color: #315c40;
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 850;
  white-space: nowrap;
}

.feature-section {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: center;
}

.feature-image {
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.feature-image img {
  width: 100%;
  object-fit: cover;
}

.feature-copy {
  display: grid;
  gap: 1rem;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.mini-grid span {
  padding: 0.85rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.7);
  font-weight: 800;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
}

.status-card {
  min-height: 8.5rem;
  display: grid;
  align-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.status-card span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.status-good { background: #e3f6dc; }
.status-player { background: #ffe6f0; }
.status-warn { background: #fff1c9; }
.status-info { background: #e2f0fb; }

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

details {
  padding: 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 850;
}

details p {
  margin-top: 0.75rem;
}

.site-footer {
  margin-top: 3rem;
  background: #22392d;
  color: white;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.78);
}

.footer-inner {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 0.75fr);
  gap: 2rem;
  padding: 3rem 0;
}

.footer-brand {
  display: grid;
  gap: 1rem;
}

.footer-logo {
  color: white;
}

.footer-group {
  display: grid;
  gap: 0.5rem;
  align-content: start;
}

.footer-group h2 {
  margin-bottom: 0.2rem;
  color: white;
  font-size: 1rem;
  letter-spacing: 0;
}

.footer-bottom {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.page-hero {
  width: min(1180px, calc(100% - 2rem));
  margin: 2rem auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20rem;
  gap: 1.5rem;
  align-items: stretch;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.page-hero-copy {
  display: grid;
  align-content: center;
  gap: 1rem;
}

.page-hero h1 {
  font-size: clamp(2.7rem, 6vw, 5rem);
}

.page-hero p {
  max-width: 56ch;
  font-size: 1.1rem;
}

.back-link {
  width: fit-content;
  font-weight: 850;
  color: var(--coral-dark);
}

.guide-infobox {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.82);
}

.guide-infobox div {
  display: grid;
  gap: 0.1rem;
}

.guide-infobox span:not(.big-icon) {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.page-layout {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22rem;
  gap: 1.25rem;
  padding: 2rem 0 5rem;
}

.guide-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.page-jump-nav {
  display: grid;
  gap: 0.7rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.page-jump-nav strong {
  color: var(--ink);
}

.page-jump-nav div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.page-jump-nav a {
  color: var(--coral-dark);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(146, 49, 68, 0.3);
  text-underline-offset: 0.2rem;
}

.page-jump-nav a:hover {
  text-decoration-color: currentColor;
}

.content-block,
.related-panel {
  padding: clamp(1.15rem, 3vw, 1.6rem);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.content-block h2,
.related-panel h2 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
}

.guide-subpoints {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.guide-subpoints article {
  padding: 0.9rem;
  border: 1px solid rgba(80, 61, 36, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.72);
}

.guide-subpoints h3 {
  margin-bottom: 0.35rem;
  color: var(--ink);
  font-size: 0.98rem;
}

.guide-subpoints p {
  color: var(--muted);
  font-size: 0.94rem;
}

.guide-table-wrap {
  max-width: 100%;
  margin-top: 1rem;
  overflow-x: auto;
  border-block: 1px solid var(--line);
}

.guide-comparison-table {
  width: 100%;
  min-width: 42rem;
  border-collapse: collapse;
  text-align: left;
}

.guide-comparison-table caption {
  padding: 0.8rem 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: left;
}

.guide-comparison-table th,
.guide-comparison-table td {
  padding: 0.82rem 0.75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.guide-comparison-table thead th,
.guide-comparison-table tbody th {
  color: var(--ink);
  font-weight: 850;
}

.official-resource-links {
  display: grid;
  margin-top: 1rem;
  border-top: 1px solid var(--line);
}

.official-resource-links a {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  justify-content: space-between;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--coral-dark);
}

.official-resource-links a:hover strong {
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.official-resource-links span {
  color: var(--muted);
  font-size: 0.88rem;
  text-align: right;
}

.contact-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.form-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.42rem;
  color: var(--ink);
  font-weight: 800;
}

.contact-form label > span {
  display: flex;
  gap: 0.45rem;
  align-items: baseline;
  justify-content: space-between;
}

.contact-form small,
.contact-form label b {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.75rem 0.82rem;
  border: 1px solid rgba(41, 75, 55, 0.3);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.contact-form textarea {
  min-height: 10rem;
  resize: vertical;
}

.contact-form input::placeholder {
  color: #5d6d62;
}

.contact-form input:focus-visible,
.contact-form select:focus-visible,
.contact-form textarea:focus-visible {
  outline: 3px solid rgba(223, 87, 107, 0.28);
  outline-offset: 2px;
  border-color: var(--coral-dark);
}

.form-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.form-privacy-note {
  max-width: 68ch;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-privacy-note a {
  color: var(--coral-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.18rem;
}

.contact-form .button {
  justify-self: start;
}

.submission-route .button {
  margin-top: 1rem;
}

.submission-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.correction-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.chip-link {
  padding: 0.6rem 0.85rem;
  background: var(--mint);
  color: #315c40;
  font-weight: 850;
}

.related-panel {
  position: sticky;
  top: 104px;
  align-self: start;
}

.related-links {
  display: grid;
  gap: 0.55rem;
}

.related-links a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  font-weight: 800;
}

.database-home-section {
  padding-top: clamp(2.5rem, 6vw, 5rem);
}

.browse-wiki-section {
  padding-top: clamp(2.5rem, 6vw, 5rem);
}

.browse-wiki-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1.14fr);
  gap: 1rem;
  align-items: stretch;
  padding: clamp(1rem, 3vw, 1.4rem);
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(223, 243, 220, 0.6)),
    rgba(255, 255, 255, 0.62);
  box-shadow: 0 12px 26px rgba(94, 81, 56, 0.08);
}

.browse-wiki-copy {
  display: grid;
  align-content: center;
  gap: 1rem;
  padding: clamp(0.6rem, 2vw, 1rem);
}

.browse-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  padding: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
}

.browse-search input,
.browse-search button {
  min-height: 44px;
  border: 0;
  font: inherit;
}

.browse-search input {
  min-width: 0;
  padding: 0 0.9rem;
  background: transparent;
  color: var(--ink);
  outline: 0;
}

.browse-search button {
  padding: 0 1.1rem;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-weight: 850;
  cursor: pointer;
}

.browse-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.browse-link-grid a {
  display: grid;
  gap: 0.24rem;
  min-height: 6.5rem;
  align-content: center;
  padding: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.78);
  transition: transform 180ms ease, background 180ms ease;
}

.browse-link-grid a:hover {
  transform: translateY(-2px);
  background: white;
}

.browse-link-grid strong {
  font-size: 1rem;
}

.browse-link-grid span {
  color: var(--muted);
  font-size: 0.9rem;
}

.database-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 1.15rem;
}

.database-preview-card {
  min-width: 0;
  display: grid;
  gap: 1.05rem;
  align-content: start;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 18px rgba(94, 81, 56, 0.07);
}

.database-preview-heading {
  display: flex;
  gap: 0.82rem;
  align-items: start;
}

.database-preview-heading > div {
  min-width: 0;
}

.database-preview-heading h3 {
  font-size: 1.12rem;
  line-height: 1.16;
  letter-spacing: 0;
  overflow-wrap: break-word;
  word-break: normal;
}

.database-preview-heading p,
.database-preview-list small,
.database-preview-meta {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.34;
}

.database-preview-list {
  display: grid;
  gap: 0.68rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.database-preview-list li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.58rem;
  align-items: start;
  padding: 0.84rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 248, 0.82);
}

.preview-row-main,
.primary-data-cell {
  min-width: 0;
  align-items: center;
  gap: 0.7rem;
}

.preview-row-main {
  display: grid;
  grid-template-columns: 2.85rem minmax(0, 1fr);
}

.preview-row-main > span:not(.item-thumb) {
  min-width: 0;
}

.primary-data-cell {
  display: flex;
}

.preview-row-main .item-thumb,
.primary-data-cell .item-thumb {
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 12px;
}

.preview-row-main .item-thumb span,
.primary-data-cell .item-thumb span {
  width: 1.85rem;
  height: 1.85rem;
  font-size: 1.08rem;
}

.database-preview-list strong,
.database-preview-list small {
  display: block;
}

.database-preview-list strong {
  line-height: 1.2;
  overflow-wrap: break-word;
  word-break: normal;
}

.database-preview-list small {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.database-preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(41, 75, 55, 0.12);
}

.database-preview-meta span {
  color: #526151;
  font-weight: 750;
}

@media (min-width: 760px) {
  .database-preview-list li {
    grid-template-columns: 1fr;
    align-items: start;
  }

}

.updated-data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.85rem;
}

.updated-data-card {
  display: grid;
  gap: 0.45rem;
  align-content: start;
  min-height: 10.5rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.74);
  transition: transform 180ms ease, background 180ms ease;
}

.updated-data-card:hover {
  transform: translateY(-2px);
  background: white;
}

.updated-data-card strong {
  line-height: 1.15;
}

.updated-data-card span:not(.card-icon),
.updated-data-card em {
  color: var(--muted);
  font-size: 0.88rem;
}

.updated-data-card em {
  width: fit-content;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: rgba(220, 238, 247, 0.74);
  color: #315c75;
  font-style: normal;
  font-weight: 900;
}

.database-shell,
.database-directory {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.database-shell {
  display: grid;
  gap: 1rem;
  padding: 2rem 0;
}

.database-intro {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.database-intro h2 {
  margin-bottom: 0.45rem;
  font-size: clamp(1.75rem, 3vw, 2.55rem);
}

.database-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
}

.database-summary-grid div {
  display: grid;
  gap: 0.25rem;
  min-height: 5.4rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
}

.database-summary-grid span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.database-summary-grid strong {
  font-size: 1.35rem;
  line-height: 1.15;
}

.database-item-gallery,
.map-experience {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(223, 243, 220, 0.42)),
    rgba(255, 255, 255, 0.68);
  box-shadow: 0 10px 22px rgba(94, 81, 56, 0.08);
}

.database-gallery-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.database-gallery-heading h2 {
  margin-bottom: 0.35rem;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.database-gallery-heading > span {
  flex: 0 0 auto;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
}

.item-gallery-grid,
.guide-visual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem;
}

.item-gallery-card,
.guide-visual-card {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.86);
}

.item-gallery-meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(41, 75, 55, 0.12);
  color: #526151;
  font-size: 0.84rem;
  font-weight: 750;
}

.item-gallery-card h3,
.guide-visual-card h3 {
  margin-bottom: 0.25rem;
  font-size: 1rem;
  letter-spacing: 0;
}

.item-gallery-card p,
.guide-visual-card p {
  font-size: 0.9rem;
}

.item-gallery-card[hidden] {
  display: none;
}

.category-chip,
.difficulty-chip {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  padding: 0.28rem 0.52rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.2;
}

.category-chip {
  background: #eaf5e6;
  color: #355f3f;
}

.difficulty-chip {
  background: #eef3ff;
  color: #345477;
}

.player-info-section,
.map-route-panels {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 240, 184, 0.52), rgba(220, 238, 247, 0.34)),
    rgba(255, 255, 255, 0.68);
}

.player-info-grid,
.route-step-grid,
.beginner-location-grid {
  display: grid;
  gap: 0.75rem;
}

.player-info-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.player-info-card,
.route-step-card {
  display: grid;
  gap: 0.35rem;
  padding: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.88);
}

.player-info-card strong,
.route-step-card strong,
.beginner-location-panel h3 {
  color: var(--ink);
  line-height: 1.2;
}

.route-step-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.route-step-card {
  min-height: 9.5rem;
  align-content: space-between;
  transition: transform 180ms ease, background 180ms ease;
}

.route-step-card:hover {
  transform: translateY(-2px);
  background: white;
}

.route-step-card em {
  width: fit-content;
  padding: 0.28rem 0.52rem;
  border-radius: 999px;
  background: var(--mint);
  color: #315c40;
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 900;
}

.beginner-location-panel {
  display: grid;
  gap: 0.85rem;
  padding-top: 0.25rem;
}

.beginner-location-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.database-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 0.34fr) auto auto;
  gap: 0.7rem;
  align-items: end;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
}

.database-toolbar label {
  display: grid;
  gap: 0.28rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.database-toolbar input,
.database-toolbar select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: white;
  color: var(--ink);
  padding: 0.55rem 0.75rem;
}

.database-count {
  align-self: center;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 850;
  white-space: nowrap;
}

.compact-button {
  min-width: auto;
  min-height: 40px;
  padding: 0.58rem 0.85rem;
  font-size: 0.9rem;
}

.database-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-chip {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #455a48;
  padding: 0.45rem 0.72rem;
  font-size: 0.88rem;
  font-weight: 850;
  cursor: pointer;
}

.filter-chip.active,
.filter-chip:hover {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.database-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
}

.database-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.database-table th,
.database-table td {
  padding: 0.78rem 0.82rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.database-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fff4;
  color: #314435;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.database-table td {
  color: #405342;
}

.database-table tr:last-child td {
  border-bottom: 0;
}

.database-table tr[hidden] {
  display: none;
}

.database-table tr.is-checked {
  background: rgba(223, 243, 220, 0.55);
}

.status-pill,
.confidence-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 0.28rem 0.52rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.2;
  white-space: normal;
}

.status-pill-verified,
.status-pill-source {
  background: #dff3dc;
  color: #2f5f39;
}

.status-pill-player {
  background: #ffe4ed;
  color: #8d3656;
}

.status-pill-needs,
.status-pill-screenshot,
.status-pill-estimated,
.status-pill-official {
  background: #fff1c9;
  color: #7a5418;
}

.confidence-pill {
  background: #e2f0fb;
  color: #315c75;
}

.inline-data-link {
  color: var(--coral-dark);
  font-weight: 850;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.copy-code-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.copy-mini {
  min-height: 32px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.inline-check {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-weight: 850;
}

.inline-check input {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.18rem;
  accent-color: var(--leaf);
}

.database-empty {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--butter);
  color: #6c5017;
  font-weight: 850;
}

.database-guide-fallback {
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.database-guide-fallback h2 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.database-guide-fallback p {
  max-width: 72ch;
  margin: 0;
  color: var(--muted);
}

.home-map-section {
  padding-top: clamp(2.5rem, 6vw, 5rem);
}

.home-map-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1.18fr);
  gap: 1rem;
  align-items: stretch;
  padding: clamp(1rem, 3vw, 1.4rem);
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(220, 238, 247, 0.7), rgba(255, 240, 184, 0.42)),
    rgba(255, 255, 255, 0.68);
  box-shadow: 0 12px 26px rgba(94, 81, 56, 0.08);
}

.home-map-copy {
  display: grid;
  align-content: center;
  gap: 1rem;
  padding: clamp(0.45rem, 2vw, 1rem);
}

.home-map-copy h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.home-map-visual {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.62fr);
  gap: 0.75rem;
}

.home-map-cards {
  display: grid;
  gap: 0.65rem;
  align-content: start;
  max-height: 27rem;
  overflow: auto;
}

.map-control-strip {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 0.7rem;
  align-items: end;
}

.map-control-strip label {
  display: grid;
  gap: 0.28rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.map-control-strip input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: white;
  color: var(--ink);
  padding: 0.55rem 0.75rem;
}

.map-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(310px, 0.88fr);
  gap: 1rem;
  align-items: start;
}

.map-board {
  position: relative;
  min-height: 34rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 24px;
  background:
    linear-gradient(150deg, rgba(223, 243, 220, 0.95), rgba(220, 238, 247, 0.78) 48%, rgba(255, 240, 184, 0.72)),
    #eef8eb;
  box-shadow: inset 0 0 0 1px rgba(75, 94, 70, 0.08);
}

.map-board-compact {
  min-height: 27rem;
}

.map-region {
  position: absolute;
  z-index: 1;
  padding: 0.4rem 0.62rem;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.72);
  color: rgba(32, 54, 42, 0.78);
  font-size: 0.8rem;
  font-weight: 850;
}

.map-region-town { left: 42%; top: 35%; }
.map-region-coast { left: 10%; top: 72%; }
.map-region-grove { right: 7%; top: 16%; }
.map-region-home { left: 15%; top: 20%; }

.map-path {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  opacity: 0.56;
}

.map-path-main {
  left: 14%;
  top: 20%;
  width: 72%;
  height: 56%;
  border: 0.75rem solid rgba(255, 255, 255, 0.55);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 48% 52% 40% 60%;
  transform: rotate(14deg);
}

.map-path-river {
  left: -8%;
  bottom: 10%;
  width: 78%;
  height: 9rem;
  border-radius: 999px;
  background: rgba(117, 181, 208, 0.3);
  transform: rotate(-9deg);
}

.map-pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 2;
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 2px solid white;
  border-radius: 999px;
  color: white;
  background: #527b60;
  box-shadow: 0 8px 16px rgba(43, 72, 55, 0.24);
  cursor: pointer;
  scroll-margin-top: 6rem;
  transform: translate(-50%, -50%);
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.map-pin:hover,
.map-pin.is-active {
  transform: translate(-50%, -50%) scale(1.14);
  box-shadow: 0 10px 22px rgba(43, 72, 55, 0.3);
}

.map-pin span {
  font-size: 0.9rem;
  line-height: 1;
}

.map-zone-npcs { background: #d95f64; }
.map-zone-fishing { background: #4d8ead; }
.map-zone-resources { background: #71833e; }
.map-zone-wildlife { background: #7b6aa9; }
.map-zone-shops { background: #9b7a24; }
.map-zone-events { background: #b46bb4; }
.map-zone-houses { background: #6c9a5c; }
.map-zone-routes { background: #477d70; }
.map-zone-important { background: #526151; }
.map-zone-daily-route { background: #467c55; }

.map-pin[hidden],
.map-location-card[hidden] {
  display: none;
}

.map-card-panel {
  display: grid;
  gap: 0.75rem;
  max-height: min(43rem, calc(100dvh - 9rem));
  overflow: auto;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.7);
}

.map-panel-heading {
  display: grid;
  gap: 0.15rem;
}

.map-panel-heading span {
  color: var(--muted);
  font-size: 0.9rem;
}

.map-location-grid {
  display: grid;
  gap: 0.72rem;
}

.map-location-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.72rem;
  padding: 0.78rem;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.9);
  cursor: pointer;
}

.map-location-card.is-active {
  border-color: rgba(217, 95, 100, 0.45);
  box-shadow: 0 0 0 3px rgba(217, 95, 100, 0.12);
}

.map-location-card h3 {
  margin-bottom: 0.25rem;
  font-size: 1rem;
  letter-spacing: 0;
}

.map-location-card p {
  font-size: 0.9rem;
}

.map-location-card dl {
  display: grid;
  gap: 0.38rem;
  margin: 0.65rem 0 0.45rem;
}

.map-location-card dl div {
  display: grid;
  grid-template-columns: 4.8rem minmax(0, 1fr);
  gap: 0.5rem;
  align-items: start;
}

.map-location-card dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.map-location-card dd {
  margin: 0;
  color: #405342;
  font-size: 0.86rem;
}

.map-disclaimer {
  padding: 0.8rem 0.9rem;
  border-radius: var(--radius-md);
  background: rgba(255, 241, 201, 0.72);
  color: #6c5017;
  font-weight: 800;
}

.database-related-layout {
  padding-top: 1rem;
}

.simple-data-wrap {
  margin-top: 0.85rem;
}

.simple-data-table {
  min-width: 680px;
}

.idea-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.75rem;
}

.idea-tile {
  display: grid;
  gap: 0.35rem;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.86);
  border: 1px solid var(--line);
}

.idea-tile strong {
  overflow-wrap: anywhere;
}

.idea-tile span {
  color: var(--muted);
  font-size: 0.92rem;
}

.game-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 1.6rem;
  padding: 0.22rem 0.52rem;
  border: 1px solid rgba(75, 94, 70, 0.18);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.82);
  color: #315c40;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: inset 0 -2px 0 rgba(75, 94, 70, 0.08);
}

.guide-card .game-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
}

.quick-route-dock {
  position: sticky;
  top: 72px;
  z-index: 8;
  width: min(1180px, calc(100% - 2rem));
  margin: -1.35rem auto 0;
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 248, 0.88);
  box-shadow: 0 8px 18px rgba(94, 81, 56, 0.08);
}

.quick-route-dock a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.6rem;
  padding: 0.45rem 0.72rem;
  border-radius: var(--radius-sm);
  color: #405342;
  font-weight: 900;
  transition: background 160ms ease, transform 160ms ease;
}

.quick-route-dock a:hover {
  background: var(--mint);
  transform: translateY(-1px);
}

.quest-board {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(420px, 1.28fr);
  gap: 1rem;
  align-items: stretch;
  padding: clamp(1rem, 3vw, 1.4rem);
  border: 1px solid rgba(80, 61, 36, 0.16);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 240, 184, 0.75), rgba(255, 224, 230, 0.45)),
    rgba(255, 253, 248, 0.8);
  box-shadow: 0 12px 26px rgba(94, 81, 56, 0.08);
}

.quest-board-copy {
  display: grid;
  align-content: center;
  gap: 0.85rem;
  padding: clamp(0.65rem, 2vw, 1rem);
}

.quest-board-copy h2,
.daily-preview-copy h2 {
  font-size: clamp(2rem, 4vw, 3.15rem);
}

.quest-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.quest-card {
  display: grid;
  gap: 0.7rem;
  align-content: start;
  min-height: 12rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.86);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.45);
  transition: transform 160ms ease, background 160ms ease;
}

.quest-card:hover {
  background: white;
  transform: translateY(-2px);
}

.quest-card strong {
  font-size: 1.12rem;
  line-height: 1.15;
}

.quest-card span:not(.game-badge) {
  color: var(--muted);
  font-size: 0.94rem;
}

.daily-preview-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(380px, 1.2fr);
  gap: 1rem;
  padding: clamp(1rem, 3vw, 1.4rem);
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(223, 243, 220, 0.74), rgba(220, 238, 247, 0.5)),
    rgba(255, 255, 255, 0.68);
}

.daily-preview-copy {
  display: grid;
  align-content: center;
  gap: 0.9rem;
  padding: clamp(0.5rem, 2vw, 1rem);
}

.daily-preview-list {
  display: grid;
  gap: 0.65rem;
}

.daily-preview-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.78rem;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.88);
  transition: transform 160ms ease, background 160ms ease;
}

.daily-preview-item:hover {
  background: white;
  transform: translateY(-1px);
}

.daily-preview-item strong,
.daily-preview-item small {
  display: block;
}

.daily-preview-item small {
  color: var(--muted);
  font-size: 0.9rem;
}


.map-fallback-layer,
.leaflet-map-canvas {
  position: absolute;
  inset: 0;
}

.map-fallback-layer {
  transition: opacity 180ms ease;
}

.leaflet-map-canvas {
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  background:
    linear-gradient(150deg, rgba(223, 243, 220, 0.95), rgba(220, 238, 247, 0.78) 48%, rgba(255, 240, 184, 0.72)),
    #eef8eb;
  transition: opacity 180ms ease;
}

.map-board.is-leaflet-ready .leaflet-map-canvas {
  opacity: 1;
  pointer-events: auto;
}

.map-board.is-leaflet-ready .map-fallback-layer {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.leaflet-container {
  font: inherit;
}

.leaflet-control-zoom {
  overflow: hidden;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius-sm) !important;
  box-shadow: 0 8px 16px rgba(43, 72, 55, 0.14) !important;
}

.leaflet-control-zoom a {
  color: var(--ink) !important;
  background: rgba(255, 253, 248, 0.92) !important;
}

.leaflet-region-zone {
  stroke-dasharray: 3 4;
}

.leaflet-region-label {
  width: auto !important;
  height: auto !important;
  pointer-events: none;
}

.leaflet-region-label span {
  display: inline-flex;
  padding: 0.38rem 0.58rem;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.82);
  color: rgba(32, 54, 42, 0.78);
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.leaflet-heartop-marker {
  display: grid !important;
  place-items: center;
  border: 2px solid white;
  border-radius: 999px;
  color: white;
  box-shadow: 0 8px 16px rgba(43, 72, 55, 0.24);
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.leaflet-heartop-marker span {
  font-size: 0.9rem;
  line-height: 1;
}

.leaflet-heartop-marker:hover,
.leaflet-heartop-marker.is-active {
  transform: scale(1.16);
  box-shadow: 0 10px 22px rgba(43, 72, 55, 0.3);
}

.icon {
  position: relative;
  display: inline-block;
  width: 1.2rem;
  height: 1.2rem;
}

.icon::before {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--coral-dark);
  font-weight: 900;
}

.icon-seed::before { content: "✦"; color: #5f9f70; }
.icon-coin::before { content: "$"; color: #a07822; }
.icon-check::before { content: "✓"; color: #467c55; }
.icon-alert::before { content: "!"; color: #b06c28; }
.icon-gift::before { content: "□"; color: var(--coral-dark); }
.icon-bowl::before { content: "◡"; color: #b06c28; }
.icon-fish::before { content: "◌"; color: #3f7da2; }
.icon-heart::before { content: "♡"; color: var(--coral-dark); }
.icon-paw::before { content: "•"; color: #5f9f70; }
.icon-home::before { content: "⌂"; color: #8e6a3a; }
.icon-pin::before { content: "⌖"; color: #3f7da2; }
.icon-spark::before { content: "✧"; color: var(--coral-dark); }
.icon-guide::before { content: "✦"; color: var(--coral-dark); }

@media (max-width: 980px) {
  .nav-shell {
    grid-template-columns: auto auto;
  }

  .nav-toggle {
    display: block;
    justify-self: end;
  }

  .site-search {
    display: none;
  }

  .nav-links {
    grid-column: 1 / -1;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0 0 1rem;
  }

  .nav-links.is-open {
    display: flex;
  }

  .hero,
  .dashboard-section,
  .feature-section,
  .browse-wiki-panel,
  .home-map-panel,
  .home-map-visual,
  .quest-board,
  .daily-preview-panel,
  .map-stage,
  .page-hero,
  .page-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 2.2rem;
  }

  .hero h1 {
    max-width: 12ch;
  }

  .dashboard-copy,
  .related-panel {
    position: static;
  }

  .popular-grid,
  .status-grid,
  .database-preview-grid,
  .quest-card-grid,
  .database-summary-grid,
  .item-gallery-grid,
  .guide-visual-grid,
  .player-info-grid,
  .route-step-grid,
  .beginner-location-grid,
  .faq-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .database-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .database-intro {
    flex-direction: column;
  }

  .map-card-panel,
  .home-map-cards {
    max-height: none;
  }
}

@media (max-width: 820px) {
  .database-shell {
    grid-template-columns: minmax(0, 1fr);
    overflow-x: clip;
  }

  .database-table-wrap {
    width: 100%;
    min-width: 0;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .database-table,
  .database-table thead,
  .database-table tbody,
  .database-table tr,
  .database-table th,
  .database-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .database-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .database-table tbody {
    display: grid;
    gap: 0;
  }

  .database-table tr[data-db-row] {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 254, 250, 0.96), rgba(255, 246, 230, 0.88));
    overflow: hidden;
    box-shadow: 0 4px 0 rgba(31, 65, 48, 0.08);
  }

  .database-table tr[data-db-row] td {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.32rem;
    padding: 0.86rem;
    border-bottom: 1px solid var(--line);
    background: transparent;
    line-height: 1.42;
  }

  .database-table tr[data-db-row] td::before {
    content: attr(data-label);
    color: #6a765f;
    font-size: 0.74rem;
    font-weight: 900;
  }

  .database-table tr[data-db-row] td:last-child {
    border-bottom: 0;
  }

  .database-table tr[data-db-row] {
    margin-bottom: 1rem;
  }

  .database-table tr[data-db-row].has-open-details {
    margin-bottom: 0;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
    box-shadow: none;
  }

  .database-table .database-detail-row {
    margin-bottom: 1rem;
    border-top: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }

  .database-table .database-detail-row > td {
    padding: 0.8rem;
    border-bottom: 0;
    background: #f5faef;
  }

  .database-table .database-detail-row > td::before {
    content: none;
  }

  .database-detail-row .row-detail-panel {
    padding: 0;
    border: 0;
    border-radius: 0;
  }
}

@media (max-width: 680px) {
  .hero,
  .section,
  .database-shell,
  .database-directory,
  .page-hero,
  .page-layout,
  .footer-inner,
  .footer-bottom,
  .nav-shell {
    width: min(100% - 1rem, 1180px);
  }

  .quick-route-dock {
    top: 72px;
    width: min(100% - 1rem, 1180px);
    margin-top: -0.85rem;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 16vw, 4.2rem);
  }

  .hero-actions,
  .correction-links {
    flex-direction: column;
  }

  .button,
  .chip-link {
    width: 100%;
  }

    .start-grid,
  .popular-grid,
  .database-preview-grid,
  .quest-card-grid,
  .database-summary-grid,
  .item-gallery-grid,
  .guide-visual-grid,
  .player-info-grid,
  .route-step-grid,
  .beginner-location-grid,
  .status-grid,
  .faq-list,
  .mini-grid,
  .browse-link-grid {
    grid-template-columns: 1fr;
  }

  .database-gallery-heading,
  .map-control-strip {
    grid-template-columns: 1fr;
  }

  .database-gallery-heading {
    flex-direction: column;
  }

  .browse-search {
    grid-template-columns: 1fr;
    border-radius: var(--radius-lg);
  }

  .start-grid .guide-card:first-child {
    min-height: 13rem;
  }

  .wiki-category-grid .guide-card {
    min-height: 16.2rem;
  }

  .guide-card-picture {
    min-height: 8rem;
  }

  .tool-row {
    flex-direction: column;
  }

  .database-toolbar {
    grid-template-columns: 1fr;
    gap: 0.78rem;
    padding: 0.9rem;
  }

  .database-count {
    white-space: normal;
  }

  .database-filter-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.42rem;
  }

  .map-board {
    min-height: 25rem;
  }

  .map-board-compact {
    min-height: 22rem;
  }

  .map-region {
    font-size: 0.72rem;
  }

  .map-pin {
    width: 1.85rem;
    height: 1.85rem;
  }

  .map-location-card {
    grid-template-columns: 1fr;
  }

  .map-card-panel {
    position: sticky;
    bottom: 0.65rem;
    z-index: 5;
    max-height: 48dvh;
    box-shadow: 0 -10px 22px rgba(43, 72, 55, 0.12);
  }

  .map-location-card dl div {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }

  .filter-chip {
    flex: 0 0 auto;
  }

  .database-table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .database-table,
  .database-table thead,
  .database-table tbody,
  .database-table tr,
  .database-table th,
  .database-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .database-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .database-table tbody {
    display: grid;
    gap: 1rem;
  }

  .database-table tr {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background:
      linear-gradient(180deg, rgba(255, 254, 250, 0.96), rgba(255, 246, 230, 0.88));
    overflow: hidden;
    box-shadow: 0 4px 0 rgba(31, 65, 48, 0.08);
  }

  .database-table td {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.32rem;
    border-bottom: 1px solid var(--line);
    padding: 0.86rem;
    background: transparent;
    line-height: 1.42;
  }

  .database-table td::before {
    content: attr(data-label);
    color: #6a765f;
    font-size: 0.74rem;
    font-weight: 900;
  }

  .database-table td:first-child {
    min-width: 0;
    padding: 1rem 0.86rem;
    background: rgba(255, 254, 250, 0.58);
  }

  .database-table td:first-child::before {
    color: #923144;
  }

  .primary-data-cell {
    align-items: center;
  }

  .database-table td:last-child {
    border-bottom: 0;
  }

  .database-preview-list li {
    grid-template-columns: 1fr;
  }

  .preview-row-main,
  .primary-data-cell,
  .item-gallery-card,
  .guide-visual-card,
  .daily-preview-item {
    grid-template-columns: 1fr;
  }
}

/* Unified card and thumbnail system. */
.home-guide-hub {
  display: grid;
  gap: 2.25rem;
}

.home-guide-groups {
  display: grid;
  gap: clamp(2.25rem, 5vw, 4rem);
}

.home-guide-group {
  display: grid;
  gap: 1rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.home-guide-group-heading {
  display: grid;
  gap: 0.45rem;
  max-width: 65ch;
}

.home-guide-group-heading h3 {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.home-guide-group-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.home-guide-group-grid .guide-card {
  min-height: 20rem;
}

.guide-card,
.database-preview-card,
.item-gallery-card,
.guide-visual-card,
.map-location-card,
.quest-card {
  min-width: 0;
  border-radius: var(--radius-md);
  box-shadow: var(--pixel-shadow), 0 6px 8px rgba(87, 62, 40, 0.06);
}

.guide-card:hover,
.database-preview-card:hover,
.item-gallery-card:hover,
.guide-visual-card:hover,
.map-location-card:hover,
.quest-card:hover {
  box-shadow: 0 5px 0 rgba(31, 65, 48, 0.11), 0 8px 8px rgba(87, 62, 40, 0.08);
}

.guide-card {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  align-content: stretch;
}

.guide-card .game-badge {
  z-index: 2;
}

.guide-card-picture,
.item-picture {
  width: 100%;
  min-height: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
}

.guide-card .card-copy {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 0.35rem;
}

.guide-card .card-copy strong {
  margin: 0;
}

.guide-card .card-copy > span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  text-wrap: pretty;
}

.guide-card-link {
  margin-top: auto;
}

.database-preview-heading,
.preview-row-main,
.item-gallery-title-row,
.item-gallery-actions {
  min-width: 0;
}

.guide-card:focus-visible,
.button:focus-visible,
.inline-data-link:focus-visible,
.related-links a:focus-visible,
.quest-card:focus-visible,
.map-location-card a:focus-visible {
  outline: 3px solid var(--coral-dark);
  outline-offset: 3px;
}

@media (max-width: 1040px) {
  .home-guide-group-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .home-guide-group-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .home-guide-hub {
    gap: 1.75rem;
  }

  .home-guide-groups {
    gap: 2.25rem;
  }

  .home-guide-group-grid {
    grid-template-columns: 1fr;
  }

  .home-guide-group-grid .guide-card {
    min-height: 0;
  }

  .guide-card-picture,
  .item-picture {
    height: min(52vw, 11rem);
    aspect-ratio: auto;
  }
}

.page-trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  max-width: 68ch;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(41, 75, 55, 0.18);
  color: #435f51;
  font-size: 0.86rem;
  line-height: 1.45;
}

.page-trust-line strong {
  color: var(--ink);
  font-weight: 800;
}

.page-trust-line span {
  color: #435f51;
}

@media (max-width: 560px) {
  .page-trust-line {
    display: grid;
    gap: 0.2rem;
    font-size: 0.82rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Noticeable cozy guidebook redesign layer. */
.site-header {
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.94), rgba(255, 246, 233, 0.9)),
    rgba(255, 253, 247, 0.92);
  box-shadow: 0 10px 26px rgba(64, 47, 34, 0.08);
}

.nav-shell {
  min-height: 76px;
}

.brand {
  font-size: 1.12rem;
  letter-spacing: 0;
}

.brand-mark {
  border-radius: 12px;
  background:
    linear-gradient(135deg, #f46a7f, #c9485d);
  box-shadow: var(--pixel-shadow), inset 0 0 0 2px rgba(255, 255, 255, 0.34);
}

.nav-links a {
  border: 1px solid transparent;
  border-radius: 12px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  border-color: rgba(223, 87, 107, 0.18);
  background: #fff0f2;
  box-shadow: inset 0 -2px 0 rgba(146, 49, 68, 0.08);
}

.site-search {
  border-radius: 14px;
  background: rgba(255, 253, 247, 0.9);
  box-shadow: inset 0 -2px 0 rgba(41, 75, 55, 0.06);
}

.site-search button,
.browse-search button {
  border-radius: 10px;
  background: var(--ink);
  box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.14);
}

.hero-game-hub {
  display: block;
  width: min(1240px, calc(100% - 2rem));
  min-height: auto;
  padding: clamp(1rem, 2vw, 1.5rem) 0 clamp(1.1rem, 2vw, 1.6rem);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(430px, 1.05fr);
  gap: clamp(1.1rem, 3vw, 2.25rem);
  align-items: stretch;
}

.hero-game-hub .hero-copy {
  align-content: center;
  min-height: 22rem;
  padding: clamp(1.05rem, 3vw, 2rem);
  border: 1px solid rgba(41, 75, 55, 0.14);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 249, 233, 0.96), rgba(255, 230, 236, 0.72)),
    var(--paper);
  box-shadow: var(--shadow);
}

.hero-game-hub .soft-label {
  border: 1px solid rgba(146, 49, 68, 0.12);
  border-radius: 10px;
  background: #fff7df;
  box-shadow: inset 0 -2px 0 rgba(146, 49, 68, 0.08);
}

.hero-game-hub h1 {
  max-width: 14ch;
  font-size: 3.9rem;
  line-height: 0.96;
}

.hero-subtitle {
  color: #415949;
}

.hero-search .browse-search,
.browse-search {
  border-radius: 16px;
  background: #fffefa;
  box-shadow: inset 0 -3px 0 rgba(41, 75, 55, 0.06), 0 8px 18px rgba(87, 62, 40, 0.08);
}

.hero-stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.hero-stat-strip > span {
  min-width: 0;
  padding: 0.62rem;
  border: 1px solid rgba(41, 75, 55, 0.14);
  border-radius: 12px;
  background: rgba(255, 253, 247, 0.72);
}

.hero-stat-strip strong,
.hero-stat-strip span {
  display: block;
}

.hero-stat-strip strong {
  font-size: 1.25rem;
  line-height: 1.1;
}

.hero-stat-strip span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.hero-guidebook {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0.9rem;
}

.hero-guidebook .hero-art {
  min-height: 20.5rem;
  border: 1px solid rgba(41, 75, 55, 0.14);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero-guidebook .hero-art::before {
  content: "";
  position: absolute;
  inset: 0.75rem;
  z-index: 1;
  border: 1px solid rgba(255, 253, 247, 0.45);
  border-radius: 18px;
  pointer-events: none;
}

.hero-guidebook .hero-art img {
  min-height: 100%;
}

.hero-notebook {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.hero-notebook a {
  display: grid;
  gap: 0.2rem;
  min-height: 4.65rem;
  align-content: center;
  padding: 0.9rem;
  border: 1px solid rgba(41, 75, 55, 0.14);
  border-radius: 14px;
  background: rgba(255, 253, 247, 0.92);
  box-shadow: var(--pixel-shadow);
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.hero-notebook a:hover {
  transform: translateY(-2px);
  background: white;
  box-shadow: 0 6px 0 rgba(31, 65, 48, 0.12), 0 12px 20px rgba(87, 62, 40, 0.08);
}

.hero-notebook strong,
.hero-notebook span {
  display: block;
}

.hero-notebook strong {
  font-size: 1.02rem;
  line-height: 1.15;
}

.hero-notebook span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.hero-game-hub .hero-actions .button {
  min-width: 0;
  padding-inline: 0.65rem;
  font-size: 0.87rem;
}

.hero-game-hub .hero-actions {
  gap: 0.5rem;
}

.button {
  border-radius: 12px;
  box-shadow: var(--pixel-shadow);
}

.button.primary {
  background: linear-gradient(180deg, #f2657a, #d34d62);
}

.button.secondary {
  background: #fffefa;
}

.button.text-link {
  border-radius: 0;
  box-shadow: none;
}

.section {
  width: min(1240px, calc(100% - 2rem));
}

.section-heading {
  position: relative;
}

.section-heading::before,
.database-gallery-heading::before,
.map-panel-heading::before {
  content: "";
  width: 3.8rem;
  height: 0.36rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--coral), var(--leaf), var(--butter));
}

.guide-card,
.status-card,
.database-preview-card,
.updated-data-card,
.quest-card,
.daily-preview-item,
.content-block,
.related-panel,
.guide-infobox,
.database-summary-grid div,
.player-info-card,
.route-step-card,
.idea-tile {
  border-color: rgba(41, 75, 55, 0.15);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 254, 250, 0.96), rgba(255, 249, 233, 0.88)),
    var(--surface);
  box-shadow: var(--pixel-shadow), 0 10px 18px rgba(87, 62, 40, 0.06);
}

.guide-card,
.database-preview-card,
.updated-data-card,
.quest-card,
.map-location-card,
.item-gallery-card,
.guide-visual-card {
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.guide-card:hover,
.database-preview-card:hover,
.updated-data-card:hover,
.quest-card:hover,
.map-location-card:hover,
.item-gallery-card:hover,
.guide-visual-card:hover {
  border-color: rgba(223, 87, 107, 0.24);
  background: #fffefa;
  box-shadow: 0 6px 0 rgba(31, 65, 48, 0.11), var(--lift-shadow);
}

.game-badge,
.status-pill,
.confidence-pill,
.category-chip,
.difficulty-chip,
.database-preview-meta span,
.daily-preview-item em,
.route-step-card em,
.tool-row em {
  border-radius: 9px;
  box-shadow: inset 0 -2px 0 rgba(41, 75, 55, 0.08);
  text-transform: none;
}

.item-thumb {
  border-radius: 12px;
  box-shadow: inset 0 -3px 0 rgba(41, 75, 55, 0.08), 0 8px 15px rgba(87, 62, 40, 0.08);
}

.item-thumb span {
  border-radius: 9px;
}

.quick-route-dock {
  border-radius: 16px;
  background: rgba(255, 253, 247, 0.94);
  box-shadow: 0 10px 22px rgba(64, 47, 34, 0.1);
}

.quick-route-dock a {
  border-radius: 10px;
}

.browse-wiki-panel,
.home-map-panel,
.quest-board,
.daily-preview-panel,
.database-item-gallery,
.map-experience,
.player-info-section,
.map-route-panels,
.tool-board {
  border-color: rgba(41, 75, 55, 0.15);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.78), rgba(255, 244, 225, 0.72)),
    linear-gradient(135deg, rgba(217, 241, 210, 0.52), rgba(214, 237, 247, 0.4));
  box-shadow: var(--shadow);
}

.database-preview-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 1.15rem;
}

.database-preview-card {
  min-height: 0;
  gap: 1.1rem;
  padding: 1.2rem;
}

.database-preview-heading {
  align-items: start;
}

.database-preview-list li {
  min-height: 0;
  border: 1px solid rgba(41, 75, 55, 0.1);
  border-radius: 12px;
  background: rgba(255, 254, 250, 0.84);
}

@media (min-width: 1120px) {
  .database-preview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.updated-data-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.page-hero {
  width: min(1240px, calc(100% - 2rem));
  border: 1px solid rgba(41, 75, 55, 0.14);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 249, 233, 0.94), rgba(217, 241, 210, 0.68)),
    var(--paper);
  box-shadow: var(--shadow);
}

.page-layout,
.database-shell,
.database-directory {
  width: min(1240px, calc(100% - 2rem));
}

.database-shell {
  gap: 1.15rem;
}

.database-intro {
  padding: 0.35rem 0;
}

.database-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 0.85rem;
}

.database-toolbar,
.database-table-wrap {
  border-color: rgba(41, 75, 55, 0.15);
  border-radius: 16px;
  background: rgba(255, 253, 247, 0.9);
  box-shadow: var(--pixel-shadow);
}

.database-toolbar {
  grid-template-columns: minmax(280px, 1.35fr) minmax(190px, 0.45fr) auto auto;
  gap: 0.9rem;
  padding: 1.08rem;
}

.database-toolbar label {
  gap: 0.38rem;
  font-size: 0.86rem;
}

.database-toolbar input,
.database-toolbar select,
.map-control-strip input {
  min-height: 50px;
  border-radius: 10px;
  background: #fffefa;
  font-size: 0.98rem;
}

.database-count {
  justify-self: start;
  padding: 0.45rem 0.58rem;
  border: 1px solid rgba(41, 75, 55, 0.1);
  border-radius: 10px;
  background: rgba(255, 254, 250, 0.78);
  color: #315c40;
}

.database-filter-row {
  gap: 0.62rem;
  padding: 0.12rem 0.05rem;
}

.filter-chip {
  min-height: 40px;
  border-radius: 10px;
  background: #fffefa;
  padding: 0.5rem 0.78rem;
  font-size: 0.9rem;
  box-shadow: inset 0 -2px 0 rgba(41, 75, 55, 0.06);
}

.filter-chip.active,
.filter-chip:hover {
  background: #17382d;
}

.database-table {
  min-width: 1060px;
  font-size: 0.96rem;
  line-height: 1.42;
}

.database-table th {
  background: #ecf7e6;
  color: #244332;
  padding-block: 0.9rem;
  letter-spacing: 0;
}

.database-table td {
  padding: 1rem 0.95rem;
  background: rgba(255, 254, 250, 0.56);
}

.database-table td:first-child {
  min-width: 17rem;
}

.primary-data-cell {
  gap: 0.82rem;
  align-items: center;
}

.primary-data-copy {
  min-width: 0;
  display: grid;
  gap: 0.16rem;
}

.primary-data-cell strong {
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.18;
}

.primary-data-cell small {
  color: #526151;
  font-size: 0.84rem;
  line-height: 1.3;
}

.primary-data-cell .item-thumb {
  width: 3rem;
  height: 3rem;
}

.primary-data-cell .item-thumb span {
  width: 2.08rem;
  height: 2.08rem;
  font-size: 1.15rem;
}

.database-table tbody tr:hover td {
  background: #fffefa;
}

.database-table-compact {
  min-width: 760px;
  table-layout: fixed;
}

.database-table-compact th:nth-child(1) {
  width: 32%;
}

.database-table-compact th:nth-child(2) {
  width: 22%;
}

.database-table-compact th:nth-child(3) {
  width: 30%;
}

.database-table-compact th:nth-child(4) {
  width: 16%;
}

.compact-field-stack {
  min-width: 0;
  display: grid;
  gap: 0.16rem;
  color: #405342;
  line-height: 1.32;
}

.compact-field-stack strong {
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.18;
  overflow-wrap: break-word;
}

.compact-field-stack small,
.compact-field-muted {
  color: #526151;
  font-size: 0.86rem;
}

.row-detail-toggle {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  min-height: 2.3rem;
  padding: 0.38rem 0.55rem;
  border: 1px solid rgba(41, 75, 55, 0.12);
  border-radius: 10px;
  background: rgba(255, 254, 250, 0.88);
  color: #315c40;
  font-size: 0.82rem;
  font-weight: 950;
  white-space: nowrap;
  cursor: pointer;
}

.row-detail-toggle em {
  color: #6a765f;
  font-size: 0.72rem;
  font-style: normal;
}

.row-detail-toggle[aria-expanded="true"] {
  border-color: rgba(66, 137, 93, 0.28);
  background: #ecf7e6;
}

.row-detail-toggle:focus-visible,
.row-detail-close:focus-visible {
  outline: 3px solid rgba(196, 72, 91, 0.32);
  outline-offset: 3px;
}

.database-detail-row > td {
  padding: 0 0.95rem 1rem;
  background: rgba(255, 254, 250, 0.82);
}

.database-table tbody .database-detail-row:hover td {
  background: rgba(255, 254, 250, 0.82);
}

.row-detail-panel {
  width: 100%;
  min-width: 0;
  padding: clamp(0.85rem, 2vw, 1.2rem);
  border: 1px solid rgba(41, 75, 55, 0.14);
  border-radius: 12px;
  background: #f5faef;
}

.row-detail-identity {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(41, 75, 55, 0.1);
}

.row-detail-identity .item-thumb {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
}

.row-detail-identity div {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.row-detail-identity span {
  color: #6a765f;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.row-detail-identity strong {
  color: #203d2d;
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

.row-detail-panel dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  min-width: 0;
  margin: 0;
}

.row-detail-panel dl div {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
  padding: 0.75rem;
  border-bottom: 1px solid rgba(41, 75, 55, 0.1);
}

.row-detail-panel dt {
  color: #6a765f;
  font-size: 0.72rem;
  font-weight: 950;
}

.row-detail-panel dd {
  margin: 0;
  color: #405342;
  font-size: 0.86rem;
  line-height: 1.34;
  overflow-wrap: anywhere;
}

.row-detail-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 0.85rem;
}

.database-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(41, 75, 55, 0.12);
  border-radius: 14px;
  background: rgba(255, 254, 250, 0.78);
}

.database-pagination span {
  color: #526151;
  font-size: 0.86rem;
  font-weight: 850;
}

.data-trust-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.36fr) minmax(0, 1fr);
  gap: 0.9rem;
  padding: 0.95rem;
  border: 1px solid rgba(41, 75, 55, 0.13);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 254, 250, 0.94), rgba(236, 247, 226, 0.68));
  box-shadow: inset 0 -3px 0 rgba(41, 75, 55, 0.05);
}

.data-trust-copy {
  display: grid;
  align-content: start;
  gap: 0.35rem;
}

.data-trust-copy strong {
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.1;
}

.data-trust-copy p {
  margin: 0;
  color: #405342;
  font-size: 0.9rem;
  line-height: 1.42;
}

.data-trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.55rem;
}

.data-trust-chip {
  min-width: 0;
  display: grid;
  gap: 0.18rem;
  padding: 0.62rem;
  border: 1px solid rgba(41, 75, 55, 0.1);
  border-radius: 12px;
  background: rgba(255, 254, 250, 0.86);
}

.data-trust-chip b {
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1.12;
}

.data-trust-chip em {
  color: #315c40;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 950;
}

.data-trust-chip small {
  color: #526151;
  font-size: 0.75rem;
  line-height: 1.28;
}

.data-trust-source {
  background: rgba(226, 240, 251, 0.76);
}

.data-trust-player {
  background: rgba(255, 232, 238, 0.62);
}

.data-trust-needs,
.data-trust-screenshot {
  background: rgba(255, 245, 214, 0.72);
}

.status-pill,
.confidence-pill {
  border: 1px solid transparent;
  box-shadow: none;
}

.status-pill-verified,
.status-pill-source {
  border-color: rgba(66, 137, 93, 0.18);
  background: #e8f6e2;
  color: #315c40;
}

.status-pill-player {
  border-color: rgba(223, 87, 107, 0.16);
  background: #ffeaf0;
  color: #7d344f;
}

.status-pill-needs,
.status-pill-screenshot,
.status-pill-estimated,
.status-pill-official {
  border-color: rgba(176, 124, 38, 0.18);
  background: #fff5d8;
  color: #70511b;
}

.copy-code-cell {
  align-items: center;
}

.copy-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.34rem;
  min-height: 38px;
  border: 1px solid rgba(23, 56, 45, 0.08);
  border-radius: 10px;
  background:
    linear-gradient(180deg, #234a3c, #17382d);
  box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.12), 0 5px 0 rgba(31, 65, 48, 0.12);
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.copy-mini:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.14), 0 7px 0 rgba(31, 65, 48, 0.1);
}

.copy-mini.is-copied {
  background:
    linear-gradient(180deg, #4d9a63, #31744a);
  color: white;
}

.copy-tip {
  justify-self: start;
  margin-top: 0.35rem;
}

.toast-stack {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  display: grid;
  gap: 0.55rem;
  pointer-events: none;
}

.copy-toast {
  min-width: 11rem;
  padding: 0.78rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(23, 56, 45, 0.94);
  color: white;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(33, 39, 30, 0.22);
  animation: toast-in 180ms ease both;
}

@keyframes toast-in {
  from {
    transform: translateY(0.6rem);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.home-map-panel {
  grid-template-columns: minmax(320px, 0.66fr) minmax(520px, 1.34fr);
}

.home-map-visual {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.58fr);
}

.map-experience {
  padding: clamp(0.9rem, 2vw, 1.25rem);
}

.map-control-strip {
  grid-template-columns: minmax(240px, 1fr) auto;
  padding: 0.2rem;
}

.map-stage {
  grid-template-columns: minmax(0, 1.46fr) minmax(320px, 0.54fr);
  gap: 1rem;
}

.map-board {
  min-height: 46rem;
  border-color: rgba(41, 75, 55, 0.16);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2) 25%, transparent 25%) 0 0 / 22px 22px,
    linear-gradient(225deg, rgba(255, 255, 255, 0.2) 25%, transparent 25%) 0 0 / 22px 22px,
    linear-gradient(150deg, rgba(213, 241, 203, 0.98), rgba(211, 237, 248, 0.85) 46%, rgba(255, 238, 171, 0.76)),
    #edf8e8;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.42), var(--pixel-shadow);
}

.map-board-compact {
  min-height: 31rem;
}

.map-region {
  border: 1px solid rgba(41, 75, 55, 0.12);
  border-radius: 10px;
  background: rgba(255, 253, 247, 0.84);
  box-shadow: inset 0 -2px 0 rgba(41, 75, 55, 0.08);
}

.map-pin {
  width: 2.15rem;
  height: 2.15rem;
  border-width: 3px;
  box-shadow: 0 5px 0 rgba(31, 65, 48, 0.12), 0 10px 20px rgba(43, 72, 55, 0.18);
}

.map-pin:hover,
.map-pin.is-active {
  box-shadow: 0 6px 0 rgba(31, 65, 48, 0.1), 0 14px 28px rgba(43, 72, 55, 0.24);
}

.map-zone-npcs { background: #df576b; }
.map-zone-fishing { background: #3f87aa; }
.map-zone-resources { background: #6f8d3f; }
.map-zone-wildlife { background: #765fa6; }
.map-zone-shops { background: #a9812c; }
.map-zone-events { background: #b259a7; }
.map-zone-houses { background: #5d9a66; }
.map-zone-routes { background: #2d8279; }
.map-zone-important { background: #526151; }
.map-zone-daily-route { background: #42895d; }

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.map-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-height: 2rem;
  padding: 0.32rem 0.55rem;
  border: 1px solid rgba(41, 75, 55, 0.12);
  border-radius: 10px;
  background: rgba(255, 254, 250, 0.82);
  color: #405342;
  font-size: 0.8rem;
  font-weight: 900;
}

.map-legend-dot {
  width: 0.78rem;
  height: 0.78rem;
  border: 2px solid white;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(41, 75, 55, 0.14);
}

.map-card-panel {
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 254, 250, 0.94), rgba(255, 249, 233, 0.9));
  box-shadow: var(--pixel-shadow);
}

.map-panel-heading {
  padding: 0.1rem 0.25rem;
}

.map-selected-card {
  display: grid;
  gap: 0.55rem;
  padding: 0.9rem;
  border: 1px solid rgba(223, 87, 107, 0.22);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 219, 229, 0.82), rgba(255, 249, 233, 0.9));
  box-shadow: inset 0 -3px 0 rgba(146, 49, 68, 0.07);
}

.map-selected-card:empty {
  display: none;
}

.map-selected-card strong {
  font-size: 1.04rem;
  line-height: 1.18;
}

.map-selected-card p {
  font-size: 0.9rem;
}

.map-selected-card dl {
  display: grid;
  gap: 0.35rem;
  margin: 0;
}

.map-selected-card dl div {
  display: grid;
  grid-template-columns: 5.6rem minmax(0, 1fr);
  gap: 0.5rem;
}

.map-selected-card dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.map-selected-card dd {
  margin: 0;
  color: #405342;
  font-size: 0.86rem;
}

.map-location-grid {
  gap: 0.6rem;
}

.map-location-card {
  border-color: rgba(41, 75, 55, 0.12);
  border-radius: 14px;
}

.map-location-card.is-active {
  border-color: rgba(223, 87, 107, 0.5);
  background: #fff8f2;
  box-shadow: 0 0 0 3px rgba(223, 87, 107, 0.12), var(--pixel-shadow);
}

.leaflet-map-canvas {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2) 25%, transparent 25%) 0 0 / 22px 22px,
    linear-gradient(225deg, rgba(255, 255, 255, 0.2) 25%, transparent 25%) 0 0 / 22px 22px,
    linear-gradient(150deg, rgba(213, 241, 203, 0.98), rgba(211, 237, 248, 0.85) 46%, rgba(255, 238, 171, 0.76)),
    #edf8e8;
}

.leaflet-region-label span {
  border: 1px solid rgba(41, 75, 55, 0.12);
  border-radius: 10px;
  background: rgba(255, 253, 247, 0.86);
  box-shadow: inset 0 -2px 0 rgba(41, 75, 55, 0.07);
}

.leaflet-heartop-marker {
  border-width: 3px;
  box-shadow: 0 5px 0 rgba(31, 65, 48, 0.12), 0 10px 20px rgba(43, 72, 55, 0.18);
}

.leaflet-heartop-marker.is-spiderfied {
  outline: 2px solid rgba(255, 253, 247, 0.86);
  outline-offset: 3px;
}

.leaflet-heartop-cluster {
  display: grid !important;
  place-items: center;
  width: 2.2rem !important;
  height: 2.2rem !important;
  border: 2px solid white;
  border-radius: 999px;
  background:
    radial-gradient(circle at 36% 30%, rgba(255, 255, 255, 0.42), transparent 28%),
    linear-gradient(180deg, #2d8279, #17382d);
  color: white;
  font-weight: 950;
  box-shadow: 0 6px 0 rgba(31, 65, 48, 0.14), 0 12px 22px rgba(43, 72, 55, 0.24);
}

.leaflet-heartop-cluster span {
  display: grid;
  place-items: center;
  min-width: 1.2rem;
  height: 1.2rem;
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.2);
  font-size: 0.78rem;
  line-height: 1;
}

.map-disclaimer {
  border: 1px solid rgba(122, 84, 24, 0.14);
  border-radius: 12px;
}

.daily-preview-panel {
  grid-template-columns: minmax(320px, 0.72fr) minmax(430px, 1.28fr);
}

.daily-preview-list {
  align-content: start;
}

.daily-preview-item {
  border-color: rgba(41, 75, 55, 0.12);
}

.related-links a {
  border: 1px solid rgba(41, 75, 55, 0.1);
  border-radius: 12px;
  background: rgba(255, 254, 250, 0.84);
}

.related-links a:hover {
  background: #fffefa;
}

@media (max-width: 1100px) {
  .database-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-layout,
  .home-map-panel,
  .daily-preview-panel {
    grid-template-columns: 1fr;
  }

  .hero-game-hub .hero-copy {
    min-height: auto;
  }

  .map-stage {
    grid-template-columns: 1fr;
  }

  .map-card-panel {
    max-height: none;
  }
}

@media (max-width: 680px) {
  .hero-game-hub,
  .section,
  .page-hero,
  .page-layout,
  .database-shell,
  .database-directory {
    width: min(100% - 1rem, 1240px);
  }

  .hero-layout,
  .hero-notebook,
  .hero-stat-strip,
  .database-preview-grid,
  .home-map-visual {
    grid-template-columns: 1fr;
  }

  .hero-game-hub h1 {
    max-width: 10.5ch;
    font-size: 3.15rem;
  }

  .hero-game-hub .hero-copy {
    padding: 1.15rem;
    border-radius: 18px;
  }

  .hero-guidebook .hero-art {
    min-height: 19rem;
  }

  .hero-notebook a {
    min-height: 5.35rem;
  }

  .database-preview-card {
    min-height: auto;
  }

  .database-toolbar,
  .map-control-strip {
    grid-template-columns: 1fr;
  }

  .map-board {
    min-height: 30rem;
    border-radius: 16px;
  }

  .map-board-compact {
    min-height: 24rem;
  }

  .map-card-panel {
    position: sticky;
    bottom: 0.55rem;
    max-height: 52dvh;
    border-radius: 16px;
  }

  .map-selected-card dl div {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }

  .toast-stack {
    right: 0.5rem;
    bottom: 0.5rem;
    left: 0.5rem;
  }

  .copy-toast {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .hero-game-hub {
    padding-top: 1rem;
  }

  .hero-game-hub h1 {
    max-width: 14ch;
    font-size: 3.15rem;
  }

  .hero-game-hub .hero-copy {
    min-height: auto;
    gap: 0.9rem;
  }

  .hero-search.browse-search,
  .browse-search.hero-search {
    grid-template-columns: minmax(0, 1fr) auto;
    border-radius: 16px;
  }

  .hero-search.browse-search button,
  .browse-search.hero-search button {
    min-width: 5.9rem;
    padding-inline: 0.75rem;
  }

  .hero-game-hub .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .hero-game-hub .hero-actions .button {
    width: auto;
    min-width: 0;
    min-height: 3.15rem;
    padding-inline: 0.55rem;
  }

  .hero-stat-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-stat-strip strong {
    font-size: 0.98rem;
  }

  .hero-stat-strip span {
    font-size: 0.7rem;
  }

  .hero-guidebook .hero-art {
    min-height: 12rem;
  }

  .hero-notebook {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-notebook a {
    min-height: 4.2rem;
    padding: 0.58rem;
  }

  .hero-notebook strong {
    font-size: 0.9rem;
  }

  .hero-notebook span {
    font-size: 0.7rem;
  }

  .database-shell {
    grid-template-columns: minmax(0, 1fr);
    overflow-x: clip;
  }

  .database-table-wrap {
    width: 100%;
    min-width: 0;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .database-table,
  .database-table thead,
  .database-table tbody,
  .database-table tr,
  .database-table th,
  .database-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .database-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .database-table tbody {
    display: grid;
    gap: 1rem;
  }

  .database-table tr {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background:
      linear-gradient(180deg, rgba(255, 254, 250, 0.96), rgba(255, 246, 230, 0.88));
    overflow: hidden;
    box-shadow: 0 4px 0 rgba(31, 65, 48, 0.08);
  }

  .database-table td {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.32rem;
    border-bottom: 1px solid var(--line);
    padding: 0.86rem;
    background: transparent;
    line-height: 1.42;
  }

  .database-table td::before {
    content: attr(data-label);
    color: #6a765f;
    font-size: 0.74rem;
    font-weight: 900;
  }

  .database-table td:first-child {
    min-width: 0;
    padding: 1rem 0.86rem;
    background: rgba(255, 254, 250, 0.58);
  }

  .database-table td:first-child::before {
    color: #923144;
  }

  .database-table td:last-child {
    border-bottom: 0;
  }

  .map-experience,
  .map-stage,
  .map-board,
  .map-card-panel {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .map-filter-row,
  .map-legend {
    max-width: 100%;
    overflow-x: auto;
  }

  .map-legend {
    align-items: center;
  }

  .map-legend div {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.45rem;
    min-width: max-content;
  }
}

/* Map and inventory upgrade pass. */
.item-gallery-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.item-gallery-card {
  grid-template-areas:
    "art body"
    "art meta"
    "art actions";
  grid-template-columns: minmax(9.75rem, 0.36fr) minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 16rem;
  padding: 1rem;
  border: 1px solid rgba(41, 75, 55, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 254, 250, 0.98), rgba(255, 246, 230, 0.94)),
    var(--surface);
}

.item-picture {
  grid-area: art;
  position: relative;
  min-height: 13.35rem;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(41, 75, 55, 0.14);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.44) 25%, transparent 25%) 0 0 / 18px 18px,
    linear-gradient(225deg, rgba(255, 255, 255, 0.34) 25%, transparent 25%) 0 0 / 18px 18px,
    linear-gradient(145deg, rgba(255, 219, 229, 0.84), rgba(217, 241, 210, 0.78));
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.36), inset 0 -6px 0 rgba(41, 75, 55, 0.08);
}

.item-picture-grid {
  position: absolute;
  inset: 0.65rem;
  border: 1px solid rgba(255, 254, 250, 0.48);
  border-radius: 11px;
  background:
    linear-gradient(rgba(255, 254, 250, 0.18) 1px, transparent 1px) 0 0 / 18px 18px,
    linear-gradient(90deg, rgba(255, 254, 250, 0.16) 1px, transparent 1px) 0 0 / 18px 18px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.18));
}

.item-picture-glow {
  position: absolute;
  width: 6.2rem;
  height: 6.2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  filter: blur(7px);
}

.item-picture-shadow {
  position: absolute;
  bottom: 3.55rem;
  width: 5.8rem;
  height: 1.1rem;
  border-radius: 999px;
  background: rgba(31, 65, 48, 0.13);
  filter: blur(5px);
}

.item-picture-frame {
  position: relative;
  z-index: 1;
  display: grid;
  width: 5.7rem;
  height: 5.7rem;
  place-items: center;
  border: 1px solid rgba(41, 75, 55, 0.12);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 254, 250, 0.95), rgba(255, 240, 175, 0.72));
  box-shadow: 0 6px 0 rgba(31, 65, 48, 0.12), 0 16px 26px rgba(87, 62, 40, 0.13);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.item-picture-frame span {
  font-size: 2.65rem;
  line-height: 1;
}

.item-picture-frame img {
  width: 100%;
  height: 100%;
  padding: 0.45rem;
  object-fit: contain;
}

.item-picture-authentic .item-picture-frame {
  width: min(82%, 9rem);
  height: min(68%, 8.5rem);
  border-radius: 14px;
  background: rgba(255, 254, 250, 0.82);
}

.item-picture-authentic .item-picture-shadow {
  width: 7.2rem;
}

.item-image-credit {
  margin: 0.85rem 0 0;
  color: #435f51;
  font-size: 0.82rem;
  line-height: 1.5;
}

.item-image-credit a {
  color: var(--coral-dark);
  font-weight: 800;
}

.item-picture-label {
  position: absolute;
  right: 0.58rem;
  bottom: 0.58rem;
  z-index: 2;
  max-width: calc(100% - 1.16rem);
  padding: 0.32rem 0.52rem;
  border: 1px solid rgba(41, 75, 55, 0.1);
  border-radius: 9px;
  background: rgba(255, 254, 250, 0.9);
  color: #315c40;
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1.1;
  box-shadow: inset 0 -2px 0 rgba(41, 75, 55, 0.07);
}

.item-picture-recipes,
.item-picture-daily-checklist {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.42) 25%, transparent 25%) 0 0 / 18px 18px,
    linear-gradient(145deg, rgba(255, 240, 175, 0.92), rgba(255, 217, 183, 0.78));
}

.item-picture-fishing,
.item-picture-map-locations,
.item-picture-birds {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.42) 25%, transparent 25%) 0 0 / 18px 18px,
    linear-gradient(145deg, rgba(214, 237, 247, 0.94), rgba(217, 241, 210, 0.74));
}

.item-picture-codes,
.item-picture-npc-gifts,
.item-picture-events {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.42) 25%, transparent 25%) 0 0 / 18px 18px,
    linear-gradient(145deg, rgba(255, 219, 229, 0.96), rgba(255, 240, 175, 0.74));
}

.item-gallery-copy {
  grid-area: body;
  min-width: 0;
  display: grid;
  gap: 0.72rem;
}

.item-gallery-title-row {
  display: grid;
  gap: 0.42rem;
  align-content: start;
}

.item-gallery-title-row .game-badge {
  position: static;
}

.item-gallery-card h3 {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.12;
}

.item-gallery-card p {
  color: #405342;
  font-size: 0.96rem;
  line-height: 1.44;
  text-wrap: pretty;
}

.item-stat-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.item-stat-row span {
  min-width: 0;
  display: grid;
  gap: 0.16rem;
  padding: 0.62rem;
  border: 1px solid rgba(41, 75, 55, 0.1);
  border-radius: 10px;
  background: rgba(255, 254, 250, 0.78);
  color: #405342;
  font-size: 0.84rem;
  line-height: 1.28;
}

.item-stat-row b {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
}

.item-gallery-meta {
  grid-area: meta;
  align-self: end;
}

.item-gallery-actions {
  grid-area: actions;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding-top: 0.12rem;
}

.item-gallery-actions .inline-data-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.35rem 0.58rem;
  border: 1px solid rgba(41, 75, 55, 0.12);
  border-radius: 9px;
  background: rgba(255, 254, 250, 0.78);
}

.item-gallery-card:hover .item-picture-frame {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 rgba(31, 65, 48, 0.13), 0 18px 30px rgba(87, 62, 40, 0.16);
}

.map-start-note {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.7rem;
  align-items: center;
  padding: 0.78rem 0.9rem;
  border: 1px solid rgba(66, 137, 93, 0.18);
  border-radius: 13px;
  background:
    linear-gradient(90deg, rgba(217, 241, 210, 0.86), rgba(255, 254, 250, 0.72));
  color: #315c40;
}

.map-start-note strong {
  padding: 0.18rem 0.44rem;
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.78);
  font-size: 0.82rem;
}

.map-start-note span {
  color: #405342;
  font-size: 0.9rem;
  font-weight: 750;
}

.map-route-planner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.72rem;
}

.map-plan-card {
  min-width: 0;
  display: grid;
  gap: 0.58rem;
  align-content: start;
  padding: 0.88rem;
  border: 1px solid rgba(41, 75, 55, 0.14);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 254, 250, 0.94), rgba(255, 249, 233, 0.86));
  box-shadow: var(--pixel-shadow);
}

.map-plan-card h3 {
  font-size: 1rem;
  line-height: 1.12;
}

.map-plan-card p {
  font-size: 0.86rem;
}

.map-plan-count {
  width: fit-content;
  padding: 0.24rem 0.46rem;
  border-radius: 9px;
  background: rgba(217, 241, 210, 0.78);
  color: #315c40;
  font-size: 0.72rem;
  font-weight: 950;
  box-shadow: inset 0 -2px 0 rgba(41, 75, 55, 0.07);
}

.map-plan-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
  align-items: center;
  margin-top: 0.1rem;
}

.map-plan-actions .filter-chip {
  min-height: 2.35rem;
}

.map-plan-fishing .map-plan-count { background: rgba(214, 237, 247, 0.82); color: #315c75; }
.map-plan-resources .map-plan-count { background: rgba(217, 241, 210, 0.86); color: #315c40; }
.map-plan-events .map-plan-count { background: rgba(255, 219, 229, 0.86); color: #923144; }
.map-plan-npcs .map-plan-count { background: rgba(255, 240, 175, 0.86); color: #6c5017; }

.map-type-summary {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding: 0.12rem 0 0.3rem;
}

.map-type-chip {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.42rem;
  align-items: center;
  min-height: 2.65rem;
  padding: 0.42rem 0.58rem;
  border: 1px solid rgba(41, 75, 55, 0.13);
  border-radius: 12px;
  background: rgba(255, 254, 250, 0.84);
  color: var(--ink);
  cursor: pointer;
  box-shadow: inset 0 -2px 0 rgba(31, 65, 48, 0.08);
}

.map-type-chip span {
  display: grid;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  border-radius: 9px;
  background: rgba(217, 241, 210, 0.72);
}

.map-type-chip strong {
  font-size: 0.8rem;
  white-space: nowrap;
}

.map-type-chip em {
  min-width: 1.7rem;
  padding: 0.16rem 0.34rem;
  border-radius: 999px;
  background: #17382d;
  color: white;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 900;
  text-align: center;
}

.map-control-strip {
  grid-template-columns: minmax(240px, 1fr) auto auto;
}

.map-reset-button {
  white-space: nowrap;
}

.map-selected-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  justify-content: space-between;
}

.map-selected-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.map-selected-actions .button,
.map-selected-actions .copy-mini {
  flex: 1 1 9rem;
}

.status-pill-neutral {
  background: #eaf5e6;
  color: #315c40;
}

.map-empty {
  display: grid;
  gap: 0.58rem;
  padding: 1rem;
  border: 1px dashed rgba(41, 75, 55, 0.26);
  border-radius: 14px;
  background: rgba(255, 254, 250, 0.82);
  color: #405342;
}

.map-empty[hidden] {
  display: none;
}

.leaflet-heartop-marker.is-active {
  outline: 3px solid rgba(255, 254, 250, 0.95);
  outline-offset: 4px;
}

.map-zone-insects { background: #8a66a8; }
.map-zone-birds { background: #b65e91; }
.map-zone-gatherables { background: #6c9a5c; }

.map-mobile-sheet {
  min-width: 0;
}

.map-mobile-sheet > summary {
  display: none;
}

.home-map-route-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.home-map-route-pills span {
  padding: 0.34rem 0.52rem;
  border: 1px solid rgba(41, 75, 55, 0.11);
  border-radius: 999px;
  background: rgba(255, 254, 250, 0.76);
  color: #405342;
  font-size: 0.8rem;
  font-weight: 900;
}

@media (max-width: 980px) {
  .item-gallery-grid {
    grid-template-columns: 1fr;
  }

  .item-gallery-card {
    grid-template-columns: minmax(7.8rem, 0.38fr) minmax(0, 1fr);
  }

  .map-route-planner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .item-gallery-grid {
    grid-template-columns: 1fr;
  }

  .item-gallery-card {
    grid-template-areas:
      "art"
      "body"
      "meta"
      "actions";
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .item-picture {
    grid-row: auto;
    min-height: 11.5rem;
  }

  .item-stat-row {
    grid-template-columns: 1fr;
  }

  .map-route-planner {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding-bottom: 0.18rem;
  }

  .map-plan-card {
    flex: 0 0 min(82vw, 18rem);
    scroll-snap-align: start;
  }

  .map-control-strip {
    grid-template-columns: 1fr;
  }

  .map-stage {
    align-items: stretch;
  }

  .map-mobile-sheet {
    display: grid;
    gap: 0.7rem;
  }

  .map-mobile-sheet > summary {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    justify-content: space-between;
    min-height: 3.1rem;
    padding: 0.72rem 0.85rem;
    border: 1px solid rgba(41, 75, 55, 0.14);
    border-radius: 13px;
    background: rgba(255, 254, 250, 0.9);
    color: var(--ink);
    cursor: pointer;
    box-shadow: var(--pixel-shadow);
  }

  .map-mobile-sheet > summary span {
    color: #923144;
    font-size: 0.76rem;
    font-weight: 950;
  }

  .map-mobile-sheet > summary strong {
    text-align: right;
    font-size: 0.86rem;
  }

  .map-card-panel {
    position: static;
    bottom: auto;
    z-index: auto;
    max-height: min(36rem, 70dvh);
    overflow: auto;
    box-shadow: var(--pixel-shadow);
  }
}

/* Map-only redesign pass. */
.map-filter-drawer {
  display: grid;
  gap: 0.8rem;
  padding: 0.85rem;
  border: 1px solid rgba(41, 75, 55, 0.13);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 254, 250, 0.96), rgba(240, 248, 230, 0.8));
  box-shadow: inset 0 -3px 0 rgba(41, 75, 55, 0.06);
}

.map-filter-drawer > summary {
  display: none;
}

.map-filter-drawer-body {
  display: grid;
  gap: 0.78rem;
}

.map-route-planner {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.map-plan-card {
  position: relative;
  min-height: 12.5rem;
  overflow: hidden;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 254, 250, 0.98), rgba(255, 249, 233, 0.92));
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.map-plan-card::after {
  content: "";
  position: absolute;
  inset: auto -18% -28% 38%;
  height: 5.5rem;
  border-radius: 999px;
  background: rgba(217, 241, 210, 0.46);
  transform: rotate(-8deg);
  pointer-events: none;
}

.map-plan-card:hover {
  transform: translateY(-2px);
  border-color: rgba(66, 137, 93, 0.26);
  box-shadow: 0 9px 0 rgba(31, 65, 48, 0.08), 0 18px 32px rgba(87, 62, 40, 0.14);
}

.map-plan-topline,
.map-plan-card h3,
.map-plan-card strong,
.map-plan-card p,
.map-plan-actions {
  position: relative;
  z-index: 1;
}

.map-plan-topline {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
}

.map-plan-icon {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 2px solid rgba(255, 254, 250, 0.9);
  border-radius: 11px;
  background: #42895d;
  color: white;
  font-weight: 950;
  box-shadow: 0 4px 0 rgba(31, 65, 48, 0.13);
}

.map-plan-card > strong {
  width: fit-content;
  padding: 0.18rem 0.42rem;
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.76);
  color: #405342;
  font-size: 0.74rem;
  font-weight: 950;
}

.map-plan-card .filter-chip.is-active-preset,
.map-type-chip.is-active-preset {
  border-color: rgba(23, 56, 45, 0.74);
  background: #17382d;
  color: white;
  box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.12), 0 0 0 3px rgba(66, 137, 93, 0.16);
}

.map-plan-money-route .map-plan-icon,
.map-type-money-route span {
  background: #a9812c;
}

.map-plan-resource-route .map-plan-icon,
.map-type-resource-route span {
  background: #6f8d3f;
}

.map-plan-fishing .map-plan-icon,
.map-type-fishing span {
  background: #3f87aa;
}

.map-plan-npcs .map-plan-icon,
.map-type-npcs span {
  background: #df576b;
}

.map-plan-events .map-plan-icon,
.map-type-events span {
  background: #b259a7;
}

.map-stage {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 1.1rem;
}

.map-board {
  min-height: clamp(36rem, 58vw, 50rem);
  border-radius: 18px;
}

.map-board-hud {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  pointer-events: none;
}

.map-board-hud span {
  padding: 0.32rem 0.5rem;
  border: 1px solid rgba(41, 75, 55, 0.12);
  border-radius: 9px;
  background: rgba(255, 254, 250, 0.88);
  color: #405342;
  font-size: 0.72rem;
  font-weight: 950;
  box-shadow: inset 0 -2px 0 rgba(41, 75, 55, 0.06);
}

.leaflet-heartop-marker {
  display: grid !important;
  place-items: center;
  width: 1.55rem !important;
  height: 1.55rem !important;
  border: 1.5px solid rgba(255, 254, 250, 0.96);
  border-radius: 999px 999px 999px 8px;
  color: white;
  transform: rotate(-45deg);
}

.leaflet-heartop-marker span {
  display: grid;
  place-items: center;
  transform: rotate(45deg);
  font-size: 0.72rem;
  line-height: 1;
}

.leaflet-heartop-marker:hover,
.leaflet-heartop-marker.is-active {
  transform: rotate(-45deg) scale(1.12);
}

.leaflet-heartop-marker.is-active {
  outline-color: rgba(255, 240, 175, 0.96);
  box-shadow: 0 6px 0 rgba(31, 65, 48, 0.14), 0 0 0 6px rgba(255, 240, 175, 0.28), 0 14px 28px rgba(43, 72, 55, 0.24);
}

.leaflet-heartop-marker[hidden],
.leaflet-heartop-cluster[hidden] {
  display: none !important;
  pointer-events: none !important;
}

.leaflet-heartop-cluster {
  border-radius: 13px !important;
}

.leaflet-heartop-cluster::after {
  content: "Grouped";
  position: absolute;
  left: 50%;
  top: calc(100% + 0.3rem);
  padding: 0.14rem 0.34rem;
  border-radius: 999px;
  background: rgba(255, 254, 250, 0.9);
  color: #315c40;
  font-size: 0.62rem;
  font-weight: 950;
  transform: translateX(-50%);
  white-space: nowrap;
}

.map-card-panel {
  gap: 0.78rem;
  max-height: min(50rem, calc(100dvh - 8rem));
}

.map-selected-card {
  border-radius: 16px;
}

.map-nearby-panel {
  display: grid;
  gap: 0.42rem;
}

.map-nearby-panel > span {
  color: #923144;
  font-size: 0.74rem;
  font-weight: 950;
}

.map-nearby-panel > div {
  display: grid;
  gap: 0.38rem;
}

.map-nearby-button {
  display: grid;
  gap: 0.1rem;
  width: 100%;
  padding: 0.48rem 0.55rem;
  border: 1px solid rgba(41, 75, 55, 0.12);
  border-radius: 11px;
  background: rgba(255, 254, 250, 0.82);
  color: #405342;
  text-align: left;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.map-nearby-button:hover {
  transform: translateY(-1px);
  border-color: rgba(66, 137, 93, 0.28);
  background: #fffefa;
}

.map-nearby-button strong {
  font-size: 0.84rem;
  line-height: 1.15;
}

.map-nearby-button small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.25;
}

.map-howto-panel,
.map-faq-panel {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.map-howto-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.72rem;
}

.map-howto-card {
  min-width: 0;
  display: grid;
  gap: 0.4rem;
  padding: 0.88rem;
  border: 1px solid rgba(41, 75, 55, 0.12);
  border-radius: 14px;
  background: rgba(255, 254, 250, 0.86);
  box-shadow: inset 0 -3px 0 rgba(41, 75, 55, 0.06);
}

.map-howto-card strong {
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.18;
}

.map-howto-card p {
  color: #405342;
  font-size: 0.9rem;
}

@media (max-width: 1100px) {
  .map-route-planner,
  .map-howto-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .map-stage {
    grid-template-columns: 1fr;
  }

  .map-board {
    min-height: 34rem;
  }
}

@media (max-width: 680px) {
  .map-experience {
    padding: 0.72rem;
    border-radius: 18px;
  }

  .map-route-planner {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding-bottom: 0.35rem;
  }

  .map-plan-card {
    flex: 0 0 min(84vw, 19rem);
    min-height: 12.2rem;
    scroll-snap-align: start;
  }

  .map-filter-drawer {
    padding: 0;
    border-radius: 16px;
    background: transparent;
    box-shadow: none;
  }

  .map-filter-drawer > summary {
    display: flex;
    gap: 0.65rem;
    align-items: center;
    justify-content: space-between;
    min-height: 3.1rem;
    padding: 0.72rem 0.85rem;
    border: 1px solid rgba(41, 75, 55, 0.14);
    border-radius: 13px;
    background: rgba(255, 254, 250, 0.92);
    color: var(--ink);
    cursor: pointer;
    box-shadow: var(--pixel-shadow);
  }

  .map-filter-drawer > summary span {
    color: #923144;
    font-size: 0.76rem;
    font-weight: 950;
  }

  .map-filter-drawer > summary strong {
    text-align: right;
    font-size: 0.84rem;
  }

  .map-filter-drawer-body {
    padding: 0.72rem 0;
  }

  .map-board {
    min-height: 30rem;
  }

  .map-board-hud {
    right: 0.5rem;
    bottom: 0.5rem;
    max-width: calc(100% - 1rem);
  }

  .leaflet-heartop-cluster::after {
    display: none;
  }

  .map-howto-grid {
    grid-template-columns: 1fr;
  }

  .map-card-panel {
    position: static;
    max-height: min(38rem, 72dvh);
    overflow: auto;
  }

  .map-nearby-button {
    min-height: 3.1rem;
  }
}

/* Map workspace redesign: app-like guide surface for the full map page. */
html.has-heartop-map-fullscreen,
html.has-heartop-map-fullscreen body {
  overflow: hidden;
}

.map-guide-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.6rem;
  border: 1px solid rgba(41, 75, 55, 0.12);
  border-radius: 14px;
  background: rgba(255, 254, 250, 0.78);
  box-shadow: inset 0 -3px 0 rgba(41, 75, 55, 0.05);
}

.map-guide-toc a {
  display: inline-flex;
  align-items: center;
  min-height: 2.15rem;
  padding: 0.35rem 0.58rem;
  border: 1px solid rgba(41, 75, 55, 0.12);
  border-radius: 10px;
  background: #fffefa;
  color: #315c40;
  font-size: 0.8rem;
  font-weight: 950;
  text-decoration: none;
}

.map-guide-toc a:hover {
  border-color: rgba(66, 137, 93, 0.32);
  color: #923144;
}

.map-entry-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 1rem;
  align-items: stretch;
  padding: 1rem;
  border: 1px solid rgba(41, 75, 55, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 254, 250, 0.98), rgba(226, 242, 221, 0.8)),
    radial-gradient(circle at 88% 12%, rgba(255, 209, 151, 0.38), transparent 34%);
  box-shadow: inset 0 -4px 0 rgba(41, 75, 55, 0.06), 0 12px 0 rgba(31, 65, 48, 0.05);
}

.map-entry-copy {
  display: grid;
  align-content: center;
  gap: 0.72rem;
  min-width: 0;
}

.map-entry-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 0.95;
  text-wrap: balance;
}

.map-entry-copy p {
  max-width: 58ch;
  margin: 0;
  color: #405342;
  font-size: 1rem;
  line-height: 1.55;
}

.map-entry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.map-entry-instructions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.52rem;
  padding: 0.75rem;
  border: 1px solid rgba(41, 75, 55, 0.12);
  border-radius: 15px;
  background: rgba(255, 254, 250, 0.72);
}

.map-entry-instructions span {
  min-width: 0;
  padding: 0.55rem 0.62rem;
  border: 1px solid rgba(41, 75, 55, 0.1);
  border-radius: 11px;
  background: rgba(255, 254, 250, 0.84);
  color: #405342;
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1.25;
}

.map-entry-instructions strong {
  color: #923144;
  font-size: 1.15rem;
}

.map-experience[data-map-progress-key]:not(.is-map-entered) .map-app-shell,
.map-experience[data-map-progress-key]:not(.is-map-entered) .map-disclaimer {
  display: none;
}

.map-experience[data-map-progress-key].is-map-entered .map-entry-panel {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 0.72rem 0.85rem;
  border-radius: 14px;
}

.map-experience[data-map-progress-key].is-map-entered .map-entry-copy {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.6rem 0.8rem;
}

.map-experience[data-map-progress-key].is-map-entered .map-entry-copy h2 {
  font-size: 1.15rem;
  line-height: 1.1;
}

.map-experience[data-map-progress-key].is-map-entered .map-entry-copy p {
  max-width: none;
  font-size: 0.82rem;
  line-height: 1.35;
}

.map-experience[data-map-progress-key].is-map-entered .map-entry-instructions,
.map-experience[data-map-progress-key].is-map-entered [data-map-enter] {
  display: none;
}

.map-app-shell {
  display: grid;
  grid-template-columns: minmax(255px, 0.55fr) minmax(0, 1.35fr) minmax(285px, 0.56fr);
  gap: 1rem;
  align-items: start;
}

.map-tool-sidebar,
.map-canvas-area,
.map-app-shell > .map-mobile-sheet > .map-card-panel {
  min-width: 0;
}

.map-tool-sidebar {
  position: sticky;
  top: 1rem;
  display: grid;
  gap: 0.78rem;
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  padding: 0.78rem;
  border: 1px solid rgba(41, 75, 55, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 254, 250, 0.98), rgba(247, 246, 224, 0.82));
  box-shadow: 0 10px 0 rgba(31, 65, 48, 0.06), 0 18px 30px rgba(87, 62, 40, 0.1);
}

.map-sidebar-section {
  display: grid;
  gap: 0.58rem;
  padding: 0.68rem;
  border: 1px solid rgba(41, 75, 55, 0.1);
  border-radius: 14px;
  background: rgba(255, 254, 250, 0.72);
}

.map-sidebar-section > strong,
.map-filter-drawer > summary strong {
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.15;
}

.map-tool-sidebar .map-control-strip {
  grid-template-columns: 1fr;
  gap: 0.55rem;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.map-control-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  align-items: center;
}

.map-tool-sidebar .map-filter-row {
  max-height: 12rem;
  overflow: auto;
  padding: 0.25rem 0.1rem;
}

.map-tool-sidebar .map-filter-drawer {
  padding: 0.68rem;
  border-radius: 14px;
  background: rgba(255, 254, 250, 0.72);
}

.map-tool-sidebar .map-filter-drawer > summary {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.map-tool-sidebar .map-filter-drawer > summary span {
  color: #923144;
  font-size: 0.74rem;
  font-weight: 950;
}

.map-route-drawer .map-filter-drawer-body,
.map-extra-tools-body {
  display: grid;
  gap: 0.58rem;
  padding-top: 0.68rem;
}

.map-help-panel {
  border-color: rgba(66, 137, 93, 0.16);
  background:
    linear-gradient(180deg, rgba(236, 247, 226, 0.82), rgba(255, 254, 250, 0.82));
}

.map-help-panel .map-tool-heading {
  align-items: start;
}

.map-category-guide {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
  max-height: 26rem;
  overflow: auto;
  padding-right: 0.12rem;
}

.map-category-card {
  display: grid;
  grid-template-columns: 1.9rem minmax(0, 1fr) auto;
  gap: 0.18rem 0.52rem;
  width: 100%;
  min-height: 4.2rem;
  padding: 0.62rem;
  border: 1px solid rgba(41, 75, 55, 0.12);
  border-radius: 12px;
  background: rgba(255, 254, 250, 0.86);
  color: #315c40;
  text-align: left;
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.map-category-card:hover,
.map-category-card.is-active-preset {
  transform: translateY(-1px);
  border-color: rgba(66, 137, 93, 0.38);
  background: linear-gradient(180deg, #fffefa, rgba(236, 247, 226, 0.8));
  box-shadow: inset 3px 0 0 rgba(66, 137, 93, 0.46);
}

.map-category-card > span {
  grid-row: 1 / span 2;
  display: grid;
  width: 1.9rem;
  height: 1.9rem;
  place-items: center;
  border-radius: 9px;
  background: #537f5a;
  color: white;
  font-size: 0.9rem;
  font-weight: 950;
}

.map-category-card strong {
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.15;
}

.map-category-card em {
  align-self: start;
  color: #923144;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

.map-category-card small {
  grid-column: 2 / -1;
  color: #405342;
  font-size: 0.75rem;
  font-weight: 780;
  line-height: 1.25;
}

.map-category-main-areas {
  border-color: rgba(66, 137, 93, 0.2);
  background: linear-gradient(180deg, rgba(236, 247, 226, 0.9), rgba(255, 254, 250, 0.92));
}

.map-tool-sidebar .map-route-planner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.54rem;
}

.map-tool-sidebar .map-plan-card {
  min-height: 0;
  padding: 0.68rem;
  border-radius: 13px;
}

.map-tool-sidebar .map-plan-card h3 {
  font-size: 0.96rem;
  line-height: 1.12;
}

.map-tool-sidebar .map-plan-card p {
  font-size: 0.82rem;
  line-height: 1.36;
}

.map-tool-sidebar .map-plan-actions {
  gap: 0.35rem;
}

.map-progress-panel {
  display: grid;
  gap: 0.48rem;
  padding: 0.72rem;
  border: 1px solid rgba(146, 49, 68, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 246, 247, 0.96), rgba(255, 254, 250, 0.88));
}

.map-progress-heading {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
  justify-content: space-between;
}

.map-progress-heading span {
  color: #923144;
  font-size: 0.74rem;
  font-weight: 950;
}

.map-progress-heading strong {
  color: var(--ink);
  font-size: 0.88rem;
}

.map-progress-meter {
  display: block;
  height: 0.52rem;
  overflow: hidden;
  border: 1px solid rgba(41, 75, 55, 0.14);
  border-radius: 999px;
  background: rgba(255, 254, 250, 0.78);
}

.map-progress-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #42895d, #e7a84f);
  transition: width 180ms ease;
}

.map-progress-panel p {
  margin: 0;
  color: #405342;
  font-size: 0.78rem;
  line-height: 1.35;
}

.map-timer-panel,
.map-help-panel {
  display: grid;
  gap: 0.5rem;
  padding: 0.72rem;
  border: 1px solid rgba(41, 75, 55, 0.12);
  border-radius: 14px;
  background: rgba(255, 254, 250, 0.78);
}

.map-tool-heading {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
  justify-content: space-between;
}

.map-tool-heading span,
.map-help-panel summary span {
  color: #923144;
  font-size: 0.74rem;
  font-weight: 950;
}

.map-tool-heading strong,
.map-help-panel summary strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.map-timer-buttons,
.map-timer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
}

.map-timer-buttons button {
  min-height: 2rem;
  padding: 0.25rem 0.48rem;
  border: 1px solid rgba(41, 75, 55, 0.13);
  border-radius: 9px;
  background: rgba(255, 254, 250, 0.9);
  color: #315c40;
  font-size: 0.78rem;
  font-weight: 950;
  cursor: pointer;
}

.map-timer-buttons button.active {
  background: #17382d;
  color: white;
}

.map-help-panel summary {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.map-help-panel ul {
  display: grid;
  gap: 0.36rem;
  margin: 0;
  padding-left: 1rem;
  color: #405342;
  font-size: 0.78rem;
  line-height: 1.35;
}

.map-canvas-area {
  display: grid;
  gap: 0.65rem;
}

.map-canvas-toolbar {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.72rem 0.8rem;
  border: 1px solid rgba(41, 75, 55, 0.12);
  border-radius: 15px;
  background: rgba(255, 254, 250, 0.84);
  box-shadow: inset 0 -3px 0 rgba(41, 75, 55, 0.05);
}

.map-canvas-toolbar div {
  display: grid;
  gap: 0.12rem;
}

.map-canvas-toolbar strong {
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.1;
}

.map-canvas-toolbar div span {
  color: #405342;
  font-size: 0.78rem;
  line-height: 1.25;
}

.map-canvas-toolbar > span {
  flex: 0 0 auto;
  padding: 0.34rem 0.52rem;
  border-radius: 10px;
  background: #17382d;
  color: white;
  font-size: 0.74rem;
  font-weight: 950;
}

.map-app-shell .map-board {
  min-height: clamp(38rem, 62vw, 55rem);
  border-radius: 20px;
}

.map-app-shell > .map-mobile-sheet {
  display: block;
}

.map-app-shell > .map-mobile-sheet > summary {
  display: none;
}

.map-app-shell > .map-mobile-sheet > .map-card-panel {
  max-height: calc(100dvh - 2rem);
}

.map-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  align-items: center;
  margin-top: 0.45rem;
}

.map-progress-toggle {
  display: inline-flex;
  gap: 0.34rem;
  align-items: center;
  min-height: 2rem;
  padding: 0.24rem 0.44rem;
  border: 1px solid rgba(41, 75, 55, 0.13);
  border-radius: 9px;
  background: rgba(255, 254, 250, 0.9);
  color: #315c40;
  font-size: 0.78rem;
  font-weight: 950;
  cursor: pointer;
}

.map-progress-toggle input {
  width: 1rem;
  height: 1rem;
  accent-color: #42895d;
}

.map-location-card.is-saved {
  border-color: rgba(66, 137, 93, 0.34);
  box-shadow: inset 0 -3px 0 rgba(66, 137, 93, 0.12), 0 8px 0 rgba(31, 65, 48, 0.05);
}

.map-saved-pill {
  padding: 0.2rem 0.4rem;
  border-radius: 999px;
  background: rgba(66, 137, 93, 0.14);
  color: #315c40;
  font-size: 0.72rem;
  font-weight: 950;
}

.map-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}

.map-guide-block {
  min-width: 0;
  display: grid;
  gap: 0.7rem;
  padding: 0.95rem;
  border: 1px solid rgba(41, 75, 55, 0.12);
  border-radius: 16px;
  background: rgba(255, 254, 250, 0.82);
  box-shadow: inset 0 -3px 0 rgba(41, 75, 55, 0.05);
}

.map-guide-block h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.12;
}

.map-guide-block p {
  margin: 0.25rem 0 0;
  color: #405342;
  font-size: 0.92rem;
  line-height: 1.45;
}

.map-mini-table-wrap {
  margin: 0;
}

.map-mini-table td,
.map-mini-table th {
  font-size: 0.82rem;
}

.map-tip-list {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.map-tip-list li {
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(41, 75, 55, 0.1);
  border-radius: 11px;
  background: rgba(255, 254, 250, 0.78);
  color: #405342;
  font-size: 0.9rem;
  line-height: 1.35;
}

.related-guide-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.map-region-field {
  left: 42%;
  top: 47%;
}

.map-region-onsen {
  right: 6%;
  top: 51%;
}

.map-zone-places,
.map-zone-main-areas,
.leaflet-heartop-marker.map-zone-places,
.leaflet-heartop-marker.map-zone-main-areas,
.map-legend-dot.map-zone-places,
.map-legend-dot.map-zone-main-areas {
  background: #537f5a;
}

.map-zone-animals,
.leaflet-heartop-marker.map-zone-animals,
.map-legend-dot.map-zone-animals {
  background: #8a6848;
}

.map-zone-bus-stops,
.leaflet-heartop-marker.map-zone-bus-stops,
.map-legend-dot.map-zone-bus-stops {
  background: #536d9b;
}

.map-plan-places .map-plan-icon,
.map-plan-main-areas .map-plan-icon,
.map-type-places span,
.map-type-main-areas span,
.map-category-places > span,
.map-category-main-areas > span {
  background: #537f5a;
}

.map-type-animals span,
.map-category-animals > span {
  background: #8a6848;
}

.map-type-bus-stops span,
.map-category-bus-stops > span {
  background: #536d9b;
}

.map-category-npcs > span {
  background: #df576b;
}

.map-category-shops > span {
  background: #a9812c;
}

.map-category-fishing > span {
  background: #3f87aa;
}

.map-category-insects > span {
  background: #7e6bb4;
}

.map-category-birds > span {
  background: #5f8a9f;
}

.map-category-resources > span {
  background: #6f8d3f;
}

.map-category-routes > span {
  background: #6e7b55;
}

.map-category-important > span {
  background: #923144;
}

.map-experience.is-map-fullscreen {
  position: fixed;
  inset: 0.75rem;
  z-index: 2000;
  max-height: calc(100dvh - 1.5rem);
  overflow: auto;
  background:
    linear-gradient(180deg, #fffefa 0%, #f6f5df 100%);
  box-shadow: 0 0 0 999px rgba(23, 56, 45, 0.42), 0 18px 50px rgba(31, 65, 48, 0.3);
}

.map-experience.is-map-fullscreen .map-app-shell {
  grid-template-columns: minmax(240px, 0.5fr) minmax(0, 1.45fr) minmax(280px, 0.54fr);
}

.map-experience.is-map-fullscreen .map-board {
  min-height: calc(100dvh - 12rem);
}

.database-finder {
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.database-finder-head,
.guide-hub-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.25rem;
}

.database-finder-head > div,
.guide-hub-intro > div {
  max-width: 68ch;
}

.database-finder-head h2,
.guide-hub-intro h2 {
  margin-bottom: 0.45rem;
  font-size: clamp(1.75rem, 3vw, 2.7rem);
}

.database-finder-head > span,
.database-progress {
  color: var(--coral-dark);
  font-weight: 850;
  white-space: nowrap;
}

.database-finder-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
  margin-top: 1.4rem;
}

.database-finder-search input {
  min-width: 0;
  min-height: 48px;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(41, 75, 55, 0.28);
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
  color: var(--ink);
}

.database-finder-search input:focus,
.collection-toggle:focus-visible,
.guide-hub-links a:focus-visible {
  outline: 3px solid rgba(223, 87, 107, 0.28);
  outline-offset: 2px;
}

.database-hub-filters {
  margin-top: 0.9rem;
}

.database-finder-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.database-finder-result {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  min-width: 0;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}

.database-finder-result[hidden] {
  display: none;
}

.database-finder-result:nth-child(odd) {
  padding-right: 1rem;
}

.database-finder-result:nth-child(even) {
  padding-left: 1rem;
  border-left: 1px solid var(--line);
}

.database-finder-result > div {
  min-width: 0;
}

.database-finder-result > div > span {
  color: var(--coral-dark);
  font-size: 0.76rem;
  font-weight: 850;
}

.database-finder-result h3 {
  margin: 0.08rem 0 0.2rem;
  font-size: 1rem;
}

.database-finder-result p {
  overflow: hidden;
  font-size: 0.86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.database-finder-result .inline-data-link {
  white-space: nowrap;
}

.database-finder-more {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.collection-toggle {
  flex: 0 0 auto;
  min-height: 34px;
  margin-left: auto;
  padding: 0.35rem 0.58rem;
  border: 1px solid rgba(66, 137, 93, 0.34);
  border-radius: var(--radius-sm);
  background: #f3faef;
  color: #245a3a;
  font-size: 0.76rem;
  font-weight: 850;
  cursor: pointer;
}

.collection-toggle:hover,
.collection-toggle.is-saved {
  background: var(--leaf);
  color: white;
}

.database-table tr.is-saved > td {
  background: rgba(217, 241, 210, 0.42);
}

.collection-clear {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.guide-hub-intro {
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.guide-hub-directory {
  border-top: 1px solid var(--line);
}

.guide-hub-group {
  display: grid;
  grid-template-columns: minmax(13rem, 0.55fr) minmax(0, 1.45fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(1.7rem, 4vw, 3.2rem) 0;
  border-bottom: 1px solid var(--line);
}

.guide-hub-group-copy h2 {
  margin-bottom: 0.55rem;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}

.guide-hub-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1.3rem;
}

.guide-hub-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  min-width: 0;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(41, 75, 55, 0.13);
}

.guide-hub-links a:hover strong,
.guide-hub-links a:hover b {
  color: var(--coral-dark);
}

.guide-hub-links span {
  display: grid;
  min-width: 0;
}

.guide-hub-links small {
  color: var(--muted);
  font-size: 0.82rem;
}

.guide-hub-links b {
  color: var(--leaf);
  font-size: 1.15rem;
}

.guide-workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.guide-workflow-grid article {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 254, 250, 0.78);
}

.guide-workflow-grid strong {
  display: block;
  margin-bottom: 0.3rem;
}

@media (max-width: 820px) {
  .database-finder-head,
  .guide-hub-intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .database-finder-results,
  .guide-hub-group,
  .guide-workflow-grid {
    grid-template-columns: 1fr;
  }

  .database-finder-result:nth-child(odd),
  .database-finder-result:nth-child(even) {
    padding-right: 0;
    padding-left: 0;
    border-left: 0;
  }

  .guide-hub-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .map-app-shell,
  .map-experience.is-map-fullscreen .map-app-shell {
    grid-template-columns: minmax(245px, 0.45fr) minmax(0, 1fr);
  }

  .map-app-shell > .map-mobile-sheet {
    grid-column: 1 / -1;
  }

  .map-tool-sidebar {
    position: static;
    max-height: none;
  }

  .map-app-shell > .map-mobile-sheet > .map-card-panel {
    max-height: 42rem;
  }
}

@media (max-width: 820px) {
  .map-entry-panel {
    grid-template-columns: 1fr;
  }

  .map-experience[data-map-progress-key].is-map-entered .map-entry-panel,
  .map-experience[data-map-progress-key].is-map-entered .map-entry-copy {
    grid-template-columns: 1fr;
  }

  .map-entry-instructions {
    grid-template-columns: 1fr;
  }

  .map-guide-toc {
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .map-guide-toc a {
    flex: 0 0 auto;
  }

  .map-app-shell,
  .map-experience.is-map-fullscreen .map-app-shell,
  .map-guide-grid {
    grid-template-columns: 1fr;
  }

  .map-canvas-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .map-app-shell .map-board,
  .map-experience.is-map-fullscreen .map-board {
    min-height: min(32rem, 72dvh);
  }

  .map-app-shell > .map-mobile-sheet > summary {
    display: flex;
    gap: 0.65rem;
    align-items: center;
    justify-content: space-between;
    min-height: 3.1rem;
    padding: 0.72rem 0.85rem;
    border: 1px solid rgba(41, 75, 55, 0.14);
    border-radius: 13px;
    background: rgba(255, 254, 250, 0.92);
    color: var(--ink);
    cursor: pointer;
    box-shadow: var(--pixel-shadow);
  }

  .map-app-shell > .map-mobile-sheet > summary span {
    color: #923144;
    font-size: 0.76rem;
    font-weight: 950;
  }

  .map-app-shell > .map-mobile-sheet > summary strong {
    text-align: right;
    font-size: 0.84rem;
  }

  .map-app-shell > .map-mobile-sheet > .map-card-panel {
    max-height: min(38rem, 72dvh);
  }

  .map-experience.is-map-fullscreen {
    inset: 0.35rem;
    max-height: calc(100dvh - 0.7rem);
    padding: 0.6rem;
  }
}

@media (max-width: 560px) {
  .form-field-row {
    grid-template-columns: 1fr;
  }

  .official-resource-links a {
    align-items: flex-start;
    flex-direction: column;
  }

  .official-resource-links span {
    text-align: left;
  }

  .database-finder-search,
  .database-finder-result {
    grid-template-columns: 1fr;
  }

  .database-finder-result .item-thumb {
    display: none;
  }

  .database-finder-result .inline-data-link {
    justify-self: start;
  }

  .primary-data-cell {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .collection-toggle {
    width: 100%;
    margin-left: 0;
  }

  .map-tool-sidebar {
    padding: 0.62rem;
    border-radius: 16px;
  }

  .map-entry-panel {
    padding: 0.78rem;
    border-radius: 16px;
  }

  .map-entry-copy h2 {
    font-size: 2.1rem;
  }

  .map-tool-sidebar .map-filter-row {
    max-height: 9.8rem;
  }

  .map-category-guide {
    max-height: 16rem;
  }

  .map-category-card {
    grid-template-columns: 1.8rem minmax(0, 1fr);
  }

  .map-category-card em {
    grid-column: 2;
  }

  .map-category-card small {
    grid-column: 1 / -1;
  }

  .map-canvas-toolbar > span {
    width: 100%;
    text-align: center;
  }

  .map-app-shell .map-board {
    min-height: 28rem;
  }

  .map-guide-block {
    padding: 0.78rem;
  }
}

@media (max-width: 680px) {
  .guide-card-picture {
    min-height: 9.2rem;
  }

  .database-table-compact {
    min-width: 0;
  }

  .database-table-compact tr {
    display: grid;
    gap: 0;
  }

  .database-table-compact td {
    min-width: 0;
  }

  .row-detail-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .row-detail-panel dl {
    grid-template-columns: 1fr;
  }

  .data-trust-panel {
    grid-template-columns: 1fr;
  }

  .data-trust-grid {
    grid-template-columns: 1fr;
  }

  .database-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .database-pagination .button {
    width: 100%;
  }

  .map-help-panel .map-tool-heading {
    flex-direction: column;
    gap: 0.18rem;
  }
}

/* Compact item gallery: the full record remains in the table and inline details. */
.item-gallery-grid {
  grid-template-columns: repeat(auto-fill, minmax(9.75rem, 1fr));
  gap: 0.78rem;
}

.item-gallery-card {
  grid-template-areas:
    "art"
    "body"
    "meta"
    "actions";
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto auto auto;
  align-content: start;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  gap: 0.45rem;
  padding: 0.65rem;
  border-radius: 12px;
  box-shadow: 0 4px 0 rgba(31, 65, 48, 0.1);
}

.item-picture {
  aspect-ratio: 1;
  min-height: 0;
  border-radius: 9px;
}

.item-picture-icon {
  aspect-ratio: 1;
}

.item-picture-portrait {
  aspect-ratio: 4 / 5;
}

.item-picture-grid,
.item-picture-glow,
.item-picture-shadow {
  display: none;
}

.item-picture-frame,
.item-picture-authentic .item-picture-frame {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
}

.item-picture-frame img {
  padding: 0.65rem 0.65rem 1.9rem;
  object-fit: contain;
}

.item-picture-portrait .item-picture-frame img {
  padding: 0.4rem 0.4rem 1.75rem;
}

.item-picture-missing {
  padding: 0.5rem;
  color: #526151;
  font-size: 0.74rem !important;
  font-weight: 850;
  line-height: 1.25 !important;
  text-align: center;
}

.item-picture-landscape {
  aspect-ratio: 16 / 9;
}

.item-picture-landscape .item-picture-frame img {
  padding: 0.3rem 0.3rem 1.65rem;
}

.item-gallery-copy {
  gap: 0.38rem;
  padding-top: 0.42rem;
}

.item-gallery-card h3 {
  min-height: 2.45em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 1rem;
  line-height: 1.22;
}

.item-stat-row {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.item-stat-row span {
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 0.78rem;
}

.item-gallery-meta {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  margin-top: 0.15rem;
  padding-top: 0.42rem;
  font-size: 0.72rem;
}

.item-gallery-meta span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-gallery-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.35rem;
  margin-top: 0.12rem;
}

.item-gallery-actions .inline-data-link {
  min-height: 2.25rem;
  justify-content: center;
  text-align: center;
}

.item-gallery-card:hover .item-picture-frame {
  transform: none;
  box-shadow: none;
}

@media (max-width: 540px) {
  .item-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
