:root {
  color-scheme: light;
  --ink: #202633;
  --muted: #5d6677;
  --line: #d9e3df;
  --paper: #ffffff;
  --soft: #f6faf8;
  --mint: #d8f4e8;
  --teal: #0b7f74;
  --teal-dark: #075f58;
  --coral: #ec6b5e;
  --gold: #f0b84a;
  --blue: #4f8fcd;
  --paper-warm: #fff6de;
  --paper-cream: #fffaf0;
  --paper-edge: #e3ccb4;
  --leaf: #8fbd83;
  --sky: #7ec6cf;
  --treat: #f38c72;
  --berry: #d98aa3;
  --wood: #6b4a35;
  --stitch: rgba(126, 93, 68, 0.22);
  --shadow: 0 18px 45px rgba(31, 50, 70, 0.14);
  --cozy-shadow: 0 14px 28px rgba(126, 93, 68, 0.12);
  --cozy-soft-shadow: 0 8px 18px rgba(126, 93, 68, 0.08);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--ink);
  color: #fff;
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 15;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(217, 227, 223, 0.9);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(1220px, calc(100% - 32px));
  min-height: 66px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 9px 25px rgba(11, 127, 116, 0.22);
}

.brand-logo {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 12px;
  box-shadow: 0 9px 25px rgba(11, 127, 116, 0.18);
}

.brand span:last-child {
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.nav-links a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  padding: 0.45rem 0.75rem;
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: var(--mint);
  color: var(--teal-dark);
}

.menu-button {
  display: none;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.hero {
  min-height: 82vh;
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: #132d35;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(13, 31, 38, 0.86), rgba(13, 31, 38, 0.56) 42%, rgba(13, 31, 38, 0.16) 72%), url("/assets/heartopia-guide-hero.png");
  background-size: cover;
  background-position: center;
}

.hero-inner {
  position: relative;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 4rem 0 5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #eefcf8;
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--gold);
}

.hero h1,
.page-hero h1 {
  max-width: 760px;
  margin: 0.7rem 0 1rem;
  font-size: 3rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero p,
.page-hero p {
  max-width: 660px;
  margin: 0 0 1.35rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.72rem 1rem;
  background: var(--teal);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(11, 127, 116, 0.22);
}

.button:hover {
  background: var(--teal-dark);
}

.button.secondary {
  background: #fff;
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.64);
  box-shadow: none;
}

.hero .button.secondary {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.hero .button.secondary:hover {
  background: rgba(255, 255, 255, 0.24);
}

.hero-strip {
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.strip-grid {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
}

.strip-item {
  padding: 1rem;
  background: var(--soft);
}

.strip-item strong {
  display: block;
  font-size: 1.15rem;
}

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

.section,
.page-section {
  padding: 4.25rem 0;
}

.section.alt,
.page-section.alt {
  background: var(--soft);
}

.section-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.4rem;
}

.section-header h2,
.content h2 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.18;
  letter-spacing: 0;
}

.section-header p,
.content .lede {
  max-width: 690px;
  margin: 0.5rem 0 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 1.15rem;
  box-shadow: 0 10px 28px rgba(32, 38, 51, 0.05);
}

.card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  line-height: 1.25;
}

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

.card a {
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.tag {
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 0.25rem 0.65rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  background: #fff3d7;
  color: #6d4b00;
  font-size: 0.86rem;
  font-weight: 800;
}

.status.good {
  background: #daf6ea;
  color: #075f58;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

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

th {
  background: var(--soft);
  color: var(--ink);
  font-size: 0.86rem;
  text-transform: uppercase;
}

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

td {
  overflow-wrap: anywhere;
}

.ad-slot {
  min-height: 112px;
  display: grid;
  place-items: center;
  border: 1px dashed #b7c8c3;
  border-radius: 8px;
  background: #fbfdfc;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.page-hero {
  background: linear-gradient(135deg, #12363f, #0a6c65 58%, #4f8fcd);
  color: #fff;
  padding: 4.5rem 0 4rem;
}

.page-hero .section-inner {
  display: grid;
  gap: 1rem;
}

.content {
  max-width: 840px;
}

.content p,
.content li {
  color: var(--muted);
}

.content h2 {
  margin-top: 2.2rem;
  margin-bottom: 0.7rem;
}

.content h3 {
  margin: 1.6rem 0 0.4rem;
}

.callout {
  border-left: 4px solid var(--coral);
  background: #fff8f6;
  padding: 1rem;
  border-radius: 0 8px 8px 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 1.5rem;
  align-items: start;
}

.split > * {
  min-width: 0;
}

.checklist {
  padding-left: 1.1rem;
}

.checklist li {
  margin: 0.55rem 0;
}

.tool-panel {
  display: grid;
  gap: 0.85rem;
}

.tool-panel label {
  display: grid;
  gap: 0.35rem;
}

.tool-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
}

.tool-row input,
.tool-row select,
.tool-row textarea,
.tool-panel textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.65rem 0.75rem;
  font: inherit;
}

.tool-row textarea,
.tool-panel textarea {
  min-height: 110px;
}

.result-box {
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  padding: 0.9rem;
  color: var(--ink);
}

.site-footer {
  background: #16202b;
  color: rgba(255, 255, 255, 0.82);
  padding: 3rem 0;
}

.footer-grid {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 2rem;
}

.site-footer a {
  color: #fff;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

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

.small {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer .small {
  color: rgba(255, 255, 255, 0.68);
}

@media (max-width: 1220px) {
  .nav {
    flex-wrap: wrap;
  }

  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 0.85rem;
  }

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

  .nav-links a {
    justify-content: center;
  }
}

@media (max-width: 860px) {
  .hero {
    min-height: 78vh;
  }

  .hero::before {
    background-image: linear-gradient(180deg, rgba(13, 31, 38, 0.88), rgba(13, 31, 38, 0.55)), url("/assets/heartopia-guide-hero.png");
    background-position: 58% center;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 2.2rem;
  }

  .strip-grid,
  .grid.two,
  .grid.three,
  .split,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-header {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  .nav,
  .section-inner,
  .strip-grid,
  .footer-grid {
    width: min(calc(100% - 24px), 1120px);
  }

  .brand span:last-child {
    white-space: normal;
  }

  .hero-inner {
    width: min(100% - 24px, 1120px);
    padding: 3rem 0 4rem;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 1.92rem;
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .section,
  .page-section {
    padding: 3rem 0;
  }

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

  .ad-slot {
    min-height: 96px;
  }
}

/* Data-rich wiki layout inspired by the reference Heartopia fan hubs. */
.wiki-body {
  background:
    linear-gradient(180deg, rgba(255, 246, 239, 0.82), rgba(247, 253, 255, 0.94) 34%, rgba(255, 249, 240, 0.88)),
    #fffaf4;
}

.top-note {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.78);
  color: #5f675f;
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: 0 8px 28px rgba(103, 72, 48, 0.09);
}

.wiki-hero {
  position: relative;
  min-height: 470px;
  display: grid;
  place-items: center;
  overflow: hidden;
  text-align: center;
  background: #fcefe5;
}

.wiki-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(255, 250, 244, 0.7), rgba(255, 249, 242, 0.92)),
    url("/assets/heartopia-guide-hero.png");
  background-position: center;
  background-size: cover;
  filter: saturate(0.9);
}

.wiki-hero-inner {
  position: relative;
  width: min(980px, calc(100% - 32px));
  padding: 4rem 0 3.2rem;
}

.wiki-hero h1 {
  max-width: 760px;
  margin: 0.8rem auto 0.75rem;
  color: #5b402f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.15rem;
  line-height: 1.02;
  letter-spacing: 0;
  text-wrap: balance;
}

.wiki-hero h1 span {
  color: #ff7a66;
}

.wiki-hero p {
  max-width: 720px;
  margin: 0 auto 1.25rem;
  color: #6d655e;
  font-size: 1.02rem;
  line-height: 1.7;
}

.map-hero-compact {
  min-height: 330px;
}

.map-hero-compact .wiki-hero-inner {
  padding: 2.4rem 0 2rem;
}

.map-hero-compact .mini-stats {
  margin-top: 0.9rem;
}

.map-hero-compact .mini-stat {
  padding: 0.65rem;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pastel-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 125, 103, 0.36);
  border-radius: 8px;
  padding: 0.68rem 1.05rem;
  background: #ff8f76;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(255, 126, 103, 0.2);
}

.pastel-button.alt {
  background: rgba(255, 255, 255, 0.86);
  color: #415b69;
  border-color: rgba(120, 179, 201, 0.42);
  box-shadow: 0 12px 24px rgba(89, 132, 148, 0.1);
}

.platform-row,
.stat-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.15rem;
}

.data-pill {
  border: 1px solid rgba(122, 166, 148, 0.28);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  background: rgba(255, 255, 255, 0.74);
  color: #5c6b66;
  font-size: 0.85rem;
  font-weight: 800;
}

.wiki-section {
  padding: 3.5rem 0;
}

.wiki-section.tint-peach {
  background: #fff4ea;
}

.wiki-section.tint-mint {
  background: #f2fbf5;
}

