:root {
  color-scheme: light;
  --ink: #17251f;
  --muted: #68746f;
  --line: #dce3df;
  --paper: #ffffff;
  --canvas: #f4f7f5;
  --green: #246b4b;
  --green-dark: #154d35;
  --green-soft: #dceee4;
  --coral: #e96f55;
  --coral-soft: #fde4dc;
  --blue: #3976bd;
  --blue-soft: #dfebfa;
  --yellow: #e2a92e;
  --yellow-soft: #fbefc8;
  --red: #c94a4a;
  --violet: #7b63b6;
  --cyan: #318d99;
  --pink: #c35f85;
  --shadow: 0 18px 45px rgba(30, 54, 43, 0.1);
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  min-width: 320px;
  background: var(--canvas);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(57, 118, 189, 0.25);
  outline-offset: 2px;
}

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

img {
  display: block;
  max-width: 100%;
}

.generated-visual {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #dfe8e3;
}

.generated-visual > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.generated-image-fallback {
  z-index: 0;
  filter: saturate(0.88) brightness(0.96);
  transform: scale(1.02);
}

.generated-image-candidate {
  z-index: 1;
  opacity: 0;
  transition: opacity 360ms ease;
}

.generated-image-candidate.is-ready {
  opacity: 1;
}

.generated-visual-loader {
  position: absolute;
  z-index: 2;
  right: 7px;
  bottom: 7px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  color: #fff;
  background: rgba(22, 54, 39, 0.66);
  backdrop-filter: blur(5px);
  animation: generated-visual-pulse 1.4s ease-in-out infinite;
}

.generated-visual-loader svg {
  width: 12px;
}

.generated-visual.has-generated-image .generated-visual-loader {
  opacity: 0;
}

@keyframes generated-visual-pulse {
  0%, 100% { transform: scale(0.92); opacity: 0.72; }
  50% { transform: scale(1); opacity: 1; }
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2,
strong {
  font-weight: 750;
}

.hidden {
  display: none !important;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-size: 19px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--coral);
  font-size: 17px;
}

.brand-light {
  color: #fff;
}

.brand-dark {
  color: var(--ink);
}

.eyebrow {
  margin-bottom: 7px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  text-transform: uppercase;
}

.auth-screen {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(440px, 1.25fr) minmax(400px, 0.75fr);
}

.auth-visual {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  padding: 42px 54px;
  color: #fff;
  background: #1d5942;
}

.auth-visual::after {
  position: absolute;
  right: -10%;
  bottom: -130px;
  width: 72%;
  height: 360px;
  border-radius: 50%;
  background: #f1d9b9;
  content: "";
  transform: rotate(-7deg);
}

.auth-copy {
  position: relative;
  z-index: 2;
  margin-top: clamp(80px, 15vh, 160px);
  max-width: 560px;
}

.auth-copy .eyebrow {
  color: #f7c86d;
}

.auth-copy h1 {
  margin-bottom: 20px;
  font-size: clamp(48px, 5vw, 76px);
  line-height: 1.08;
}

.auth-copy p:last-child {
  max-width: 420px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.7;
}

.auth-pets {
  position: absolute;
  z-index: 1;
  right: 4%;
  bottom: -1px;
  width: min(50vw, 600px);
  height: 54%;
  object-fit: cover;
  object-position: center 40%;
  border-radius: 8px 8px 0 0;
  box-shadow: var(--shadow);
}

.auth-panel {
  position: relative;
  display: grid;
  min-height: 680px;
  padding: 48px;
  place-items: center;
  background: var(--paper);
}

.auth-panel-inner {
  width: min(100%, 410px);
}

.auth-filing {
  position: absolute;
  right: 24px;
  bottom: 20px;
  left: 24px;
  text-align: center;
}

.auth-filing a,
.sidebar-filing,
.settings-filing a {
  color: #7b8781;
  font-size: 11px;
  text-decoration: none;
}

.auth-filing a:hover,
.auth-filing a:focus-visible,
.sidebar-filing:hover,
.sidebar-filing:focus-visible,
.settings-filing a:hover,
.settings-filing a:focus-visible {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-mobile-brand {
  display: none;
}

.auth-tabs {
  display: grid;
  width: 220px;
  margin-bottom: 46px;
  padding: 4px;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--canvas);
}

.auth-tab {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-size: 14px;
  font-weight: 700;
}

.auth-tab.active {
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 2px 8px rgba(23, 37, 31, 0.08);
}

#auth-heading h2 {
  margin-bottom: 9px;
  font-size: 32px;
}

#auth-heading p {
  margin-bottom: 34px;
  color: var(--muted);
  line-height: 1.6;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.field > span,
.option-group legend {
  color: #405049;
  font-size: 13px;
  font-weight: 700;
}

.field input,
.field select,
.friend-search input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 14px;
  background: #fff;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field input:focus,
.field select:focus,
.friend-search input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(36, 107, 75, 0.1);
  outline: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-error {
  min-height: 20px;
  margin: -3px 0 13px;
  color: var(--red);
  font-size: 13px;
  line-height: 1.5;
}

.primary-button,
.secondary-button,
.danger-button,
.text-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 7px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 750;
}

.primary-button {
  border: 1px solid var(--green);
  color: #fff;
  background: var(--green);
}

.primary-button:hover {
  background: var(--green-dark);
}

.secondary-button {
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
}

.secondary-button:hover {
  border-color: #b7c4bd;
  background: #f8faf9;
}

.danger-button {
  border: 1px solid #e5b6b6;
  color: #a63535;
  background: #fff;
}

.text-button {
  min-height: 36px;
  border: 0;
  padding: 0;
  color: var(--green);
  background: transparent;
}

.compact {
  min-height: 40px;
}

.wide {
  width: 100%;
}

.primary-button svg,
.secondary-button svg,
.danger-button svg,
.text-button svg,
.icon-button svg,
.nav-item svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  stroke-width: 2;
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  z-index: 20;
  inset: 0 auto 0 0;
  display: flex;
  width: 226px;
  flex-direction: column;
  border-right: 1px solid var(--line);
  padding: 28px 18px 20px;
  background: rgba(255, 255, 255, 0.96);
}

.side-brand {
  margin: 0 12px 42px;
}

.main-nav {
  display: grid;
  gap: 6px;
}

.nav-item {
  position: relative;
  display: flex;
  height: 46px;
  align-items: center;
  gap: 13px;
  border: 0;
  border-radius: 7px;
  padding: 0 14px;
  color: #617069;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
}

.nav-item:hover {
  color: var(--ink);
  background: #f3f6f4;
}

.nav-item.active {
  color: var(--green-dark);
  background: var(--green-soft);
}

