:root {
  --bg: #f7efcc;
  --bg-deep: #a6ca63;
  --panel: rgba(246, 227, 180, 0.97);
  --panel-strong: #fbf0c9;
  --panel-soft: rgba(243, 224, 176, 0.95);
  --ink: #2d2316;
  --ink-soft: #5d4a32;
  --line: rgba(109, 69, 31, 0.26);
  --line-strong: rgba(109, 69, 31, 0.48);
  --accent: #b77a38;
  --accent-strong: #74461d;
  --berry: #8e5538;
  --forest: #5f8d42;
  --mint: #8fbd60;
  --sky: #8cd3f7;
  --gold: #e8c45f;
  --wood-dark: #724420;
  --wood-mid: #a56c34;
  --wood-light: #d39a56;
  --glow: rgba(255, 220, 116, 0.4);
  --stardew-backdrop: url("./branding/current/wiki-landscape-background.png");
  --shadow: 0 10px 0 rgba(94, 59, 24, 0.12), 0 22px 30px rgba(62, 38, 15, 0.18);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --font-sans: "Avenir Next", "Trebuchet MS", "Segoe UI", sans-serif;
  --font-display: "Cochin", "Palatino Linotype", serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--ink);
  font-family: var(--font-sans);
  background-color: #89cdef;
  background-image:
    linear-gradient(180deg, rgba(127, 201, 239, 0.16) 0%, rgba(197, 233, 248, 0.08) 26%, rgba(248, 240, 215, 0.1) 74%, rgba(213, 224, 150, 0.14) 100%),
    var(--stardew-backdrop);
  background-position: center top, center top;
  background-size: cover, cover;
  background-repeat: no-repeat, no-repeat;
  background-attachment: fixed, fixed;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 24% 8% at 18% 14%, rgba(255, 255, 255, 0.34) 0, rgba(255, 255, 255, 0.34) 38%, transparent 40%),
    radial-gradient(ellipse 28% 9% at 74% 12%, rgba(255, 255, 255, 0.3) 0, rgba(255, 255, 255, 0.3) 38%, transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0) 26%, rgba(255, 244, 214, 0.06) 100%);
  pointer-events: none;
  z-index: 0;
}

.page-shell::before {
  content: "";
  position: fixed;
  inset: auto 0 0 0;
  height: min(34vh, 290px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(237, 230, 187, 0.04) 32%, rgba(109, 145, 63, 0.12) 100%);
  pointer-events: none;
  z-index: 0;
}

.front-junimo {
  position: fixed;
  right: 22px;
  bottom: 18px;
  width: clamp(62px, 8vw, 92px);
  pointer-events: none;
  z-index: 5;
  filter: drop-shadow(0 14px 14px rgba(55, 78, 28, 0.28));
  animation: junimo-bob 3.8s ease-in-out infinite;
}

.front-junimo::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: -5px;
  height: 12px;
  border-radius: 999px;
  background: rgba(51, 35, 16, 0.2);
  filter: blur(5px);
  z-index: -1;
}

.front-junimo img {
  display: block;
  width: 100%;
  height: auto;
}

button,
input,
select {
  font: inherit;
}

.page-shell {
  width: min(1400px, calc(100vw - 32px));
  margin: 30px auto 48px;
  position: relative;
  z-index: 1;
}

.hero {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
  padding: 28px;
  border: 3px solid var(--wood-dark);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(252, 238, 201, 0.98), rgba(237, 215, 160, 0.98));
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero,
.tab-bar,
.tab-panels {
  position: relative;
  z-index: 1;
}

.hero::before {
  content: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 3px solid rgba(212, 154, 85, 0.95);
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(255, 244, 212, 0.55);
  pointer-events: none;
}

.hero-copy,
.hero-actions {
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--berry);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.version-pill {
  display: inline-flex;
  align-items: center;
  border: 2px solid rgba(114, 68, 32, 0.28);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255, 244, 214, 0.85);
  color: var(--accent-strong);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.hero h1,
.section-header h2,
.section-card h3,
.summary-card strong,
.category-card h3 {
  font-family: var(--font-display);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
}