.wiki-section.tint-blue {
  background: #eef8ff;
}

.wiki-section.tint-lilac {
  background: linear-gradient(180deg, #f4e5ff, #fff0fb);
}

.wiki-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.center-head {
  max-width: 760px;
  margin: 0 auto 1.6rem;
  text-align: center;
}

.center-head h2,
.wiki-title {
  margin: 0;
  color: #654633;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1.18;
  letter-spacing: 0;
}

.center-head p,
.source-note {
  color: #746d66;
}

.source-note {
  max-width: 820px;
  margin: 0.9rem auto 0;
  font-size: 0.9rem;
  text-align: center;
}

.route-grid,
.tool-grid,
.hobby-grid,
.popular-grid,
.snapshot-grid,
.database-grid {
  display: grid;
  gap: 1rem;
}

.route-grid {
  grid-template-columns: repeat(3, 1fr);
}

.tool-grid,
.popular-grid {
  grid-template-columns: repeat(4, 1fr);
}

.hobby-grid {
  grid-template-columns: repeat(7, 1fr);
}

.snapshot-grid {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
}

.database-grid {
  grid-template-columns: repeat(2, 1fr);
}

.wiki-card,
.route-card,
.tool-tile,
.hobby-tile,
.popular-link,
.code-card {
  min-width: 0;
  border: 1px solid rgba(214, 198, 184, 0.7);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 28px rgba(122, 89, 66, 0.08);
}

.route-card {
  padding: 1.1rem;
}

.route-card:nth-child(1) {
  background: #fff0e9;
}

.route-card:nth-child(2) {
  background: #ecf8ec;
}

.route-card:nth-child(3) {
  background: #fff8e8;
}

.route-card:nth-child(4) {
  background: #eef8ff;
}

.route-card:nth-child(5) {
  background: #fff1f7;
}

.route-card:nth-child(6) {
  background: #f5f0ff;
}

.route-card h3,
.wiki-card h3,
.tool-tile h3,
.popular-link strong,
.code-card strong {
  margin: 0 0 0.4rem;
  color: #5a4338;
  font-size: 1rem;
  line-height: 1.25;
}

.route-card p,
.wiki-card p,
.tool-tile p,
.popular-link span,
.code-card p {
  margin: 0;
  color: #756d66;
  font-size: 0.92rem;
  line-height: 1.55;
}

.icon-badge {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  margin-bottom: 0.65rem;
  background: rgba(255, 255, 255, 0.75);
  color: #ff7a66;
  font-weight: 900;
}

.code-stack {
  display: grid;
  gap: 0.7rem;
}

.code-card {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.72rem 0.85rem;
}

.code-reward-summary {
  display: grid;
  gap: 0.42rem;
}

.code-reward-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.reward-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(214, 198, 184, 0.72);
  padding: 0.18rem 0.55rem;
  background: #fffaf4;
  color: #66584f;
  font-size: 0.78rem;
  font-weight: 800;
}

.reward-chip::before {
  content: "";
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: #9fbf83;
  box-shadow: inset 0 0 0 1px rgba(61, 57, 50, 0.08);
}

.reward-chip.stars::before {
  background: #ffd36e;
}

.reward-chip.materials::before {
  background: #9ac8e8;
}

.reward-chip.gold::before {
  background: #e7a84a;
}

.reward-chip.boosters::before {
  background: #91c7a3;
}

.reward-chip.event::before {
  background: #f58b79;
}

.code-token {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  width: fit-content;
  max-width: 100%;
  border-radius: 6px;
  padding: 0.2rem 0.55rem;
  background: #6a513e;
  color: #fff;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.83rem;
  overflow-wrap: anywhere;
}

.copy-button,
.filter-button {
  min-height: 38px;
  border: 1px solid #f2b4a7;
  border-radius: 8px;
  background: #fff7f3;
  color: #bd5a49;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.copy-button {
  padding: 0.4rem 0.7rem;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin: 1rem 0 1.2rem;
}

.filter-button {
  padding: 0.45rem 0.8rem;
}

.filter-button[aria-pressed="true"] {
  background: #ff8f76;
  color: #fff;
}

.tool-tile,
.hobby-tile,
.popular-link,
.wiki-card {
  padding: 1rem;
}

.tool-tile {
  min-height: 150px;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.tool-tile:nth-child(1) {
  border-color: #ffb4a9;
}

.tool-tile:nth-child(2) {
  border-color: #b6dcb4;
}

.tool-tile:nth-child(3) {
  border-color: #a8d8f5;
}

.tool-tile:nth-child(4) {
  border-color: #f7b6c9;
}

.hobby-tile {
  min-height: 82px;
  display: grid;
  place-items: center;
  gap: 0.25rem;
  color: #5e4a3f;
  font-size: 0.86rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.popular-link {
  display: flex;
  gap: 0.65rem;
  text-decoration: none;
  background: #fffaf5;
}

.popular-link i {
  flex: 0 0 auto;
  font-style: normal;
}

.dense-table {
  width: 100%;
  min-width: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.dense-table th,
.dense-table td {
  padding: 0.72rem 0.8rem;
  border-bottom: 1px solid rgba(214, 198, 184, 0.8);
}

.dense-table th {
  background: #fff6ec;
  color: #72584a;
}

.table-card {
  overflow-x: auto;
  border: 1px solid rgba(214, 198, 184, 0.8);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 28px rgba(122, 89, 66, 0.08);
}

.status-chip {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.18rem 0.58rem;
  background: #dff7e7;
  color: #316744;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.status-chip.warn {
  background: #fff2c7;
  color: #7b5d13;
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-top: 1.3rem;
}

.mini-stat {
  border-radius: 8px;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.78);
  text-align: center;
  box-shadow: 0 10px 24px rgba(103, 72, 48, 0.08);
}

.mini-stat strong {
  display: block;
  color: #5d4033;
  font-size: 1.35rem;
  line-height: 1.2;
}

.mini-stat span {
  color: #7b7068;
  font-size: 0.82rem;
}

.media-section {
  padding-top: 2rem;
}

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

.asset-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(214, 198, 184, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(122, 89, 66, 0.1);
}

.asset-card img,
.article-art img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.asset-card-body {
  display: block;
  padding: 0.9rem 1rem 1rem;
}

.asset-card strong {
  display: block;
  margin-bottom: 0.25rem;
  color: #5a4338;
  font-size: 1rem;
  line-height: 1.25;
}

.asset-card span {
  display: block;
  color: #756d66;
  font-size: 0.9rem;
  line-height: 1.45;
}

.article-art {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(214, 198, 184, 0.74);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 36px rgba(122, 89, 66, 0.1);
}

.article-art.wide {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  align-items: stretch;
}

.article-art.wide img {
  height: 100%;
  min-height: 260px;
}

.article-art figcaption {
  display: grid;
  align-content: center;
  gap: 0.45rem;
  padding: 1.1rem;
  color: #6d625a;
}

.article-art figcaption strong {
  color: #5a4338;
  font-size: 1.2rem;
  line-height: 1.2;
}

.visual-strip {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
  align-items: stretch;
}

.visual-strip .asset-card:first-child img {
  aspect-ratio: 16 / 8.8;
}

.map-section {
  padding-top: 2.2rem;
  background: linear-gradient(180deg, #f2fbf5, #eef8ff);
}

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

.map-panel,
.map-info-card,
.map-route-card {
  border: 1px solid rgba(169, 196, 184, 0.76);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 36px rgba(77, 104, 91, 0.1);
}

.map-panel {
  overflow: hidden;
}

.map-search-row,
.shop-control-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: end;
  padding: 0.75rem;
  border-bottom: 1px solid rgba(169, 196, 184, 0.68);
  background: #fbfdfc;
}

.map-search {
  display: grid;
  gap: 0.3rem;
  color: #5a4338;
  font-size: 0.86rem;
  font-weight: 900;
}

.map-search input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(169, 196, 184, 0.86);
  border-radius: 8px;
  padding: 0.62rem 0.75rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.map-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.map-progress {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(169, 196, 184, 0.68);
  border-radius: 8px;
  padding: 0.35rem 0.65rem;
  background: #fff;
  color: #5d6b63;
  font-size: 0.84rem;
  font-weight: 900;
}

.map-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem;
  border-bottom: 1px solid rgba(169, 196, 184, 0.68);
  background: #fffaf4;
}

.map-filter {
  min-height: 36px;
  border: 1px solid rgba(255, 143, 118, 0.36);
  border-radius: 8px;
  padding: 0.38rem 0.65rem;
  background: #fff;
  color: #6a5246;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 900;
  cursor: pointer;
}

.map-filter[aria-pressed="true"] {
  background: #ff8f76;
  color: #fff;
}

.map-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 900 / 620;
  overflow: hidden;
  background: #dff5f7;
}

.map-canvas,
.heartopia-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.map-canvas {
  z-index: 0;
}

.heartopia-map {
  z-index: 1;
  background: transparent;
  pointer-events: none;
}

.heartopia-map > rect,
.heartopia-map defs,
.map-region,
.map-road,
.map-river,
.map-label {
  display: none;
}