.nav-badge {
  display: inline-grid;
  min-width: 19px;
  height: 19px;
  margin-left: auto;
  place-items: center;
  border-radius: 10px;
  padding: 0 5px;
  color: #fff;
  background: var(--coral);
  font-size: 11px;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.sidebar-filing {
  display: block;
  margin-top: 9px;
  text-align: center;
}

.account-button {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: 36px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 7px;
  padding: 9px;
  text-align: left;
  background: transparent;
}

.account-button:hover {
  background: #f3f6f4;
}

.account-copy {
  display: grid;
  min-width: 0;
}

.account-copy strong,
.account-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-copy strong {
  font-size: 13px;
}

.account-copy small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.user-avatar {
  display: inline-grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.user-avatar.large {
  width: 72px;
  height: 72px;
  font-size: 24px;
}

.mobile-header,
.mobile-nav {
  display: none;
}

.app-main {
  min-height: 100vh;
  margin-left: 226px;
}

.view {
  display: none;
  width: min(100%, 1420px);
  margin: 0 auto;
  padding: 42px clamp(26px, 4vw, 64px) 70px;
}

.view.active {
  display: block;
}

.page-heading {
  display: flex;
  min-height: 76px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}

.page-heading h1 {
  margin-bottom: 8px;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.12;
}

.page-subtitle {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.home-heading {
  align-items: center;
  margin-bottom: 24px;
}

.home-heading h1 {
  margin-bottom: 0;
  font-size: 30px;
}

.currency {
  display: inline-flex;
  height: 40px;
  align-items: center;
  gap: 9px;
  border: 1px solid #eadcae;
  border-radius: 8px;
  padding: 0 14px;
  background: #fffbec;
}

.coin-dot {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 3px solid #d59520;
  border-radius: 50%;
  background: #f4c34e;
  box-shadow: inset 0 0 0 2px #ffe49a;
}

.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(310px, 0.75fr);
  gap: 20px;
}

.pet-stage {
  position: relative;
  min-height: 510px;
  overflow: hidden;
  border: 1px solid #d5ddd9;
  border-radius: 8px;
  background: #eaf3f0;
}

.stage-sky {
  position: absolute;
  inset: 0 0 43% 0;
  background: #cfe8eb;
}

.sun {
  position: absolute;
  top: 44px;
  right: 65px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #f6cd69;
}

.cloud {
  position: absolute;
  width: 82px;
  height: 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
}

.cloud::before,
.cloud::after {
  position: absolute;
  bottom: 0;
  border-radius: 50%;
  background: inherit;
  content: "";
}

.cloud::before {
  left: 15px;
  width: 38px;
  height: 38px;
}

.cloud::after {
  right: 9px;
  width: 29px;
  height: 29px;
}

.cloud-one {
  top: 70px;
  left: 9%;
}

.cloud-two {
  top: 145px;
  right: 20%;
  transform: scale(0.72);
}

.stage-room {
  position: absolute;
  inset: 43% 0 0;
  border-top: 8px solid #fcf7e8;
  background: #f0d7ae;
}

.window-frame {
  position: absolute;
  left: 9%;
  bottom: 88%;
  display: grid;
  width: 135px;
  height: 112px;
  grid-template-columns: 1fr 1fr;
  border: 9px solid #fffdf8;
  background: #9cced7;
  box-shadow: 0 5px 0 rgba(70, 90, 78, 0.08);
}

.window-frame span {
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.plant {
  position: absolute;
  right: 8%;
  bottom: 34px;
  width: 70px;
  height: 105px;
  border-radius: 50% 50% 18% 18%;
  background: #529469;
}

.plant::after {
  position: absolute;
  bottom: -20px;
  left: 5px;
  width: 62px;
  height: 48px;
  border-radius: 7px 7px 22px 22px;
  background: #c9674f;
  content: "";
}

.shelf {
  position: absolute;
  right: 4%;
  bottom: 83%;
  display: flex;
  width: 126px;
  height: 10px;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  background: #9b6e4d;
}

.shelf span {
  width: 18px;
  height: 48px;
  border-radius: 3px 3px 0 0;
  background: var(--coral);
}

.shelf span:nth-child(2) {
  height: 38px;
  background: var(--blue);
}

.shelf span:nth-child(3) {
  height: 55px;
  background: var(--yellow);
}

.rug {
  position: absolute;
  left: 15%;
  right: 15%;
  bottom: 15px;
  height: 112px;
  border-radius: 50%;
  background: #e8b15a;
}

.pet-presence {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 510px;
  align-items: center;
  justify-content: center;
  padding: 45px 30px 88px;
}

.pet-bubble {
  position: absolute;
  z-index: 4;
  top: 36px;
  left: 50%;
  max-width: min(82%, 320px);
  border: 1px solid rgba(23, 37, 31, 0.08);
  border-radius: 8px;
  padding: 10px 14px;
  color: #405049;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 25px rgba(30, 54, 43, 0.09);
  font-size: 13px;
  line-height: 1.45;
  transform: translateX(-50%);
}

.pet-character {
  position: relative;
  z-index: 2;
  width: min(62%, 310px);
  aspect-ratio: 1 / 1;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  animation: pet-idle 3.4s ease-in-out infinite;
  transform-origin: center bottom;
  isolation: isolate;
}

.pet-character:focus-visible {
  outline-color: rgba(36, 107, 75, 0.48);
  outline-offset: 8px;
}

.pet-image {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 14px 32px rgba(31, 61, 47, 0.18);
  transition: filter 220ms ease, box-shadow 220ms ease;
}

.pet-character.has-pet-rig {
  animation: none;
}

.pet-presence > .pet-character.has-pet-rig {
  animation: pet-roam 8s ease-in-out infinite;
}

.has-pet-rig .pet-image {
  opacity: 0;
}

.pet-rig,
.pet-rig span {
  position: absolute;
  display: block;
}

.pet-rig {
  --fur: #e9a765;
  --fur-dark: #bd713d;
  --fur-light: #fae2ba;
  --mark: #9f5a32;
  z-index: 3;
  inset: 7% 8% 4%;
  transform-origin: 50% 88%;
  animation: rig-body-bob 2.8s ease-in-out infinite;
}

.pet-rig.variant-2 {
  --fur: #dca173;
  --fur-dark: #a9623f;
  --fur-light: #f4d9bd;
  --mark: #824c36;
}

.pet-rig.variant-3 {
  --fur: #8ea7ac;
  --fur-dark: #596f76;
  --fur-light: #dce7e6;
  --mark: #455d65;
}

.pet-rig.variant-4 {
  --fur: #e6be5c;
  --fur-dark: #aa762c;
  --fur-light: #fff0bd;
  --mark: #8c5e26;
}

.pet-dog {
  --fur: #dca463;
  --fur-dark: #a86c37;
  --fur-light: #f8ddb0;
  --mark: #80502f;
}

.pet-rabbit {
  --fur: #edf0ec;
  --fur-dark: #c8d1cf;
  --fur-light: #fff;
  --mark: #c98282;
}

.pet-fox {
  --fur: #e8813f;
  --fur-dark: #9e4d2d;
  --fur-light: #fff1d9;
  --mark: #6c3828;
}

.rig-body {
  z-index: 2;
  left: 24%;
  bottom: 13%;
  width: 54%;
  height: 48%;
  border: max(1px, 0.9vmin) solid rgba(73, 48, 28, 0.1);
  border-radius: 48% 48% 42% 42%;
  background: var(--fur);
  box-shadow: inset -10px -10px 0 rgba(82, 47, 27, 0.07), 0 12px 20px rgba(35, 48, 41, 0.14);
}

.rig-belly {
  left: 20%;
  bottom: 5%;
  width: 61%;
  height: 67%;
  border-radius: 50%;
  background: var(--fur-light);
  opacity: 0.88;
}

.rig-head {
  z-index: 5;
  top: 13%;
  left: 21%;
  width: 59%;
  height: 49%;
  border: max(1px, 0.9vmin) solid rgba(73, 48, 28, 0.1);
  border-radius: 48% 48% 44% 44%;
  background: var(--fur);
  box-shadow: inset -9px -8px 0 rgba(82, 47, 27, 0.06);
  transform-origin: 50% 78%;
  animation: rig-look 4.8s ease-in-out infinite;
}

.rig-face {
  inset: 0;
}

.rig-ear {
  --ear-angle: -13deg;
  z-index: -1;
  top: -20%;
  width: 31%;
  height: 43%;
  overflow: hidden;
  border: max(1px, 0.8vmin) solid rgba(73, 48, 28, 0.1);
  border-radius: 75% 20% 45% 30%;
  background: var(--fur);
  transform: rotate(var(--ear-angle));
  transform-origin: 50% 100%;
  animation: rig-ear-twitch 4.2s ease-in-out infinite;
}

.rig-ear > span {
  inset: 25% 24% 11%;
  border-radius: inherit;
  background: #eaa8a0;
  opacity: 0.68;
}

.rig-ear-left {
  left: 4%;
}

.rig-ear-right {
  --ear-angle: 13deg;
  right: 4%;
  border-radius: 20% 75% 30% 45%;
  animation-delay: -1.7s;
}

.pet-dog .rig-ear {
  --ear-angle: 17deg;
  top: -1%;
  left: -10%;
  height: 48%;
  border-radius: 55% 25% 70% 55%;
  background: var(--fur-dark);
}

.pet-dog .rig-ear-right {
  --ear-angle: -17deg;
  right: -10%;
  left: auto;
  border-radius: 25% 55% 55% 70%;
}

.pet-rabbit .rig-head {
  border-radius: 50% 50% 45% 45%;
}

.pet-rabbit .rig-ear {
  --ear-angle: -7deg;
  top: -62%;
  left: 18%;
  width: 23%;
  height: 78%;
  border-radius: 50% 50% 42% 42%;
}

.pet-rabbit .rig-ear-right {
  --ear-angle: 7deg;
  right: 18%;
  left: auto;
}

.pet-fox .rig-ear {
  top: -25%;
  border-radius: 80% 12% 45% 28%;
}

.rig-eye {
  top: 43%;
  width: 16%;
  height: 18%;
  overflow: hidden;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 -2px 0 rgba(59, 48, 40, 0.08);
  animation: rig-blink 5.2s linear infinite;
}

.rig-eye > span {
  top: 20%;
  left: 29%;
  width: 48%;
  height: 63%;
  border-radius: 50%;
  background: #263832;
  box-shadow: inset 0 0 0 3px #5e7e72;
}

.rig-eye > span::after {
  position: absolute;
  top: 16%;
  left: 18%;
  width: 28%;
  height: 28%;
  border-radius: 50%;
  background: #fff;
  content: "";
}

.rig-eye-left {
  left: 23%;
}

.rig-eye-right {
  right: 23%;
}

.rig-brow {
  z-index: 2;
  top: 35%;
  width: 14%;
  height: 4%;
  border-radius: 50%;
  background: var(--mark);
  opacity: 0.6;
}

.rig-brow-left {
  left: 24%;
  transform: rotate(-6deg);
}

.rig-brow-right {
  right: 24%;
  transform: rotate(6deg);
}

.rig-blush {
  top: 64%;
  width: 15%;
  height: 8%;
  border-radius: 50%;
  background: #e6857d;
  filter: blur(1px);
  opacity: 0.3;
}

.rig-blush-left {
  left: 16%;
}

.rig-blush-right {
  right: 16%;
}

.rig-muzzle {
  left: 37%;
  bottom: 13%;
  width: 27%;
  height: 25%;
  border-radius: 50%;
  background: var(--fur-light);
}

.rig-nose {
  z-index: 3;
  top: 63%;
  left: 45%;
  width: 11%;
  height: 8%;
  border-radius: 60% 60% 75% 75%;
  background: #584039;
}

.rig-mouth {
  z-index: 2;
  top: 70%;
  left: 47%;
  width: 8%;
  height: 8%;
  border-right: 2px solid #714841;
  border-bottom: 2px solid #714841;
  border-radius: 0 0 70%;
  transform: rotate(45deg);
}

.rig-growth-mark {
  top: 12%;
  left: 43%;
  width: 15%;
  height: 14%;
  border-radius: 60% 20% 60% 20%;
  background: var(--mark);
  opacity: 0;
  transform: rotate(45deg) scale(0.7);
}

.rig-aura {
  z-index: 0;
  inset: 10% 6% 4%;
  border: 2px solid rgba(242, 194, 75, 0);
  border-radius: 50%;
  opacity: 0;
}

.rig-tuft {
  z-index: 6;
  top: 7%;
  left: 43%;
  width: 16%;
  height: 13%;
  border-radius: 75% 20% 75% 20%;
  background: var(--fur-dark);
  opacity: 0;
  transform: rotate(45deg);
  transform-origin: center bottom;
}

.rig-crown {
  z-index: 7;
  top: -3%;
  left: 36%;
  width: 29%;
  height: 17%;
  opacity: 0;
  transform: translateY(7px) scale(0.8);
}

.rig-crown::before {
  position: absolute;
  inset: 24% 7% 0;
  border: 2px solid #9e6c12;
  border-radius: 2px 2px 5px 5px;
  background: #f4c84f;
  clip-path: polygon(0 0, 26% 38%, 50% 0, 74% 38%, 100% 0, 88% 100%, 12% 100%);
  content: "";
}

[data-growth-tier="2"] .rig-growth-mark,
[data-growth-tier="3"] .rig-growth-mark,
[data-growth-tier="4"] .rig-growth-mark {
  opacity: 0.42;
}

[data-growth-tier="2"] .rig-tuft,
[data-growth-tier="3"] .rig-tuft,
[data-growth-tier="4"] .rig-tuft {
  opacity: 0.72;
  animation: rig-tuft-sway 2.8s ease-in-out infinite;
}

[data-growth-tier="3"] .pet-rig,
[data-growth-tier="4"] .pet-rig {
  filter: drop-shadow(0 0 8px rgba(226, 169, 46, 0.24));
}

[data-growth-tier="3"] .rig-aura,
[data-growth-tier="4"] .rig-aura {
  border-color: rgba(242, 194, 75, 0.48);
  opacity: 1;
  animation: rig-aura-pulse 2.2s ease-in-out infinite;
}

[data-growth-tier="3"] .rig-crown,
[data-growth-tier="4"] .rig-crown {
  opacity: 0.78;
  transform: translateY(0) scale(0.86);
}

[data-growth-tier="4"] .rig-crown {
  opacity: 1;
  transform: translateY(-1px) scale(1);
  animation: rig-crown-float 2.4s ease-in-out infinite;
}

[data-growth-tier="4"] .rig-growth-mark {
  background: #f0b62f;
  box-shadow: 0 0 9px rgba(240, 182, 47, 0.8);
  opacity: 0.9;
  animation: rig-mark-glow 1.8s ease-in-out infinite;
}

.rig-tail {
  z-index: 1;
  right: 5%;
  bottom: 21%;
  width: 34%;
  height: 42%;
  border: clamp(9px, 3.6vmin, 18px) solid var(--fur-dark);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(28deg);
  transform-origin: 15% 85%;
  animation: rig-tail-wag 1.6s ease-in-out infinite;
}

.rig-tail-tip {
  top: -17%;
  right: -24%;
  width: 48%;
  height: 34%;
  border-radius: 50%;
  background: var(--fur-light);
}

.pet-rabbit .rig-tail {
  right: 4%;
  bottom: 25%;
  width: 21%;
  height: 21%;
  border: 0;
  border-radius: 50%;
  background: var(--fur-light);
  box-shadow: 0 0 0 5px rgba(201, 211, 208, 0.52);
}

.rig-leg {
  z-index: 1;
  bottom: 5%;
  width: 17%;
  height: 27%;
  border-radius: 44% 44% 38% 38%;
  background: var(--fur-dark);
  transform-origin: 50% 12%;
  animation: rig-leg-idle 2.8s ease-in-out infinite;
}

.rig-leg-back-left {
  left: 27%;
}

.rig-leg-back-right {
  right: 23%;
  animation-delay: -1.4s;
}

.rig-paw {
  z-index: 6;
  bottom: 12%;
  width: 20%;
  height: 27%;
  border: max(1px, 0.7vmin) solid rgba(73, 48, 28, 0.08);
  border-radius: 45% 45% 50% 50%;
  background: var(--fur);
  transform-origin: 50% 8%;
}

.rig-paw::after {
  position: absolute;
  right: 20%;
  bottom: 8%;
  left: 20%;
  height: 18%;
  border-radius: 50%;
  background: var(--fur-light);
  content: "";
}

.rig-paw-left {
  left: 21%;
  transform: rotate(7deg);
  animation: rig-paw-idle-left 3.1s ease-in-out infinite;
}

.rig-paw-right {
  right: 18%;
  transform: rotate(-7deg);
  animation: rig-paw-idle-right 3.1s ease-in-out -1.55s infinite;
}

[data-growth-tier="2"] .rig-body {
  height: 49%;
}

[data-growth-tier="3"] .rig-belly,
[data-growth-tier="4"] .rig-belly {
  box-shadow: inset 0 -7px 0 rgba(255, 255, 255, 0.34);
}

[data-growth-tier="3"] .rig-head,
[data-growth-tier="4"] .rig-head {
  top: 11%;
  height: 50%;
}

[data-growth-tier="4"] .rig-head {
  box-shadow: inset -9px -8px 0 rgba(82, 47, 27, 0.06), 0 0 0 3px rgba(246, 205, 105, 0.2);
}

.has-pet-rig .outfit-head {
  top: 8%;
}

.has-pet-rig .outfit-neck {
  top: 56%;
}

.has-pet-rig .outfit-prop {
  right: 1%;
  bottom: 6%;
}

.pet-character:hover .pet-image {
  box-shadow: 0 18px 38px rgba(31, 61, 47, 0.24);
}

.pet-character.is-sleeping {
  animation: pet-breathe 4.2s ease-in-out infinite;
}

.pet-character.is-sick .pet-image {
  filter: saturate(0.72);
}

.pet-character.has-pet-rig.is-sick .pet-rig {
  filter: saturate(0.58);
}

.pet-character.has-pet-rig.is-sick .rig-ear {
  animation: rig-ear-droop 2.4s ease-in-out infinite;
}

.pet-character.has-pet-rig.is-sleeping .pet-rig {
  animation: rig-sleep-breathe 4s ease-in-out infinite;
}

.pet-character.has-pet-rig.is-sleeping .rig-eye {
  transform: scaleY(0.12);
}

.outfit-layer {
  position: absolute;
  z-index: 4;
  display: grid;
  place-items: center;
  pointer-events: none;
  transform-origin: center;
}

.outfit-layer:empty {
  display: none;
}

.outfit-layer svg {
  width: 55%;
  height: 55%;
}

.outfit-head {
  top: 5%;
  left: 50%;
  width: 31%;
  height: 20%;
  border: 2px solid rgba(255, 255, 255, 0.76);
  border-radius: 50% 50% 30% 30%;
  color: #fff;
  background: #3f8a62;
  box-shadow: 0 7px 13px rgba(25, 49, 38, 0.22);
  transform: translateX(-50%) rotate(-4deg);
}

.outfit-head.wearing-round-glasses {
  top: 31%;
  width: 36%;
  height: 14%;
  border: 0;
  color: #183f62;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: none;
}

.outfit-head.wearing-star-crown {
  top: 2%;
  color: #79510a;
  background: #f3bf3f;
}

.outfit-neck {
  top: 57%;
  left: 50%;
  width: 37%;
  height: 13%;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 45% 45% 55% 55%;
  color: #fff;
  background: var(--coral);
  box-shadow: 0 5px 11px rgba(25, 49, 38, 0.18);
  transform: translateX(-50%);
}

.outfit-neck.wearing-school-bow {
  width: 26%;
  color: #fff;
  background: var(--blue);
  transform: translateX(-50%) rotate(2deg);
}

.outfit-neck.wearing-travel-badge {
  left: 60%;
  width: 18%;
  height: 18%;
  border-radius: 50%;
  color: #6b4807;
  background: #f3c450;
}

.outfit-prop {
  right: -1%;
  bottom: 7%;
  width: 27%;
  height: 27%;
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  color: #fff;
  background: var(--coral);
  box-shadow: 0 7px 13px rgba(25, 49, 38, 0.2);
  transform: rotate(8deg);
}

.outfit-prop.wearing-story-book {
  border-radius: 7px;
  background: var(--blue);
}

.outfit-prop.wearing-travel-pack {
  border-radius: 8px;
  background: var(--green);
}

.pet-effects {
  position: absolute;
  z-index: 7;
  inset: -8%;
  pointer-events: none;
}

.pet-effects span {
  position: absolute;
  top: 42%;
  left: calc(13% + var(--effect-index) * 34%);
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: var(--coral);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 7px 18px rgba(28, 54, 42, 0.18);
  opacity: 0;
}

.pet-effects.visible span {
  animation: effect-rise 1.25s ease-out calc(var(--effect-index) * 90ms);
}

.pet-effects svg {
  width: 18px;
}

.effect-sleep span {
  color: var(--blue);
}

.effect-feed span {
  color: #b7523c;
}

.action-caption {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 90px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
}

.action-caption:not(:empty) {
  animation: caption-rise 1.2s ease-out;
}

.pet-character.action-feed {
  animation: pet-nod 720ms ease;
}

.pet-character.action-play,
.pet-character.action-explore {
  animation: pet-hop 760ms ease;
}

.pet-character.action-interact,
.pet-character.is-previewing {
  animation: pet-wiggle 620ms ease;
}

.pet-character.action-sleep {
  animation: pet-curl 1.5s ease;
}

.pet-character.action-heal {
  animation: pet-shine 900ms ease;
}

.pet-character.action-think {
  animation: pet-think 820ms ease-in-out;
}

.pet-character.action-celebrate {
  animation: pet-celebrate 920ms ease-out;
}

.pet-character.action-walk {
  animation: pet-walk-in-place 900ms ease-in-out;
}

.pet-character.action-spin {
  animation: pet-spin 1100ms cubic-bezier(0.35, 0.7, 0.2, 1);
}

.pet-character.has-pet-rig.action-feed,
.pet-character.has-pet-rig.action-play,
.pet-character.has-pet-rig.action-explore,
.pet-character.has-pet-rig.action-interact,
.pet-character.has-pet-rig.action-sleep,
.pet-character.has-pet-rig.action-heal,
.pet-character.has-pet-rig.action-think,
.pet-character.has-pet-rig.action-celebrate,
.pet-character.has-pet-rig.action-walk,
.pet-character.has-pet-rig.action-spin,
.pet-character.has-pet-rig.is-previewing {
  animation: none;
}

.has-pet-rig.action-feed .rig-head {
  animation: rig-head-nod 650ms ease-in-out;
}

.has-pet-rig.action-feed .rig-mouth {
  animation: rig-chew 180ms ease-in-out 4;
}

.has-pet-rig.action-play .pet-rig,
.has-pet-rig.action-explore .pet-rig {
  animation: rig-hop 720ms ease-out;
}

.has-pet-rig.action-play .rig-tail,
.has-pet-rig.action-explore .rig-tail,
.has-pet-rig.action-celebrate .rig-tail {
  animation: rig-tail-fast 260ms ease-in-out 4;
}

.has-pet-rig.action-interact .rig-head,
.has-pet-rig.is-previewing .rig-head,
.has-pet-rig.action-think .rig-head {
  animation: rig-head-tilt 760ms ease-in-out;
}

.has-pet-rig.action-interact .rig-paw-right,
.has-pet-rig.is-previewing .rig-paw-right {
  animation: rig-paw-wave 240ms ease-in-out 4;
}

.has-pet-rig.action-sleep .pet-rig {
  animation: rig-sleep 1.5s ease-in-out both;
}

.has-pet-rig.action-sleep .rig-eye {
  transform: scaleY(0.12);
}

.has-pet-rig.action-heal .pet-rig {
  animation: rig-heal 900ms ease-in-out;
}

.has-pet-rig.action-celebrate .pet-rig {
  animation: rig-celebrate 900ms ease-out;
}

.has-pet-rig.action-celebrate .rig-paw-left {
  animation: rig-paw-left-up 900ms ease-out;
}

.has-pet-rig.action-celebrate .rig-paw-right {
  animation: rig-paw-right-up 900ms ease-out;
}

.has-pet-rig.action-walk .pet-rig {
  animation: rig-walk-bob 280ms ease-in-out 4;
}

.has-pet-rig.action-walk .rig-leg-back-left,
.has-pet-rig.action-walk .rig-paw-right {
  animation: rig-step-forward 280ms ease-in-out 4;
}

.has-pet-rig.action-walk .rig-leg-back-right,
.has-pet-rig.action-walk .rig-paw-left {
  animation: rig-step-back 280ms ease-in-out 4;
}

.has-pet-rig.action-spin .pet-rig {
  animation: rig-spin 1050ms cubic-bezier(0.35, 0.7, 0.2, 1);
}

.has-pet-rig.action-spin .rig-tail {
  animation: rig-tail-fast 180ms ease-in-out 6;
}

.scene-pet-character.is-walking .pet-rig {
  animation: rig-walk-bob 300ms ease-in-out 3;
}

.scene-pet-character.is-walking .rig-leg-back-left,
.scene-pet-character.is-walking .rig-paw-right {
  animation: rig-step-forward 300ms ease-in-out 3;
}

.scene-pet-character.is-walking .rig-leg-back-right,
.scene-pet-character.is-walking .rig-paw-left {
  animation: rig-step-back 300ms ease-in-out 3;
}

.has-pet-rig .outfit-head:not(:empty) {
  animation: outfit-head-follow 2.8s ease-in-out infinite;
}

.has-pet-rig .outfit-neck:not(:empty) {
  animation: outfit-neck-follow 2.8s ease-in-out infinite;
}

.has-pet-rig .outfit-prop:not(:empty) {
  animation: outfit-prop-swing 1.6s ease-in-out infinite;
}

.has-pet-rig.action-celebrate .outfit-head:not(:empty),
.has-pet-rig.action-play .outfit-head:not(:empty) {
  animation: outfit-head-hop 900ms ease-out;
}

@keyframes pet-roam {
  0%, 12%, 100% { transform: translateX(-22px); }
  44%, 58% { transform: translateX(22px); }
}

@keyframes pet-idle {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-7px) rotate(1deg); }
}

@keyframes pet-breathe {
  0%, 100% { transform: translateY(2px) scale(1); }
  50% { transform: translateY(5px) scale(1.018, 0.985); }
}

@keyframes pet-hop {
  0%, 100% { transform: translateY(0) scale(1); }
  34% { transform: translateY(-27px) rotate(-4deg) scale(1.04); }
  68% { transform: translateY(4px) rotate(3deg) scale(0.98); }
}

@keyframes pet-nod {
  0%, 100% { transform: rotate(0); }
  35% { transform: translateY(7px) rotate(-3deg); }
  65% { transform: translateY(2px) rotate(3deg); }
}

@keyframes pet-wiggle {
  0%, 100% { transform: rotate(0); }
  25% { transform: translateY(-8px) rotate(-5deg); }
  55% { transform: translateY(-5px) rotate(5deg); }
  78% { transform: rotate(-2deg); }
}

@keyframes pet-curl {
  0% { transform: scale(1); }
  55%, 100% { transform: translateY(8px) scale(1.04, 0.94); }
}

@keyframes pet-shine {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  45% { transform: translateY(-12px) scale(1.06); filter: brightness(1.12); }
}

@keyframes pet-think {
  0%, 100% { transform: translateX(0) rotate(0); }
  30% { transform: translateX(-5px) rotate(-3deg); }
  65% { transform: translateX(5px) rotate(3deg); }
}

@keyframes pet-celebrate {
  0%, 100% { transform: translateY(0) rotate(0) scale(1); }
  28% { transform: translateY(-25px) rotate(-6deg) scale(1.05); }
  56% { transform: translateY(-8px) rotate(6deg) scale(1.03); }
  78% { transform: translateY(-15px) rotate(-2deg) scale(1.04); }
}

@keyframes pet-walk-in-place {
  0%, 100% { transform: translateX(0); }
  35% { transform: translateX(-13px); }
  70% { transform: translateX(13px); }
}

@keyframes pet-spin {
  0% { transform: rotate(0) scale(1); }
  42% { transform: rotate(185deg) scale(0.9, 1.04); }
  78% { transform: rotate(360deg) scale(1.03); }
  100% { transform: rotate(360deg) scale(1); }
}

@keyframes effect-rise {
  0% { opacity: 0; transform: translateY(12px) scale(0.6); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-84px) scale(1.05) rotate(9deg); }
}

