:root {
  color-scheme: light;
  --ink: #24313a;
  --muted: #61707b;
  --line: #d9e2dc;
  --paper: #fffaf0;
  --panel: #ffffff;
  --forest: #5fae76;
  --leaf: #dcedb5;
  --sand: #efbd6d;
  --sun: #f68b52;
  --volcano: #d96845;
  --sky: #8a7bd8;
  --ocean: #4fa9cf;
  --mint: #7ccfc2;
  --shadow: 0 14px 30px rgba(54, 68, 72, 0.13);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 1024px;
  background: #f4f0e4;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
}

.topbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 18px 28px 14px;
  background: #fbf4df;
  border-bottom: 1px solid rgba(116, 131, 112, 0.28);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #e4f3cf;
  border: 1px solid #bfd5a9;
  color: #426b40;
  font-size: 30px;
  font-weight: 800;
}

.brand h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: 0;
}

.brand p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.resource-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.resource-pill {
  min-width: 90px;
  padding: 9px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(132, 151, 133, 0.32);
  display: grid;
  gap: 2px;
}

.resource-pill b {
  font-size: 18px;
}

.resource-pill span {
  color: var(--muted);
  font-size: 12px;
}

.layout {
  display: grid;
  grid-template-columns: 224px 1fr;
  min-height: 0;
}

.sidebar {
  background: #eef5e4;
  border-right: 1px solid rgba(116, 131, 112, 0.24);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-menu-button,
.sidebar-avatar {
  display: none;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-button {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  border-radius: 8px;
  background: transparent;
  color: #345046;
  text-align: left;
  padding: 9px 12px;
}

.nav-button:hover,
.nav-button.active {
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(60, 84, 61, 0.1);
}

.nav-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #d9ecd0;
  color: #3d6b49;
  font-weight: 800;
}

.content {
  min-width: 0;
  padding: 24px 28px 34px;
  overflow: auto;
}

.view {
  display: grid;
  gap: 18px;
}

.band {
  background: var(--panel);
  border: 1px solid rgba(132, 151, 133, 0.26);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 20px;
}

.band.soft {
  background: var(--paper);
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.section-title h2,
.section-title h3 {
  margin: 0;
  font-size: 24px;
  letter-spacing: 0;
}

.section-title p {
  margin: 5px 0 0;
  color: var(--muted);
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
}

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

.adventure-shell {
  height: 100dvh;
  grid-template-rows: 1fr;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 249, 231, 0.92), rgba(247, 241, 220, 0.96)),
    #f5efd9;
}

.adventure-shell .topbar {
  display: none;
}

.adventure-shell .layout {
  grid-template-columns: 112px minmax(0, 1fr);
  min-height: 0;
}

.adventure-shell .sidebar {
  padding: 14px 12px;
  gap: 18px;
  align-items: center;
  background: rgba(255, 251, 239, 0.88);
  border-right: 1px solid rgba(210, 186, 126, 0.55);
  box-shadow: 10px 0 26px rgba(83, 73, 49, 0.08);
}

.adventure-shell .sidebar-menu-button {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  border: 1px solid rgba(207, 181, 121, 0.58);
  background: rgba(255, 255, 255, 0.82);
  color: #5e4525;
  display: grid;
  place-items: center;
  font-size: 30px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(74, 57, 34, 0.1);
}

.adventure-shell .sidebar-avatar {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  border: 3px solid #f2c65a;
  background: #fff9e9;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(65, 72, 47, 0.14);
}

.adventure-shell .sidebar-avatar img {
  width: 120%;
  height: 120%;
  object-fit: contain;
}

.adventure-shell .nav-list {
  width: 100%;
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.adventure-shell .nav-button {
  grid-template-columns: 1fr;
  justify-items: center;
  min-height: 92px;
  gap: 4px;
  padding: 10px 6px;
  text-align: center;
  color: #4f3e26;
  font-size: 16px;
  font-weight: 900;
}

.adventure-shell .nav-button.active {
  background: linear-gradient(180deg, #8ccd46, #5daa2f);
  color: #fff;
  box-shadow: 0 12px 22px rgba(75, 133, 44, 0.24);
}

.adventure-shell .nav-icon {
  width: 58px;
  height: 58px;
  border-radius: 0;
  background: transparent;
  color: #3f7c36;
  font-size: 20px;
  overflow: visible;
}

.adventure-shell .nav-button.active .nav-icon {
  background: transparent;
  color: #fff;
}

.nav-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 4px rgba(62, 58, 34, 0.16));
}

.adventure-shell .content {
  padding: 20px 22px 20px;
  /* 今日/乐园单屏展示，小店/地图/家长中心等长页面可纵向滚动 */
  overflow-y: auto;
  overflow-x: hidden;
}

.adventure-today-page {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
}

.adventure-page-header {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.adventure-title {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.adventure-title > span {
  width: 68px;
  height: 68px;
  border-radius: 0;
  background: transparent;
  color: #2f713a;
  display: grid;
  place-items: center;
  font-size: 30px;
  font-weight: 900;
  overflow: visible;
}

.adventure-title-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 5px 5px rgba(50, 77, 35, 0.16));
}

.adventure-title h1 {
  margin: 0;
  color: #123f1f;
  font-size: 46px;
  line-height: 1;
}

.adventure-title p {
  margin: 7px 0 0;
  color: #49604d;
  font-size: 17px;
  font-weight: 800;
}

.adventure-header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.adventure-chip,
.adventure-resource-pill {
  min-height: 54px;
  border-radius: 8px;
  border: 1px solid rgba(217, 189, 130, 0.62);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 18px rgba(86, 69, 38, 0.08);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  white-space: nowrap;
}

.adventure-chip-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: contain;
  display: block;
  flex: 0 0 auto;
  filter: drop-shadow(0 3px 3px rgba(80, 65, 35, 0.12));
}

.adventure-chip b,
.adventure-resource-pill b {
  color: #33422e;
  font-size: 20px;
}

.adventure-resource-pill span {
  color: #6f623e;
  font-size: 14px;
  font-weight: 900;
}

.adventure-resource-icon {
  width: 46px;
  height: 46px;
  object-fit: contain;
  display: block;
  flex: 0 0 auto;
  filter: drop-shadow(0 3px 3px rgba(80, 65, 35, 0.14));
}

.adventure-main-panel {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(420px, 0.95fr) minmax(500px, 1.05fr);
  gap: 16px;
  align-items: stretch;
}

.adventure-forest-card,
.adventure-task-panel,
.adventure-info-card {
  border: 1px solid rgba(219, 190, 128, 0.62);
  border-radius: 8px;
  background: rgba(255, 252, 242, 0.88);
  box-shadow: 0 16px 32px rgba(89, 76, 45, 0.11);
}

.adventure-forest-card {
  min-height: 0;
  padding: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
}

.adventure-forest-scene {
  position: relative;
  min-height: 390px;
  background:
    linear-gradient(180deg, rgba(255, 248, 213, 0.04), rgba(28, 103, 61, 0.04)),
    url("assets/scene/森林场景.png");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.adventure-forest-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 18% 18%, rgba(34, 101, 50, 0.14) 0 18%, transparent 19%),
    radial-gradient(ellipse at 82% 20%, rgba(47, 123, 54, 0.12) 0 16%, transparent 17%),
    linear-gradient(120deg, transparent 0 35%, rgba(255, 255, 255, 0.28) 36% 42%, transparent 43% 100%);
  opacity: 0.34;
}

.adventure-forest-scene::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 30%;
  background: linear-gradient(180deg, transparent, rgba(42, 107, 53, 0.22));
}

.adventure-dino-art {
  position: absolute;
  left: 4%;
  bottom: 1%;
  z-index: 2;
  width: 76%;
  height: 86%;
  object-fit: contain;
  object-position: left bottom;
  filter: drop-shadow(0 20px 18px rgba(46, 67, 35, 0.22));
}

.adventure-speech {
  position: absolute;
  z-index: 3;
  right: 5%;
  top: 27%;
  max-width: 250px;
  border: 1px solid rgba(217, 189, 130, 0.74);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: #33422e;
  box-shadow: 0 10px 20px rgba(67, 56, 36, 0.12);
  padding: 16px 18px;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 900;
}

.adventure-progress-card {
  margin: -74px 18px 18px;
  position: relative;
  z-index: 4;
  min-height: 116px;
  border-radius: 8px;
  border: 1px solid rgba(222, 197, 141, 0.78);
  background: rgba(255, 253, 244, 0.94);
  box-shadow: 0 12px 24px rgba(80, 67, 44, 0.12);
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(130px, 0.52fr) minmax(160px, 1fr) 116px;
  gap: 16px;
  align-items: center;
}

.adventure-progress-copy span,
.adventure-task-head span {
  color: #2f713a;
  font-size: 15px;
  font-weight: 900;
}

.adventure-progress-copy b {
  display: block;
  margin-top: 4px;
  color: #4d942f;
  font-size: 44px;
  line-height: 1;
}

.adventure-progress-copy small {
  display: block;
  margin-top: 5px;
  color: #6d674d;
  font-size: 14px;
  font-weight: 800;
}

