:root {
  --ink: #263a32;
  --muted: #6c7a70;
  --green: #39775c;
  --green-dark: #285a43;
  --pale: #eef3eb;
  --lavender: #e9e5f4;
  --line: #e6ebe3;
  --paper: #fafbf8;
  --white: #fff;
  --radius: 16px;
  font-family: "Avenir Next", "Trebuchet MS", sans-serif;
  color: var(--ink);
  font-size: 16px;
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #8970bb;
  outline-offset: 4px;
}
::selection {
  background: #d7cee9;
  color: #273a32;
}
::-webkit-scrollbar {
  width: 7px;
  height: 6px;
}
::-webkit-scrollbar-thumb {
  background: #b7c5b9;
  border-radius: 9px;
}
.icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  vertical-align: middle;
}
.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
}
.sidebar {
  padding: 34px 22px 24px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  background: #fff;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -1px;
}
.brandmark {
  width: 38px;
  height: 38px;
  background: var(--green);
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #fff;
}
.brandmark .icon {
  fill: currentColor;
  stroke: none;
  width: 25px;
  height: 25px;
}
.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 48px;
}
.nav button {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 16px;
  border: 0;
  border-radius: 11px;
  color: #788176;
  background: none;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
}
.nav button:hover {
  background: #f1f5ed;
  color: var(--green);
}
.nav button.active {
  background: #eaf1e7;
  color: var(--green-dark);
}
.nav .count {
  margin-left: auto;
  padding: 2px 7px;
  font-size: 12px;
  background: white;
  border-radius: 5px;
}
.sidebar-bottom {
  margin-top: auto;
}
.sidebar-tip {
  background: #f2f0f7;
  border-radius: 14px;
  padding: 17px 16px;
  margin: 24px 0;
  color: #74678a;
}
.sidebar-tip .icon {
  color: #8f80ac;
}
.sidebar-tip strong {
  display: block;
  font-size: 14px;
  margin: 10px 0 6px;
  color: #51455f;
}
.sidebar-tip p {
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
}
.side-user {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: none;
  width: 100%;
  text-align: left;
  padding: 7px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: #eadbc3;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
}
.side-user strong {
  font-size: 13px;
  display: block;
}
.side-user small {
  font-size: 11px;
  color: var(--muted);
}
.workspace {
  padding: 30px 35px 24px;
  min-width: 0;
  max-width: 1700px;
  width: 100%;
  margin: auto;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  gap: 15px;
}
.greeting {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 5px;
}
.topbar h1 {
  font-size: 28px;
  letter-spacing: -1px;
  margin: 0;
  font-weight: 750;
}
.top-right {
  display: flex;
  align-items: center;
  gap: 13px;
}
.coin-balance {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  background: #fff8e5;
  border-radius: 10px;
  font-weight: 750;
  font-size: 15px;
  color: #85631f;
  white-space: nowrap;
}
.coin-balance .icon {
  color: #c59a35;
}
.icon-button {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  color: var(--muted);
}
.play-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 25px;
}
.play-column {
  min-width: 0;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  gap: 10px;
}
.section-title h2 {
  margin: 0;
  font-size: 17px;
  letter-spacing: -0.35px;
}
.section-title p {
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0 0;
}
.text-button {
  border: 0;
  background: none;
  color: var(--green);
  font-size: 12px;
  font-weight: 650;
  padding: 5px;
  display: inline-flex;
  gap: 5px;
  align-items: center;
}
.text-button .icon {
  width: 15px;
  height: 15px;
}
.scene {
  position: relative;
  height: 408px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #dfebd6;
  isolation: isolate;
}
.landscape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.scene-top {
  position: absolute;
  left: 19px;
  right: 19px;
  top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.weather {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #fffdf0ce;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 11px;
  color: #6e785c;
}
.weather .icon {
  width: 16px;
  height: 16px;
}
.scene-tag {
  font-size: 11px;
  font-weight: 600;
  color: #536c4d;
  background: #fffdf0be;
  padding: 8px 11px;
  border-radius: 8px;
}
.scene-dog {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 285px;
  border: 0;
  padding: 0;
  background: none;
  transition: transform 0.25s ease-out;
  color: var(--ink);
}
.scene-dog:hover {
  transform: translateX(-50%) translateY(-4px);
}
.dog-art {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.scene-dog .dog-tail {
  transform-origin: 247px 249px;
  animation: wag 1.8s ease-in-out infinite;
}
.scene-dog .dog-art {
  filter: drop-shadow(0 8px 6px #53774915);
}
@keyframes wag {
  0%,
  100% {
    transform: rotate(-8deg);
  }
  50% {
    transform: rotate(11deg);
  }
}
.scene-dog.celebrate .dog-art {
  animation: bounce 0.6s ease-out;
}
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-23px) rotate(-4deg);
  }
  70% {
    transform: translateY(-8px) rotate(3deg);
  }
}
.speech {
  position: absolute;
  left: 50%;
  top: 66px;
  transform: translateX(-50%);
  padding: 9px 16px;
  border-radius: 12px;
  background: #fffef7;
  color: #5d6b54;
  font-size: 12px;
  white-space: nowrap;
  box-shadow: 0 4px 12px #38563d0c;
}
.speech:after {
  content: "";
  position: absolute;
  bottom: -7px;
  left: 50%;
  border-top: 8px solid #fffef7;
  border-right: 8px solid transparent;
}
.scene-bottom {
  position: absolute;
  bottom: 15px;
  left: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dog-name {
  display: flex;
  gap: 10px;
  align-items: center;
}
.dog-name strong {
  font-size: 18px;
}
.dog-name span {
  font-size: 10px;
  background: #f9fbecb3;
  padding: 4px 8px;
  border-radius: 5px;
}
.scene-heart {
  color: #e38379;
  border: 0;
  background: #ffffffbd;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
}
.scene-heart.selected .icon {
  fill: #e38379;
}
.care-dock {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
  background: white;
  border-radius: 14px;
  padding: 14px 8px;
  margin-top: 12px;
}
.care-button {
  background: none;
  border: 0;
  color: var(--ink);
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 7px;
  padding: 3px 0;
  font-size: 10px;
  white-space: nowrap;
}
.care-button .care-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: #f4efe2;
  border-radius: 13px;
  color: #9b8046;
  transition: transform 0.2s;
}
.care-button:hover .care-icon {
  transform: translateY(-4px);
}
.care-button:nth-child(2) .care-icon {
  background: #e7f1f6;
  color: #6696ad;
}
.care-button:nth-child(3) .care-icon {
  background: #ece9f6;
  color: #9280b5;
}
.care-button:nth-child(4) .care-icon {
  background: #f7eae3;
  color: #b48060;
}
.care-button:nth-child(5) .care-icon {
  background: #e9eef5;
  color: #8194b3;
}
.care-button:nth-child(6) .care-icon {
  background: #e9f0df;
  color: #8a9d65;
}
.care-button small {
  font-size: 10px;
  color: #8b927f;
}
.care-button small .icon {
  width: 11px;
  height: 11px;
}
.roster {
  margin-top: 26px;
}
.roster-list {
  display: flex;
  gap: 11px;
  overflow: auto;
  padding: 2px 2px 7px;
}
.pet-tile {
  position: relative;
  min-width: 115px;
  width: 115px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 7px 8px 10px;
  text-align: center;
  flex-shrink: 0;
}
.pet-tile.active {
  border: 2px solid #6e9776;
  background: #eff4e9;
  padding: 6px 7px 9px;
}
.pet-tile .dog-art {
  height: 82px;
}
.pet-tile strong {
  display: block;
  font-size: 12px;
}
.pet-tile small {
  font-size: 10px;
  color: var(--muted);
}
.pet-tile.add {
  border: 1px dashed #bdcbb8;
  background: transparent;
  color: #7a9271;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 127px;
}
.pet-tile .mini-heart {
  position: absolute;
  top: 8px;
  right: 8px;
  color: #d58c7d;
}
.mini-heart .icon {
  width: 11px;
  height: 11px;
  fill: currentColor;
}
.right-panel {
  padding-top: 0;
}
.pet-details {
  padding: 20px;
  background: #fff;
  border-radius: var(--radius);
}
.detail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.detail-top h2 {
  font-size: 19px;
  margin: 0;
}
.detail-top .text-button {
  padding: 2px;
}
.pet-breed {
  font-size: 12px;
  color: var(--muted);
  margin: 5px 0 13px;
}
.pet-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.badge {
  font-size: 10px;
  padding: 5px 8px;
  border-radius: 5px;
  background: #eef3e9;
  color: #6d855b;
}
.badge.lilac {
  background: #f0ecf8;
  color: #8d7aaa;
}
.stat-list {
  display: grid;
  gap: 15px;
  margin-top: 24px;
}
.stat-head {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin-bottom: 7px;
}
.stat-head span {
  color: var(--muted);
}
.stat-head strong {
  font-size: 10px;
  font-weight: 500;
  color: #87917e;
  font-variant-numeric: tabular-nums;
}
.meter {
  height: 5px;
  background: #f0f2ec;
  border-radius: 5px;
  overflow: hidden;
}
.meter span {
  display: block;
  height: 100%;
  background: var(--bar, #9eba83);
  border-radius: 5px;
  transition: width 0.5s ease-out;
}
.bond {
  padding-top: 18px;
  margin-top: 20px;
  border-top: 1px solid var(--line);
}
.bond .stat-head span {
  display: flex;
  gap: 5px;
  align-items: center;
  color: #9e7e96;
}
.bond .icon {
  width: 13px;
  height: 13px;
}
.bond p {
  font-size: 10px;
  color: var(--muted);
  margin: 8px 0 0;
}
.daily-card {
  background: #eeebf6;
  border-radius: var(--radius);
  padding: 19px;
  margin-top: 18px;
}
.daily-card h3 {
  font-size: 14px;
  margin: 0 0 5px;
}
.daily-card > p {
  font-size: 11px;
  color: #887e98;
  margin: 0 0 17px;
}
.daily-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.mission-icon {
  width: 29px;
  height: 29px;
  background: #fff9;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #9182ad;
}
.mission-icon .icon {
  width: 16px;
  height: 16px;
}
.daily-row .copy {
  flex: 1;
}
.daily-row strong {
  font-size: 11px;
  display: block;
}
.daily-row small {
  font-size: 10px;
  color: #8c809c;
}
.claim-small {
  background: #fff9;
  border: 0;
  color: #8a789e;
  border-radius: 6px;
  padding: 6px;
  font-size: 10px;
}
.footnote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #98a18f;
  font-size: 10px;
  margin: 24px 0 0;
}
.footnote .icon {
  width: 12px;
  height: 12px;
}
.page-heading {
  margin: 0 0 24px;
}
.page-heading h2 {
  font-size: 28px;
  letter-spacing: -1px;
  margin: 0 0 8px;
}
.page-heading p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}
.toolbar {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.searchbox {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 13px;
  min-width: 220px;
  flex: 1;
  max-width: 380px;
  color: #99a393;
}
.searchbox input {
  border: 0;
  outline: none;
  background: none;
  width: 100%;
  font-size: 14px;
  color: var(--ink);
}
.searchbox .icon {
  width: 18px;
  height: 18px;
}
.filter {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.filter button {
  padding: 9px 13px;
  font-size: 12px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  color: var(--muted);
}
.filter button.active {
  background: #e7eee2;
  color: var(--green-dark);
  font-weight: 700;
}
.breed-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 19px;
}
.breed-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
}
.breed-picture {
  position: relative;
  height: 185px;
  background: #eef2e5;
  display: grid;
  place-items: center;
}
.breed-card:nth-child(4n + 2) .breed-picture {
  background: #f0e9e1;
}
.breed-card:nth-child(4n + 3) .breed-picture {
  background: #eae6f3;
}
.breed-card:nth-child(4n + 4) .breed-picture {
  background: #e4edf0;
}
.breed-picture .dog-art {
  height: 176px;
  width: 200px;
}
.breed-picture .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #fff9;
}
.breed-copy {
  padding: 18px;
}
.breed-copy h3 {
  font-size: 16px;
  margin: 0 0 5px;
}
.breed-copy p {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 17px;
}
.breed-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.cost {
  font-size: 14px;
  font-weight: 700;
  color: #a38438;
  display: flex;
  align-items: center;
  gap: 5px;
}
.cost .icon {
  width: 17px;
  height: 17px;
}
.btn {
  border: 0;
  border-radius: 9px;
  padding: 11px 16px;
  background: var(--green);
  color: white;
  font-size: 13px;
  font-weight: 650;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.btn:hover {
  background: var(--green-dark);
}
.btn.secondary {
  background: var(--pale);
  color: var(--green);
}
.btn.danger {
  background: #f9e9e3;
  color: #a15d4b;
}
.btn.small {
  font-size: 11px;
  padding: 9px 12px;
}
.btn .icon {
  width: 17px;
  height: 17px;
}
.owned-tools {
  display: flex;
  gap: 7px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.owned-tools .text-button {
  font-size: 11px;
}
.collection-banner {
  padding: 23px 26px;
  background: #e9e5f2;
  border-radius: 14px;
  margin-bottom: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.collection-banner strong {
  font-size: 20px;
  display: block;
}
.collection-banner p {
  font-size: 12px;
  color: #867792;
  margin: 6px 0 0;
}
.collection-banner .icon {
  color: #9882ad;
  width: 32px;
  height: 32px;
}
.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}
.empty h3 {
  color: var(--ink);
}
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.shop-card {
  padding: 26px;
  background: white;
  border-radius: 16px;
}
.shop-illustration {
  height: 125px;
  display: grid;
  place-items: center;
  background: #edf1e7;
  border-radius: 12px;
  color: #7f9a63;
  margin-bottom: 24px;
}
.shop-illustration .icon {
  width: 66px;
  height: 66px;
  stroke-width: 1.2;
}
.shop-card:nth-child(2) .shop-illustration {
  background: #f2e9dd;
  color: #b48d58;
}
.shop-card:nth-child(3) .shop-illustration {
  background: #eee8f5;
  color: #9a80b1;
}
.shop-card h3 {
  font-size: 18px;
  margin: 0 0 8px;
}
.shop-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  min-height: 66px;
}
.shop-card .breed-bottom {
  margin-top: 25px;
}
.inventory {
  margin-top: 26px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 2;
}
.missions-list {
  max-width: 850px;
}
.mission-card {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 24px;
  background: #fff;
  border-radius: 14px;
  margin-bottom: 14px;
}
.mission-card > .mission-icon {
  width: 54px;
  height: 54px;
  background: #eee9f5;
  flex-shrink: 0;
}
.mission-card > .mission-icon .icon {
  width: 28px;
  height: 28px;
}
.mission-card .copy {
  flex: 1;
}
.mission-card h3 {
  font-size: 16px;
  margin: 0 0 6px;
}
.mission-card p {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 10px;
}
.mission-card .meter {
  max-width: 250px;
}
.mission-card .cost {
  margin-top: 9px;
}
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.panel {
  background: #fff;
  padding: 26px;
  border-radius: 16px;
}
.panel h3 {
  font-size: 18px;
  margin: 0 0 12px;
}
.panel p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}
.setting {
  display: flex;
  gap: 15px;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 17px 0;
  font-size: 14px;
}
.setting input {
  width: 20px;
  height: 20px;
  accent-color: var(--green);
}
.history-list {
  padding: 0;
  list-style: none;
  margin: 0;
}
.history-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.6;
}
.history-list time {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.profile-avatar {
  width: 64px;
  height: 64px;
  font-size: 24px;
  margin-bottom: 18px;
}
.notice {
  padding: 14px 18px;
  background: #fff7dd;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.6;
  color: #8a743e;
  margin-bottom: 20px;
}
.admin-row {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.admin-row label {
  flex: 1;
}
.admin-row input {
  width: 100px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.admin-users {
  font-size: 13px;
  line-height: 1.8;
}
.initial {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  color: var(--green);
  font-weight: 800;
  gap: 15px;
}
.initial span {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: #294a38;
  color: #fff;
  padding: 14px 22px;
  border-radius: 12px;
  font-size: 13px;
  box-shadow: 0 8px 32px #203f3520;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
  z-index: 100;
  max-width: calc(100vw - 32px);
  text-align: center;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
#toast.error {
  background: #965b49;
}
dialog {
  border: 0;
  border-radius: 20px;
  padding: 30px;
  width: 440px;
  max-width: calc(100vw - 32px);
  color: var(--ink);
  box-shadow: 0 22px 90px #203f3530;
}
dialog::backdrop {
  background: #243a3266;
  backdrop-filter: blur(4px);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}
.modal-head h2 {
  font-size: 24px;
  letter-spacing: -0.6px;
  margin: 0;
}
.modal-close {
  background: none;
  border: 0;
  color: var(--muted);
  padding: 5px;
}
.modal-close .icon {
  width: 20px;
  height: 20px;
}
dialog p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}
.form-field {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin: 18px 0;
}
.form-field input {
  display: block;
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #dbe3d7;
  border-radius: 8px;
  margin-top: 7px;
  color: var(--ink);
  font-size: 14px;
  background: #fafcf9;
}
.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 24px;
}
.auth-submit {
  width: 100%;
  margin-top: 6px;
}
.auth-switch {
  margin-top: 18px;
  text-align: center;
  font-size: 12px;
}
.form-error {
  color: #a35648;
  font-size: 12px;
  min-height: 18px;
}
.tutorial-dog {
  width: 160px;
  margin: 0 auto;
}
.tutorial-title {
  text-align: center;
}
.tutorial-title h2 {
  font-size: 26px;
  margin: 7px 0;
}
.tutorial-title p {
  font-size: 13px;
}
.progress-info {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 18px;
}
.mobile-brand {
  display: none;
}
.no-motion * {
  animation: none !important;
  transition: none !important;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
@media (min-width: 1500px) {
  .scene {
    height: 490px;
  }
  .scene-dog {
    width: 330px;
    bottom: 37px;
  }
  .speech {
    top: 88px;
  }
  .workspace {
    padding: 34px 44px;
  }
  .play-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 30px;
  }
  .pet-details {
    padding: 25px;
  }
  .stat-list {
    gap: 20px;
  }
  .care-button {
    font-size: 12px;
  }
  .care-dock {
    padding: 18px 10px;
  }
  .care-button .care-icon {
    width: 47px;
    height: 47px;
  }
  .breed-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 1180px) {
  .shell {
    grid-template-columns: 180px minmax(0, 1fr);
  }
  .sidebar {
    padding: 28px 14px;
  }
  .brand {
    font-size: 22px;
  }
  .brand small {
    font-size: 8px;
  }
  .workspace {
    padding: 25px 22px;
  }
  .play-layout {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 18px;
  }
  .scene {
    height: 385px;
  }
  .scene-dog {
    width: 250px;
  }
  .care-button {
    font-size: 9px;
  }
  .care-dock {
    gap: 2px;
  }
  .scene-tag {
    display: none;
  }
  .topbar h1 {
    font-size: 24px;
  }
  .breed-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .shop-grid {
    gap: 12px;
  }
  .shop-card {
    padding: 18px;
  }
  .shop-card .breed-bottom {
    flex-wrap: wrap;
  }
  .shop-card p {
    min-height: 90px;
  }
}
@media (max-width: 960px) {
  .shell {
    grid-template-columns: 78px minmax(0, 1fr);
  }
  .sidebar {
    padding: 24px 13px;
    align-items: center;
  }
  .brand .brand-name,
  .nav button > span,
  .sidebar-tip,
  .side-user > span:not(.avatar) {
    display: none;
  }
  .brandmark {
    width: 40px;
    height: 40px;
  }
  .nav {
    gap: 15px;
    margin-top: 40px;
  }
  .nav button {
    padding: 12px;
  }
  .nav .count {
    display: none;
  }
  .side-user {
    padding: 0;
  }
  .play-layout {
    grid-template-columns: minmax(0, 1fr) 225px;
    gap: 15px;
  }
  .workspace {
    padding: 24px 20px;
  }
  .care-button {
    font-size: 9px;
  }
  .scene-dog {
    width: 230px;
  }
  .scene {
    height: 370px;
  }
  .speech {
    font-size: 10px;
    top: 75px;
    padding: 8px 12px;
  }
  .roster {
    margin-top: 24px;
  }
  .pet-details {
    padding: 17px;
  }
  .daily-card {
    padding: 16px;
  }
  .topbar {
    margin-bottom: 25px;
  }
}
@media (max-width: 750px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: fixed;
    top: auto;
    bottom: 0;
    height: 70px;
    left: 0;
    right: 0;
    border: 0;
    border-top: 1px solid var(--line);
    padding: 4px 8px;
    background: #ffffffef;
    z-index: 30;
    display: block;
  }
  .sidebar > .brand,
  .sidebar-bottom {
    display: none;
  }
  .nav {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    margin: 0;
    gap: 0;
  }
  .nav button {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
    padding: 7px 9px;
    border-radius: 9px;
    min-width: 54px;
  }
  .nav button > span {
    display: block !important;
    font-size: 9px;
  }
  .nav .count {
    display: none !important;
  }
  .nav button .icon {
    width: 20px;
    height: 20px;
  }
  .workspace {
    padding: 19px 18px 95px;
  }
  .mobile-brand {
    display: flex;
    margin-bottom: 22px;
    justify-content: space-between;
    align-items: center;
  }
  .mobile-brand .brand {
    font-size: 23px;
  }
  .mobile-brand .brandmark {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }
  .mobile-brand small {
    font-size: 8px;
  }
  .mobile-brand > span {
    font-size: 11px;
    color: var(--muted);
  }
  .topbar h1 {
    font-size: 24px;
  }
  .topbar {
    align-items: center;
    margin-bottom: 25px;
  }
  .greeting {
    font-size: 11px;
  }
  .top-right {
    gap: 7px;
  }
  .top-right > .icon-button {
    display: none;
  }
  .coin-balance {
    padding: 9px 10px;
    font-size: 13px;
    gap: 6px;
  }
  .coin-balance .icon {
    width: 18px;
    height: 18px;
  }
  .play-layout {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .scene {
    height: 365px;
  }
  .scene-dog {
    width: 250px;
    bottom: 20px;
  }
  .scene-top {
    top: 14px;
    left: 14px;
    right: 14px;
  }
  .scene-tag {
    display: block;
    font-size: 9px;
  }
  .speech {
    top: 65px;
    font-size: 11px;
  }
  .care-button {
    font-size: 10px;
  }
  .care-dock {
    padding: 14px 5px;
    gap: 3px;
  }
  .care-button .care-icon {
    width: 40px;
    height: 40px;
  }
  .roster {
    margin-top: 24px;
  }
  .pet-tile {
    width: 105px;
    min-width: 105px;
  }
  .right-panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .pet-details {
    padding: 22px;
  }
  .stat-list {
    grid-template-columns: 1fr 1fr;
    column-gap: 25px;
    row-gap: 18px;
  }
  .stat-head {
    font-size: 12px;
  }
  .daily-card {
    margin: 0;
    padding: 22px;
  }
  .daily-card h3 {
    font-size: 17px;
  }
  .daily-row {
    margin-top: 18px;
  }
  .daily-row strong {
    font-size: 13px;
  }
  .daily-row small {
    font-size: 11px;
  }
  .claim-small {
    font-size: 12px;
    padding: 8px;
  }
  .footnote {
    margin-top: 22px;
  }
  .breed-grid {
    gap: 12px;
  }
  .breed-picture {
    height: 150px;
  }
  .breed-picture .dog-art {
    height: 145px;
    width: 160px;
  }
  .breed-copy {
    padding: 13px;
  }
  .breed-copy h3 {
    font-size: 14px;
    line-height: 1.5;
    min-height: 21px;
  }
  .breed-copy p {
    font-size: 10px;
  }
  .breed-bottom {
    flex-wrap: wrap;
  }
  .breed-bottom .btn {
    font-size: 10px;
  }
  .cost {
    font-size: 12px;
  }
  .toolbar {
    gap: 12px;
  }
  .searchbox {
    max-width: none;
    min-width: 100%;
    padding: 10px;
  }
  .filter {
    gap: 3px;
  }
  .filter button {
    font-size: 11px;
    padding: 8px 12px;
  }
  .page-heading h2 {
    font-size: 26px;
  }
  .page-heading p {
    font-size: 13px;
  }
  .collection-banner {
    padding: 20px;
  }
  .collection-banner strong {
    font-size: 18px;
  }
  .shop-grid {
    grid-template-columns: 1fr;
  }
  .shop-card {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    column-gap: 20px;
    padding: 20px;
  }
  .shop-illustration {
    grid-row: 1/4;
    margin: 0;
    height: 100%;
    min-height: 120px;
  }
  .shop-illustration .icon {
    width: 48px;
    height: 48px;
  }
  .shop-card h3 {
    font-size: 16px;
  }
  .shop-card p {
    min-height: 0;
    margin: 0;
    font-size: 12px;
  }
  .shop-card .breed-bottom {
    margin-top: 17px;
  }
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .mission-card {
    padding: 18px;
    gap: 14px;
    flex-wrap: wrap;
  }
  .mission-card > .mission-icon {
    width: 43px;
    height: 43px;
  }
  .mission-card .copy {
    min-width: 160px;
  }
  .mission-card > .btn {
    margin-left: 57px;
  }
  .mission-card h3 {
    font-size: 14px;
  }
  .mission-card p {
    font-size: 11px;
  }
  .section-title h2 {
    font-size: 16px;
  }
}
@media (max-width: 380px) {
  .workspace {
    padding-left: 12px;
    padding-right: 12px;
  }
  .care-button {
    font-size: 9px;
  }
  .care-button .care-icon {
    width: 36px;
    height: 36px;
  }
  .topbar h1 {
    font-size: 21px;
  }
  .nav button {
    min-width: 45px;
    padding: 8px 5px;
  }
  .scene {
    height: 340px;
  }
  .scene-dog {
    width: 230px;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.undiscovered .dog-art {
  filter: brightness(0) opacity(0.13);
}

/* Pet actors move independently from their articulated SVG bodies. */
:root {
  --pet-ease: cubic-bezier(0.77, 0, 0.175, 1);
}
.park-residents {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.park-pet {
  position: absolute;
  left: 50%;
  bottom: 36px;
  width: 265px;
  pointer-events: none;
  transform: translateX(-50%);
  z-index: 3;
}
.park-pet.is-selected {
  z-index: 5;
}
.park-pet.is-companion {
  width: 155px;
  bottom: 69px;
}
.park-residents.crowded .park-pet.is-selected {
  width: 225px;
}
.park-residents.crowded .park-pet.is-companion {
  width: 108px;
}
.park-pet .scene-dog {
  position: relative;
  display: block;
  left: auto;
  bottom: auto;
  width: 100%;
  transform: none;
  transition: none;
  pointer-events: auto;
}
.park-pet .scene-dog:hover {
  transform: none;
}
.pet-sprite {
  display: block;
  transform-origin: 50% 85%;
  transition: transform 240ms cubic-bezier(0.23, 1, 0.32, 1);
}
.park-pet[data-facing="left"] .pet-sprite {
  transform: scaleX(-1);
}
.park-pet .dog-figure {
  transform-origin: 180px 300px;
  animation: pet-breathe 3.8s var(--pet-ease) infinite;
  animation-delay: var(--pet-delay, 0s);
}
.park-pet .dog-tail {
  transform-origin: 247px 249px;
  animation: wag 1.2s var(--pet-ease) infinite;
  animation-delay: var(--pet-delay, 0s);
}
.park-pet .dog-head {
  transform-origin: 180px 213px;
  animation: pet-look 6.5s var(--pet-ease) infinite;
  animation-delay: var(--pet-delay, 0s);
}
.park-pet .dog-eyes-open {
  transform-box: fill-box;
  transform-origin: center;
  animation: pet-blink 4.7s linear infinite;
  animation-delay: var(--pet-delay, 0s);
}
.dog-eyes-closed {
  display: none;
}
.is-sleepy .dog-eyes-open,
.park-pet[data-behavior="sleep"] .dog-eyes-open {
  display: none;
}
.is-sleepy .dog-eyes-closed,
.park-pet[data-behavior="sleep"] .dog-eyes-closed {
  display: initial;
}
.park-pet .dog-paw {
  transform-box: fill-box;
  transform-origin: 50% 30%;
}
.park-pet[data-behavior="walk"] .dog-figure {
  animation: pet-step 0.48s linear infinite;
}
.park-pet[data-behavior="walk"] .dog-head {
  animation: pet-walk-head 0.96s var(--pet-ease) infinite;
}
.park-pet[data-behavior="walk"] .dog-paw-left {
  animation: pet-paw 0.48s linear infinite;
}
.park-pet[data-behavior="walk"] .dog-paw-right {
  animation: pet-paw 0.48s linear -0.24s infinite;
}
.park-pet[data-behavior="play"] .dog-figure {
  animation: pet-hop 0.8s var(--pet-ease) infinite;
}
.park-pet[data-behavior="train"] .dog-paw-right {
  animation: pet-shake 0.65s var(--pet-ease) infinite;
}
.park-pet[data-behavior="train"] .dog-head {
  animation: pet-walk-head 1.2s var(--pet-ease) infinite;
}
.park-pet[data-behavior="feed"] .dog-head,
.park-pet[data-behavior="drink"] .dog-head {
  animation: pet-eat 0.85s var(--pet-ease) infinite;
}
.park-pet[data-behavior="bath"] .dog-figure {
  animation: pet-shiver 0.35s var(--pet-ease) infinite;
}
.park-pet[data-behavior="sleep"] .dog-figure {
  animation: pet-sleep 3.2s var(--pet-ease) infinite;
}
.park-pet[data-behavior="sleep"] .dog-head {
  animation: none;
  transform: translateY(5px) rotate(-7deg);
}
.park-pet[data-behavior="sleep"] .dog-tail {
  animation: none;
  transform: rotate(-14deg);
}
.pet-caption {
  position: absolute;
  left: 50%;
  bottom: -7px;
  transform: translateX(-50%);
  background: #fffffff0;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
  max-width: 145px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.is-selected .pet-caption {
  display: none;
}
.pet-state {
  position: absolute;
  top: 4%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #fffdf4f0;
  color: #4d6746;
  opacity: 0;
  transition: opacity 180ms cubic-bezier(0.23, 1, 0.32, 1);
}
.park-pet:not([data-behavior="idle"]):not([data-behavior="walk"]) .pet-state,
.park-pet:focus-within .pet-state {
  opacity: 1;
}
.pet-prop {
  position: absolute;
  display: none;
  pointer-events: none;
}
.pet-prop .icon {
  width: 29px;
  height: 29px;
}
.pet-bowl {
  left: 43%;
  bottom: 2%;
  color: #9f7548;
  background: #f4dfb5;
  border-radius: 8px;
  padding: 4px;
}
.pet-water {
  left: 43%;
  bottom: 2%;
  color: #56859e;
  background: #d6edf6;
  border-radius: 10px;
  padding: 4px;
}
.pet-ball {
  right: 9%;
  bottom: 9%;
  color: #b77c4a;
  animation: pet-ball-roll 1.6s var(--pet-ease) infinite;
}
.pet-star {
  right: 9%;
  top: 28%;
  color: #bd902b;
  animation: pet-star-spin 2s linear infinite;
}
.pet-sleep {
  right: 10%;
  top: 22%;
  color: #758398;
  font-size: 18px;
  letter-spacing: 5px;
  animation: pet-zzz 2.8s linear infinite;
}
.pet-bubbles {
  inset: 15% 10% 20%;
}
.pet-bubbles i {
  position: absolute;
  bottom: 10%;
  width: 20px;
  height: 20px;
  border: 2px solid #f5ffff;
  border-radius: 50%;
  background: #e1f5fb88;
  animation: pet-bubble 1.8s linear infinite;
}
.pet-bubbles i:nth-child(2) {
  left: 70%;
  animation-delay: -0.6s;
  width: 15px;
  height: 15px;
}
.pet-bubbles i:nth-child(3) {
  left: 40%;
  animation-delay: -1.2s;
  width: 12px;
  height: 12px;
}
[data-behavior="feed"] .pet-bowl,
[data-behavior="drink"] .pet-water,
[data-behavior="bath"] .pet-bubbles,
[data-behavior="play"] .pet-ball,
[data-behavior="train"] .pet-star,
[data-behavior="sleep"] .pet-sleep {
  display: block;
}
.scene-top,
.speech,
.scene-bottom {
  pointer-events: none;
  z-index: 8;
}
.scene-bottom .scene-heart {
  pointer-events: auto;
}
.scene[data-paused="true"] * {
  animation-play-state: paused !important;
}
@keyframes pet-breathe {
  0%,
  100% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(1.018);
  }
}
@keyframes pet-look {
  0%,
  35%,
  65%,
  100% {
    transform: rotate(0);
  }
  45%,
  55% {
    transform: rotate(-4deg);
  }
}
@keyframes pet-blink {
  0%,
  41%,
  45%,
  84%,
  88%,
  100% {
    transform: scaleY(1);
  }
  43%,
  86% {
    transform: scaleY(0.06);
  }
}
@keyframes pet-step {
  0%,
  50%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  25%,
  75% {
    transform: translateY(-5px) rotate(1deg);
  }
}
@keyframes pet-walk-head {
  0%,
  100% {
    transform: rotate(-3deg);
  }
  50% {
    transform: rotate(3deg);
  }
}
@keyframes pet-paw {
  0%,
  100% {
    transform: translate(-5px, -1px) rotate(-12deg);
  }
  50% {
    transform: translate(5px, -11px) rotate(12deg);
  }
}
@keyframes pet-hop {
  0%,
  100% {
    transform: translateY(0) rotate(-3deg);
  }
  45% {
    transform: translateY(-24px) rotate(3deg);
  }
}
@keyframes pet-shake {
  0%,
  100% {
    transform: translate(-5px, -23px) rotate(-18deg);
  }
  50% {
    transform: translate(3px, -37px) rotate(18deg);
  }
}
@keyframes pet-eat {
  0%,
  100% {
    transform: translateY(8px) rotate(-4deg);
  }
  50% {
    transform: translateY(18px) rotate(4deg);
  }
}
@keyframes pet-shiver {
  0%,
  100% {
    transform: rotate(-2deg);
  }
  50% {
    transform: rotate(2deg);
  }
}
@keyframes pet-sleep {
  0%,
  100% {
    transform: translateY(5px) scaleY(0.95);
  }
  50% {
    transform: translateY(5px) scaleY(0.98);
  }
}
@keyframes pet-ball-roll {
  0%,
  100% {
    transform: translateX(0) rotate(0);
  }
  50% {
    transform: translateX(20px) rotate(120deg);
  }
}
@keyframes pet-star-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes pet-zzz {
  0% {
    transform: translateY(8px);
    opacity: 0;
  }
  20%,
  75% {
    opacity: 1;
  }
  100% {
    transform: translateY(-18px);
    opacity: 0;
  }
}
@keyframes pet-bubble {
  0% {
    transform: translateY(0) scale(0.7);
    opacity: 0;
  }
  20%,
  70% {
    opacity: 1;
  }
  100% {
    transform: translateY(-90px) scale(1.1);
    opacity: 0;
  }
}
@media (hover: hover) and (pointer: fine) {
  .park-pet:hover .pet-state {
    opacity: 1;
  }
}
@media (max-width: 750px) {
  .park-pet.is-selected {
    width: 230px;
    bottom: 37px;
  }
  .park-pet.is-companion {
    width: 115px;
    bottom: 80px;
  }
  .park-residents.crowded .park-pet.is-selected {
    width: 185px;
  }
  .park-residents.crowded .park-pet.is-companion {
    width: 85px;
  }
  .pet-caption {
    font-size: 10px;
  }
  .pet-state {
    font-size: 10px;
    padding: 5px 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .park-pet *,
  .park-pet .dog-figure,
  .park-pet .dog-head,
  .park-pet .dog-tail {
    animation: none !important;
    transition: none !important;
  }
}
.park-residents[data-count="2"] .park-pet.is-selected {
  width: 250px;
}
@media (max-width: 750px) {
  .park-residents[data-count="2"] .park-pet.is-selected {
    width: 210px;
  }
  .park-residents[data-count="3"] .park-pet.is-selected,
  .park-residents[data-count="4"] .park-pet.is-selected {
    width: 195px;
  }
  .park-residents[data-count="3"] .park-pet.is-companion,
  .park-residents[data-count="4"] .park-pet.is-companion {
    width: 100px;
  }
}

.offline-screen {
  padding: 32px;
  text-align: center;
  gap: 20px;
}
.offline-screen img {
  border-radius: 22px;
}
.offline-screen h1 {
  font-size: 30px;
  margin: 0;
  letter-spacing: -0.8px;
}
.offline-screen p {
  max-width: 420px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  margin: 0;
}
.offline-screen small {
  font-size: 12px;
  font-weight: 400;
  max-width: 380px;
  line-height: 1.6;
  color: var(--muted);
}