@keyframes caption-rise {
  0% { opacity: 0; transform: translate(-50%, 8px); }
  20%, 70% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, -8px); }
}

@keyframes rig-body-bob {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-2.5%) scale(1.01, 0.99); }
}

@keyframes rig-look {
  0%, 36%, 100% { transform: rotate(0); }
  43%, 57% { transform: rotate(-4deg) translateX(-1%); }
  64%, 78% { transform: rotate(3deg) translateX(1%); }
}

@keyframes rig-ear-twitch {
  0%, 78%, 100% { transform: rotate(var(--ear-angle)); }
  84% { transform: rotate(calc(var(--ear-angle) - 8deg)); }
  90% { transform: rotate(calc(var(--ear-angle) + 5deg)); }
}

@keyframes rig-ear-droop {
  0%, 100% { transform: rotate(calc(var(--ear-angle) + 9deg)); }
  50% { transform: rotate(calc(var(--ear-angle) + 14deg)); }
}

@keyframes rig-blink {
  0%, 44%, 48%, 92%, 96%, 100% { transform: scaleY(1); }
  46%, 94% { transform: scaleY(0.08); }
}

@keyframes rig-tail-wag {
  0%, 100% { transform: rotate(20deg); }
  50% { transform: rotate(42deg); }
}

@keyframes rig-tail-fast {
  0%, 100% { transform: rotate(15deg); }
  50% { transform: rotate(50deg); }
}

@keyframes rig-mark-glow {
  0%, 100% { transform: rotate(45deg) scale(0.72); opacity: 0.72; }
  50% { transform: rotate(45deg) scale(1); opacity: 1; }
}

@keyframes rig-tuft-sway {
  0%, 100% { transform: rotate(40deg); }
  50% { transform: rotate(51deg) translateY(-5%); }
}

@keyframes rig-aura-pulse {
  0%, 100% { opacity: 0.38; transform: scale(0.94); }
  50% { opacity: 0.78; transform: scale(1.04); }
}

@keyframes rig-crown-float {
  0%, 100% { transform: translateY(-1px) rotate(-2deg); }
  50% { transform: translateY(-5px) rotate(2deg); }
}

@keyframes rig-head-nod {
  0%, 100% { transform: translateY(0) rotate(0); }
  40% { transform: translateY(9%) rotate(-3deg); }
  70% { transform: translateY(3%) rotate(3deg); }
}

@keyframes rig-chew {
  0%, 100% { transform: rotate(45deg) scale(1); }
  50% { transform: rotate(45deg) scale(1.35, 0.65); }
}

@keyframes rig-hop {
  0%, 100% { transform: translateY(0) rotate(0); }
  35% { transform: translateY(-15%) rotate(-4deg); }
  65% { transform: translateY(2%) rotate(3deg) scale(1.03, 0.96); }
}

@keyframes rig-head-tilt {
  0%, 100% { transform: rotate(0); }
  35%, 75% { transform: rotate(-12deg) translate(-2%, 2%); }
}

@keyframes rig-paw-wave {
  0%, 100% { transform: rotate(-7deg); }
  50% { transform: translateY(-38%) rotate(-28deg); }
}

@keyframes rig-sleep {
  0% { transform: translateY(0) rotate(0) scale(1); }
  100% { transform: translateY(8%) rotate(-7deg) scale(1.04, 0.92); }
}

@keyframes rig-sleep-breathe {
  0%, 100% { transform: translateY(7%) rotate(-6deg) scale(1.04, 0.92); }
  50% { transform: translateY(8%) rotate(-7deg) scale(1.06, 0.89); }
}

@keyframes rig-heal {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  45% { transform: translateY(-7%) scale(1.08); filter: brightness(1.18); }
}

@keyframes rig-celebrate {
  0%, 100% { transform: translateY(0) rotate(0); }
  30% { transform: translateY(-17%) rotate(-7deg); }
  60% { transform: translateY(-6%) rotate(7deg); }
  80% { transform: translateY(-12%) rotate(-2deg); }
}

@keyframes rig-paw-left-up {
  0%, 100% { transform: rotate(7deg); }
  35%, 72% { transform: translate(-12%, -42%) rotate(31deg); }
}

@keyframes rig-paw-right-up {
  0%, 100% { transform: rotate(-7deg); }
  35%, 72% { transform: translate(12%, -42%) rotate(-31deg); }
}

@keyframes rig-walk-bob {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-5%) rotate(2deg); }
}

@keyframes rig-step-forward {
  0%, 100% { transform: rotate(-8deg); }
  50% { transform: translateY(-12%) rotate(16deg); }
}

@keyframes rig-step-back {
  0%, 100% { transform: rotate(8deg); }
  50% { transform: translateY(-8%) rotate(-15deg); }
}

@keyframes rig-leg-idle {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(3%) rotate(2deg); }
}

@keyframes rig-paw-idle-left {
  0%, 100% { transform: rotate(7deg); }
  48% { transform: translateY(-2%) rotate(5deg); }
}

@keyframes rig-paw-idle-right {
  0%, 100% { transform: rotate(-7deg); }
  48% { transform: translateY(-2%) rotate(-5deg); }
}

@keyframes rig-spin {
  0% { transform: translateY(0) rotateY(0) scale(1); }
  35% { transform: translateY(-8%) rotateY(160deg) scale(0.94, 1.04); }
  70% { transform: translateY(-4%) rotateY(320deg) scale(1.03); }
  100% { transform: translateY(0) rotateY(360deg) scale(1); }
}

@keyframes outfit-head-follow {
  0%, 100% { transform: translateX(-50%) rotate(-4deg) translateY(0); }
  50% { transform: translateX(-50%) rotate(-2deg) translateY(-5%); }
}

@keyframes outfit-head-hop {
  0%, 100% { transform: translateX(-50%) rotate(-4deg) translateY(0); }
  42% { transform: translateX(-50%) rotate(8deg) translateY(-22%); }
}

@keyframes outfit-neck-follow {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-4%) rotate(1deg); }
}

@keyframes outfit-prop-swing {
  0%, 100% { transform: rotate(5deg); }
  50% { transform: rotate(13deg) translateY(-3%); }
}

.pet-shadow {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 88px;
  width: 210px;
  height: 32px;
  border-radius: 50%;
  background: rgba(77, 78, 55, 0.16);
  transform: translateX(-50%);
  animation: shadow-breathe 3.4s ease-in-out infinite;
}

@keyframes shadow-breathe {
  0%, 100% { transform: translateX(-50%) scaleX(1); opacity: 0.8; }
  50% { transform: translateX(-50%) scaleX(0.88); opacity: 0.55; }
}

.pet-identity {
  position: absolute;
  z-index: 4;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  padding: 10px 12px 10px 16px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
}

.pet-identity h2 {
  margin-bottom: 3px;
  font-size: 19px;
}

.pet-identity p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.stage-outfit-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  border: 1px solid #c9d9d0;
  border-radius: 7px;
  padding: 0 12px;
  color: var(--green-dark);
  background: #edf5f0;
  font-size: 12px;
  font-weight: 800;
}

.stage-outfit-button:hover {
  border-color: var(--green);
  background: var(--green-soft);
}

.stage-outfit-button svg {
  width: 16px;
}

.dot-separator {
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 7px 3px;
  border-radius: 50%;
  background: #9ba7a1;
}

.icon-button {
  display: inline-grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: #fff;
}

.icon-button.soft {
  border-color: transparent;
  background: #eff4f1;
}

.care-panel {
  display: flex;
  min-height: 510px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--paper);
}

.panel-heading,
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.panel-heading {
  align-items: flex-start;
  margin-bottom: 26px;
}

.panel-heading h2,
.section-heading h2 {
  margin-bottom: 0;
  font-size: 20px;
}

.status-pill {
  flex: 0 0 auto;
  border-radius: 16px;
  padding: 6px 9px;
  color: var(--green-dark);
  background: var(--green-soft);
  font-size: 11px;
  font-weight: 800;
}

.status-pill.warning {
  color: #8b5b07;
  background: var(--yellow-soft);
}

.status-pill.danger {
  color: #9c3434;
  background: #f7dddd;
}

.status-list {
  display: grid;
  gap: 18px;
}

.status-change-summary {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  margin: -10px 0 -2px;
  border: 1px solid #b9d8c7;
  border-radius: 7px;
  padding: 8px 10px;
  color: var(--green-dark);
  background: #eef8f2;
  animation: status-summary-enter 420ms ease-out both;
}

.status-change-summary > svg {
  width: 18px;
  justify-self: center;
}

.status-change-summary > span {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.status-change-summary strong,
.status-change-summary small {
  overflow-wrap: anywhere;
}

.status-change-summary strong {
  font-size: 11px;
}

.status-change-summary small {
  color: #537164;
  font-size: 9px;
  line-height: 1.35;
}

.status-item {
  display: grid;
  grid-template-columns: 30px 1fr 34px;
  align-items: center;
  gap: 10px;
}

.status-item > i {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 7px;
  color: var(--green);
  background: #edf4f0;
}

.status-item svg {
  width: 16px;
  height: 16px;
}

.status-main {
  min-width: 0;
}

.status-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 700;
}

.status-label em {
  border-radius: 10px;
  padding: 1px 6px;
  color: #66756e;
  background: #eef2f0;
  font-size: 9px;
  font-style: normal;
  animation: status-delta-pop 420ms ease-out both;
}

.status-label em.increase {
  color: #17633f;
  background: #dff1e7;
}

.status-label em.decrease {
  color: #a14535;
  background: #fae2dc;
}