.adventure-progress-line {
  display: grid;
  gap: 7px;
}

.adventure-progress-line span {
  color: #6d674d;
  font-size: 14px;
  font-weight: 900;
}

.adventure-treasure {
  min-height: 84px;
  border-radius: 8px;
  background: #fff4d6;
  border: 1px solid #efd49a;
  display: grid;
  place-items: center;
  gap: 4px;
  text-align: center;
}

.adventure-treasure-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
  display: block;
}

.adventure-treasure b {
  color: #6f4d13;
  font-size: 15px;
}

.adventure-task-panel {
  min-height: 0;
  padding: 18px;
  display: grid;
  grid-template-rows: auto minmax(430px, 1fr) auto;
  gap: 13px;
}

.adventure-task-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.adventure-task-head h2 {
  margin: 3px 0 0;
  color: #1f3c2c;
  font-size: 30px;
  line-height: 1;
}

.adventure-task-head > b {
  min-width: 76px;
  border-radius: 8px;
  background: #edf7d8;
  color: #4b8d31;
  padding: 9px 12px;
  text-align: center;
  font-size: 22px;
}

.adventure-task-scroll {
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 6px;
  display: grid;
  gap: 10px;
}

.adventure-task-scroll::-webkit-scrollbar {
  width: 8px;
}

.adventure-task-scroll::-webkit-scrollbar-thumb {
  border-radius: 8px;
  background: #d7ba76;
}

.adventure-task-card {
  min-height: 86px;
  border-radius: 8px;
  border: 1px solid rgba(225, 199, 145, 0.78);
  background: rgba(255, 255, 255, 0.74);
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 70px 116px;
  gap: 10px;
  align-items: center;
}

.adventure-task-card.done {
  border-color: #9bcf72;
  background: #f1f9e9;
}

.adventure-task-card.pending {
  border-color: #edc878;
  background: #fff8e6;
}

.adventure-task-icon {
  width: 70px;
  height: 70px;
  border-radius: 0;
  background: transparent;
  border: 0;
  color: #336d3b;
  display: grid;
  place-items: center;
  font-size: 23px;
  font-weight: 900;
  overflow: visible;
  padding: 0;
}

.adventure-task-icon-img {
  width: 92%;
  height: 92%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 5px 5px rgba(80, 65, 35, 0.16));
}

.adventure-task-name h3 {
  margin: 0;
  color: #2b332a;
  font-size: 22px;
  line-height: 1.15;
}

.adventure-task-name small {
  display: block;
  margin-top: 4px;
  color: #a06a21;
  font-size: 14px;
  font-weight: 900;
}

.adventure-task-weight {
  border-radius: 8px;
  background: #f6f0d8;
  color: #4d8a30;
  padding: 8px 9px;
  text-align: center;
  font-size: 17px;
  font-weight: 900;
}

.adventure-task-button {
  min-width: 104px;
  min-height: 48px;
  font-size: 18px;
}

.adventure-task-actions {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 10px;
}

.adventure-bottom-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(230px, 0.55fr) minmax(360px, 1fr);
  gap: 12px;
}

.adventure-info-card {
  min-height: 88px;
  padding: 12px 14px;
  display: grid;
  gap: 10px;
  align-items: center;
}

.adventure-info-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.adventure-info-head > span {
  width: 54px;
  height: 54px;
  border-radius: 0;
  background: transparent;
  color: #c48713;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 900;
  flex: 0 0 auto;
  overflow: visible;
  padding: 0;
}

.adventure-info-icon {
  width: 96%;
  height: 96%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 4px rgba(80, 65, 35, 0.14));
}

.adventure-info-head h3 {
  margin: 0;
  color: #21442a;
  font-size: 18px;
}

.adventure-info-head p {
  margin: 2px 0 0;
  color: #6f674d;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.adventure-wish-card,
.adventure-reward-card {
  grid-template-columns: minmax(170px, 0.82fr) minmax(160px, 1fr) auto;
}

.adventure-reward-card {
  grid-template-columns: minmax(170px, 0.72fr) minmax(260px, 1fr) minmax(150px, auto);
}

.adventure-supply-card {
  grid-template-columns: minmax(130px, 1fr) auto;
}

.adventure-wish-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  align-items: center;
}

.adventure-wish-steps i {
  height: 32px;
  border-radius: 8px;
  border: 1px solid #e3cd95;
  background: #fff9e8;
  color: #8b7b55;
  display: grid;
  place-items: center;
  font-style: normal;
  font-weight: 900;
}

.adventure-wish-steps i.filled {
  border-color: #7ebe51;
  background: #dcf3c2;
  color: #327334;
}

.adventure-card-badge {
  min-height: 36px;
  border-radius: 8px;
  background: #f4f0d9;
  color: #6b6043;
  display: grid;
  place-items: center;
  padding: 7px 10px;
  font-weight: 900;
  white-space: nowrap;
}

.adventure-big-number {
  color: #4d8e32;
  font-size: 38px;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
}

.adventure-big-number small {
  margin-left: 7px;
  color: #4f5b43;
  font-size: 18px;
}