.map-region {
  stroke: rgba(91, 64, 47, 0.34);
  stroke-width: 3;
}

.map-road,
.map-river {
  fill: none;
  stroke-linecap: round;
}

.map-road {
  stroke: rgba(171, 132, 93, 0.58);
  stroke-width: 18;
  stroke-dasharray: 2 22;
}

.map-river {
  stroke: rgba(94, 169, 202, 0.78);
  stroke-width: 18;
}

.map-label {
  fill: #5a4338;
  font-size: 22px;
  font-weight: 900;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.78);
  stroke-width: 4;
}

.map-marker {
  cursor: pointer;
  pointer-events: auto;
}

.map-marker circle {
  stroke: #fff;
  stroke-width: 4;
  filter: drop-shadow(0 5px 8px rgba(55, 76, 72, 0.24));
}

.map-marker text {
  fill: #fff;
  font-size: 21px;
  font-weight: 900;
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
}

.marker-npc circle {
  fill: #4f8fcd;
}

.marker-shop circle {
  fill: #d1668f;
}

.marker-animal circle {
  fill: #ff8f76;
}

.marker-fish circle {
  fill: #0b7f74;
}

.marker-resource circle {
  fill: #f0b84a;
}

.marker-home circle {
  fill: #8e6ed4;
}

.map-marker.is-selected circle {
  stroke: #5a4338;
  stroke-width: 5;
}

.map-marker.is-complete circle {
  stroke: #2f7d53;
  stroke-width: 6;
}

.map-marker.is-hidden {
  display: none;
}

.map-info-card {
  padding: 1rem;
}

.map-info-card h2,
.map-route-card h3 {
  margin: 0 0 0.45rem;
  color: #654633;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.2;
}

.map-info-card p,
.map-route-card p {
  margin: 0;
  color: #6d655e;
}

.map-meta {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.map-meta span {
  display: block;
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  background: #fff7ef;
  color: #6d625a;
  font-size: 0.88rem;
}

.map-progress-card {
  display: grid;
  gap: 0.2rem;
  margin-top: 0.85rem;
  border: 1px solid rgba(169, 196, 184, 0.76);
  border-radius: 8px;
  padding: 0.72rem;
  background: #f2fbf5;
}

.map-progress-card strong {
  color: #075f58;
}

.map-progress-card span {
  color: #6d655e;
  font-size: 0.86rem;
}

.map-action-row,
.shop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.map-state-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 143, 118, 0.38);
  border-radius: 8px;
  padding: 0.48rem 0.72rem;
  background: #fff7f3;
  color: #bd5a49;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.map-state-button.link {
  background: #ff8f76;
  color: #fff;
}

.map-legend {
  display: grid;
  gap: 0.45rem;
  margin-top: 1rem;
}

.map-legend span {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #6d625a;
  font-size: 0.88rem;
  font-weight: 800;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--teal);
}

.legend-dot.npc {
  background: #4f8fcd;
}

.legend-dot.shop {
  background: #d1668f;
}

.legend-dot.animal {
  background: #ff8f76;
}

.legend-dot.resource {
  background: #f0b84a;
}

.legend-dot.home {
  background: #8e6ed4;
}

.map-route-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin-top: 1rem;
}

.map-route-card {
  padding: 1rem;
}

.map-section.is-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 40;
  overflow: auto;
  padding: 1rem 0 2rem;
  background: linear-gradient(180deg, #f2fbf5, #eef8ff);
}

.map-section.is-fullscreen .wiki-shell {
  width: min(1440px, calc(100% - 24px));
}

.map-section.is-fullscreen .map-stage {
  max-height: calc(100vh - 220px);
}

.platform-grid,
.data-card-grid,
.route-lane-grid {
  display: grid;
  gap: 1rem;
}

.platform-grid {
  grid-template-columns: repeat(3, 1fr);
}

.platform-card {
  min-width: 0;
  border: 1px solid rgba(214, 198, 184, 0.76);
  border-radius: 8px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 30px rgba(122, 89, 66, 0.1);
}

.platform-card header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.platform-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #16202b;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 900;
}

.platform-icon.ios {
  background: #202633;
}

.platform-icon.android {
  background: #168c5a;
}

.platform-icon.steam {
  background: #315a82;
}

.platform-card h2,
.platform-card h3 {
  margin: 0;
  color: #5a4338;
  font-size: 1.08rem;
  line-height: 1.2;
}

.platform-card p {
  margin: 0;
  color: #756d66;
}

.platform-meta {
  display: grid;
  gap: 0.45rem;
  margin: 0.85rem 0;
  color: #6d625a;
  font-size: 0.9rem;
}

.platform-link {
  width: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 143, 118, 0.38);
  border-radius: 8px;
  background: #ff8f76;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

.download-selector {
  display: grid;
  gap: 1rem;
}

.platform-control-bar {
  display: grid;
  gap: 0.75rem;
  border: 1px solid rgba(214, 198, 184, 0.72);
  border-radius: 8px;
  padding: 1rem;
  background: #fffaf5;
}

.enhanced-platform-grid {
  align-items: stretch;
}

.enhanced-platform-card {
  display: grid;
  grid-template-rows: auto auto auto auto auto 1fr;
  gap: 0.75rem;
}

.platform-badge {
  width: 92px;
  min-height: 52px;
  display: grid;
  align-content: center;
  gap: 0.12rem;
  border-radius: 8px;
  padding: 0.48rem;
  background: #16202b;
  color: #fff;
  box-shadow: 0 8px 18px rgba(22, 32, 43, 0.12);
}

.platform-badge strong {
  font-size: 0.78rem;
  line-height: 1.05;
}

.platform-badge small {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.1;
}

.platform-badge.app-store {
  background: #202633;
}

.platform-badge.google-play {
  background: #168c5a;
}

.platform-badge.steam-store {
  background: #315a82;
}

.platform-badge.publisher-route {
  background: #0b7f74;
}

.platform-badge.regional-store {
  background: #b07b2d;
}

.platform-badge.emulator-route {
  background: #7b3441;
}

.platform-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.status-chip.neutral {
  background: #eef8ff;
  color: #315a82;
}

.risk-chip {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.18rem 0.58rem;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.risk-chip.low {
  background: #dff7e7;
  color: #316744;
}

.risk-chip.medium {
  background: #fff2c7;
  color: #7b5d13;
}

.risk-chip.high {
  background: #ffe1df;
  color: #9b332b;
}

.platform-step-toggle {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(169, 196, 184, 0.82);
  border-radius: 8px;
  background: #fbfdfc;
  color: #315d57;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 900;
  cursor: pointer;
}

.platform-steps {
  margin: 0;
  padding: 0.75rem 0.75rem 0.75rem 1.6rem;
  border: 1px solid rgba(169, 196, 184, 0.72);
  border-radius: 8px;
  background: #f2fbf5;
  color: #5f6762;
  font-size: 0.9rem;
}

.platform-steps li {
  margin: 0.28rem 0;
}

.platform-link.muted-link {
  background: #fff;
  color: #415b69;
  border-color: rgba(120, 179, 201, 0.42);
}

.platform-link.danger-link {
  background: #7b3441;
  border-color: rgba(123, 52, 65, 0.4);
}

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

.database-control-bar {
  display: grid;
  gap: 0.75rem;
  border: 1px solid rgba(214, 198, 184, 0.72);
  border-radius: 8px;
  padding: 1rem;
  background: #fffaf5;
}

.database-browser-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 1rem;
  align-items: start;
}

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

.entity-card {
  min-width: 0;
  display: grid;
  gap: 0.32rem;
  border: 1px solid rgba(214, 198, 184, 0.76);
  border-radius: 8px;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.92);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(122, 89, 66, 0.08);
}

.entity-card:hover,
.entity-card.is-selected {
  border-color: rgba(11, 127, 116, 0.46);
  background: #f2fbf5;
}

.entity-type {
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 0.16rem 0.52rem;
  background: #eef8ff;
  color: #315a82;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: capitalize;
}

.entity-card strong {
  color: #5a4338;
  font-size: 1.02rem;
  line-height: 1.2;
}

.entity-card small {
  color: #756d66;
  font-size: 0.86rem;
  line-height: 1.42;
}

.entity-detail-panel {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 0.75rem;
  border: 1px solid rgba(214, 198, 184, 0.78);
  border-radius: 8px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 36px rgba(122, 89, 66, 0.1);
}

.entity-detail-panel h2 {
  margin: 0;
  color: #654633;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.16;
}

.entity-detail-panel p {
  margin: 0;
  color: #6d655e;
}

.entity-action-grid {
  display: grid;
  gap: 0.55rem;
}

.house-gallery {
  display: grid;
  gap: 1rem;
}

.house-control-bar {
  display: grid;
  gap: 0.75rem;
  border: 1px solid rgba(214, 198, 184, 0.72);
  border-radius: 8px;
  padding: 1rem;
  background: #fffaf5;
}

.house-gallery-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1rem;
  align-items: start;
}

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

