.stage--core-progression { padding: 0; }

.core-chapter,
.core-growth,
.core-adoption,
.core-bond-home {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.core-chapter__scene,
.core-growth__scene,
.core-adoption__scene,
.core-bond-home__scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  min-width: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.core-scene-playfield {
  position: absolute;
  inset: 70px 382px 24px 24px;
}

/* Furniture is authored against the complete room, independently from the narrower cat playfield. */
.core-scene-playfield > .room-decorations {
  position: absolute;
  display: block;
  inset: -70px -382px -24px -24px;
  pointer-events: none;
}

.core-growth__scene > .room-camera-controls,
.core-adoption__scene > .room-camera-controls,
.core-bond-home__scene > .room-camera-controls {
  top: 168px;
  left: 12px;
  grid-template-columns: repeat(3, 36px);
  grid-template-rows: repeat(2, 36px);
  gap: 4px;
}

.core-chapter__panel,
.core-growth__panel,
.core-adoption__panel,
.core-bond-home__panel {
  position: absolute;
  z-index: 20;
  top: 70px;
  right: 24px;
  bottom: 24px;
  display: flex;
  width: 340px;
  min-height: 0;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
  padding: 26px;
  border: 1px solid rgb(255 255 255 / 54%);
  border-radius: 26px;
  background: rgb(255 249 237 / 88%);
  box-shadow: 0 20px 42px rgb(68 44 34 / 15%);
  backdrop-filter: blur(16px);
}

.core-chapter__panel h1,
.core-growth__panel h1,
.core-adoption__panel h1,
.core-bond-home__panel h1 { margin: 0; font-family: var(--font-display); font-size: 30px; line-height: 1.15; }

.core-chapter__panel p,
.core-growth__panel p,
.core-adoption__panel p,
.core-bond-home__panel p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }

.core-chapter__day,
.core-stage-label,
.core-bond-home__panel > span { color: #b26761; font-size: 12px; font-weight: 900; letter-spacing: .14em; }

.core-chapter--labor .core-chapter__scene,
.core-chapter--birth .core-chapter__scene {
  background: url("../assets/scenes/nursery-night-landscape.png") center / cover no-repeat;
}

.core-labor-cat {
  position: absolute;
  z-index: 2;
  right: 12%;
  bottom: 5%;
  width: 430px;
  height: 440px;
  object-fit: contain;
  filter: drop-shadow(0 26px 22px rgb(34 26 40 / 26%));
  animation: core-breathe 3s ease-in-out infinite;
}

.core-labor-blanket {
  --swipe-progress: 0;
  --swipe-x: 0px;
  position: absolute;
  z-index: 4;
  right: 39%;
  bottom: 4%;
  display: grid;
  width: 220px;
  justify-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff8e9;
  cursor: grab;
  touch-action: none;
  filter: drop-shadow(0 16px 16px rgb(34 26 40 / 28%));
}

.core-labor-blanket:active,
.core-labor-blanket.is-swiping { cursor: grabbing; }

.core-labor-blanket img {
  width: 100%;
  transform: translateX(var(--swipe-x)) rotate(calc(var(--swipe-progress) * 7deg));
  object-fit: contain;
  transition: transform 120ms ease-out;
}

.core-labor-blanket span {
  margin-top: -10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgb(58 40 42 / 72%);
  font-size: 12px;
  font-weight: 900;
  text-shadow: 0 2px 6px rgb(0 0 0 / 30%);
}

.core-labor-blanket:focus-visible { outline: 3px solid #fff2c7; outline-offset: 5px; }

.core-labor-breath { position: absolute; bottom: 8%; left: 10%; display: flex; gap: 10px; }
.core-labor-breath i { width: 46px; height: 7px; border-radius: 999px; background: rgb(255 255 255 / 25%); }
.core-labor-breath i.is-done { background: #ffd28a; }
.core-labor-breath i.is-active { background: #fff5d8; box-shadow: 0 0 18px rgb(255 221 151 / 70%); }

.core-nursing-mother {
  position: absolute;
  z-index: 2;
  bottom: 0;
  left: 50%;
  width: 430px;
  height: 430px;
  object-fit: contain;
  transform: translateX(-50%);
  filter: drop-shadow(0 24px 20px rgb(34 26 40 / 24%));
}

.core-newborn-grid {
  position: absolute;
  z-index: 4;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.core-newborn-card {
  display: grid;
  width: 132px;
  min-height: 120px;
  justify-items: center;
  padding: 9px;
  border: 1px solid rgb(255 255 255 / 42%);
  border-radius: 18px;
  background: rgb(255 249 235 / 80%);
  color: #624943;
  backdrop-filter: blur(10px);
}

.core-newborn-card img { width: 88px; height: 72px; object-fit: contain; }
.core-newborn-card b { font-size: 12px; }
.core-newborn-card small { color: var(--muted); font-size: 9px; }
.core-newborn-card.is-hidden { place-content: center; background: rgb(49 43 62 / 50%); color: rgb(255 247 224 / 72%); }

.core-growth__scene {
  display: grid;
  place-items: center;
  background: url("../assets/scenes/starter-home-depth-v2.png") var(--room-camera-x, 50%) var(--room-camera-y, 50%) / auto 128% no-repeat;
  transition: background-position 520ms cubic-bezier(.2, .76, .2, 1);
}

.core-growth[data-growth-stage="newborn"] .core-growth__scene { background-image: url("../assets/scenes/nursery-night-landscape.png"); }

/* Twenty-day littermates share one soft nest so their small bodies read as cared for, not scattered on the floor. */
.core-litter-nest {
  pointer-events: none;
  position: absolute;
  z-index: 1;
  bottom: 20px;
  left: 50%;
  width: 620px;
  height: 320px;
  transform: translateX(-50%);
  translate: var(--room-anchor-shift-x, 0) var(--room-anchor-shift-y, 0);
  background: url("../assets/props/cat-bed.png") center bottom / contain no-repeat;
  filter: drop-shadow(0 18px 12px rgb(70 44 30 / 22%));
  transition: translate 520ms cubic-bezier(.2, .76, .2, 1);
}

[data-room-camera].is-camera-dragging .core-litter-nest,
[data-room-camera].is-camera-restoring .core-litter-nest { transition: none; }

.core-growth-cat {
  position: absolute;
  z-index: 2;
  bottom: 70px;
  left: 50%;
  width: 320px;
  height: 340px;
  margin: 0;
  --growth-tone: brightness(1) sepia(.05) saturate(.94);
  opacity: 1;
  transform: translateX(-50%);
  transition: opacity 180ms ease, translate 520ms cubic-bezier(.2, .76, .2, 1);
}
.core-growth-cat[data-can-roam] {
  transition-property: transform, opacity, translate;
  transition-duration: var(--room-walk-ms), 180ms, 520ms;
  transition-timing-function: cubic-bezier(.4, 0, .6, 1), ease, cubic-bezier(.2, .76, .2, 1);
}
.core-growth-cat > .cat-performer,
.core-growth-cat .cat-sprite,
.core-growth-cat .cat-action-sprite { min-width: 0; min-height: 0; }
.core-growth-cat--variant-0 { --growth-tone: brightness(.98) sepia(.06) saturate(.92); }
.core-growth-cat--variant-1 { --growth-tone: brightness(1.025) sepia(.03) saturate(.98); }
.core-growth-cat--variant-2 { --growth-tone: brightness(1) contrast(1.035) sepia(.04) saturate(.95); }
.core-growth-cat.is-selected { z-index: 3; opacity: 1; }
.core-growth-cat.is-selected::after { pointer-events: none; position: absolute; bottom: -7px; left: 50%; width: 10px; height: 10px; border: 2px solid #fff7df; border-radius: 50%; background: #c77066; box-shadow: 0 0 0 4px rgb(199 112 102 / 20%), 0 4px 12px rgb(97 54 44 / 28%); content: ""; transform: translateX(-50%); }
.core-growth-cat[data-scene-count="2"][data-scene-index="0"] { left: 34%; }
.core-growth-cat[data-scene-count="2"][data-scene-index="1"] { left: 66%; }
.core-growth-cat[data-scene-count="3"][data-scene-index="0"] { left: 20%; }
.core-growth-cat[data-scene-count="3"][data-scene-index="1"] { left: 50%; }
.core-growth-cat[data-scene-count="3"][data-scene-index="2"] { left: 80%; }
.core-growth-cat .cat-sprite,
.core-growth-cat .cat-action-sprite { filter: var(--cat-color-tone) var(--growth-tone) drop-shadow(0 13px 9px rgb(70 44 30 / 24%)); }
.core-growth-cat.is-selected .cat-sprite,
.core-growth-cat.is-selected .cat-action-sprite { filter: var(--cat-color-tone) var(--growth-tone) drop-shadow(0 0 5px rgb(255 244 198 / 92%)) drop-shadow(0 13px 9px rgb(70 44 30 / 24%)); }
.core-growth-cat.is-selected .cat-ground-contact { bottom: 0; width: 88%; height: 13%; background: radial-gradient(ellipse, rgb(196 105 91 / 52%) 0 34%, rgb(255 220 139 / 36%) 54%, transparent 76%); box-shadow: 0 0 0 3px rgb(255 241 192 / 66%), 0 0 22px rgb(211 129 99 / 42%); filter: blur(1px); opacity: 1; }
.core-growth[data-growth-stage="day20"] .core-growth-cat { bottom: 152px; width: 180px; height: 150px; }
.core-growth[data-growth-stage="month2"] .core-growth-cat { bottom: 72px; width: 286px; height: 235px; }
.core-growth[data-growth-stage="month3"] .core-growth-cat { bottom: 68px; width: 300px; height: 280px; }
.core-growth[data-growth-stage="month6"] .core-growth-cat { bottom: 78px; width: 276px; height: 292px; }
.core-growth[data-growth-stage="day20"] .core-growth-cat[data-scene-count="2"] { width: 150px; height: 128px; }
.core-growth[data-growth-stage="day20"] .core-growth-cat[data-scene-count="2"][data-scene-index="0"] { left: 45%; }
.core-growth[data-growth-stage="day20"] .core-growth-cat[data-scene-count="2"][data-scene-index="1"] { left: 55%; }
.core-growth[data-growth-stage="day20"] .core-growth-cat[data-scene-count="3"] { width: 128px; height: 110px; }
.core-growth[data-growth-stage="day20"] .core-growth-cat[data-scene-count="3"][data-scene-index="0"] { left: 43%; }
.core-growth[data-growth-stage="day20"] .core-growth-cat[data-scene-count="3"][data-scene-index="1"] { left: 50%; }
.core-growth[data-growth-stage="day20"] .core-growth-cat[data-scene-count="3"][data-scene-index="2"] { left: 57%; }
.core-growth[data-growth-stage="month2"] .core-growth-cat[data-scene-count]:not([data-scene-count="1"]) { width: 220px; height: 205px; }
.core-growth[data-growth-stage="month3"] .core-growth-cat[data-scene-count]:not([data-scene-count="1"]) { width: 225px; height: 235px; }
.core-growth[data-growth-stage="month6"] .core-growth-cat[data-scene-count]:not([data-scene-count="1"]) { width: 220px; height: 245px; }

.core-nursing-family { position: absolute; bottom: 18px; left: 50%; display: grid; width: 560px; height: 400px; place-items: center; transform: translateX(-50%); }
.core-nursing-family__mother { z-index: 1; width: 460px; height: 390px; filter: drop-shadow(0 22px 18px rgb(33 28 48 / 28%)); }
.core-nursing-family__mother .cat-sprite { object-fit: contain; }
.core-nursing-family > div { position: absolute; z-index: 2; bottom: 54px; left: 40%; display: flex; }
.core-nursing-family > div img { width: 68px; height: 56px; margin-left: -17px; object-fit: contain; filter: drop-shadow(0 5px 5px rgb(42 31 38 / 18%)); }
.core-nursing-location { position: absolute; z-index: 12; top: 72px; left: 18px; display: flex; align-items: baseline; gap: 7px; color: #fff5df; text-shadow: 0 2px 8px rgb(31 26 43 / 58%); }
.core-nursing-location b { font-family: var(--font-display); font-size: 23px; }
.core-nursing-location span { font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.core-newborn-card img[data-cat-breed="white"],
.core-nursing-family > div img[data-cat-breed="white"] { filter: contrast(1.35) brightness(.86) sepia(.12) saturate(.78) drop-shadow(0 1px 0 rgb(91 65 50 / 46%)) drop-shadow(0 5px 5px rgb(42 31 38 / 22%)); }

.core-growth-affordance {
  position: absolute;
  z-index: 12;
  display: grid;
  width: 72px;
  height: 72px;
  padding: 0;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 62%);
  border-radius: 50%;
  background: rgb(255 248 237 / 76%);
  box-shadow: 0 12px 25px rgb(69 43 33 / 16%);
  color: #7f5148;
  touch-action: none;
}
.core-growth-affordance--lift { right: 28px; bottom: 116px; }
.core-growth-affordance--lift span { font-size: 30px; transform: translateY(calc(-8px * var(--swipe-progress, 0))); }
.core-growth-affordance--foot { right: 26px; bottom: 92px; width: 92px; height: 92px; }
.core-growth-affordance--foot img { width: 86px; height: 86px; object-fit: contain; }
.core-growth-affordance--care { right: 26px; bottom: 104px; }
.core-growth-affordance--care span { font-size: 28px; }

.core-growth-timeline {
  position: absolute;
  z-index: 5;
  top: 10px;
  right: 20px;
  left: 20px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  margin: 0;
  padding: 8px 10px 7px;
  border: 1px solid rgb(255 255 255 / 38%);
  border-radius: 14px;
  background: rgb(255 249 235 / 70%);
  backdrop-filter: blur(8px);
  list-style: none;
}

.core-growth-timeline li { display: grid; min-width: 0; justify-items: center; gap: 2px; color: rgb(83 66 58 / 52%); font-size: 9px; font-weight: 800; }
.core-growth-timeline li::before { position: absolute; top: 13px; width: 100%; height: 2px; background: rgb(106 80 68 / 16%); content: ""; }
.core-growth-timeline i { z-index: 1; width: 12px; height: 12px; border: 3px solid #eadcc8; border-radius: 50%; background: #b9aa96; }
.core-growth-timeline span,
.core-growth-timeline small { overflow: hidden; max-width: 100%; text-overflow: ellipsis; white-space: nowrap; }
.core-growth-timeline small { font-size: 8px; font-weight: 700; }
.core-growth-timeline li.is-done,
.core-growth-timeline li.is-active { color: #7c514c; }
.core-growth-timeline li.is-done i,
.core-growth-timeline li.is-active i { background: #c77669; }
.core-growth-timeline li.is-active i { box-shadow: 0 0 0 5px rgb(199 118 105 / 18%); }

.core-cat-facts { display: flex; gap: 8px; }
.core-cat-facts span { padding: 7px 10px; border-radius: 999px; background: rgb(126 88 69 / 8%); color: #816a61; font-size: 10px; }
.core-cat-facts b { color: #a65f58; }
.core-growth-profile { display: grid; min-height: 86px; grid-template-columns: 88px minmax(0, 1fr); align-items: center; gap: 12px; }
/* Cat portraits are authored artwork; do not let browser dark mode reinterpret dark coats as light icons. */
.core-growth-profile figure { overflow: hidden; width: 88px; height: 82px; margin: 0; border: 1px solid rgb(188 113 104 / 22%); border-radius: 14px; background: rgb(255 246 226 / 58%); color-scheme: only light; }
.core-growth-profile figure img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 7px 6px rgb(74 47 35 / 18%)); transform: translate(var(--portrait-x, 0), var(--portrait-y, 0)) scale(var(--portrait-scale, 1)) rotate(var(--portrait-turn, 0deg)); }
.core-growth-profile[data-profile-variant="0"] { --portrait-x: -2px; --portrait-y: 1px; --portrait-scale: 1.03; --portrait-turn: -1deg; }
.core-growth-profile[data-profile-variant="1"] { --portrait-x: 2px; --portrait-y: -1px; --portrait-scale: .98; --portrait-turn: 1deg; }
.core-growth-profile[data-profile-variant="2"] { --portrait-x: 0; --portrait-y: 2px; --portrait-scale: 1.01; --portrait-turn: .4deg; }
.core-growth-profile > div { display: grid; min-width: 0; gap: 6px; }
.core-growth-profile h1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.core-growth-profile h2 { margin: 0; overflow: hidden; font-family: var(--font-display); font-size: 24px; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.core-growth-profile > div > small { color: var(--muted); font-size: 10px; font-weight: 800; }
.core-growth-profile .core-cat-facts { gap: 5px; }
.core-growth-profile .core-cat-facts span { padding: 5px 7px; }
.core-litter-summary { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 4px 9px; padding: 10px 12px; border-left: 3px solid #bc7168; background: rgb(255 246 226 / 54%); color: #765d55; }
.core-litter-summary span { color: #aa6964; font-size: 9px; font-weight: 900; }
.core-litter-summary b { font-size: 14px; }
.core-litter-summary small { grid-column: 1 / -1; font-size: 10px; }
.core-stage-milestone { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 7px; padding: 8px 10px; border-left: 3px solid #bc7168; background: rgb(255 246 226 / 54%); color: #765d55; }
.core-stage-milestone span { color: #aa6964; font-size: 9px; font-weight: 900; }
.core-stage-milestone b { font-size: 11px; }
.core-stage-milestone small { min-width: 0; font-size: 9px; }
.core-trait-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.core-trait-tags span { padding: 6px 9px; border: 1px solid rgb(178 103 95 / 18%); border-radius: 999px; background: rgb(255 243 220 / 72%); color: #8d5f58; font-size: 10px; font-weight: 850; }
.core-growth-progress-region { display: grid; gap: 15px; }
.core-growth-beats { display: grid; gap: 7px; }

.core-growth-beat {
  display: grid;
  min-height: 46px;
  grid-template-columns: 25px 1fr;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid rgb(112 77 62 / 11%);
  border-radius: 13px;
  background: rgb(255 255 255 / 36%);
  color: #78655e;
  text-align: left;
}

.core-growth-beat i { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 50%; background: rgb(128 91 73 / 10%); font-style: normal; }
.core-growth-beat span { font-size: 11px; font-weight: 850; }
.core-growth-beat.is-active { border-color: rgb(186 105 96 / 36%); background: #fff6e4; color: #754943; }
.core-growth-beat.is-active i { background: #ba6d64; color: white; }
.core-growth-beat.is-done { opacity: .48; }
.core-growth-progress { height: 7px; overflow: hidden; border-radius: 999px; background: rgb(100 76 64 / 10%); }
.core-growth-progress i { display: block; width: calc(var(--progress) * 100%); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #d18273, #e8bd75); transition: width 220ms ease; }

.core-adoption-confirm,
.core-adoption-result,
.core-breeding,
.core-archive { width: 100%; height: 100%; padding: 16px 28px 24px; }
.core-adoption__scene { background: url("../assets/scenes/starter-home-depth-v2.png") var(--room-camera-x, 50%) var(--room-camera-y, 50%) / auto 128% no-repeat; transition: background-position 520ms cubic-bezier(.2, .76, .2, 1); }
.core-adoption__panel { justify-content: flex-start; gap: 12px; padding: 22px 24px; }
.core-adoption__panel .core-adoption__title { font-size: 25px; }
.core-adoption .core-growth-cat { bottom: 72px; width: 220px; height: 205px; }
.core-adoption-choice-form { display: grid; gap: 8px; margin-top: auto; }
/* 送养建议提示：红框区补充的柔性提醒文案。 */
.core-adoption-hint {
  margin: 0 0 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgb(166 77 73 / 8%);
  color: #8a5a52;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}
.core-adoption-choice-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.core-adoption-choice-form legend { margin-bottom: 6px; color: #72574f; font-size: 10px; font-weight: 900; }
.core-adoption-choices { display: grid; gap: 5px; }
.core-adoption-choice { position: relative; display: grid; min-width: 0; height: 44px; grid-template-columns: 34px minmax(0, 1fr) 18px; align-items: center; gap: 8px; padding: 3px 9px; border: 1px solid rgb(107 83 68 / 16%); border-radius: 10px; background: rgb(255 255 255 / 66%); cursor: pointer; }
.core-adoption-choice:has(input:checked) { border-color: rgb(93 132 94 / 48%); background: #f1f7e8; box-shadow: inset 0 0 0 1px rgb(93 132 94 / 12%); }
.core-adoption-choice:focus-within { outline: 2px solid #9d6259; outline-offset: 2px; }
.core-adoption-choice input { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.core-adoption-choice img { width: 34px; height: 42px; object-fit: contain; }
.core-adoption-choice span { display: grid; min-width: 0; }
.core-adoption-choice b,
.core-adoption-choice small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.core-adoption-choice b { font-size: 11px; }
.core-adoption-choice small { color: var(--muted); font-size: 8px; }
.core-adoption-choice i { display: grid; width: 18px; height: 18px; place-items: center; border: 1px solid rgb(107 83 68 / 22%); border-radius: 5px; color: transparent; font-size: 12px; font-style: normal; }
.core-adoption-choice input:checked ~ i { border-color: #648068; background: #648068; color: white; }
.core-adoption-choice-summary { margin: 0; color: #745c53; font-size: 10px; font-weight: 850; text-align: center; }
.core-adoption-choice-form > button { width: 100%; min-height: 44px; }
.core-adoption-confirm > header span,
.core-breeding header span { color: #b36761; font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.core-adoption-confirm h1,
.core-breeding h1 { margin: 2px 0; font-family: var(--font-display); font-size: 28px; }
.core-adoption-confirm p,
.core-breeding p { margin: 0; color: var(--muted); font-size: 12px; }

.core-adoption-confirm { display: grid; min-height: 0; grid-template-rows: auto auto minmax(0, 1fr); gap: 12px; }
.core-adoption-confirm > header { text-align: center; }
.core-adoption-confirm > header h1 { margin: 3px 0; font-family: var(--font-display); font-size: 30px; }
.core-adoption-kept-list { display: flex; justify-self: center; gap: 8px; }
.core-adoption-kept { display: flex; align-items: center; gap: 9px; padding: 6px 14px 6px 8px; border: 1px solid rgb(96 126 91 / 20%); border-radius: 18px; background: rgb(245 250 231 / 82%); color: #52705a; }
.core-adoption-kept img { width: 42px; height: 42px; object-fit: contain; }
.core-adoption-kept span { display: grid; }
.core-adoption-kept small { font-size: 9px; font-weight: 900; }
.core-adoption-kept b { font-family: var(--font-display); font-size: 16px; }
.core-adoption-confirm__form { display: grid; min-height: 0; grid-template-rows: minmax(0, 1fr) auto auto; gap: 10px; }
.core-adoption-departures { display: flex; min-height: 0; align-items: stretch; justify-content: center; gap: 14px; }
.core-adoption-departure { display: grid; width: min(380px, 46%); min-width: 0; grid-template-columns: 46% 1fr; overflow: hidden; border: 2px solid rgb(181 97 91 / 34%); border-radius: 20px; background: rgb(255 249 237 / 92%); box-shadow: 0 18px 36px rgb(68 44 34 / 14%); }
.core-adoption-departure > img { width: 100%; height: 100%; min-height: 200px; object-fit: contain; background: rgb(77 64 51 / 80%); }
.core-adoption-departure > div { display: grid; align-content: center; gap: 5px; padding: 18px; }
.core-adoption-departure span { color: #b35f5b; font-size: 11px; font-weight: 950; }
.core-adoption-departure h2 { margin: 0; font-family: var(--font-display); font-size: 27px; }
.core-adoption-departure small { color: var(--muted); font-size: 10px; }
.core-adoption-message { display: grid; gap: 5px; color: #72574f; font-size: 10px; font-weight: 850; }
.core-adoption-message input { height: 38px; padding: 0 10px; border: 1px solid rgb(115 81 65 / 18%); border-radius: 10px; background: white; color: #604741; }
.core-adoption-departure dl { display: grid; gap: 2px; margin: 5px 0 0; }
.core-adoption-departure dt { color: #8b6d62; font-size: 9px; font-weight: 900; }
.core-adoption-departure dd { margin: 0; color: #604741; font-size: 11px; font-weight: 850; }
.core-adoption-message { width: min(760px, 78%); justify-self: center; }
.core-adoption-confirm__actions { display: flex; justify-content: center; gap: 10px; }
.core-adoption-confirm__actions button { min-width: 220px; }

.core-adoption-result { isolation: isolate; position: relative; display: grid; min-height: 0; grid-template-rows: auto minmax(0, 1fr) auto; gap: 18px; }
.core-adoption-result > header { text-align: center; }
.core-adoption-result > header span { color: #b36761; font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.core-adoption-result > header h1 { margin: 3px 0; font-family: var(--font-display); font-size: 30px; }
.core-adoption-result > header p { margin: 0; color: var(--muted); font-size: 12px; }
.core-adoption-outcomes { display: grid; min-height: 0; grid-template-rows: minmax(0, 1fr) auto; gap: 10px; }
.core-adoption-placed-list,
.core-adoption-kept-result-list { display: flex; min-height: 0; align-items: stretch; justify-content: center; gap: 14px; }
.core-adoption-outcome { display: grid; width: min(280px, 31%); min-width: 0; grid-template-rows: minmax(0, 1fr) auto; overflow: hidden; border: 1px solid rgb(177 107 97 / 20%); border-radius: 20px; background: rgb(255 249 237 / 88%); box-shadow: 0 16px 30px rgb(68 44 34 / 10%); }
.core-adoption-outcome img { width: 100%; height: 190px; object-fit: contain; }
.core-adoption-outcome div { display: grid; gap: 3px; padding: 12px 16px 15px; border-top: 1px solid rgb(177 107 97 / 12%); }
.core-adoption-outcome span { color: #b36761; font-size: 10px; font-weight: 900; }
.core-adoption-outcome h2 { margin: 0; font-family: var(--font-display); font-size: 20px; }
.core-adoption-outcome p,
.core-adoption-outcome small { margin: 0; overflow-wrap: anywhere; color: var(--muted); font-size: 10px; }
.core-adoption-outcome.is-kept { border-color: rgb(102 132 103 / 24%); }
.core-adoption-outcome.is-kept span { color: #587d5f; }
.core-adoption-outcome.is-placed { width: min(340px, 44%); border-width: 2px; border-color: rgb(177 92 87 / 36%); }
.core-adoption-outcome.is-placed h2 { display: grid; gap: 1px; }
.core-adoption-outcome__name { color: #523a36; font-size: 30px; line-height: 1.05; }
.core-adoption-outcome__destination { color: #8a6961; font-family: var(--font-body); font-size: 11px; font-weight: 850; }
.core-adoption-kept-summary { display: flex; align-items: center; justify-content: center; gap: 9px; opacity: .74; }
.core-adoption-kept-summary > span { color: #587d5f; font-size: 9px; font-weight: 900; }
.core-adoption-kept-summary > div { display: flex; gap: 6px; }
.core-adoption-kept-summary .core-adoption-outcome.is-kept { width: auto; min-width: 150px; grid-template: 52px / 52px minmax(92px, auto); border-radius: 12px; box-shadow: none; }
.core-adoption-kept-summary .core-adoption-outcome img { width: 52px; height: 52px; }
.core-adoption-kept-summary .core-adoption-outcome div { align-content: center; padding: 6px 10px; border-top: 0; }
.core-adoption-kept-summary .core-adoption-outcome h2 { font-size: 15px; }
.core-adoption-kept-summary .core-adoption-outcome p { display: none; }
.core-adoption-result > .primary-button { min-width: 280px; justify-self: center; }
.core-adoption-postcard-reveal { position: absolute; z-index: 20; inset: 0; display: grid; place-items: center; padding: 18px; border: 0; border-radius: 0; background: rgb(72 48 43 / 50%); backdrop-filter: blur(9px); }
.core-adoption-postcard-reveal__panel { position: relative; display: grid; width: min(930px, 100%); max-height: 100%; gap: 13px; overflow: auto; padding: 20px 24px 22px; border: 1px solid rgb(255 255 255 / 82%); border-radius: 28px; background: linear-gradient(145deg, #fffdf5, #f8e4d5); box-shadow: 0 28px 80px rgb(54 31 27 / 34%); animation: reveal-in 360ms cubic-bezier(.2, .72, .2, 1) both; scrollbar-width: thin; }
.core-adoption-postcard-reveal__close { position: absolute; z-index: 1; top: 12px; right: 12px; display: grid; width: 34px; min-height: 34px; padding: 0; place-items: center; border: 1px solid rgb(155 99 82 / 22%); border-radius: 50%; background: rgb(255 255 255 / 78%); color: #82544f; font-size: 20px; line-height: 1; }
.core-adoption-postcard-reveal__close:hover,
.core-adoption-postcard-reveal__close:focus-visible { background: #fff9ed; color: #6e413d; transform: translateY(-1px); }
.core-adoption-postcard-reveal__panel > header { text-align: center; }
.core-adoption-postcard-reveal__panel > header span { color: #b35f5b; font-size: 10px; font-weight: 950; letter-spacing: .14em; }
.core-adoption-postcard-reveal__panel > header h2 { margin: 3px 0 2px; color: #583e3a; font-family: var(--font-display); font-size: 28px; }
.core-adoption-postcard-reveal__panel > header p { margin: 0; color: #826760; font-size: 11px; }
.core-adoption-postcard-reveal__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 12px; }
.core-adoption-postcard { display: grid; min-width: 0; grid-template-columns: minmax(0, 1.25fr) minmax(150px, .75fr); overflow: hidden; border: 1px solid rgb(166 104 92 / 20%); border-radius: 18px; background: rgb(255 250 239 / 88%); box-shadow: 0 12px 28px rgb(87 53 43 / 10%); }
.core-adoption-postcard__paper { position: relative; display: grid; min-height: 180px; grid-template: auto 1fr auto auto / 46% 1fr; gap: 2px 9px; overflow: hidden; padding: 13px 15px; border: 7px solid white; background: linear-gradient(145deg, #f7e4d8, #f3e8c9); }
.core-adoption-postcard__paper::after { position: absolute; right: 9px; bottom: 4px; color: rgb(181 102 94 / 22%); font-size: 42px; content: "⌁"; }
.core-adoption-postcard__paper > span { grid-column: 1 / -1; color: #a9615d; font-size: 9px; font-weight: 950; letter-spacing: .12em; }
.core-adoption-postcard__paper img { grid-row: 2 / 5; width: 100%; height: 130px; align-self: end; object-fit: contain; filter: drop-shadow(0 8px 8px rgb(76 48 42 / 15%)); }
.core-adoption-postcard__paper h3 { align-self: end; margin: 0; font-family: var(--font-display); font-size: 16px; }
.core-adoption-postcard__paper p { position: relative; z-index: 1; margin: 0; color: #765b55; font-size: 10px; font-weight: 850; }
.core-adoption-postcard__paper small { position: relative; z-index: 1; overflow-wrap: anywhere; color: #9a7469; font-size: 9px; }
.core-adoption-postcard__copies { display: grid; align-content: center; gap: 8px; padding: 14px; text-align: center; }
.core-adoption-postcard__copies span { display: grid; gap: 1px; padding: 8px; border: 1px solid rgb(169 108 94 / 18%); border-radius: 12px; background: rgb(255 255 255 / 58%); }
.core-adoption-postcard__copies i { color: #b25f5c; font-size: 10px; font-style: normal; font-weight: 950; }
.core-adoption-postcard__copies b { color: #6f554f; font-size: 9px; }
.core-adoption-postcard__copies em { color: #a35e5b; font-family: var(--font-display); font-size: 15px; font-style: normal; }
.core-adoption-postcard-reveal__values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.core-adoption-postcard-reveal__values span { display: grid; gap: 1px; padding: 8px 10px; border-left: 3px solid #bd7469; background: rgb(255 255 255 / 44%); }
.core-adoption-postcard-reveal__values b { color: #744d48; font-size: 10px; }
.core-adoption-postcard-reveal__values small { color: #8b7068; font-size: 9px; }
.core-adoption-postcard-reveal__panel > .primary-button { min-width: 290px; justify-self: center; }

.core-bond-home__scene { background: url("../assets/scenes/starter-home-depth-v2.png") var(--room-camera-x, 50%) var(--room-camera-y, 50%) / auto 128% no-repeat; transition: background-position 520ms cubic-bezier(.2, .76, .2, 1); }
.core-bond-home__panel { justify-content: flex-start; gap: 12px; padding: 22px; overflow-y: auto; }
.core-bond-home__scene .core-growth-timeline { top: 12px; }
.core-bond-cat { --core-cat-lane-x: 0px; --core-cat-roam-x: 0px; --core-cat-room-y: 0px; --core-cat-room-scale: 1; --core-cat-view-scale: 1; position: absolute; bottom: 78px; left: 50%; width: min(350px, 47%); height: min(430px, 76%); transform: translateX(-50%) translateX(calc(var(--core-cat-lane-x) + var(--core-cat-roam-x))) translateY(var(--core-cat-room-y)) scale(var(--core-cat-room-scale)) scale(var(--core-cat-view-scale)); transition: transform var(--room-walk-ms) cubic-bezier(.4, 0, .6, 1); }
.core-bond-home [data-room-camera] .core-bond-cat[data-can-roam] { transition: transform var(--room-walk-ms) cubic-bezier(.4, 0, .6, 1), translate 520ms cubic-bezier(.2, .76, .2, 1); }
.core-bond-cat[data-scene-count="1"] { --core-cat-view-scale: .64; }
.core-bond-home.is-cat-closeup .core-bond-cat[data-scene-count="1"] { --core-cat-room-scale: 1; --core-cat-view-scale: .82; }
.core-bond-cat[data-scene-count="2"] { width: 270px; height: 350px; }
.core-bond-cat[data-scene-count="3"] { width: 220px; height: 310px; }
/* Roommates keep separate territories while each cat takes short, visible walks inside its own area. */
.core-bond-cat[data-scene-count="2"][data-scene-index="0"] { --core-cat-lane-x: -190px; }
.core-bond-cat[data-scene-count="2"][data-scene-index="1"] { --core-cat-lane-x: 190px; }
.core-bond-cat[data-scene-count="3"][data-home-space="window"] { --core-cat-lane-x: -275px; }
.core-bond-cat[data-scene-count="3"][data-home-space="table"] { --core-cat-lane-x: 275px; }
.core-bond-cat[data-roam-space="window"] { --room-walk-ms: calc(var(--room-walk-cycle-ms) * 2); --core-cat-roam-x: -46px; --core-cat-room-y: -14px; --core-cat-room-scale: .94; }
.core-bond-cat[data-roam-space="rest"] { --room-walk-ms: calc(var(--room-walk-cycle-ms) * 2); --core-cat-roam-x: 0px; --core-cat-room-y: 22px; --core-cat-room-scale: .98; }
.core-bond-cat[data-roam-space="table"] { --room-walk-ms: calc(var(--room-walk-cycle-ms) * 2); --core-cat-roam-x: 46px; --core-cat-room-y: -8px; --core-cat-room-scale: .95; }
.core-bond-cat[data-scene-count="3"][data-roam-space="window"] { --room-walk-ms: calc(var(--room-walk-cycle-ms) * 2); --core-cat-roam-x: -72px; --core-cat-room-y: -36px; }
.core-bond-cat[data-scene-count="3"][data-roam-space="rest"] { --room-walk-ms: calc(var(--room-walk-cycle-ms) * 2); --core-cat-roam-x: 0px; --core-cat-room-y: 48px; }
.core-bond-cat[data-scene-count="3"][data-roam-space="table"] { --room-walk-ms: calc(var(--room-walk-cycle-ms) * 2); --core-cat-roam-x: 72px; --core-cat-room-y: -28px; }
.core-bond-cat[data-scene-count="1"][data-roam-space="window"] { --room-walk-ms: calc(var(--room-walk-cycle-ms) * 4); --core-cat-roam-x: -260px; }
.core-bond-cat[data-scene-count="1"][data-roam-space="rest"] { --room-walk-ms: calc(var(--room-walk-cycle-ms) * 4); }
.core-bond-cat[data-scene-count="1"][data-roam-space="table"] { --room-walk-ms: calc(var(--room-walk-cycle-ms) * 4); --core-cat-roam-x: 260px; }
/* Close inspection still shows a real walk, but keeps the larger cat inside the scene. */
.core-bond-home.is-cat-closeup .core-bond-cat[data-scene-count="1"][data-roam-space="window"] { --room-walk-ms: 1700ms; --core-cat-roam-x: -120px; }
.core-bond-home.is-cat-closeup .core-bond-cat[data-scene-count="1"][data-roam-space="rest"] { --room-walk-ms: 1700ms; }
.core-bond-home.is-cat-closeup .core-bond-cat[data-scene-count="1"][data-roam-space="table"] { --room-walk-ms: 1700ms; --core-cat-roam-x: 120px; }
.core-bond-cat--primary { z-index: 5; }
.core-bond-cat--housemate { z-index: 3; }
.core-scene-playfield .core-tool-dock { right: auto; bottom: 16px; left: 16px; }
.core-adult-daily { display: grid; gap: 8px; padding-top: 2px; border-top: 1px solid rgb(142 93 77 / 14%); }
.core-adult-daily > header { display: flex; align-items: end; justify-content: space-between; gap: 10px; padding-top: 7px; }
.core-adult-daily > header span { color: #a55f59; font-size: 10px; font-weight: 900; }
.core-adult-daily > header h2 { margin: 0; color: #5f423c; font-family: var(--font-display); font-size: 17px; }
.core-adult-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.core-adult-action { display: grid; min-height: 52px; grid-template: auto auto / 28px minmax(0, 1fr); align-items: center; gap: 0 7px; padding: 7px 8px; border: 1px solid rgb(137 87 72 / 16%); border-radius: 8px; background: rgb(255 255 255 / 58%); color: #6e4d46; text-align: left; }
.core-adult-action--pet { background: #a85f59; color: white; box-shadow: 0 7px 16px rgb(115 63 58 / 20%); }
.core-adult-action > span { grid-row: 1 / 3; font-size: 21px; text-align: center; }
.core-adult-action b { font-size: 12px; }
.core-adult-action small { color: inherit; font-size: 9px; opacity: .72; }
.core-adult-action:hover,
.core-adult-action:focus-visible { border-color: rgb(142 82 73 / 42%); background: #fff9ed; color: #6e4d46; transform: translateY(-1px); }
.core-adult-action--pet:hover,
.core-adult-action--pet:focus-visible { background: #934f4b; color: white; }
.core-adult-memory { display: grid; min-height: 46px; padding: 6px 9px; grid-template-columns: 31px minmax(0, 1fr) 18px; align-items: center; gap: 8px; border: 1px solid rgb(173 103 94 / 24%); border-radius: 6px; background: #f5e6d4; color: #79554f; text-align: left; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 42%); }
.core-adult-memory__mark { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 50%; background: #ad625d; color: #fff8e8; font-size: 15px; }
.core-adult-memory__copy { display: grid; min-width: 0; gap: 1px; }
.core-adult-memory__copy small { color: #ad625d; font-size: 8px; font-weight: 900; }
.core-adult-memory__copy b { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.core-adult-memory__arrow { font-size: 18px; text-align: center; }
.core-adult-memory:hover,
.core-adult-memory:focus-visible { border-color: #ad625d; background: #fff2df; color: #8e4f4c; transform: translateY(-1px); }
.core-adult-memory:disabled { opacity: .42; pointer-events: none; }
.core-mother-reunion { position: absolute; z-index: 36; top: 50%; left: 50%; display: grid; width: min(460px, calc(100% - 72px)); padding: 24px 28px 26px; border: 1px solid rgb(255 255 255 / 82%); border-radius: 28px; background: linear-gradient(155deg, rgb(255 253 246 / 97%), rgb(250 225 211 / 97%)); box-shadow: 0 26px 70px rgb(76 43 37 / 28%); text-align: center; transform: translate(-50%, -50%); }
.core-mother-reunion .core-mother-reunion__close { position: absolute; top: 12px; right: 12px; display: grid; width: 34px; min-height: 34px; padding: 0; place-items: center; border: 1px solid rgb(155 99 82 / 22%); border-radius: 50%; background: rgb(255 255 255 / 72%); color: #82544f; font-size: 20px; line-height: 1; }
.core-mother-reunion .core-mother-reunion__close:hover,
.core-mother-reunion .core-mother-reunion__close:focus-visible { background: #fff9ed; color: #6e413d; transform: translateY(-1px); }
.core-mother-reunion > span { color: #a45c58; font-size: 11px; font-weight: 950; letter-spacing: .08em; }
.core-mother-reunion__portraits { display: flex; justify-content: center; align-items: center; height: 116px; margin: 8px 0 2px; }
.core-mother-reunion__portraits img { width: 108px; height: 108px; object-fit: contain; border-radius: 50%; background: rgb(255 255 255 / 62%); box-shadow: inset 0 0 0 1px rgb(158 101 82 / 12%); }
.core-mother-reunion__portraits i { z-index: 1; display: grid; width: 34px; height: 34px; margin: 0 -7px; place-items: center; border-radius: 50%; background: #b96e67; color: white; font-style: normal; box-shadow: 0 5px 14px rgb(117 69 64 / 24%); }
.core-mother-reunion h1 { margin: 1px 0 7px; color: #5b403c; font-family: var(--font-display); font-size: 27px; }
.core-mother-reunion p { margin: 0 auto 18px; color: #80635c; font-size: 13px; line-height: 1.65; }
.core-mother-reunion > div:last-child { display: grid; grid-template-columns: 1.2fr 1fr; gap: 9px; }
.core-mother-reunion button { min-height: 46px; border: 1px solid rgb(155 99 82 / 24%); border-radius: 14px; background: rgb(255 255 255 / 66%); color: #82544f; font-weight: 900; }
.core-mother-reunion .primary-button { border-color: transparent; background: #b76b62; color: white; }

.core-breeding { display: grid; grid-template-rows: auto 1fr; gap: 18px; }
.core-breeding > header { display: flex; align-items: center; gap: 15px; }
.core-breeding > header > button:first-child { width: 42px; height: 42px; border: 0; border-radius: 13px; background: #5d4946; color: white; font-size: 26px; }
.core-breeding > header > div { flex: 1; }
.core-neuter-choice { min-height: 42px; padding: 0 18px; border: 1px solid #c8908c; border-radius: 14px; background: #fff8ed; color: #92585b; font-weight: 900; }
.core-breed-list { display: grid; min-height: 0; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.core-breed-card { display: grid; grid-template-columns: 180px 1fr auto; align-items: center; gap: 16px; padding: 22px; border: 1px solid rgb(255 255 255 / 58%); border-radius: 25px; background: rgb(255 249 237 / 84%); }
.core-breed-card img { width: 180px; height: 270px; object-fit: contain; }
.core-breed-card div { display: grid; gap: 6px; }
.core-breed-card b { font-family: var(--font-display); font-size: 25px; }
.core-breed-card small { color: var(--muted); }
.core-breed-card button { padding: 11px 14px; border: 0; border-radius: 13px; background: #b76b62; color: white; font-weight: 900; }
.core-breed-card.is-blocked { opacity: .55; }
.core-breeding--companionship { grid-template-rows: auto 1fr; }
.core-companionship-mark { display: grid; align-self: center; justify-items: center; gap: 12px; color: #8d5859; }
.core-companionship-mark span { font-size: 92px; line-height: 1; }
.core-companionship-mark b { font-family: var(--font-display); font-size: 28px; }

.core-archive { display: grid; min-height: 0; grid-template-rows: 66px minmax(0, 1fr); gap: 0; }
.core-archive > header { display: flex; padding-bottom: 10px; justify-content: space-between; align-items: center; border-bottom: 1px solid rgb(116 79 64 / 14%); }
.core-archive__title { display: flex; align-items: center; gap: 14px; }
.core-archive__title > div { display: grid; gap: 2px; padding: 6px 0 7px; }
.core-archive__title span { color: #ad625c; font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.core-archive__title h1 { margin: 0; color: #4f3934; font-family: var(--font-display); font-size: 27px; line-height: 1; }
.core-archive__title p { margin: 0; color: #6f5850; font-size: 11px; }
.core-archive__back { width: 42px; height: 42px; border: 0; border-radius: 13px; background: #5d4946; color: white; font-size: 26px; }
.core-archive > header nav { display: flex; gap: 6px; margin-right: 56px; padding: 5px; border-radius: 14px; background: rgb(93 73 65 / 8%); }
.core-archive > header nav button { position: relative; min-width: 76px; height: 34px; border: 0; border-radius: 10px; background: transparent; color: #7a625a; font-size: 11px; font-weight: 900; }
.core-archive > header nav button.is-active { background: #b76b62; color: white; }
.core-archive-tab__dot { position: absolute; top: 4px; right: 7px; width: 7px; height: 7px; border: 1px solid #fffaf0; border-radius: 50%; background: #d85d58; }
.core-archive__content { min-height: 0; overflow: auto; padding: 18px 0 0; border-radius: 0; background: transparent; scrollbar-color: #c38b78 transparent; scrollbar-width: thin; }
.core-memory-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.core-memory-actions { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 12px; }
.core-memory-actions button { min-height: 34px; padding: 0 14px; border: 1px solid #d7b9a6; border-radius: 11px; background: #fffaf0; color: #8d5758; font-weight: 850; }
.core-memory-grid .postcard,
.core-photo-memory { min-width: 0; padding: 14px; border: 1px solid rgb(141 91 71 / 13%); border-radius: 18px; background: #fffdf8; box-shadow: 0 10px 24px rgb(73 45 35 / 8%); }
.core-memory-grid .postcard__art,
.core-photo-memory > div { width: 100%; height: 170px; object-fit: contain; border-radius: 13px; background: linear-gradient(145deg, #f4e4d2, #fff8ec); }
.core-memory-grid .postcard__art { display: flex; align-items: end; justify-content: center; overflow: hidden; }
.core-memory-grid .postcard__art img { width: 50%; height: 100%; object-fit: contain; }
.core-photo-memory > div { position: relative; overflow: hidden; filter: var(--memory-filter); }
.core-photo-memory > div > img { width: 100%; height: 100%; object-fit: contain; }
.core-photo-memory .cat-outfit { --outfit-anchor-x: 50%; --outfit-anchor-y: 64%; --outfit-width: 38%; }
.core-memory-grid small { display: block; margin-top: 9px; color: #aa6868; font-size: 10px; font-weight: 900; }
.core-memory-grid h3 { margin: 4px 0 7px; font-size: 15px; }
.core-memory-grid p { min-height: 34px; margin: 0 0 8px; color: var(--muted); font-size: 11px; }
.core-archive-empty { display: grid; height: 100%; place-items: center; color: var(--muted); }
.core-friend-kinship { display: grid; min-height: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: center; gap: 20px; padding: 0 42px 20px; }
.core-friend-kinship__card { position: relative; display: grid; min-height: 360px; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 12px 18px; padding: 22px; border: 1px solid rgb(141 91 71 / 14%); border-radius: 28px; background: rgb(255 253 248 / 88%); box-shadow: 0 18px 40px rgb(73 45 35 / 10%); color: #704d49; }
.core-friend-kinship__card.is-met { border-color: rgb(183 107 98 / 42%); background: linear-gradient(145deg, #fffdf8, #fff0df); }
.core-friend-kinship__avatar { display: block; width: 104px; height: 104px; align-self: start; object-fit: cover; object-position: center top; background: #f4e6d4; border: 7px solid rgb(255 255 255 / 78%); border-radius: 50%; box-shadow: 0 13px 28px rgb(77 49 40 / 16%); }
.core-friend-kinship__person { display: grid; min-height: 104px; align-content: start; gap: 8px; }
.core-friend-kinship__person > b { color: #5c403c; font-family: var(--font-display); font-size: 22px; line-height: 1; }
.core-friend-kinship__state { display: grid; align-content: center; gap: 7px; padding: 14px 18px; border-radius: 18px; background: rgb(128 86 74 / 7%); }
.core-friend-kinship__state b { color: #8a5b54; font-size: 17px; }
.core-friend-kinship__state small { color: #9a766c; font-size: 10px; font-weight: 850; }
.core-friend-kinship__meeting { display: flex; height: 104px; align-items: center; justify-content: center; margin-left: -8px; }
.core-friend-kinship__meeting img { width: 90px; height: 90px; object-fit: contain; }
.core-friend-kinship__meeting span { margin: 0 -8px; color: #c36f6c; font-size: 28px; }
.core-friend-kinship__comparisons { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.core-friend-kinship__row { display: grid; grid-template-columns: 58px 1fr; align-items: center; column-gap: 8px; padding: 10px; border-radius: 16px; background: rgb(128 86 74 / 7%); }
.core-friend-kinship__row img { grid-row: 1 / 4; width: 58px; height: 68px; object-fit: contain; }
.core-friend-kinship__row span { color: #755951; font-size: 11px; font-weight: 900; }
.core-friend-kinship__row strong { color: #a55c58; font-family: var(--font-display); font-size: 21px; }
.core-friend-kinship__row small { color: #9a766c; font-size: 9px; font-weight: 850; }
.core-friend-kinship__card > button { grid-column: 1 / -1; min-height: 42px; border: 0; border-radius: 14px; background: #b76b62; color: white; font-weight: 900; }
.core-friend-kinship__card > button:disabled { background: #d9b7a4; color: #785b53; }

/* M1 回忆与好友亲缘页都保留同一张双猫合影的左右站位。 */
.core-photo-memory__pair { display: flex; align-items: end; justify-content: center; gap: 0; }
.core-photo-memory__pair figure { position: relative; display: grid; width: 47%; height: 100%; place-items: end center; margin: 0; }
.core-photo-memory__pair figure > img { width: 100%; height: 100%; object-fit: contain; }
.core-photo-memory__pair figure > .cat-outfit { --outfit-anchor-x: 50%; --outfit-anchor-y: 64%; --outfit-width: 42%; }
.core-photo-memory__pair > i { z-index: 1; margin: 0 -6px 38px; color: #b96e67; font-size: 22px; font-style: normal; }
.core-friend-photo-copies { grid-column: 1 / -1; display: grid; gap: 10px; margin-top: 2px; }
.core-friend-photo-copies > header { display: flex; align-items: end; justify-content: space-between; padding: 0 4px; }
.core-friend-photo-copies > header span { color: #ad625c; font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.core-friend-photo-copies > header b { color: #7a625a; font-size: 11px; }
.core-friend-photo-copies > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.core-friend-photo-copy { display: grid; gap: 4px; padding: 10px; border: 1px solid rgb(141 91 71 / 13%); border-radius: 16px; background: #fffdf8; box-shadow: 0 10px 24px rgb(73 45 35 / 8%); }
.core-friend-photo-copy > div { display: flex; height: 92px; align-items: end; justify-content: center; overflow: hidden; border-radius: 10px; background: linear-gradient(145deg, #f4e4d2, #fff8ec); }
.core-friend-photo-copy > div img { width: 45%; height: 100%; object-fit: contain; }
.core-friend-photo-copy > div i { z-index: 1; margin: 0 -4px 21px; color: #b96e67; font-style: normal; }
.core-friend-photo-copy > span { color: #aa6868; font-size: 9px; font-weight: 900; }
.core-friend-photo-copy > b { font-size: 12px; }
.core-friend-photo-copy > small { color: #9a766c; font-size: 9px; line-height: 1.4; }

/* 拼豆回忆保留猫咪原画的当前引用，canvas 由创作间控制器重绘。 */
.core-bead-memory { min-width: 0; padding: 14px; border: 1px solid rgb(141 91 71 / 13%); border-radius: 18px; background: #fffdf8; box-shadow: 0 10px 24px rgb(73 45 35 / 8%); }
.core-bead-memory__art { position: relative; display: block; width: 170px; height: 170px; max-width: 100%; margin-inline: auto; overflow: hidden; border-radius: 13px; background: linear-gradient(145deg, #f4e4d2, #fff8ec); }
.core-bead-memory__art canvas { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.core-bead-memory__art img { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

@keyframes core-breathe {
  50% { transform: translateY(-4px) scale(1.008); }
}

@media (prefers-reduced-motion: reduce) {
  .core-labor-cat,
  .core-growth-cat,
  .core-adoption-postcard-reveal__panel { animation: none; }
}
