:root {
  --ink: #544b4d;
  --ink-soft: #817476;
  --ink-faint: #aa9b9a;
  --paper: #fffaf1;
  --paper-soft: #f7eddd;
  --peach: #e99b8c;
  --peach-deep: #d77e76;
  --peach-pale: #f8d7c7;
  --sage: #7f9f7d;
  --sage-deep: #5e7b65;
  --sage-pale: #dfe9d2;
  --gold: #e5b969;
  --line: rgba(105, 83, 78, 0.12);
  --shadow: 0 18px 48px rgba(103, 77, 69, 0.13);
  --shadow-soft: 0 10px 28px rgba(103, 77, 69, 0.09);
  --round-xl: 30px;
  --round-lg: 23px;
  --round-md: 16px;
  --font-body: "Microsoft YaHei UI", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", sans-serif;
  --font-display: "STKaiti", "KaiTi", "Songti SC", "Noto Serif CJK SC", Georgia, serif;
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #f2e8d8;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background: #f2e8d8;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.modal-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(111, 147, 116, 0.55);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.app {
  --sky-top: #eed5c5;
  --sky-mid: #f1e6d0;
  --sky-bottom: #f8f0df;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  min-height: 720px;
  overflow: hidden;
  padding: 16px clamp(16px, 2vw, 32px) 16px;
  isolation: isolate;
  background:
    radial-gradient(circle at 10% 8%, rgba(255, 252, 236, 0.9), transparent 28%),
    linear-gradient(145deg, #f5e7d6 0%, #eadfce 50%, #e7ddcd 100%);
}

.app.phase-dawn {
  --sky-top: #e8c8bf;
  --sky-mid: #f3ddc5;
  --sky-bottom: #f5ead7;
}

.app.phase-day {
  --sky-top: #d7e6da;
  --sky-mid: #e9ead3;
  --sky-bottom: #f7edd9;
}

.app.phase-dusk {
  --sky-top: #d5b6b4;
  --sky-mid: #e9c5b4;
  --sky-bottom: #f0dac6;
}

.app.phase-night {
  --sky-top: #46536d;
  --sky-mid: #667183;
  --sky-bottom: #a6989b;
  color: #efe9df;
  background:
    radial-gradient(circle at 68% 10%, rgba(147, 169, 192, 0.28), transparent 32%),
    linear-gradient(145deg, #3f465c 0%, #5b5367 52%, #806b6e 100%);
}

.ambient {
  position: fixed;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.72;
  transition: background 2s ease, opacity 2s ease;
}

.glow-one {
  top: -22vw;
  left: 4vw;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(255, 244, 210, 0.47), transparent 66%);
}

.glow-two {
  right: -25vw;
  bottom: -32vw;
  width: 74vw;
  height: 74vw;
  background: radial-gradient(circle, rgba(210, 164, 151, 0.23), transparent 66%);
}

.phase-night .glow-one {
  opacity: 0.25;
  background: radial-gradient(circle, rgba(150, 180, 204, 0.35), transparent 66%);
}

.phase-night .glow-two {
  opacity: 0.3;
  background: radial-gradient(circle, rgba(229, 177, 157, 0.26), transparent 66%);
}

.ambient-cloud {
  position: absolute;
  width: 240px;
  height: 66px;
  border-radius: 50%;
  background: rgba(255, 252, 239, 0.25);
  filter: blur(15px);
  animation: ambient-cloud-drift 36s linear infinite;
}

.cloud-one {
  top: 11%;
  left: -280px;
}

.cloud-two {
  top: 48%;
  left: -340px;
  width: 320px;
  opacity: 0.45;
  animation-delay: -17s;
  animation-duration: 44s;
}

.cloud-three {
  top: 81%;
  left: -300px;
  width: 220px;
  opacity: 0.3;
  animation-delay: -28s;
  animation-duration: 40s;
}

.phase-night .ambient-cloud {
  background: rgba(188, 205, 220, 0.13);
}

.star-field {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 2s ease;
}

.phase-night .star-field {
  opacity: 0.95;
}

.sky-star {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fff4cf;
  box-shadow: 0 0 8px rgba(255, 241, 201, 0.85);
  animation: star-twinkle var(--duration, 4s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.14;
  mix-blend-mode: soft-light;
  background-image:
    repeating-radial-gradient(circle at 12% 18%, rgba(80, 60, 58, 0.18) 0 0.6px, transparent 0.8px 4px),
    repeating-radial-gradient(circle at 79% 73%, rgba(255, 255, 255, 0.3) 0 0.5px, transparent 0.8px 5px);
  background-size: 13px 17px, 19px 21px;
}

.topbar {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto minmax(210px, 1fr);
  align-items: center;
  flex: 0 0 58px;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: max-content;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  margin-right: 10px;
  place-items: center;
  color: #edb2a2;
  border: 1px solid rgba(123, 97, 89, 0.08);
  border-radius: 15px;
  background: rgba(255, 250, 239, 0.66);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 7px 18px rgba(112, 85, 78, 0.08);
  backdrop-filter: blur(12px);
}

.brand-mark svg {
  width: 36px;
  height: 36px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-copy strong {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.brand-copy small {
  margin-top: 7px;
  color: var(--ink-faint);
  font-size: 9px;
  letter-spacing: 0.42em;
}

.phase-night .brand,
.phase-night .brand-copy strong {
  color: #fff8ec;
}

.phase-night .brand-copy small {
  color: rgba(255, 248, 236, 0.56);
}

.phase-night .brand-mark {
  color: #edb2a2;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 247, 235, 0.13);
}

.resources {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 5px;
  border: 1px solid rgba(112, 89, 82, 0.08);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 8px 24px rgba(96, 76, 69, 0.07);
  backdrop-filter: blur(18px);
}

.phase-night .resources {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(40, 44, 58, 0.33);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 24px rgba(25, 27, 38, 0.14);
}

.resource-pill,
.day-pill {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
}

.resource-pill {
  gap: 5px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.resource-pill:hover {
  background: rgba(255, 255, 255, 0.46);
  transform: translateY(-1px);
}

.phase-night .resource-pill:hover {
  background: rgba(255, 255, 255, 0.08);
}

.resource-icon {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
}

.star-icon {
  background: #e8b859;
  clip-path: polygon(50% 0%, 61% 36%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 37%);
  filter: drop-shadow(0 2px 2px rgba(201, 150, 55, 0.25));
}

.dew-icon {
  width: 12px;
  height: 16px;
  border-radius: 66% 34% 62% 38% / 72% 45% 55% 28%;
  background: linear-gradient(150deg, #e3f8f2, #7dbeb5);
  transform: rotate(45deg);
  box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.82);
}

.resource-value {
  min-width: 16px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

.resource-label {
  color: var(--ink-faint);
  font-size: 10px;
}

.phase-night .resource-value {
  color: #fff9eb;
}

.phase-night .resource-label {
  color: rgba(255, 249, 235, 0.55);
}

.day-pill {
  gap: 7px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.45);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.phase-night .day-pill {
  color: rgba(255, 249, 235, 0.75);
  background: rgba(255, 255, 255, 0.08);
}

.weather-symbol {
  color: #dca568;
  font-size: 13px;
}

.day-divider {
  width: 1px;
  height: 12px;
  background: rgba(92, 78, 74, 0.16);
}

.top-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
}

.round-button {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  color: var(--ink-soft);
  border: 1px solid rgba(112, 89, 82, 0.08);
  border-radius: 13px;
  background: rgba(255, 250, 241, 0.56);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 5px 14px rgba(96, 76, 69, 0.06);
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: transform 0.22s var(--ease-spring), background 0.2s ease, color 0.2s ease;
}

.round-button:hover {
  color: var(--peach-deep);
  background: rgba(255, 251, 243, 0.88);
  transform: translateY(-2px) rotate(-2deg);
}

.round-button:active {
  transform: scale(0.94);
}

.round-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.phase-night .round-button {
  color: rgba(255, 248, 235, 0.75);
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(37, 41, 55, 0.27);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 5px 14px rgba(25, 27, 38, 0.12);
}

.phase-night .round-button:hover {
  color: #f7cbbd;
  background: rgba(255, 255, 255, 0.12);
}

.badge {
  position: absolute;
  top: 5px;
  right: 6px;
  width: 6px;
  height: 6px;
  border: 1.5px solid #fff8ed;
  border-radius: 50%;
  background: #dc837a;
  box-shadow: 0 0 0 2px rgba(220, 131, 122, 0.2);
}

.sound-off-icon {
  display: none;
}

.is-muted .sound-on-icon {
  display: none;
}

.is-muted .sound-off-icon {
  display: block;
}

.layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 262px minmax(480px, 1fr) 286px;
  flex: 1 1 auto;
  gap: clamp(12px, 1.3vw, 20px);
  width: 100%;
  max-width: 1600px;
  min-height: 0;
  margin: 0 auto;
}

.side-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  gap: 12px;
}

.panel {
  position: relative;
  border: 1px solid rgba(116, 91, 85, 0.09);
  border-radius: var(--round-lg);
  background:
    linear-gradient(150deg, rgba(255, 252, 246, 0.82), rgba(255, 248, 238, 0.66));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.83), var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.phase-night .panel {
  color: #f5eee3;
  border-color: rgba(255, 255, 255, 0.09);
  background: linear-gradient(150deg, rgba(47, 51, 66, 0.77), rgba(74, 64, 73, 0.56));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 12px 30px rgba(22, 24, 34, 0.16);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-faint);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.phase-night .section-heading {
  color: rgba(255, 247, 234, 0.5);
}

.leaf-stamp {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: var(--sage);
  border-radius: 50%;
  background: var(--sage-pale);
  font-family: serif;
  font-size: 15px;
}

.soul-card {
  flex: 0 0 auto;
  padding: 18px 18px 15px;
  overflow: hidden;
}

.soul-card::after {
  position: absolute;
  top: -46px;
  right: -54px;
  width: 140px;
  height: 140px;
  border: 1px solid rgba(232, 172, 153, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 16px rgba(232, 172, 153, 0.045), 0 0 0 33px rgba(232, 172, 153, 0.03);
  content: "";
  pointer-events: none;
}

.soul-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.mini-portrait {
  position: relative;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(218, 156, 141, 0.28);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 64%, #fff7ea 0 45%, transparent 46%),
    linear-gradient(145deg, #f8d7c4, #f4e9d4);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.75);
}

.mini-ear {
  position: absolute;
  top: 8px;
  width: 17px;
  height: 22px;
  border-radius: 80% 20% 55% 45%;
  background: #efb09e;
}

.mini-ear-left {
  left: 9px;
  transform: rotate(-22deg);
}

.mini-ear-right {
  right: 9px;
  transform: scaleX(-1) rotate(-22deg);
}

.mini-face {
  position: absolute;
  z-index: 1;
  top: 17px;
  left: 11px;
  width: 30px;
  height: 27px;
  border-radius: 48% 48% 56% 56%;
  background: #fff7e9;
  box-shadow: 0 3px 8px rgba(121, 86, 77, 0.12);
}

.mini-face i {
  position: absolute;
  top: 10px;
  width: 2.5px;
  height: 3.5px;
  border-radius: 50%;
  background: #645455;
}

.mini-face i:first-child {
  left: 8px;
}

.mini-face i:nth-child(2) {
  right: 8px;
}

.mini-face b {
  position: absolute;
  bottom: 5px;
  left: 13px;
  width: 5px;
  height: 3px;
  border-bottom: 1.5px solid #aa7b73;
  border-radius: 50%;
}

.soul-heading h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.soul-subtitle {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 5px 0 0;
  color: var(--ink-faint);
  font-size: 10px;
}

.online-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8fb183;
  box-shadow: 0 0 0 3px rgba(143, 177, 131, 0.13);
}

.soul-quote {
  min-height: 52px;
  margin: 15px 0 14px;
  padding: 12px 13px;
  color: var(--ink-soft);
  border-left: 2px solid rgba(231, 163, 145, 0.58);
  border-radius: 0 12px 12px 0;
  background: rgba(247, 237, 221, 0.58);
  font-family: var(--font-display);
  font-size: 12px;
  line-height: 1.65;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.soul-quote.is-changing {
  opacity: 0;
  transform: translateY(4px);
}

.phase-night .soul-quote {
  color: rgba(255, 247, 234, 0.67);
  background: rgba(255, 255, 255, 0.055);
}

.affection-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.affection-row > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.eyebrow {
  color: var(--ink-faint);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.phase-night .eyebrow {
  color: rgba(255, 247, 234, 0.43);
}

.affection-row strong {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.08em;
}

.heart-meter {
  display: flex;
  gap: 3px;
  min-height: 14px;
}

.heart-meter i {
  position: relative;
  display: inline-block;
  width: 11px;
  height: 10px;
  opacity: 0.2;
  transform: rotate(-45deg) scale(0.82);
  background: #df9189;
  transition: opacity 0.4s ease, transform 0.4s var(--ease-spring);
}

.heart-meter i::before,
.heart-meter i::after {
  position: absolute;
  width: 11px;
  height: 10px;
  border-radius: 50%;
  background: inherit;
  content: "";
}

.heart-meter i::before {
  top: -5px;
  left: 0;
}

.heart-meter i::after {
  top: 0;
  left: 5px;
}

.heart-meter i.is-filled {
  opacity: 1;
  transform: rotate(-45deg) scale(1);
}

.bond-track {
  height: 5px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(174, 141, 130, 0.13);
}

.bond-track span {
  display: block;
  width: 24%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #edb09f, #de8d86);
  box-shadow: 0 0 8px rgba(222, 141, 134, 0.3);
  transition: width 0.7s var(--ease-spring);
}

.bond-caption {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  color: var(--ink-faint);
  font-size: 9px;
}

.phase-night .bond-caption,
.phase-night .soul-subtitle {
  color: rgba(255, 247, 234, 0.43);
}

.stats-card {
  flex: 1 1 auto;
  min-height: 256px;
  padding: 17px 18px 14px;
}

.text-button {
  padding: 0;
  color: var(--ink-faint);
  border: 0;
  background: transparent;
  font-size: 9px;
  cursor: pointer;
  letter-spacing: 0.03em;
}

.text-button:hover {
  color: var(--peach-deep);
}

.stat-list {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.8vh, 16px);
  margin-top: clamp(13px, 2.2vh, 20px);
}

.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.stat-name {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 11px;
}

.phase-night .stat-name {
  color: rgba(255, 247, 234, 0.68);
}

.stat-value {
  color: var(--ink-faint);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.stat-icon {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: #f7e3d3;
}

.icon-berry::before {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50% 50% 48% 48%;
  background: #dc8e82;
  box-shadow: -2px -2px 0 -1px #e7a89b;
  content: "";
}

.icon-heart::before {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 6px;
  height: 6px;
  transform: rotate(-45deg);
  border-radius: 1px;
  background: #e59b98;
  content: "";
}

.icon-heart::after {
  position: absolute;
  top: 3px;
  left: 5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e59b98;
  box-shadow: 3px 3px 0 #e59b98;
  content: "";
}

.icon-spark::before {
  position: absolute;
  inset: 4px;
  background: #dbb763;
  clip-path: polygon(50% 0, 61% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  content: "";
}

.icon-bubble::before,
.icon-bubble::after {
  position: absolute;
  border: 1px solid #7bb2ad;
  border-radius: 50%;
  content: "";
}

.icon-bubble::before {
  top: 4px;
  left: 4px;
  width: 7px;
  height: 7px;
}

.icon-bubble::after {
  right: 3px;
  bottom: 3px;
  width: 4px;
  height: 4px;
}

.stat-track {
  height: 4px;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(158, 131, 122, 0.12);
}

.stat-track span {
  display: block;
  width: 50%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #9dbb90, #c7d8a9);
  transition: width 0.65s var(--ease-spring), background 0.5s ease;
}

.stat-item[data-stat="mood"] .stat-track span {
  background: linear-gradient(90deg, #e6a39e, #f2c3b8);
}

.stat-item[data-stat="energy"] .stat-track span {
  background: linear-gradient(90deg, #e0bb6e, #f1d99d);
}

.stat-item[data-stat="clean"] .stat-track span {
  background: linear-gradient(90deg, #86b9b3, #b5d9d3);
}

.stat-item.is-low .stat-track span {
  background: linear-gradient(90deg, #d27e76, #e6a78f);
  animation: low-stat-pulse 1.6s ease-in-out infinite;
}

.inventory-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: clamp(14px, 2.4vh, 24px);
  padding-top: 11px;
  color: var(--ink-faint);
  border-top: 1px dashed rgba(110, 87, 80, 0.13);
  font-size: 10px;
}

.inventory-note strong {
  margin-left: auto;
  color: var(--ink-soft);
  font-size: 10px;
}

.phase-night .inventory-note {
  border-color: rgba(255, 255, 255, 0.1);
}

.phase-night .inventory-note strong {
  color: rgba(255, 247, 234, 0.7);
}

.berry-stack {
  position: relative;
  width: 25px;
  height: 16px;
}

.berry-stack i {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50% 50% 45% 45%;
  background: #da8f83;
  box-shadow: inset 2px 1px 2px rgba(255, 255, 255, 0.26);
}

.berry-stack i:first-child {
  left: 2px;
  bottom: 1px;
}

.berry-stack i:nth-child(2) {
  right: 2px;
  bottom: 1px;
  background: #c97f7a;
}

.berry-stack i:nth-child(3) {
  top: 0;
  left: 8px;
  background: #e29b8d;
}

.tiny-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 0 8px;
  color: var(--ink-faint);
  font-size: 9px;
  line-height: 1.55;
}

.tiny-note p {
  margin: 0;
}

.tiny-sun {
  color: var(--gold);
}

.phase-night .tiny-note {
  color: rgba(255, 247, 234, 0.46);
}

.world-column {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  gap: 11px;
}

.mobile-stats {
  display: none;
}

.scene {
  position: relative;
  flex: 1 1 auto;
  min-height: 440px;
  overflow: hidden;
  border: 1px solid rgba(104, 87, 78, 0.12);
  border-radius: var(--round-xl);
  background:
    radial-gradient(circle at 74% 16%, rgba(255, 246, 206, 0.75), transparent 19%),
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 55%, var(--sky-bottom) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), var(--shadow);
  isolation: isolate;
  transition: background 2s ease;
}

.scene::after {
  position: absolute;
  z-index: 11;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: inherit;
  box-shadow: inset 0 0 70px rgba(86, 66, 62, 0.06);
  content: "";
  pointer-events: none;
}

.scene-sky {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
}

.scene-sky::after {
  position: absolute;
  inset: 0 0 28%;
  opacity: 0;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255, 247, 215, 0.86) 0 1px, transparent 1.6px),
    radial-gradient(circle at 64% 9%, rgba(255, 247, 215, 0.7) 0 1px, transparent 1.4px),
    radial-gradient(circle at 83% 31%, rgba(255, 247, 215, 0.62) 0 1.2px, transparent 1.8px),
    radial-gradient(circle at 36% 42%, rgba(255, 247, 215, 0.72) 0 0.8px, transparent 1.3px),
    radial-gradient(circle at 48% 24%, rgba(255, 247, 215, 0.56) 0 1px, transparent 1.5px);
  background-size: 97px 83px, 131px 109px, 173px 137px, 211px 157px, 151px 127px;
  content: "";
  transition: opacity 1.8s ease;
  pointer-events: none;
}

.phase-night .scene-sky::after {
  opacity: 0.72;
}

.sun-moon {
  position: absolute;
  top: 9%;
  right: 13%;
  width: 80px;
  height: 80px;
}

.sun,
.moon {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  transition: opacity 1.8s ease, transform 2.4s var(--ease-spring);
}

.sun {
  background: radial-gradient(circle at 40% 35%, #fff8cc 0 16%, #f7d88d 51%, #eeb977 68%);
  box-shadow: 0 0 55px rgba(247, 208, 135, 0.5), 0 0 110px rgba(249, 221, 163, 0.28);
  animation: sun-breathe 6s ease-in-out infinite;
}

.sun::before,
.sun::after {
  position: absolute;
  inset: -17px;
  border: 1px solid rgba(255, 242, 190, 0.28);
  border-radius: 50%;
  content: "";
}

.sun::after {
  inset: -31px;
  border-color: rgba(255, 242, 190, 0.14);
}

.moon {
  opacity: 0;
  transform: translateY(22px) scale(0.8);
  background: radial-gradient(circle at 40% 36%, #fffce8 0 37%, #f3e7bd 62%, #dbca9b 100%);
  box-shadow: 0 0 34px rgba(255, 243, 202, 0.55), 0 0 90px rgba(224, 211, 173, 0.22);
}

.moon::before {
  position: absolute;
  top: 22px;
  left: 51px;
  width: 64px;
  height: 62px;
  border-radius: 50%;
  background: rgba(91, 101, 126, 0.93);
  content: "";
  box-shadow: -2px 2px 4px rgba(80, 83, 107, 0.1);
}

.phase-night .sun,
.phase-dusk .sun {
  opacity: 0;
  transform: translateY(30px) scale(0.8);
}

.phase-day .sun {
  opacity: 1;
}

.phase-dawn .sun {
  opacity: 0.7;
  transform: translateY(17px);
}

.phase-night .moon {
  opacity: 1;
  transform: none;
}

.scene-cloud {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 250, 238, 0.52);
  filter: blur(0.2px);
  animation: scene-cloud-drift 26s ease-in-out infinite alternate;
}

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

.scene-cloud-a {
  top: 20%;
  left: 7%;
  width: 160px;
  height: 31px;
  opacity: 0.57;
}

.scene-cloud-a::before {
  left: 25px;
  bottom: 9px;
  width: 74px;
  height: 52px;
}

.scene-cloud-a::after {
  right: 24px;
  bottom: 3px;
  width: 62px;
  height: 41px;
}

.scene-cloud-b {
  top: 33%;
  right: 1%;
  width: 120px;
  height: 22px;
  opacity: 0.34;
  animation-delay: -9s;
  animation-duration: 34s;
}

.scene-cloud-b::before {
  left: 16px;
  bottom: 4px;
  width: 50px;
  height: 36px;
}

.scene-cloud-b::after {
  right: 17px;
  bottom: 2px;
  width: 48px;
  height: 31px;
}

.scene-cloud-c {
  top: 52%;
  left: -20px;
  width: 110px;
  height: 18px;
  opacity: 0.24;
  animation-delay: -21s;
}

.scene-cloud-c::before {
  left: 24px;
  bottom: 1px;
  width: 50px;
  height: 32px;
}

.scene-cloud-c::after {
  right: 9px;
  bottom: 0;
  width: 38px;
  height: 25px;
}

.phase-night .scene-cloud {
  opacity: 0.12;
  background: #dbe4e9;
}

.mountain {
  position: absolute;
  bottom: 19%;
  opacity: 0.15;
  filter: blur(0.4px);
}

.mountain-back {
  left: 3%;
  width: 58%;
  height: 34%;
  background: #7c9a89;
  clip-path: polygon(0 100%, 0 77%, 14% 55%, 26% 70%, 43% 34%, 58% 66%, 72% 48%, 89% 72%, 100% 57%, 100% 100%);
}

.mountain-front {
  right: -5%;
  width: 65%;
  height: 25%;
  background: #7b9181;
  clip-path: polygon(0 100%, 0 75%, 15% 45%, 29% 70%, 45% 35%, 61% 72%, 78% 44%, 100% 70%, 100% 100%);
}

.phase-night .mountain {
  opacity: 0.09;
}

.island-art {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: saturate(0.96);
  transition: filter 2s ease;
}

.phase-night .island-art {
  filter: saturate(0.76) brightness(0.69) hue-rotate(3deg);
}

.phase-dusk .island-art {
  filter: saturate(0.88) sepia(0.08) brightness(0.94);
}

.pet-body-wrap {
  transform-box: fill-box;
  transform-origin: 50% 94%;
  animation: pet-breathe 4.2s ease-in-out infinite;
}

.pet-scene {
  cursor: pointer;
}

.tail {
  transform-box: fill-box;
  transform-origin: 10% 70%;
  animation: tail-wag 3.2s ease-in-out infinite;
}

.head {
  transform-box: fill-box;
  transform-origin: 50% 90%;
  animation: head-float 6.3s ease-in-out infinite;
}

.eyes {
  transform-box: fill-box;
  transform-origin: center;
  animation: eye-blink 5.8s infinite;
}

.sleep-eye {
  opacity: 0;
}

.mouth-sleep {
  opacity: 0;
}

.sleep-z {
  opacity: 0;
}

.sleep-z text {
  fill: #7a8191;
  font-family: var(--font-display);
  font-weight: 700;
}

.sleep-z text:first-child {
  font-size: 27px;
}

.sleep-z text:nth-child(2) {
  font-size: 35px;
}

.sleep-z text:nth-child(3) {
  font-size: 43px;
}

.heart-effect,
.sparkles-effect {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.pet-scene.is-happy .heart-effect {
  animation: heart-pop 1.5s var(--ease-spring) both;
}

.pet-scene.is-happy .sparkles-effect {
  animation: sparkle-pop 1.6s ease both;
}

.pet-scene.is-pat .pet-body-wrap {
  animation: pet-squish 0.7s var(--ease-spring);
}

.pet-scene.is-pat .tail {
  animation: tail-happy 0.38s ease-in-out 6;
}

.pet-scene.is-eating .pet-body-wrap {
  animation: pet-eat 0.52s ease-in-out 4;
}

.pet-scene.is-playing .pet-body-wrap {
  animation: pet-jump 0.8s var(--ease-spring) 2;
}

.pet-scene.is-bathing .pet-body-wrap {
  animation: pet-shiver 0.24s ease-in-out 7;
}

.pet-scene.is-sleeping .eyes {
  display: none;
}

.pet-scene.is-sleeping .sleep-eye {
  opacity: 1;
}

.pet-scene.is-sleeping .mouth-happy {
  opacity: 0;
}

.pet-scene.is-sleeping .mouth-sleep {
  opacity: 1;
}

.pet-scene.is-sleeping .sleep-z {
  opacity: 1;
}

.pet-scene.is-sleeping .pet-body-wrap {
  animation-duration: 6.5s;
}

.pet-scene.is-sleeping .tail {
  animation-duration: 5.6s;
  animation-timing-function: ease-in-out;
}

.pet-scene.is-sleeping .head {
  transform: translateY(8px) rotate(2deg);
  animation: none;
  transition: transform 0.8s var(--ease-spring);
}

.pet-scene[data-mood="sad"] .head {
  animation-duration: 8s;
}

.pet-scene[data-mood="sad"] .tail {
  animation-duration: 6.4s;
}

.pet-scene[data-mood="sad"] .cheeks {
  opacity: 0.45;
}

.pet-scene[data-mood="tired"] .eye {
  transform: scaleY(0.64);
  transform-box: fill-box;
  transform-origin: center;
}

.speech-bubble {
  position: absolute;
  z-index: 15;
  top: 16%;
  left: 50%;
  max-width: min(310px, 62%);
  padding: 10px 16px 11px;
  color: var(--ink-soft);
  border: 1px solid rgba(116, 91, 85, 0.09);
  border-radius: 16px 16px 16px 5px;
  background: rgba(255, 251, 242, 0.88);
  box-shadow: 0 10px 28px rgba(92, 73, 67, 0.12);
  font-family: var(--font-display);
  font-size: clamp(11px, 1vw, 13px);
  line-height: 1.55;
  text-align: center;
  transform: translateX(-50%) translateY(-8px);
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(12px);
  transition: opacity 0.35s ease, transform 0.45s var(--ease-spring);
}

.speech-bubble.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.speech-bubble::after {
  position: absolute;
  bottom: -8px;
  left: 28px;
  width: 14px;
  height: 14px;
  border-right: 1px solid rgba(116, 91, 85, 0.07);
  border-bottom: 1px solid rgba(116, 91, 85, 0.07);
  background: inherit;
  content: "";
  transform: rotate(45deg);
}

.scene-tag {
  position: absolute;
  z-index: 16;
  top: 18px;
  left: 19px;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 11px;
  color: var(--ink-soft);
  border: 1px solid rgba(116, 91, 85, 0.09);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.65);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
  font-size: 9px;
  font-weight: 600;
  backdrop-filter: blur(12px);
}

.phase-night .scene-tag {
  color: rgba(255, 247, 234, 0.72);
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(45, 49, 64, 0.28);
}

.pirate-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--peach);
}

.scene-footer {
  position: absolute;
  z-index: 16;
  right: 22px;
  bottom: 13px;
  left: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(84, 75, 77, 0.52);
  font-size: 8px;
  pointer-events: none;
}

.phase-night .scene-footer {
  color: rgba(255, 247, 234, 0.42);
}

.scene-progress {
  width: 72px;
  height: 3px;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(94, 81, 77, 0.11);
}

.scene-progress i {
  display: block;
  width: 33%;
  height: 100%;
  border-radius: inherit;
  background: rgba(216, 136, 120, 0.58);
}

.dew-orb {
  position: absolute;
  z-index: 17;
  top: 49%;
  left: 19%;
  width: 26px;
  height: 33px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 66% 34% 62% 38% / 72% 45% 55% 28%;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.95), rgba(118, 190, 179, 0.85));
  box-shadow: inset 3px 3px 7px rgba(255, 255, 255, 0.75), 0 8px 24px rgba(91, 155, 149, 0.34);
  cursor: pointer;
  transform: rotate(9deg);
  animation: dew-float 3.6s ease-in-out infinite;
}

.dew-orb:hover {
  filter: brightness(1.08);
}

.dew-orb-shine {
  position: absolute;
  top: 6px;
  left: 7px;
  width: 6px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  transform: rotate(-19deg);
}

.dew-spark {
  position: absolute;
  color: #fff6c5;
  text-shadow: 0 0 8px rgba(255, 243, 186, 0.8);
  animation: sparkle-blink 2s ease-in-out infinite;
}

.dew-spark-one {
  top: -16px;
  left: -17px;
  font-size: 15px;
}

.dew-spark-two {
  right: -16px;
  bottom: -12px;
  font-size: 11px;
  animation-delay: -0.8s;
}

.weather-layer,
.firefly-field {
  position: absolute;
  z-index: 10;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.rain-drop {
  position: absolute;
  top: -80px;
  width: 1.5px;
  height: var(--length, 42px);
  border-radius: 2px;
  background: linear-gradient(180deg, transparent, rgba(217, 235, 235, 0.68));
  animation: rain-fall var(--speed, 1.4s) linear infinite;
  animation-delay: var(--delay, 0s);
  transform: rotate(8deg);
}

.petal {
  position: absolute;
  top: -30px;
  width: 9px;
  height: 6px;
  border-radius: 100% 0 100% 0;
  background: rgba(246, 188, 169, 0.75);
  animation: petal-fall var(--speed, 9s) linear infinite;
  animation-delay: var(--delay, 0s);
}

.wind-wisp {
  position: absolute;
  left: -30%;
  width: var(--width, 160px);
  height: 1px;
  border-radius: 50%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  animation: wind-drift var(--speed, 9s) linear infinite;
  animation-delay: var(--delay, 0s);
}

.bath-bubble,
.feed-crumb,
.pat-spark {
  position: absolute;
  z-index: 18;
  pointer-events: none;
}

.bath-bubble {
  width: 14px;
  height: 14px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 50%;
  background: rgba(185, 231, 226, 0.28);
  box-shadow: inset 2px 2px 3px rgba(255, 255, 255, 0.65);
  animation: bubble-rise var(--duration, 2.2s) ease-out forwards;
}

.feed-crumb {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #dd8e82;
  animation: crumb-fly 0.9s ease-out forwards;
}

.pat-spark {
  color: var(--gold);
  font-size: 15px;
  animation: pat-spark-fly 1s ease-out forwards;
}

.ambient-firefly {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff0ad;
  box-shadow: 0 0 8px 3px rgba(255, 231, 140, 0.48);
  opacity: 0;
  animation: ambient-firefly-drift var(--duration, 10s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.phase-night .ambient-firefly,
.phase-dusk .ambient-firefly {
  opacity: 0.8;
}

.action-dock {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  flex: 0 0 78px;
  gap: 7px;
  padding: 7px;
  border: 1px solid rgba(116, 91, 85, 0.09);
  border-radius: 22px;
  background: rgba(255, 250, 241, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.phase-night .action-dock {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(42, 45, 59, 0.47);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 10px 28px rgba(22, 24, 34, 0.16);
}

.action-button {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  min-width: 0;
  padding: 6px 8px;
  overflow: hidden;
  color: var(--ink-soft);
  border: 0;
  border-radius: 15px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.22s var(--ease-spring);
}

.phase-night .action-button {
  color: rgba(255, 247, 234, 0.75);
}

.action-button:hover {
  background: rgba(255, 255, 255, 0.58);
  transform: translateY(-2px);
}

.phase-night .action-button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.action-button:active {
  transform: translateY(1px) scale(0.97);
}

.action-button.is-cooldown {
  opacity: 0.52;
}

.action-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #8a997d;
  border-radius: 10px;
  background: rgba(211, 227, 200, 0.66);
}

.action-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.action-button:nth-child(2) .action-icon {
  color: #c67d75;
  background: rgba(247, 211, 198, 0.62);
}

.action-button:nth-child(4) .action-icon {
  color: #6a9d9a;
  background: rgba(194, 227, 220, 0.6);
}

.action-button:nth-child(5) .action-icon {
  color: #9b8ea8;
  background: rgba(224, 214, 231, 0.67);
}

.action-button.action-featured {
  color: #fffaf1;
  background: linear-gradient(135deg, #d89987, #c9807e);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 7px 18px rgba(185, 111, 102, 0.19);
}

.action-featured .action-icon {
  color: #fff7df;
  background: rgba(255, 255, 255, 0.15);
}

.action-button.action-featured:hover {
  background: linear-gradient(135deg, #dda08e, #c97d7b);
}

.action-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
  padding-left: 6px;
}

.action-copy strong {
  overflow: hidden;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action-copy small {
  overflow: hidden;
  color: var(--ink-faint);
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action-featured .action-copy small {
  color: rgba(255, 250, 241, 0.69);
}

.phase-night .action-copy small {
  color: rgba(255, 247, 234, 0.42);
}

.phase-night .action-featured .action-copy small {
  color: rgba(255, 250, 241, 0.69);
}

.action-key {
  position: absolute;
  top: 4px;
  right: 5px;
  color: var(--ink-faint);
  font-size: 7px;
  opacity: 0.55;
}

.action-featured .action-key {
  color: rgba(255, 255, 255, 0.7);
}

.journal-panel {
  gap: 11px;
}

.wish-card {
  flex: 0 0 auto;
  padding: 17px 17px 13px;
}

.wish-date {
  color: var(--ink-faint);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0;
}

.wish-summary {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 10px;
  margin: 14px 0 12px;
}

.wish-progress-ring {
  --wish-percent: 0%;
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#d99486 var(--wish-percent), rgba(170, 140, 130, 0.14) 0);
  font-size: 9px;
  font-weight: 700;
}

.wish-progress-ring::before {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fbf4e8;
  content: "";
}

.phase-night .wish-progress-ring::before {
  background: #5e5a67;
}

.wish-progress-ring span {
  position: relative;
  z-index: 1;
}

.wish-summary strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.04em;
}

.wish-summary p {
  margin: 0;
  color: var(--ink-faint);
  font-size: 9px;
  line-height: 1.45;
}

.phase-night .wish-summary p,
.phase-night .wish-date {
  color: rgba(255, 247, 234, 0.42);
}

.quest-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.quest-item {
  display: grid;
  grid-template-columns: 25px 1fr auto;
  align-items: center;
  min-height: 39px;
  padding: 5px 4px;
  border-top: 1px dashed rgba(111, 84, 76, 0.09);
  transition: background 0.2s ease;
}

.phase-night .quest-item {
  border-color: rgba(255, 255, 255, 0.08);
}

.quest-icon {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  color: var(--sage-deep);
  border-radius: 8px;
  background: rgba(217, 231, 205, 0.7);
  font-family: var(--font-display);
  font-size: 11px;
}

.quest-item:nth-child(2) .quest-icon {
  color: #af766e;
  background: rgba(247, 218, 205, 0.66);
}

.quest-item:nth-child(3) .quest-icon {
  color: #9b8a64;
  background: rgba(241, 229, 194, 0.7);
}

.quest-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
  padding: 0 5px;
}

.quest-copy strong {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phase-night .quest-copy strong {
  color: rgba(255, 247, 234, 0.7);
}

.quest-copy span {
  color: var(--ink-faint);
  font-size: 8px;
}

.quest-item.is-complete .quest-copy strong {
  text-decoration: line-through;
  opacity: 0.58;
}

.quest-reward {
  display: flex;
  align-items: center;
  gap: 2px;
  color: var(--ink-faint);
  font-size: 9px;
}

.quest-reward .resource-icon {
  width: 9px;
  height: 9px;
}

.quest-claim {
  padding: 4px 7px;
  color: #fffaf1;
  border: 0;
  border-radius: 7px;
  background: #d28a7b;
  font-size: 7px;
  font-weight: 700;
  cursor: pointer;
  animation: claim-pulse 2s ease-in-out infinite;
}

.quest-check {
  color: var(--sage);
  font-size: 12px;
}

.all-wishes-button {
  width: 100%;
  margin-top: 8px;
  padding: 8px;
  color: #fffaf1;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(90deg, #d69b7f, #d58d83);
  font-size: 8px;
  font-weight: 700;
  cursor: pointer;
}

.garden-teaser {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 165px;
  padding: 16px 17px 12px;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s ease;
}

.garden-teaser:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.83), 0 15px 32px rgba(103, 77, 69, 0.12);
}

.teaser-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.teaser-top > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.teaser-top strong {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.04em;
}

.teaser-arrow {
  color: var(--ink-faint);
  font-size: 13px;
  transition: transform 0.2s ease;
}

.garden-teaser:hover .teaser-arrow,
.album-teaser:hover .teaser-arrow {
  transform: translate(2px, -2px);
}

.plot-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 13px 0 10px;
}

.preview-plot {
  position: relative;
  height: 54px;
  overflow: hidden;
  border-radius: 8px 8px 12px 12px;
  background:
    radial-gradient(ellipse at 50% 75%, #755c51 0 44%, transparent 45%),
    linear-gradient(180deg, #c6d59d 0 32%, #d0ac79 33%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.36);
}

.preview-plot::before {
  position: absolute;
  right: -3px;
  bottom: -8px;
  left: -3px;
  height: 33px;
  border-radius: 50% 50% 0 0;
  background:
    repeating-linear-gradient(105deg, rgba(91, 68, 57, 0.12) 0 1px, transparent 1px 6px),
    #99745b;
  content: "";
}

.preview-plot.is-growing::after {
  position: absolute;
  z-index: 1;
  bottom: 19px;
  left: 50%;
  width: 4px;
  height: 18px;
  border-radius: 4px;
  background: #709270;
  content: "";
  transform: translateX(-50%);
  box-shadow: -6px -4px 0 -1px #82a77b, 6px -6px 0 -1px #82a77b;
}

.preview-plot.is-ready::after {
  position: absolute;
  z-index: 2;
  top: 11px;
  left: 50%;
  width: 17px;
  height: 21px;
  border-radius: 52% 48% 48% 52%;
  background: #df9182;
  box-shadow: -6px 6px 0 -2px #e8ab98, 6px 5px 0 -2px #cb7c76;
  content: "";
  transform: translateX(-50%);
}

.garden-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-faint);
  font-size: 9px;
}

.garden-flavor {
  position: relative;
  margin-top: auto;
  padding: 12px 8px 3px;
  color: var(--ink-faint);
  font-family: var(--font-display);
  font-size: 9px;
  line-height: 1.6;
  text-align: center;
  opacity: 0.76;
}

.garden-flavor::before,
.garden-flavor::after {
  display: inline-block;
  margin: 0 8px;
  color: rgba(126, 157, 115, 0.72);
  content: "⌁";
}

.phase-night .garden-flavor {
  color: rgba(255, 247, 234, 0.45);
}

.phase-night .garden-status {
  color: rgba(255, 247, 234, 0.45);
}

.seed-count {
  padding: 3px 6px;
  border-radius: 6px;
  background: rgba(219, 232, 206, 0.5);
}

.album-teaser {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 10px;
  flex: 0 0 94px;
  padding: 10px 14px 10px 11px;
  color: var(--ink);
  border: 1px solid rgba(116, 91, 85, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(130deg, rgba(255, 251, 240, 0.72), rgba(249, 235, 217, 0.58));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 8px 20px rgba(103, 77, 69, 0.06);
  text-align: left;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: transform 0.25s var(--ease-spring);
}

.album-teaser:hover {
  transform: translateY(-2px) rotate(0.4deg);
}

.phase-night .album-teaser {
  color: #fff5e9;
  border-color: rgba(255, 255, 255, 0.08);
  background: linear-gradient(130deg, rgba(50, 53, 67, 0.7), rgba(80, 66, 72, 0.46));
}

.album-polaroid {
  position: relative;
  width: 62px;
  height: 73px;
  overflow: hidden;
  border: 4px solid rgba(255, 251, 242, 0.93);
  border-bottom-width: 14px;
  border-radius: 4px;
  background: #efd4b1;
  box-shadow: 0 5px 12px rgba(91, 70, 61, 0.14);
  transform: rotate(-3deg);
}

.album-sun {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #f5d37f;
}

.album-hill {
  position: absolute;
  bottom: -13px;
  width: 65px;
  height: 35px;
  border-radius: 50% 50% 0 0;
  background: #9bb187;
}

.album-hill.one {
  left: -24px;
}

.album-hill.two {
  right: -27px;
  bottom: -17px;
  background: #799378;
}

.album-fox {
  position: absolute;
  bottom: 10px;
  left: 18px;
  color: #fff5e4;
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 0.6;
  text-shadow: 0 2px 2px rgba(96, 72, 64, 0.25);
}

.album-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.album-copy strong {
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.03em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.album-copy p {
  margin: 0;
  color: var(--ink-faint);
  font-size: 8px;
}

.phase-night .album-copy p {
  color: rgba(255, 247, 234, 0.43);
}

.mobile-tip {
  display: none;
}

/* Floating feedback */
.toast-region {
  position: fixed;
  z-index: 1000;
  top: 82px;
  left: 50%;
  display: flex;
  width: min(92vw, 400px);
  flex-direction: column;
  align-items: center;
  gap: 7px;
  pointer-events: none;
  transform: translateX(-50%);
}

.toast {
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  padding: 10px 16px;
  color: #564b4c;
  border: 1px solid rgba(109, 89, 82, 0.1);
  border-radius: 12px;
  background: rgba(255, 251, 243, 0.93);
  box-shadow: 0 12px 35px rgba(80, 62, 58, 0.16);
  font-size: 11px;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(-8px) scale(0.97);
  backdrop-filter: blur(14px);
  animation: toast-in 0.4s var(--ease-spring) forwards;
}

.toast.is-leaving {
  animation: toast-out 0.35s ease forwards;
}

.toast-symbol {
  display: grid;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #fff9eb;
  border-radius: 8px;
  background: #d99b89;
  font-size: 12px;
}

.toast.success .toast-symbol {
  background: #8aa57d;
}

.toast.story .toast-symbol {
  background: #b397ae;
}

.toast.warning .toast-symbol {
  background: #c98478;
}

.floating-particles {
  position: fixed;
  z-index: 1200;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.cursor-particle {
  position: absolute;
  color: var(--particle-color, #e7b96c);
  font-family: Georgia, serif;
  font-size: var(--particle-size, 14px);
  font-weight: 700;
  text-shadow: 0 2px 7px rgba(96, 74, 62, 0.14);
  pointer-events: none;
  animation: particle-burst var(--particle-duration, 1.1s) cubic-bezier(0.1, 0.7, 0.2, 1) forwards;
}

/* Overlays and modals */
.modal-root {
  position: fixed;
  z-index: 900;
  inset: 0;
  display: grid;
  padding: 24px;
  place-items: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(68, 54, 55, 0.39);
  backdrop-filter: blur(7px) saturate(0.9);
  animation: backdrop-in 0.3s ease both;
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(1050px, 95vw);
  max-height: min(86vh, 820px);
  padding: clamp(24px, 3vw, 36px);
  overflow: auto;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 30px;
  background:
    radial-gradient(circle at 95% 0%, rgba(246, 207, 186, 0.36), transparent 30%),
    #faf4e8;
  box-shadow: 0 38px 90px rgba(65, 49, 51, 0.27);
  animation: modal-rise 0.48s var(--ease-spring) both;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 119, 106, 0.34) transparent;
}

.modal-card::before {
  position: absolute;
  z-index: -1;
  top: 20px;
  right: 26px;
  width: 170px;
  height: 110px;
  background-image:
    radial-gradient(circle, rgba(186, 150, 135, 0.18) 0 1px, transparent 1.2px);
  background-size: 10px 10px;
  content: "";
  mask-image: linear-gradient(90deg, transparent, #000);
  pointer-events: none;
}

.modal-close {
  position: absolute;
  z-index: 5;
  top: 18px;
  right: 18px;
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  color: var(--ink-faint);
  border: 1px solid rgba(104, 82, 75, 0.09);
  border-radius: 50%;
  background: rgba(255, 252, 245, 0.67);
  font-family: Georgia, serif;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.modal-close:hover {
  color: var(--ink);
  background: #fffaf0;
  transform: rotate(7deg);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 25px;
  padding-right: 30px;
}

.modal-kicker {
  display: block;
  margin-bottom: 8px;
  color: #b08677;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.modal-header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(27px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.modal-header p {
  max-width: 560px;
  margin: 8px 0 0;
  color: var(--ink-faint);
  font-size: 11px;
  line-height: 1.7;
}

.garden-currency {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  margin-top: 8px;
  padding: 8px 13px;
  border: 1px solid rgba(112, 89, 82, 0.08);
  border-radius: 999px;
  background: rgba(255, 252, 245, 0.68);
  font-size: 11px;
}

.garden-currency .dew-icon {
  width: 9px;
  height: 12px;
  margin-left: 6px;
}

.garden-main {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.75fr);
  gap: 22px;
  margin-top: 25px;
}

.garden-illustration {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(100, 77, 72, 0.08);
  border-radius: 24px;
  background: linear-gradient(180deg, #dce6ce, #f3e3c5 66%, #dfc19a 67%);
  box-shadow: inset 0 0 40px rgba(111, 91, 72, 0.07);
}

.garden-sky {
  position: absolute;
  inset: 0 0 34%;
  overflow: hidden;
}

.garden-sun {
  position: absolute;
  top: 38px;
  right: 52px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #f7d98d;
  box-shadow: 0 0 42px rgba(246, 215, 139, 0.66);
}

.garden-cloud {
  position: absolute;
  top: 58px;
  left: 42px;
  width: 115px;
  height: 25px;
  border-radius: 50%;
  background: rgba(255, 252, 238, 0.56);
}

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

.garden-cloud::before {
  left: 22px;
  bottom: 3px;
  width: 55px;
  height: 41px;
}

.garden-cloud::after {
  right: 17px;
  bottom: 2px;
  width: 43px;
  height: 32px;
}

.garden-soil {
  position: absolute;
  z-index: 3;
  right: 8%;
  bottom: 59px;
  left: 8%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(6px, 1vw, 12px);
  transform: perspective(650px) rotateX(7deg);
}

.garden-plot {
  position: relative;
  height: 176px;
  padding: 0;
  overflow: visible;
  color: var(--ink-soft);
  border: 0;
  background: transparent;
  cursor: pointer;
}

.garden-plot::before {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 49px;
  border: 1px solid rgba(84, 61, 51, 0.12);
  border-radius: 50% 50% 13px 13px;
  background:
    repeating-linear-gradient(105deg, rgba(83, 59, 47, 0.1) 0 1px, transparent 1px 8px),
    linear-gradient(180deg, #b88c68, #906b57);
  box-shadow: inset 0 3px 4px rgba(255, 233, 204, 0.15), 0 8px 12px rgba(90, 66, 51, 0.14);
  content: "";
}

.garden-plot::after {
  position: absolute;
  right: 9%;
  bottom: 41px;
  left: 9%;
  height: 42px;
  border-radius: 50%;
  background: rgba(87, 67, 52, 0.34);
  content: "";
}

.garden-plot:hover::before {
  filter: brightness(1.06);
}

.plot-empty-hint {
  position: absolute;
  z-index: 2;
  right: 10px;
  bottom: 18px;
  left: 10px;
  color: rgba(255, 248, 228, 0.7);
  font-size: 8px;
  text-align: center;
}

.plant {
  position: absolute;
  z-index: 4;
  bottom: 30px;
  left: 50%;
  width: 70px;
  height: 102px;
  transform: translateX(-50%);
  transform-origin: bottom center;
}

.plant-stem {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 4px;
  height: var(--stem-height, 45px);
  border-radius: 4px;
  background: #638666;
  transform: translateX(-50%);
}

.plant-leaf {
  position: absolute;
  bottom: var(--leaf-bottom, 22px);
  left: 50%;
  width: 25px;
  height: 13px;
  border-radius: 100% 0 100% 0;
  background: #79a06e;
  transform: translateX(-4px) rotate(-19deg);
}

.plant-leaf.two {
  bottom: var(--leaf-two-bottom, 35px);
  left: auto;
  right: 20%;
  border-radius: 0 100% 0 100%;
  background: #8bae78;
  transform: rotate(16deg);
}

.plant-fruit {
  position: absolute;
  z-index: 2;
  width: 17px;
  height: 19px;
  border-radius: 52% 48% 46% 54%;
  background: linear-gradient(145deg, #e9a393, #cf7c76);
  opacity: 0;
  box-shadow: inset 2px 2px 2px rgba(255, 255, 255, 0.2);
  transform: scale(0.4);
  transform-origin: center;
  transition: opacity 0.45s ease, transform 0.55s var(--ease-spring);
}

.fruit-one {
  top: var(--fruit-one-top, 32px);
  left: 15px;
}

.fruit-two {
  top: var(--fruit-two-top, 48px);
  right: 11px;
}

.fruit-three {
  top: var(--fruit-three-top, 61px);
  left: 28px;
}

.garden-plot.stage-ready .plant-fruit,
.preview-plot.is-ready::after {
  opacity: 1;
  transform: scale(1);
}

.garden-plot.stage-sprout .plant {
  height: 25px;
}

.garden-plot.stage-sprout .plant-stem {
  --stem-height: 13px;
  width: 3px;
}

.garden-plot.stage-sprout .plant-leaf {
  --leaf-bottom: 7px;
  width: 16px;
  height: 9px;
}

.garden-plot.stage-sprout .plant-leaf.two {
  --leaf-two-bottom: 12px;
}

.garden-plot.stage-growing .plant {
  cursor: default;
}

.growth-badge {
  position: absolute;
  z-index: 7;
  bottom: 9px;
  left: 50%;
  min-width: 48px;
  padding: 3px 6px;
  color: #fffaf0;
  border-radius: 8px;
  background: rgba(102, 78, 64, 0.65);
  font-size: 8px;
  white-space: nowrap;
  transform: translateX(-50%);
  backdrop-filter: blur(5px);
}

.growth-badge.is-ready {
  color: #fffaf0;
  background: #8da777;
  animation: ready-bob 1.8s ease-in-out infinite;
}

.garden-plot.is-shaking {
  animation: plot-shake 0.45s var(--ease-spring);
}

.garden-path {
  position: absolute;
  right: 44%;
  bottom: -56px;
  width: 110px;
  height: 150px;
  border-radius: 50%;
  background: #d9bd91;
  opacity: 0.65;
  transform: rotate(7deg);
}

.garden-fence {
  position: absolute;
  right: 18px;
  bottom: 122px;
  left: 18px;
  height: 31px;
  border-bottom: 3px solid rgba(132, 104, 80, 0.27);
  background: repeating-linear-gradient(90deg, transparent 0 34px, rgba(139, 108, 84, 0.28) 34px 39px, transparent 39px 74px);
  transform: perspective(350px) rotateX(12deg);
}

.garden-scarecrow {
  position: absolute;
  right: 4%;
  bottom: 146px;
  width: 35px;
  height: 90px;
}

.garden-scarecrow::before {
  position: absolute;
  top: 20px;
  left: 16px;
  width: 4px;
  height: 70px;
  background: #8a6a54;
  content: "";
}

.garden-scarecrow::after {
  position: absolute;
  top: 35px;
  left: -13px;
  width: 61px;
  height: 4px;
  border-radius: 4px;
  background: #8a6a54;
  content: "";
}

.garden-scarecrow i {
  position: absolute;
  z-index: 1;
  top: 13px;
  left: 7px;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: #e6c988;
}

.garden-scarecrow b {
  position: absolute;
  z-index: 2;
  top: 9px;
  left: 2px;
  width: 33px;
  height: 9px;
  border-radius: 50% 50% 20% 20%;
  background: #986f5f;
  transform: rotate(-4deg);
}

.garden-scarecrow span {
  position: absolute;
  z-index: -1;
  top: 37px;
  left: 3px;
  width: 31px;
  height: 35px;
  background: #b39271;
  clip-path: polygon(20% 0, 80% 0, 100% 100%, 0 100%);
  opacity: 0.75;
}

.garden-whisper {
  position: absolute;
  right: 20px;
  bottom: 11px;
  margin: 0;
  color: rgba(87, 69, 58, 0.53);
  font-family: var(--font-display);
  font-size: 9px;
}

.garden-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.seed-shop-card,
.garden-guide,
.garden-harvest-summary {
  padding: 18px;
  border: 1px solid rgba(112, 89, 82, 0.08);
  border-radius: 18px;
  background: rgba(255, 252, 245, 0.57);
}

.seed-product {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 15px;
}

.seed-pack {
  position: relative;
  flex: 0 0 auto;
  width: 54px;
  height: 60px;
  border-radius: 8px 8px 14px 14px;
  background: #e8d1a4;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 5px 12px rgba(108, 83, 63, 0.12);
  transform: rotate(-3deg);
}

.seed-pack::before {
  position: absolute;
  top: 7px;
  right: 6px;
  left: 6px;
  height: 13px;
  border-radius: 3px;
  background: #9aaf85;
  content: "";
}

.seed-pack i {
  position: absolute;
  width: 14px;
  height: 16px;
  border-radius: 50% 50% 45% 45%;
  background: #da8f80;
}

.seed-pack i:first-child {
  top: 28px;
  left: 12px;
}

.seed-pack i:nth-child(2) {
  top: 34px;
  left: 26px;
  background: #cc7e77;
}

.seed-pack i:nth-child(3) {
  top: 24px;
  left: 30px;
  background: #e5a390;
}

.seed-product strong {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
}

.seed-product small {
  display: block;
  margin-top: 4px;
  color: var(--ink-faint);
  font-size: 8px;
  line-height: 1.5;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.22s var(--ease-spring), box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #fffaf0;
  border: 1px solid rgba(132, 80, 72, 0.08);
  background: linear-gradient(135deg, #dca08a, #c98078);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26), 0 8px 20px rgba(172, 104, 94, 0.2);
}

.primary-button:hover {
  background: linear-gradient(135deg, #e4a994, #cf857d);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26), 0 11px 23px rgba(172, 104, 94, 0.25);
  transform: translateY(-2px);
}

.primary-button:active,
.secondary-button:active {
  transform: translateY(1px) scale(0.98);
}

.secondary-button {
  color: var(--ink-soft);
  border: 1px solid rgba(108, 84, 77, 0.12);
  background: rgba(255, 251, 241, 0.74);
}

.secondary-button:hover {
  background: #fffaf1;
  transform: translateY(-1px);
}

.full {
  width: 100%;
}

.secondary-button em {
  margin-left: auto;
  color: #b8865a;
  font-size: 9px;
  font-style: normal;
}

.seed-stock {
  margin: 9px 0 0;
  color: var(--ink-faint);
  font-size: 8px;
  text-align: center;
}

.garden-guide h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 15px;
}

.garden-guide > p {
  margin: 0 0 12px;
  color: var(--ink-faint);
  font-size: 9px;
  line-height: 1.7;
}

.guide-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px dashed rgba(108, 84, 77, 0.1);
}

.guide-row span {
  color: #c9966a;
  font-size: 10px;
}

.guide-row p {
  margin: 0;
  color: var(--ink-faint);
  font-size: 8px;
  line-height: 1.55;
}

.garden-harvest-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  color: var(--ink-faint);
  font-size: 9px;
}

.garden-harvest-summary strong {
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 15px;
}

/* Shop */
.shop-modal {
  width: min(1040px, 95vw);
}

.shopkeeper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding: 11px 15px;
  color: var(--ink-soft);
  border-left: 2px solid #d9a48f;
  border-radius: 0 12px 12px 0;
  background: rgba(248, 231, 213, 0.48);
}

.shopkeeper-avatar {
  position: relative;
  flex: 0 0 auto;
  width: 39px;
  height: 39px;
  border-radius: 12px;
  background: #f2ddc4;
}

.shop-ear {
  position: absolute;
  top: 5px;
  width: 12px;
  height: 16px;
  border-radius: 80% 20% 50% 50%;
  background: #be997b;
}

.shop-ear.one {
  left: 8px;
  transform: rotate(-20deg);
}

.shop-ear.two {
  right: 8px;
  transform: scaleX(-1) rotate(-20deg);
}

.shop-face {
  position: absolute;
  z-index: 1;
  top: 14px;
  left: 9px;
  width: 21px;
  height: 19px;
  border-radius: 50%;
  background: #e2c6a5;
}

.shop-face i {
  position: absolute;
  top: 7px;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #5e5250;
}

.shop-face i:first-child {
  left: 6px;
}

.shop-face i:nth-child(2) {
  right: 6px;
}

.shop-face b {
  position: absolute;
  bottom: 4px;
  left: 9px;
  width: 4px;
  height: 2px;
  border-bottom: 1px solid #765f57;
  border-radius: 50%;
}

.shopkeeper p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 11px;
}

.shop-filters {
  display: flex;
  gap: 7px;
  margin: 20px 0 13px;
}

.filter-chip {
  padding: 6px 13px;
  color: var(--ink-faint);
  border: 1px solid rgba(109, 87, 80, 0.1);
  border-radius: 999px;
  background: rgba(255, 252, 245, 0.56);
  font-size: 9px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.filter-chip.active {
  color: #fff9ed;
  border-color: #d39482;
  background: #d39482;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 11px;
}

.shop-item {
  position: relative;
  display: flex;
  min-height: 228px;
  flex-direction: column;
  padding: 13px;
  overflow: hidden;
  border: 1px solid rgba(108, 84, 77, 0.09);
  border-radius: 17px;
  background: rgba(255, 252, 245, 0.62);
  transition: transform 0.24s var(--ease-spring), box-shadow 0.24s ease;
}

.shop-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(92, 70, 61, 0.1);
}

.shop-item.is-owned {
  background: rgba(236, 241, 225, 0.6);
}

.shop-art {
  position: relative;
  display: grid;
  height: 105px;
  margin-bottom: 10px;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background:
    radial-gradient(circle at 75% 20%, rgba(255, 246, 205, 0.73), transparent 28%),
    linear-gradient(145deg, #e7e7cc, #f2ddc6);
}

.shop-art::after {
  position: absolute;
  right: 16%;
  bottom: -21px;
  left: 16%;
  height: 47px;
  border-radius: 50%;
  background: rgba(137, 161, 120, 0.46);
  content: "";
}

.shop-art-icon {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 44px;
  filter: drop-shadow(0 5px 5px rgba(92, 72, 63, 0.12));
}

.shop-art-icon svg {
  width: 60px;
  height: 60px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: #9a7d6c;
  filter: drop-shadow(0 5px 4px rgba(92, 72, 63, 0.12));
}

.shop-art .berry-stack {
  z-index: 2;
  width: 52px;
  height: 38px;
  transform: scale(1.8);
}

.shop-item h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.03em;
}

.shop-item p {
  min-height: 32px;
  margin: 5px 0 10px;
  color: var(--ink-faint);
  font-size: 9px;
  line-height: 1.55;
}

.shop-buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 31px;
  margin-top: auto;
  padding: 0 8px 0 11px;
  color: var(--ink-soft);
  border: 1px solid rgba(105, 83, 76, 0.1);
  border-radius: 9px;
  background: rgba(255, 253, 247, 0.72);
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}

.shop-buy:hover {
  color: #9e685e;
  background: #fffaf0;
}

.shop-buy.is-owned {
  color: #73866a;
  border-color: transparent;
  background: rgba(217, 232, 202, 0.68);
  cursor: default;
}

.shop-price {
  display: flex;
  align-items: center;
  gap: 3px;
  color: #bf8f47;
}

.shop-price .resource-icon {
  width: 9px;
  height: 9px;
}

.shop-price.dew-price {
  color: #5d9c99;
}

.shop-price .dew-icon {
  width: 8px;
  height: 10px;
}

.owned-mark {
  position: absolute;
  z-index: 2;
  top: 7px;
  right: 7px;
  padding: 3px 6px;
  color: #66825f;
  border-radius: 6px;
  background: rgba(247, 251, 236, 0.84);
  font-size: 7px;
  font-weight: 700;
}

.shop-note {
  margin: 15px 0 0;
  color: var(--ink-faint);
  font-size: 8px;
  text-align: center;
}

/* Journal */
.journal-overview {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  margin-top: 9px;
  color: var(--ink-faint);
  font-size: 8px;
}

.journal-overview strong {
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 25px;
  letter-spacing: 0.08em;
}

.journal-tabs {
  display: flex;
  gap: 22px;
  margin-top: 24px;
  border-bottom: 1px solid rgba(105, 83, 76, 0.1);
}

.journal-tab {
  position: relative;
  padding: 0 2px 11px;
  color: var(--ink-faint);
  border: 0;
  background: transparent;
  font-size: 10px;
  cursor: pointer;
}

.journal-tab::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  border-radius: 4px;
  background: transparent;
  content: "";
}

.journal-tab.active {
  color: var(--ink);
  font-weight: 700;
}

.journal-tab.active::after {
  background: #d79a87;
}

.journal-tab-panel {
  margin-top: 17px;
}

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

.story-card {
  position: relative;
  min-height: 224px;
  overflow: hidden;
  border: 1px solid rgba(105, 83, 76, 0.09);
  border-radius: 17px;
  background: #fffaf0;
}

.story-illustration {
  position: relative;
  height: 128px;
  overflow: hidden;
  background: var(--story-bg, linear-gradient(145deg, #ead7bc, #cfdcb9));
}

.story-illustration::before {
  position: absolute;
  top: 20px;
  right: 22px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--story-sun, #f5d58c);
  box-shadow: 0 0 28px rgba(247, 216, 145, 0.5);
  content: "";
}

.story-illustration::after {
  position: absolute;
  right: -10%;
  bottom: -25px;
  left: -10%;
  height: 79px;
  border-radius: 50% 50% 0 0;
  background: var(--story-hill, #91aa7d);
  content: "";
}

.story-symbol {
  position: absolute;
  z-index: 2;
  right: 50%;
  bottom: 31px;
  color: #fff7e7;
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1;
  text-shadow: 0 4px 8px rgba(83, 68, 61, 0.15);
  transform: translateX(50%);
}

.story-cloud {
  position: absolute;
  z-index: 1;
  top: 35px;
  left: 19px;
  width: 49px;
  height: 13px;
  border-radius: 50%;
  background: rgba(255, 251, 238, 0.5);
}

.story-copy {
  padding: 13px 14px 14px;
}

.story-date {
  display: block;
  color: var(--ink-faint);
  font-size: 8px;
  letter-spacing: 0.07em;
}

.story-copy h3 {
  margin: 4px 0 5px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.05em;
}

.story-copy p {
  margin: 0;
  color: var(--ink-faint);
  font-size: 9px;
  line-height: 1.58;
}

.story-card.is-locked .story-illustration {
  filter: grayscale(0.65);
  opacity: 0.48;
}

.story-card.is-locked .story-symbol {
  color: rgba(255, 255, 255, 0.62);
}

.story-card.is-locked .story-copy h3 {
  color: var(--ink-faint);
}

.lock-chip {
  position: absolute;
  z-index: 4;
  top: 11px;
  left: 11px;
  padding: 3px 7px;
  color: rgba(85, 72, 69, 0.67);
  border-radius: 6px;
  background: rgba(255, 251, 242, 0.68);
  font-size: 7px;
  backdrop-filter: blur(8px);
}

.life-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.life-stat {
  display: flex;
  min-height: 126px;
  flex-direction: column;
  justify-content: center;
  padding: 22px;
  border: 1px solid rgba(108, 84, 77, 0.08);
  border-radius: 17px;
  background: rgba(255, 252, 245, 0.55);
}

.life-stat span {
  color: var(--ink-faint);
  font-size: 9px;
}

.life-stat strong {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1;
}

.life-stat small {
  margin-top: 3px;
  color: var(--ink-faint);
  font-size: 8px;
}

.journal-quote {
  margin-top: 25px;
  padding: 24px;
  color: var(--ink-soft);
  border-left: 2px solid #d3a08b;
  background: rgba(247, 234, 218, 0.55);
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.08em;
  text-align: center;
}

/* Intro */
.modal-root#modalIntro {
  z-index: 1100;
  padding: 24px;
}

.intro-backdrop {
  background: rgba(75, 60, 62, 0.31);
  backdrop-filter: blur(10px) saturate(0.9);
  animation: backdrop-in 0.65s ease both;
}

.intro-card {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(400px, 1.05fr);
  width: min(980px, 94vw);
  max-height: 91vh;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.57);
  border-radius: 34px;
  background: #faf4e8;
  box-shadow: 0 44px 110px rgba(58, 44, 48, 0.34);
  animation: intro-rise 0.85s var(--ease-spring) both;
  scrollbar-width: none;
}

.intro-card::-webkit-scrollbar {
  display: none;
}

.intro-illustration {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  background:
    radial-gradient(circle at 44% 30%, rgba(255, 246, 208, 0.7), transparent 22%),
    linear-gradient(180deg, #7e93a8 0%, #d4c5ba 48%, #f2d8be 73%, #c1d5a8 74%, #7f9c7e 100%);
}

.intro-illustration::after {
  position: absolute;
  right: -30px;
  bottom: -40px;
  left: -30px;
  height: 115px;
  border-radius: 50% 50% 0 0;
  background: #6e8a75;
  opacity: 0.74;
  content: "";
}

.intro-cloud {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 249, 232, 0.34);
  filter: blur(1px);
}

.intro-cloud.cloud-a {
  top: 80px;
  left: 32px;
  width: 160px;
  height: 31px;
}

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

.intro-cloud.cloud-a::before {
  left: 29px;
  bottom: 5px;
  width: 68px;
  height: 52px;
}

.intro-cloud.cloud-a::after {
  right: 22px;
  bottom: 4px;
  width: 53px;
  height: 37px;
}

.intro-cloud.cloud-b {
  top: 200px;
  right: -19px;
  width: 150px;
  height: 25px;
  opacity: 0.43;
}

.intro-cloud.cloud-b::before {
  left: 28px;
  bottom: 1px;
  width: 74px;
  height: 44px;
}

.intro-moon {
  position: absolute;
  top: 63px;
  right: 65px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #f4e9c2;
  box-shadow: 0 0 42px rgba(255, 244, 204, 0.5);
}

.intro-moon::after {
  position: absolute;
  top: 10px;
  left: 25px;
  width: 53px;
  height: 51px;
  border-radius: 50%;
  background: #8d9dad;
  content: "";
}

.intro-island {
  position: absolute;
  z-index: 1;
  right: 8%;
  bottom: 83px;
  left: 8%;
  height: 170px;
  border-radius: 50% 50% 45% 45%;
  background:
    linear-gradient(180deg, #a3bd8b 0 16%, #8b7b76 17% 100%);
  box-shadow:
    inset 0 8px 15px rgba(255, 255, 255, 0.13),
    0 22px 26px rgba(62, 72, 77, 0.19);
  clip-path: polygon(0 32%, 10% 11%, 25% 2%, 47% 0, 68% 6%, 87% 17%, 100% 38%, 89% 54%, 76% 67%, 60% 84%, 37% 95%, 17% 80%, 4% 56%);
}

.intro-fox {
  position: absolute;
  z-index: 4;
  top: 260px;
  left: 50%;
  width: 200px;
  height: 205px;
  transform: translateX(-50%);
  filter: drop-shadow(0 13px 15px rgba(79, 62, 58, 0.17));
  animation: intro-fox-breathe 4.2s ease-in-out infinite;
}

.intro-fox-tail {
  position: absolute;
  z-index: 0;
  right: 3px;
  bottom: 37px;
  width: 103px;
  height: 112px;
  border-radius: 72% 31% 70% 29%;
  background: linear-gradient(145deg, #fff1d8, #edb19e);
  transform: rotate(-25deg);
  animation: intro-tail-wag 3.3s ease-in-out infinite;
}

.intro-fox-body {
  position: absolute;
  z-index: 1;
  bottom: 22px;
  left: 35px;
  width: 122px;
  height: 100px;
  border-radius: 45% 45% 48% 48%;
  background: linear-gradient(145deg, #fff6e5, #eed6bd);
}

.intro-fox-face {
  position: absolute;
  z-index: 3;
  top: 14px;
  left: 25px;
  width: 146px;
  height: 130px;
  border-radius: 46% 46% 50% 50%;
  background: linear-gradient(150deg, #fff9eb, #f0d7bd);
  box-shadow: inset 0 -10px 24px rgba(221, 176, 151, 0.13);
}

.intro-fox-face i {
  position: absolute;
  top: 62px;
  width: 8px;
  height: 11px;
  border-radius: 50%;
  background: #5d5050;
  animation: intro-eye-blink 5.5s infinite;
}

.intro-fox-face i:first-child {
  left: 43px;
}

.intro-fox-face i:nth-child(2) {
  right: 43px;
}

.intro-fox-face b {
  position: absolute;
  bottom: 36px;
  left: 68px;
  width: 10px;
  height: 10px;
  border-radius: 50% 50% 60% 60%;
  background: #c6807b;
}

.intro-fox-ear {
  position: absolute;
  z-index: 2;
  top: 0;
  width: 65px;
  height: 74px;
  border-radius: 83% 25% 58% 42%;
  background: linear-gradient(145deg, #f4c1af, #e69b8f);
}

.intro-fox-ear::after {
  position: absolute;
  top: 13px;
  left: 18px;
  width: 30px;
  height: 39px;
  border-radius: 80% 24% 60% 40%;
  background: rgba(250, 215, 201, 0.7);
  content: "";
}

.intro-fox-ear.left {
  left: 21px;
  transform: rotate(-24deg);
}

.intro-fox-ear.right {
  right: 21px;
  transform: scaleX(-1) rotate(-24deg);
}

.intro-star {
  position: absolute;
  color: #fff2bb;
  text-shadow: 0 0 11px rgba(255, 244, 192, 0.74);
  animation: sparkle-blink 2.4s ease-in-out infinite;
}

.intro-star.s-one {
  top: 188px;
  left: 53px;
  font-size: 19px;
}

.intro-star.s-two {
  top: 145px;
  right: 46px;
  font-size: 12px;
  animation-delay: -1s;
}

.intro-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(36px, 5vw, 70px) clamp(32px, 5vw, 68px);
}

.intro-kicker {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 7px;
  color: #aa7d71;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.intro-kicker::before {
  width: 18px;
  height: 1px;
  background: #cf9a88;
  content: "";
}

.intro-content h2 {
  margin: 17px 0 15px;
  font-family: var(--font-display);
  font-size: clamp(38px, 4.5vw, 58px);
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.1;
}

.intro-content h2 em {
  color: #c77f76;
  font-style: normal;
}

.intro-content > p {
  max-width: 420px;
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.9;
}

.name-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 17px;
  color: var(--ink-faint);
  font-size: 9px;
}

.name-field input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  color: var(--ink);
  border: 1px solid rgba(109, 86, 78, 0.12);
  border-radius: 13px;
  background: rgba(255, 252, 245, 0.74);
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.1em;
  box-shadow: inset 0 2px 5px rgba(104, 81, 73, 0.035);
}

.name-field input::placeholder {
  color: #c6b7ad;
}

.intro-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 17px;
}

.primary-button.large {
  min-height: 48px;
  padding: 0 28px;
  border-radius: 14px;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.intro-actions > span {
  max-width: 125px;
  color: var(--ink-faint);
  font-size: 7px;
  line-height: 1.55;
}

.intro-features {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 13px;
  margin-top: 26px;
  padding-top: 16px;
  color: var(--ink-faint);
  border-top: 1px dashed rgba(106, 84, 76, 0.12);
  font-size: 8px;
}

.intro-features span {
  white-space: nowrap;
}

/* Minigame */
.minigame-overlay {
  position: absolute;
  z-index: 40;
  inset: 0;
  overflow: hidden;
  color: #fff9ee;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 50%, rgba(90, 78, 106, 0.35), transparent 38%),
    linear-gradient(180deg, rgba(54, 62, 88, 0.95), rgba(92, 78, 102, 0.95));
  animation: minigame-in 0.5s var(--ease-spring) both;
}

.minigame-overlay::before {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    radial-gradient(circle at 12% 22%, rgba(255, 246, 206, 0.8) 0 1px, transparent 1.5px),
    radial-gradient(circle at 70% 70%, rgba(255, 246, 206, 0.5) 0 1px, transparent 1.5px),
    radial-gradient(circle at 40% 85%, rgba(255, 246, 206, 0.45) 0 1px, transparent 1.5px);
  background-size: 73px 91px, 101px 83px, 59px 109px;
  content: "";
}

.minigame-hud {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 23px 26px;
}

.minigame-hud .eyebrow {
  color: rgba(255, 248, 233, 0.51);
}

.minigame-hud h2 {
  margin: 5px 0 0;
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.1em;
}

.minigame-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 10px;
}

.minigame-stats strong {
  margin-left: 3px;
  color: #f7d994;
  font-size: 17px;
}

.timer-ring {
  position: relative;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
}

.timer-ring::before,
.timer-ring i {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.timer-ring::before {
  inset: 0;
  background: conic-gradient(#f3cc7f var(--timer, 100%), rgba(255, 255, 255, 0.12) 0);
}

.timer-ring i {
  inset: 3px;
  background: #59546c;
}

.timer-ring b {
  position: relative;
  z-index: 1;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.firefly-playfield {
  position: absolute;
  z-index: 2;
  inset: 80px 0 0;
  overflow: hidden;
}

.firefly {
  position: absolute;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  animation: firefly-appear 0.35s var(--ease-spring) both;
}

.firefly::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff1a5;
  box-shadow:
    0 0 8px 3px rgba(255, 232, 127, 0.7),
    0 0 24px 12px rgba(255, 219, 102, 0.25),
    0 0 42px 23px rgba(255, 210, 84, 0.12);
  content: "";
  transform: translate(-50%, -50%);
  animation: firefly-glow 1s ease-in-out infinite alternate;
}

.firefly::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 19px;
  height: 10px;
  border-top: 1px solid rgba(255, 249, 216, 0.6);
  border-bottom: 1px solid rgba(255, 249, 216, 0.42);
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%) rotate(-20deg);
}

.firefly.is-caught {
  animation: firefly-caught 0.38s ease-out forwards;
  pointer-events: none;
}

.minigame-instruction {
  position: absolute;
  top: 49%;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 18px;
  color: rgba(255, 248, 232, 0.7);
  text-align: left;
  transform: translate(-50%, -50%);
  animation: instruction-pulse 2s ease-in-out infinite;
}

.minigame-instruction p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.4;
}

.minigame-instruction small {
  color: rgba(255, 248, 232, 0.42);
  font-family: var(--font-body);
  font-size: 8px;
}

.wisp-big {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffef9d;
  box-shadow: 0 0 15px 8px rgba(255, 230, 120, 0.35), 0 0 40px 20px rgba(255, 210, 90, 0.13);
}

.minigame-result {
  position: absolute;
  z-index: 10;
  top: 50%;
  left: 50%;
  display: flex;
  width: min(350px, 85%);
  flex-direction: column;
  align-items: center;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 22px;
  background: rgba(53, 52, 70, 0.74);
  box-shadow: 0 30px 70px rgba(23, 24, 34, 0.3);
  text-align: center;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(18px);
  animation: result-pop 0.5s var(--ease-spring) both;
}

.result-kicker {
  color: #f3c77f;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.minigame-result > strong {
  margin: 9px 0 5px;
  font-family: var(--font-display);
  font-size: 27px;
  letter-spacing: 0.07em;
}

.minigame-result p {
  margin: 0 0 17px;
  color: rgba(255, 248, 233, 0.61);
  font-size: 10px;
}

.minigame-result .primary-button {
  min-height: 38px;
  font-size: 9px;
}

/* Help and confirm */
.help-modal {
  width: min(820px, 94vw);
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.help-grid article {
  min-height: 130px;
  padding: 17px;
  border: 1px solid rgba(106, 84, 76, 0.08);
  border-radius: 15px;
  background: rgba(255, 252, 245, 0.58);
}

.help-grid article > span {
  color: #d5a08b;
  font-family: Georgia, serif;
  font-size: 10px;
  letter-spacing: 0.1em;
}

.help-grid h3 {
  margin: 7px 0 6px;
  font-family: var(--font-display);
  font-size: 16px;
}

.help-grid p {
  margin: 0;
  color: var(--ink-faint);
  font-size: 10px;
  line-height: 1.7;
}

.help-settings {
  margin-top: 18px;
  border-top: 1px dashed rgba(106, 84, 76, 0.12);
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 2px;
  color: var(--ink-soft);
  border: 0;
  border-bottom: 1px solid rgba(106, 84, 76, 0.07);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.setting-row > span:first-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.setting-row strong {
  font-size: 10px;
}

.setting-row small {
  color: var(--ink-faint);
  font-size: 8px;
}

.setting-row.danger {
  color: #b4736b;
}

.setting-arrow {
  font-size: 14px;
}

.switch {
  position: relative;
  width: 38px;
  height: 21px;
  border-radius: 999px;
  background: rgba(151, 130, 122, 0.18);
  transition: background 0.22s ease;
}

.switch b {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fffaf0;
  box-shadow: 0 2px 5px rgba(87, 67, 59, 0.18);
  transition: transform 0.25s var(--ease-spring);
}

.setting-row.is-on .switch {
  background: #8fab81;
}

.setting-row.is-on .switch b {
  transform: translateX(17px);
}

.keyboard-help {
  margin: 15px 0 0;
  color: var(--ink-faint);
  font-size: 7px;
  text-align: center;
}

.confirm-root {
  z-index: 1250;
}

.confirm-card {
  position: relative;
  z-index: 2;
  width: min(410px, 90vw);
  padding: 31px;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 24px;
  background: #faf4e8;
  box-shadow: 0 35px 80px rgba(59, 43, 46, 0.3);
  text-align: center;
  animation: modal-rise 0.42s var(--ease-spring) both;
}

.confirm-star {
  display: block;
  color: #d9a56c;
  font-size: 24px;
}

.confirm-card h2 {
  margin: 10px 0 9px;
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.06em;
}

.confirm-card p {
  margin: 0;
  color: var(--ink-faint);
  font-size: 9px;
  line-height: 1.7;
}

.confirm-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 21px;
}

.confirm-actions .primary-button,
.confirm-actions .secondary-button {
  min-height: 37px;
  font-size: 9px;
}

/* Responsive */
@media (max-width: 1260px) {
  .app {
    min-height: 680px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .layout {
    grid-template-columns: 238px minmax(440px, 1fr) 260px;
  }

  .soul-card,
  .stats-card,
  .wish-card,
  .garden-teaser {
    padding-right: 14px;
    padding-left: 14px;
  }

  .resource-label {
    display: none;
  }

  .resource-pill {
    padding: 0 9px;
  }

  .action-button {
    grid-template-columns: 30px 1fr;
    padding-right: 5px;
    padding-left: 5px;
  }

  .action-icon {
    width: 27px;
    height: 27px;
  }

  .action-icon svg {
    width: 18px;
    height: 18px;
  }

  .action-copy {
    padding-left: 4px;
  }
}

@media (max-width: 1080px) {
  .app {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .topbar {
    grid-template-columns: 1fr auto auto;
    gap: 14px;
  }

  .layout {
    grid-template-columns: minmax(0, 1fr) 270px;
    align-items: start;
    flex: none;
    min-height: 730px;
  }

  .status-panel {
    display: none;
  }

  .world-column {
    min-height: 710px;
  }

  .mobile-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 34px;
    gap: 7px;
    padding: 0 12px;
    color: var(--ink-faint);
    border: 1px solid rgba(116, 91, 85, 0.08);
    border-radius: 12px;
    background: rgba(255, 250, 241, 0.62);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 6px 18px rgba(96, 76, 69, 0.05);
    font-size: 9px;
    backdrop-filter: blur(14px);
  }

  .mobile-stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
  }

  .mobile-stat b {
    color: var(--ink-soft);
    font-size: 10px;
    font-variant-numeric: tabular-nums;
  }

  .mobile-stat .dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #d99a8d;
  }

  .mobile-stat .dot-mood {
    background: #e19895;
  }

  .mobile-stat .dot-energy {
    background: #e1bb6d;
  }

  .mobile-stat .dot-clean {
    background: #83b4ae;
  }

  .phase-night .mobile-stats {
    color: rgba(255, 247, 234, 0.46);
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(42, 45, 59, 0.42);
  }

  .phase-night .mobile-stat b {
    color: rgba(255, 247, 234, 0.75);
  }

  .scene {
    min-height: 590px;
  }

  .side-panel.journal-panel {
    height: 100%;
    min-height: 690px;
  }

  .garden-teaser {
    min-height: 200px;
  }
}

@media (max-width: 800px) {
  .app {
    min-height: 100dvh;
    padding: 10px 10px calc(12px + env(safe-area-inset-bottom));
  }

  .topbar {
    grid-template-columns: auto 1fr auto;
    flex: 0 0 52px;
    margin-bottom: 8px;
    gap: 7px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    margin-right: 7px;
    border-radius: 12px;
  }

  .brand-mark svg {
    width: 31px;
    height: 31px;
  }

  .brand-copy strong {
    font-size: 17px;
  }

  .brand-copy small {
    display: none;
  }

  .resources {
    justify-self: center;
    gap: 0;
    padding: 3px;
  }

  .resource-pill {
    min-height: 30px;
    gap: 4px;
    padding: 0 7px;
  }

  .resource-value {
    font-size: 11px;
  }

  .day-pill {
    min-height: 30px;
    gap: 4px;
    padding: 0 8px;
    font-size: 8px;
  }

  .day-divider,
  #dayText {
    display: none;
  }

  .top-actions {
    gap: 4px;
  }

  .round-button {
    width: 33px;
    height: 33px;
    border-radius: 11px;
  }

  .round-button[data-open="garden"] {
    display: none;
  }

  .round-button svg {
    width: 17px;
    height: 17px;
  }

  .layout {
    display: flex;
    min-height: 0;
    flex-direction: column;
    gap: 11px;
  }

  .world-column {
    display: contents;
  }

  .scene {
    order: 1;
    width: 100%;
    min-height: 0;
    height: clamp(460px, 68vh, 610px);
    border-radius: 24px;
  }

  .mobile-stats {
    order: 2;
    width: 100%;
  }

  .action-dock {
    order: 3;
    width: 100%;
    min-height: 69px;
    grid-template-columns: repeat(5, 1fr);
    gap: 3px;
    padding: 6px 4px;
    border-radius: 19px;
  }

  .action-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 4px 1px;
    border-radius: 13px;
    text-align: center;
  }

  .action-icon {
    width: 28px;
    height: 28px;
    border-radius: 9px;
  }

  .action-copy {
    width: 100%;
    padding: 0;
    gap: 1px;
  }

  .action-copy strong {
    font-size: 9px;
  }

  .action-copy small {
    display: none;
  }

  .action-key {
    display: none;
  }

  .journal-panel {
    order: 4;
    display: grid;
    width: 100%;
    min-height: 0;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 9px;
  }

  .wish-card {
    grid-row: span 2;
  }

  .garden-teaser {
    min-height: 0;
    padding: 14px;
  }

  .plot-preview {
    display: none;
  }

  .garden-status {
    margin-top: 12px;
  }

  .album-teaser {
    min-height: 86px;
    grid-template-columns: 51px 1fr auto;
    padding: 8px;
  }

  .album-polaroid {
    width: 48px;
    height: 62px;
    border-width: 3px;
    border-bottom-width: 10px;
  }

  .album-fox {
    left: 13px;
    bottom: 9px;
    font-size: 21px;
  }

  .album-copy strong {
    font-size: 11px;
  }

  .album-copy .eyebrow,
  .album-copy p {
    font-size: 7px;
  }

  .mobile-tip {
    display: none;
  }

  .scene-tag {
    top: 12px;
    left: 12px;
    min-height: 27px;
    padding: 0 9px;
  }

  .speech-bubble {
    top: 13%;
    max-width: 72%;
    padding: 8px 12px;
  }

  .sun-moon {
    top: 8%;
    right: 9%;
    width: 60px;
    height: 60px;
  }

  .moon::before {
    width: 48px;
    height: 46px;
  }

  .dew-orb {
    top: 44%;
    left: 11%;
    width: 22px;
    height: 28px;
  }

  .scene-footer {
    right: 14px;
    bottom: 9px;
    left: 14px;
  }

  .scene-hint {
    display: none;
  }

  .scene-footer {
    justify-content: flex-end;
  }

  .garden-modal {
    width: 98vw;
  }

  .modal-root {
    padding: 12px;
  }

  .modal-card {
    width: 96vw;
    max-height: 91vh;
    padding: 23px 17px;
    border-radius: 24px;
  }

  .modal-header {
    display: block;
    padding-right: 27px;
  }

  .garden-currency {
    width: max-content;
    margin-top: 12px;
  }

  .garden-main {
    display: flex;
    flex-direction: column;
  }

  .garden-illustration {
    min-height: 390px;
  }

  .garden-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .garden-harvest-summary {
    grid-column: 1 / -1;
  }

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

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

  .stories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .life-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .intro-card {
    display: block;
    width: 94vw;
    max-height: 91vh;
  }

  .intro-illustration {
    min-height: 245px;
  }

  .intro-moon {
    top: 37px;
    right: 44px;
    width: 43px;
    height: 43px;
  }

  .intro-illustration::after {
    height: 74px;
  }

  .intro-fox {
    top: 82px;
    width: 155px;
    height: 160px;
    transform: translateX(-50%) scale(0.76);
    transform-origin: center top;
  }

  .intro-island {
    bottom: 26px;
    height: 102px;
  }

  .intro-content {
    padding: 28px 25px;
  }

  .intro-content h2 {
    margin: 12px 0;
    font-size: 35px;
  }

  .intro-content > p {
    font-size: 10px;
  }

  .intro-features {
    margin-top: 18px;
  }

  .help-grid {
    grid-template-columns: 1fr;
  }

  .minigame-hud {
    padding: 17px 18px;
  }

  .minigame-hud h2 {
    font-size: 20px;
  }

  .minigame-stats {
    gap: 9px;
  }

  .toast-region {
    top: 67px;
  }
}

@media (max-width: 520px) {
  .brand-copy strong {
    font-size: 15px;
    letter-spacing: 0.07em;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    margin-right: 5px;
  }

  .brand-mark svg {
    width: 28px;
    height: 28px;
  }

  .round-button[data-open="journal"] {
    display: none;
  }

  .resources {
    padding: 2px;
  }

  .resource-label {
    display: none;
  }

  .resource-pill {
    padding: 0 6px;
  }

  .resource-icon {
    width: 12px;
    height: 12px;
  }

  .dew-icon {
    width: 9px;
    height: 12px;
  }

  .day-pill {
    display: none;
  }

  .scene {
    height: clamp(430px, 65vh, 550px);
  }

  .journal-panel {
    display: flex;
  }

  .wish-card {
    width: 100%;
  }

  .garden-teaser {
    width: 100%;
  }

  .plot-preview {
    display: grid;
  }

  .album-teaser {
    width: 100%;
  }

  .garden-illustration {
    min-height: 340px;
  }

  .garden-soil {
    right: 4%;
    bottom: 43px;
    left: 4%;
    gap: 4px;
  }

  .garden-plot {
    height: 147px;
  }

  .garden-plot::before {
    height: 43px;
  }

  .plant {
    transform: translateX(-50%) scale(0.78);
    transform-origin: bottom center;
  }

  .growth-badge {
    bottom: 4px;
    font-size: 7px;
  }

  .garden-scarecrow {
    display: none;
  }

  .garden-side {
    display: flex;
  }

  .shop-filters {
    overflow: auto;
  }

  .shop-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .shop-item {
    min-height: 211px;
    padding: 10px;
  }

  .shop-art {
    height: 89px;
  }

  .shop-item h3 {
    font-size: 13px;
  }

  .shop-item p {
    font-size: 8px;
  }

  .stories-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .story-card {
    min-height: 205px;
  }

  .story-illustration {
    height: 113px;
  }

  .story-copy {
    padding: 10px;
  }

  .story-copy h3 {
    font-size: 12px;
  }

  .intro-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .intro-actions .primary-button {
    width: 100%;
  }

  .intro-features {
    gap: 5px 9px;
  }

  .minigame-stats > span:first-child {
    display: none;
  }

  .minigame-result {
    padding: 22px;
  }

  .confirm-actions {
    flex-direction: column;
  }
}

@media (max-width: 360px) {
  .topbar {
    gap: 4px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    margin-right: 3px;
  }

  .brand-mark svg {
    width: 25px;
    height: 25px;
  }

  .brand-copy strong {
    font-size: 14px;
  }

  .resource-pill {
    padding: 0 4px;
  }

  .top-actions {
    gap: 2px;
  }

  .round-button {
    width: 31px;
    height: 31px;
  }

  .mobile-stats {
    padding: 0 8px;
    font-size: 8px;
  }

  .mobile-stat {
    gap: 2px;
  }
}

@media (max-height: 760px) and (min-width: 1081px) {
  .app {
    min-height: 640px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .topbar {
    flex-basis: 50px;
    margin-bottom: 8px;
  }

  .layout {
    grid-template-columns: 245px minmax(460px, 1fr) 270px;
  }

  .scene {
    min-height: 410px;
  }

  .action-dock {
    flex-basis: 68px;
  }

  .soul-card {
    padding-top: 15px;
    padding-bottom: 12px;
  }

  .soul-heading {
    margin-top: 10px;
  }

  .soul-quote {
    min-height: 44px;
    margin: 11px 0;
    padding: 9px 11px;
  }

  .stats-card {
    padding-top: 14px;
  }

  .stat-list {
    gap: 9px;
    margin-top: 12px;
  }

  .inventory-note {
    margin-top: 13px;
  }

  .wish-card {
    padding-top: 14px;
  }

  .wish-summary {
    margin: 10px 0 8px;
  }

  .quest-item {
    min-height: 35px;
  }

  .garden-teaser {
    min-height: 145px;
  }
}

@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;
  }
}

.app.reduced-motion *,
.app.reduced-motion *::before,
.app.reduced-motion *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

/* Keyframes */
@keyframes ambient-cloud-drift {
  to { transform: translateX(calc(100vw + 400px)); }
}

@keyframes star-twinkle {
  0%, 100% { opacity: 0.18; transform: scale(0.7); }
  50% { opacity: 1; transform: scale(1.2); }
}

@keyframes sun-breathe {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.035); filter: brightness(1.05); }
}

@keyframes scene-cloud-drift {
  from { transform: translateX(-13px); }
  to { transform: translateX(24px); }
}

@keyframes pet-breathe {
  0%, 100% { transform: scaleY(1) translateY(0); }
  50% { transform: scaleY(1.012) translateY(-2px); }
}

@keyframes tail-wag {
  0%, 100% { transform: rotate(-2deg); }
  45% { transform: rotate(4deg); }
  60% { transform: rotate(3deg); }
}

@keyframes head-float {
  0%, 100% { transform: translateY(0) rotate(0); }
  35% { transform: translateY(-1.5px) rotate(-0.5deg); }
  70% { transform: translateY(1px) rotate(0.4deg); }
}

@keyframes eye-blink {
  0%, 43%, 46%, 100% { transform: scaleY(1); }
  44.4%, 45% { transform: scaleY(0.08); }
}

@keyframes pet-squish {
  0%, 100% { transform: scale(1, 1); }
  25% { transform: scale(1.035, 0.96) translateY(4px); }
  55% { transform: scale(0.98, 1.025) translateY(-5px); }
  78% { transform: scale(1.015, 0.988); }
}

@keyframes tail-happy {
  0%, 100% { transform: rotate(-7deg); }
  50% { transform: rotate(10deg); }
}

@keyframes pet-eat {
  0%, 100% { transform: translateY(0) rotate(0); }
  35% { transform: translateY(3px) rotate(-1deg); }
  70% { transform: translateY(-2px) rotate(1deg); }
}

@keyframes pet-jump {
  0%, 100% { transform: translateY(0) scale(1); }
  30% { transform: translateY(-24px) scale(0.98, 1.025); }
  63% { transform: translateY(4px) scale(1.03, 0.96); }
  82% { transform: translateY(-4px); }
}

@keyframes pet-shiver {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px) rotate(-0.6deg); }
  75% { transform: translateX(3px) rotate(0.6deg); }
}

@keyframes heart-pop {
  0% { opacity: 0; transform: translateY(15px) scale(0.4); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-30px) scale(1.2); }
}

@keyframes sparkle-pop {
  0% { opacity: 0; transform: scale(0.6) rotate(-8deg); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.25) rotate(8deg); }
}