.design-card {
  min-width: 0;
  overflow: hidden;
  display: grid;
  border: 1px solid rgba(214, 198, 184, 0.76);
  border-radius: 8px;
  padding: 0;
  background: rgba(255, 255, 255, 0.94);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(122, 89, 66, 0.1);
}

.design-card:hover,
.design-card.is-selected {
  border-color: rgba(11, 127, 116, 0.46);
  background: #f2fbf5;
}

.design-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.design-card span {
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem;
}

.design-card strong {
  color: #5a4338;
  line-height: 1.2;
}

.design-card small {
  color: #756d66;
  font-size: 0.86rem;
  line-height: 1.42;
}

.design-detail-panel {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 0.8rem;
  border: 1px solid rgba(214, 198, 184, 0.78);
  border-radius: 8px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 36px rgba(122, 89, 66, 0.1);
}

.design-detail-panel > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
}

.design-detail-panel h2 {
  margin: 0;
  color: #654633;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.16;
}

.design-stage {
  margin: 0;
  color: #9c5f4f;
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: capitalize;
}

.floor-plan-list,
.material-checklist {
  display: grid;
  gap: 0.45rem;
}

.floor-plan-list {
  border: 1px solid rgba(169, 196, 184, 0.72);
  border-radius: 8px;
  padding: 0.75rem;
  background: #f2fbf5;
}

.floor-plan-list strong {
  color: #075f58;
}

.floor-plan-list span,
.material-item {
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
  background: #fffaf4;
  color: #64574e;
  font-size: 0.86rem;
  font-weight: 800;
}

.material-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid rgba(214, 198, 184, 0.72);
}

.material-item input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

.house-theme-grid {
  grid-template-columns: 1fr 1fr;
  margin-top: 1rem;
}

.npc-hub {
  display: grid;
  gap: 1rem;
}

.npc-control-bar {
  display: grid;
  gap: 0.75rem;
  border: 1px solid rgba(214, 198, 184, 0.72);
  border-radius: 8px;
  padding: 1rem;
  background: #fffaf5;
}

.npc-hub-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 1rem;
  align-items: start;
}

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

.npc-card {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  border: 1px solid rgba(214, 198, 184, 0.76);
  border-radius: 8px;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.94);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(122, 89, 66, 0.08);
}

.npc-card:hover,
.npc-card.is-selected {
  border-color: rgba(11, 127, 116, 0.46);
  background: #f2fbf5;
}

.npc-badge {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #0b7f74;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(22, 32, 43, 0.12);
}

.npc-badge.shop {
  background: #d1668f;
}

.npc-badge.dynamic {
  background: #b07b2d;
}

.npc-badge.event {
  background: #315a82;
}

.npc-card strong {
  display: block;
  color: #5a4338;
  line-height: 1.2;
}

.npc-card small {
  display: block;
  color: #756d66;
  font-size: 0.86rem;
  line-height: 1.42;
}

.npc-detail-panel {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 0.85rem;
  border: 1px solid rgba(214, 198, 184, 0.78);
  border-radius: 8px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 36px rgba(122, 89, 66, 0.1);
}

.npc-detail-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.npc-detail-head h2 {
  margin: 0;
  color: #654633;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.16;
}

.npc-detail-head p {
  margin: 0;
  color: #6d655e;
}

.gift-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.gift-list span {
  border: 1px solid rgba(214, 198, 184, 0.72);
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
  background: #fffaf4;
  color: #64574e;
  font-size: 0.86rem;
  font-weight: 800;
}

.npc-gift-toggle {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid rgba(169, 196, 184, 0.72);
  border-radius: 8px;
  padding: 0.65rem;
  background: #f2fbf5;
  color: #075f58;
  font-weight: 900;
}

.npc-gift-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

.pet-hub {
  display: grid;
  gap: 1rem;
}

.pet-control-bar {
  display: grid;
  gap: 0.75rem;
  border: 1px solid rgba(214, 198, 184, 0.72);
  border-radius: 8px;
  padding: 1rem;
  background: #fffaf5;
}

.pet-hub-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 1rem;
  align-items: start;
}

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

.pet-card {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  border: 1px solid rgba(214, 198, 184, 0.76);
  border-radius: 8px;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.94);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(122, 89, 66, 0.08);
}

.pet-card:hover,
.pet-card.is-selected {
  border-color: rgba(11, 127, 116, 0.46);
  background: #f2fbf5;
}

.pet-badge {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #0b7f74;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(22, 32, 43, 0.12);
}

.pet-badge.wild {
  background: #315a82;
}

.pet-badge.farm {
  background: #b07b2d;
}

.pet-badge.quest {
  background: #d1668f;
}

.pet-card strong {
  display: block;
  color: #5a4338;
  line-height: 1.2;
}

.pet-card small {
  display: block;
  color: #756d66;
  font-size: 0.86rem;
  line-height: 1.42;
}

.pet-detail-panel {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 0.85rem;
  border: 1px solid rgba(214, 198, 184, 0.78);
  border-radius: 8px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 36px rgba(122, 89, 66, 0.1);
}

.pet-detail-panel h2 {
  margin: 0;
  color: #654633;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.16;
}

.pet-route-chip {
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 0.2rem 0.62rem;
  background: #eef8ff;
  color: #315a82;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: capitalize;
}

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

.pet-food-list span {
  border: 1px solid rgba(214, 198, 184, 0.72);
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
  background: #fffaf4;
  color: #64574e;
  font-size: 0.86rem;
  font-weight: 800;
}

.pet-test-toggle {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid rgba(169, 196, 184, 0.72);
  border-radius: 8px;
  padding: 0.65rem;
  background: #f2fbf5;
  color: #075f58;
  font-weight: 900;
}

.pet-test-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

.favorite-hub {
  display: grid;
  gap: 1rem;
}

.favorite-control-bar {
  display: grid;
  gap: 0.75rem;
  border: 1px solid rgba(214, 198, 184, 0.72);
  border-radius: 8px;
  padding: 1rem;
  background: #fffaf5;
}

.favorite-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 1rem;
  align-items: start;
}

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

.favorite-card {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  border: 1px solid rgba(214, 198, 184, 0.76);
  border-radius: 8px;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.94);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(122, 89, 66, 0.08);
}

.favorite-card:hover,
.favorite-card.is-selected {
  border-color: rgba(11, 127, 116, 0.46);
  background: #f2fbf5;
}

.favorite-badge {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #0b7f74;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(22, 32, 43, 0.12);
}

.favorite-badge.wild {
  background: #315a82;
}

.favorite-badge.farm {
  background: #b07b2d;
}

.favorite-badge.quest {
  background: #d1668f;
}

.favorite-card strong {
  display: block;
  color: #5a4338;
  line-height: 1.2;
}

.favorite-card small {
  display: block;
  color: #756d66;
  font-size: 0.86rem;
  line-height: 1.42;
}

.favorite-detail-panel {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 0.85rem;
  border: 1px solid rgba(214, 198, 184, 0.78);
  border-radius: 8px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 36px rgba(122, 89, 66, 0.1);
}

.favorite-detail-panel h2 {
  margin: 0;
  color: #654633;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.16;
}

.favorite-detail-panel p {
  margin: 0;
  color: #6d655e;
}

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

.favorite-food-list span {
  border: 1px solid rgba(214, 198, 184, 0.72);
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
  background: #fffaf4;
  color: #64574e;
  font-size: 0.86rem;
  font-weight: 800;
}

.favorite-test-toggle {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid rgba(169, 196, 184, 0.72);
  border-radius: 8px;
  padding: 0.65rem;
  background: #f2fbf5;
  color: #075f58;
  font-weight: 900;
}

.favorite-test-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

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

.crop-control-bar {
  display: grid;
  gap: 0.75rem;
  border: 1px solid rgba(214, 198, 184, 0.72);
  border-radius: 8px;
  padding: 1rem;
  background: #fffaf5;
}

.crop-database-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1rem;
  align-items: start;
}

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

.crop-card {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  border: 1px solid rgba(214, 198, 184, 0.76);
  border-radius: 8px;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.94);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(122, 89, 66, 0.08);
}

.crop-card:hover,
.crop-card.is-selected {
  border-color: rgba(11, 127, 116, 0.46);
  background: #f2fbf5;
}

.crop-card.is-watched::after {
  content: "Planned";
  position: absolute;
  right: 0.65rem;
  top: 0.55rem;
  border-radius: 999px;
  padding: 0.16rem 0.45rem;
  background: #dff7e7;
  color: #316744;
  font-size: 0.7rem;
  font-weight: 900;
}

.crop-badge {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #0b7f74;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(22, 32, 43, 0.12);
}

.crop-badge.active {
  background: #0b7f74;
}

.crop-badge.balanced {
  background: #315a82;
}

.crop-badge.offline {
  background: #b07b2d;
}

.crop-badge.tree {
  background: #58754b;
}

.crop-badge.unknown {
  background: #6c5b7b;
}

.crop-card strong {
  display: block;
  color: #5a4338;
  line-height: 1.2;
  padding-right: 3.4rem;
}

.crop-card small {
  display: block;
  color: #756d66;
  font-size: 0.86rem;
  line-height: 1.42;
}