.adventure-reward-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.72fr) minmax(150px, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.adventure-mini-progress {
  display: grid;
  gap: 7px;
}

.adventure-mini-progress b {
  color: #4d8e32;
  font-size: 20px;
}

.adventure-reward-summary {
  min-width: 0;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.adventure-reward-summary span {
  border-radius: 8px;
  background: #fff4d8;
  color: #71571f;
  padding: 5px 8px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.15;
  white-space: nowrap;
}

.adventure-reward-card > .secondary {
  min-width: 142px;
  white-space: nowrap;
}

.first-week-view {
  gap: 14px;
}

.first-week-main-grid {
  align-items: stretch;
}

.first-week-main-grid > .band {
  min-width: 0;
}

.first-week-main-grid .task-list {
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 12px;
}

.first-week-main-grid .task-card {
  min-height: 108px;
  border: 1px solid rgba(132, 151, 133, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.first-week-main-grid .task-card h3 {
  margin: 0;
  font-size: 18px;
}

.first-week-main-grid .task-card p {
  margin: 4px 0 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

.first-week-main-grid .task-weight {
  margin-top: 6px;
}

.first-week-main-grid .hero-dino {
  min-height: 100%;
}

.first-week-main-grid .hero-dino .stage-art {
  aspect-ratio: 4 / 3;
  max-height: 300px;
}

.first-week-progress-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 14px;
  align-items: start;
}

.first-week-progress-grid > * {
  min-width: 0;
}

.first-week-progress-grid .first-week-route-card,
.first-week-progress-grid .first-week-reward-panel {
  grid-column: 1;
}

.first-week-progress-grid .first-week-wish-card,
.first-week-progress-grid .first-week-action-card {
  grid-column: 2;
}

.first-week-progress-grid .first-week-wish-card,
.first-week-progress-grid .first-week-action-card {
  align-items: stretch;
  flex-direction: column;
}

.first-week-progress-grid .wish-card-action,
.first-week-progress-grid .wish-card-action button,
.first-week-progress-grid .wish-card-action > span {
  width: 100%;
}

.first-week-progress-grid .first-week-action-card {
  justify-content: flex-start;
}

.first-week-progress-grid .first-week-action-card > div:first-child {
  align-items: flex-start;
}

.first-week-progress-grid .first-week-action-card .inline-actions {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
}

.first-week-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.first-week-strip article {
  min-height: 94px;
  border: 1px solid #cfe0c6;
  border-radius: 8px;
  background: #f7fbef;
  padding: 13px;
  display: grid;
  gap: 5px;
}

.first-week-strip span {
  width: 42px;
  height: 32px;
  border-radius: 8px;
  background: #e0efd2;
  color: #31533d;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 900;
}

.first-week-strip b {
  font-size: 17px;
}

.first-week-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.first-week-route-card {
  border: 1px solid #cfe0c6;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: 14px;
  display: grid;
  gap: 12px;
}

.route-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.route-card-head h3 {
  margin: 0;
  font-size: 20px;
}

.route-card-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.route-card-head > span {
  border-radius: 8px;
  background: #e9f7df;
  color: #31533d;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 900;
}

.week-route-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.week-route-day {
  min-height: 66px;
  border-radius: 8px;
  border: 1px solid #dbe3dc;
  background: #f3f5f1;
  color: #65726a;
  padding: 8px;
  display: grid;
  place-items: center;
  gap: 3px;
  text-align: center;
}

.week-route-day b {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
}

.week-route-day span {
  font-size: 12px;
  font-weight: 900;
}

.week-route-day.done {
  border-color: #8fc48a;
  background: #eef8e7;
  color: #31533d;
}

.week-route-day.supply {
  border-color: #86bede;
  background: #e8f3fa;
  color: #285c78;
}

.week-route-day.missed {
  border-color: #ddb9aa;
  background: #f7e9e2;
  color: #8f5a48;
}

.week-route-day.current {
  box-shadow: 0 0 0 3px rgba(224, 184, 73, 0.24);
  border-color: #e0b849;
}

.first-week-wish-card {
  border: 1px solid #d8e6c8;
  border-radius: 8px;
  background: #fffaf0;
  box-shadow: var(--shadow);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.first-week-wish-card.completed {
  border-color: #9fcf93;
  background: #f3fbec;
}

.wish-card-copy {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.wish-card-copy > span {
  width: 50px;
  height: 42px;
  border-radius: 8px;
  background: #fff2cf;
  color: #7a4d12;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 900;
  flex: 0 0 auto;
}

.first-week-wish-card.completed .wish-card-copy > span {
  background: #dff0d6;
  color: #31533d;
}

.wish-card-copy h3 {
  margin: 0;
  font-size: 20px;
}

.wish-card-copy p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.wish-steps {
  display: grid;
  grid-template-columns: repeat(5, 34px);
  gap: 7px;
}

.wish-steps i {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid #d8c9a7;
  background: #fff;
  color: #9a8a6b;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 13px;
  font-weight: 900;
}

.wish-steps i.filled {
  border-color: #8fc48a;
  background: #e9f7df;
  color: #31533d;
}

.wish-card-action {
  min-width: 110px;
  display: flex;
  justify-content: flex-end;
}

.wish-card-action > span {
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid #d8c9a7;
  background: #fff;
  color: var(--muted);
  padding: 0 12px;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.wish-done-badge {
  border-color: #9fcf93 !important;
  background: #eaf7e0 !important;
  color: #31533d !important;
}

.first-week-reward-panel {
  border: 1px solid #cfe0c6;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: 14px;
  display: grid;
  gap: 12px;
}

.reward-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.reward-panel-head h3 {
  margin: 0;
  font-size: 20px;
}

.reward-panel-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.reward-total {
  min-width: 84px;
  border-radius: 8px;
  background: #f7fbef;
  border: 1px solid #d8e6c8;
  padding: 8px 10px;
  display: grid;
  justify-items: center;
  gap: 1px;
}

.reward-total span,
.reward-total small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.reward-total b {
  color: #31533d;
  font-size: 22px;
}

.reward-milestones {
  display: grid;
  grid-template-columns: repeat(10, minmax(46px, 1fr));
  gap: 7px;
}

.reward-milestones span {
  min-height: 34px;
  border-radius: 8px;
  border: 1px solid #dbe3dc;
  background: #f3f5f1;
  color: #65726a;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
}

.reward-milestones span.claimed {
  border-color: #8fc48a;
  background: #eef8e7;
  color: #31533d;
}

.reward-milestones span.ready {
  border-color: #e0b849;
  background: #fff2c5;
  color: #7b5a00;
}

.reward-rule-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reward-rule-row span {
  border-radius: 8px;
  background: #fff8eb;
  color: #6d5a31;
  padding: 7px 9px;
  font-size: 12px;
  font-weight: 900;
}

.reward-rule-row .goal-done {
  background: #eef8e7;
  color: #31533d;
}

.first-week-action-card {
  border: 1px solid #cfe0c6;
  border-radius: 8px;
  background: #fbfff7;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.first-week-action-card > div:first-child {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.first-week-action-card span {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #dbeeca;
  color: #31533d;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 900;
  flex: 0 0 auto;
}

.first-week-action-card h3 {
  margin: 0;
  font-size: 19px;
}

.first-week-action-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.setup-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.72fr) 1fr;
  gap: 22px;
  align-items: start;
}

.field-grid {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  font-weight: 700;
  color: #354840;
}

.input,
.select,
.textarea {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #cbd9cf;
  background: #fff;
  color: var(--ink);
  padding: 11px 12px;
  outline: none;
}

.textarea {
  min-height: 84px;
  resize: vertical;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: #6eaa73;
  box-shadow: 0 0 0 3px rgba(111, 170, 115, 0.18);
}

.primary,
.secondary,
.ghost,
.danger {
  min-height: 42px;
  border-radius: 8px;
  padding: 10px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
}

.primary {
  background: #3f8f63;
  color: #fff;
}

.secondary {
  background: #e7f1df;
  color: #31533d;
  border: 1px solid #c7d9be;
}

.ghost {
  background: #fff;
  color: #3f5660;
  border: 1px solid #d5ded8;
}

.danger {
  background: #ffe4dc;
  color: #97422e;
  border: 1px solid #f1b8a8;
}

.primary:disabled,
.secondary:disabled,
.ghost:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.park-page {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
}

.park-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.park-title {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.park-title-icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.park-title-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 5px 6px rgba(50, 77, 35, 0.16));
}

.park-title h1 {
  margin: 0;
  color: #123f1f;
  font-size: 42px;
  line-height: 1.05;
}

.park-title p {
  margin: 5px 0 0;
  color: #4b5f4d;
  font-size: 17px;
  font-weight: 700;
}

.park-shop-link {
  min-width: 112px;
}

.park-main-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(560px, 1.16fr) minmax(500px, 0.84fr);
  gap: 16px;
}

.park-scene-card,
.park-stage-strip,
.park-friends-panel,
.park-info-card {
  border: 1px solid rgba(214, 188, 124, 0.58);
  border-radius: 8px;
  background: rgba(255, 251, 240, 0.94);
  box-shadow: 0 12px 28px rgba(86, 74, 42, 0.1);
}

.park-scene-card {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.park-scene-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  background: linear-gradient(0deg, rgba(51, 72, 38, 0.18), rgba(51, 72, 38, 0));
  pointer-events: none;
}

.park-growth-overlay {
  position: absolute;
  z-index: 3;
  top: 18px;
  right: 18px;
  width: min(440px, 52%);
  border: 1px solid rgba(215, 191, 129, 0.72);
  border-radius: 8px;
  background: rgba(255, 252, 243, 0.92);
  box-shadow: 0 10px 24px rgba(70, 63, 41, 0.12);
  padding: 12px;
  backdrop-filter: blur(6px);
}

.park-growth-overlay > b {
  display: block;
  margin-bottom: 8px;
  color: #31533d;
  font-size: 16px;
}

.park-growth-journey {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.park-growth-step {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 4px;
  color: #6b735f;
  font-size: 12px;
  font-weight: 800;
}

.park-growth-step img {
  width: 100%;
  height: 50px;
  object-fit: contain;
  opacity: 0.72;
}

.park-growth-step.reached img {
  opacity: 1;
}

.park-growth-step.active {
  color: #31533d;
}

.park-growth-step.active img {
  filter: drop-shadow(0 7px 10px rgba(72, 91, 50, 0.22));
}

.park-speech {
  position: absolute;
  z-index: 4;
  top: 166px;
  right: 30px;
  max-width: 300px;
  border: 1px solid rgba(214, 188, 124, 0.72);
  border-radius: 8px;
  background: rgba(255, 252, 244, 0.94);
  color: #26382f;
  padding: 12px 14px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
  box-shadow: 0 8px 20px rgba(70, 63, 41, 0.12);
}

.park-speech::after {
  content: "";
  position: absolute;
  left: 30px;
  bottom: -12px;
  border: 6px solid transparent;
  border-top-color: rgba(255, 252, 244, 0.94);
}

.park-scene-stage {
  position: absolute;
  z-index: 2;
  left: 5%;
  bottom: 126px;
  width: min(47%, 600px);
  height: 360px;
  display: grid;
  align-items: end;
  justify-items: center;
  overflow: visible;
  --park-render-height: 239px;
}

/* 渲染高度 = 舞台画布高度（与 app.js parkDinoDisplayHeight 保持一致） */
.park-scene-stage.stage-egg {
  --park-render-height: 186px;
}

.park-scene-stage.stage-baby {
  --park-render-height: 239px;
}

.park-scene-stage.stage-adult {
  --park-render-height: 321px;
}

.park-scene-stage.stage-adult_with_baby {
  --park-render-height: 329px;
}

.park-scene-stage::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 17%;
  right: 17%;
  bottom: 0;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(70, 67, 35, 0.22), rgba(70, 67, 35, 0));
  filter: blur(2px);
}

.park-dino-anchor {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: grid;
  align-items: end;
  justify-items: center;
  overflow: visible;
}

.park-dino-anchor .dino-art {
  position: relative;
  z-index: 1;
  /* 注意：这里绝不能用 background 简写！
     简写会把 .dino-keyframe 的 background-size: 400% 100% 重置为 auto，
     导致合图按原始尺寸渲染 —— 恐龙被放大裁切、动画左右跳动（历史 P0 bug 根因）。 */
  background-color: transparent;
  border: 0;
  border-radius: 0;
}

.park-dino-anchor .dino-art:not(.dino-keyframe) {
  width: auto;
  max-width: 560px;
  height: var(--park-render-height);
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 16px 18px rgba(46, 54, 38, 0.23));
}

.park-dino-anchor .dino-keyframe {
  width: min(100%, var(--frame-width));
  margin: 0;
  align-self: end;
  justify-self: center;
  filter: drop-shadow(0 16px 18px rgba(46, 54, 38, 0.23));
  /* 双保险：确保任何高优先级规则都不会破坏合图播放 */
  background-size: 400% 100%;
  background-repeat: no-repeat;
}

/* 摸摸手：透明 PNG 悬浮在恐龙头顶做轻拍动画 */
.pet-hand-effect {
  position: absolute;
  z-index: 4;
  right: 26%;
  top: 4%;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  transform-origin: 50% 100%;
  animation: petHandPat 920ms ease both;
  pointer-events: none;
}

.pet-hand-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(73, 61, 36, 0.28));
}

