:root {
  color-scheme: dark;
  --leaf: #263a2c;
  --leaf-dark: #162b24;
  --paper: #fff0ce;
  --muted: #e9dcbc;
  --line: #ebd8a376;
  font-family: "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  color: var(--paper);
  background: var(--leaf-dark);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; overflow: hidden; }
button { font: inherit; cursor: pointer; }
button:focus-visible, .scene:focus-visible { outline: 2px solid #ffd78a; outline-offset: 2px; }

.park {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 240px;
  overflow: hidden;
  isolation: isolate;
  background: var(--leaf-dark);
}
.scene { position: absolute; inset: 0; overflow: hidden; touch-action: none; cursor: grab; }
.scene[data-dragging] { cursor: grabbing; }
.scene[data-overview] { cursor: default; }
.scene[data-following] .plane { transition: transform .72s cubic-bezier(.2,.7,.2,1); }
.scene:focus-visible { outline-offset: -4px; }
.plane {
  position: absolute;
  inset: 0 auto auto 0;
  width: var(--map-width, 1200px);
  height: var(--map-height, 750px);
  transform-origin: 0 0;
  overflow: hidden;
  isolation: isolate;
  image-rendering: pixelated;
  will-change: transform;
}
.venue-plane { --map-width: 640px; --map-height: 480px; }
.venue-foreground { inset: 0; }
.base-map, .water, .night-wash {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.base-map, .occluder, .finished-work { pointer-events: none; user-select: none; }
.water { z-index: 2; pointer-events: none; }
.ripple {
  position: absolute;
  width: var(--length);
  height: 1px;
  background: #d4ead699;
  box-shadow: 3px 2px #79b5a8;
  animation: chart-ripple 4s steps(8, end) infinite;
  animation-delay: var(--delay);
}
@keyframes chart-ripple {
  0%, 100% { opacity: 0; transform: translate(0, 0); }
  35% { opacity: .82; }
  75% { opacity: .33; transform: translate(6px, 3px); }
}
.occluder, .finished-work, .pin, .lamp, .resident { position: absolute; }
.occluder { display: block; }
.finished-work { width: 42px; height: 46px; object-fit: contain; transform: translate(-51.5%, -86%); }
.night-wash {
  z-index: 1600;
  opacity: 0;
  background: #243765;
  mix-blend-mode: multiply;
  transition: opacity .55s ease;
  pointer-events: none;
}
.lamp {
  z-index: 1610;
  pointer-events: none;
  width: 62px;
  height: 40px;
  opacity: 0;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, #ffe0a1b9, #f29c4d61 34%, transparent 72%);
  mix-blend-mode: screen;
  transition: opacity .55s ease;
}
.park[data-light="dusk"] .night-wash { opacity: .28; background: #59435d; }
.park[data-light="dusk"] .lamp { opacity: .62; }
.park[data-light="night"] .night-wash { opacity: .63; }
.park[data-light="night"] .lamp { opacity: 1; }
.scene button.pin {
  z-index: 1630;
  transform: translate(-50%, -50%);
  padding: 4px 8px;
  border: 1px solid #fff0ce98;
  border-radius: 5px;
  background: #233b2ff2;
  color: #fff3d9;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.15;
  white-space: nowrap;
  cursor: pointer;
}
.scene .pin:hover { background: #40543a; border-color: #fff0ce; }
.pin[data-present]::after { content: attr(data-present); margin-left: 6px; color: #ffdfa0; }
.plane[data-small] .pin { display: none; }
.resident {
  width: 30px;
  height: 31px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  transform: translate(-50%, -100%);
  transition: left .64s linear, top .64s linear;
}
.resident::after {
  content: "";
  position: absolute;
  inset: calc(-1 * var(--pet-hit-padding, 7px));
}
.resident::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 5px;
  width: 20px;
  height: 5px;
  border-radius: 50%;
  background: #1b2e2458;
}
.resident img, .resident canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  image-rendering: pixelated;
  pointer-events: none;
}
.resident canvas { opacity: 0; }
.resident canvas[data-motion-ready] { opacity: 1; }
.resident:has(canvas[data-motion-ready]) img { opacity: 0; }
.resident[data-facing="-1"] :is(img, canvas) { transform: scaleX(-1); }
.pet-name, .pet-speech {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  text-align: center;
}
.pet-name {
  bottom: 30px;
  font-size: 9px;
  line-height: 1.15;
  font-weight: 650;
  background: #22382e;
  color: #fff0ce;
  padding: 2px 4px;
  border-radius: 3px;
}
.pet-speech {
  bottom: 45px;
  width: max-content;
  max-width: 102px;
  white-space: normal;
  padding: 4px 6px;
  border-radius: 5px;
  background: #fff3d7;
  color: #313326;
  font-size: 9px;
  line-height: 1.45;
  border: 1px solid #736344;
  transform: translateX(calc(-50% + var(--speech-shift, 0px)));
}
.plane[data-small] :is(.pet-name, .pet-speech) { display: none; }
.park[data-following] .pet-speech { display: none; }

.top, .bottom {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  padding-inline: max(19px, env(safe-area-inset-left)) max(19px, env(safe-area-inset-right));
  pointer-events: none;
}
.top {
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding-top: max(18px, env(safe-area-inset-top));
  padding-bottom: 28px;
  background: linear-gradient(#142720df, #14272070 55%, transparent);
}
.top h1 {
  margin: 0;
  font: 700 clamp(29px, 4vw, 48px)/1.04 "Songti SC", "Noto Serif CJK SC", serif;
  letter-spacing: -.02em;
  text-shadow: 0 3px 17px #17291e;
}
.location-name { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; min-width: 0; }
.park[data-venue] .top h1 { font-size: clamp(24px, 3.6vw, 41px); white-space: nowrap; }
.view-tools {
  display: flex;
  gap: 7px;
}
.top button, .bottom button {
  pointer-events: auto;
  white-space: nowrap;
  background: #263d2f;
  color: var(--paper);
  border: 1px solid var(--line);
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 650;
}
.top button:hover, .bottom button:hover,
.top button[aria-pressed="true"], .bottom button[aria-pressed="true"] {
  background: #515632;
  border-color: #f5dba3;
}
.bottom {
  bottom: 0;
  padding-top: 31px;
  padding-bottom: max(17px, env(safe-area-inset-bottom));
  background: linear-gradient(transparent, #152a20c4 51%, #152a20f7);
}
.live-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.live-actions { display: flex; align-items: center; flex: 0 0 auto; gap: 7px; }
#pet-account-open { color: #233529; background: #f3d994; border-color: #ffe7ad; }
#pet-account-open:hover { background: #ffe8b5; }
.show-caption {
  width: min(400px, 100%);
  padding: 11px 14px 12px;
  margin: 0 0 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #213729f5;
  color: var(--paper);
}
.show-line { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.show-line h2 { font: 700 18px/1.15 "Songti SC", "Noto Serif CJK SC", serif; margin: 0; }
.show-line p { color: var(--muted); margin: 0; font-size: 12px; }
#show-subtitle { margin: 7px 0 0; min-height: 1.5em; line-height: 1.5; font-size: 14px; }
.lantern-story {
  position: fixed;
  top: max(94px, calc(env(safe-area-inset-top) + 76px));
  left: max(14px, env(safe-area-inset-left));
  width: min(440px, calc(100% - 28px));
  padding: 12px 14px;
  border: 1px solid #d09a5e;
  border-radius: 10px;
  background: #26352cf8;
  color: var(--paper);
  box-shadow: 0 7px 22px #17271c65;
  pointer-events: auto;
}
.lantern-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lantern-heading h2 { font: 700 20px/1.15 "Songti SC", "Noto Serif CJK SC", serif; margin: 0; }
#lantern-progress { color: #f5d08c; font-size: 13px; font-weight: 700; }
.lantern-growth {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  margin: 8px 0;
}
.lantern-growth > div { padding: 6px 8px; border: 1px solid #b18c5250; border-radius: 6px; background: #322e21a6; }
.lantern-growth dt { color: #d9caa1; font-size: 11px; }
.lantern-growth dd { margin: 3px 0 0; color: #ffe2a5; font-size: 12px; font-weight: 700; line-height: 1.3; }
#lantern-growth-speech { padding-left: 8px; border-left: 2px solid #bf9554; margin: 8px 0; color: #ffdc9d; font-size: 12px; line-height: 1.4; }
#lantern-beat, #lantern-error { margin: 6px 0; font-size: 13px; line-height: 1.45; }
#lantern-error { color: #ffd897; }
#lantern-history { color: #efe6c9; font-size: 12px; }
#lantern-history summary { cursor: pointer; color: #efd69d; padding: 4px 0; }
#lantern-events {
  max-height: 108px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #b18c52 #26352c;
  margin: 0;
  padding: 0 6px 0 0;
  list-style: none;
}
#lantern-events li { padding: 5px 0; line-height: 1.35; border-top: 1px solid #b18c524a; }
#lantern-events strong { display: block; color: #f5d08c; font-size: 12px; }
.lantern-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.lantern-actions button { min-height: 40px; }
.lantern-actions a { display: inline-flex; align-items: center; min-height: 40px; padding-inline: 7px; color: #efd69d; font-size: 13px; }
#lantern-start { color: #233529; background: #f2cc84; border-color: #ffdfa1; }
#paper-lantern {
  position: absolute;
  width: 31px;
  height: 34px;
  transform: translate(-50%, -75%);
  pointer-events: none;
  image-rendering: pixelated;
  filter: drop-shadow(0 2px 0 #492b22);
}
#paper-lantern::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(90deg, #c19357 0 3px, #443126 3px 8px);
  clip-path: polygon(39% 0, 61% 0, 61% 13%, 82% 13%, 82% 24%, 94% 24%, 94% 76%,
      82% 76%, 82% 87%, 61% 87%, 61% 100%, 39% 100%, 39% 87%, 18% 87%, 18% 76%,
      6% 76%, 6% 24%, 18% 24%, 18% 13%, 39% 13%);
}
#paper-lantern[data-step="2"] { filter: drop-shadow(0 0 8px #ffa957) drop-shadow(0 2px 0 #492b22); }
#paper-lantern[data-step="2"]::before {
  background: repeating-linear-gradient(90deg, #d07347 0 3px, #ffc677 3px 8px);
}
.entry-lantern {
  position: absolute;
  width: 18px;
  height: 24px;
  z-index: 1614;
  transform: translate(-50%, -52%);
  pointer-events: none;
}
.entry-lantern::before {
  content: "";
  position: absolute;
  left: -10px;
  top: -5px;
  width: 22px;
  height: 7px;
  background: #63412f;
  border-top: 2px solid #9d6b46;
  box-shadow: -3px 5px #503829;
}
.entry-lantern::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, #a95737 0 2px, #e4a35e 2px 5px);
  clip-path: polygon(38% 0, 62% 0, 62% 13%, 85% 13%, 85% 26%, 100% 26%, 100% 80%,
      85% 80%, 85% 90%, 62% 90%, 62% 100%, 38% 100%, 38% 90%, 15% 90%, 15% 80%,
      0 80%, 0 26%, 15% 26%, 15% 13%, 38% 13%);
}
.entry-lantern span {
  position: absolute;
  left: 50%;
  top: 70%;
  width: 148px;
  height: 108px;
  transform: translate(-50%, -45%);
  background: radial-gradient(ellipse, #ffc679a8, #e6a14752 34%, transparent 72%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity .55s ease;
}
.park[data-light="dusk"] .entry-lantern span { opacity: .65; }
.park[data-light="night"] .entry-lantern span { opacity: 1; }
.park:is([data-light="dusk"], [data-light="night"]) .entry-lantern::after {
  background: repeating-linear-gradient(90deg, #daa058 0 2px, #ffe3a0 2px 5px);
}
.live-status p { margin: 0; text-shadow: 0 1px 2px #142720; }
#clock { color: var(--muted); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
#work-status { margin-top: 4px; font-size: clamp(14px, 2vw, 17px); font-weight: 700; }
.places { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 9px; pointer-events: auto; }
.places button { min-height: 44px; padding-inline: 11px; font-size: 12px; }

dialog {
  width: min(430px, calc(100% - 30px));
  max-height: min(72%, 620px);
  color-scheme: light;
  color: #263b2c;
  background: #fff1d2;
  border: 0;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 14px 48px #111b14a0;
}
dialog::backdrop { background: #10251bb6; }
.journal-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.journal-top h2 { margin: 0; font: 700 27px/1.15 "Songti SC", "Noto Serif CJK SC", serif; }
dialog button {
  color: #23392a;
  background: #fff8e5;
  border: 1px solid #5f6a4c;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 700;
}
.demo-note { margin: 4px 0 14px; color: #536048; font-size: 13px; }
#work-note { font-weight: 700; margin: 0 0 11px; }
#events { margin: 0 0 17px; padding-left: 21px; }
#events li { font-size: 14px; line-height: 1.55; padding: 1px 0 6px; }
.journal-dialogue { display: block; margin-top: 3px; color: #4c5947; overflow-wrap: anywhere; }
#growth-trial-link {
  display: inline-block;
  padding: 8px 10px;
  border-radius: 7px;
  background: #f0deae;
  color: #304130;
  font-weight: 700;
}
#pet-life-profile-growth { background: #f4e9c7; border-color: #dac48d; }
.journal-pet-picker {
  margin: 12px 0;
  border-block: 1px solid #cabd95;
}
.journal-pet-picker summary {
  cursor: pointer;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 700;
}
#journal-pets { display: flex; flex-wrap: wrap; gap: 7px; padding-bottom: 12px; }

#pet-account {
  --account-padding: 20px;
  width: min(500px, calc(100% - 24px));
  max-height: min(90dvh, 760px);
  padding: 0 var(--account-padding) var(--account-padding);
  overscroll-behavior: contain;
  scroll-padding-block: 78px 16px;
}
#pet-account header {
  position: sticky;
  top: 0;
  z-index: 1;
  margin-inline: calc(-1 * var(--account-padding));
  padding: 11px var(--account-padding);
  border-bottom: 1px solid #dfd0a8;
  background: #fff1d2;
}
#pet-life {
  max-height: min(88dvh, 660px);
  overscroll-behavior: contain;
  scrollbar-color: #979578 #fff1d2;
}
.pet-life-identity { display: flex; min-width: 0; align-items: center; gap: 12px; }
.pet-life-identity h2 { overflow-wrap: anywhere; }
#pet-life-portrait { flex: 0 0 auto; }
#pet-life-portrait img {
  display: block;
  padding: 6px;
  border-radius: 6px;
  background: #e9ddba;
  object-fit: contain;
  image-rendering: pixelated;
}
#pet-life form { flex: 0 0 auto; }
#pet-life button:focus-visible { outline-color: #325244; }
#pet-life-status { margin: 14px 0 2px; color: #465641; font-size: 14px; line-height: 1.55; }
.pet-life-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin: 14px 0;
  padding: 4px;
  border: 1px solid #d6c89e;
  border-radius: 9px;
  background: #f1e5c3;
}
.pet-life-tabs button {
  min-height: 44px;
  border: 0;
  background: transparent;
}
.pet-life-tabs button[aria-selected="true"] {
  color: #fff1d2;
  background: #325244;
}
#pet-life-profile-archetype {
  padding: 12px;
  border: 1px solid #c9c7a0;
  border-radius: 9px;
  background: #e9e9cd;
}
#pet-life #pet-life-profile-type {
  color: #304531;
  font: 700 20px/1.25 "Songti SC", "Noto Serif CJK SC", serif;
  overflow-wrap: anywhere;
}
#pet-life-profile-motivation { margin: 4px 0 0; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.pet-life-profile-section {
  margin-top: 10px;
  padding: 11px 12px;
  border: 1px solid #d6c89e;
  border-radius: 9px;
  background: #fff7e2;
}
.pet-life-profile-section h4 { margin: 0; font-size: 15px; line-height: 1.4; }
.pet-life-profile-details { margin: 6px 0 0; }
.pet-life-profile-details > div {
  display: grid;
  grid-template-columns: minmax(0, 5.5em) minmax(0, 1fr);
  gap: 8px;
  padding: 5px 0;
  border-top: 1px solid #ded4b6;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.pet-life-profile-details > div:last-child { padding-bottom: 0; }
.pet-life-profile-details dt { color: #465641; }
.pet-life-profile-details dd { margin: 0; }
.pet-life-now { padding: 13px 14px; border-radius: 9px; background: #e9e9cd; }
#pet-life h3 { margin: 0; font-size: 15px; line-height: 1.4; }
#pet-life-intent { margin: 6px 0 3px; font-size: 17px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.pet-life-meta { font-size: 13px; color: #465641; line-height: 1.45; overflow-wrap: anywhere; }
#pet-life-source { margin: 3px 0 0; }
#pet-life-conversation { margin-top: 12px; }
#pet-life-conversation h4 { margin: 0; font-size: 13px; }
.pet-life-chat-lines {
  display: grid;
  gap: 6px;
  list-style: none;
  margin: 7px 0 0;
  padding: 0;
}
.pet-life-chat-lines li {
  padding: 7px 10px;
  border-radius: 7px;
  background: #f3e7c5;
  overflow-wrap: anywhere;
}
#pet-life-live-lines li { background: #fff4dc; }
.pet-life-chat-speaker { color: #465641; font-size: 12px; font-weight: 700; }
.pet-life-chat-lines p { margin: 1px 0 0; font-size: 14px; line-height: 1.5; }
.pet-life-history { margin-top: 20px; }
#pet-life-empty { margin: 10px 0 2px; }
#pet-life-memories { list-style: none; margin: 4px 0 0; padding: 0; }
#pet-life-memories > li { padding: 9px 0; border-bottom: 1px solid #d6c89e; }
#pet-life-memories > li:last-child { border-bottom: 0; padding-bottom: 1px; }
#pet-life-memories strong {
  display: block;
  font-size: 15px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
#pet-life-memories small { display: block; margin-top: 2px; }
#pet-account-title:focus { outline: none; }
#pet-account-status:empty { display: none; }
#pet-account-status, .account-intro, #pet-account-current, .account-error {
  margin: 12px 0;
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
#pet-account-current { color: #536048; }
.account-error { background: #fae1c7; color: #792721; border-radius: 7px; padding: 9px 11px; }
.account-fields { display: grid; gap: 7px; }
#pet-account-form .account-intro { margin-block: 3px 7px; }
.account-fields label { font-size: 14px; font-weight: 700; }
.account-fields :is(input, textarea) {
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  min-height: 46px;
  border: 1px solid #7c8061;
  border-radius: 7px;
  color: #233529;
  background: #fffaec;
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
}
.account-fields textarea { resize: vertical; }
.account-fields small { margin-bottom: 6px; color: #536048; font-size: 12px; }
#pet-account :is(input, textarea, button, a):focus-visible { outline: 2px solid #325244; outline-offset: 2px; }
#pet-account .account-primary {
  display: grid;
  width: 100%;
  place-items: center;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid #2c523b;
  border-radius: 8px;
  color: #fff3d1;
  background: #2c523b;
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
}
#pet-account .account-primary:hover { background: #3e6045; }
#pet-account button:disabled { cursor: wait; opacity: .7; }
#pet-account .account-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  min-height: 44px;
  border: 0;
  border-radius: 4px;
  color: #3b5138;
  background: transparent;
  font-size: 13px;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: .23em;
}
#pet-account .account-link:hover { color: #1e3828; }
.account-profile-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0 7px; margin-top: 5px; }
.account-card {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 12px;
  border: 1px solid #d7c89e;
  border-radius: 9px;
  padding: 10px;
  background: #fffae9;
}
.account-card img {
  flex: 0 0 auto;
  padding: 6px;
  border-radius: 5px;
  background: #ece1bd;
  object-fit: contain;
}
.account-card img[data-pixel] { image-rendering: pixelated; }
.account-card-name { flex: 1 1 auto; min-width: 0; }
#pet-account-edit { flex: 0 0 auto; padding-inline: 8px; }
.account-card h3, .account-card p { margin: 0; overflow-wrap: anywhere; }
.account-card h3 { font: 700 21px/1.2 "Songti SC", "Noto Serif CJK SC", serif; }
.account-card p { margin-top: 4px; font-size: 13px; color: #536048; }
.account-owner-note {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-left: 2px solid #9ca67b;
  color: #3b4f3a;
  font-size: 14px;
  line-height: 1.55;
}
.account-owner-note strong { display: block; margin-bottom: 3px; font-size: 12px; }
.account-owner-note span { white-space: pre-wrap; overflow-wrap: anywhere; }
.account-edit-form { margin-bottom: 12px; padding: 13px; border: 1px solid #d7c89e; border-radius: 9px; background: #fffae9; }
.account-edit-form .account-error { margin: 0 0 5px; }
.account-edit-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.account-world-actions { margin-bottom: 12px; }
#pet-account-birth { display: grid; gap: 10px; margin-bottom: 13px; }
.account-coordinate {
  padding: 12px 14px;
  border: 1px solid #426452;
  border-radius: 9px;
  color: #fff1cf;
  background: #264536;
}
.account-coordinate-heading { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
#pet-account-birth h4 { margin: 0; font-size: 15px; }
.account-coordinate button { padding-inline: 9px; border-color: #bdca9d; color: #fff3d8; background: transparent; font-size: 12px; }
.account-coordinate button:hover { background: #395a4a; }
#pet-account .account-coordinate button:focus-visible { outline-color: #f3d994; }
#pet-account-coordinate {
  display: block;
  margin: 5px 0 7px;
  color: #f8de96;
  font: 650 clamp(13px, 3.4vw, 17px)/1.45 ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-variant-numeric: tabular-nums;
  user-select: all;
  overflow-wrap: anywhere;
}
.account-coordinate p { margin: 0; color: #e1ead7; font-size: 12px; line-height: 1.5; }
#pet-account-copy-status:not(:empty) { margin-top: 5px; color: #f8de96; }
.account-personality, .account-detail {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #d7c89e;
  border-radius: 9px;
  background: #fffae9;
}
.account-personality { border-color: #bdca9d; background: #f1f3dd; }
.account-personality .account-type-number { margin: 0 0 3px; color: #486047; font-size: 12px; font-weight: 700; }
#pet-account-birth .account-personality h4 { font: 700 26px/1.15 "Songti SC", "Noto Serif CJK SC", serif; }
.account-personality > p:last-of-type, .account-reading p { margin: 5px 0 0; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.account-traits { margin: 8px 0 0; }
.account-traits > div {
  display: grid;
  grid-template-columns: minmax(66px, 5.2em) minmax(0, 1fr);
  gap: 7px;
  padding: 6px 0;
  border-top: 1px solid #283c2920;
  font-size: 13px;
  line-height: 1.45;
}
.account-traits > div:last-child { padding-bottom: 0; }
.account-traits dt { color: #4e6045; }
.account-traits dd { margin: 0; overflow-wrap: anywhere; }
.account-reading { display: flex; align-items: flex-start; gap: 10px; }
.account-reading img { flex: none; border-radius: 5px; background: #ece1bd; image-rendering: pixelated; }

@media (max-width: 440px) {
  .top, .bottom { padding-inline: max(13px, env(safe-area-inset-left)) max(13px, env(safe-area-inset-right)); }
  .view-tools { gap: 5px; }
  .top { gap: 6px; }
  .top button { padding-inline: 8px; font-size: 12px; }
  .live-row { gap: 7px; }
  .live-actions { gap: 5px; }
  .live-actions button { padding-inline: 8px; font-size: 12px; }
  #pet-account { --account-padding: 14px; margin: auto auto max(10px, env(safe-area-inset-bottom)); }
  #pet-life { margin: auto auto max(10px, env(safe-area-inset-bottom)); padding: 16px; }
  .park[data-venue] .location-name { display: grid; gap: 2px; }
  .park[data-venue] #return-to-river { min-height: 44px; justify-self: start; }
  .park[data-venue] .view-tools { align-self: start; }
  .places { gap: 5px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; margin-inline: -1px; padding: 3px 1px; }
  .places button { padding-inline: 8px; flex: 1 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .resident, .night-wash, .lamp, .scene[data-following] .plane { transition: none; }
  .ripple { animation: none; opacity: .33; }
}