.crop-detail-panel {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 0.85rem;
  border: 1px solid rgba(214, 198, 184, 0.78);
  border-radius: 8px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 36px rgba(122, 89, 66, 0.1);
}

.crop-detail-panel h2 {
  margin: 0;
  color: #654633;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.16;
}

.crop-route-chip {
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 0.2rem 0.62rem;
  background: #edf8e9;
  color: #316744;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: capitalize;
}

.crop-watch-toggle {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid rgba(169, 196, 184, 0.72);
  border-radius: 8px;
  padding: 0.65rem;
  background: #f2fbf5;
  color: #075f58;
  font-weight: 900;
}

.crop-watch-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

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

.recipe-control-bar {
  display: grid;
  gap: 0.75rem;
  border: 1px solid rgba(214, 198, 184, 0.72);
  border-radius: 8px;
  padding: 1rem;
  background: #fffaf5;
}

.recipe-database-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1rem;
  align-items: start;
}

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

.recipe-card {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  border: 1px solid rgba(214, 198, 184, 0.76);
  border-radius: 8px;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.94);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(122, 89, 66, 0.08);
}

.recipe-card:hover,
.recipe-card.is-selected {
  border-color: rgba(11, 127, 116, 0.46);
  background: #f2fbf5;
}

.recipe-card.is-tested::after {
  content: "Tested";
  position: absolute;
  right: 0.65rem;
  top: 0.55rem;
  border-radius: 999px;
  padding: 0.16rem 0.45rem;
  background: #dff7e7;
  color: #316744;
  font-size: 0.7rem;
  font-weight: 900;
}

.recipe-badge {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #0b7f74;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(22, 32, 43, 0.12);
}

.recipe-badge.fruit {
  background: #d1668f;
}

.recipe-badge.crop {
  background: #0b7f74;
}

.recipe-badge.fish {
  background: #315a82;
}

.recipe-badge.forage {
  background: #58754b;
}

.recipe-badge.farm {
  background: #b07b2d;
}

.recipe-badge.risk {
  background: #6c5b7b;
}

.recipe-card strong {
  display: block;
  color: #5a4338;
  line-height: 1.2;
  padding-right: 3.2rem;
}

.recipe-card small {
  display: block;
  color: #756d66;
  font-size: 0.86rem;
  line-height: 1.42;
}

.recipe-detail-panel {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 0.85rem;
  border: 1px solid rgba(214, 198, 184, 0.78);
  border-radius: 8px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 36px rgba(122, 89, 66, 0.1);
}

.recipe-detail-panel h2 {
  margin: 0;
  color: #654633;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.16;
}

.recipe-route-chip {
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 0.2rem 0.62rem;
  background: #fff2c7;
  color: #7b5d13;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: capitalize;
}

.recipe-route-chip.high {
  background: #ffe2df;
  color: #9b4239;
}

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

.recipe-ingredient-list span {
  border: 1px solid rgba(214, 198, 184, 0.72);
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
  background: #fffaf4;
  color: #64574e;
  font-size: 0.86rem;
  font-weight: 800;
}

.recipe-tested-toggle {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid rgba(169, 196, 184, 0.72);
  border-radius: 8px;
  padding: 0.65rem;
  background: #f2fbf5;
  color: #075f58;
  font-weight: 900;
}

.recipe-tested-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

.guide-planner {
  display: grid;
  gap: 1rem;
}

.guide-control-bar {
  display: grid;
  gap: 0.75rem;
  border: 1px solid rgba(214, 198, 184, 0.72);
  border-radius: 8px;
  padding: 1rem;
  background: #fffaf5;
}

.guide-planner-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1rem;
  align-items: start;
}

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

.guide-card {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  border: 1px solid rgba(214, 198, 184, 0.76);
  border-radius: 8px;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.94);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(122, 89, 66, 0.08);
}

.guide-card:hover,
.guide-card.is-selected {
  border-color: rgba(11, 127, 116, 0.46);
  background: #f2fbf5;
}

.guide-badge {
  width: 54px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #0b7f74;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(22, 32, 43, 0.12);
}

.guide-badge.beginner {
  background: #0b7f74;
}

.guide-badge.money {
  background: #b07b2d;
}

.guide-badge.hobby {
  background: #315a82;
}

.guide-badge.daily {
  background: #d1668f;
}

.guide-badge.event {
  background: #6c5b7b;
}

.guide-badge.system {
  background: #58754b;
}

.guide-card strong {
  display: block;
  color: #5a4338;
  line-height: 1.2;
}

.guide-card small {
  display: block;
  color: #756d66;
  font-size: 0.86rem;
  line-height: 1.42;
}

.guide-detail-panel {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 0.85rem;
  border: 1px solid rgba(214, 198, 184, 0.78);
  border-radius: 8px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 36px rgba(122, 89, 66, 0.1);
}

.guide-detail-panel h2 {
  margin: 0;
  color: #654633;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.16;
}

.guide-detail-panel p {
  margin: 0;
  color: #6d655e;
}

.guide-route-chip {
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 0.2rem 0.62rem;
  background: #eef8ff;
  color: #315a82;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: capitalize;
}

.guide-step-list {
  display: grid;
  gap: 0.45rem;
}

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

.fish-control-bar {
  display: grid;
  gap: 0.75rem;
  border: 1px solid rgba(214, 198, 184, 0.72);
  border-radius: 8px;
  padding: 1rem;
  background: #fffaf5;
}

.fish-database-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1rem;
  align-items: start;
}

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

.fish-card {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  border: 1px solid rgba(214, 198, 184, 0.76);
  border-radius: 8px;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.94);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(122, 89, 66, 0.08);
}

.fish-card:hover,
.fish-card.is-selected {
  border-color: rgba(11, 127, 116, 0.46);
  background: #f2fbf5;
}

.fish-card.is-caught::after {
  content: "Caught";
  position: absolute;
  right: 0.65rem;
  top: 0.55rem;
  border-radius: 999px;
  padding: 0.16rem 0.45rem;
  background: #dff7e7;
  color: #316744;
  font-size: 0.7rem;
  font-weight: 900;
}

.fish-badge {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #0b7f74;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(22, 32, 43, 0.12);
}

.fish-badge.lake {
  background: #0b7f74;
}

.fish-badge.river {
  background: #315a82;
}

.fish-badge.ocean {
  background: #5c6f9f;
}

.fish-badge.hidden {
  background: #6c5b7b;
}

.fish-badge.event {
  background: #d1668f;
}

.fish-badge.rare {
  background: #b07b2d;
}

.fish-card strong {
  display: block;
  color: #5a4338;
  line-height: 1.2;
  padding-right: 3.2rem;
}

.fish-card small {
  display: block;
  color: #756d66;
  font-size: 0.86rem;
  line-height: 1.42;
}

.fish-detail-panel {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 0.85rem;
  border: 1px solid rgba(214, 198, 184, 0.78);
  border-radius: 8px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 36px rgba(122, 89, 66, 0.1);
}

.fish-detail-panel h2 {
  margin: 0;
  color: #654633;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.16;
}

.fish-route-chip {
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 0.2rem 0.62rem;
  background: #eef8ff;
  color: #315a82;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: capitalize;
}

.fish-catch-toggle {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid rgba(169, 196, 184, 0.72);
  border-radius: 8px;
  padding: 0.65rem;
  background: #f2fbf5;
  color: #075f58;
  font-weight: 900;
}

.fish-catch-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

.event-hub {
  display: grid;
  gap: 1rem;
}

.event-control-bar {
  display: grid;
  gap: 0.75rem;
  border: 1px solid rgba(214, 198, 184, 0.72);
  border-radius: 8px;
  padding: 1rem;
  background: #fffaf5;
}

.event-hub-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1rem;
  align-items: start;
}

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

.event-card {
  min-width: 0;
  display: grid;
  gap: 0.35rem;
  border: 1px solid rgba(214, 198, 184, 0.76);
  border-radius: 8px;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.94);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(122, 89, 66, 0.08);
}

.event-card:hover,
.event-card.is-selected {
  border-color: rgba(11, 127, 116, 0.46);
  background: #f2fbf5;
}

.event-card strong {
  color: #5a4338;
  line-height: 1.2;
}

.event-card small,
.event-window {
  color: #756d66;
  font-size: 0.86rem;
}

.event-status {
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 0.18rem 0.58rem;
  background: #eef8ff;
  color: #315a82;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: capitalize;
}

.event-status.current {
  background: #dff7e7;
  color: #316744;
}

.event-status.upcoming {
  background: #fff2c7;
  color: #7b5d13;
}

.event-status.route {
  background: #eef8ff;
  color: #315a82;
}

.event-status.archive {
  background: #eee8e2;
  color: #65594f;
}

.event-detail-panel {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 0.8rem;
  border: 1px solid rgba(214, 198, 184, 0.78);
  border-radius: 8px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 36px rgba(122, 89, 66, 0.1);
}

.event-detail-panel h2 {
  margin: 0;
  color: #654633;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.16;
}

.event-detail-panel p {
  margin: 0;
  color: #6d655e;
}