.park-scene-stage .floating-item {
  right: 8%;
  top: 18%;
}

/* 玩具互动：大恐龙面朝右，彩球从画面右侧沿地面滚到脚下 */
.park-scene-stage .rolling-toy {
  position: absolute;
  z-index: 3;
  right: 16%;
  bottom: -4px;
  width: 52px;
  height: 52px;
  pointer-events: none;
  animation: toyRollIn 950ms cubic-bezier(0.22, 0.9, 0.36, 1) both;
}

.rolling-toy-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 8px rgba(52, 48, 30, 0.3));
  animation: toySpinIn 950ms cubic-bezier(0.22, 0.9, 0.36, 1) both;
}

@keyframes toyRollIn {
  0% {
    transform: translateX(230px);
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  78% {
    transform: translateX(-8px);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes toySpinIn {
  0% {
    transform: rotate(540deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

.park-scene-stage .pet-spark {
  right: 14%;
  top: 15%;
}

.park-action-dock {
  position: absolute;
  z-index: 5;
  left: 22px;
  right: 22px;
  bottom: 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.park-action-button {
  min-width: 0;
  min-height: 92px;
  border: 1px solid rgba(214, 188, 124, 0.7);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.94);
  color: #27372f;
  display: grid;
  place-items: center;
  gap: 5px;
  box-shadow: 0 8px 16px rgba(80, 70, 45, 0.12);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.park-action-button:hover:not(:disabled) {
  border-color: #88b35c;
  box-shadow: 0 12px 22px rgba(80, 70, 45, 0.16);
  transform: translateY(-2px);
}

.park-action-button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

/* 纯大图标按钮：无文字、无图标底色 */
.park-action-icon {
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.park-side-panel {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
}

.park-stage-strip {
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.park-stage-card {
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px;
  display: grid;
  justify-items: center;
  gap: 6px;
  color: #51604d;
  text-align: center;
}

.park-stage-card img {
  width: 100%;
  height: 82px;
  object-fit: contain;
  opacity: 0.72;
}

.park-stage-card b {
  font-size: 14px;
}

.park-stage-card.reached img {
  opacity: 1;
}

.park-stage-card.active {
  border-color: #e7c77b;
  background: #fff6dd;
  color: #1e4728;
  box-shadow: inset 0 0 0 2px rgba(232, 199, 123, 0.28);
}

.park-friends-panel {
  min-height: 0;
  padding: 16px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  overflow: hidden;
}

.park-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.park-panel-head h2 {
  margin: 0;
  color: #21482d;
  font-size: 22px;
}

.park-panel-head span {
  color: #70634d;
  font-size: 14px;
  font-weight: 800;
}

.park-friends-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.park-friend-card {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(226, 205, 151, 0.86);
  border-radius: 8px;
  background: #fff8ea;
  padding: 8px 6px 10px;
  display: grid;
  grid-template-rows: minmax(82px, 1fr) auto auto;
  justify-items: center;
  gap: 5px;
  text-align: center;
}

.park-friend-card.current {
  border-color: #7eb047;
  box-shadow: inset 0 0 0 2px rgba(126, 176, 71, 0.24);
}

.park-friend-card.locked {
  filter: grayscale(0.8);
  opacity: 0.58;
}

.park-friend-card img {
  width: 100%;
  height: 96px;
  object-fit: contain;
}

.park-friend-card b {
  color: #25342c;
  font-size: 14px;
  line-height: 1.15;
}

.park-friend-card span {
  color: #6f7569;
  font-size: 12px;
  font-weight: 800;
}

.park-friend-card i {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #7eb047;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.park-friend-card .locked-mark {
  background: #aaa591;
}

.park-info-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.park-info-card {
  min-width: 0;
  min-height: 118px;
  padding: 14px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.park-info-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #eff8df;
  color: #3f7437;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 900;
}

.park-info-card h3 {
  margin: 0;
  color: #31533d;
  font-size: 15px;
}

.park-info-card b {
  display: block;
  margin-top: 8px;
  color: #20412a;
  font-size: 20px;
  line-height: 1.15;
}

.park-info-card p {
  margin: 7px 0 0;
  color: #61705f;
  font-size: 13px;
  line-height: 1.35;
}

.map-preview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.map-card,
.dino-card,
.task-card,
.wish-card,
.summary-card {
  border-radius: 8px;
  border: 1px solid rgba(132, 151, 133, 0.26);
  background: #fff;
  overflow: hidden;
}

.map-card {
  min-height: 152px;
  padding: 14px;
  display: grid;
  align-content: space-between;
  gap: 10px;
}

.map-card h3,
.dino-card h3,
.task-card h3 {
  margin: 0;
  font-size: 18px;
}

.map-card p,
.dino-card p,
.task-card p,
.summary-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.map-chip {
  width: fit-content;
  border-radius: 8px;
  padding: 5px 9px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.hero-dino {
  display: grid;
  gap: 12px;
}

.dino-art {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: contain;
  background: #fff8eb;
  border-radius: 8px;
  border: 1px solid #eadfcb;
}

.dino-art.compact {
  aspect-ratio: 16 / 9;
}

.dino-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  border-radius: 8px;
  padding: 6px 9px;
  background: #edf4ee;
  color: #3f5c45;
  font-size: 13px;
  font-weight: 700;
}

.task-list {
  display: grid;
  gap: 10px;
}

.task-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
}

.task-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #edf4ee;
  color: #31533d;
  font-weight: 900;
}

.task-card.done {
  background: #f1f9ee;
  border-color: #abd3a4;
}

.task-card.pending {
  background: #fff7e7;
  border-color: #ecc57c;
}

.task-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.task-weight {
  width: fit-content;
  margin-top: 7px;
  border-radius: 8px;
  background: #fff8eb;
  color: #6d5a31;
  padding: 4px 7px;
  font-size: 12px;
  font-weight: 800;
}

.task-pending-note {
  width: fit-content;
  margin-top: 7px;
  border-radius: 8px;
  background: #fff2cf;
  color: #7a4d12;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 900;
}

.progress {
  display: grid;
  gap: 7px;
}

.progress-track {
  position: relative;
  height: 12px;
  overflow: hidden;
  border-radius: 8px;
  background: #e3eadf;
}

.progress-fill {
  height: 100%;
  border-radius: 8px;
  background: #5fae76;
  width: 0%;
  transition: width 180ms ease;
}

.goal-track .goal-marker {
  position: absolute;
  left: 70%;
  top: 0;
  z-index: 2;
  width: 3px;
  height: 100%;
  background: #d96845;
  box-shadow: 0 0 0 2px rgba(255, 250, 240, 0.78);
}

.growth-meter {
  border: 1px solid #dbe3dc;
  border-radius: 8px;
  background: #fff8eb;
  padding: 12px;
  display: grid;
  gap: 8px;
}

.growth-meter-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  font-size: 14px;
}

.growth-meter-head span {
  color: var(--muted);
  font-weight: 700;
}

.today-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.summary-card {
  min-height: 96px;
  padding: 14px;
  display: grid;
  align-content: center;
  gap: 6px;
}

.summary-card b {
  font-size: 24px;
}

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

.dino-card {
  padding: 12px;
  display: grid;
  gap: 10px;
  min-height: 390px;
}

.dino-card.locked {
  filter: grayscale(0.35);
  opacity: 0.72;
}

.first-week-dino-grid {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
}

.dino-card-teaser {
  min-height: 390px;
  align-content: center;
  background: #fbfff7;
  border-style: dashed;
}

.teaser-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e6efd9;
  color: #668162;
  font-size: 42px;
  font-weight: 900;
}

.teaser-dots {
  display: flex;
  gap: 8px;
}

.teaser-dots span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #dfead8;
  border: 1px solid #cadbc1;
}

.dino-card .dino-art {
  aspect-ratio: 16 / 8;
}

.stage-preview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.stage-thumb {
  min-width: 0;
  border-radius: 8px;
  border: 1px solid #dbe3dc;
  background: #fff8eb;
  padding: 6px;
  display: grid;
  grid-template-rows: 54px auto;
  gap: 4px;
  align-items: center;
  text-align: center;
}

.stage-thumb.active {
  border-color: #6eaa73;
  box-shadow: 0 0 0 3px rgba(111, 170, 115, 0.18);
}

.stage-thumb.reached {
  background: #f2f9e9;
}

.stage-thumb img {
  width: 100%;
  height: 54px;
  object-fit: contain;
}

.stage-thumb span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.interaction-panel {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  align-items: start;
}

.interaction-hero {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.interaction-stage {
  position: relative;
  min-height: 150px;
}

.interaction-stage .dino-art {
  height: 150px;
  aspect-ratio: auto;
}

.dino-keyframe {
  width: min(100%, var(--frame-width));
  margin: 0 auto;
  aspect-ratio: var(--frame-ratio);
  background-repeat: no-repeat;
  background-size: 400% 100%;
  background-position: 0 0;
  image-rendering: auto;
}

.dino-keyframe.keyframe-blink {
  animation: blinkSprite4Frames 3200ms steps(1, end) infinite;
}

.dino-keyframe.keyframe-wiggle {
  animation: sprite4Frames 1500ms steps(1, end) infinite;
}

.dino-keyframe.keyframe-eat {
  animation: sprite4Frames 980ms steps(1, end) both;
}

.dino-keyframe.keyframe-play {
  animation: sprite4Frames 900ms steps(1, end) both;
}

.dino-keyframe.keyframe-clean {
  animation: sprite4Frames 1100ms steps(1, end) both;
}

.dino-keyframe.keyframe-cheer {
  animation: sprite4Frames 940ms steps(1, end) both;
}

.floating-item,
.bubble-field,
.pet-spark,
.discovery-badge {
  pointer-events: none;
}

.floating-item {
  position: absolute;
  right: 22px;
  top: 20px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid #d8c9a7;
  box-shadow: 0 8px 18px rgba(54, 68, 72, 0.14);
  color: #31533d;
  font-weight: 900;
  animation: floatItem 900ms ease both;
}

.effect-snack .floating-item {
  animation-name: feedItem;
}

/* 喂食：食物图标飞向嘴部锚点并缩小消失 */
.food-fly {
  position: absolute;
  z-index: 3;
  width: 56px;
  height: 56px;
  margin-left: -28px;
  margin-bottom: -28px;
  pointer-events: none;
  animation: foodFlyIn 950ms cubic-bezier(0.3, 0.1, 0.35, 1) both;
}

.food-fly-img,
.food-fly .food-fly-text {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: grid;
  place-items: center;
  font-style: normal;
  font-weight: 900;
  font-size: 26px;
  color: #31533d;
  filter: drop-shadow(0 8px 12px rgba(54, 68, 72, 0.28));
}

@keyframes foodFlyIn {
  0% {
    transform: translate(190px, -170px) scale(1) rotate(14deg);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  62% {
    transform: translate(14px, -14px) scale(0.8) rotate(0deg);
    opacity: 1;
  }
  86% {
    transform: translate(0, 0) scale(0.42);
    opacity: 1;
  }
  100% {
    transform: translate(0, 0) scale(0.2);
    opacity: 0;
  }
}

.effect-toy .floating-item {
  animation-name: toyPop;
}

.effect-toy.liked .dino-art:not(.dino-keyframe) {
  animation: happyHop 620ms ease both;
}

.effect-clean .dino-art:not(.dino-keyframe) {
  animation: shineDino 720ms ease both;
}

.effect-pet .dino-art:not(.dino-keyframe) {
  animation: softNod 620ms ease both;
}

.bubble-field {
  /* 必须绝对定位：否则会作为 grid 子项挤占一行，把恐龙顶离地面 */
  position: absolute;
  inset: 0;
  z-index: 2;
}

.bubble-field::before,
.bubble-field::after {
  content: "";
  position: absolute;
  z-index: 2;
  border-radius: 50%;
  background: rgba(111, 190, 214, 0.34);
  border: 1px solid rgba(79, 169, 207, 0.42);
  animation: bubbleRise 900ms ease both;
}

.bubble-field::before {
  width: 26px;
  height: 26px;
  right: 36px;
  bottom: 32px;
}

.bubble-field::after {
  width: 18px;
  height: 18px;
  right: 76px;
  bottom: 52px;
  animation-delay: 120ms;
}

.pet-spark {
  position: absolute;
  right: 48px;
  top: 22px;
  z-index: 2;
  color: #ef8b9a;
  font-size: 32px;
  font-weight: 900;
  animation: petSpark 760ms ease both;
}

.discovery-badge {
  position: absolute;
  left: 50%;
  bottom: 10px;
  z-index: 3;
  transform: translateX(-50%);
  border-radius: 999px;
  border: 1px solid #9fcf93;
  background: #f1f9ee;
  color: #31533d;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(54, 68, 72, 0.12);
  white-space: nowrap;
  animation: badgePop 900ms ease both;
}

.interaction-hero h2 {
  margin: 4px 0;
  font-size: 26px;
}

.interaction-hero p {
  margin: 0 0 10px;
  color: var(--muted);
}

.interaction-actions {
  display: grid;
  gap: 12px;
}

.interaction-message {
  border-radius: 8px;
  background: #f1f8e6;
  color: #31533d;
  padding: 11px 12px;
  font-weight: 800;
}

.egg-care-card {
  border: 1px solid #d8e6c8;
  border-radius: 8px;
  background: #fbfff7;
  padding: 12px;
  display: grid;
  gap: 4px;
}

.egg-care-card b {
  color: #31533d;
}

.egg-care-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.interaction-group {
  display: grid;
  gap: 8px;
}

.interaction-group h3 {
  margin: 0;
  font-size: 16px;
}

.item-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.item-action {
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid #d5ded8;
  background: #fff;
  color: #3f5660;
  padding: 7px 9px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  text-align: left;
  font-weight: 800;
}

.item-action.fit {
  border-color: #8fc48a;
  background: #f1f9ee;
  color: #31533d;
}

.item-action:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.item-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #edf4ee;
  color: #31533d;
  font-size: 14px;
  font-weight: 900;
  flex: 0 0 auto;
}

.item-icon.large {
  width: 46px;
  height: 46px;
  font-size: 22px;
}

.preference-box {
  border-radius: 8px;
  border: 1px solid #dbe3dc;
  background: #fbfff7;
  padding: 9px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.preference-box span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.preference-box b {
  display: block;
  margin-top: 3px;
  font-size: 14px;
}

.like-slots {
  display: flex;
  gap: 6px;
  margin-top: 3px;
}

.like-slot {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px dashed #cbd9cf;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.like-slot.discovered {
  border-style: solid;
  border-color: #8fc48a;
  background: #eef8e7;
  color: #31533d;
}

.shop-layout {
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr);
}

.resource-pill.compact {
  min-width: 86px;
}

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

.first-week-note {
  margin-bottom: 12px;
  border: 1px solid #d8e6c8;
  border-radius: 8px;
  background: #f6fbef;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.first-week-note b {
  color: #31533d;
  font-size: 15px;
}

.first-week-note span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.shop-item {
  min-height: 152px;
  border: 1px solid #dbe3dc;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  display: grid;
  align-content: space-between;
  gap: 10px;
}

.shop-item.fit {
  border-color: #9fcf93;
  background: #fbfff7;
}

.shop-item.recent {
  animation: cardPulse 520ms ease both;
}

.shop-item-head {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 32px;
  gap: 10px;
  align-items: center;
}

.shop-item h3 {
  margin: 0;
  font-size: 17px;
}

.shop-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.item-info {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #d5ded8;
  background: #fff;
  color: #3f5660;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.item-popover {
  position: absolute;
  right: 0;
  top: 38px;
  z-index: 5;
  width: 190px;
  border-radius: 8px;
  border: 1px solid #d8c9a7;
  background: #fffaf0;
  color: var(--ink);
  box-shadow: var(--shadow);
  padding: 10px;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
  text-align: left;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
}

.item-info:hover .item-popover,
.item-info:focus-visible .item-popover,
.item-info:active .item-popover {
  opacity: 1;
  transform: translateY(0);
}

.shop-item-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.shop-side {
  display: grid;
  gap: 18px;
  align-content: start;
}

.backpack-panel {
  display: grid;
  gap: 10px;
}

.backpack-grid {
  display: grid;
  gap: 8px;
}

.backpack-item {
  border: 1px solid #dbe3dc;
  border-radius: 8px;
  background: #fff;
  padding: 9px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
}

.backpack-item b {
  display: block;
  font-size: 14px;
}

.backpack-item span:last-child {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.shop-next-card {
  display: grid;
  gap: 12px;
  background: #f6fbef;
  border-color: #cfe0c6;
}

.shop-next-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.shop-next-item h2 {
  margin: 2px 0 4px;
  font-size: 20px;
}

.shop-next-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.material-build {
  display: grid;
  gap: 12px;
}

.build-status {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.build-status b {
  font-size: 18px;
}

.build-status span,
.material-build p {
  color: var(--muted);
  font-size: 13px;
}

.empty.mini {
  min-height: 54px;
  padding: 10px;
  font-size: 13px;
}

@keyframes feedItem {
  0% {
    opacity: 0;
    transform: translate(30px, -16px) scale(0.8);
  }
  55% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-68px, 44px) scale(0.52);
  }
}

@keyframes sprite4Frames {
  0%,
  24.99% {
    background-position: 0 0;
  }
  25%,
  49.99% {
    background-position: 33.333% 0;
  }
  50%,
  74.99% {
    background-position: 66.666% 0;
  }
  75%,
  100% {
    background-position: 100% 0;
  }
}

@keyframes blinkSprite4Frames {
  0%,
  78% {
    background-position: 0 0;
  }
  82% {
    background-position: 33.333% 0;
  }
  86% {
    background-position: 66.666% 0;
  }
  90%,
  100% {
    background-position: 100% 0;
  }
}

@keyframes petHandPat {
  0% {
    opacity: 0;
    transform: translate(16px, -8px) rotate(-10deg) scale(0.88);
  }
  20% {
    opacity: 1;
    transform: translate(4px, 2px) rotate(5deg) scale(1);
  }
  46% {
    opacity: 1;
    transform: translate(-2px, 10px) rotate(9deg) scale(1);
  }
  72% {
    opacity: 1;
    transform: translate(4px, 2px) rotate(4deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(12px, -6px) rotate(-8deg) scale(0.92);
  }
}

@keyframes floatItem {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.82);
  }
  45% {
    opacity: 1;
    transform: translateY(-8px) scale(1.05);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toyPop {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.72) rotate(-8deg);
  }
  55% {
    opacity: 1;
    transform: translateY(-8px) scale(1.08) rotate(6deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0);
  }
}

@keyframes happyHop {
  0%,
  100% {
    transform: translateY(0);
  }
  35% {
    transform: translateY(-12px) rotate(-1deg);
  }
  70% {
    transform: translateY(-5px) rotate(1deg);
  }
}

@keyframes shineDino {
  0%,
  100% {
    filter: none;
  }
  55% {
    filter: brightness(1.08) saturate(1.08);
  }
}

@keyframes softNod {
  0%,
  100% {
    transform: rotate(0deg);
  }
  45% {
    transform: rotate(-1.5deg) scale(1.01);
  }
}

@keyframes bubbleRise {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.7);
  }
  45% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-48px) scale(1.12);
  }
}