.hero-text {
  max-width: 60ch;
  margin: 14px 0 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.hero-actions {
  display: grid;
  gap: 12px;
  align-content: start;
}

.hero-emblem {
  display: block;
  width: min(100%, 192px);
  justify-self: center;
  margin: -2px auto 10px;
  image-rendering: pixelated;
  filter: drop-shadow(0 12px 16px rgba(100, 63, 25, 0.24));
}

.action-button {
  border: 3px solid var(--wood-dark);
  border-radius: 18px;
  padding: 12px 16px;
  background: linear-gradient(180deg, #d59a54, #b27536);
  color: #fff5dd;
  font-weight: 700;
  cursor: pointer;
  box-shadow:
    0 6px 0 rgba(95, 58, 23, 0.32),
    0 12px 18px rgba(72, 45, 18, 0.18),
    inset 0 0 0 2px rgba(255, 236, 190, 0.34);
  text-shadow: 0 1px 0 rgba(77, 47, 19, 0.45);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.action-button:hover,
.tab-button:hover {
  transform: translateY(-1px);
}

.action-button-secondary {
  background: linear-gradient(180deg, #7fb058, #5d8b3e);
}

.action-button-danger {
  background: linear-gradient(180deg, #cf8f57, #a9612f);
}

.tab-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 22px 0 18px;
}

.tab-button {
  border: 3px solid var(--wood-dark);
  border-radius: 18px;
  padding: 11px 18px;
  background: linear-gradient(180deg, rgba(211, 149, 80, 0.96), rgba(178, 116, 53, 0.96));
  color: #fff4dc;
  cursor: pointer;
  font-weight: 700;
  box-shadow:
    0 5px 0 rgba(96, 59, 23, 0.28),
    inset 0 0 0 2px rgba(255, 231, 178, 0.28);
  text-shadow: 0 1px 0 rgba(74, 45, 19, 0.45);
}

.tab-button.is-active {
  background: linear-gradient(180deg, #f5ce77, #d19c46);
  border-color: var(--wood-dark);
}

.tab-panel {
  display: none;
  animation: panel-rise 0.25s ease;
}

.tab-panel.is-active {
  display: block;
}

@keyframes panel-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.panel-toolbar,
.section-header {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 18px;
}

.panel-toolbar {
  flex-wrap: wrap;
  padding: 20px;
  border-radius: 24px;
  border: 3px solid var(--wood-dark);
  background: linear-gradient(180deg, rgba(249, 236, 200, 0.98), rgba(237, 215, 160, 0.96));
  box-shadow: var(--shadow);
  position: relative;
}

.panel-toolbar::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 3px solid rgba(212, 154, 85, 0.9);
  border-radius: 16px;
  pointer-events: none;
}

.field {
  display: grid;
  gap: 8px;
  min-width: min(260px, 100%);
  flex: 1 1 220px;
}

.fish-toolbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
}

.fish-toolbar .field {
  min-width: 0;
}

.cooking-toolbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
}

.cooking-toolbar .field {
  min-width: 0;
}

.fish-search-field {
  grid-column: 1 / -1;
}

.view-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  border: 2px solid rgba(119, 74, 31, 0.24);
  border-radius: 16px;
  background: rgba(255, 248, 228, 0.7);
}

.view-switch-button {
  border: 2px solid rgba(119, 74, 31, 0.24);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(247, 231, 192, 0.9);
  color: var(--ink-soft);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease, color 140ms ease;
}

.view-switch-button:hover {
  transform: translateY(-1px);
}

.view-switch-button.is-active {
  border-color: rgba(119, 74, 31, 0.42);
  background: linear-gradient(180deg, rgba(217, 171, 96, 0.95), rgba(196, 143, 72, 0.95));
  color: #fff8ea;
  box-shadow: 0 3px 0 rgba(119, 74, 31, 0.32);
}

.field span {
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 700;
}

.field-inline {
  min-width: min(320px, 100%);
  flex: 0 1 360px;
}

.section-note {
  margin: 8px 0 0;
  color: var(--ink-soft);
  line-height: 1.45;
}

input[type="search"],
input[type="number"],
select {
  width: 100%;
  border: 2px solid rgba(119, 74, 31, 0.34);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255, 248, 228, 0.92);
  color: var(--ink);
  outline: none;
}

input:focus,
select:focus {
  border-color: rgba(168, 106, 43, 0.78);
  box-shadow: 0 0 0 4px rgba(226, 194, 122, 0.22);
}

.summary-grid,
.category-grid {
  display: grid;
  gap: 16px;
}

.summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  margin-bottom: 18px;
}

.summary-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.summary-card,
.category-card,
.section-card,
.source-card,
.table-shell,
.planner-card,
.recipe-card {
  border: 3px solid var(--wood-dark);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(249, 236, 200, 0.98), rgba(238, 216, 163, 0.96));
  box-shadow: var(--shadow);
  position: relative;
}