.event-countdown {
  border: 1px solid rgba(169, 196, 184, 0.82);
  border-radius: 8px;
  padding: 0.75rem;
  background: #f2fbf5;
  color: #075f58;
  font-weight: 900;
}

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

.event-reward-grid span {
  border: 1px solid rgba(214, 198, 184, 0.72);
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
  background: #fffaf4;
  color: #64574e;
  font-size: 0.86rem;
  font-weight: 800;
}

.source-panel {
  border: 1px solid rgba(169, 196, 184, 0.76);
  border-radius: 8px;
  padding: 1rem;
  background: #fbfdfc;
  color: #6d625a;
}

.data-card-grid {
  grid-template-columns: repeat(4, 1fr);
}

.data-card {
  border: 1px solid rgba(214, 198, 184, 0.72);
  border-radius: 8px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(122, 89, 66, 0.08);
}

.data-card strong {
  display: block;
  color: #5a4338;
  font-size: 1.05rem;
}

.data-card span {
  color: #756d66;
  font-size: 0.88rem;
}

.route-lane-grid {
  grid-template-columns: repeat(3, 1fr);
}

.route-lane {
  border-left: 5px solid #ff8f76;
  border-radius: 8px;
  padding: 1rem;
  background: #fff8ef;
}

.route-lane h3 {
  margin: 0 0 0.45rem;
  color: #5a4338;
}

.route-lane p {
  margin: 0;
  color: #6d625a;
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1.2rem;
  align-items: start;
}

.sticky-box {
  position: sticky;
  top: 86px;
}

.compact-list {
  margin: 0;
  padding-left: 1.1rem;
  color: #746d66;
}

.compact-list li {
  margin: 0.45rem 0;
}

.subtle-band {
  border-radius: 8px;
  padding: 1rem;
  background: #fff8ef;
  color: #6d625a;
}

.article-hero {
  padding: 3.2rem 0 2.3rem;
  background:
    linear-gradient(135deg, rgba(255, 240, 231, 0.95), rgba(239, 249, 255, 0.92)),
    #fff8ef;
  border-bottom: 1px solid rgba(214, 198, 184, 0.62);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.8rem;
  color: #81756d;
  font-size: 0.86rem;
  font-weight: 800;
}

.breadcrumb a {
  color: #a85e4d;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.article-hero h1 {
  max-width: 880px;
  margin: 0 0 0.8rem;
  color: #5b402f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.75rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.article-hero p {
  max-width: 820px;
  margin: 0;
  color: #6d655e;
  font-size: 1.02rem;
}

.page-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.metric-card {
  border: 1px solid rgba(214, 198, 184, 0.68);
  border-radius: 8px;
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.75);
}

.metric-card strong {
  display: block;
  color: #5d4033;
  font-size: 1.2rem;
}

.metric-card span {
  color: #7a7068;
  font-size: 0.84rem;
}

.toc-box,
.quick-box {
  border: 1px solid rgba(214, 198, 184, 0.72);
  border-radius: 8px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 24px rgba(122, 89, 66, 0.07);
}

.toc-box h2,
.quick-box h2 {
  margin: 0 0 0.7rem;
  color: #654633;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.toc-box a {
  display: block;
  padding: 0.28rem 0;
  color: #a85e4d;
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}

.step-card {
  border: 1px solid rgba(214, 198, 184, 0.72);
  border-radius: 8px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.86);
}

.step-card b {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  margin-bottom: 0.5rem;
  background: #ff8f76;
  color: #fff;
}

.answer-box {
  border-left: 4px solid #ff8f76;
  border-radius: 0 8px 8px 0;
  padding: 1rem;
  background: #fff7f2;
  color: #6d625a;
}

.related-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.shop-control-bar {
  grid-template-columns: minmax(0, 1fr);
  border: 1px solid rgba(169, 196, 184, 0.72);
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 12px 28px rgba(77, 104, 91, 0.08);
}

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

.shop-system-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1rem;
  align-items: start;
}

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

.shop-card {
  min-height: 112px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
  border: 1px solid rgba(214, 198, 184, 0.78);
  border-radius: 8px;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.92);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(122, 89, 66, 0.08);
}

.shop-card:hover,
.shop-card.is-selected {
  border-color: rgba(209, 102, 143, 0.72);
  background: #fff5f8;
}

.shop-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #d1668f;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(209, 102, 143, 0.22);
}

.shop-icon-seeds {
  background: #2f9f68;
}

.shop-icon-furniture {
  background: #8d6748;
}

.shop-icon-pets {
  background: #ff8f76;
}

.shop-icon-fashion {
  background: #d1668f;
}

.shop-icon-music {
  background: #7f6bd6;
}

.shop-icon-general {
  background: #4f8fcd;
}

.shop-icon-traveling {
  background: #b07b2d;
}

.shop-icon-event {
  background: #0b7f74;
}

.shop-card-body {
  display: grid;
  gap: 0.2rem;
}

.shop-card-body strong {
  color: #5a4338;
  line-height: 1.2;
}

.shop-card-body span {
  color: #746d66;
  font-size: 0.9rem;
  line-height: 1.4;
}

.shop-detail-panel {
  position: sticky;
  top: 86px;
  border: 1px solid rgba(214, 198, 184, 0.78);
  border-radius: 8px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 36px rgba(122, 89, 66, 0.1);
}

.shop-detail-head {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 0.8rem;
}

.shop-detail-head h2 {
  margin: 0;
  color: #654633;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.15;
}

.shop-detail-head p,
.shop-detail-panel p {
  margin: 0;
  color: #6d655e;
}

.shop-route-chip {
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  margin-bottom: 0.75rem;
  padding: 0.3rem 0.7rem;
  background: #fff0f5;
  color: #9c4168;
  font-size: 0.82rem;
  font-weight: 900;
}

.shop-inventory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 0.9rem;
}

.shop-inventory-grid span {
  border: 1px solid rgba(214, 198, 184, 0.72);
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
  background: #fffaf4;
  color: #64574e;
  font-size: 0.86rem;
  font-weight: 800;
}

.tool-directory {
  display: grid;
  gap: 1rem;
}

.tool-directory-controls {
  display: grid;
  gap: 0.75rem;
  border: 1px solid rgba(214, 198, 184, 0.72);
  border-radius: 8px;
  padding: 1rem;
  background: #fffaf5;
}

.tool-directory-controls.inline-controls {
  background: #fbfdfc;
}

.search-field,
.tool-panel label {
  display: grid;
  gap: 0.35rem;
  color: #6d625a;
  font-size: 0.9rem;
  font-weight: 900;
}

.search-field input,
.tool-panel input,
.tool-panel select,
.tool-panel textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(214, 198, 184, 0.9);
  border-radius: 6px;
  padding: 0.65rem 0.75rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.filter-row.compact {
  justify-content: flex-start;
  margin: 0;
}

.tool-count {
  margin: 0;
  color: #756d66;
  font-size: 0.9rem;
  font-weight: 800;
}

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

.tool-system-card {
  min-width: 0;
  overflow: hidden;
  display: grid;
  border: 1px solid rgba(214, 198, 184, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(122, 89, 66, 0.1);
}

.tool-system-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.tool-card-body {
  display: grid;
  gap: 0.35rem;
  padding: 0.95rem;
}

.tool-card-body strong {
  color: #5a4338;
  font-size: 1.05rem;
  line-height: 1.2;
}

.tool-card-body span {
  color: #756d66;
  font-size: 0.92rem;
}

.tool-card-body small,
.saved-state {
  color: #9c5f4f;
  font-size: 0.82rem;
  font-weight: 900;
}

.tool-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1rem;
  align-items: start;
}

.tool-workbench {
  display: grid;
  gap: 1rem;
}

.tool-aside {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 0.9rem;
}

.tool-aside .source-panel h2 {
  margin: 0 0 0.55rem;
  color: #654633;
  font-family: Georgia, "Times New Roman", serif;
}

.tool-aside .source-panel p {
  margin: 0 0 0.65rem;
}

.tool-link-stack {
  display: grid;
  gap: 0.55rem;
}

.tool-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.result-box-strong {
  display: grid;
  align-items: center;
  border-color: rgba(169, 196, 184, 0.85);
  background: #f2fbf5;
  color: #075f58;
  font-weight: 900;
}

.tool-table-card {
  margin-top: 0.25rem;
}

.tracker-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid rgba(169, 196, 184, 0.82);
  border-radius: 8px;
  padding: 0.75rem;
  background: #f2fbf5;
}

.tracker-progress strong {
  color: #075f58;
}

.tracker-progress span {
  color: #6d655e;
  font-size: 0.86rem;
}

.tracker-list,
.plan-step-list,
.checklist-result,
.timer-list {
  display: grid;
  gap: 0.65rem;
}

.tracker-row,
.checklist-item,
.timer-card,
.plan-step,
.recipe-tool-card {
  min-width: 0;
  border: 1px solid rgba(214, 198, 184, 0.76);
  border-radius: 8px;
  padding: 0.75rem;
  background: #fffaf4;
}

.tracker-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
}