@keyframes dew-float {
  0%, 100% { transform: translateY(0) rotate(9deg); }
  50% { transform: translateY(-8px) rotate(13deg); }
}

@keyframes sparkle-blink {
  0%, 100% { opacity: 0.35; transform: scale(0.82); }
  50% { opacity: 1; transform: scale(1.12); }
}

@keyframes rain-fall {
  from { transform: translateY(-80px) translateX(0) rotate(8deg); }
  to { transform: translateY(calc(100vh + 120px)) translateX(-70px) rotate(8deg); }
}

@keyframes petal-fall {
  0% { transform: translate3d(0, -20px, 0) rotate(0); }
  33% { transform: translate3d(45px, 33vh, 0) rotate(110deg); }
  66% { transform: translate3d(-25px, 65vh, 0) rotate(240deg); }
  100% { transform: translate3d(55px, 100vh, 0) rotate(380deg); }
}

@keyframes wind-drift {
  from { transform: translateX(0); opacity: 0; }
  20% { opacity: 0.8; }
  80% { opacity: 0.55; }
  to { transform: translateX(140vw); opacity: 0; }
}

@keyframes bubble-rise {
  0% { opacity: 0; transform: translateY(6px) scale(0.5); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-110px) translateX(var(--drift, 12px)) scale(1.2); }
}