.status-item > strong {
  color: var(--ink);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.progress-track {
  width: 100%;
  height: 9px;
  overflow: hidden;
  border: 1px solid #d6dfda;
  border-radius: 5px;
  background: #eef2f0;
  box-shadow: inset 0 1px 2px rgba(26, 48, 37, 0.08);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #2d805b;
  transition: width 350ms ease;
}

.progress-track.coral span {
  background: #d96852;
}

.progress-track.blue span {
  background: #397fc1;
}

.progress-track.yellow span {
  background: #d89b19;
}

.progress-track span.is-changing {
  transition-duration: 1.15s;
  animation: status-progress-change 1.15s cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.status-item.increase > i {
  animation: status-icon-rise 620ms ease-out both;
}

.status-item.decrease > i {
  animation: status-icon-fall 620ms ease-out both;
}

.care-actions {
  display: grid;
  margin-top: auto;
  padding-top: 28px;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.care-action {
  display: grid;
  min-width: 0;
  min-height: 100px;
  place-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 4px;
  background: #fff;
}

.care-action:hover {
  border-color: #bac7c0;
  transform: translateY(-1px);
}

.care-action > span:nth-child(2) {
  font-size: 12px;
  font-weight: 750;
}

.care-action small {
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}

.action-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 7px;
}

.action-icon svg {
  width: 17px;
}

.action-icon.peach { color: #b94e37; background: var(--coral-soft); }
.action-icon.green { color: var(--green); background: var(--green-soft); }
.action-icon.blue { color: var(--blue); background: var(--blue-soft); }
.action-icon.yellow { color: #9a6c0b; background: var(--yellow-soft); }

#heal-button {
  margin-top: 12px;
}

.home-strip {
  margin-top: 36px;
}

.home-strip .section-heading {
  margin-bottom: 18px;
}

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

.mini-scene,
.scene-card,
.skill-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.mini-scene {
  display: grid;
  min-height: 118px;
  grid-template-columns: 78px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 13px;
  padding: 12px;
  text-align: left;
}

.mini-scene-media {
  position: relative;
  display: block;
  width: 78px;
  height: 82px;
  overflow: hidden;
  border-radius: 7px;
  background: var(--green-soft);
}

.mini-scene-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-scene-media .scene-symbol {
  position: absolute;
  bottom: 6px;
  left: 6px;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 4px 12px rgba(19, 43, 32, 0.2);
}

.mini-scene-media .scene-symbol svg {
  width: 14px;
  height: 14px;
}

.mini-scene:hover,
.scene-card:hover,
.skill-card:hover {
  border-color: #afbeb6;
  box-shadow: 0 9px 25px rgba(35, 62, 49, 0.07);
}

.scene-symbol {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 8px;
}

.scene-symbol svg {
  width: 25px;
  height: 25px;
}

.scene-symbol.coral { color: #b84a34; background: var(--coral-soft); }
.scene-symbol.blue { color: #2b67a9; background: var(--blue-soft); }
.scene-symbol.yellow { color: #8f6206; background: var(--yellow-soft); }
.scene-symbol.green { color: var(--green); background: var(--green-soft); }
.scene-symbol.red { color: #aa3838; background: #f7dddd; }
.scene-symbol.violet { color: #62489f; background: #ebe5f7; }
.scene-symbol.cyan { color: #227986; background: #ddf1f2; }
.scene-symbol.orange { color: #a65c21; background: #f9e4d3; }
.scene-symbol.pink { color: #a14569; background: #f6dfE8; }

.mini-scene strong {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
}

.mini-scene small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.mini-scene > svg {
  width: 18px;
  color: #8b9892;
}

.level-summary {
  display: grid;
  min-width: 132px;
  grid-template-columns: 1fr auto;
  border-left: 3px solid var(--coral);
  padding-left: 15px;
}

.level-summary span {
  grid-column: 1 / -1;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 11px;
}

.level-summary strong {
  font-size: 30px;
}

.level-summary small {
  align-self: end;
  margin-bottom: 5px;
  color: var(--muted);
}

.filter-row {
  display: flex;
  overflow-x: auto;
  margin: -5px 0 23px;
  padding: 5px 0;
  gap: 8px;
  scrollbar-width: none;
}

.filter-row::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  height: 36px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0 15px;
  color: var(--muted);
  background: #fff;
  font-size: 12px;
  font-weight: 700;
}

.filter-chip.active {
  border-color: var(--ink);
  color: #fff;
  background: var(--ink);
}

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

.skill-card {
  display: grid;
  min-height: 232px;
  grid-template-rows: 120px minmax(0, 1fr);
  padding: 0;
  text-align: left;
}

.skill-card-media {
  position: relative;
  display: block;
  overflow: hidden;
  background: #e2ebe6;
}

.skill-card-media > .generated-visual {
  position: absolute;
  inset: 0;
}

.skill-card-media::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 34, 25, 0.02), rgba(15, 34, 25, 0.34));
  content: "";
  pointer-events: none;
}

.skill-card .skill-icon {
  position: absolute;
  z-index: 3;
  bottom: 10px;
  left: 12px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  color: var(--green-dark);
  background: rgba(238, 249, 242, 0.92);
  box-shadow: 0 5px 14px rgba(18, 40, 30, 0.2);
}

.skill-card .skill-icon svg {
  width: 17px;
}

.skill-card .skill-level {
  position: absolute;
  z-index: 3;
  top: 10px;
  right: 10px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 11px;
  padding: 4px 7px;
  color: #fff;
  background: rgba(18, 43, 31, 0.68);
  font-size: 11px;
  font-weight: 800;
  backdrop-filter: blur(5px);
}

.skill-card-copy {
  display: block;
  padding: 14px 16px 15px;
}

.skill-card h3 {
  margin: 0 0 11px;
  font-size: 15px;
}

.skill-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
}

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

.scene-card {
  display: grid;
  min-height: 350px;
  grid-template-rows: 166px minmax(0, 1fr);
  padding: 0;
  text-align: left;
}

.scene-card-media {
  position: relative;
  display: block;
  min-height: 166px;
  overflow: hidden;
  background: #dfeae4;
}

.scene-card-media::after {
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(to bottom, transparent, rgba(17, 32, 25, 0.48));
  content: "";
}

.scene-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.scene-card:hover .scene-card-media img {
  transform: scale(1.035);
}

.scene-card-index {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 5px;
  padding: 4px 7px;
  color: #fff;
  background: rgba(16, 34, 25, 0.58);
  font-size: 10px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.scene-card-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 17px 18px 18px;
}

.scene-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 13px;
}

.scene-card .scene-symbol {
  width: 38px;
  height: 38px;
}

.scene-card .scene-symbol svg {
  width: 19px;
  height: 19px;
}

.scene-card .arrow-box {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 7px;
  color: var(--muted);
  background: #f2f5f3;
}

.scene-card .arrow-box svg {
  width: 16px;
}

.scene-card h2 {
  margin: 0 0 7px;
  font-size: 18px;
}

.scene-card p {
  min-height: 38px;
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.scene-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: auto;
}

.scene-card-tags small {
  border-radius: 4px;
  padding: 4px 7px;
  color: #53635b;
  background: #f0f4f2;
  font-size: 9px;
  font-weight: 700;
}

.friend-search {
  display: grid;
  width: min(100%, 650px);
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 6px 6px 15px;
  background: #fff;
}

.friend-search > svg {
  width: 19px;
  color: var(--muted);
}

.friend-search input {
  height: 38px;
  border: 0;
  padding: 0;
  box-shadow: none;
}

.friend-search input:focus {
  box-shadow: none;
}

.content-section {
  margin-top: 38px;
}

.content-section > .section-heading {
  margin-bottom: 16px;
}

.count-label {
  color: var(--muted);
  font-size: 12px;
}

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

.friend-item {
  display: grid;
  min-width: 0;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.friend-pet-image {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--green-soft);
}

.friend-info {
  min-width: 0;
}

.friend-info strong,
.friend-info span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.friend-info strong {
  margin-bottom: 4px;
  font-size: 14px;
}

.friend-info span {
  color: var(--muted);
  font-size: 11px;
}

.friend-item .secondary-button,
.friend-item .primary-button {
  min-height: 36px;
  padding: 0 12px;
  font-size: 12px;
}

.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed #c9d2cd;
  border-radius: 8px;
  padding: 36px 20px;
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.45);
}

.empty-state svg {
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
  color: #89968f;
}

.empty-state p {
  margin: 0;
  font-size: 13px;
}

.growth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 18px;
}

.growth-overview,
.ability-summary,
.settings-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: #fff;
}

.growth-overview {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: center;
  gap: 26px;
}

.growth-level {
  display: grid;
  min-height: 150px;
  place-content: center;
  border-right: 1px solid var(--line);
}

.growth-level > span {
  color: var(--muted);
  font-size: 11px;
}

.growth-level strong {
  margin: 5px 0;
  font-size: 34px;
}

.growth-level p {
  margin: 0;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.xp-block {
  min-width: 0;
}

.xp-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 12px;
}

.xp-row span {
  color: var(--muted);
}

.progress-track.large {
  height: 10px;
}

.milestones {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.milestone {
  display: grid;
  min-height: 50px;
  place-items: center;
  border-radius: 7px;
  color: #98a29d;
  background: #f1f4f2;
  font-size: 13px;
  font-weight: 800;
}

.milestone small {
  font-size: 9px;
  font-weight: 600;
}

.milestone.reached {
  color: var(--green-dark);
  background: var(--green-soft);
}

.ability-summary .section-heading {
  margin-bottom: 18px;
}

.top-skills {
  display: grid;
  gap: 14px;
}

.top-skill {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.top-skill-index {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 7px;
  color: #75520c;
  background: var(--yellow-soft);
  font-size: 11px;
  font-weight: 800;
}

.top-skill strong {
  font-size: 13px;
}

.top-skill small {
  color: var(--muted);
  font-size: 11px;
}

.timeline-section {
  margin-top: 36px;
}

.timeline-section .section-heading {
  margin-bottom: 18px;
}

.timeline {
  position: relative;
  display: grid;
  gap: 0;
}

.timeline-item {
  position: relative;
  display: grid;
  min-height: 90px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 14px;
  padding: 10px 0 20px;
}

.timeline-item::before {
  position: absolute;
  top: 48px;
  bottom: -4px;
  left: 20px;
  width: 1px;
  background: var(--line);
  content: "";
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-icon {
  z-index: 1;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 4px solid var(--canvas);
  border-radius: 50%;
  color: var(--green);
  background: var(--green-soft);
}

.timeline-icon svg {
  width: 17px;
}

.timeline-copy h3 {
  margin: 3px 0 6px;
  font-size: 14px;
}

.timeline-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.timeline time {
  padding-top: 5px;
  color: #8a9690;
  font-size: 10px;
  white-space: nowrap;
}

.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.profile-preview,
.settings-pet {
  display: flex;
  min-height: 110px;
  align-items: center;
  gap: 18px;
}

.profile-preview h2,
.settings-pet h2 {
  margin-bottom: 5px;
  font-size: 20px;
}

.profile-preview p,
.settings-pet p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.settings-pet img {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--green-soft);
}

.account-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding: 28px 0;
}

.account-zone h2 {
  margin-bottom: 6px;
  font-size: 17px;
}

.account-zone p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.settings-filing {
  display: none;
  padding: 0 0 8px;
  text-align: center;
}

.modal {
  width: min(calc(100% - 30px), 570px);
  max-height: min(90vh, 760px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  color: var(--ink);
  background: #fff;
  box-shadow: var(--shadow);
}

.modal::backdrop {
  background: rgba(16, 30, 24, 0.58);
  backdrop-filter: blur(4px);
}

.modal > form {
  padding: 26px;
}

.compact-modal {
  width: min(calc(100% - 30px), 460px);
}

.modal-heading {
  margin-bottom: 24px;
}

.modal-heading.centered {
  text-align: center;
}

.modal-heading h2,
.modal-topbar h2 {
  margin-bottom: 7px;
  font-size: 25px;
}

.modal-heading > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.modal-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

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

.narration-toggle,
.listen-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #b9cbc2;
  color: var(--green-dark);
  background: #fff;
}

.narration-toggle {
  min-height: 38px;
  gap: 7px;
  border-radius: 7px;
  padding: 0 11px;
  font-size: 10px;
  font-weight: 800;
}

.narration-toggle[aria-pressed="true"] {
  border-color: #7eaf94;
  background: var(--green-soft);
}

.narration-toggle svg,
.listen-button svg {
  width: 16px;
  height: 16px;
}

.listen-button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  padding: 0;
}

.listen-button:hover,
.listen-button:focus-visible,
.listen-button.speaking {
  border-color: var(--green);
  background: var(--green-soft);
}

.listen-button.speaking {
  animation: listen-pulse 1s ease-in-out infinite;
}

.scene-modal {
  width: min(calc(100% - 30px), 900px);
  max-height: min(94vh, 920px);
}

.scene-modal > form {
  padding: 24px 28px 28px;
}

.scene-modal .modal-topbar {
  margin-bottom: 18px;
}

.expedition-progress {
  display: grid;
  min-height: 74px;
  grid-template-columns: minmax(150px, 1fr) minmax(170px, 0.8fr) auto auto;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 15px;
  background: #f8faf9;
}

.round-event {
  display: grid;
  min-width: 0;
  grid-template-columns: 29px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  border-left: 1px solid var(--line);
  padding-left: 13px;
}

.round-event > i {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 50%;
  color: #79550c;
  background: var(--yellow-soft);
}

.round-event svg {
  width: 14px;
}

.round-event > span {
  min-width: 0;
}

.round-event strong,
.round-event small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.round-event strong {
  font-size: 10px;
}

.round-event small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.round-event > b {
  border-radius: 10px;
  padding: 4px 6px;
  color: #76530e;
  background: var(--yellow-soft);
  font-size: 8px;
  white-space: nowrap;
}

.round-event.complete > i {
  color: #fff;
  background: var(--green);
}

.round-event.complete > b {
  color: #fff;
  background: var(--green);
}

.expedition-copy {
  display: grid;
  min-width: 0;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 2px 9px;
}

.expedition-copy > span {
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
}

.expedition-copy > strong {
  font-size: 15px;
}

.expedition-copy > small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 10px;
}

.expedition-route {
  display: flex;
  align-items: center;
}

.expedition-route > span {
  position: relative;
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid #c9d5cf;
  border-radius: 50%;
  color: var(--muted);
  background: #fff;
  font-size: 10px;
  font-weight: 850;
}

.expedition-route > span + span {
  margin-left: 22px;
}

.expedition-route > span + span::before {
  position: absolute;
  top: 50%;
  right: 100%;
  width: 23px;
  height: 2px;
  background: #c9d5cf;
  content: "";
}

.expedition-route > span.active {
  border-color: var(--yellow);
  color: #704b04;
  background: var(--yellow-soft);
  box-shadow: 0 0 0 4px rgba(226, 169, 46, 0.12);
}

.expedition-route > span.complete {
  border-color: var(--green);
  color: #fff;
  background: var(--green);
}

.expedition-route svg {
  width: 14px;
}

.replay-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}

.replay-label svg {
  width: 14px;
}

.scene-hero {
  --pet-x: 14%;
  position: relative;
  min-height: 350px;
  overflow: hidden;
  margin: 0 -28px;
  background: #cdded5;
}

.scene-backdrop,
.scene-hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.scene-backdrop {
  object-fit: cover;
  animation: scene-backdrop-breathe 18s ease-in-out infinite alternate;
}

.scene-hero-shade {
  background: linear-gradient(to top, rgba(13, 28, 21, 0.85), rgba(13, 28, 21, 0.02) 68%);
}

.scene-world {
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
}

.world-status {
  position: absolute;
  top: 15px;
  left: 18px;
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 5px;
  padding: 5px 9px;
  color: #fff;
  background: rgba(17, 40, 29, 0.7);
  font-size: 10px;
  font-weight: 750;
  backdrop-filter: blur(8px);
}

.world-status > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7de0a6;
  box-shadow: 0 0 0 3px rgba(125, 224, 166, 0.18);
  animation: world-status-pulse 1.7s ease-in-out infinite;
}

.world-discovery-meter {
  position: absolute;
  z-index: 7;
  top: 15px;
  right: 18px;
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 5px;
  padding: 5px 9px;
  color: #fff;
  background: rgba(17, 40, 29, 0.7);
  font-size: 10px;
  font-weight: 750;
  backdrop-filter: blur(8px);
}

.world-discovery-meter.complete {
  border-color: #f5d36f;
  color: #fff4bd;
  background: rgba(94, 68, 12, 0.78);
}

.world-discovery-meter svg {
  width: 14px;
}

.world-route-path {
  position: absolute;
  z-index: 2;
  top: 101px;
  right: 14%;
  left: 14%;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 1px 7px rgba(10, 25, 18, 0.24);
}

.world-route-path::before {
  position: absolute;
  inset: -4px 0;
  border-top: 1px dashed rgba(35, 77, 56, 0.5);
  content: "";
}