.summary-card::after,
.category-card::after,
.section-card::after,
.source-card::after,
.table-shell::after,
.planner-card::after,
.recipe-card::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 3px solid rgba(212, 154, 85, 0.88);
  border-radius: 16px;
  pointer-events: none;
}

.summary-card,
.category-card,
.source-card,
.planner-card,
.recipe-card,
.section-card {
  padding: 18px;
}

.summary-card {
  position: relative;
  overflow: hidden;
}

.summary-card::before {
  content: none;
}

.summary-card p,
.category-card p,
.meta-line {
  margin: 0;
  color: var(--ink-soft);
}

.summary-card strong {
  display: block;
  margin-top: 8px;
  font-size: 2rem;
  line-height: 1;
}

.progress-track {
  margin-top: 14px;
  height: 10px;
  border-radius: 999px;
  background: rgba(115, 154, 82, 0.14);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--accent));
}

.category-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-bottom: 18px;
}

.category-card h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.category-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  font-weight: 700;
}

.source-card {
  line-height: 1.7;
}

.celebration-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(45, 35, 22, 0.45);
  backdrop-filter: blur(6px);
}

.celebration-overlay[hidden] {
  display: none;
}

.celebration-card {
  width: min(520px, calc(100vw - 32px));
  padding: 28px 24px 24px;
  border: 3px solid var(--wood-dark);
  border-radius: 28px;
  background:
    radial-gradient(circle at top, rgba(255, 241, 190, 0.92), rgba(255, 241, 190, 0) 42%),
    linear-gradient(180deg, rgba(250, 237, 201, 0.99), rgba(236, 214, 160, 0.97));
  box-shadow:
    0 18px 40px rgba(40, 26, 10, 0.34),
    0 0 0 8px rgba(255, 231, 170, 0.14);
  position: relative;
  text-align: center;
  overflow: hidden;
  animation: celebration-pop 280ms ease;
}

.celebration-card::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 3px solid rgba(212, 154, 85, 0.88);
  border-radius: 20px;
  pointer-events: none;
}

.celebration-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(114, 68, 32, 0.28);
  border-radius: 999px;
  background: rgba(255, 248, 228, 0.9);
  color: var(--accent-strong);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.celebration-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.celebration-sparkles span {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 248, 211, 1) 0, rgba(232, 196, 95, 0.92) 62%, rgba(232, 196, 95, 0) 70%);
  opacity: 0.9;
  animation: sparkle-drift 2.8s ease-in-out infinite;
}

.celebration-sparkles span:nth-child(1) {
  top: 18%;
  left: 14%;
}

.celebration-sparkles span:nth-child(2) {
  top: 13%;
  right: 18%;
  animation-delay: 0.35s;
}

.celebration-sparkles span:nth-child(3) {
  top: 34%;
  left: 10%;
  animation-delay: 0.8s;
}

.celebration-sparkles span:nth-child(4) {
  top: 30%;
  right: 11%;
  animation-delay: 1.2s;
}

.celebration-sparkles span:nth-child(5) {
  bottom: 21%;
  left: 18%;
  animation-delay: 0.55s;
}

.celebration-sparkles span:nth-child(6) {
  bottom: 18%;
  right: 16%;
  animation-delay: 1.55s;
}

.celebration-junimo {
  display: block;
  width: 132px;
  margin: 2px auto 14px;
  image-rendering: pixelated;
  filter: drop-shadow(0 14px 12px rgba(104, 73, 24, 0.28));
  animation: junimo-bob 3.8s ease-in-out infinite;
}

.celebration-card h2 {
  margin: 6px 0 10px;
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1;
}

.celebration-copy {
  max-width: 28ch;
  margin: 0 auto 22px;
  color: var(--ink-soft);
  line-height: 1.5;
}

#general-left-board {
  margin-bottom: 18px;
}

.remaining-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.remaining-card {
  border: 3px solid var(--wood-dark);
  border-radius: 24px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(249, 236, 200, 0.98), rgba(238, 216, 163, 0.96));
  box-shadow: var(--shadow);
  position: relative;
}

.remaining-card::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 3px solid rgba(212, 154, 85, 0.88);
  border-radius: 16px;
  pointer-events: none;
}

.remaining-card h3 {
  margin: 0;
  font-size: 1.45rem;
}

.remaining-subtitle {
  margin: 8px 0 12px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.remaining-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: 320px;
  overflow: auto;
}