@keyframes petSpark {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.7);
  }
  50% {
    opacity: 1;
    transform: translateY(-8px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-24px) scale(0.9);
  }
}

@keyframes badgePop {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(8px) scale(0.92);
  }
  20%,
  80% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-6px) scale(0.98);
  }
}

@keyframes cardPulse {
  0%,
  100% {
    box-shadow: none;
  }
  50% {
    box-shadow: 0 0 0 4px rgba(111, 170, 115, 0.2);
  }
}

.name-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.name-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  padding: 24px;
  background: rgba(36, 49, 58, 0.38);
  display: grid;
  place-items: center;
}

.name-modal {
  width: min(520px, 100%);
  border-radius: 8px;
  border: 1px solid #d8c9a7;
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: 22px;
  display: grid;
  gap: 16px;
  text-align: center;
}

.name-modal .dino-art {
  height: 220px;
}

.name-modal h2 {
  margin: 4px 0 6px;
}

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

.supply-confirm-modal {
  text-align: left;
}

.supply-confirm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.supply-confirm-grid div {
  min-height: 72px;
  border: 1px solid #dce4d8;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 12px;
  display: grid;
  align-content: center;
  gap: 4px;
}

.supply-confirm-grid span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.supply-confirm-grid b {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.05;
}

.eyebrow {
  margin: 0;
  color: #6b7f38;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.celebration-backdrop {
  position: fixed;
  inset: 0;
  z-index: 28;
  padding: 24px;
  background: rgba(36, 49, 58, 0.36);
  display: grid;
  place-items: start center;
  overflow-y: auto;
}