.world-route-path > span {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: #7c8d85;
  transform: translate(-50%, -50%);
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.world-route-path > span:nth-child(1) { left: 0; }
.world-route-path > span:nth-child(2) { left: 50%; }
.world-route-path > span:nth-child(3) { left: 100%; }

.world-route-path > span.active {
  background: var(--yellow);
  box-shadow: 0 0 0 5px rgba(245, 211, 111, 0.28);
  transform: translate(-50%, -50%) scale(1.15);
}

.world-route-path > span.complete {
  background: #51aa77;
}

.world-variant,
.world-variant > span {
  position: absolute;
  pointer-events: none;
}

.world-variant {
  z-index: 2;
  inset: 0;
  overflow: hidden;
}

.world-variant > span {
  display: block;
}

.effect-sunbeam > span,
.effect-lamp > span,
.effect-lights > span {
  top: -22%;
  width: 10%;
  height: 82%;
  background: linear-gradient(180deg, rgba(255, 242, 157, 0.5), rgba(255, 242, 157, 0));
  opacity: 0.7;
  transform: rotate(16deg);
  animation: variant-beam 5.6s ease-in-out infinite alternate;
}

.effect-sunbeam > span:nth-child(1),
.effect-lamp > span:nth-child(1),
.effect-lights > span:nth-child(1) { left: 8%; }
.effect-sunbeam > span:nth-child(2),
.effect-lamp > span:nth-child(2),
.effect-lights > span:nth-child(2) { left: 31%; animation-delay: -2s; }
.effect-sunbeam > span:nth-child(3),
.effect-lamp > span:nth-child(3),
.effect-lights > span:nth-child(3) { right: 26%; animation-delay: -3.4s; }
.effect-sunbeam > span:nth-child(4),
.effect-lamp > span:nth-child(4),
.effect-lights > span:nth-child(4) { right: 5%; animation-delay: -1.1s; }
.effect-sunbeam > span:nth-child(n + 5),
.effect-lamp > span:nth-child(n + 5),
.effect-lights > span:nth-child(n + 5) { display: none; }

.effect-rain > span,
.effect-water > span {
  top: -12%;
  width: 2px;
  height: 26px;
  border-radius: 2px;
  background: rgba(222, 242, 249, 0.78);
  transform: rotate(12deg);
  animation: variant-rain 1.25s linear infinite;
}

.effect-rain > span:nth-child(1),
.effect-water > span:nth-child(1) { left: 8%; }
.effect-rain > span:nth-child(2),
.effect-water > span:nth-child(2) { left: 26%; animation-delay: -0.5s; }
.effect-rain > span:nth-child(3),
.effect-water > span:nth-child(3) { left: 43%; animation-delay: -0.9s; }
.effect-rain > span:nth-child(4),
.effect-water > span:nth-child(4) { left: 61%; animation-delay: -0.2s; }
.effect-rain > span:nth-child(5),
.effect-water > span:nth-child(5) { left: 77%; animation-delay: -0.72s; }
.effect-rain > span:nth-child(6),
.effect-water > span:nth-child(6) { left: 92%; animation-delay: -1.08s; }

.effect-cloud > span,
.effect-breeze > span,
.effect-culture > span,
.effect-family > span,
.effect-tidy > span,
.effect-crowd > span,
.effect-share > span,
.effect-map > span {
  left: -18%;
  width: 76px;
  height: 19px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 20px;
  opacity: 0.7;
  animation: variant-drift 12s linear infinite;
}

.effect-cloud > span:nth-child(1),
.effect-breeze > span:nth-child(1),
.effect-culture > span:nth-child(1),
.effect-family > span:nth-child(1),
.effect-tidy > span:nth-child(1),
.effect-crowd > span:nth-child(1),
.effect-share > span:nth-child(1),
.effect-map > span:nth-child(1) { top: 14%; }
.effect-cloud > span:nth-child(2),
.effect-breeze > span:nth-child(2),
.effect-culture > span:nth-child(2),
.effect-family > span:nth-child(2),
.effect-tidy > span:nth-child(2),
.effect-crowd > span:nth-child(2),
.effect-share > span:nth-child(2),
.effect-map > span:nth-child(2) { top: 30%; animation-delay: -4s; }
.effect-cloud > span:nth-child(3),
.effect-breeze > span:nth-child(3),
.effect-culture > span:nth-child(3),
.effect-family > span:nth-child(3),
.effect-tidy > span:nth-child(3),
.effect-crowd > span:nth-child(3),
.effect-share > span:nth-child(3),
.effect-map > span:nth-child(3) { top: 46%; animation-delay: -8s; }
.effect-cloud > span:nth-child(n + 4),
.effect-breeze > span:nth-child(n + 4),
.effect-culture > span:nth-child(n + 4),
.effect-family > span:nth-child(n + 4),
.effect-tidy > span:nth-child(n + 4),
.effect-crowd > span:nth-child(n + 4),
.effect-share > span:nth-child(n + 4),
.effect-map > span:nth-child(n + 4) { display: none; }

.effect-traffic > span,
.effect-bus > span {
  top: 45%;
  left: -16%;
  width: 64px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 5px;
  background: rgba(54, 119, 170, 0.74);
  box-shadow: inset -15px 0 rgba(235, 109, 79, 0.8);
  animation: variant-traffic 9s linear infinite;
}

.effect-traffic > span:nth-child(2),
.effect-bus > span:nth-child(2) { top: 55%; animation-delay: -3s; }
.effect-traffic > span:nth-child(3),
.effect-bus > span:nth-child(3) { top: 37%; animation-delay: -6s; }
.effect-traffic > span:nth-child(n + 4),
.effect-bus > span:nth-child(n + 4) { display: none; }

.effect-steam > span,
.effect-campfire > span,
.effect-spark > span {
  bottom: 22%;
  width: 5px;
  height: 17px;
  border-radius: 8px;
  background: rgba(255, 223, 118, 0.86);
  animation: variant-rise 3s ease-in-out infinite;
}

.effect-steam > span:nth-child(1),
.effect-campfire > span:nth-child(1),
.effect-spark > span:nth-child(1) { left: 16%; }
.effect-steam > span:nth-child(2),
.effect-campfire > span:nth-child(2),
.effect-spark > span:nth-child(2) { left: 33%; animation-delay: -0.7s; }
.effect-steam > span:nth-child(3),
.effect-campfire > span:nth-child(3),
.effect-spark > span:nth-child(3) { left: 51%; animation-delay: -1.4s; }
.effect-steam > span:nth-child(4),
.effect-campfire > span:nth-child(4),
.effect-spark > span:nth-child(4) { left: 69%; animation-delay: -2.1s; }
.effect-steam > span:nth-child(5),
.effect-campfire > span:nth-child(5),
.effect-spark > span:nth-child(5) { left: 84%; animation-delay: -2.6s; }

.effect-music > span,
.effect-game > span,
.effect-board > span,
.effect-stars > span {
  width: 10px;
  height: 10px;
  background: #ffe17b;
  clip-path: polygon(50% 0, 61% 36%, 100% 50%, 61% 64%, 50% 100%, 39% 64%, 0 50%, 39% 36%);
  animation: variant-twinkle 2.2s ease-in-out infinite;
}

.effect-music > span:nth-child(1),
.effect-game > span:nth-child(1),
.effect-board > span:nth-child(1),
.effect-stars > span:nth-child(1) { top: 14%; left: 12%; }
.effect-music > span:nth-child(2),
.effect-game > span:nth-child(2),
.effect-board > span:nth-child(2),
.effect-stars > span:nth-child(2) { top: 23%; left: 34%; animation-delay: -0.7s; }
.effect-music > span:nth-child(3),
.effect-game > span:nth-child(3),
.effect-board > span:nth-child(3),
.effect-stars > span:nth-child(3) { top: 13%; right: 35%; animation-delay: -1.4s; }
.effect-music > span:nth-child(4),
.effect-game > span:nth-child(4),
.effect-board > span:nth-child(4),
.effect-stars > span:nth-child(4) { top: 31%; right: 14%; animation-delay: -1.9s; }
.effect-music > span:nth-child(5),
.effect-game > span:nth-child(5),
.effect-board > span:nth-child(5),
.effect-stars > span:nth-child(5) { top: 45%; left: 24%; animation-delay: -1.1s; }
.effect-music > span:nth-child(6),
.effect-game > span:nth-child(6),
.effect-board > span:nth-child(6),
.effect-stars > span:nth-child(6) { top: 48%; right: 27%; animation-delay: -0.3s; }

.world-keepsake {
  position: absolute;
  z-index: 7;
  right: 15px;
  bottom: 76px;
  display: inline-flex;
  min-height: 29px;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 15px;
  padding: 5px 9px;
  color: #fff;
  background: rgba(20, 47, 34, 0.66);
  font-size: 9px;
  font-weight: 800;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(6px);
}

.world-keepsake svg {
  width: 13px;
}

.world-ambience,
.world-ambience > span {
  position: absolute;
  pointer-events: none;
}

.world-ambience {
  z-index: 1;
  inset: 0;
  overflow: hidden;
}

.world-ambience > span {
  display: block;
}

.ambience-market > span {
  top: 15%;
  width: 30px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  filter: blur(1px);
  animation: ambience-steam 3.4s ease-in-out infinite;
}

.ambience-market > span:nth-child(1),
.ambience-restaurant > span:nth-child(1) {
  left: 23%;
}

.ambience-market > span:nth-child(2),
.ambience-restaurant > span:nth-child(2) {
  left: 29%;
  animation-delay: -1.2s;
}

.ambience-market > span:nth-child(3),
.ambience-restaurant > span:nth-child(3) {
  left: 64%;
  animation-delay: -2.1s;
}

.ambience-market > span:nth-child(4),
.ambience-restaurant > span:nth-child(4) {
  left: 70%;
  animation-delay: -0.6s;
}

.ambience-classroom > span,
.ambience-party > span {
  width: 9px;
  height: 9px;
  border: 2px solid rgba(255, 238, 160, 0.88);
  border-radius: 50%;
  animation: ambience-orbit 4.6s ease-in-out infinite;
}

.ambience-classroom > span:nth-child(1),
.ambience-party > span:nth-child(1) {
  top: 16%;
  left: 20%;
}

.ambience-classroom > span:nth-child(2),
.ambience-party > span:nth-child(2) {
  top: 24%;
  left: 46%;
  animation-delay: -1.2s;
}

.ambience-classroom > span:nth-child(3),
.ambience-party > span:nth-child(3) {
  top: 12%;
  right: 22%;
  animation-delay: -2.4s;
}

.ambience-classroom > span:nth-child(4),
.ambience-party > span:nth-child(4) {
  top: 35%;
  right: 10%;
  animation-delay: -3.1s;
}

.ambience-living-room > span {
  top: 11%;
  width: 5px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 232, 161, 0.8);
  transform: rotate(35deg);
  animation: ambience-dust 4.2s linear infinite;
}

.ambience-living-room > span:nth-child(1) { left: 19%; }
.ambience-living-room > span:nth-child(2) { left: 38%; animation-delay: -1s; }
.ambience-living-room > span:nth-child(3) { left: 63%; animation-delay: -2.2s; }
.ambience-living-room > span:nth-child(4) { left: 81%; animation-delay: -3s; }

.ambience-crossing > span,
.ambience-station > span {
  top: 34%;
  left: -18%;
  width: 72px;
  height: 20px;
  border-radius: 5px;
  background: rgba(235, 244, 242, 0.82);
  box-shadow: inset 13px 0 #3976bd, inset -12px 0 #e96f55;
  animation: ambience-traffic 8s linear infinite;
}

.ambience-crossing > span:nth-child(2),
.ambience-station > span:nth-child(2) {
  top: 44%;
  animation-delay: -2s;
}

.ambience-crossing > span:nth-child(3),
.ambience-station > span:nth-child(3) {
  top: 27%;
  animation-delay: -4.2s;
}

.ambience-crossing > span:nth-child(4),
.ambience-station > span:nth-child(4) {
  top: 50%;
  animation-delay: -6s;
}

.ambience-restaurant > span {
  top: 18%;
  width: 8px;
  height: 28px;
  border-radius: 50%;
  border-left: 3px solid rgba(255, 255, 255, 0.85);
  animation: ambience-steam 3s ease-in-out infinite;
}

.ambience-party > span {
  border: 0;
  border-radius: 2px;
  background: #f6cc5e;
  box-shadow: 0 0 9px rgba(246, 204, 94, 0.72);
}

.ambience-trail > span,
.ambience-camp > span {
  top: -8%;
  left: 10%;
  width: 15px;
  height: 8px;
  border-radius: 70% 10% 70% 10%;
  background: #82a85d;
  animation: ambience-leaf 6s linear infinite;
}

.ambience-trail > span:nth-child(2),
.ambience-camp > span:nth-child(2) {
  left: 35%;
  animation-delay: -1.4s;
}

.ambience-trail > span:nth-child(3),
.ambience-camp > span:nth-child(3) {
  left: 64%;
  animation-delay: -3.2s;
}

.ambience-trail > span:nth-child(4),
.ambience-camp > span:nth-child(4) {
  left: 87%;
  animation-delay: -4.6s;
}

.ambience-camp > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffc65b;
  box-shadow: 0 0 7px #f19a3b;
  animation-name: ambience-spark;
  animation-duration: 3.4s;
}

.world-foreground,
.world-foreground > span {
  position: absolute;
  pointer-events: none;
}

.world-foreground {
  z-index: 2;
  inset: 0;
  overflow: hidden;
}

.world-foreground > span {
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: 0 8px 18px rgba(12, 31, 21, 0.18);
}

.foreground-market > span {
  bottom: 70px;
  width: 88px;
  height: 43px;
  border-top: 9px solid #f2c653;
  border-radius: 4px;
  background: rgba(180, 77, 57, 0.72);
}

.foreground-market > span:nth-child(1) { left: -22px; }
.foreground-market > span:nth-child(2) { right: 29%; width: 66px; transform: scale(0.82); }
.foreground-market > span:nth-child(3) { right: -18px; border-top-color: #78b894; }

.foreground-classroom > span {
  bottom: 75px;
  width: 92px;
  height: 30px;
  border-radius: 3px;
  background: rgba(126, 86, 55, 0.72);
  box-shadow: 0 17px 0 -12px rgba(72, 49, 35, 0.72);
}

.foreground-classroom > span:nth-child(1) { left: -24px; }
.foreground-classroom > span:nth-child(2) { left: 43%; transform: scale(0.8); }
.foreground-classroom > span:nth-child(3) { right: -18px; }

.foreground-living-room > span {
  bottom: 65px;
  width: 76px;
  height: 48px;
  border-radius: 6px 6px 3px 3px;
  background: rgba(210, 154, 91, 0.74);
}

.foreground-living-room > span:nth-child(1) { left: -18px; }
.foreground-living-room > span:nth-child(2) { left: 45%; width: 52px; height: 64px; background: rgba(74, 117, 82, 0.72); }
.foreground-living-room > span:nth-child(3) { right: -14px; }

.foreground-crossing > span {
  bottom: 62px;
  width: 17%;
  height: 8px;
  border: 0;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: none;
  transform: skewX(-24deg);
}

.foreground-crossing > span:nth-child(1) { left: 4%; }
.foreground-crossing > span:nth-child(2) { left: 42%; }
.foreground-crossing > span:nth-child(3) { right: 4%; }

.foreground-restaurant > span {
  bottom: 66px;
  width: 70px;
  height: 24px;
  border: 6px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  background: rgba(91, 139, 112, 0.55);
}

.foreground-restaurant > span:nth-child(1) { left: -16px; }
.foreground-restaurant > span:nth-child(2) { left: 45%; transform: scale(0.78); }
.foreground-restaurant > span:nth-child(3) { right: -13px; }

.foreground-party > span {
  top: 38px;
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 50%;
  background: #ffd86b;
  box-shadow: 0 0 13px #ffd86b;
  animation: foreground-party-light 1.4s ease-in-out infinite alternate;
}

.foreground-party > span:nth-child(1) { left: 27%; }
.foreground-party > span:nth-child(2) { left: 52%; animation-delay: -0.7s; }
.foreground-party > span:nth-child(3) { right: 17%; animation-delay: -1.1s; }

.foreground-station > span {
  bottom: 70px;
  width: 45px;
  height: 55px;
  border-radius: 6px;
  background: rgba(52, 94, 129, 0.72);
  box-shadow: inset 0 8px rgba(255, 255, 255, 0.16), 0 8px 18px rgba(12, 31, 21, 0.18);
}

.foreground-station > span:nth-child(1) { left: -10px; }
.foreground-station > span:nth-child(2) { left: 46%; width: 36px; height: 44px; background: rgba(202, 103, 79, 0.74); }
.foreground-station > span:nth-child(3) { right: -8px; }

.foreground-trail > span {
  bottom: 59px;
  width: 55px;
  height: 64px;
  border: 0;
  border-radius: 60% 60% 12% 12%;
  background: rgba(74, 126, 72, 0.75);
  box-shadow: none;
  transform-origin: center bottom;
  animation: foreground-grass-sway 2.8s ease-in-out infinite alternate;
}

.foreground-trail > span:nth-child(1) { left: -18px; }
.foreground-trail > span:nth-child(2) { left: 47%; height: 42px; animation-delay: -1.2s; }
.foreground-trail > span:nth-child(3) { right: -17px; animation-delay: -2s; }

.foreground-camp > span {
  bottom: 62px;
  width: 54px;
  height: 34px;
  border: 0;
  border-radius: 50% 50% 12% 12%;
  background: rgba(219, 105, 61, 0.78);
  box-shadow: 0 -7px 17px rgba(255, 194, 72, 0.38);
  animation: foreground-camp-glow 1.6s ease-in-out infinite alternate;
}

.foreground-camp > span:nth-child(1) { left: -13px; }
.foreground-camp > span:nth-child(2) { left: 47%; transform: scale(0.7); animation-delay: -0.8s; }
.foreground-camp > span:nth-child(3) { right: -13px; animation-delay: -1.2s; }

.world-object {
  position: absolute;
  z-index: 4;
  top: var(--object-y);
  left: var(--object-x);
  display: grid;
  width: 96px;
  min-height: 62px;
  justify-items: center;
  align-content: start;
  gap: 4px;
  border: 0;
  padding: 0;
  color: #fff;
  background: transparent;
  text-shadow: 0 1px 5px rgba(8, 20, 14, 0.62);
  pointer-events: auto;
  transform: translate(-50%, -50%);
}

.world-object > svg {
  width: 38px;
  height: 38px;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  padding: 10px;
  color: #194f36;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 7px 18px rgba(9, 25, 17, 0.2);
  transition: transform 160ms ease, color 160ms ease, background 160ms ease;
}

.world-object > span {
  max-width: 92px;
  font-size: 9px;
  font-weight: 750;
  line-height: 1.25;
}

.world-object:hover > svg,
.world-object:focus-visible > svg {
  color: #704b04;
  background: #fff4bd;
  transform: translateY(-3px) rotate(-4deg);
}

.world-object.discovered > svg {
  color: #fff;
  background: #27704f;
  animation: world-object-found 420ms ease-out;
}

.world-object.discovered::after {
  position: absolute;
  top: -3px;
  left: calc(50% + 10px);
  display: grid;
  width: 15px;
  height: 15px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  content: "✓";
  font-size: 9px;
  font-weight: 900;
  text-shadow: none;
}

.scene-hotspot {
  position: absolute;
  z-index: 4;
  top: 62px;
  display: grid;
  width: 88px;
  min-height: 83px;
  place-items: center;
  align-content: center;
  gap: 2px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 50%;
  padding: 7px;
  color: #fff;
  background: rgba(17, 40, 29, 0.6);
  box-shadow: 0 9px 24px rgba(9, 25, 17, 0.18);
  text-shadow: 0 1px 5px rgba(8, 20, 14, 0.5);
  backdrop-filter: blur(6px);
  pointer-events: auto;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.scene-hotspot > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.92);
}

.scene-hotspot svg {
  width: 15px;
}

.scene-hotspot strong {
  font-size: 10px;
}

.scene-hotspot small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 8px;
}

.scene-hotspot:hover,
.scene-hotspot.active {
  border-color: #ffe18c;
  background: rgba(96, 70, 15, 0.72);
  transform: translateY(-4px) scale(1.06);
}

.scene-hotspot.complete,
.scene-hotspot.complete:disabled {
  border-color: rgba(145, 231, 181, 0.9);
  background: rgba(24, 96, 64, 0.76);
  opacity: 1;
}

.hotspot-1 {
  left: 10%;
}

.hotspot-2 {
  left: calc(50% - 44px);
}

.hotspot-3 {
  right: 8%;
}

.scene-pet-character {
  position: absolute;
  z-index: 5;
  bottom: 72px;
  left: var(--pet-x);
  width: 128px;
  cursor: pointer;
  filter: drop-shadow(0 16px 16px rgba(10, 25, 18, 0.24));
  transform: translateX(-50%);
  transition: left 780ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 220ms ease;
}

.scene-pet-character[data-facing="left"] {
  transform: translateX(-50%) scaleX(-1);
}

.scene-pet-character.at-1 {
  --pet-x: 14%;
}

.scene-pet-character.at-2 {
  --pet-x: 50%;
}

.scene-pet-character.at-3 {
  --pet-x: 86%;
}

.scene-pet-character .pet-image {
  box-shadow: 0 12px 26px rgba(10, 25, 18, 0.26);
}