.remaining-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 246, 218, 0.84);
  border: 1px solid rgba(115, 71, 30, 0.14);
}

.remaining-copy {
  min-width: 0;
}

.remaining-copy strong {
  display: block;
}

.item-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.item-inline h3,
.item-inline strong {
  margin: 0;
}

.item-thumb {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(255, 249, 235, 0.8);
  border: 1px solid rgba(115, 71, 30, 0.12);
  padding: 4px;
}

.remaining-item .item-thumb {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
}

.remaining-meta {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.45;
}

.remaining-card .pill-grid {
  max-height: 320px;
  overflow: auto;
  align-content: start;
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.source-links a {
  display: inline-flex;
  align-items: center;
  border-radius: 14px;
  padding: 8px 12px;
  background: linear-gradient(180deg, rgba(214, 154, 83, 0.96), rgba(183, 120, 56, 0.96));
  color: #fff4dc;
  text-decoration: none;
  font-weight: 700;
  border: 2px solid var(--wood-dark);
  box-shadow: inset 0 0 0 1px rgba(255, 231, 178, 0.28);
}

.table-shell {
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
}

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

th {
  background: rgba(182, 122, 56, 0.16);
  color: var(--ink-soft);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.checkbox-wrap {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--forest);
}

.token-row,
.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.token,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(179, 123, 58, 0.12);
  color: var(--ink);
  font-size: 0.86rem;
}

.status-pill.is-done {
  background: rgba(97, 141, 66, 0.18);
  color: var(--forest);
}

.status-pill.is-pending {
  background: rgba(183, 122, 56, 0.16);
  color: var(--accent-strong);
}

.section-stack {
  display: grid;
  gap: 18px;
}

.planner-split {
  display: grid;
  grid-template-columns: minmax(520px, 1.18fr) minmax(280px, 0.82fr);
  gap: 18px;
  align-items: start;
}

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

.planner-split .table-shell {
  overflow-x: auto;
}

.planner-split > .section-stack.sticky-planner {
  position: sticky;
  top: 18px;
  align-self: start;
}

.cooking-layout.is-recipes,
.cooking-layout.is-planner {
  grid-template-columns: 1fr;
}

.cooking-layout.is-recipes #cooking-ingredients,
.cooking-layout.is-planner #cooking-recipes {
  display: none;
}

.cooking-layout.is-recipes #cooking-recipes.recipe-grid,
.cooking-layout.is-planner #cooking-ingredients.section-stack {
  grid-column: 1 / -1;
}

.cooking-layout.is-recipes #cooking-recipes.recipe-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cooking-layout.is-planner .planner-table-cooking th:first-child,
.cooking-layout.is-planner .planner-table-cooking td:first-child {
  width: 40%;
}

.cooking-layout.is-planner .planner-table-cooking th:nth-child(2),
.cooking-layout.is-planner .planner-table-cooking td:nth-child(2) {
  width: 18%;
}

.cooking-layout.is-planner .planner-table-cooking th:nth-child(3),
.cooking-layout.is-planner .planner-table-cooking td:nth-child(3) {
  width: 8%;
}

.cooking-layout.is-planner .planner-table-cooking th:nth-child(4),
.cooking-layout.is-planner .planner-table-cooking td:nth-child(4) {
  width: 16%;
}

.cooking-layout.is-planner .planner-table-cooking th:nth-child(5),
.cooking-layout.is-planner .planner-table-cooking td:nth-child(5) {
  min-width: 120px;
  padding-right: 26px;
}

.cooking-layout.is-planner .planner-table-cooking input {
  width: min(100%, 118px);
}

.cooking-layout.is-split .planner-table-cooking th:first-child,
.cooking-layout.is-split .planner-table-cooking td:first-child {
  width: 40%;
}

.cooking-layout.is-split .planner-table-cooking th:nth-child(2),
.cooking-layout.is-split .planner-table-cooking td:nth-child(2) {
  width: 17%;
}

.cooking-layout.is-split .planner-table-cooking th:nth-child(3),
.cooking-layout.is-split .planner-table-cooking td:nth-child(3),
.cooking-layout.is-split .planner-table-cooking th:nth-child(4),
.cooking-layout.is-split .planner-table-cooking td:nth-child(4),
.cooking-layout.is-split .planner-table-cooking th:nth-child(5),
.cooking-layout.is-split .planner-table-cooking td:nth-child(5) {
  padding-right: 18px;
}