.tracker-row input,
.checklist-item input,
.ingredient-grid input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

.tracker-row span,
.timer-card span,
.plan-step {
  min-width: 0;
}

.tracker-row strong,
.timer-card strong,
.plan-step strong,
.recipe-tool-card strong {
  display: block;
  color: #5a4338;
  line-height: 1.2;
}

.tracker-row small,
.timer-card small,
.recipe-tool-card small {
  display: block;
  color: #756d66;
  font-size: 0.84rem;
}

.tracker-row a {
  color: #a85e4d;
  font-size: 0.86rem;
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.tracker-row.is-complete,
.timer-card.is-ready,
.checklist-item:has(input:checked) {
  border-color: rgba(11, 127, 116, 0.4);
  background: #f2fbf5;
}

.plan-step {
  display: grid;
  gap: 0.25rem;
}

.plan-step span,
.recipe-tool-card span,
.checklist-item span {
  color: #756d66;
}

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

.ingredient-grid label,
.checklist-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #5a4338;
  font-weight: 900;
}

.ingredient-grid label {
  border: 1px solid rgba(214, 198, 184, 0.76);
  border-radius: 8px;
  padding: 0.65rem;
  background: #fffaf4;
}

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

.recipe-tool-card {
  display: grid;
  gap: 0.22rem;
}

.preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.timer-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
}

/* Cozy game UI pass: scrapbook paper, reward panels, and event-guide affordances. */
.wiki-body {
  background:
    repeating-linear-gradient(0deg, rgba(126, 93, 68, 0.025) 0 1px, transparent 1px 12px),
    linear-gradient(115deg, rgba(126, 198, 207, 0.14), transparent 34%),
    linear-gradient(180deg, #fff7e8 0%, #f4fbf6 38%, #fff9ee 100%);
}

.site-header {
  background: rgba(255, 250, 240, 0.96);
  border-bottom: 1px solid rgba(227, 204, 180, 0.92);
  box-shadow: 0 5px 0 rgba(255, 246, 222, 0.78);
}

.site-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--stitch) 0 8px, transparent 8px 15px);
  pointer-events: none;
}

.brand-logo {
  padding: 3px;
  border: 1px solid rgba(227, 204, 180, 0.72);
  background: var(--paper-cream);
  box-shadow: var(--cozy-soft-shadow);
}

.nav-links a,
.menu-button {
  border: 1px solid transparent;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  border-color: rgba(143, 189, 131, 0.44);
  background: linear-gradient(180deg, #fffaf0, #e9f7e5);
  color: var(--teal-dark);
}

.menu-button {
  background: var(--paper-cream);
  border-color: var(--paper-edge);
}

.wiki-hero {
  min-height: 520px;
  isolation: isolate;
  border-bottom: 1px solid rgba(227, 204, 180, 0.82);
  background: #fff1d8;
}

.wiki-hero::before {
  background-image:
    linear-gradient(180deg, rgba(255, 250, 240, 0.6), rgba(255, 247, 232, 0.88) 72%, rgba(255, 250, 240, 0.98)),
    url("/assets/heartopia-guide-hero.png");
  filter: saturate(1.05) brightness(1.02);
}

.wiki-hero::after,
.article-hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 22px;
  background:
    linear-gradient(180deg, rgba(255, 246, 222, 0.94), rgba(255, 250, 240, 0.98)),
    repeating-linear-gradient(90deg, rgba(126, 93, 68, 0.18) 0 10px, transparent 10px 18px);
  clip-path: polygon(0 0, 100% 0, 100% 62%, 95% 100%, 90% 62%, 85% 100%, 80% 62%, 75% 100%, 70% 62%, 65% 100%, 60% 62%, 55% 100%, 50% 62%, 45% 100%, 40% 62%, 35% 100%, 30% 62%, 25% 100%, 20% 62%, 15% 100%, 10% 62%, 5% 100%, 0 62%);
  pointer-events: none;
}

.wiki-hero-inner {
  z-index: 1;
}

.top-note,
.data-pill,
.status-chip,
.reward-chip,
.shop-route-chip,
.crop-route-chip,
.recipe-route-chip,
.guide-route-chip,
.fish-route-chip,
.pet-route-chip {
  border-radius: 7px;
  border: 1px solid rgba(227, 204, 180, 0.74);
  background: linear-gradient(180deg, rgba(255, 252, 242, 0.96), rgba(255, 246, 222, 0.9));
  color: #6b5649;
}

.top-note {
  position: relative;
  padding: 0.42rem 0.82rem 0.42rem 1.95rem;
  box-shadow: var(--cozy-soft-shadow);
}

.top-note::before {
  content: "";
  position: absolute;
  left: 0.72rem;
  width: 0.72rem;
  height: 0.72rem;
  background: var(--gold);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 56%, 80% 92%, 50% 70%, 20% 92%, 32% 56%, 2% 35%, 39% 35%);
}

.wiki-hero h1,
.article-hero h1,
.center-head h2,
.wiki-title,
.tool-aside .source-panel h2,
.shop-detail-head h2 {
  color: var(--wood);
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.74);
}

.wiki-hero h1 span {
  color: var(--treat);
}

.wiki-hero p,
.article-hero p,
.center-head p,
.source-note {
  color: #6c6259;
}

.hero-buttons {
  gap: 0.65rem;
}