.scene-pet-bubble {
  position: absolute;
  z-index: 7;
  bottom: 190px;
  left: clamp(8px, calc(var(--pet-x) - 82px), calc(100% - 198px));
  max-width: 190px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 7px;
  padding: 8px 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 22px rgba(10, 25, 18, 0.2);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: left 780ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.scene-pet-bubble:empty {
  display: none;
}

.scene-pet-bubble.visible {
  animation: scene-pet-hint 2.4s ease both;
}

@keyframes scene-pet-hint {
  0%, 100% { opacity: 0; transform: translateY(6px); }
  12%, 82% { opacity: 1; transform: translateY(0); }
}

.scene-hero-copy {
  position: absolute;
  z-index: 6;
  right: 28px;
  bottom: 18px;
  left: 28px;
  color: #fff;
}

.scene-hero-copy p {
  max-width: 540px;
  margin: 0 0 11px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.55;
  text-shadow: 0 2px 12px rgba(5, 17, 11, 0.4);
}

.scene-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.scene-tags span {
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 4px;
  padding: 5px 8px;
  background: rgba(20, 42, 31, 0.5);
  font-size: 10px;
  font-weight: 750;
  backdrop-filter: blur(7px);
}

.activity-step {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.step-heading {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  align-items: start;
  gap: 12px;
  margin-bottom: 16px;
}

.step-heading > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  background: var(--green);
  font-size: 11px;
  font-weight: 850;
}

.step-heading .eyebrow {
  margin-bottom: 2px;
  font-size: 10px;
}

.step-heading h3 {
  margin: 0;
  font-size: 16px;
}

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

.mission-option {
  display: grid;
  min-width: 0;
  min-height: 218px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 102px auto auto 27px;
  align-content: start;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
  background: #fff;
  text-align: left;
}

.mission-option-media {
  position: relative;
  display: block;
  min-width: 0;
  height: 102px;
  margin: -12px -12px 7px;
  overflow: hidden;
  border-radius: 7px 7px 0 0;
  background: #dfe8e3;
}

.mission-option-media > .generated-visual {
  position: absolute;
  inset: 0;
}

.mission-option-media::after {
  position: absolute;
  z-index: 2;
  inset: 45% 0 0;
  background: linear-gradient(180deg, transparent, rgba(17, 41, 29, 0.42));
  content: "";
  pointer-events: none;
}

.mission-option-icon {
  position: absolute;
  z-index: 3;
  bottom: 8px;
  left: 9px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 7px;
  color: var(--green-dark);
  background: rgba(238, 249, 242, 0.94);
  box-shadow: 0 5px 13px rgba(18, 40, 30, 0.2);
}

.mission-option .mission-mini-demo {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 3px;
  grid-column: 1;
  color: #648075;
}

.mission-demo-frame {
  position: relative;
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  place-items: center;
  border: 1px solid #c7d8cf;
  border-radius: 6px;
  color: #648075;
  background: #f8fbf9;
  animation: mission-demo-step 3.6s ease-in-out infinite;
  animation-delay: calc(var(--demo-step, 0) * 0.5s);
}

.mission-option .mission-demo-frame > svg {
  width: 13px;
  height: 13px;
}

.mission-demo-frame > b {
  position: absolute;
  top: -5px;
  right: -4px;
  display: grid;
  width: 13px;
  height: 13px;
  place-items: center;
  border: 1px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-size: 7px;
}

.mission-mini-demo > .mission-demo-arrow {
  width: 9px;
  flex: 0 0 9px;
  color: var(--green);
  opacity: 0.8;
  animation: mission-demo-arrow 1.4s ease-in-out infinite;
}

.mission-demo-voice {
  display: grid;
  width: 22px;
  height: 22px;
  margin-left: auto;
  flex: 0 0 22px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  animation: listen-pulse 1.8s ease-in-out infinite;
}

.mission-option .mission-demo-voice > svg {
  width: 11px;
}

.mission-option svg {
  width: 18px;
}

.mission-option strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 12px;
}

.mission-option small {
  color: var(--muted);
  font-size: 10px;
}

.mission-option:hover,
.mission-option.active {
  border-color: var(--green);
  background: #f1f7f3;
}

.mission-option.active {
  box-shadow: inset 0 0 0 1px var(--green);
}

.mission-option.complete,
.mission-option.complete:disabled {
  border-color: #a8d2bb;
  background: #edf7f1;
  opacity: 1;
}

.mission-option.complete .mission-status {
  color: var(--green);
}

.mission-brief {
  margin: -4px 0 14px 46px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.mission-playground {
  margin: 0 0 14px 46px;
  overflow: hidden;
  border: 1px solid #bed1c7;
  border-radius: 8px;
  background: #f1f7f3;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.mission-playground.complete {
  border-color: #78b894;
  box-shadow: inset 0 0 0 1px rgba(36, 107, 75, 0.12);
}

.play-demo {
  --demo-cycle: 7.2s;
  position: relative;
  display: flex;
  min-height: 174px;
  isolation: isolate;
  align-items: flex-end;
  justify-content: space-evenly;
  gap: 10px;
  overflow: hidden;
  border-bottom: 1px solid rgba(36, 107, 75, 0.1);
  padding: 56px 4% 15px;
  background: #dce9e2;
}

.play-demo-images,
.play-demo-shade {
  position: absolute;
  inset: 0;
}

.play-demo-images {
  z-index: -3;
  width: 100%;
  height: 100%;
  filter: saturate(0.88) brightness(1.03);
  animation: play-demo-camera 10s ease-in-out infinite alternate;
}

.play-demo-images img {
  object-position: center 57%;
}

.play-demo-shade {
  z-index: -2;
  background: rgba(241, 247, 243, 0.38);
}

.demo-scene-label {
  position: absolute;
  z-index: 5;
  top: 11px;
  left: 12px;
  max-width: calc(100% - 24px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 6px;
  padding: 5px 8px;
  color: #fff;
  background: rgba(23, 53, 38, 0.78);
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-route-line {
  position: absolute;
  z-index: 0;
  right: 8%;
  bottom: 39px;
  left: 8%;
  border-top: 3px dashed rgba(255, 255, 255, 0.82);
  filter: drop-shadow(0 1px 1px rgba(25, 49, 37, 0.3));
  animation: demo-route-breathe 1.8s ease-in-out infinite;
}

.demo-pet-character {
  position: absolute;
  z-index: 2;
  bottom: 30px;
  left: 4%;
  width: 76px;
  height: 76px;
  transform-origin: center bottom;
  animation: play-demo-pet-travel var(--demo-cycle) ease-in-out infinite;
}

.pet-character.demo-pet-character.has-pet-rig {
  animation: play-demo-pet-travel var(--demo-cycle) ease-in-out infinite;
}

.demo-pet-character .pet-rig {
  inset: 3% 6% 1%;
  animation: rig-walk-body 520ms ease-in-out infinite;
}

.demo-pet-character .rig-tail {
  animation-duration: 430ms;
}

.demo-pet-character .rig-leg-back-left,
.demo-pet-character .rig-paw-right {
  animation: rig-step-forward 520ms ease-in-out infinite alternate;
}

.demo-pet-character .rig-leg-back-right,
.demo-pet-character .rig-paw-left {
  animation: rig-step-back 520ms ease-in-out infinite alternate;
}

.play-demo.replaying .pet-character.demo-pet-character.has-pet-rig {
  animation-name: play-demo-pet-travel-replay;
}

.play-demo .demo-action,
.play-demo-dial > .demo-dial-start,
.play-demo-dial > .demo-target {
  position: relative;
  z-index: 4;
  display: grid;
  min-width: 76px;
  min-height: 58px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 7px;
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 5px 13px rgba(23, 53, 38, 0.16);
}

.play-demo .demo-action {
  grid-template-rows: 25px auto;
  align-content: center;
  gap: 2px;
  padding: 6px;
  animation: play-demo-step var(--demo-cycle) ease-in-out infinite;
  animation-delay: calc(var(--demo-step, 0) * 1.7s);
}

.play-demo.replaying .demo-action {
  animation-name: play-demo-step-replay;
}

.demo-action-object {
  position: relative;
  display: grid;
  width: 29px;
  height: 27px;
  place-items: center;
  transform-origin: 50% 85%;
  animation: demo-object-action var(--demo-cycle) ease-in-out infinite;
  animation-delay: calc(var(--demo-step, 0) * 1.7s);
}

.demo-action-object > svg:first-child {
  width: 22px;
  height: 22px;
}

.demo-action-check {
  position: absolute;
  top: -6px;
  right: -7px;
  width: 13px;
  height: 13px;
  border: 2px solid #fff;
  border-radius: 50%;
  padding: 2px;
  color: #fff;
  background: var(--green);
  opacity: 0;
  animation: demo-action-check var(--demo-cycle) ease-in-out infinite;
  animation-delay: calc(var(--demo-step, 0) * 1.7s);
}

.demo-action.is-done {
  border-color: #79b895;
  background: rgba(237, 248, 241, 0.97);
}

.demo-action.is-done .demo-action-check {
  opacity: 1;
  animation: none;
}

.demo-scene-daily,
.demo-scene-home {
  --demo-object-transform: translate(5px, -7px) rotate(-9deg) scale(1.1);
}

.demo-scene-school {
  --demo-object-transform: translateY(-5px) rotate(13deg) scale(1.12);
}

.demo-scene-road {
  --demo-object-transform: translateX(12px) rotate(4deg) scale(1.08);
}

.demo-scene-dining {
  --demo-object-transform: translateY(-10px) rotate(-5deg) scale(1.12);
}

.demo-scene-party {
  --demo-object-transform: translateY(-8px) rotate(16deg) scale(1.14);
}

.demo-scene-abroad {
  --demo-object-transform: translate(9px, -6px) rotate(-12deg) scale(1.1);
}

.demo-scene-solo {
  --demo-object-transform: translateY(-6px) scale(0.92, 1.2);
}

.demo-scene-group {
  --demo-object-transform: translateX(11px) rotate(8deg) scale(1.1);
}

.play-demo .demo-action > small {
  display: -webkit-box;
  max-width: 90px;
  overflow: hidden;
  color: #30473c;
  font-size: 8px;
  font-weight: 750;
  line-height: 1.15;
  text-align: center;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.play-demo .demo-action > b {
  position: absolute;
  top: -7px;
  right: -7px;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-size: 8px;
}

.demo-paw {
  position: absolute;
  z-index: 3;
  bottom: 3px;
  left: 18%;
  color: #805d17;
  animation: play-demo-pointer 3.6s ease-in-out infinite;
}

.play-demo.replaying .demo-paw {
  animation-name: play-demo-pointer-replay;
}

.demo-paw svg {
  width: 22px;
  filter: drop-shadow(0 2px 2px rgba(23, 45, 34, 0.2));
}

.play-demo-dial > .demo-dial-start,
.play-demo-dial > .demo-target {
  grid-template-columns: 17px auto;
  gap: 5px;
  padding: 0 9px;
}

.play-demo-dial > .demo-dial-start > svg,
.play-demo-dial > .demo-target > svg {
  width: 15px;
}

.play-demo-dial > svg {
  position: relative;
  z-index: 4;
  width: 23px;
  color: #fff;
  filter: drop-shadow(0 2px 2px rgba(23, 53, 38, 0.45));
  animation: mission-demo-arrow 1.4s ease-in-out infinite;
}

.play-demo-dial .demo-paw-dial {
  display: block;
  min-width: 0;
  width: auto;
  height: auto;
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.play-demo-dial b {
  font-size: 11px;
}

.play-demo-dial .demo-target {
  grid-template-columns: 16px auto;
  gap: 5px;
  padding: 0 9px;
  border-color: #d8ad43;
  color: #704f0d;
  background: #fff9dd;
  animation: play-target-pulse 1.25s ease-in-out infinite;
}

.play-demo-dial .demo-target svg {
  width: 15px;
}

.demo-dial-motion {
  position: absolute;
  z-index: 6;
  bottom: 20px;
  left: calc(50% - 16px);
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: #694a0d;
  background: #fff4bd;
  box-shadow: 0 4px 10px rgba(38, 54, 45, 0.2);
  animation: demo-dial-adjust var(--demo-cycle) ease-in-out infinite;
}

.demo-dial-motion > svg {
  width: 17px;
}

.demo-dial-motion > span {
  position: absolute;
  inset: -5px;
  border: 2px solid rgba(255, 221, 116, 0.86);
  border-radius: 50%;
  animation: demo-dial-ring 1.2s ease-out infinite;
}

.playground-heading {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(36, 107, 75, 0.12);
  padding: 11px 13px;
  background: rgba(255, 255, 255, 0.72);
}

.playground-heading > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  background: var(--green);
}

.playground-heading svg {
  width: 18px;
}

.playground-heading strong,
.playground-heading small {
  display: block;
}

.playground-heading strong {
  font-size: 12px;
}

.playground-heading small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.playground-heading > b {
  border-radius: 12px;
  padding: 5px 8px;
  color: var(--green-dark);
  background: var(--green-soft);
  font-size: 9px;
  white-space: nowrap;
}

.playground-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.playground-status > span {
  display: inline-flex;
  gap: 4px;
}

.playground-status > b {
  border-radius: 12px;
  padding: 5px 8px;
  color: var(--green-dark);
  background: var(--green-soft);
  font-size: 9px;
  white-space: nowrap;
}

.playground-status button {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid #bfd0c7;
  border-radius: 6px;
  padding: 0;
  color: var(--green-dark);
  background: #fff;
}

.playground-status button:hover {
  border-color: var(--green);
  background: #e9f4ed;
}

.playground-status svg {
  width: 14px;
}

.play-console {
  display: grid;
  grid-template-columns: minmax(110px, 0.32fr) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 13px;
}

.play-track {
  display: flex;
  justify-content: center;
  gap: 7px;
}

.play-track > span {
  position: relative;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid #b9c9c1;
  border-radius: 50%;
  color: var(--muted);
  background: #fff;
  font-size: 9px;
  font-weight: 850;
}

.play-track > span.active {
  border-color: var(--yellow);
  color: #785309;
  background: var(--yellow-soft);
  animation: play-target-pulse 1.25s ease-in-out infinite;
}

.play-track > span.complete {
  border-color: var(--green);
  color: #fff;
  background: var(--green);
}

.play-track svg {
  width: 13px;
}

.play-dial {
  display: grid;
  min-height: 86px;
  align-content: center;
  justify-items: center;
  border: 1px solid #b8cbc1;
  border-radius: 7px;
  background: #fff;
  box-shadow: inset 0 -7px 0 rgba(36, 107, 75, 0.05);
}

.play-dial small,
.play-dial span {
  color: var(--muted);
  font-size: 9px;
}

.play-dial strong {
  margin: 2px 0;
  color: var(--green-dark);
  font-size: 22px;
}

.play-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  gap: 7px;
}

.play-actions button {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 54px;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  border: 1px solid #bdccc4;
  border-radius: 6px;
  padding: 8px 9px;
  color: #405049;
  background: #fff;
  text-align: left;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.play-actions button:hover {
  border-color: var(--green);
  transform: translateY(-2px);
}

.play-actions button.selected,
.play-actions button.selected:disabled {
  border-color: #78b894;
  color: var(--green-dark);
  background: #e5f3eb;
  opacity: 1;
}

.play-actions button.wrong {
  border-color: var(--coral);
  background: #fff0eb;
  animation: play-wrong-shake 280ms ease-in-out;
}

.play-actions button > svg {
  width: 17px;
}

.play-actions button > span {
  overflow-wrap: anywhere;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.35;
}

.play-actions .play-check {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 12px;
  color: var(--green);
}

.play-feedback {
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  margin: 0;
  border-top: 1px solid rgba(36, 107, 75, 0.1);
  padding: 9px 13px;
  color: #4b5d55;
  background: rgba(255, 255, 255, 0.6);
  font-size: 10px;
  line-height: 1.45;
}

.play-feedback svg {
  width: 15px;
}

.play-feedback.success {
  color: var(--green-dark);
  background: #e5f3eb;
}

.play-feedback.retry {
  color: #7d4538;
  background: #fff0eb;
}

@keyframes play-target-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(226, 169, 46, 0); }
  50% { box-shadow: 0 0 0 5px rgba(226, 169, 46, 0.16); }
}

@keyframes play-wrong-shake {
  0%, 100% { transform: translateX(0); }
  35% { transform: translateX(-4px); }
  70% { transform: translateX(4px); }
}

.challenge-board {
  margin: 0 0 17px 46px;
  border: 1px solid #cfdad4;
  border-radius: 8px;
  padding: 13px;
  background: #f6f9f7;
}

.challenge-board-heading {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 11px;
}

.challenge-board-heading > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  background: var(--blue);
}

.challenge-board-heading svg {
  width: 17px;
}

.challenge-board-heading strong,
.challenge-board-heading small {
  display: block;
}

.challenge-board-heading strong {
  font-size: 12px;
}

.challenge-board-heading small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.challenge-board-heading > b {
  border-radius: 12px;
  padding: 5px 8px;
  color: var(--green-dark);
  background: var(--green-soft);
  font-size: 9px;
  white-space: nowrap;
}

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

.clue-items button {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 126px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 78px auto;
  align-content: start;
  gap: 7px;
  overflow: hidden;
  border: 1px dashed #b7c7bf;
  border-radius: 6px;
  padding: 8px;
  color: #405049;
  background: #fff;
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.clue-visual {
  position: relative;
  display: block;
  min-width: 0;
  height: 78px;
  margin: -8px -8px 1px;
  overflow: hidden;
  border-bottom: 1px solid #d8e1dc;
  background: #dfe8e3;
}

.clue-visual > .generated-visual {
  position: absolute;
  inset: 0;
}

.clue-visual::after {
  position: absolute;
  z-index: 2;
  inset: 50% 0 0;
  background: linear-gradient(180deg, transparent, rgba(18, 42, 31, 0.38));
  content: "";
  pointer-events: none;
}

.clue-visual .clue-icon {
  position: absolute;
  z-index: 3;
  bottom: 6px;
  left: 7px;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 6px;
  padding: 6px;
  color: var(--green-dark);
  background: rgba(240, 250, 244, 0.94);
  box-shadow: 0 4px 11px rgba(18, 40, 30, 0.2);
}

.clue-items button:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
}

.clue-items button:disabled:not(.found) {
  cursor: not-allowed;
  opacity: 0.48;
}

.clue-items button.found,
.clue-items button.found:disabled {
  border-style: solid;
  border-color: #90c5a8;
  color: var(--green-dark);
  background: #e9f5ee;
  opacity: 1;
}

.clue-items button > span:not(.clue-visual) {
  overflow-wrap: anywhere;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.3;
}

.clue-items .clue-check {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 12px;
  color: var(--green);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 160ms ease, transform 160ms ease;
}

.clue-items button.found .clue-check {
  opacity: 1;
  transform: scale(1);
}

.challenge-prompt {
  margin: 0 0 14px 46px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 750;
  line-height: 1.55;
}

.challenge-options {
  display: grid;
  margin-left: 46px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.challenge-option {
  display: grid;
  min-width: 0;
  min-height: 62px;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 10px;
  background: #fff;
  text-align: left;
}

.challenge-option > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
  background: #eff3f1;
  font-size: 10px;
  font-weight: 850;
}

.challenge-option strong {
  overflow-wrap: anywhere;
  font-size: 11px;
  line-height: 1.4;
}

.challenge-option:hover,
.challenge-option.selected {
  border-color: var(--blue);
}

.challenge-option.correct {
  border-color: var(--green);
  background: #edf7f1;
}

.challenge-option.incorrect {
  border-color: #d38181;
  background: #fff3f1;
}

.challenge-feedback {
  display: none;
  margin: 12px 0 0 46px;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  border-left: 3px solid var(--line);
  padding: 9px 12px;
  color: var(--muted);
  background: #f5f7f6;
  font-size: 11px;
  line-height: 1.55;
}

.challenge-feedback.visible {
  display: grid;
}

.challenge-feedback.success {
  border-color: var(--green);
  color: #315b46;
  background: #edf7f1;
}

.challenge-feedback.retry {
  border-color: var(--coral);
  color: #7d4538;
  background: #fff3ef;
}

.challenge-feedback svg {
  width: 19px;
}

.challenge-feedback strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 12px;
}