.planner-split #cooking-recipes.recipe-grid {
  grid-template-columns: minmax(0, 1fr);
}

.planner-split #cooking-recipes .recipe-card {
  padding: 16px;
}

.planner-split #cooking-recipes .recipe-card h3 {
  font-size: 1.08rem;
}

.planner-split #cooking-recipes .recipe-card p {
  font-size: 0.96rem;
}

.section-card {
  margin-bottom: 18px;
}

.section-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.section-card-grid .section-card {
  margin-bottom: 0;
}

.section-card.two-up {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.recipe-card.is-done {
  background: linear-gradient(180deg, rgba(241, 255, 238, 0.92), rgba(255, 250, 241, 0.92));
}

.recipe-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 10px;
}

.recipe-title {
  display: flex;
  gap: 12px;
  align-items: start;
}

.recipe-status-corner {
  display: flex;
  justify-content: flex-end;
  align-items: start;
  flex: 0 0 auto;
}

.recipe-title {
  flex: 1 1 auto;
  min-width: 0;
}
.recipe-title .item-inline {
  align-items: start;
}

.recipe-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.recipe-card p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.meta-block {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.meta-label {
  color: var(--ink-soft);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.planner-card h3,
.section-card h3 {
  margin: 0 0 12px;
  font-size: 1.25rem;
}

.planner-card {
  overflow: hidden;
}

.planner-table td:last-child,
.planner-table th:last-child {
  text-align: right;
}

.planner-table td:nth-child(2),
.planner-table th:nth-child(2),
.planner-table td:nth-child(4),
.planner-table th:nth-child(4) {
  text-align: right;
}

.planner-table-cooking td:nth-child(2),
.planner-table-cooking th:nth-child(2) {
  text-align: left;
}

.planner-table-cooking th:first-child,
.planner-table-cooking td:first-child {
  width: 42%;
}

.planner-table-cooking th:nth-child(2),
.planner-table-cooking td:nth-child(2) {
  width: 19%;
  padding-left: 10px;
}

.planner-table-cooking th:nth-child(3),
.planner-table-cooking td:nth-child(3),
.planner-table-cooking th:nth-child(4),
.planner-table-cooking td:nth-child(4),
.planner-table-cooking th:nth-child(5),
.planner-table-cooking td:nth-child(5) {
  padding-left: 10px;
  padding-right: 10px;
}

.planner-table-cooking td:nth-child(3),
.planner-table-cooking th:nth-child(3),
.planner-table-cooking td:nth-child(5),
.planner-table-cooking th:nth-child(5) {
  text-align: right;
}

.planner-table-cooking input {
  min-width: 74px;
}

.planner-table input {
  min-width: 90px;
}

.pill-grid {
  margin-top: 8px;
}

.pill-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 246, 220, 0.95);
  border: 1px solid var(--line);
}

.pill-item.is-done {
  background: rgba(228, 240, 214, 0.95);
}

.villager-grid,
.monster-grid,
.skills-grid,
.stardrop-grid,
.building-grid {
  display: grid;
  gap: 12px;
}

.villager-grid,
.building-grid {
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
}

.skills-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

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

.villager-card,
.building-card,
.mini-card {
  border: 2px solid rgba(109, 69, 31, 0.22);
  border-radius: var(--radius-md);
  padding: 12px;
  background: rgba(255, 246, 218, 0.78);
}

.villager-card h3,
.building-card h3,
.mini-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.collectible-card {
  height: 100%;
}

.collectible-card .recipe-top {
  margin-bottom: 8px;
}

.walnut-card .number-line input {
  width: 74px;
}

.number-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.control-stack {
  display: grid;
  gap: 10px;
}

.number-line input {
  width: 76px;
}

.villager-number-line {
  align-items: center;
}

.villager-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}

.skill-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}

.skill-footer .toggle-line {
  justify-content: flex-start;
}

.villager-heart-entry {
  display: grid;
  justify-items: center;
  gap: 3px;
}

.villager-portrait {
  min-height: 30px;
  display: flex;
  align-items: end;
  justify-content: center;
}

.villager-portrait .item-thumb {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  border-radius: 12px;
}

.villager-heart-entry input {
  width: 86px;
}

.toggle-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
}

.toggle-line-table {
  white-space: nowrap;
}

.villager-card .toggle-line {
  justify-content: flex-start;
}

.villager-card {
  padding: 8px 12px;
}

.villager-card h3 {
  margin: 0 0 4px;
}