.celebration-modal {
  position: relative;
  width: min(780px, 100%);
  max-height: calc(100vh - 48px);
  border-radius: 8px;
  border: 1px solid #d8c9a7;
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: 20px;
  display: grid;
  grid-template-columns: minmax(220px, 0.78fr) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  overflow-y: auto;
}

.celebration-modal.stage-up {
  border-color: #9ebf68;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid #d8c9a7;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  background: #fff8eb;
}

.celebration-art {
  min-height: 280px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #fff8eb;
  border: 1px solid #ecdcb9;
}

.celebration-art .dino-art {
  width: 100%;
  height: 250px;
}

.celebration-copy {
  display: grid;
  gap: 12px;
}

.celebration-copy h2 {
  margin: 0;
  font-size: 28px;
}

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

.celebration-message {
  border-radius: 8px;
  background: #f1f8e6;
  color: #31533d;
  padding: 11px 12px;
  font-weight: 800;
}

.reward-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.reward-chip {
  min-height: 66px;
  border: 1px solid #dbe3dc;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  display: grid;
  align-content: center;
  gap: 4px;
}

.reward-chip span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.reward-chip b {
  font-size: 20px;
}

.celebration-growth {
  display: grid;
  gap: 8px;
}

.celebration-growth b {
  display: block;
}

.celebration-growth span {
  color: var(--muted);
  font-size: 13px;
}

.celebration-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.celebration-actions button {
  width: 100%;
}

.node-grid {
  display: grid;
  grid-template-columns: repeat(15, minmax(28px, 1fr));
  gap: 7px;
}

.day-node {
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #eef1ec;
  border: 1px solid #d7dfd8;
  color: #65726a;
  font-size: 12px;
  font-weight: 800;
}

.day-node.current {
  background: #fff2c5;
  border-color: #e0b849;
  color: #7b5a00;
}

.day-node.done {
  background: #dff0d6;
  border-color: #90bf85;
  color: #315d35;
}

.day-node.supply {
  background: #dceefa;
  border-color: #86bede;
  color: #285c78;
}

.day-node.missed {
  background: #f3e3dc;
  border-color: #ddb9aa;
  color: #8f5a48;
}

/* ============ 地图探索（4 条横向场景带） ============ */

.map-page {
  display: grid;
  gap: 16px;
}

.map-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.map-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.map-title-icon {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  background: #e4f3cf;
  display: grid;
  place-items: center;
}

.map-title-img {
  width: 34px;
  height: 34px;
}

.map-title h1 {
  margin: 0;
  font-size: 30px;
  color: #2f5233;
}

.map-title p {
  margin: 2px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.map-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  align-items: start;
}

.map-bands {
  display: grid;
  gap: 14px;
}

.map-band {
  position: relative;
  height: 168px;
  border-radius: 8px;
  border: 1px solid rgba(214, 188, 124, 0.58);
  background-size: cover;
  background-position: center 62%;
  overflow: visible;
  box-shadow: 0 10px 24px rgba(86, 74, 42, 0.1);
}

.map-band.active {
  border-color: rgba(111, 170, 115, 0.9);
  box-shadow: 0 0 0 3px rgba(111, 170, 115, 0.24), 0 12px 26px rgba(86, 74, 42, 0.12);
}

.map-band-chip {
  position: absolute;
  z-index: 3;
  top: 10px;
  left: 12px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 8px;
  background: rgba(255, 252, 243, 0.94);
  border: 1px solid rgba(214, 188, 124, 0.72);
  box-shadow: 0 6px 14px rgba(70, 63, 41, 0.14);
}

.map-band-chip b {
  color: var(--band-color, #31533d);
  font-size: 17px;
}

.map-band-chip span {
  color: #6b735f;
  font-size: 12px;
  font-weight: 800;
}

.map-band-path {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.map-band-path path {
  fill: none;
  stroke: rgba(255, 252, 240, 0.85);
  stroke-width: 5;
  stroke-dasharray: 1 12;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.map-node {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 34px;
  height: 34px;
  margin-top: calc(var(--node-shift, 0px) - 17px);
  transform: translateX(-50%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 253, 245, 0.88);
  box-shadow: 0 4px 10px rgba(52, 48, 30, 0.28);
}

.map-node b {
  font-size: 13px;
  color: #5c6250;
}

.map-node.done {
  background: #67b06e;
  border-color: #ffffff;
}

.map-node.done b {
  color: #ffffff;
}

/* 补给日也算达标：绿色 + 右上角补给券角标 */
.map-node.supply {
  background: #67b06e;
  border-color: #ffffff;
}

.map-node.supply b {
  color: #ffffff;
}

/* 未达标：黄色 */
.map-node.missed {
  background: #f2c94c;
  border-color: #ffffff;
}

.map-node.missed b {
  color: #7a5a12;
}

.map-node.current {
  width: 44px;
  height: 44px;
  margin-top: calc(var(--node-shift, 0px) - 22px);
  background: #fff6df;
  border: 3px solid #ef9f4b;
  box-shadow: 0 0 0 5px rgba(239, 159, 75, 0.32), 0 6px 14px rgba(52, 48, 30, 0.3);
  animation: mapNodePulse 1.6s ease-in-out infinite;
}

.map-node.current b {
  font-size: 16px;
  color: #b06a1f;
}

@keyframes mapNodePulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(239, 159, 75, 0.34), 0 6px 14px rgba(52, 48, 30, 0.3);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(239, 159, 75, 0.18), 0 6px 14px rgba(52, 48, 30, 0.3);
  }
}

.map-you-are-here {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 8px;
  background: #ef9f4b;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 6px 12px rgba(70, 50, 20, 0.3);
}

.map-you-are-here::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #ef9f4b;
}

.map-node-badge {
  position: absolute;
  top: -8px;
  right: -9px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e3c98d;
  display: grid;
  place-items: center;
}

.map-node-badge-img {
  width: 13px;
  height: 13px;
}