.activity-plan-grid {
  display: grid;
  margin-left: 46px;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  gap: 18px;
}

.departure-demo {
  position: relative;
  height: 126px;
  margin: 0 0 18px 46px;
  overflow: hidden;
  border: 1px solid #bdd0c6;
  border-radius: 8px;
  background: #edf5f0;
}

.departure-path {
  position: absolute;
  inset: 0;
}

.departure-line {
  position: absolute;
  top: 72px;
  right: 8%;
  left: 8%;
  border-top: 3px dashed #8fb2a0;
}

.departure-runner {
  position: absolute;
  z-index: 5;
  top: 18px;
  left: 3%;
  width: 66px;
  height: 66px;
  animation: departure-travel 7s ease-in-out infinite;
}

.departure-companions {
  position: absolute;
  right: -15px;
  bottom: 1px;
  display: flex;
  gap: 1px;
}

.departure-companions svg {
  width: 15px;
  height: 15px;
  border: 2px solid #fff;
  border-radius: 50%;
  padding: 2px;
  color: #fff;
  background: var(--blue);
  box-sizing: border-box;
  animation: departure-friend-bob 700ms ease-in-out infinite alternate;
  animation-delay: calc(var(--friend-index, 0) * 120ms);
}

.departure-pet-character {
  position: relative;
  width: 66px;
  height: 66px;
}

.departure-pet-character .pet-rig {
  inset: 4% 7% 1%;
}

.departure-node {
  position: absolute;
  z-index: 3;
  top: 54px;
  display: grid;
  min-width: 54px;
  min-height: 57px;
  grid-template-columns: 18px auto;
  place-content: center;
  align-items: center;
  gap: 0 5px;
  border: 2px solid #fff;
  border-radius: 7px;
  color: var(--green-dark);
  background: #fff;
  box-shadow: 0 5px 13px rgba(24, 55, 39, 0.13);
}

.departure-node > em {
  position: absolute;
  top: -9px;
  left: -8px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-size: 9px;
  font-style: normal;
  font-weight: 850;
}

.departure-node svg {
  width: 16px;
}

.departure-node b {
  font-size: 14px;
}

.departure-node small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 8px;
  text-align: center;
}

.departure-time { left: 25%; }
.departure-friends { left: 54%; }
.departure-goal {
  right: 4%;
  color: #714f0c;
  background: var(--yellow-soft);
}

.departure-goal b {
  font-size: 10px;
}

.departure-footprints {
  position: absolute;
  top: 83px;
  left: 12%;
  color: #6f9b84;
  animation: departure-footprints 2s linear infinite;
}

.departure-footprints svg {
  width: 18px;
}

.activity-plan-grid .option-group {
  margin-bottom: 0;
}

.scene-modal .reward-preview {
  margin-top: 18px;
}

.scene-modal .reward-preview strong {
  color: var(--ink);
  font-size: 13px;
}

.activity-result {
  display: grid;
  justify-items: center;
  padding: 30px 12px 8px;
  text-align: center;
}

.result-seal {
  display: grid;
  width: 62px;
  height: 62px;
  margin-bottom: 13px;
  place-items: center;
  border: 1px solid #e7bf5e;
  border-radius: 50%;
  color: #77520c;
  background: var(--yellow-soft);
  box-shadow: 0 0 0 8px rgba(251, 239, 200, 0.5);
  animation: result-seal-pop 600ms cubic-bezier(0.2, 0.9, 0.2, 1.25);
}

.result-seal svg {
  width: 28px;
}

.activity-result h3 {
  margin: 0 0 8px;
  font-size: 23px;
}

.activity-result > p:not(.eyebrow) {
  max-width: 610px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.result-stats {
  display: grid;
  width: min(100%, 660px);
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf9;
}

.result-stats > span {
  display: grid;
  min-width: 0;
  gap: 3px;
  padding: 13px 8px;
}

.result-stats > span + span {
  border-left: 1px solid var(--line);
}

.result-stats small {
  color: var(--muted);
  font-size: 9px;
}

.result-stats strong {
  font-size: 18px;
}

.result-stamps {
  display: flex;
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin: 17px 0;
}

.result-stamps > span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 5px 9px;
  color: var(--muted);
  background: #fff;
  font-size: 9px;
  font-weight: 750;
}

.result-stamps > span.earned {
  border-color: #9bc8ae;
  color: var(--green-dark);
  background: var(--green-soft);
}

.result-stamps svg {
  width: 13px;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
}

.result-actions button {
  width: auto;
  min-width: 150px;
}

#activity-form.showing-result .activity-step,
#activity-form.showing-result > .reward-preview,
#activity-form.showing-result > #activity-submit,
#activity-form.showing-result > #activity-error {
  display: none;
}

.wardrobe-modal {
  width: min(calc(100% - 30px), 760px);
  max-height: min(92vh, 820px);
}