.villager-card .control-stack {
  gap: 4px;
}

.villager-toggle-line {
  font-size: 0.84rem;
  white-space: nowrap;
}

.monster-done-cell {
  width: 56px;
  text-align: center;
}

.fish-table {
  table-layout: fixed;
}

.fish-table .fish-col-done {
  width: 8%;
}

.fish-table .fish-col-name {
  width: 19%;
}

.fish-table .fish-col-type {
  width: 10%;
}

.fish-table .fish-col-where {
  width: 24%;
}

.fish-table .fish-col-when {
  width: 11%;
}

.fish-table .fish-col-season {
  width: 20%;
}

.fish-table .fish-col-weather {
  width: 8%;
}

.fish-table td:nth-child(2),
.fish-table th:nth-child(2) {
  padding-left: 26px;
}

.fish-table td:nth-child(3),
.fish-table th:nth-child(3),
.fish-table td:nth-child(5),
.fish-table th:nth-child(5),
.fish-table td:nth-child(7),
.fish-table th:nth-child(7) {
  text-align: left;
}

.monster-table {
  table-layout: fixed;
}

.monster-table .monster-col-done {
  width: 6%;
}

.monster-table .monster-col-goal {
  width: 32%;
}

.monster-table .monster-col-target {
  width: 16%;
}

.monster-table .monster-col-current {
  width: 23%;
}

.monster-table .monster-col-remaining {
  width: 23%;
}

.monster-table th:first-child {
  text-align: center;
}

.monster-table th:nth-child(2) {
  text-align: left;
}

.monster-table th:nth-child(3),
.monster-table th:nth-child(4),
.monster-table th:nth-child(5) {
  text-align: center;
}

.monster-done-cell input {
  margin: 0;
}

.monster-goal-cell {
  text-align: left;
}

.monster-target-cell,
.monster-number-cell {
  text-align: center;
}

.monster-number-cell input {
  width: min(100%, 96px);
}

.monster-remaining-cell {
  white-space: nowrap;
  text-align: center;
}

.building-controls {
  margin-top: 8px;
}

.subtle {
  color: var(--ink-soft);
}

.empty-state {
  padding: 22px;
  border-radius: var(--radius-md);
  background: rgba(255, 246, 220, 0.92);
  border: 2px dashed rgba(116, 72, 31, 0.28);
  color: var(--ink-soft);
  text-align: center;
}

.tight-table td:first-child,
.tight-table th:first-child {
  width: 44%;
}

.shipping-pages {
  display: grid;
  gap: 14px;
}

.page-card {
  border: 2px solid rgba(109, 69, 31, 0.2);
  border-radius: var(--radius-md);
  padding: 14px;
  background: rgba(255, 246, 218, 0.78);
}

.page-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.page-head h3 {
  margin: 0;
}

a {
  color: var(--accent-strong);
}

@keyframes junimo-bob {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-10px) rotate(2deg);
  }
}

@keyframes celebration-pop {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes sparkle-drift {
  0%,
  100% {
    transform: translateY(0) scale(0.9);
    opacity: 0.55;
  }
  50% {
    transform: translateY(-10px) scale(1.08);
    opacity: 1;
  }
}

@media (max-width: 980px) {
  .hero,
  .section-card-grid,
  .section-card.two-up,
  .cooking-toolbar,
  .planner-split {
    grid-template-columns: 1fr;
  }

  .planner-split > .section-stack.sticky-planner {
    position: static;
  }

  .cooking-layout.is-recipes #cooking-recipes.recipe-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  .page-shell {
    width: min(100vw - 18px, 100%);
    margin: 10px auto 24px;
  }

  .hero,
  .panel-toolbar,
  .summary-card,
  .remaining-card,
  .category-card,
  .section-card,
  .source-card,
  .recipe-card,
  .planner-card {
    padding: 16px;
    border-radius: 22px;
  }

  th,
  td {
    padding: 12px;
  }

  .table-shell {
    overflow-x: auto;
  }

  .cooking-layout.is-recipes #cooking-recipes.recipe-grid {
    grid-template-columns: 1fr;
  }

  .front-junimo {
    right: 10px;
    bottom: 12px;
    width: 58px;
  }

  .hero-emblem {
    width: min(100%, 280px);
  }

  .collectibles-grid {
    grid-template-columns: 1fr;
  }

  .version-pill {
    font-size: 0.78rem;
  }

  .celebration-card {
    padding-inline: 18px;
  }
}