.map-node-egg {
  position: absolute;
  top: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 30px;
  object-fit: contain;
  filter: drop-shadow(0 3px 5px rgba(50, 45, 25, 0.35));
}

.map-node-treasure {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
}

.map-node-treasure-img {
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 3px 6px rgba(50, 45, 25, 0.4));
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(255, 251, 240, 0.94);
  border: 1px solid rgba(214, 188, 124, 0.5);
  color: #5c6250;
  font-size: 13px;
  font-weight: 800;
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 2px 5px rgba(52, 48, 30, 0.25);
  background: rgba(255, 253, 245, 0.95);
}

.legend-dot.done {
  background: #67b06e;
}

.legend-dot.supply {
  background: #67b06e;
  position: relative;
}

.legend-dot.supply::after {
  content: "券";
  position: absolute;
  top: -7px;
  right: -8px;
  font-size: 9px;
  font-style: normal;
  color: #6b4d17;
  background: #f7dc9b;
  border-radius: 50%;
  width: 13px;
  height: 13px;
  line-height: 13px;
  text-align: center;
}

.legend-dot.current {
  background: #fff6df;
  border-color: #ef9f4b;
}

.legend-dot.missed {
  background: #f2c94c;
}

.map-side-panel {
  display: grid;
  gap: 12px;
}

.map-info-card {
  border: 1px solid rgba(214, 188, 124, 0.58);
  border-radius: 8px;
  background: rgba(255, 251, 240, 0.94);
  box-shadow: 0 10px 22px rgba(86, 74, 42, 0.08);
  padding: 14px 16px;
  display: grid;
  gap: 8px;
}

.map-info-label {
  color: #6b735f;
  font-size: 13px;
  font-weight: 900;
}

.map-big-number {
  font-size: 34px;
  font-weight: 900;
  color: #2f5233;
  line-height: 1;
}

.map-big-number small {
  margin-left: 6px;
  font-size: 14px;
  color: #8a8f7c;
  font-weight: 800;
}

.map-progress-track {
  height: 10px;
  border-radius: 999px;
  background: #e7e3d2;
  overflow: hidden;
}

.map-progress-track span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #8ccd46, #5daa2f);
}

.map-progress-track.wish span {
  background: linear-gradient(90deg, #f4cf6d, #eda944);
}

.map-current-name {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.map-current-name b {
  font-size: 24px;
}

.map-current-name span {
  color: #8a8f7c;
  font-size: 13px;
  font-weight: 800;
}

.map-current-thumb {
  height: 74px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(214, 188, 124, 0.5);
}

.map-info-hint {
  margin: 0;
  color: #6b735f;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

/* 旧版节点列表样式（打卡日历仍在使用 day-node） */
.timeline-map {
  display: grid;
  gap: 18px;
}

.map-row {
  display: grid;
  gap: 10px;
}

.map-row-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 8px;
}

.calendar-cell {
  min-height: 58px;
  border-radius: 8px;
  padding: 8px;
  border: 1px solid #dbe3dc;
  background: #fff;
  display: grid;
  gap: 3px;
}

.calendar-cell b {
  font-size: 14px;
}

.calendar-cell span {
  color: var(--muted);
  font-size: 12px;
}

.parent-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.85fr) 1fr;
  gap: 18px;
}

.parent-pending-panel {
  border-color: #ecc57c;
  background: #fffaf0;
}

.pending-count {
  min-width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #fff2cf;
  color: #7a4d12;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 900;
}

.pending-review-list {
  display: grid;
  gap: 10px;
}

.pending-review-item {
  border: 1px solid #ead6a7;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.pending-review-item h3 {
  margin: 0;
  font-size: 18px;
}

.pending-review-item p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.task-admin-list {
  display: grid;
  gap: 10px;
}

.task-admin-item {
  border: 1px solid #dbe3dc;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.task-weight-form {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 110px auto;
  gap: 8px;
  align-items: center;
  justify-content: start;
}

.weight-status {
  margin-bottom: 10px;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 800;
}

.weight-status.ok {
  background: #edf7e8;
  color: #31533d;
}

.weight-status.warn {
  background: #fff3dc;
  color: #7a4d12;
}

.dino-name-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.dino-name-admin-item {
  border: 1px solid #dbe3dc;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.dino-name-admin-item .dino-art {
  width: 92px;
  height: 92px;
}

.dino-name-admin-item h3 {
  margin: 0;
  font-size: 18px;
}

.dino-name-admin-item p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.dino-name-admin-item .name-row {
  grid-column: 1 / -1;
}

.data-safety-panel {
  border-color: #d6c99f;
  background: #fffdf4;
}

.data-safety-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.data-safety-card {
  border: 1px solid #e3d6aa;
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.data-safety-card h3 {
  margin: 0;
  color: #31533d;
  font-size: 18px;
}

.data-safety-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.data-safety-card button {
  justify-self: start;
}

.test-tools {
  border-color: #cfdfd3;
}

.test-tools-title {
  align-items: center;
}

.test-tools-toggle {
  min-width: 86px;
}

.test-tools-collapsed {
  border: 1px dashed #cfdfd3;
  border-radius: 8px;
  background: #f8fbf2;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.test-tools-collapsed b {
  color: #31533d;
  font-size: 13px;
  word-break: break-all;
}

.test-tool-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(360px, 1.3fr) minmax(260px, 0.9fr);
  gap: 12px;
}

.test-tool-panel {
  border: 1px solid #dbe3dc;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.test-tool-panel h3 {
  margin: 0;
  font-size: 17px;
}

.test-tool-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.version-card {
  border: 1px solid #dbe3dc;
  border-radius: 8px;
  background: #fbfff7;
  padding: 10px;
  display: grid;
  gap: 4px;
}

.version-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.version-card b {
  color: #31533d;
  font-size: 14px;
  word-break: break-all;
}

.button-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.secondary.active {
  border-color: #5fae76;
  background: #eef8e7;
  color: #31533d;
}

.test-dino-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.test-dino-row .dino-art {
  width: 92px;
  height: 92px;
}

.test-dino-row b {
  display: block;
  margin-bottom: 5px;
  font-size: 18px;
}

.inline-actions.left {
  justify-content: flex-start;
}

.inline-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  max-width: 420px;
  padding: 14px 16px;
  border-radius: 8px;
  background: #2f4b3b;
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.empty {
  min-height: 120px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  border: 1px dashed #cbd9cf;
  border-radius: 8px;
  background: #fbfff7;
  padding: 20px;
}

.hidden {
  display: none !important;
}