.wardrobe-layout {
  display: grid;
  grid-template-columns: minmax(230px, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
  margin-bottom: 22px;
}

.wardrobe-preview {
  position: relative;
  display: flex;
  min-height: 380px;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 30px 18px 72px;
  background: linear-gradient(#cde6e8 0 48%, #f0d8b1 48% 100%);
}

.wardrobe-preview::after {
  position: absolute;
  right: 10%;
  bottom: 55px;
  left: 10%;
  height: 52px;
  border-radius: 50%;
  background: rgba(120, 92, 48, 0.18);
  content: "";
}

.wardrobe-pet-character {
  width: min(92%, 230px);
}

.wardrobe-pose-controls {
  position: absolute;
  z-index: 8;
  top: 12px;
  right: 12px;
  display: grid;
  gap: 6px;
}

.wardrobe-pose-controls .icon-button {
  width: 34px;
  height: 34px;
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(7px);
}

.wardrobe-pose-controls svg {
  width: 15px;
}

@keyframes world-status-pulse {
  0%, 100% { transform: scale(0.85); opacity: 0.65; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes scene-backdrop-breathe {
  0% { transform: scale(1.015) translateX(-0.4%); }
  100% { transform: scale(1.045) translateX(0.7%); }
}

@keyframes ambience-steam {
  0% { opacity: 0; transform: translate(0, 18px) scale(0.6); }
  35% { opacity: 0.8; }
  100% { opacity: 0; transform: translate(11px, -34px) scale(1.25); }
}

@keyframes ambience-orbit {
  0%, 100% { opacity: 0.35; transform: translate(0, 0) scale(0.7); }
  45% { opacity: 1; transform: translate(12px, -9px) scale(1.15); }
}

@keyframes ambience-dust {
  0% { opacity: 0; transform: translateY(0) rotate(35deg); }
  25% { opacity: 0.7; }
  100% { opacity: 0; transform: translate(24px, 150px) rotate(35deg); }
}

@keyframes ambience-traffic {
  0% { transform: translateX(0); }
  100% { transform: translateX(1050px); }
}

@keyframes ambience-leaf {
  0% { opacity: 0; transform: translate(0, 0) rotate(0); }
  15% { opacity: 0.8; }
  100% { opacity: 0; transform: translate(80px, 340px) rotate(380deg); }
}

@keyframes ambience-spark {
  0% { opacity: 0; transform: translateY(250px) scale(0.5); }
  25% { opacity: 0.9; }
  100% { opacity: 0; transform: translate(24px, 110px) scale(1.2); }
}

@keyframes foreground-party-light {
  from { opacity: 0.45; transform: scale(0.82); }
  to { opacity: 1; transform: scale(1.12); }
}

@keyframes foreground-grass-sway {
  from { transform: rotate(-2deg); }
  to { transform: rotate(4deg); }
}

@keyframes foreground-camp-glow {
  from { filter: brightness(0.88); transform: translateY(1px) scale(0.96); }
  to { filter: brightness(1.18); transform: translateY(-2px) scale(1.03); }
}

@keyframes world-object-found {
  0% { transform: scale(0.72) rotate(-12deg); }
  70% { transform: scale(1.14) rotate(5deg); }
  100% { transform: scale(1) rotate(0); }
}

@keyframes result-seal-pop {
  0% { opacity: 0; transform: scale(0.45) rotate(-15deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes listen-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(36, 107, 75, 0); }
  50% { box-shadow: 0 0 0 6px rgba(36, 107, 75, 0.16); }
}

@keyframes status-progress-change {
  from { filter: brightness(1.45); }
  to { filter: brightness(1); }
}

@keyframes status-summary-enter {
  0% { opacity: 0; transform: translateY(-6px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes status-delta-pop {
  0% { opacity: 0; transform: translateY(4px) scale(0.82); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes status-icon-rise {
  0% { color: var(--green); transform: translateY(0) scale(1); }
  45% { color: #167249; transform: translateY(-3px) scale(1.14); }
  100% { color: var(--green); transform: translateY(0) scale(1); }
}

@keyframes status-icon-fall {
  0% { transform: translateY(0); }
  45% { color: #b44c38; transform: translateY(3px); }
  100% { transform: translateY(0); }
}

@keyframes mission-demo-step {
  0%, 42%, 100% { color: #648075; opacity: 0.42; transform: translateY(0) scale(0.92); }
  12%, 28% { color: var(--green-dark); opacity: 1; transform: translateY(-2px) scale(1.12); }
}

@keyframes mission-demo-arrow {
  0%, 100% { transform: translateX(-2px); }
  50% { transform: translateX(3px); }
}

@keyframes play-demo-step {
  0%, 31%, 100% { border-color: rgba(255, 255, 255, 0.9); transform: translateY(0) scale(0.96); }
  9%, 22% { border-color: var(--yellow); background: #fff9dd; transform: translateY(-8px) scale(1.04); }
}

@keyframes play-demo-step-replay {
  0%, 31%, 100% { border-color: rgba(255, 255, 255, 0.9); transform: translateY(0) scale(0.96); }
  9%, 22% { border-color: var(--yellow); background: #fff9dd; transform: translateY(-8px) scale(1.04); }
}

@keyframes demo-object-action {
  0%, 7%, 27%, 100% { color: var(--green-dark); transform: translate(0) rotate(0) scale(1); }
  11%, 20% { color: #9b6710; transform: var(--demo-object-transform, translateY(-8px) scale(1.1)); }
  23% { color: var(--green); transform: translateY(-2px) scale(1.06); }
}

@keyframes demo-action-check {
  0%, 14%, 28%, 100% { opacity: 0; transform: scale(0.45) rotate(-18deg); }
  18%, 24% { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes demo-dial-adjust {
  0%, 100% { transform: translateX(-42px) rotate(-10deg); }
  28% { transform: translateX(-16px) rotate(-3deg); }
  58%, 74% { transform: translateX(40px) rotate(8deg); }
}

@keyframes demo-dial-ring {
  0% { opacity: 0.9; transform: scale(0.75); }
  100% { opacity: 0; transform: scale(1.35); }
}

@keyframes play-demo-camera {
  from { transform: scale(1.03) translateX(-0.5%); }
  to { transform: scale(1.1) translateX(1.5%); }
}

@keyframes play-demo-pet-travel {
  0%, 7% { left: 4%; transform: translateY(0); }
  19%, 27% { left: 17%; transform: translateY(-4px); }
  43%, 51% { left: 43%; transform: translateY(0); }
  67%, 75% { left: 69%; transform: translateY(-4px); }
  90%, 100% { left: calc(92% - 76px); transform: translateY(0); }
}

@keyframes play-demo-pet-travel-replay {
  0%, 7% { left: 4%; transform: translateY(0); }
  19%, 27% { left: 17%; transform: translateY(-4px); }
  43%, 51% { left: 43%; transform: translateY(0); }
  67%, 75% { left: 69%; transform: translateY(-4px); }
  90%, 100% { left: calc(92% - 76px); transform: translateY(0); }
}

@keyframes demo-route-breathe {
  0%, 100% { opacity: 0.56; transform: scaleX(0.98); }
  50% { opacity: 1; transform: scaleX(1); }
}

@keyframes play-demo-pointer {
  0%, 100% { transform: translate(0, 5px) rotate(-14deg); }
  18% { transform: translate(10%, -14px) rotate(-8deg); }
  82% { transform: translate(260px, -14px) rotate(-8deg); }
}

@keyframes play-demo-pointer-replay {
  0%, 100% { transform: translate(0, 5px) rotate(-14deg); }
  18% { transform: translate(10%, -14px) rotate(-8deg); }
  82% { transform: translate(260px, -14px) rotate(-8deg); }
}

@keyframes departure-travel {
  0%, 10% { left: 3%; transform: translateY(0) scaleX(1); }
  28% { left: 22%; transform: translateY(-3px) scaleX(1); }
  54% { left: 51%; transform: translateY(0) scaleX(1); }
  78% { left: calc(92% - 66px); transform: translateY(-3px) scaleX(1); }
  88%, 100% { left: calc(92% - 66px); transform: translateY(0) scaleX(1); }
}

@keyframes departure-friend-bob {
  from { transform: translateY(2px); }
  to { transform: translateY(-3px); }
}

@keyframes departure-footprints {
  0% { opacity: 0; transform: translateX(0); }
  30%, 70% { opacity: 0.75; }
  100% { opacity: 0; transform: translateX(180px); }
}

@keyframes variant-beam {
  0% { opacity: 0.28; transform: translateX(-15px) rotate(13deg); }
  100% { opacity: 0.74; transform: translateX(16px) rotate(19deg); }
}

@keyframes variant-rain {
  0% { opacity: 0; transform: translateY(-20px) rotate(12deg); }
  20% { opacity: 0.85; }
  100% { opacity: 0; transform: translateY(390px) rotate(12deg); }
}

@keyframes variant-drift {
  0% { opacity: 0; transform: translateX(0); }
  12%, 82% { opacity: 0.68; }
  100% { opacity: 0; transform: translateX(1000px); }
}

@keyframes variant-traffic {
  0% { opacity: 0; transform: translateX(0); }
  10%, 88% { opacity: 0.78; }
  100% { opacity: 0; transform: translateX(1050px); }
}

@keyframes variant-rise {
  0% { opacity: 0; transform: translateY(16px) rotate(0); }
  24%, 72% { opacity: 0.86; }
  100% { opacity: 0; transform: translateY(-105px) rotate(18deg); }
}

@keyframes variant-twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.7) rotate(0); }
  50% { opacity: 0.95; transform: scale(1.3) rotate(45deg); }
}

.wardrobe-preview > div:last-child {
  position: absolute;
  z-index: 6;
  right: 14px;
  bottom: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-radius: 7px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.91);
  backdrop-filter: blur(9px);
}

.wardrobe-preview > div:last-child strong {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wardrobe-preview > div:last-child span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 10px;
}

.wardrobe-controls {
  min-width: 0;
}

.control-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  color: #405049;
  font-size: 12px;
  font-weight: 750;
}

.control-heading small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

.pet-avatar-options {
  margin: 0 0 19px;
}

.wardrobe-tabs {
  display: grid;
  margin-bottom: 12px;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}

.wardrobe-tab {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 750;
}

.wardrobe-tab.active {
  border-color: var(--green);
  color: var(--green-dark);
}

.wardrobe-tab svg {
  width: 15px;
}

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

.outfit-option {
  display: grid;
  min-width: 0;
  min-height: 72px;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px;
  background: #fff;
  text-align: left;
}

.outfit-option.active {
  border-color: var(--green);
  background: #eff7f2;
  box-shadow: inset 0 0 0 1px var(--green);
}

.outfit-option:disabled {
  background: #f5f6f5;
}

.outfit-swatch {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 7px;
  color: var(--green);
  background: var(--green-soft);
}

.outfit-swatch.coral { color: #a64431; background: var(--coral-soft); }
.outfit-swatch.blue { color: #285f9d; background: var(--blue-soft); }
.outfit-swatch.yellow { color: #8b600b; background: var(--yellow-soft); }
.outfit-swatch.plain { color: var(--muted); background: #eff2f0; }

.outfit-swatch svg {
  width: 18px;
}

.outfit-option strong,
.outfit-option small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.outfit-option strong {
  margin-bottom: 4px;
  font-size: 11px;
}

.outfit-option small {
  color: var(--muted);
  font-size: 9px;
}

.pet-name-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.species-options {
  display: grid;
  margin-bottom: 23px;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
}

.species-option {
  position: relative;
  display: grid;
  min-width: 0;
}

.species-option input,
.avatar-option input,
.friend-choice input,
.segmented input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.species-option span {
  display: grid;
  min-width: 0;
  min-height: 108px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.species-option img {
  width: 67px;
  height: 67px;
  border-radius: 50%;
  object-fit: cover;
}

.species-option input:checked + span {
  border-color: var(--green);
  color: var(--green-dark);
  background: var(--green-soft);
  box-shadow: inset 0 0 0 1px var(--green);
}

.avatar-options {
  display: grid;
  margin: 3px 0 22px;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.avatar-option {
  position: relative;
}

.avatar-option span {
  display: grid;
  aspect-ratio: 1 / 1;
  place-items: center;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 50%;
  background: var(--green-soft);
}

.avatar-option img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-option.person span {
  color: #fff;
  background: var(--blue);
  font-size: 20px;
  font-weight: 800;
}

.avatar-option:nth-child(2).person span { background: var(--coral); }
.avatar-option:nth-child(3).person span { background: var(--green); }
.avatar-option:nth-child(4).person span { background: var(--violet); }
.avatar-option:nth-child(5).person span { background: var(--cyan); }
.avatar-option:nth-child(6).person span { background: var(--pink); }

.avatar-option input:checked + span {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--ink);
}

.option-group {
  min-width: 0;
  margin: 0 0 22px;
  border: 0;
  padding: 0;
}

.option-group legend {
  width: 100%;
  margin-bottom: 10px;
}

.option-group legend small {
  color: var(--muted);
  font-weight: 500;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.segmented label + label {
  border-left: 1px solid var(--line);
}

.segmented span {
  display: grid;
  min-height: 42px;
  place-items: center;
  color: var(--muted);
  background: #fff;
  font-size: 12px;
  font-weight: 700;
}

.segmented input:checked + span {
  color: var(--green-dark);
  background: var(--green-soft);
}

.friend-picker {
  display: grid;
  max-height: 170px;
  overflow-y: auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.friend-choice {
  position: relative;
  min-width: 0;
}

.friend-choice > span {
  display: grid;
  min-width: 0;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px;
}

.friend-choice img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.friend-choice strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.friend-choice input:checked + span {
  border-color: var(--green);
  background: var(--green-soft);
  box-shadow: inset 0 0 0 1px var(--green);
}

.reward-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 16px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  color: var(--muted);
  font-size: 11px;
}

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

.reward-preview svg {
  width: 15px;
}

.toast-region {
  position: fixed;
  z-index: 100;
  right: 24px;
  bottom: 24px;
  display: grid;
  width: min(calc(100% - 32px), 340px);
  gap: 8px;
}

.toast {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid #c9d9d0;
  border-radius: 8px;
  padding: 13px 15px;
  color: var(--ink);
  background: #fff;
  box-shadow: var(--shadow);
  font-size: 13px;
  animation: toast-in 180ms ease-out;
}

.toast.error {
  border-color: #e2b9b9;
}

.toast svg {
  width: 19px;
  color: var(--green);
}

.toast.error svg {
  color: var(--red);
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1180px) {
  .home-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  }

  .pet-stage,
  .pet-presence,
  .care-panel {
    min-height: 470px;
  }

  .care-panel {
    padding: 20px;
  }

  .care-actions {
    grid-template-columns: repeat(2, 1fr);
  }

  .care-action {
    min-height: 74px;
    grid-template-columns: 30px 1fr;
    grid-template-rows: auto auto;
    justify-items: start;
    column-gap: 8px;
    padding: 8px;
  }

  .care-action .action-icon {
    grid-row: 1 / 3;
  }

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

@media (max-width: 960px) {
  .sidebar {
    width: 190px;
  }

  .app-main {
    margin-left: 190px;
  }

  .side-brand {
    margin-left: 7px;
  }

  .home-layout,
  .growth-layout {
    grid-template-columns: 1fr;
  }

  .care-panel {
    min-height: 390px;
  }

  .care-actions {
    grid-template-columns: repeat(4, 1fr);
  }

  .care-action {
    display: grid;
    min-height: 95px;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    justify-items: center;
  }

  .care-action .action-icon {
    grid-row: auto;
  }

  .home-scenes,
  .scene-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .friend-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body {
    padding-bottom: env(safe-area-inset-bottom);
  }

  .auth-screen {
    display: block;
    min-height: 100vh;
    background: #fff;
  }

  .auth-visual {
    min-height: 270px;
    padding: 24px;
  }

  .auth-visual > .brand {
    display: none;
  }

  .auth-copy {
    margin-top: 18px;
  }

  .auth-copy h1 {
    margin-bottom: 10px;
    font-size: 39px;
  }

  .auth-copy p:last-child {
    max-width: 58%;
    font-size: 13px;
  }

  .auth-pets {
    right: -24px;
    width: 58%;
    height: 84%;
  }

  .auth-visual::after {
    right: -25%;
    bottom: -190px;
    width: 95%;
  }

  .auth-panel {
    min-height: 0;
    padding: 30px 22px 24px;
  }

  .auth-panel-inner {
    width: 100%;
  }

  .auth-filing {
    position: static;
    margin-top: 24px;
  }

  .auth-mobile-brand {
    display: none;
  }

  .auth-tabs {
    width: 100%;
    margin-bottom: 28px;
  }

  #auth-heading h2 {
    font-size: 26px;
  }

  #auth-heading p {
    margin-bottom: 24px;
  }

  .sidebar {
    display: none;
  }

  .mobile-header {
    position: sticky;
    z-index: 15;
    top: 0;
    display: flex;
    height: 64px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(220, 227, 223, 0.86);
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
  }

  .mobile-header .brand {
    font-size: 16px;
  }

  .mobile-header .brand-mark {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .mobile-header .icon-button {
    width: 38px;
    height: 38px;
  }

  .app-main {
    margin-left: 0;
  }

  .view {
    width: 100%;
    padding: 24px 15px 102px;
  }

  .page-heading {
    min-height: 0;
    margin-bottom: 24px;
  }

  .page-heading h1 {
    font-size: 29px;
  }

  .page-subtitle {
    font-size: 13px;
  }

  .home-heading h1 {
    font-size: 25px;
  }

  .currency {
    height: 36px;
    padding: 0 11px;
    font-size: 13px;
  }

  .pet-stage,
  .pet-presence {
    min-height: 440px;
  }

  .sun {
    top: 35px;
    right: 30px;
    width: 48px;
    height: 48px;
  }

  .window-frame {
    left: 5%;
    width: 112px;
    height: 92px;
  }

  .shelf {
    right: 3%;
    width: 105px;
  }

  .plant {
    right: 4%;
    transform: scale(0.82);
    transform-origin: bottom;
  }

  .pet-presence > .pet-character {
    width: min(68%, 270px);
  }

  .pet-shadow {
    width: 170px;
  }

  .pet-bubble {
    top: 26px;
    max-width: 80%;
  }

  .care-panel {
    min-height: 405px;
    padding: 20px 17px;
  }

  .care-actions {
    gap: 7px;
  }

  .care-action {
    min-height: 90px;
  }

  .home-strip {
    margin-top: 30px;
  }

  .home-scenes,
  .scene-grid,
  .skill-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .home-scenes {
    display: flex;
    overflow-x: auto;
    margin-right: -15px;
    padding-right: 15px;
    gap: 10px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .home-scenes::-webkit-scrollbar {
    display: none;
  }

  .mini-scene {
    width: 280px;
    min-height: 105px;
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

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

  .skill-card {
    min-height: 210px;
    grid-template-rows: 104px minmax(0, 1fr);
    padding: 0;
  }

  .scene-card {
    min-height: 335px;
    grid-template-rows: 154px minmax(0, 1fr);
  }

  .scene-card-media {
    min-height: 154px;
  }

  .friend-search {
    width: 100%;
  }

  .growth-overview {
    grid-template-columns: 100px 1fr;
    gap: 16px;
    padding: 18px;
  }

  .growth-level {
    min-height: 126px;
  }

  .growth-level strong {
    font-size: 27px;
  }

  .milestones {
    gap: 5px;
  }

  .ability-summary {
    padding: 20px;
  }

  .timeline-item {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .timeline-item::before {
    left: 18px;
  }

  .timeline-icon {
    width: 38px;
    height: 38px;
  }

  .timeline time {
    grid-column: 2;
    padding-top: 0;
  }

  .account-zone {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-zone .danger-button {
    width: 100%;
  }

  .settings-filing {
    display: block;
  }

  .mobile-nav {
    position: fixed;
    z-index: 30;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    height: calc(70px + env(safe-area-inset-bottom));
    grid-template-columns: repeat(5, 1fr);
    border-top: 1px solid var(--line);
    padding: 6px 5px env(safe-area-inset-bottom);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(14px);
  }

  .mobile-nav .nav-item {
    display: grid;
    height: 56px;
    place-items: center;
    align-content: center;
    gap: 3px;
    border-radius: 7px;
    padding: 2px;
    font-size: 10px;
  }

  .mobile-nav .nav-item svg {
    width: 20px;
    height: 20px;
  }

  .modal {
    width: calc(100% - 20px);
    max-height: 88vh;
  }

  .modal > form {
    padding: 21px 17px;
  }

  .scene-modal > form {
    padding: 19px 17px 22px;
  }

  .scene-modal .modal-topbar {
    margin-bottom: 14px;
  }

  .expedition-progress {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 10px 11px;
  }

  .expedition-route {
    justify-self: end;
  }

  .expedition-route > span + span {
    margin-left: 14px;
  }

  .expedition-route > span + span::before {
    width: 15px;
  }

  .replay-label {
    display: none;
  }

  .round-event {
    grid-column: 1 / -1;
    grid-row: 2;
    border-top: 1px solid var(--line);
    border-left: 0;
    padding: 9px 0 0;
  }

  .expedition-route {
    grid-column: 2;
    grid-row: 1;
  }

  .scene-hero {
    min-height: 390px;
    margin: 0 -17px;
  }

  .scene-pet-character {
    top: auto;
    right: auto;
    bottom: 79px;
    left: clamp(51px, var(--pet-x), calc(100% - 51px));
    width: 102px;
  }

  .scene-pet-bubble {
    top: auto;
    right: auto;
    bottom: 185px;
    left: clamp(8px, calc(var(--pet-x) - 72px), calc(100% - 163px));
    max-width: 155px;
  }

  .scene-hotspot {
    top: 54px;
    width: 72px;
    min-height: 72px;
    padding: 5px;
  }

  .scene-hotspot > span {
    width: 25px;
    height: 25px;
  }

  .hotspot-1 {
    left: 4%;
  }

  .hotspot-2 {
    left: calc(50% - 36px);
  }

  .hotspot-3 {
    right: 4%;
  }

  .scene-hero-copy {
    right: 17px;
    bottom: 18px;
    left: 17px;
  }

  .scene-hero-copy p {
    font-size: 12px;
  }

  .activity-step {
    padding: 22px 0;
  }

  .mission-brief,
  .mission-playground,
  .challenge-board,
  .challenge-prompt,
  .challenge-options,
  .challenge-feedback,
  .activity-plan-grid {
    margin-left: 0;
  }

  .departure-demo {
    margin-left: 0;
  }

  .scene-dialog-actions {
    gap: 5px;
  }

  .narration-toggle {
    min-width: 38px;
    padding: 0 8px;
  }

  .narration-toggle span {
    display: none;
  }

  .play-console {
    grid-template-columns: 1fr;
  }

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

  .mission-picker,
  .challenge-options,
  .activity-plan-grid {
    grid-template-columns: 1fr;
  }

  .mission-option {
    min-height: 208px;
    grid-template-rows: 94px auto auto 27px;
  }

  .mission-option-media {
    height: 94px;
  }

  .mission-option .mission-mini-demo {
    gap: 8px;
  }

  .mission-brief,
  .challenge-board,
  .challenge-prompt,
  .challenge-options,
  .challenge-feedback,
  .activity-plan-grid {
    margin-left: 0;
  }

  .challenge-prompt {
    font-size: 14px;
  }

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

  .result-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .result-stats > span + span {
    border-left: 0;
  }

  .result-stats > span:nth-child(even) {
    border-left: 1px solid var(--line);
  }

  .result-stats > span:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .result-actions,
  .result-actions button {
    width: 100%;
  }

  .wardrobe-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .wardrobe-preview {
    min-height: 280px;
  }

  .wardrobe-pet-character {
    width: 190px;
  }

  .pet-name-fields {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .species-options {
    grid-template-columns: repeat(2, 1fr);
  }

  .species-option span {
    min-height: 98px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .friend-picker {
    grid-template-columns: 1fr;
  }

  .toast-region {
    right: 16px;
    bottom: 84px;
  }
}

@media (max-width: 390px) {
  .playground-heading {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .playground-status {
    grid-column: 2;
    justify-content: space-between;
  }

  .play-demo {
    min-height: 158px;
    gap: 5px;
    padding: 52px 6px 13px;
  }

  .play-demo .demo-action {
    min-width: 61px;
    padding-inline: 4px;
  }

  .play-demo .demo-action > small {
    max-width: 64px;
    font-size: 7px;
  }

  .demo-action-object {
    width: 25px;
    height: 24px;
  }

  .demo-action-object > svg:first-child {
    width: 19px;
    height: 19px;
  }

  .demo-pet-character {
    bottom: 26px;
    width: 62px;
    height: 62px;
  }

  .departure-node {
    min-width: 49px;
  }

  .departure-time {
    left: 21%;
  }

  .departure-friends {
    left: 51%;
  }

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

  .care-actions {
    grid-template-columns: repeat(2, 1fr);
  }

  .care-action {
    min-height: 72px;
    grid-template-columns: 32px 1fr;
    grid-template-rows: auto auto;
    justify-items: start;
    padding: 8px 10px;
  }

  .care-action .action-icon {
    grid-row: 1 / 3;
  }

  .level-summary {
    display: none;
  }

  .outfit-options {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