.pastel-button,
.button,
.copy-button,
.filter-button,
.map-state-button {
  position: relative;
  overflow: hidden;
  border-radius: 7px;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.pastel-button {
  border-color: rgba(190, 91, 72, 0.36);
  background: linear-gradient(180deg, #ff9e82, #ed735f);
  box-shadow: 0 5px 0 #cf604f, 0 14px 24px rgba(207, 96, 79, 0.18);
}

.pastel-button.alt {
  border-color: rgba(126, 198, 207, 0.5);
  background: linear-gradient(180deg, #fffdf4, #e7f6f4);
  color: #3f6067;
  box-shadow: 0 5px 0 rgba(126, 198, 207, 0.32), var(--cozy-soft-shadow);
}

.pastel-button::after,
.copy-button::after,
.filter-button::after,
.map-state-button::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px dashed rgba(255, 255, 255, 0.34);
  border-radius: 4px;
  pointer-events: none;
}

.pastel-button.alt::after,
.copy-button::after,
.filter-button::after,
.map-state-button::after {
  border-color: rgba(126, 93, 68, 0.15);
}

.wiki-card,
.route-card,
.tool-tile,
.hobby-tile,
.popular-link,
.code-card,
.table-card,
.asset-card,
.article-art,
.toc-box,
.quick-box,
.source-panel,
.map-panel,
.map-info-card,
.map-route-card,
.shop-card,
.shop-detail-panel,
.tool-directory-controls,
.tool-system-card,
.tool-workbench > *,
.tool-aside > *,
.entity-card,
.entity-detail-panel,
.design-card,
.design-detail-panel,
.npc-card,
.npc-detail-panel,
.pet-card,
.pet-detail-panel,
.favorite-card,
.favorite-detail-panel,
.crop-card,
.crop-detail-panel,
.recipe-card,
.recipe-detail-panel,
.guide-card,
.guide-detail-panel,
.fish-card,
.fish-detail-panel,
.event-card,
.event-detail-panel,
.route-lane {
  position: relative;
  border-color: rgba(227, 204, 180, 0.86);
  background:
    linear-gradient(180deg, rgba(255, 253, 246, 0.96), rgba(255, 247, 232, 0.9)),
    var(--paper-cream);
  box-shadow: var(--cozy-shadow);
}

.wiki-card::before,
.route-card::before,
.tool-tile::before,
.code-card::before,
.table-card::before,
.toc-box::before,
.quick-box::before,
.source-panel::before,
.shop-detail-panel::before,
.event-detail-panel::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0.85rem;
  left: 0.85rem;
  height: 3px;
  background: repeating-linear-gradient(90deg, rgba(240, 184, 74, 0.72) 0 18px, rgba(143, 189, 131, 0.68) 18px 34px, rgba(126, 198, 207, 0.62) 34px 50px);
  border-radius: 0 0 4px 4px;
  pointer-events: none;
}

.route-card:nth-child(1),
.tool-tile:nth-child(1),
.event-card:nth-child(1) {
  background: linear-gradient(180deg, #fff7ef, #ffede5);
}

.route-card:nth-child(2),
.tool-tile:nth-child(2),
.event-card:nth-child(2) {
  background: linear-gradient(180deg, #f9fff2, #eaf7e5);
}

.route-card:nth-child(3),
.tool-tile:nth-child(3),
.event-card:nth-child(3) {
  background: linear-gradient(180deg, #fffbe8, #fff1c9);
}

.route-card:nth-child(4),
.tool-tile:nth-child(4),
.event-card:nth-child(4) {
  background: linear-gradient(180deg, #f1fbff, #e2f6f7);
}

.route-card:nth-child(5),
.event-card:nth-child(5) {
  background: linear-gradient(180deg, #fff3f8, #ffe7f0);
}

.route-card:nth-child(6),
.event-card:nth-child(6) {
  background: linear-gradient(180deg, #fbf5ff, #eee8ff);
}

.icon-badge,
.shop-icon,
.popular-link i,
.hobby-tile {
  border: 1px solid rgba(227, 204, 180, 0.7);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 246, 222, 0.72)),
    var(--paper-warm);
  color: var(--treat);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.45), var(--cozy-soft-shadow);
}

.hobby-tile {
  align-content: center;
}

.popular-link i {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 900;
}

.asset-card,
.article-art,
.tool-system-card {
  overflow: hidden;
}

.asset-card::before,
.article-art::before,
.tool-system-card::before {
  content: "";
  position: absolute;
  top: 0.58rem;
  left: 50%;
  z-index: 2;
  width: 3.2rem;
  height: 0.86rem;
  border: 1px solid rgba(227, 204, 180, 0.52);
  background: rgba(255, 238, 169, 0.72);
  transform: translateX(-50%) rotate(-2deg);
  pointer-events: none;
}

.asset-card img,
.article-art img,
.tool-system-card img {
  border-bottom: 1px solid rgba(227, 204, 180, 0.7);
  filter: saturate(1.04) contrast(1.01);
}

.mini-stat,
.metric-card,
.map-progress-card,
.shop-inventory-grid span,
.ingredient-grid label,
.checklist-item,
.recipe-tool-card,
.subtle-band,
.answer-box {
  border: 1px solid rgba(227, 204, 180, 0.76);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 246, 222, 0.74)),
    var(--paper-warm);
  box-shadow: var(--cozy-soft-shadow);
}

.mini-stat,
.metric-card {
  border-style: dashed;
}

.code-card {
  border-style: dashed;
}

.code-token {
  min-height: 34px;
  border: 1px solid rgba(76, 58, 45, 0.16);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 6px, transparent 6px calc(100% - 6px), rgba(255, 255, 255, 0.08) calc(100% - 6px)),
    #6a513e;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.08);
}

.copy-button,
.filter-button {
  border-color: rgba(211, 126, 105, 0.52);
  background: linear-gradient(180deg, #fffaf0, #ffe9df);
  color: #a94f3f;
}

.filter-button[aria-pressed="true"] {
  border-color: rgba(190, 91, 72, 0.65);
  background: linear-gradient(180deg, #ff9e82, #ed735f);
  color: #fff;
  box-shadow: 0 4px 0 #cf604f;
}

.dense-table th,
th {
  background:
    linear-gradient(180deg, #fff7e8, #f5ead2);
  color: #654633;
  text-transform: none;
}

.table-wrap,
.table-card {
  background: var(--paper-cream);
}

.article-hero {
  position: relative;
  overflow: hidden;
  background:
    repeating-linear-gradient(0deg, rgba(126, 93, 68, 0.028) 0 1px, transparent 1px 11px),
    linear-gradient(135deg, rgba(255, 243, 224, 0.98), rgba(230, 248, 247, 0.95)),
    var(--paper-warm);
  border-bottom-color: rgba(227, 204, 180, 0.86);
}

.article-hero .wiki-shell {
  position: relative;
  z-index: 1;
}

.breadcrumb {
  width: fit-content;
  max-width: 100%;
  border: 1px solid rgba(227, 204, 180, 0.68);
  border-radius: 7px;
  padding: 0.28rem 0.58rem;
  background: rgba(255, 252, 242, 0.76);
}

.breadcrumb a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

.dense-table .status-chip,
.dense-table .risk-chip {
  max-width: 100%;
  white-space: normal;
}

.shop-card:hover,
.shop-card.is-selected,
.event-card:hover,
.event-card.is-selected {
  border-color: rgba(217, 138, 163, 0.72);
  background: linear-gradient(180deg, #fff8fb, #ffeaf1);
}

.map-stage,
.heartopia-map {
  border-color: rgba(227, 204, 180, 0.86);
  background: linear-gradient(180deg, #dff6f3, #fff6de);
  box-shadow: inset 0 0 0 5px rgba(255, 250, 240, 0.78), var(--cozy-shadow);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(126, 198, 207, 0.74);
  outline-offset: 3px;
}

@media (hover: hover) {
  .pastel-button:hover,
  .copy-button:hover,
  .filter-button:hover,
  .map-state-button:hover {
    transform: translateY(-1px);
  }

  .route-card:hover,
  .tool-tile:hover,
  .asset-card:hover,
  .tool-system-card:hover,
  .popular-link:hover,
  .hobby-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(126, 93, 68, 0.15);
  }
}

@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;
  }
}

@media (max-width: 920px) {
  .route-grid,
  .tool-grid,
  .popular-grid,
  .asset-grid,
  .visual-strip,
  .map-layout,
  .map-route-grid,
  .platform-grid,
  .data-card-grid,
  .route-lane-grid,
  .snapshot-grid,
  .database-grid,
  .guide-layout,
  .step-grid,
  .related-strip,
  .map-search-row,
  .shop-system-grid,
  .shop-card-grid,
  .tool-hub-grid,
  .tool-page-layout,
  .tool-form-grid,
  .ingredient-grid,
  .recipe-result-grid,
  .database-browser-layout,
  .entity-grid,
  .house-gallery-layout,
  .design-card-grid,
  .house-theme-grid,
  .npc-hub-layout,
  .npc-card-grid,
  .gift-list,
  .pet-hub-layout,
  .pet-card-grid,
  .pet-food-list,
  .favorite-layout,
  .favorite-card-grid,
  .favorite-food-list,
  .crop-database-layout,
  .crop-card-grid,
  .recipe-database-layout,
  .recipe-card-grid,
  .recipe-ingredient-list,
  .guide-planner-layout,
  .guide-card-grid,
  .fish-database-layout,
  .fish-card-grid,
  .event-hub-layout,
  .event-card-grid,
  .event-reward-grid {
    grid-template-columns: 1fr;
  }

  .hobby-grid,
  .mini-stats,
  .page-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .copy-button {
    width: 100%;
  }

  .article-art.wide {
    grid-template-columns: 1fr;
  }

  .article-art.wide img {
    min-height: 0;
  }

  .sticky-box {
    position: static;
  }

  .shop-detail-panel {
    position: static;
  }

  .tool-aside {
    position: static;
  }

  .entity-detail-panel {
    position: static;
  }

  .design-detail-panel {
    position: static;
  }

  .npc-detail-panel {
    position: static;
  }

  .pet-detail-panel {
    position: static;
  }

  .favorite-detail-panel {
    position: static;
  }

  .crop-detail-panel {
    position: static;
  }

  .recipe-detail-panel {
    position: static;
  }

  .guide-detail-panel {
    position: static;
  }

  .fish-detail-panel {
    position: static;
  }

  .event-detail-panel {
    position: static;
  }
}

@media (max-width: 520px) {
  .wiki-shell,
  .wiki-hero-inner {
    width: min(calc(100% - 24px), 1120px);
  }

  .wiki-hero {
    min-height: 430px;
  }

  .map-hero-compact {
    min-height: auto;
  }

  .map-hero-compact .wiki-hero-inner {
    padding: 1.25rem 0 1rem;
  }

  .map-hero-compact .wiki-hero h1,
  .map-hero-compact h1 {
    font-size: 1.72rem;
  }

  .map-hero-compact p {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .map-hero-compact .mini-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.45rem;
  }

  .map-hero-compact .mini-stat {
    padding: 0.45rem;
  }

  .map-hero-compact .mini-stat strong {
    font-size: 1rem;
  }

  .map-hero-compact .mini-stat span {
    font-size: 0.74rem;
  }

  .map-section {
    padding-top: 1.35rem;
  }

  .map-search-row,
  .shop-control-bar {
    padding: 0.6rem;
  }

  .map-toolbar-actions,
  .map-action-row,
  .shop-actions,
  .preset-row {
    align-items: stretch;
    flex-direction: column;
  }

  .map-state-button,
  .timer-card .map-state-button {
    width: 100%;
  }

  .tracker-progress,
  .timer-card {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .tracker-progress {
    flex-direction: column;
  }

  .tracker-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .tracker-row a {
    grid-column: 2;
  }

  .map-section .center-head {
    margin-bottom: 0.85rem;
  }

  .map-section .center-head h2 {
    font-size: 1.6rem;
  }

  .map-section .center-head p {
    margin-top: 0.35rem;
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .dense-table {
    table-layout: fixed;
    font-size: 0.8rem;
  }

  .dense-table th,
  .dense-table td {
    padding: 0.55rem;
    overflow-wrap: anywhere;
  }

  .wiki-hero h1 {
    font-size: 2.1rem;
  }

  .wiki-hero p {
    font-size: 0.96rem;
  }

  .article-hero {
    padding: 2.35rem 0 1.7rem;
  }

  .article-hero h1 {
    font-size: 2.05rem;
  }

  .page-metrics {
    gap: 0.55rem;
  }

  .metric-card {
    padding: 0.72rem;
  }

  .metric-card strong {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .pastel-button {
    width: 100%;
  }

  .hobby-grid,
  .mini-stats {
    grid-template-columns: 1fr;
  }

  .wiki-section {
    padding: 2.7rem 0;
  }
}