@keyframes crumb-fly {
  0% { opacity: 1; transform: translate(0, 0) scale(0.8); }
  100% { opacity: 0; transform: translate(var(--x, 20px), var(--y, 25px)) scale(0.2); }
}

@keyframes pat-spark-fly {
  0% { opacity: 0; transform: translateY(0) scale(0.4) rotate(0); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--x, 20px), var(--y, -50px)) scale(1.25) rotate(70deg); }
}

@keyframes ambient-firefly-drift {
  0%, 100% { opacity: 0; transform: translate(0, 0) scale(0.7); }
  25% { opacity: 0.8; }
  50% { opacity: 0.4; transform: translate(var(--x, 30px), var(--y, -35px)) scale(1.2); }
  80% { opacity: 0.7; }
}

@keyframes low-stat-pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

@keyframes claim-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(210, 138, 123, 0); }
  50% { box-shadow: 0 0 0 4px rgba(210, 138, 123, 0.12); }
}

@keyframes ready-bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-3px); }
}

@keyframes plot-shake {
  0%, 100% { transform: perspective(650px) rotateX(7deg) translateX(0); }
  30% { transform: perspective(650px) rotateX(7deg) translateX(-4px) rotate(-1deg); }
  65% { transform: perspective(650px) rotateX(7deg) translateX(4px) rotate(1deg); }
}