@media (max-width: 1366px) {
  body {
    min-width: 0;
    height: 100dvh;
    overflow: hidden;
  }

  .app-shell {
    height: 100dvh;
    overflow: hidden;
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 12;
    padding: 12px 18px 10px;
    gap: 14px;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
    font-size: 24px;
  }

  .brand h1 {
    font-size: 24px;
  }

  .brand p {
    margin-top: 3px;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .resource-strip {
    gap: 8px;
  }

  .resource-pill {
    min-width: 78px;
    padding: 7px 10px;
  }

  .resource-pill b {
    font-size: 17px;
  }

  .layout {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: 0;
  }

  .content {
    order: 1;
    padding: 16px 18px calc(98px + env(safe-area-inset-bottom));
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .sidebar {
    order: 2;
    position: relative;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    border-right: 0;
    border-top: 1px solid rgba(116, 131, 112, 0.24);
    background: rgba(238, 245, 228, 0.96);
    box-shadow: 0 -10px 24px rgba(54, 68, 72, 0.12);
    backdrop-filter: blur(10px);
  }

  .sidebar .nav-list {
    display: contents;
  }

  .nav-button {
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: 68px;
    padding: 7px 4px;
    gap: 5px;
    text-align: center;
    font-size: 13px;
  }

  .nav-icon {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }

  .band {
    padding: 18px;
  }

  .section-title h2,
  .section-title h3 {
    font-size: 22px;
  }

  .primary,
  .secondary,
  .ghost,
  .danger {
    min-height: 48px;
    padding: 11px 16px;
  }

  .task-card {
    grid-template-columns: 54px minmax(0, 1fr) minmax(98px, auto);
    padding: 14px;
  }

  .task-icon {
    width: 52px;
    height: 52px;
    font-size: 17px;
  }

  .task-actions .primary,
  .task-actions .secondary {
    min-width: 96px;
  }

  .hero-dino .dino-art {
    max-height: 260px;
  }

  .first-week-strip article {
    min-height: 86px;
  }

  .reward-milestones {
    grid-template-columns: repeat(6, minmax(46px, 1fr));
  }

  .week-route-days {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .first-week-action-card .inline-actions {
    flex: 0 0 auto;
  }

  .interaction-hero {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .interaction-stage .dino-art {
    height: 180px;
  }

  .item-action {
    min-height: 52px;
    padding: 8px 10px;
  }

  .shop-item {
    min-height: 164px;
  }

  .adventure-shell .layout {
    grid-template-columns: 112px minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    height: 100dvh;
  }

  .adventure-shell .content {
    order: 0;
    padding: 18px 20px;
    /* 与基础规则保持一致：长页面（家长中心/小店/地图）需要纵向滚动 */
    overflow-y: auto;
    overflow-x: hidden;
  }

  .adventure-shell .sidebar {
    order: 0;
    position: static;
    display: flex;
    grid-template-columns: none;
    padding: 14px 12px;
    gap: 18px;
    border-top: 0;
    border-right: 1px solid rgba(210, 186, 126, 0.55);
    box-shadow: 10px 0 26px rgba(83, 73, 49, 0.08);
  }

  .adventure-shell .nav-list {
    display: grid;
    width: 100%;
    gap: 14px;
  }

  .adventure-shell .nav-button {
    grid-template-columns: 1fr;
    min-height: 92px;
    font-size: 15px;
  }

  .adventure-title h1 {
    font-size: 42px;
  }

  .adventure-main-panel {
    grid-template-columns: minmax(390px, 0.92fr) minmax(500px, 1.08fr);
  }

  .adventure-task-scroll {
    max-height: 470px;
  }

  .adventure-task-card {
    min-height: 86px;
    grid-template-columns: 76px minmax(0, 1fr) 66px 110px;
  }

  .adventure-task-name h3 {
    font-size: 21px;
  }
}

@media (max-width: 900px) {
  .grid-2,
  .setup-grid,
  .interaction-panel,
  .celebration-modal,
  .park-main-grid,
  .test-tool-grid,
  .parent-grid {
    grid-template-columns: 1fr;
  }

  .dino-grid,
  .first-week-dino-grid,
  .data-safety-grid,
  .dino-name-admin-grid,
  .map-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .park-page {
    height: auto;
  }

  .park-scene-card {
    min-height: 640px;
  }

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

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

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

  .first-week-progress-grid {
    grid-template-columns: 1fr;
  }

  .first-week-progress-grid .first-week-route-card,
  .first-week-progress-grid .first-week-reward-panel,
  .first-week-progress-grid .first-week-wish-card,
  .first-week-progress-grid .first-week-action-card {
    grid-column: auto;
  }

  .adventure-shell {
    overflow: auto;
  }

  .adventure-shell .layout {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    height: auto;
    min-height: 100dvh;
  }

  .adventure-shell .content {
    padding: 14px 14px calc(96px + env(safe-area-inset-bottom));
    overflow: visible;
  }

  .adventure-shell .sidebar {
    order: 2;
    position: sticky;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    border-right: 0;
    border-top: 1px solid rgba(210, 186, 126, 0.55);
  }

  .adventure-shell .sidebar-menu-button,
  .adventure-shell .sidebar-avatar {
    display: none;
  }

  .adventure-shell .nav-list {
    display: contents;
  }

  .adventure-shell .nav-button {
    min-height: 68px;
    font-size: 13px;
  }

  .adventure-today-page {
    height: auto;
  }

  .adventure-page-header,
  .adventure-main-panel,
  .adventure-bottom-grid {
    grid-template-columns: 1fr;
  }

  .adventure-wish-card,
  .adventure-supply-card,
  .adventure-reward-card {
    grid-template-columns: 1fr;
  }

  .adventure-header-tools {
    justify-content: flex-start;
  }

  .adventure-task-scroll {
    height: auto;
    max-height: 470px;
  }

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

  .celebration-art {
    min-height: 220px;
  }

  .celebration-art .dino-art {
    height: 210px;
  }

  .interaction-hero {
    grid-template-columns: 160px minmax(0, 1fr);
  }

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

@media (max-width: 760px) {
  .topbar {
    grid-template-columns: 1fr;
  }

  .resource-strip {
    justify-content: flex-start;
  }

  .content {
    padding: 14px 12px calc(90px + env(safe-area-inset-bottom));
  }

  .sidebar {
    gap: 4px;
    padding-inline: 8px;
  }

  .nav-button {
    min-height: 60px;
    font-size: 12px;
  }

  .nav-icon {
    width: 32px;
    height: 32px;
  }

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

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

  .park-title h1 {
    font-size: 34px;
  }

  .park-scene-card {
    min-height: 680px;
  }

  .park-growth-overlay {
    left: 14px;
    right: 14px;
    width: auto;
  }

  .park-speech {
    top: 172px;
    right: 16px;
    max-width: 260px;
  }

  .park-scene-stage {
    left: 4%;
    right: auto;
    width: min(58%, 520px);
    height: 350px;
    bottom: 128px;
  }

  .park-action-dock {
    grid-template-columns: repeat(4, minmax(96px, 1fr));
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .park-stage-strip,
  .park-friends-grid,
  .park-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .test-tools-collapsed {
    align-items: flex-start;
    flex-direction: column;
  }

  .task-card {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .task-icon {
    width: 44px;
    height: 44px;
  }

  .task-actions {
    grid-column: 2;
  }

  .first-week-main-grid .task-list {
    grid-template-columns: 1fr;
  }

  .pending-review-item {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .pending-review-item button {
    grid-column: 2;
    width: fit-content;
  }

  .first-week-action-card {
    align-items: stretch;
    flex-direction: column;
  }

  .first-week-wish-card {
    align-items: stretch;
    flex-direction: column;
  }

  .wish-card-action,
  .wish-card-action button,
  .wish-card-action > span {
    width: 100%;
  }

  .wish-steps {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .wish-steps i {
    width: 100%;
  }

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

  .first-week-action-card .inline-actions {
    width: 100%;
  }

  .celebration-actions {
    grid-template-columns: 1fr;
  }

  .reward-panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .reward-total {
    justify-items: start;
  }

  .reward-milestones {
    grid-template-columns: repeat(4, minmax(46px, 1fr));
  }

  .dino-grid,
  .first-week-dino-grid,
  .shop-grid,
  .item-action-grid,
  .data-safety-grid,
  .dino-name-admin-grid,
  .park-info-grid,
  .map-preview {
    grid-template-columns: 1fr;
  }

  .interaction-hero {
    grid-template-columns: 1fr;
  }

  .supply-confirm-grid {
    grid-template-columns: 1fr;
  }
}

/* 自动进天提示（替代原"进入下一天"按钮） */
.next-day-hint {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: #f1eeda;
  color: #8a8471;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.next-day-hint.reached {
  background: #e3f4d3;
  color: #3f7437;
}

/* ============ 家长中心 · 任务统计 ============ */

.parent-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.stats-card {
  border: 1px solid rgba(214, 188, 124, 0.5);
  border-radius: 8px;
  background: #fffdf5;
  padding: 14px 16px;
  display: grid;
  gap: 12px;
}

.stats-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.stats-card-head h3 {
  margin: 0;
  font-size: 18px;
  color: #2f5233;
}

.stats-card-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.stats-week-nav {
  display: flex;
  gap: 6px;
}

.stats-week-nav button {
  min-width: 38px;
  padding: 6px 10px;
}

.stats-row {
  display: grid;
  gap: 6px;
  padding: 8px 0;
  border-top: 1px dashed rgba(203, 186, 140, 0.45);
}

.stats-row.disabled {
  opacity: 0.55;
}

.stats-row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.stats-row-head b {
  color: #33413a;
  font-size: 15px;
}

.stats-paused {
  margin-left: 8px;
  font-style: normal;
  font-size: 12px;
  color: #9a917c;
  border: 1px solid #d8cfae;
  border-radius: 6px;
  padding: 1px 6px;
}

.stats-row-head span {
  color: #6b735f;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.stats-track {
  height: 10px;
  border-radius: 999px;
  background: #ece7d4;
  overflow: hidden;
}

.stats-track span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f4cf6d, #eda944);
}

.stats-track.ok span {
  background: linear-gradient(90deg, #8ccd46, #5daa2f);
}

.stats-track.total span {
  background: linear-gradient(90deg, #9ec3e8, #5f97cd);
}

.stats-track.no-target span {
  background: #cfc9b4;
}

.stats-chip {
  justify-self: start;
  font-size: 12px;
  font-weight: 900;
  border-radius: 999px;
  padding: 3px 10px;
}

.stats-chip.ok {
  background: #e3f4d3;
  color: #3f7437;
}

.stats-chip.warn {
  background: #fdf1cf;
  color: #9a6b12;
}

.stats-chip.bad {
  background: #fbe3dc;
  color: #b04a2f;
}

.stats-chip.muted {
  background: #efeadb;
  color: #8a8471;
}

.stats-empty {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.task-weekly-select {
  min-width: 120px;
}

/* 地图探索响应式 */
@media (max-width: 1366px) {
  .map-main-grid {
    grid-template-columns: minmax(0, 1fr) 260px;
  }

  .map-big-number {
    font-size: 28px;
  }
}

@media (max-width: 1100px) {
  .map-main-grid {
    grid-template-columns: 1fr;
  }

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

  .parent-stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .map-side-panel {
    grid-template-columns: 1fr;
  }

  .map-band {
    height: 150px;
  }

  .map-node {
    width: 28px;
    height: 28px;
    margin-top: calc(var(--node-shift, 0px) - 14px);
  }

  .map-node b {
    font-size: 11px;
  }

  .map-node.current {
    width: 38px;
    height: 38px;
    margin-top: calc(var(--node-shift, 0px) - 19px);
  }
}