@keyframes toast-in {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toast-out {
  to { opacity: 0; transform: translateY(-7px) scale(0.97); }
}

@keyframes particle-burst {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.3) rotate(0); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, -70px))) scale(var(--scale, 1)) rotate(var(--rot, 50deg)); }
}

@keyframes backdrop-in {
  from { opacity: 0; }
}

@keyframes modal-rise {
  from { opacity: 0; transform: translateY(25px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes intro-rise {
  from { opacity: 0; transform: translateY(35px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes intro-fox-breathe {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes intro-tail-wag {
  0%, 100% { transform: rotate(-29deg); }
  50% { transform: rotate(-19deg); }
}

@keyframes intro-eye-blink {
  0%, 43%, 100% { transform: scaleY(1); }
  45% { transform: scaleY(0.1); }
}

@keyframes minigame-in {
  from { opacity: 0; transform: scale(1.03); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes instruction-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.9; }
}

@keyframes firefly-appear {
  from { opacity: 0; transform: scale(0.2); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes firefly-glow {
  from { opacity: 0.65; transform: translate(-50%, -50%) scale(0.8); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

@keyframes firefly-caught {
  0% { opacity: 1; transform: scale(1); }
  35% { opacity: 1; transform: scale(1.8); filter: brightness(2); }
  100% { opacity: 0; transform: scale(0.1); filter: brightness(2); }
}

@keyframes result-pop {
  from { opacity: 0; transform: translate(-50%, -47%) scale(0.92); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
